:root{--bg:#f4f7fb;--panel:#fff;--ink:#172033;--muted:#6b7280;--line:#e5e7eb;--nav:#0f172a;--nav2:#111c33;--brand:#0b7a75;--brand2:#13a69c;--warn:#fff7d6;--danger:#fee2e2;--blue:#dbeafe;--purple:#ede9fe;--shadow:0 14px 36px rgba(15,23,42,.08);--radius:18px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}.mini{font-size:12px}.eyebrow{margin:0 0 5px;font-size:11px;font-weight:800;letter-spacing:.14em;color:#6b7280}.stack{display:grid;gap:14px}.full{width:100%}
.login-view{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top right,#c7f1ed 0,transparent 34%),linear-gradient(145deg,#eef5f8,#f8fafc)}.login-card{width:min(460px,100%);padding:34px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.8);border-radius:28px;box-shadow:0 30px 90px rgba(15,23,42,.14)}.brand-mark{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--nav),var(--brand));color:#fff;display:grid;place-items:center;font-size:27px;font-weight:900;margin-bottom:20px;box-shadow:0 12px 32px rgba(11,122,117,.22)}.brand-mark.small{width:38px;height:38px;border-radius:12px;margin:0;font-size:18px}.login-card h1{font-size:34px;margin:0 0 8px}.login-card label,.field label{font-size:13px;font-weight:700;display:grid;gap:7px}.login-card input,.field input,.field select,.field textarea{width:100%;border:1px solid #d7dce5;border-radius:12px;padding:12px 13px;background:#fff;outline:none}.login-card input:focus,.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand2);box-shadow:0 0 0 3px rgba(19,166,156,.12)}.form-msg{min-height:20px;color:#b91c1c;font-size:13px}
.btn{border:0;border-radius:11px;padding:10px 14px;font-weight:750;transition:.15s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;box-shadow:0 8px 20px rgba(11,122,117,.18)}.btn.secondary{background:#e8f4f3;color:#08645f}.btn.ghost{background:#eef2f7;color:#334155}.btn.danger{background:#fff1f2;color:#be123c}.btn.small{padding:7px 10px;font-size:12px}.icon-btn{border:0;background:#f1f5f9;border-radius:10px;width:36px;height:36px;font-size:22px;color:#475569}
.app-shell{display:grid;grid-template-columns:252px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:linear-gradient(180deg,var(--nav),#101c32);color:#e5eef7;padding:18px;display:flex;flex-direction:column;z-index:30}.side-brand{display:flex;gap:11px;align-items:center;padding:8px 5px 20px}.side-brand strong{display:block;font-size:14px}.side-brand span{display:block;font-size:10px;color:#8fa4bd;margin-top:2px}.sidebar nav{display:grid;gap:6px;margin-top:6px}.nav-btn{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:11px;color:#cbd5e1;background:transparent;border:0;text-align:left;font-weight:700}.nav-btn .ico{width:22px;text-align:center}.nav-btn.active{background:rgba(255,255,255,.10);color:#fff}.nav-btn:hover{background:rgba(255,255,255,.07)}.side-foot{margin-top:auto}.user-badge{padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:12px;margin-bottom:10px;font-size:12px}.user-badge strong{display:block}.user-badge span{color:#93a4b8}.main{grid-column:2;min-width:0}.topbar{height:84px;position:sticky;top:0;z-index:20;background:rgba(244,247,251,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.85);display:flex;align-items:center;justify-content:space-between;padding:14px 26px}.topbar h2{margin:0;font-size:23px}.top-actions{display:flex;gap:9px}.content{padding:24px 26px 72px;max-width:1800px;margin:0 auto}.mobile-nav{display:none}
.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(5,minmax(0,1fr))}.stat{background:var(--panel);border:1px solid #e8edf3;border-radius:16px;padding:17px;box-shadow:0 5px 18px rgba(15,23,42,.035)}.stat .value{font-size:28px;font-weight:850;margin:5px 0}.stat .label{font-size:12px;color:var(--muted);font-weight:650}.stat .trend{font-size:11px;color:#0f766e}.two-col{grid-template-columns:1.25fr .75fr;margin-top:16px}.panel{background:var(--panel);border:1px solid #e6ebf1;border-radius:var(--radius);box-shadow:0 5px 22px rgba(15,23,42,.035);overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #edf0f4}.panel-head h3{margin:0;font-size:15px}.panel-body{padding:17px}.toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.search{min-width:230px;flex:1;max-width:430px;border:1px solid #dce2ea;border-radius:11px;padding:10px 12px;background:#fff}.filter{border:1px solid #dce2ea;border-radius:11px;padding:10px;background:#fff}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;background:#eef2f7;color:#475569}.badge.green{background:#dcfce7;color:#166534}.badge.yellow{background:#fef3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.badge.blue{background:#dbeafe;color:#1d4ed8}.badge.purple{background:#ede9fe;color:#6d28d9}.badge.gray{background:#e5e7eb;color:#374151}.progress{height:7px;background:#e5e7eb;border-radius:99px;overflow:hidden}.progress>i{display:block;height:100%;background:linear-gradient(90deg,var(--brand),var(--brand2));border-radius:99px}.quick-list{display:grid;gap:9px}.quick-row{display:flex;justify-content:space-between;align-items:center;padding:11px;border-radius:12px;background:#f8fafc}.quick-row strong{font-size:13px}.quick-row span{font-size:11px;color:var(--muted)}
.table-wrap{overflow:auto;max-width:100%;-webkit-overflow-scrolling:touch}.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;min-width:850px}.data-table th{position:sticky;top:0;z-index:2;background:#f8fafc;text-align:left;color:#475569;font-size:10.5px;letter-spacing:.02em;padding:9px 10px;border-bottom:1px solid #dfe5ec;white-space:nowrap}.data-table td{padding:9px 10px;border-bottom:1px solid #edf0f4;vertical-align:middle;white-space:nowrap}.data-table tr:hover td{background:#fbfdff}.data-table td.wrap{white-space:normal;min-width:220px}.data-table.ops{min-width:4600px}.data-table.ops th.ops-yellow{background:#fff3b0}.data-table.ops th.ops-red{background:#ffd9d9}.data-table.ops th.ops-blue{background:#dbeafe}.data-table.ops th.ops-green{background:#dcfce7}.data-table.ops th.ops-purple{background:#ede9fe}.clickable{color:#0b7a75;font-weight:800;cursor:pointer}.empty{padding:35px;text-align:center;color:var(--muted)}
.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.vpo-card{background:#fff;border:1px solid #e4e9ef;border-radius:16px;padding:16px;box-shadow:0 4px 18px rgba(15,23,42,.035)}.vpo-card .vpo-top{display:flex;justify-content:space-between;gap:10px}.vpo-card h3{margin:3px 0;font-size:17px}.vpo-card .meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0;font-size:11.5px}.vpo-card .meta span{color:var(--muted);display:block}.vpo-card .actions{display:flex;gap:7px;flex-wrap:wrap}
.modal{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px}.modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(3px)}.modal-card{position:relative;background:#fff;width:min(1120px,96vw);max-height:92vh;border-radius:20px;box-shadow:0 30px 100px rgba(0,0,0,.25);overflow:hidden;display:flex;flex-direction:column}.modal-head{padding:17px 20px;border-bottom:1px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0;font-size:18px}.modal-body{padding:19px;overflow:auto}.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.field{display:grid;gap:6px}.field.span2{grid-column:span 2}.field.span4{grid-column:1/-1}.field textarea{min-height:78px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px;padding-top:15px;border-top:1px solid #edf0f4}.parse-banner{padding:12px 14px;border-radius:12px;background:#ecfeff;border:1px solid #a5f3fc;color:#155e75;font-size:12px;margin-bottom:14px}.warning-banner{padding:12px 14px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px;margin-bottom:14px}
.toast{position:fixed;right:20px;top:20px;bottom:auto;z-index:2000;max-width:440px;min-width:300px;padding:12px;border-radius:12px;background:#0f172a;color:#fff;font-size:13px;box-shadow:0 15px 40px rgba(15,23,42,.25);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;display:grid;grid-template-columns:28px 1fr 30px;gap:9px;align-items:start}.toast.show{opacity:1;transform:none;pointer-events:auto}.toast.error{background:#991b1b}.toast.success{background:#065f46}.toast.info{background:#0f4c81}.toast-icon{width:26px;height:26px;border-radius:999px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-weight:900}.toast-copy{display:grid;gap:2px}.toast-copy b{font-size:12px}.toast-copy span{font-size:12px;line-height:1.35}.toast-close{border:0;background:rgba(255,255,255,.14);color:#fff;width:28px;height:28px;border-radius:8px;font-size:18px;line-height:1;cursor:pointer}.toast-close:hover{background:rgba(255,255,255,.24)}.file-pill{display:inline-flex;gap:6px;align-items:center;border:1px solid #dce3eb;border-radius:8px;padding:5px 8px;background:#fff;font-size:11px}.section-title{font-size:13px;margin:20px 0 10px}.hint{font-size:11px;color:var(--muted);margin-top:5px}.mobile-only{display:none}
@media(max-width:1180px){.stats{grid-template-columns:repeat(3,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}.field.span4{grid-column:1/-1}.two-col{grid-template-columns:1fr}}
@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.main{display:block}.topbar{height:auto;min-height:70px;padding:11px 14px}.topbar h2{font-size:19px}.top-actions .secondary{display:none}.content{padding:14px 12px 94px}.stats{grid-template-columns:repeat(2,1fr);gap:10px}.stat{padding:13px}.stat .value{font-size:23px}.cards{grid-template-columns:1fr}.panel{border-radius:14px}.panel-head{padding:13px}.panel-body{padding:12px}.toolbar{align-items:stretch}.search{min-width:0;max-width:none;width:100%}.top-actions .btn{padding:9px 10px;font-size:12px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:50;background:rgba(15,23,42,.96);border-radius:16px;padding:7px;box-shadow:0 14px 40px rgba(15,23,42,.3)}.mobile-nav .nav-btn{display:grid;place-items:center;gap:2px;padding:7px 2px;font-size:9px;border-radius:10px;text-align:center}.mobile-nav .nav-btn .ico{font-size:17px}.mobile-nav .more-label{display:none}.form-grid{grid-template-columns:1fr}.field.span2,.field.span4{grid-column:1}.modal{padding:7px}.modal-card{width:100%;max-height:96vh;border-radius:16px}.modal-body{padding:14px}.vpo-card .meta{grid-template-columns:1fr 1fr}.mobile-only{display:block}}
@media(max-width:390px){.stats{grid-template-columns:1fr 1fr}.stat .value{font-size:20px}.vpo-card .meta{grid-template-columns:1fr}}

/* VPO source file visibility */
.vpo-file-strip{margin:12px 0 0;padding:10px 12px;border:1px solid #dbe7ee;background:#f7fbfc;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.vpo-file-strip>div{min-width:0;display:grid;gap:2px}.vpo-file-strip span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}.vpo-file-strip b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.vpo-file-strip.missing{background:#fffaf2;border-color:#f0dfbd}
.vpo-source-panel{margin:0 0 14px;padding:14px;border:1px solid #dbe7ee;background:linear-gradient(135deg,#f7fbfc,#fff);border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:14px}.vpo-source-panel>div:first-child{min-width:0;display:grid;gap:4px}.vpo-source-panel strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:720px}.vpo-source-panel small{font-size:11px;color:var(--muted)}
@media(max-width:700px){.vpo-file-strip,.vpo-source-panel{align-items:stretch;flex-direction:column}.vpo-file-strip b,.vpo-source-panel strong{max-width:100%}.vpo-file-strip .btn,.vpo-source-panel .btn{width:100%}}

/* ===== 2026 premium operations refresh ===== */
:root{--bg:#f5f6fb;--panel:#ffffff;--ink:#182236;--muted:#718096;--line:#e8ebf2;--nav:#ffffff;--nav2:#ffffff;--brand:#0b8f89;--brand2:#15aaa1;--shadow:0 8px 28px rgba(47,55,82,.06);--radius:14px}
html,body{background:linear-gradient(180deg,#f7f8fc 0,#f3f5fa 100%);font-size:14px}
.app-shell{grid-template-columns:238px 1fr}.sidebar{width:238px;background:#fff;color:#334155;border-right:1px solid #e7eaf1;padding:14px 12px}.side-brand{padding:8px 8px 18px;border-bottom:1px solid #eef0f5;margin-bottom:8px}.side-brand strong{color:#152039;font-size:13px;letter-spacing:.01em}.side-brand span{color:#8791a5;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.brand-mark.small{background:linear-gradient(135deg,#0e7e79,#1daaa1);box-shadow:none}.sidebar nav{gap:3px}.nav-btn{color:#677287;padding:10px 10px;border-radius:9px;font-size:12px;font-weight:700}.nav-btn .ico{color:#667085;font-size:14px}.nav-btn.active{background:#172033;color:#fff;box-shadow:0 5px 15px rgba(23,32,51,.12)}.nav-btn.active .ico{color:#fff}.nav-btn:hover{background:#f3f5f9;color:#172033}.nav-btn.active:hover{background:#172033;color:#fff}.side-foot{border-top:1px solid #eef0f5;padding-top:10px}.user-badge{border:1px solid #e7eaf1;background:#f8fafc;color:#334155}.user-badge span{color:#8993a5}.main{background:transparent}.topbar{height:76px;background:rgba(255,255,255,.94);border-bottom:1px solid #e8eaf0;padding:12px 22px}.topbar h2{font-size:21px;color:#172033}.topbar .eyebrow{color:#0d8c86}.content{padding:18px 22px 60px;max-width:1900px}.btn{border-radius:8px;padding:9px 12px;font-weight:800;font-size:12px}.btn.small{padding:6px 9px;font-size:11px}.btn.tiny{padding:5px 7px;font-size:10px;border-radius:7px}.btn:disabled{opacity:.4;cursor:not-allowed;transform:none}.btn.primary{background:linear-gradient(135deg,#0d8580,#13a39b);box-shadow:0 5px 14px rgba(13,133,128,.15)}.btn.secondary{background:#eaf7f6;color:#08716c}.btn.ghost{background:#f1f3f7;color:#43506a}
.panel{border:1px solid #e6e9f0;border-radius:12px;box-shadow:var(--shadow)}.panel-head{padding:13px 15px}.panel-head h3{font-size:14px}.stat{border-radius:11px;border:1px solid #e7eaf1;padding:14px 15px;box-shadow:0 5px 16px rgba(52,61,88,.04)}.stat .value{font-size:26px;color:#172033}.stat .label{font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#707b90}.stat .trend{color:#5d6b80}.executive-stats{margin:14px 0;grid-template-columns:repeat(5,minmax(0,1fr))}
.hero-strip,.ops-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(120deg,#fffaf4 0,#fff 55%,#eef9f8 100%);border:1px solid #e8e9ef;border-radius:12px;padding:16px 18px;box-shadow:0 5px 18px rgba(40,48,75,.04)}.hero-strip h3,.ops-hero h3{margin:4px 0 3px;font-size:21px}.hero-strip p,.ops-hero p{margin:0;color:#778197;font-size:11px}.hero-eyebrow{font-size:9px;letter-spacing:.09em;font-weight:900;color:#b56c1d}.hero-actions{display:flex;gap:8px;flex-wrap:wrap}
.workflow-panel{margin-bottom:14px}.sync-pill{font-size:9px;font-weight:900;color:#13856f;background:#e9fbf6;padding:5px 8px;border-radius:999px}.stage-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:12px}.stage-card{padding:12px;border-right:1px solid #eceef3;background:#fff}.stage-card:last-child{border-right:0}.stage-top{display:flex;justify-content:space-between;gap:8px;font-size:10px;font-weight:900;text-transform:uppercase;color:#5f697d}.stage-top b{font-size:20px;color:#26324a}.stage-sub{font-size:10px;color:#8791a5;margin:5px 0 8px}.stage-bar{height:5px;background:#eef0f4;border-radius:99px;overflow:hidden}.stage-bar i{display:block;height:100%;background:#10a49a;border-radius:99px}.stage-card.orange .stage-bar i{background:#f0a44d}.stage-card.amber .stage-bar i{background:#d9a623}.stage-card.violet .stage-bar i{background:#8b78d2}.stage-card.teal .stage-bar i{background:#1ca99f}.stage-card.green .stage-bar i{background:#5aa96d}
.command-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px}.attention-card{background:#fff;border:1px solid #e7e9f0;border-radius:12px;box-shadow:var(--shadow);padding:14px}.attention-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #eef0f4;padding-bottom:10px}.attention-head>div{display:flex;gap:9px}.attention-head h3{margin:0;font-size:14px}.attention-dot{display:block;width:6px;height:30px;border-radius:99px;background:#f05b67}.alert-list{display:grid;margin-top:8px}.alert-row{display:flex;gap:10px;text-align:left;border:0;background:#fff;padding:11px 4px;border-bottom:1px solid #f0f1f5;color:#26324a}.alert-row:last-child{border-bottom:0}.alert-row:hover{background:#fafbfe}.alert-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#f1f4f9;color:#526078;font-weight:900}.alert-row div{display:grid;gap:3px}.alert-row b{font-size:11px}.alert-row small{font-size:9.5px;color:#8791a5;line-height:1.35}.cell-sub{display:block;font-size:9px;color:#8a94a7;margin-top:2px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.command-table{min-width:950px}.command-table td{padding-top:10px;padding-bottom:10px}
.ops-hero{margin-bottom:12px;background:linear-gradient(120deg,#fff 0,#f6fbfb 100%)}.ops-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.ops-panel .panel-head{background:#fbfcfe}.ops-toolbar .search{max-width:none}.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;border-bottom:1px solid #edf0f4;background:#fff;font-size:10px;color:#6f7b91}.pager:last-child{border-top:1px solid #edf0f4;border-bottom:0}.pager-controls{display:flex;align-items:center;gap:9px}.ops-scroll{max-height:68vh}.data-table.ops{min-width:4700px}.data-table.ops th{top:0}.data-table.ops th.ops-vpo-action,.data-table.ops td.ops-vpo-action{position:sticky;left:0;z-index:4;background:#fff;min-width:130px;max-width:150px;border-right:1px solid #e8ebf1}.data-table.ops th.ops-vpo-action{z-index:6;background:#e9f7f5}.data-table.ops tbody tr:hover td.ops-vpo-action{background:#f8fffe}.file-name{max-width:120px;margin-top:5px}.data-table th{background:#f7f8fb;color:#536078;font-size:9.5px;font-weight:850}.data-table td{font-size:11px}.data-table.ops th.ops-yellow{background:#fff0ad}.data-table.ops th.ops-red{background:#ffe0df}.data-table.ops th.ops-blue{background:#dceafe}.data-table.ops th.ops-green{background:#dcf7e8}.data-table.ops th.ops-purple{background:#e9e2f9}
.vpo-card{border-radius:12px;box-shadow:0 5px 18px rgba(46,55,82,.045)}.vpo-card h3{font-size:16px}.vpo-file-strip{background:#f4faf9;border-color:#d7e9e7}.vpo-file-strip .btn{white-space:nowrap}
.search,.filter{border-radius:8px;border-color:#dfe3ea;padding:9px 10px;font-size:11px}.search:focus,.filter:focus{outline:none;border-color:#71bdb8;box-shadow:0 0 0 3px rgba(13,133,128,.08)}
@media(max-width:1280px){.executive-stats{grid-template-columns:repeat(3,1fr)}.stage-grid{grid-template-columns:repeat(2,1fr)}.stage-card{border-bottom:1px solid #eceef3}.command-grid{grid-template-columns:1fr}.attention-card{display:block}.ops-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.sidebar{display:none}.topbar{background:#fff}.hero-strip,.ops-hero{align-items:flex-start;flex-direction:column}.executive-stats,.ops-stats{grid-template-columns:repeat(2,1fr)}.stage-grid{grid-template-columns:1fr}.stage-card{border-right:0}.command-grid{grid-template-columns:1fr}.attention-card{order:-1}.pager{align-items:flex-start;flex-direction:column}.pager-controls{width:100%;justify-content:space-between}.ops-scroll{max-height:none}.mobile-nav{background:#172033}.vpo-file-strip .btn{width:auto}}

/* ===== Wax / customer casting / GATI / export workflow ===== */
.workflow-table{min-width:1700px}
.doc-action-strip{margin-top:14px;padding:12px;border:1px solid #e5e9f0;background:#f8fafc;border-radius:10px;display:grid;grid-template-columns:auto 1fr auto 1fr;align-items:center;gap:8px;font-size:11px;color:#6d788c}
.sheet-tabs{display:flex;gap:6px;flex-wrap:wrap}.sheet-tab{border:1px solid #dfe5ec;background:#f8fafc;color:#526078;padding:7px 10px;border-radius:8px;font-size:11px;font-weight:800;cursor:pointer}.sheet-tab b{margin-left:4px}.sheet-tab.active{background:#172033;color:#fff;border-color:#172033}
.ops-head-stack{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.ops-head-stack .ops-toolbar{width:auto;flex:1;justify-content:flex-end}.ops-enhanced{min-width:6500px}.data-table.ops th.ops-flow{background:#dff4ef;color:#295d58}.action-stack{min-width:96px;display:grid;gap:4px}.action-stack .btn{width:100%}
.badge.gray{background:#eef1f5;color:#5e687b}.badge.green{background:#dcf7e8;color:#166534}.badge.yellow{background:#fff3c7;color:#92400e}.badge.red{background:#fee2e2;color:#991b1b}.badge.blue{background:#dbeafe;color:#1d4ed8}
@media(max-width:900px){.doc-action-strip{grid-template-columns:1fr}.ops-head-stack{align-items:stretch;flex-direction:column}.ops-head-stack .ops-toolbar{width:100%;justify-content:stretch}.sheet-tabs{width:100%;overflow:auto;flex-wrap:nowrap}.sheet-tab{white-space:nowrap}}

/* ===== V6: GATI daily control + late order attention ===== */
.dashboard-kpis{grid-template-columns:repeat(6,minmax(0,1fr));margin:14px 0}.dashboard-kpis .stat{min-height:102px}.dashboard-order-table{min-width:1220px}
.late-layer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}.late-layer{border:1px solid transparent;border-radius:12px;padding:11px 14px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center}.late-layer span{font-size:9px;font-weight:900;letter-spacing:.08em}.late-layer b{grid-row:1/3;grid-column:2;font-size:25px}.late-layer small{font-size:10px}.late-layer.late-1{background:#fff9db;border-color:#f7e79b;color:#765a00}.late-layer.late-2{background:#fff0df;border-color:#f5c38f;color:#9a4b00}.late-layer.late-3{background:#ffe7e7;border-color:#f3abab;color:#a71919}.late-layer:hover{transform:translateY(-1px)}
.late-badge{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:850}.late-badge.ontime{background:#e8f7ef;color:#167046}.late-badge.late-1{background:#fff0a9;color:#765a00}.late-badge.late-2{background:#ffd6ab;color:#9a4b00}.late-badge.late-3{background:#ffc5c5;color:#9c1515}
.data-table tbody tr.late-1>td{background:#fffdf1}.data-table tbody tr.late-2>td{background:#fff5eb}.data-table tbody tr.late-3>td{background:#fff0f0}.data-table tbody tr.late-1:hover>td{background:#fff9d8}.data-table tbody tr.late-2:hover>td{background:#ffe8d2}.data-table tbody tr.late-3:hover>td{background:#ffe0e0}.data-table.ops tbody tr.late-1 td.ops-vpo-action{background:#fffdf1}.data-table.ops tbody tr.late-2 td.ops-vpo-action{background:#fff5eb}.data-table.ops tbody tr.late-3 td.ops-vpo-action{background:#fff0f0}
.late-popup-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.late-box{border-radius:12px;padding:12px;border:1px solid;display:grid;gap:3px}.late-box b{font-size:25px}.late-box span{font-size:11px}.late-box.late-1{background:#fff9db;border-color:#f7e79b;color:#765a00}.late-box.late-2{background:#fff0df;border-color:#f5c38f;color:#9a4b00}.late-box.late-3{background:#ffe7e7;border-color:#f3abab;color:#a71919}.alert-row.critical{background:#fff7f7}.alert-row.critical .alert-icon{background:#fee2e2;color:#b91c1c}

.gati-hero{border-left:4px solid #0f8f86}.gati-toolbar{margin:0 0 12px}.gati-toolbar .panel-head{padding:10px 14px}.gati-toolbar select{min-width:420px;max-width:720px}.gati-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.gati-kpis .stat{min-height:96px}.gati-dept-panel{margin-bottom:12px}.gati-dept-grid{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px}.dept-chip{border:1px solid #dfe5ec;background:#fff;border-radius:9px;padding:8px 11px;display:flex;gap:8px;align-items:center;color:#3b465b}.dept-chip b{font-size:11px}.dept-chip span{font-size:10px;color:#7c8798}.dept-chip:hover{border-color:#8ecbc5;background:#f3fbfa}
.gati-sheet-panel{overflow:visible}.gati-scroll{max-height:70vh;border-top:1px solid #edf0f4}.gati-table{min-width:2650px;border-collapse:separate}.gati-table thead tr:first-child th{top:0;height:34px;background:#f4f5f7;color:#526078;z-index:5;border-right:1px solid #dfe3e8}.gati-table thead tr:first-child th:nth-child(12){background:#e8f4ff}.gati-filter-row th{top:34px!important;z-index:5!important;background:#fafafa!important;padding:3px 4px!important;border-bottom:1px solid #d7dce3!important;border-right:1px solid #e3e6eb}.gati-filter-cell input,.gati-filter-cell select{width:100%;min-width:76px;border:0;border-bottom:1px solid #b9c1cd;background:#fff;padding:4px 5px;font-size:9.5px;outline:none}.gati-filter-cell input:focus,.gati-filter-cell select:focus{border-color:#0f8f86;box-shadow:inset 0 -1px #0f8f86}.gati-table td{border-right:1px solid #edf0f4}.gati-table tbody tr.lock-change-row:not(.late-1):not(.late-2):not(.late-3)>td{background:#fff0e8}.gati-table tbody tr.lock-change-row:not(.late-1):not(.late-2):not(.late-3):hover>td{background:#ffe5d7}.gati-table .cell-sub.late-1{color:#8a6700}.gati-table .cell-sub.late-2{color:#b35400}.gati-table .cell-sub.late-3{color:#b91c1c;font-weight:800}.diamond-recon-panel .panel-head{align-items:flex-start}.diamond-recon-panel .search{max-width:350px}

@media(max-width:1280px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)}.gati-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.dashboard-kpis,.gati-kpis{grid-template-columns:repeat(2,1fr)}.late-layer-grid,.late-popup-summary{grid-template-columns:1fr}.gati-toolbar .panel-head{align-items:stretch;flex-direction:column}.gati-toolbar select{min-width:0;width:100%;max-width:none}.gati-scroll{max-height:none}.diamond-recon-panel .panel-head{flex-direction:column}.diamond-recon-panel .search{max-width:none;width:100%}}


/* GATI V7: multi-filter, casting control, revised delivery */
.gati-multi-bar{padding:0 16px 14px;display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}.gati-multi-bar>.eyebrow{padding:9px 4px 0 0}.multi-filter{position:relative}.multi-filter summary{list-style:none;cursor:pointer;border:1px solid #dce3ea;background:#fff;border-radius:9px;padding:7px 10px;font-size:10px;font-weight:800;color:#334155;min-width:92px}.multi-filter summary::-webkit-details-marker{display:none}.multi-filter summary:after{content:' ▾';color:#8491a3}.multi-filter summary b{background:#0f8f86;color:#fff;border-radius:999px;padding:1px 5px;margin-left:3px}.multi-filter[open] summary{border-color:#0f8f86;box-shadow:0 0 0 2px rgba(15,143,134,.08)}.multi-filter-menu{position:absolute;z-index:80;top:38px;left:0;min-width:220px;max-height:300px;overflow:auto;background:#fff;border:1px solid #d8e0e8;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:8px}.multi-filter-menu label{display:flex;align-items:center;gap:7px;padding:6px 7px;border-radius:7px;font-size:10px;white-space:nowrap}.multi-filter-menu label:hover{background:#f3f7f7}.multi-filter-menu input{accent-color:#0f8f86}.multi-filter-actions{position:sticky;top:-8px;background:#fff;display:flex;gap:5px;padding:5px 3px 8px;border-bottom:1px solid #edf0f3;margin-bottom:4px}.link-btn{border:0;background:#eef6f5;color:#0d746d;border-radius:7px;padding:5px 8px;font-size:9px;font-weight:800;cursor:pointer}.link-btn.apply{margin-left:auto;background:#0f8f86;color:#fff}.gati-table{min-width:3900px}.gati-table thead tr:first-child th{white-space:nowrap}.gati-table td{white-space:nowrap}.diamond-mini-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.diamond-mini-summary>div{background:#f7fafc;border:1px solid #e3e9ef;border-radius:10px;padding:10px}.diamond-mini-summary span{display:block;font-size:9px;color:#64748b;text-transform:uppercase;font-weight:800}.diamond-mini-summary b{display:block;margin-top:3px;font-size:12px}.gati-filter-cell input{min-width:105px}.gati-filter-cell input::placeholder{color:#a0a9b6;font-size:9px}.workflow-table{min-width:2050px}
@media(max-width:760px){.gati-multi-bar{padding:0 10px 12px}.multi-filter summary{min-width:84px}.multi-filter-menu{position:fixed;left:14px;right:14px;top:auto;min-width:0;max-height:45vh}.diamond-mini-summary{grid-template-columns:1fr}.gati-table{min-width:3900px}}

/* GATI V8: reliable Excel-style multi-select column filters */
.excel-help{margin-top:4px}.excel-filter-th{position:sticky!important;top:0!important;z-index:18!important;padding:0!important;overflow:visible!important;background:#f4f5f7!important}.excel-filter-th.no-filter{padding:8px 10px!important}.excel-filter{position:relative;display:block}.excel-filter>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:112px;padding:8px 8px 8px 10px;cursor:pointer;font-size:10px;font-weight:800;color:#526078;white-space:nowrap}.excel-filter>summary::-webkit-details-marker{display:none}.excel-filter-icon{font-size:9px;color:#64748b;border-left:1px solid #d6dde5;padding-left:7px}.excel-filter-active{background:#e7f5f3!important}.excel-filter-active .excel-filter>summary{color:#0b706a}.excel-filter-active .excel-filter-icon{color:#0f8f86;font-weight:900}.excel-filter[open]{z-index:120}.excel-filter[open]>summary{background:#e9f7f5;box-shadow:inset 0 -2px #0f8f86}.excel-filter-menu{position:absolute;z-index:999;left:0;top:100%;width:270px;max-width:78vw;background:#fff;border:1px solid #cfd8e3;border-radius:6px;box-shadow:0 14px 38px rgba(15,23,42,.24);padding:8px;text-align:left;color:#1e293b}.excel-filter-title{display:flex;justify-content:space-between;align-items:center;padding:3px 3px 8px;font-size:10px}.excel-filter-title span{color:#64748b;font-size:9px}.excel-filter-search input,.multi-filter-search input{width:100%;border:1px solid #cfd8e3;border-radius:5px;background:#fff;padding:7px 8px;font-size:11px;outline:none}.excel-filter-search input:focus,.multi-filter-search input:focus{border-color:#0f8f86;box-shadow:0 0 0 2px rgba(15,143,134,.09)}.excel-filter-actions{display:flex;gap:5px;padding:7px 0}.excel-filter-values,.filter-option-list{max-height:260px;overflow:auto;border:1px solid #edf0f4;border-radius:5px;background:#fff;padding:3px}.filter-option{display:flex;align-items:center;gap:7px;padding:5px 6px;border-radius:4px;font-size:10px;white-space:nowrap;cursor:pointer}.filter-option:hover{background:#edf7f6}.filter-option input{accent-color:#0f8f86;flex:0 0 auto}.excel-filter-footer{display:flex;justify-content:space-between;align-items:center;padding-top:8px;color:#64748b;font-size:9px}.multi-filter-search{padding:2px 2px 7px}.multi-filter summary.active{border-color:#0f8f86;background:#eaf8f6;color:#0d746d}.gati-table thead tr:first-child th:nth-child(12){background:#e8f4ff!important}.gati-table thead tr:first-child th.excel-filter-active:nth-child(12){background:#d9f2ee!important}.gati-scroll{overflow:auto!important}.gati-table{border-collapse:separate!important;border-spacing:0}.gati-table thead{overflow:visible}.gati-table thead tr,.gati-table thead th{overflow:visible}.gati-sheet-panel{overflow:visible}.gati-toolbar{overflow:visible}.gati-multi-bar{overflow:visible}
@media(max-width:760px){.excel-filter-menu{position:fixed;left:12px;right:12px;top:18vh;width:auto;max-width:none;max-height:64vh}.excel-filter-values{max-height:38vh}}

/* GATI V9: reliable Excel-style filters using a fixed popover */
.multi-filter-trigger{display:inline-flex;align-items:center;gap:6px;border:1px solid #dce3ea;background:#fff;border-radius:9px;padding:7px 10px;font-size:10px;font-weight:800;color:#334155;cursor:pointer;min-width:92px;justify-content:space-between}.multi-filter-trigger:hover{border-color:#0f8f86}.multi-filter-trigger.active{border-color:#0f8f86;background:#eaf8f6;color:#0d746d}.multi-filter-trigger b{background:#0f8f86;color:#fff;border-radius:999px;padding:1px 5px}.multi-filter-trigger span{font-size:8px;color:#64748b}
.excel-filter-trigger{border:0;background:transparent;width:100%;min-width:116px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 8px 9px 10px;cursor:pointer;font:inherit;color:inherit;font-size:10px;font-weight:800;white-space:nowrap}.excel-filter-trigger:hover{background:#eaf8f6}.excel-filter-active .excel-filter-trigger{color:#0b706a;background:#e7f5f3}.excel-filter-icon{font-size:9px;min-width:16px;text-align:center;color:#64748b;border-left:1px solid #d6dde5;padding-left:6px}.excel-filter-active .excel-filter-icon{color:#0f8f86}
.gati-filter-popover{position:fixed;z-index:5000;background:#fff;border:1px solid #cfd8e3;border-radius:10px;box-shadow:0 22px 60px rgba(15,23,42,.3);padding:10px;color:#1e293b}.gati-filter-popover.hidden{display:none}.gati-filter-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:2px 2px 8px}.gati-filter-popover-head>div{display:grid;gap:2px}.gati-filter-popover-head b{font-size:12px}.gati-filter-popover-head span{font-size:9px;color:#64748b}.filter-pop-close{border:0;background:#eef2f5;width:27px;height:27px;border-radius:7px;cursor:pointer;font-size:18px;color:#475569}.filter-pop-search{width:100%;border:1px solid #cfd8e3;border-radius:6px;background:#fff;padding:8px 9px;font-size:11px;outline:none}.filter-pop-search:focus{border-color:#0f8f86;box-shadow:0 0 0 2px rgba(15,143,134,.09)}.filter-pop-actions{display:flex;gap:6px;padding:8px 0}.filter-pop-actions button{border:0;background:#eef6f5;color:#0d746d;border-radius:6px;padding:5px 8px;font-size:9px;font-weight:800;cursor:pointer}.filter-pop-list{max-height:270px;overflow:auto;border:1px solid #edf0f4;border-radius:6px;padding:3px}.filter-pop-list label{display:flex;align-items:center;gap:7px;padding:6px;border-radius:4px;font-size:10px;cursor:pointer;white-space:nowrap}.filter-pop-list label:hover{background:#edf7f6}.filter-pop-list input{accent-color:#0f8f86}.filter-pop-footer{display:flex;align-items:center;gap:7px;padding-top:9px}.filter-pop-footer>[data-pop-count]{margin-right:auto}
@media(max-width:760px){.toast{left:12px;right:12px;top:12px;bottom:auto;min-width:0;max-width:none}.gati-filter-popover{left:12px!important;right:12px!important;top:18vh!important;width:auto!important;max-height:64vh}.filter-pop-list{max-height:38vh}}

/* V10: visible Excel-style second filter row */
.gati-excel-filter-row th{position:sticky!important;top:34px!important;z-index:17!important;background:#fff!important;padding:3px 4px!important;border-right:1px solid #e1e6ed!important;border-bottom:1px solid #d8dee8!important}.gati-filter-row-btn{width:100%;min-width:108px;border:1px solid #d7dee7;background:#fff;border-radius:4px;padding:5px 6px;font-size:9px;color:#475569;display:flex;justify-content:space-between;align-items:center;cursor:pointer;white-space:nowrap}.gati-filter-row-btn:hover,.gati-excel-filter-row th.excel-filter-active .gati-filter-row-btn{border-color:#0f8f86;background:#eaf8f6;color:#0d746d}.gati-table thead tr:first-child th{top:0!important}.gati-scroll{overflow:auto!important}

.build-chip{display:inline-flex;vertical-align:middle;margin-left:6px;padding:2px 6px;border-radius:999px;background:#e6fffb;color:#0f766e;font-size:9px;font-style:normal;letter-spacing:.08em;border:1px solid #99f6e4}

.top-build{font-style:normal;display:inline-flex;align-items:center;height:30px;padding:0 10px;border:1px solid #99d8d2;background:#eaf8f6;color:#0b706a;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.08em}

/* V15: exact order-wise GATI bag display */
.gati-bags{display:block;min-width:150px;max-width:260px;white-space:normal;line-height:1.35;font-weight:700;color:#17324d;word-break:break-word}
