/* Operational density, loaded after page styles. Keep colour/brand tokens intact. */
[hidden]{display:none!important}
body{font-size:16px}.shell main{max-width:none;padding:16px 22px 24px;min-width:0}
.topbar{height:42px;padding:0 22px}.topbar,.topbar button{font-size:14px}
.sidebar{width:202px;padding:16px 12px;overflow-y:auto}.shell{margin-left:202px}
.sidebar .brand{padding:0 12px 10px}.sidebar .brand img{width:104px;height:54px}
.workspace-label{padding:8px 12px;font-size:10px}.sidebar nav a{padding:8px 12px;margin:1px 0;font-size:14px}
.nav-divider{margin:10px 12px}.sidebar-footer{padding-top:12px}.page-head{margin-bottom:12px;gap:12px}
.page-head .eyebrow{display:none}.page-head h1{font-size:28px;margin:0}.page-head p{font-size:14px;margin-top:3px}
.page-footer{padding:6px 22px;font-size:12px}.page-footer span{display:none}
.panel{margin-bottom:12px}.panel-head,.panel-body{padding:14px 16px}.filters{max-width:none;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.filters input{min-width:180px}.filters input,.filters select,.filters button{width:auto;font-size:14px;min-height:38px}
.filters select{max-width:230px}.table-wrap{max-height:calc(100dvh - 220px);overflow:auto;scrollbar-gutter:stable}
th{position:sticky;top:0;z-index:1;padding:9px 12px;font-size:13px;letter-spacing:0}
td{padding:7px 12px;font-size:14px;line-height:1.35}td small{font-size:12px;margin-top:2px}
tbody tr:nth-child(even){background:#faf8fc}tbody tr:hover{background:#f0eaf7}
.badge{font-size:13px;padding:3px 6px}.pagination{font-size:14px;margin:10px 0;flex-wrap:wrap;gap:10px}
.table-wrap a.cell-title{display:inline-block;padding:3px 0}.production-table{min-width:1050px}
.production-table .product-cell{max-width:310px}.production-table .product-cell small{overflow-wrap:anywhere}
.production-table .progress{width:90px;min-width:0;margin-top:4px}.mobile-menu{display:none}
.stats{gap:10px;margin-bottom:14px}.stat{padding:12px 16px}.stat>strong{font-size:30px;margin:2px 0}
.stat span,.stat small{font-size:13px}.stock-stats{margin-bottom:12px;gap:10px}
.stock-stats>div{padding:12px 14px}.stock-stats strong{font-size:28px;margin:2px 0}
.stock-filters,.planning-filters{gap:8px;margin-bottom:12px}.planning-filters input,.planning-filters select{min-height:38px}
.planning-metrics{margin-bottom:10px;gap:20px}.planning-metrics b{font-size:20px}
.capacity-strip{padding:10px 14px;margin-bottom:12px}.capacity-title{margin-bottom:8px}.capacity-tile{padding:8px 10px}
.planning-toolbar{margin-bottom:10px}.gantt-scroll{max-height:calc(100dvh - 280px)}
.job-summary,.summary-track{min-height:64px}.job-summary>.gantt-label{padding-top:6px;padding-bottom:6px}
.gantt-row.operation-row,.gantt-track{min-height:42px}.operation-bar{top:6px;height:29px;line-height:27px}
.gantt-label{padding-top:7px;padding-bottom:7px}.gantt-label small{margin-top:1px}
.operations-collapsed .job-summary,.operations-collapsed .summary-track{min-height:48px}
.operations-collapsed .job-summary .gantt-label small{display:none}
.operations-collapsed .summary-bar{top:5px;height:18px;line-height:16px}
.operations-collapsed .row-warnings{bottom:2px}
.screen-option{padding:16px}.screen-option h2{font-size:24px}.screen-option p{margin:6px 0 12px;font-size:14px}
.display-setup{display:flex;gap:10px;flex-wrap:wrap;align-items:end}.display-setup label{font-size:14px;min-width:100px;margin:0}
.display-setup input,.display-setup select{margin-top:4px;width:100%;font-size:16px}.display-setup button{min-height:44px}
.dashboard-grid{align-items:start}
.production-summary .table-wrap{max-height:none;scrollbar-gutter:auto}
.step-counts{table-layout:fixed;width:100%}
.step-counts caption{text-align:left;padding:0 16px 12px;color:var(--muted);font-size:13px}
.step-counts th:first-child{width:46%}
.step-counts th,.step-counts td{padding:10px 8px}
.step-counts th:not(:first-child),.step-counts td{text-align:center}
.step-counts tbody th{position:static;text-transform:none;letter-spacing:0;background:transparent;font-weight:500;color:var(--ink);font-size:14px;border-bottom:1px solid var(--line)}
.step-counts tbody th:first-child{padding-left:16px;white-space:normal;overflow-wrap:anywhere}
.step-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:30px;border-radius:6px;font-size:17px;font-weight:600}
.step-count.busy{background:#eee7fa;color:#3b2564}.step-count.complete{background:#dff4e9;color:#246441}.step-count.zero{color:#9b95a4;font-weight:400}
@media(max-width:900px){
 .sidebar{position:relative;inset:auto;width:100%;padding:6px 12px;display:block;overflow:visible}
 .sidebar .brand{display:inline-block;padding:0}.sidebar .brand img{width:75px;height:38px}
 .mobile-menu{display:block;position:absolute;right:12px;top:6px;min-height:38px;background:transparent;color:white;border-color:#9985b4}
 .sidebar nav{display:none;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;margin:8px 0}
 .sidebar.menu-open nav{display:grid}.sidebar nav a{min-height:44px;white-space:normal}
 .sidebar.menu-open .sidebar-footer{display:flex}.sidebar-footer small{font-size:12px}.sidebar-footer{margin-top:8px}
 .shell{margin-left:0}.topbar{height:34px;padding:0 12px}.shell main{padding:12px}
 .page-head{flex-wrap:wrap}.page-head h1{font-size:26px}.page-head p{display:none}
 .table-wrap{max-height:75dvh}.screen-options{gap:12px}.gantt-scroll{max-height:70dvh}
 .plan-views{margin-top:0}.planning-filters>div{min-width:130px}.plan-views a{padding:8px 12px}
 .screen-option.featured{display:block}.screen-option.featured .button{margin-top:10px}
}
@media(max-width:600px){
 .page-head{display:flex;align-items:center}.page-head>.button,.page-head>.actions{margin-top:0}
 .page-head .button{font-size:14px;padding:8px 10px}.top-right{gap:8px}.topbar .muted{display:none}
 input,select,textarea{font-size:16px!important}.filters input{flex:1 1 100%;min-width:0}.filters select{flex:1 1 140px;max-width:none;min-width:0}
 .filters button{min-height:44px}.stats,.stock-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stock-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.stock-filters>div{min-width:0}
 .planning-filters>div{flex:1 1 40%;min-width:0}.planning-filters .planning-search{min-width:100%}
 .responsive-table{min-width:0}.table-wrap:has(.responsive-table){max-height:none;border:0;background:transparent;overflow:visible}
 .responsive-table thead{display:none}.responsive-table,.responsive-table tbody{display:block;width:100%}
 .responsive-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px 12px;background:white;border:1px solid var(--line);border-radius:8px;margin-bottom:8px}
 .responsive-table td{display:block;border:0;padding:0;text-align:left;white-space:normal;min-width:0;overflow-wrap:anywhere}
 .responsive-table td:before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:3px}
 .responsive-table td:first-child{grid-column:1/-1}.responsive-table .product-cell{max-width:none;grid-column:1/-1}
 .responsive-table .empty{grid-column:1/-1}.responsive-table .cell-title{font-size:18px;min-height:32px}
 .gantt-scroll{--label-width:145px}.gantt-label small{font-size:12px}.job-summary>.gantt-label{padding-bottom:35px}
 .gantt-heading{min-height:54px}.planning-toolbar .actions{gap:6px}.planning-toolbar .button,.planning-toolbar button{min-height:44px}
 .form-actions{flex-wrap:wrap}.form-actions .button,.form-actions button{flex:1;min-height:44px}
 .summary-strip{padding:12px}.two-col,.form-grid,.work-layout{min-width:0}.history-row{flex-wrap:wrap;font-size:13px}
}
@media print{.mobile-menu,.topbar,.sidebar{display:none!important}.shell{margin:0}.table-wrap{max-height:none;overflow:visible}th{position:static}}
