*{box-sizing:border-box;}
body{margin:0;font-family:"Inter",system-ui;background:#f4f6f9;}
.shell{max-width:1400px;margin:auto;padding:12px;}
.header-bar{background:linear-gradient(135deg,#111827,#1f2937);color:white;padding:12px 20px;border-radius:14px;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;box-shadow:0 4px 14px rgba(0,0,0,0.2);}
.hb-left{display:flex;align-items:center;gap:14px;}
.logo-img{height:40px;object-fit:contain;}
.hb-title h2{margin:0;font-size:17px;font-weight:700;}
.hb-title span{font-size:11px;opacity:0.6;}
.hb-right{display:flex;align-items:center;gap:12px;font-size:13px;}
.logout-btn{color:#f87171;font-weight:600;text-decoration:none;}
.home-btn{color:#94a3b8;font-size:12px;text-decoration:none;}

.search-bar{background:white;border-radius:12px;padding:12px 16px;margin-bottom:16px;box-shadow:0 2px 8px rgba(0,0,0,0.05);display:flex;gap:10px;align-items:center;}
.search-bar input{flex:1;border:1.5px solid #d1d5db;border-radius:8px;padding:8px 14px;font-size:13px;outline:none;}
.search-bar input:focus{border-color:#2563eb;}

.modules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.module-section{background:white;border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,0.06);}
.mod-head{padding:14px 18px;border-bottom:2px solid #f1f5f9;display:flex;align-items:center;gap:10px;}
.mod-icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;}
.mod-title{font-size:14px;font-weight:700;color:#1e293b;}
.mod-count{margin-left:auto;font-size:10px;font-weight:700;padding:2px 8px;border-radius:20px;background:#f1f5f9;color:#64748b;}

.doc-list{list-style:none;padding:8px 0;margin:0;}
.doc-item{display:flex;align-items:center;gap:8px;padding:7px 18px;cursor:pointer;transition:0.15s;border-left:3px solid transparent;}
.doc-item:hover{background:#f8fafc;border-left-color:#3b82f6;}
.doc-item.available{cursor:pointer;}
.doc-item.coming-soon{cursor:default;opacity:0.55;}
.doc-num{font-size:10px;font-weight:700;color:#94a3b8;min-width:20px;}
.doc-name{font-size:12px;color:#374151;flex:1;}
.doc-item:hover .doc-name{color:#1e293b;font-weight:600;}
.doc-badge{font-size:9px;font-weight:700;padding:1px 6px;border-radius:20px;}
.badge-live{background:#dcfce7;color:#166534;}
.badge-soon{background:#fef3c7;color:#92400e;}
.doc-link-icon{font-size:10px;color:#94a3b8;}

/* COLOUR THEMES PER MODULE */
.stores .mod-icon{background:#dbeafe;color:#1e40af;} .stores .mod-head{border-bottom-color:#dbeafe;}
.production .mod-icon{background:#dcfce7;color:#166534;} .production .mod-head{border-bottom-color:#dcfce7;}
.mold .mod-icon{background:#ede9fe;color:#5b21b6;} .mold .mod-head{border-bottom-color:#ede9fe;}
.machine .mod-icon{background:#fef3c7;color:#92400e;} .machine .mod-head{border-bottom-color:#fef3c7;}
.linequal .mod-icon{background:#fce7f3;color:#9d174d;} .linequal .mod-head{border-bottom-color:#fce7f3;}
.npd .mod-icon{background:#cffafe;color:#155e75;} .npd .mod-head{border-bottom-color:#cffafe;}
.mr .mod-icon{background:#f3f4f6;color:#374151;} .mr .mod-head{border-bottom-color:#f3f4f6;}
.inprocess .mod-icon{background:#fee2e2;color:#991b1b;} .inprocess .mod-head{border-bottom-color:#fee2e2;}
.dispatch .mod-icon{background:#d1fae5;color:#065f46;} .dispatch .mod-head{border-bottom-color:#d1fae5;}
.purchase .mod-icon{background:#e0f2fe;color:#075985;} .purchase .mod-head{border-bottom-color:#e0f2fe;}
.hr .mod-icon{background:#fdf4ff;color:#701a75;} .hr .mod-head{border-bottom-color:#fdf4ff;}

@media(max-width:1100px){.modules-grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:650px){.modules-grid{grid-template-columns:1fr;}}