/* TWIGG v4 · shared themes + two-page executive report. */
:root{--surface:#fff;--surface-soft:#f5f8fd;--muted:#526582;--ink:#102746;--line:#dce5f1;--shadow:0 3px 14px #10274608}
html[data-theme=dark]{color-scheme:dark;--surface:#18263b;--surface-soft:#111d30;--bg:#0d1726;--ink:#e6eef9;--muted:#a6b8d0;--line:#30435e;--shadow:0 3px 14px #0002}
body{font:14px/1.45 Arial,sans-serif}.brand img{width:185px;height:auto;border-radius:4px;background:#fff;padding:7px}.brand>div{display:none}.sidebar{overflow-y:auto}.brand-divider{margin:15px 12px}.sidebar-collapsed .brand img{width:49px!important;height:32px!important;object-fit:contain;padding:3px}.support-contact{display:grid;gap:3px;margin-top:13px;border-top:1px solid #ffffff24;padding-top:12px;font-size:12px;color:#dce8f9;line-height:1.4}.support-contact span{color:#acbfd9}.topbar,.panel,.kpi,.metric-box,.overview-tile,.login-box,.modal,.filterbar,.form-control{background:var(--surface);color:var(--ink);border-color:var(--line)}.panel-title,.page-hero h1,.kpi-value,.overview-tile strong,.metric-box b,.breadcrumb strong,.user-details b,table strong{color:var(--ink)}.description,.page-hero p,.panel-subtitle,.chart-footnote,.side-footer-note,.overview-tile small,.overview-tile span,.kpi-foot,td,.clock{color:var(--muted)}.btn,.icon-btn,.tab{background:var(--surface);color:var(--ink);border-color:var(--line)}.btn.primary,.tab.active{background:#146f75;color:#fff}.btn:hover{border-color:#168c89}.form-control,select,input,textarea{color:var(--ink);background:var(--surface)}th{background:var(--surface-soft);color:var(--muted)}td,th{border-color:var(--line)}html[data-theme=dark] .admin-note,html[data-theme=dark] .help-block,html[data-theme=dark] .comment-card,html[data-theme=dark] .detail-grid>div{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}html[data-theme=dark] .btn.ghost{color:var(--ink);background:var(--surface)}.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:12px;margin:10px 0}.permission-grid label{font-size:14px;color:var(--muted)}.permission-grid select{display:block;width:100%;margin-top:5px}.access-user{padding:14px 0;border-bottom:1px solid var(--line)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.meeting-active .topbar{height:48px;flex-shrink:0}.meeting-active .footer{display:none}.meeting-active .content{padding:12px 16px}.meeting-active .nav-link{padding-top:7px;padding-bottom:7px}.meeting-active .topbar .user-details small{display:none}.meeting-active .breadcrumb{font-size:13px}.meeting-active .main-shell{min-height:100dvh}
.report-dashboard{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:calc(100dvh - 72px)}.report-heading{display:flex;align-items:center;gap:14px;min-height:42px;flex-shrink:0}.report-heading>img{width:135px;height:39px;object-fit:contain;background:#fff;border-radius:4px;padding:4px}.report-heading h1{font-size:clamp(14px,1.18vw,21px);line-height:1.2;margin:0;font-weight:800;letter-spacing:.025em;color:var(--ink)}.report-heading p{font-size:14px;color:var(--muted);margin:3px 0 0}.report-heading p span{font-size:12px}.report-controls{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}.report-controls .tiny{white-space:nowrap;padding:5px 8px;font-size:12px;line-height:1.2}.import-control{cursor:pointer;display:inline-flex;align-items:center}
.report-filter-row{display:flex;gap:10px;align-items:center;flex-shrink:0}.report-filter-row .filterbar{flex:1;display:flex;flex-wrap:nowrap;gap:8px;margin:0;padding:6px 10px;box-shadow:none;min-height:0}.report-filter-row .filter{display:flex;flex-direction:row;align-items:center;gap:5px;min-width:0}.report-filter-row .filter label{font-size:12px;margin:0;white-space:nowrap}.report-filter-row .filter input,.report-filter-row .filter select{height:30px;font-size:13px;padding:3px 5px;border:1px solid var(--line);border-radius:5px;background:var(--surface-soft);color:var(--ink);min-width:0}.report-filter-row .filter.date input{width:122px}.report-filter-row .filter-spacer{display:none}.report-filter-row .filterbar>.btn{font-size:12px;line-height:1.2;padding:5px 9px;height:30px;white-space:nowrap}.report-source{font-size:11px;color:#99620c;border-left:3px solid #dda53a;padding-left:8px;min-width:138px;line-height:1.3}.report-source small{display:block;margin-top:3px;font-size:11px;color:var(--muted)}
.report-section-title{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-shrink:0}.report-section-title h2{margin:0;font-size:12px;letter-spacing:.13em;color:var(--muted)}.report-section-title>span{font-size:12px;color:var(--muted)}
.report-kpis{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;flex-shrink:0}.report-kpi{--accent:#397cf2;display:flex;flex-direction:column;align-items:flex-start;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:11px;padding:9px 10px;min-width:0;text-align:left;box-shadow:var(--shadow);line-height:1.25}.report-kpi.violet{--accent:#8660e8}.report-kpi.teal{--accent:#0bad9d}.report-kpi.amber{--accent:#dea52f}.report-kpi.red{--accent:#ea5f76}.report-kpi>div{display:flex;gap:6px;align-items:center;width:100%;font-size:12px;color:var(--muted);min-height:24px}.kpi-symbol{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:8px;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent);flex-shrink:0}.kpi-symbol svg{width:18px;height:18px}.report-kpi strong{font-size:clamp(18px,1.45vw,28px);letter-spacing:-.04em;line-height:1.35;margin-top:4px;white-space:nowrap}.report-kpi small{font-size:11px;line-height:1.3;margin-top:3px;color:var(--muted);overflow-wrap:normal}
.core-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;flex:1;min-height:0;grid-template-rows:minmax(270px,1fr) minmax(295px,1.05fr)}.report-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:11px 12px;box-shadow:var(--shadow)}.report-panel>header{display:flex;align-items:center;gap:7px;flex-shrink:0;min-height:25px;margin-bottom:7px}.report-area-icon{width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;border-radius:7px;background:#397cf20d;color:#397cf2;flex-shrink:0}.report-area-icon svg{width:17px;height:17px}.report-panel h2{font-size:15px;line-height:1.2;margin:0;margin-right:auto;color:var(--ink)}.report-panel .tiny{padding:3px 7px;font-size:12px;line-height:1.2;white-space:nowrap}.report-caption{font-size:12px;line-height:1.25;color:var(--muted);margin:0 0 7px;flex-shrink:0}.report-status{display:inline-flex;align-items:center;gap:4px;font-size:11px;line-height:1.2;white-space:nowrap;color:var(--muted)}.report-status i,.qaqc-data{display:inline-flex;width:17px;height:17px;align-items:center;justify-content:center;border-radius:50%;font-size:12px;font-weight:800;font-style:normal;background:#9aa8bd18;color:#73839e;flex-shrink:0}.report-status.green{color:#087b64}.report-status.green i,.qaqc-data.green{background:#13a77c1c;color:#078366}.report-status.amber{color:#9e6d00}.report-status.amber i,.qaqc-data.amber{background:#e9a22920;color:#a57200}.report-status.red{color:#ba3255}.report-status.red i,.qaqc-data.red{background:#e75f691b;color:#c6385a}.report-count{color:var(--muted);font-size:12px;white-space:nowrap}.report-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex-shrink:0}.report-stats.four{grid-template-columns:repeat(4,minmax(0,1fr))}.report-stat{background:var(--surface-soft);border:1px solid var(--line);border-radius:7px;min-width:0;padding:6px 7px}.report-stat>span{font-size:12px;line-height:1.25;color:var(--muted);display:block}.report-stat>b{display:block;color:var(--ink);font-size:19px;line-height:1.3;margin-top:3px}.report-stat>small{font-size:11px;color:var(--muted)}.report-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:12px;color:var(--muted);line-height:1.2;min-height:16px;margin:7px 0 4px;flex-shrink:0}.report-legend span{display:flex;align-items:center;gap:4px}.report-legend span:before{content:'';width:7px;height:7px;background:var(--legend);border-radius:50%}.report-legend em{margin-left:auto;font-size:11px;font-style:normal}.report-chart{flex:1;min-height:135px;display:flex;align-items:center;justify-content:center;min-width:0}.report-chart svg{width:100%;height:100%;min-height:135px;max-height:265px;overflow:visible}.report-chart svg text{fill:var(--muted)!important;font-size:14px!important}.report-chart-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 4px;flex-shrink:0}.report-chart-tabs .active,.report-navigation .active{background:#176e72;color:#fff;border-color:#176e72}.report-note{font-size:11px;line-height:1.35;color:var(--muted);margin-top:5px;flex-shrink:0}.process-parameters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;flex-shrink:0}.process-parameters>div{display:flex;flex-direction:column;padding:6px;border:1px solid var(--line);background:var(--surface-soft);border-radius:7px}.process-parameters span{font-size:12px;color:var(--muted)}.process-parameters b{font-size:17px;color:var(--ink)}.process-parameters small{font-size:11px;color:var(--muted)}
.qaqc-controls{display:flex;gap:7px;justify-content:space-between;align-items:center;margin-bottom:5px;flex-shrink:0}.qaqc-controls>span{font-size:11px;color:var(--muted);line-height:1.2}.qaqc-controls select{font-size:11px;border:1px solid var(--line);border-radius:4px;background:var(--surface-soft);color:var(--ink);max-width:145px;padding:3px}.report-qaqc{width:100%;border-collapse:collapse;flex:1}.report-qaqc td,.report-qaqc th{font-size:13px;padding:3px 4px;line-height:1.2;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}.report-qaqc td:first-child,.report-qaqc th:first-child{text-align:left}.report-qaqc td:first-child{font-weight:700;color:var(--ink)}.report-qaqc th{font-size:11px;letter-spacing:0}.report-qaqc .qaqc-data{font-size:11px;width:15px;height:15px}.handling-stats .report-stat{padding:4px 5px}.handling-stats .report-stat>span{font-size:11px;line-height:1.15}.handling-stats .report-stat>b{font-size:16px;margin-top:2px}.handling-stats{gap:5px}.asset-title{display:flex;gap:7px;align-items:center;margin-bottom:8px}.asset-title>b{font-size:14px;margin-right:auto}.asset-section{padding:4px 0 10px}.asset-section .report-stat{padding:5px}.asset-section .report-stat>b{font-size:16px}.asset-section>small{font-size:11px;color:var(--muted)}.tsf-section{border-top:1px solid var(--line);padding-top:12px;flex:1}.tsf-section p{font-size:13px;line-height:1.45;color:var(--muted);margin:5px 0}
.report-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px;flex-shrink:0}.report-navigation{display:flex;align-items:center;gap:6px}.report-navigation .tiny{font-size:12px;padding:5px 9px;line-height:1.2}.report-navigation>span{font-size:12px;color:var(--muted);white-space:nowrap}.report-footer>small{font-size:11px;color:var(--muted);text-align:right}
.support-section{flex-shrink:0}.support-section .report-section-title{margin-bottom:6px}.support-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.support-tile{background:var(--surface);border:1px solid var(--line);border-radius:9px;color:var(--ink);text-align:left;padding:8px;min-width:0;display:flex;flex-direction:column;gap:4px}.support-title{display:flex;align-items:center;gap:4px}.support-title>svg{width:15px;height:15px;color:#8660e8;flex-shrink:0}.support-title b{font-size:12px;margin-right:auto}.support-values{font-size:11px;line-height:1.25;color:var(--muted)}.support-tile>small{font-size:10px;color:var(--muted)}.support-tile .report-status i{width:13px;height:13px;font-size:10px}.support-tile .report-status{font-size:10px}.board-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(205px,1.1fr) minmax(195px,1fr);gap:10px;flex:1;min-height:410px}.board-report-grid .report-chart{min-height:125px}.board-report-grid .report-chart svg{min-height:125px;max-height:175px}.report-table-scroll{overflow:auto;flex:1;min-height:0}.report-table{border-collapse:collapse;width:100%;min-width:0;table-layout:auto}.report-table td,.report-table th{font-size:12px;padding:5px 6px;line-height:1.3;border-bottom:1px solid var(--line);vertical-align:middle;white-space:normal}.report-table th{font-size:11px;letter-spacing:.02em}.report-table td>b{color:var(--ink);font-size:12px}.report-table td>small{display:block;font-size:11px;color:var(--muted)}.report-table .nowrap{white-space:nowrap}.report-table td .report-status{font-size:11px}.all-comments-panel{flex-shrink:0}.all-comments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 16px;max-height:195px;overflow:auto}.all-comments article{padding:5px 0;border-top:1px solid var(--line);min-width:0}.all-comments article>div{display:flex;justify-content:space-between;gap:6px;align-items:center}.all-comments b{font-size:12px;color:var(--ink)}.all-comments small{font-size:10px;color:var(--muted);white-space:nowrap}.all-comments p{font-size:12px;line-height:1.4;color:var(--muted);margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.presentation-active .sidebar,.presentation-active .topbar,.presentation-active .footer,.presentation-active .sidebar-shade{display:none!important}.presentation-active .main-shell,.presentation-active .sidebar-collapsed .main-shell{margin-left:0!important;width:100%!important;min-height:100dvh}.presentation-active.meeting-active .content{padding:12px 16px}.presentation-active .report-dashboard{min-height:calc(100dvh - 24px)}.presentation-active .report-controls [data-action=back-screen]{background:#176e72;color:#fff;border-color:#176e72;font-weight:700}
@media(min-width:1200px) and (min-height:880px){.meeting-active .content{flex:1;min-height:0}.report-dashboard{height:calc(100dvh - 72px)}.presentation-active .report-dashboard{height:calc(100dvh - 24px)}.report-dashboard[data-report-page="2"] .board-report-grid{min-height:390px}.report-dashboard[data-report-page="2"] .all-comments{max-height:155px}}
@media(max-width:1599px){.report-heading>img{width:112px;height:34px}.report-controls{max-width:230px}.report-kpi{padding:6px 7px}.report-kpi>div{font-size:11px;gap:4px}.kpi-symbol{width:22px;height:22px}.kpi-symbol svg{width:16px;height:16px}.report-kpi small{font-size:10px}.report-panel>header>.report-status{font-size:0;gap:0}.report-panel>header>.report-status i{font-size:12px}.report-panel h2{font-size:14px}.report-stat>b{font-size:17px}.report-panel{padding:9px 10px}.report-filter-row .filter label{font-size:11px}.report-filter-row .filterbar{gap:6px}.report-filter-row .filter.date input{width:117px}.report-source{min-width:110px;font-size:10px}.report-source small{font-size:10px}.support-title b{font-size:11px}.support-tile .report-status{font-size:0}.support-tile .report-status i{font-size:10px}.report-legend em{font-size:10px}}
@media(min-width:1200px) and (max-height:879px){.report-dashboard{min-height:calc(100dvh - 64px);gap:7px}.meeting-active .content{padding:8px 12px}.core-report-grid{grid-template-rows:minmax(265px,1fr) minmax(290px,1fr)}.report-heading p{font-size:12px}.report-heading h1{font-size:15px}.report-panel{padding:8px 10px}.report-stats .report-stat{padding:5px}.report-kpi strong{font-size:21px}.report-section-title>span{font-size:11px}}
@media(max-width:1199px){.report-heading{flex-wrap:wrap}.report-controls{max-width:none}.report-heading h1{font-size:16px}.report-filter-row{flex-wrap:wrap}.report-filter-row .filterbar{flex-wrap:wrap}.report-filter-row .filter{min-width:125px}.report-filter-row .filter label{font-size:12px}.report-source{width:100%;display:flex;gap:8px;align-items:center}.report-source small{margin:0}.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.report-kpi>div{font-size:13px}.report-kpi strong{font-size:25px}.report-kpi small{font-size:12px}.core-report-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;grid-auto-rows:minmax(310px,auto)}.support-grid{grid-template-columns:repeat(3,1fr)}.board-report-grid{grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(240px,auto)}.all-comments{grid-template-columns:repeat(2,1fr);max-height:none}.report-footer{flex-wrap:wrap}.report-footer>small{text-align:left}.report-table-scroll{max-height:310px}.support-title b{font-size:13px}.support-values{font-size:12px}.support-tile small{font-size:11px}}
@media(max-width:680px){.meeting-active .content,.presentation-active.meeting-active .content{padding:9px}.report-heading>img{width:105px}.report-heading>div:not(.report-controls){flex:1;min-width:210px}.report-heading h1{font-size:14px}.report-heading p span{display:block}.report-controls{margin-left:0}.core-report-grid{grid-template-columns:1fr}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-kpi:last-child{grid-column:span 2}.report-kpi strong{font-size:25px}.report-kpi>div{font-size:13px}.report-panel h2{font-size:15px}.report-panel{padding:11px}.report-panel>header>.report-status{font-size:11px}.report-chart{min-height:155px}.report-chart svg{min-height:155px}.support-grid{grid-template-columns:repeat(2,1fr)}.all-comments{grid-template-columns:1fr}.all-comments p{font-size:14px}.all-comments b{font-size:14px}.report-navigation{flex-wrap:wrap}.report-navigation>span{width:100%}.report-section-title{align-items:flex-start}.report-section-title>span{max-width:55%;font-size:11px;text-align:right}.report-stats.four{gap:4px}.report-stat>span{font-size:11px}.report-stat>b{font-size:16px}.report-table td,.report-table th{font-size:11px;padding:5px 3px}.report-table td>b{font-size:12px}.report-qaqc td{font-size:12px;padding:4px 2px}.report-filter-row .filterbar{gap:8px}.report-filter-row .filter.date input{width:125px}.report-table-scroll{max-height:none}.process-parameters small{font-size:10px}}
html[data-theme=dark] .report-status.green,html[data-theme=dark] .qaqc-data.green{color:#7ddfc4}html[data-theme=dark] .report-status.amber,html[data-theme=dark] .qaqc-data.amber{color:#f5cb73}html[data-theme=dark] .report-status.red,html[data-theme=dark] .qaqc-data.red{color:#ffa3b6}html[data-theme=dark] .report-chart svg line{stroke:#30435e}html[data-theme=dark] .tag.green{background:#143e38;color:#8ce4cb}html[data-theme=dark] .tag.red{background:#4b2433;color:#ffb4bd}html[data-theme=dark] .tag.amber{background:#44371d;color:#ffdb96}html[data-theme=dark] .tag.blue{background:#203e65;color:#b5d6ff}
@media print{@page{size:A3 landscape;margin:8mm}.sidebar,.topbar,.footer,.report-controls,.report-navigation,.report-filter-row .btn,.report-panel header .btn,.qaqc-controls select{display:none!important}.main-shell,.sidebar-collapsed .main-shell{width:100%!important;margin:0!important}.content{padding:0!important}.report-dashboard{height:auto!important;min-height:0;gap:6px}.core-report-grid{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(2,280px)}.report-kpis{grid-template-columns:repeat(9,1fr)}.report-panel{box-shadow:none;break-inside:avoid}.report-kpi{box-shadow:none}.board-report-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:auto}.report-table-scroll,.all-comments{overflow:visible;max-height:none!important}.all-comments{grid-template-columns:repeat(3,1fr)}html[data-theme=dark]{--surface:#fff;--surface-soft:#f5f8fd;--bg:#fff;--ink:#102746;--muted:#526582;--line:#dce5f1}.report-chart svg{max-height:200px}}
@media(min-width:1200px){.core-report-grid{min-height:601px;grid-template-rows:minmax(270px,1fr) minmax(320px,1.12fr)}.presentation-active .report-controls{max-width:none}.presentation-active .report-controls [data-action=export-json],.presentation-active .report-controls .import-control{display:none}}
.report-chart svg{max-height:none!important;min-height:0!important;display:block}.report-chart[data-series]{position:relative}.report-chart[data-series]>svg{position:absolute;inset:0;width:100%;height:100%}.report-chart svg text{font-size:12px!important}.performance-panel .report-table td{padding:3px 6px;line-height:1.2}.performance-panel .report-table th{padding:4px 6px;line-height:1.2}
@media(min-width:1200px){.report-dashboard .board-report-grid{min-height:470px;grid-template-rows:minmax(235px,1fr) minmax(225px,1fr)}.report-chart{min-height:110px}.report-dashboard[data-report-page="2"] .board-report-grid{min-height:470px}}
/* v5 visual language: clean white cards, coloured symbols and directional variances. */
:root{--ink:#14172f;--muted:#505b77;--bg:#f5f6fc;--line:#e2e5f0;--shadow:0 3px 13px #2025450a;--violet:#6d36ee;--blue:#0989e4}
body{font-family:'Segoe UI',Arial,sans-serif}.report-panel,.report-kpi,.support-tile{border-radius:15px;box-shadow:0 3px 14px #1d27490a}.report-panel{border-color:#e5e7f0}.report-kpi{border:1px solid var(--line);padding-top:9px;background:var(--surface)}.report-kpi strong{font-weight:800;color:var(--ink);letter-spacing:-.045em}.report-kpi.violet{--accent:#6d36ee}.report-kpi.blue{--accent:#078ee8}.report-kpi.green{--accent:#0b9e35}.report-kpi.pink{--accent:#ec318c}.report-kpi.amber{--accent:#ee8c09}.kpi-symbol{width:29px;height:29px;border-radius:10px}.kpi-symbol svg{width:20px;height:20px}.report-kpi>div{color:var(--ink);font-weight:600}.report-panel h2{font-weight:750;letter-spacing:-.02em}.report-status.status-action{border:0;border-radius:6px;padding:3px 5px;background:transparent;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.report-status.status-action:hover{background:var(--surface-soft)}.report-status.status-action:focus-visible,.qa-variance:focus-visible{outline:2px solid #7040e8;outline-offset:2px}.report-status i{border-radius:5px}.report-panel>header>.report-status.status-action{font-size:11px}.support-open{background:none;border:0;color:inherit;padding:0;text-align:left;width:100%;cursor:pointer}.support-tile>.report-status{align-self:flex-start}.report-chart-tabs .active,.report-navigation .active{background:#6c37e8;border-color:#6c37e8}.report-chart-tabs .btn:not(.active){background:var(--surface-soft)}.qaqc-controls>span{font-weight:500}.qa-variance{display:inline-flex;gap:5px;align-items:center;justify-content:flex-end;white-space:nowrap;min-width:76px;padding:3px 5px;border-radius:4px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;line-height:1.15}.qa-variance.red{color:#c62634;background:linear-gradient(90deg,#d12a3410,#d12a3421)}.qa-variance.green{color:#008c28;background:linear-gradient(90deg,#079e2c08,#079e2c16)}.qa-variance.amber{color:#9e7000;background:#e6a92318}.qa-variance.gray{color:var(--muted);background:var(--surface-soft)}.qa-variance:hover{filter:brightness(.93)}.report-qaqc td:last-child{padding:3px 0 3px 4px}.report-qaqc th{color:var(--ink);background:#f3f2fb}.report-qaqc tbody tr:nth-child(even){background:#f5f2ff55}.report-qaqc td{color:var(--ink)}.warehouse-tabs{margin:4px 0 1px;gap:4px}.warehouse-tabs .tiny{font-size:11px;padding:3px 6px}.handling-stats .report-stat{padding:3px 5px}.report-legend{margin-top:5px}.report-note{line-height:1.25}
.operational-modal{max-width:1040px!important;width:min(1040px,96vw)!important;max-height:90dvh;overflow:auto;background:var(--surface);color:var(--ink);padding:22px!important}.operational-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}.operational-modal-header span{font-size:11px;font-weight:700;letter-spacing:.12em;color:#6d36ee}.operational-modal-header h2{margin:4px 0;font-size:24px;line-height:1.2;color:var(--ink)}.operational-modal-header p{font-size:13px;color:var(--muted);margin:4px 0}.diagnostic-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}.diagnostic{padding:13px 15px;border:1px solid var(--line);border-left:4px solid #9ba9c0;border-radius:9px;background:var(--surface-soft);min-width:0}.diagnostic.red{border-left-color:#cf354c;background:#cf354c07}.diagnostic.amber{border-left-color:#d1a020;background:#d1a02007}.diagnostic.green{border-left-color:#0a9e58;background:#0a9e5807}.diagnostic>div:first-child{display:flex;gap:8px;align-items:center}.diagnostic-dot{display:inline-flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;width:19px;height:19px;font-size:12px;color:var(--muted);flex-shrink:0}.diagnostic.red .diagnostic-dot{color:#c62634}.diagnostic.amber .diagnostic-dot{color:#a97900}.diagnostic h3{font-size:15px;line-height:1.3;margin:0;color:var(--ink)}.diagnostic p{font-size:13px;line-height:1.5;margin:8px 0;color:var(--muted)}.diagnostic small{font-size:11px;color:var(--muted)}.diagnostic dl{display:flex;flex-wrap:wrap;gap:16px;margin:10px 0}.diagnostic dt{font-size:11px;color:var(--muted)}.diagnostic dd{margin:3px 0;font-size:16px;font-weight:700;color:var(--ink)}.diagnostic-section-title{font-size:15px;margin:20px 0 9px}.diagnostic-table{overflow:auto}.diagnostic-table table{width:100%;border-collapse:collapse}.diagnostic-table td,.diagnostic-table th{font-size:13px;padding:8px;white-space:normal;border-bottom:1px solid var(--line)}.diagnostic-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.diagnostic-records article{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px;padding:10px}.diagnostic-records b{font-size:12px}.diagnostic-records p{margin:5px 0 0;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}.product-comparison{padding:12px;border:1px solid var(--line);border-radius:10px;margin-bottom:14px;background:var(--surface-soft)}.product-comparison h3{margin:0 0 10px;font-size:16px}.product-comparison p{font-size:13px;margin:8px 0}.product-comparison small{font-size:12px;color:var(--muted)}.product-comparison .detail-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-comparison .red strong{color:#c62634}.product-comparison .green strong{color:#008c28}.product-comparison .amber strong{color:#9e7000}
html[data-theme=dark]{--ink:#edf0fc;--muted:#b3bfd9;--bg:#10172a;--line:#34435d}html[data-theme=dark] .report-panel,html[data-theme=dark] .report-kpi{border-color:var(--line)}html[data-theme=dark] .report-qaqc th{background:#202a44;color:var(--ink)}html[data-theme=dark] .report-qaqc tbody tr:nth-child(even){background:#a587ed08}html[data-theme=dark] .qa-variance.red,html[data-theme=dark] .product-comparison .red strong{color:#ff9eae}html[data-theme=dark] .qa-variance.green,html[data-theme=dark] .product-comparison .green strong{color:#7de8a4}html[data-theme=dark] .qa-variance.amber,html[data-theme=dark] .product-comparison .amber strong{color:#f1ce78}html[data-theme=dark] .report-chart-tabs .active,html[data-theme=dark] .report-navigation .active{background:#7947ec}
@media(max-width:680px){.operational-modal{padding:14px!important}.diagnostic-list,.diagnostic-records{grid-template-columns:1fr}.product-comparison .detail-grid{grid-template-columns:repeat(2,1fr)}.operational-modal-header h2{font-size:20px}.report-panel>header>.report-status.status-action{font-size:10px}.report-qaqc th{font-size:10px}.qa-variance{font-size:11px;min-width:67px;padding:3px}.report-kpi strong{font-size:24px}}
@media print{.report-status.status-action{padding:0;text-decoration:none}.qa-variance{background:none!important}.report-kpi{box-shadow:none}}
.report-qaqc .qa-variance{padding:2px 4px;line-height:1.05}.report-qaqc td:last-child{padding-top:2px;padding-bottom:2px}
.report-panel:has(.handling-stats){padding-bottom:6px}

.position-scope{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--muted);font-size:10px;margin:3px 0 5px}.position-scope label{margin-left:auto;font-weight:600}.position-scope input{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;padding:2px 5px;font-size:11px;max-width:125px}.position-scope strong{color:#a77700;font-size:10px}.position-entry{margin:15px 0}.position-entry .description{max-width:960px}.position-entry .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:680px){.position-entry .form-grid{grid-template-columns:1fr 1fr}.position-scope label{margin-left:0}}

/* Processing tabs remain side by side even in compact meeting panels. */
.report-chart-tabs.processing-tabs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);flex-wrap:nowrap;gap:4px;width:100%}.report-panel .processing-tabs .btn{min-width:0;width:100%;font-size:11px;padding:4px 3px;white-space:nowrap;text-align:center}.qaqc-panel .qaqc-controls select{max-width:135px}
/* Signed-out landing page: navigation belongs only to authenticated workspaces. */
.auth-screen .sidebar,.auth-screen .topbar,.auth-screen .main-shell>.footer,.auth-screen .sidebar-shade{display:none!important}
.auth-screen .main-shell,.auth-screen .sidebar-collapsed .main-shell{margin:0!important;width:100%!important;min-height:100dvh}
.auth-screen .content{padding:0!important;min-height:100dvh}
.twigg-login{min-height:100dvh;display:flex;flex-direction:column;background:var(--bg,#f4f7fc)}
.login-banner{height:clamp(200px,24vw,350px);overflow:hidden;background:#cde5e9}
.login-banner img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.login-main{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:0 20px 28px}
.twigg-login .login-box{position:relative;margin-top:-36px;width:440px;max-width:100%;padding:32px;background:var(--surface,#fff);border:1px solid var(--line,#dce5f3);border-radius:20px;box-shadow:0 18px 55px #15394320}
.twigg-login h1{font-size:28px;line-height:1.2;margin:10px 0 12px;color:var(--ink,#142b4d)}
.twigg-login .login-box>p{font-size:13px;margin-bottom:22px;color:var(--muted,#7c8da7)}
.twigg-login .field{margin-bottom:16px}.twigg-login .form-control{min-height:44px}
.twigg-login .form-actions>.btn{width:100%;min-height:44px}
.login-footer{text-align:center;display:grid;gap:8px;padding:16px 20px 25px;color:var(--muted,#718299);font-size:11px;letter-spacing:.04em}
.login-footer strong{color:var(--ink,#183855);font-size:15px;letter-spacing:.02em}.login-footer small{font-size:11px}
@media(max-width:600px){.login-banner{height:180px}.twigg-login .login-box{padding:25px;margin-top:-20px}.login-footer span{font-size:10px;line-height:1.6}.twigg-login h1{font-size:25px}}
/* Department overview: readable rows, proportionate percentage bars, all areas visible. */
.performance-panel .report-table-scroll{overflow:visible;flex:none;max-height:none!important}
.performance-panel .report-table{table-layout:fixed}
.performance-panel .report-table th:nth-child(1){width:24%}.performance-panel .report-table th:nth-child(2){width:23%}.performance-panel .report-table th:nth-child(3){width:32%}.performance-panel .report-table th:nth-child(4){width:21%}
.performance-panel .report-table th{padding:9px 7px;font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.performance-panel .report-table td{padding:9px 7px;font-size:12px;line-height:1.3}
.performance-meter{height:4px;max-width:140px;margin-top:5px;border-radius:4px;background:var(--line);overflow:hidden}.performance-meter i{display:block;height:100%;border-radius:4px;background:#12b895}.performance-meter.red i{background:#f1667b}.performance-meter.amber i{background:#f7b83c}.performance-meter.gray i{background:#9ba8bc}
.performance-note{margin:9px 7px 0;font-size:10px;line-height:1.4;color:var(--muted)}
@media(min-width:1200px){.report-dashboard[data-report-page="2"] .board-report-grid{min-height:640px;grid-template-rows:minmax(420px,1.8fr) minmax(205px,1fr)}}
.avatar{overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover;display:block}.topbar-end{flex-wrap:wrap}.topbar-end #logout-button{white-space:nowrap}
@media(max-width:1199px){.performance-panel{min-height:440px}.performance-panel .report-table td{padding:10px 5px}}
/* Full-width entry, with a compact footer and the original banner proportions. */
.auth-screen .content{max-width:none!important;width:100%!important;margin:0!important;flex:none}
.auth-screen .main-shell{min-height:100dvh}.twigg-login{min-height:100dvh}
.login-banner{height:clamp(260px,36vh,460px);width:100%;flex-shrink:0}
.login-banner img{object-fit:cover;object-position:center 28%}
.login-main{flex:1;padding:0 20px 12px;align-items:center}
.twigg-login .login-box{margin-top:-35px;padding:25px 30px;z-index:1}
.login-footer{padding:10px 20px 16px;gap:5px;flex-shrink:0}.login-footer strong{font-size:14px}
/* The PNG already has transparency. White lettering is a CSS layer on the dark sidebar. */
.sidebar,.sidebar nav{scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior:contain}
.sidebar::-webkit-scrollbar,.sidebar nav::-webkit-scrollbar{display:none;width:0;height:0}
.brand-art{position:relative;display:block;flex:none;width:185px;height:48px;overflow:hidden}
.sidebar .brand .brand-art img{position:absolute;inset:0;width:185px!important;height:48px!important;max-width:none;object-fit:contain;background:transparent!important;border-radius:0;padding:0!important}
.sidebar .brand .brand-art .brand-lettering{filter:brightness(0) invert(1);clip-path:inset(0 0 0 30%)}
.sidebar-collapsed .brand-art{width:49px}.sidebar-collapsed .brand-art img{object-position:left center}
/* Navigation search honours the same visible, permitted modules as the sidebar. */
.module-search{position:relative;display:flex;align-items:center;gap:6px;margin:0 18px;min-width:150px;width:clamp(150px,19vw,300px);background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;padding:7px 10px;color:var(--muted)}
.module-search input{border:0;background:transparent;color:var(--ink);width:100%;min-width:0;outline:none;font:inherit;font-size:12px}
.module-search:focus-within{border-color:#21a5a5;box-shadow:0 0 0 3px #18a6a611}
#module-results{position:absolute;top:calc(100% + 7px);left:0;min-width:280px;max-width:min(380px,85vw);max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:12px;box-shadow:0 15px 45px #10274625;background:var(--surface);padding:6px;z-index:80}
#module-results button{display:flex;justify-content:space-between;align-items:center;gap:18px;width:100%;padding:12px;border:0;border-radius:7px;text-align:left;background:transparent;color:var(--ink);font-size:12px;cursor:pointer}
#module-results button:hover,#module-results button:focus{outline:none;background:var(--surface-soft);color:#14848b}#module-results button span{font-size:10px;color:var(--muted);white-space:nowrap}#module-results p{padding:10px;font-size:12px;color:var(--muted)}
.topbar{gap:8px;height:auto;min-height:75px;padding-top:9px;padding-bottom:9px}.topbar-start{min-width:0}.topbar .breadcrumb{white-space:nowrap}.topbar-end{gap:10px;flex-wrap:nowrap}.clock{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums;display:inline-block}.mode-chip{white-space:nowrap}.meeting-active .topbar{height:auto;min-height:55px}
/* Progress stays visible until all current work has completed. */
.processing-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#101a335c;backdrop-filter:blur(3px);cursor:wait}
.processing-card{display:grid;justify-items:center;gap:15px;width:min(360px,calc(100vw - 40px));padding:30px 24px;border:1px solid var(--line);border-radius:18px;background:var(--surface,#fff);color:var(--ink,#132a47);box-shadow:0 20px 60px #101a3330;text-align:center;animation:ux-enter .18s ease-out}
.processing-card b{font-size:14px;line-height:1.5}.processing-card small{color:var(--muted,#6d7f97);font-size:11px}.processing-ring{width:52px;height:52px;border:4px solid #8da7bd35;border-top-color:#159999;border-right-color:#25bdbd;border-radius:50%;animation:ux-spin .8s linear infinite}
.btn,.nav-link,.tab{transition:background .15s,color .15s,transform .15s,box-shadow .15s}.btn:active,.tab:active{transform:translateY(1px)}.nav-link:hover{background:#ffffff0c;transform:translateX(2px)}.toast{animation:ux-enter .22s ease-out}.modal{animation:ux-enter .18s ease-out}
@keyframes ux-spin{to{transform:rotate(360deg)}}@keyframes ux-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1250px){.topbar{flex-wrap:wrap}.topbar-end{margin-left:auto}.topbar .breadcrumb{font-size:11px}.module-search{margin:0 6px;flex:1;max-width:300px}.topbar-end .clock{font-size:10px}}
@media(max-width:680px){.topbar-end{width:100%;justify-content:flex-end;gap:7px}.module-search{max-width:none}.topbar-end .clock{display:inline-block}.login-banner{height:230px}.twigg-login .login-box{padding:23px;margin-top:-20px}.login-main{padding-bottom:14px}.login-footer{padding-bottom:12px}.login-footer span{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.processing-ring{animation:ux-spin 2s linear infinite!important}}
/* TSF charts belong to the core dashboard, without another dashboard page. */
.main-tsf-charts{min-width:0;margin-top:6px}.main-tsf-charts .tsf-water-report{margin:9px 0 0}.main-tsf-charts .tsf-report-heading,.main-tsf-charts .tsf-summary,.main-tsf-charts .tsf-report-note{display:none}.main-tsf-charts .tsf-chart{height:280px}.main-tsf-charts .report-section-title span{font-size:11px}
.access-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:20px}.access-step{max-width:780px;display:grid;gap:9px}.access-step select{min-height:46px;font-size:14px}.access-empty{margin-top:20px;padding:30px;text-align:center;border:1px dashed var(--line);border-radius:13px;color:var(--muted)}.access-empty p{font-size:13px;margin-bottom:0}.selected-member{margin-top:20px;padding:18px;border:1px solid #189a9a55;border-left:4px solid #189a9a;background:var(--surface-soft);border-radius:11px}.selected-member span,.selected-member small{color:var(--muted);font-size:12px}.selected-member h3{margin:5px 0;color:var(--ink);font-size:21px}.access-step-title{font-size:15px;margin:23px 0 13px}.access-profile-row{display:flex;gap:25px;align-items:center;margin-bottom:17px}.access-profile-row>.field{min-width:280px}.access-active{display:flex;gap:8px;align-items:center;color:var(--ink);font-size:13px}.access-area-fields{border:0;padding:0;margin:0}.access-area-fields:disabled{opacity:.4}.access-area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:15px 0}.access-area-grid .form-control{min-height:42px;font-size:13px}.access-area-grid label{font-size:12px}.access-save-bar{display:flex;flex-wrap:wrap;gap:10px;padding-top:17px;border-top:1px solid var(--line);margin-top:20px}.access-workspace .description{font-size:12px}
@media(max-width:800px){.access-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.access-profile-row{flex-wrap:wrap}.access-heading{flex-wrap:wrap}.access-save-bar .btn{width:100%}}@media(max-width:500px){.access-area-grid{grid-template-columns:1fr}.access-profile-row>.field{min-width:0;width:100%}}
