:root{--ink:#36427C;--muted:#5C67A0;--green:#36427C;--line:#B4B9CD;--canvas:#F4F3EB;--amber:#7A4B00}*{box-sizing:border-box}body{margin:0;background:#F4F3EB;color:var(--ink);font:16px/1.5 'Segoe UI',Arial,sans-serif}a{color:var(--green);text-underline-offset:3px}a:hover{text-decoration-thickness:2px}.top{background:#fff;border-bottom:1px solid var(--line);padding:18px 4%;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:15px;align-items:center;text-decoration:none;font-size:32px;font-weight:800}.brand span{font-size:15px;letter-spacing:1.5px}.brand small{font-size:12px;font-weight:500;letter-spacing:.3px;color:var(--muted)}small{display:block;font-weight:400}.user{display:flex;gap:16px;align-items:center;font-size:14px}.user form{margin:0}.desktop-nav{display:flex;gap:8px;padding:8px 4%;border-bottom:1px solid var(--line);background:#fff;flex-wrap:wrap}nav a{padding:10px 14px;text-decoration:none;border-radius:6px}nav a:hover,nav a[aria-current=page]{background:#F4F3EB}.mobile-menu{display:none}main{max-width:1400px;margin:0 auto;padding:30px 4% 50px;min-height:75vh}h1{font-size:32px;line-height:1.2;margin:5px 0 18px;font-weight:650;letter-spacing:-.7px}h2{font-size:20px;margin:0 0 14px;font-weight:650}h3{font-size:17px}.eyebrow{font-size:12px;letter-spacing:1.5px;text-transform:uppercase;font-weight:700;color:var(--green);margin:0 0 8px}p{margin:8px 0 18px}.heading,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.heading{margin-bottom:20px}.heading h1{margin-bottom:8px}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px;margin-bottom:24px;min-width:0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.cards section{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 24px}.cards span,.cost-grid span,.totals span{display:block;color:var(--muted);font-size:14px}.cards strong{display:block;font-size:34px;margin-top:8px;font-weight:600}.muted{color:var(--muted)}table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:14px}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.3px;color:var(--muted);background:#F4F3EB;position:sticky;top:0;z-index:1}th,td{padding:13px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}tr.selected{background:#E4C879;outline:2px solid var(--green);outline-offset:-2px}.status{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.3px;border-radius:4px;padding:5px 8px;background:#e3f0e7;color:#195638}.status.attention{background:#fff1d5;color:var(--amber)}.pending,.item-list{list-style:none;padding:0;margin:0}.pending li,.item-list li{padding:12px 0;border-bottom:1px solid var(--line)}.pending span{display:block;font-size:14px;color:var(--muted)}label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}input,select,textarea{font:inherit;border:1px solid #36427C;border-radius:5px;padding:10px 12px;min-height:44px;width:100%;background:#fff;color:var(--ink);max-width:100%}textarea{resize:vertical}input[type=checkbox]{width:22px;min-height:22px;vertical-align:middle}form>div{margin-bottom:16px}.check{display:flex;gap:12px;align-items:center;font-weight:400}.check input{width:22px}button,.button{display:inline-block;background:var(--green);border:1px solid var(--green);border-radius:5px;padding:11px 16px;color:white;font:600 14px/1.4 'Segoe UI',Arial,sans-serif;text-decoration:none;cursor:pointer;min-height:44px;margin:4px 4px 4px 0;white-space:normal}button:hover,.button:hover{filter:brightness(.94)}.secondary{background:#fff;color:var(--green);border-color:#36427C}.quiet{background:transparent;color:var(--green);border-color:transparent}.filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.filters>div{flex:1;min-width:160px;margin:0}.filters .lookup{flex:1}.filters button{margin:0}.actions{display:flex;flex-wrap:wrap;gap:8px}.cost-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;padding:20px 0}.cost-grid strong{font-size:19px}.totals{background:#F4F3EB;border:1px solid #B4B9CD;border-radius:8px;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:20px}.totals strong{font-size:20px;display:block;margin-top:8px}.segmented{display:flex;margin:12px 0 22px;gap:4px;flex-wrap:wrap}.segmented a{padding:10px 16px;background:#F4F3EB;border-radius:5px;text-decoration:none;font-size:14px}.segmented .selected{background:var(--green);color:#fff}.summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:14px}.summary dt{color:var(--muted)}.summary dd{margin:0;overflow-wrap:anywhere}.notice{padding:16px 20px;border:1px solid #a3cdb1;background:#eaf5ed;border-radius:6px;margin-bottom:20px}.error,.errorlist{color:#962e24}.errorlist{padding-left:20px;font-size:14px}.confirmation{background:#fff5df;border:1px solid #dfbf79;border-radius:6px;padding:20px;margin:16px 0}.confirmation ul{max-height:220px;overflow:auto}.login,.narrow{max-width:560px;margin:40px auto}.guidance{background:#F4F3EB}.helptext{font-size:13px;color:var(--muted);display:block}.lookup{position:relative}.suggestions{position:absolute;z-index:10;top:75px;left:0;right:0;max-height:280px;overflow:auto;background:white;border:1px solid #36427C;box-shadow:0 5px 16px #12332222;border-radius:5px}.suggestions [role=option]{display:block;padding:12px;cursor:pointer;font-size:14px;min-height:44px}.suggestions [aria-selected=true],.suggestions [role=option]:hover{background:#E4C879}.lookup-status{font-size:12px}.bom-line{border:1px solid var(--line);border-radius:6px;margin:16px 0;padding:18px;min-width:0}.bom-line legend{font-size:13px;font-weight:600}.line-grid{display:grid;grid-template-columns:1.2fr 2fr .7fr 1fr .6fr .5fr;gap:12px}.line-grid label{font-size:12px}details{border-bottom:1px solid var(--line);padding:12px 0}summary{cursor:pointer;font-weight:600;padding:10px 0;min-height:44px}details table{margin-top:12px}.pagination{display:flex;align-items:center;justify-content:center;margin-top:20px;gap:20px}.skip{position:absolute;top:-60px;left:12px;background:white;z-index:99;padding:12px}.skip:focus{top:12px}:focus-visible{outline:3px solid #36427C;outline-offset:3px}footer{padding:20px 4%;font-size:12px;color:var(--muted);border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px}body,main{overflow-wrap:anywhere}input[type=hidden]{display:none}
@media(max-width:1000px){.two-col{grid-template-columns:1fr}.line-grid{grid-template-columns:1fr 2fr 1fr}.cost-grid{grid-template-columns:repeat(3,1fr)}.totals{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.top{padding:14px 18px;align-items:start}.brand{font-size:26px;gap:10px}.brand span{font-size:11px;letter-spacing:1px}.brand small{font-size:11px}.user{display:block;text-align:right;font-size:12px}.user button{padding:8px;font-size:12px}.desktop-nav{display:none}.mobile-menu{display:block;background:#fff;padding:4px 18px;border-bottom:1px solid var(--line)}.mobile-menu nav{display:grid;grid-template-columns:1fr 1fr}.mobile-menu summary{padding:10px 0}main{padding:24px 16px 40px}h1{font-size:27px}.heading,.section-heading{align-items:start;flex-direction:column;gap:12px}.cards{grid-template-columns:1fr 1fr;gap:10px}.cards section{padding:15px}.cards strong{font-size:27px}.cards span{font-size:12px}.panel{padding:18px 15px;margin-bottom:18px}.filters{display:block}.filters>div{margin-bottom:12px}.cost-grid{grid-template-columns:1fr 1fr;gap:18px}.totals{padding:16px;gap:16px}.totals strong{font-size:17px}.totals span{font-size:12px}table,tbody,tr,td{display:block}thead{display:none}tr{padding:10px 0;border-bottom:2px solid #cdd9d0}td{display:grid;grid-template-columns:minmax(100px,42%) 1fr;gap:10px;padding:7px 3px;border:none}td::before{content:attr(data-label);font-weight:600;font-size:12px;color:var(--muted)}td[colspan]{display:block}.line-grid{grid-template-columns:1fr 1fr}.line-grid .lookup{grid-column:1/-1}.bom-line{padding:12px}.login{margin:10px auto}.actions{width:100%}footer{display:block}.pagination{gap:6px}.pagination a{padding:10px}.summary{grid-template-columns:1fr 1fr}}

/* Audit S-1..S-5: compact tasks, accessible links and focused confirmations. */
.status{font-size:13px}td small,.item-list small{font-size:13px}.filters>a,th a{display:inline-flex;align-items:center;min-height:44px;padding:8px}.panel>a:not(.button){display:inline-flex;align-items:center;min-height:44px;padding:8px 0}td a{display:inline-block;min-height:44px;padding:4px 0}.confirmation{scroll-margin-top:18px}.confirmation h3:focus{outline:2px solid #36427C;outline-offset:4px}.bom-line{margin:0;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0}.bom-compact{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,.8fr) minmax(120px,1.2fr) auto;gap:14px;align-items:center}.bom-component strong{font-size:14px}.bom-component small{font-size:13px}.bom-quantity label{font-size:12px}.bom-quantity input{max-width:150px}.bom-delete{min-height:44px;font-size:13px;margin:0}.bom-line .line-preview{font-size:13px;margin:0}.bom-line-details{border:0;padding:0}.bom-line-details summary{font-size:13px;font-weight:400;padding:8px 0;color:var(--green)}.bom-line-details .line-grid{grid-template-columns:1fr 2fr .7fr;padding-top:8px}.bom-line:has(input[name$="-DELETE"]:checked) .bom-component{text-decoration:line-through;color:var(--muted)}
@media(max-width:650px){.bom-compact{grid-template-columns:minmax(0,1fr) 106px;gap:8px}.bom-component{grid-column:1}.bom-quantity{grid-column:2;grid-row:1}.bom-delete{grid-column:2;grid-row:2}.bom-line .line-preview{grid-column:1;grid-row:2}.bom-line-details .line-grid{grid-template-columns:1fr 1fr}.bom-line-details .lookup{grid-column:1/-1}.bom-line{padding:12px 0}.status{font-size:12px}}

nav a[aria-current=page]{border-bottom:3px solid #FEC51B}input::placeholder{color:var(--muted);opacity:1}.status{background:#E6F2EA;color:#1F6B3A}.status.attention{background:#FFF1D6;color:#7A4B00}.error,.errorlist{color:#9B2C1F}th a{min-height:32px}button:focus-visible,.button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* v0.1.2: a compact working surface with inline rows and dependent filters. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
html{scroll-padding-block:48px 140px}.top{padding:10px 3%}.brand{font-size:24px}.desktop-nav{padding:4px 3%}nav a{padding:7px 12px}main{padding:18px 3% 40px}
.lookup-control{position:relative;display:flex;align-items:stretch}.lookup-control input{padding-right:38px;min-width:0}.lookup-browse{position:absolute;right:1px;top:1px;bottom:1px;margin:0;width:34px;min-height:0;padding:0;border:0;border-left:1px solid var(--ink);border-radius:0 4px 4px 0;color:var(--ink);background:#F4F3EB;font-size:18px}
.suggestions{top:100%;border-color:var(--ink);z-index:30;box-shadow:0 5px 16px #36427c22}.suggestions [aria-disabled=true]{color:var(--muted);cursor:not-allowed;background:#F4F3EB}
input[readonly]{background:#F4F3EB}.lookup-status{font-size:13px}.lookup-status:empty{display:none}
.bom-search{padding:8px 12px;margin-bottom:8px}.bom-search>.lookup{display:grid;grid-template-columns:220px minmax(0,1fr);gap:10px;align-items:center}.bom-search label{margin:0}.bom-search input{min-height:36px;padding-block:6px}.bom-search .lookup-status{grid-column:2}
.bom-editor{padding:8px 10px;margin:0}.bom-heading{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:0 0 6px}.bom-heading h2{font-size:18px;margin:0}.bom-heading span{font-size:13px}
.bom-table{table-layout:fixed}.bom-table .col-number{width:3%}.bom-table .col-type{width:12%}.bom-table .col-component{width:26%}.bom-table .col-uom{width:5%}.bom-table .col-qty{width:9%}.bom-table .col-cost{width:11%}.bom-table .col-actions{width:23%}
.bom-table th{padding:6px 4px;color:var(--ink);font-size:12px;text-transform:none;border-bottom:2px solid var(--ink);top:0}
.bom-table .bom-line{display:table-row;margin:0;padding:0;border:0}.bom-table td{padding:3px 4px;vertical-align:middle;border-bottom:1px solid var(--line);overflow-wrap:normal;font-size:14px}
.bom-table input,.bom-table select{min-height:34px;height:34px;padding:4px 6px;font-size:14px;border-radius:4px}.bom-table .lookup-input{padding-right:32px}.bom-table .lookup-browse{width:28px}
.bom-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.bom-table label{margin:0}.line-number{font-size:13px}.line-actions{display:flex;align-items:center;gap:2px;white-space:nowrap}.line-actions button{min-height:30px;width:28px;padding:2px;margin:0;font-size:16px}.bom-delete{font-size:13px;min-height:30px;gap:4px}.bom-table input[type=checkbox]{width:18px;height:18px;min-height:18px}.change-chip{font-size:12px;font-weight:600;display:block}.change-chip:empty{display:none}.bom-line[data-state=changed],.bom-line[data-state=added]{background:#fff9e8}.bom-line[data-state=removed]{background:#F4F3EB}.bom-line[data-state=removed] .line-cost{text-decoration:line-through}
.bom-add{display:flex;align-items:center;gap:16px;margin:4px 0!important;font-size:13px}.bom-add button{min-height:34px;padding:5px 10px}.bom-add strong{margin-left:auto}
.bom-savebar{position:sticky;bottom:0;z-index:5;background:white;border-top:2px solid var(--ink);padding:8px 0;margin:0!important;display:grid;grid-template-columns:minmax(0,1fr) 155px auto;gap:12px;align-items:end;box-shadow:0 -3px 6px #36427c0d}
.bom-savebar>div{margin:0}.bom-savebar label{margin:0 0 3px}.bom-savebar textarea{height:40px;min-height:40px;resize:vertical;padding:6px 8px}.bom-savebar input{min-height:40px;padding:6px 8px}.bom-save-actions{display:flex;gap:4px}.bom-save-actions button,.bom-save-actions a{margin:0;min-height:40px;padding:8px 10px}.bom-editor:has(#confirmation) .bom-savebar{position:static}
.bom-table :is(input,select,button){scroll-margin-block:48px 135px}.bom-table .errorlist{margin:2px 0;padding-left:12px;font-size:12px}
.report-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;padding:16px}.report-filters>div{margin:0;min-width:0}.report-filter-actions{display:flex;align-items:end;gap:4px}.report-filters input,.report-filters select{font-size:14px}.report-panel{padding:16px}.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.filter-chips a{border:1px solid var(--ink);border-radius:20px;padding:5px 10px;min-height:32px;font-size:13px;text-decoration:none}
.report-table{font-size:14px}.report-table th a{font-size:12px;padding:4px 0;min-height:32px;text-transform:none}.report-table th,.report-table td{padding:8px 6px}.report-table td:first-child{font-weight:600}.report-table .status{padding:3px;font-size:12px;letter-spacing:0}.report-breakdown{border:0;padding:0}.report-breakdown summary{min-height:32px;padding:4px 0;font-size:13px}.report-breakdown dl{margin:6px 0;font-size:13px}.report-breakdown dt{color:var(--muted)}.report-breakdown dd{margin:0 0 8px;font-weight:600}
@media(min-width:1001px){.bom-table .col-actions{width:23%}.bom-table .col-component{width:24%}.bom-table .col-cost{width:10%}.bom-table .col-type{width:13%}.bom-table .col-actions{width:16%}}
@media(max-width:1000px){
.bom-search>.lookup{display:block}.bom-search label{margin-bottom:5px}.bom-heading{gap:6px}.bom-heading>*{width:100%}.bom-table,.bom-table tbody{display:block}.bom-table thead,.bom-table colgroup{display:none}.bom-table .bom-line{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 0;border-bottom:2px solid var(--line)}.bom-table td{display:block;border:0;padding:0;min-width:0;overflow-wrap:anywhere}.bom-table td:before{display:block;content:attr(data-label);font-size:13px;font-weight:600;color:var(--muted)}.bom-table td:nth-child(1){grid-column:1/-1}.bom-table td:nth-child(3){grid-column:1/-1;grid-row:3}.bom-table td:nth-child(8){grid-column:1/-1}.bom-table input,.bom-table select{height:40px;min-height:40px}.bom-table .numeric{text-align:left}.bom-savebar{grid-template-columns:1fr 150px}.bom-save-actions{grid-column:1/-1}.bom-add{flex-wrap:wrap}.bom-add strong{margin:0}.line-actions button{width:40px;min-height:40px}.bom-delete{min-height:40px}
}
@media(max-width:650px){
main{padding:16px 12px 30px}.report-filters{display:block;padding:14px}.report-filters>div{margin-bottom:12px}.report-table td{display:grid;grid-template-columns:42% minmax(0,1fr);padding:6px 2px}.report-table td:before{font-size:13px}.report-table td[colspan]{display:block}.report-breakdown dl{font-size:14px}.bom-savebar{position:static;grid-template-columns:1fr}.bom-save-actions{grid-column:auto;flex-wrap:wrap}.bom-search>.lookup{display:block}.brand span{font-size:12px}.brand small{font-size:12px}.bom-table input,.bom-table select{font-size:16px}.bom-table .lookup-browse{width:34px}.bom-table .lookup-input{padding-right:37px}
}
@media(max-height:600px){.bom-savebar{position:static}}

.report-filter-actions{grid-column:1/-1;justify-content:flex-start}.report-filter-actions button,.report-filter-actions a{flex:none;white-space:nowrap}.report-panel h2{margin-bottom:4px}.report-panel>p{margin-bottom:8px}.filter-chips{margin-bottom:8px}.bom-add{min-height:36px}.bom-add button{margin:0}
@media(max-width:1000px){.bom-table td:first-child{display:flex;gap:8px;align-items:center}.bom-table td:nth-child(8){grid-column:2}.bom-table td:nth-child(7){grid-column:1}}

/* Phone recipe editing: component, inputs, costs, then actions. */
@media(max-width:1000px){
.bom-table .bom-line{grid-template-columns:repeat(12,minmax(0,1fr));gap:4px 6px;padding:8px 0}
.bom-table td:nth-child(1){grid-column:1/3;grid-row:4;gap:3px}
.bom-table td:nth-child(2){grid-column:1/7;grid-row:2}
.bom-table td:nth-child(3){grid-column:1/-1;grid-row:1}
.bom-table td:nth-child(3):before{display:none}
.bom-table td:nth-child(4){grid-column:7/9;grid-row:2}
.bom-table td:nth-child(5){grid-column:9/-1;grid-row:2}
.bom-table td:nth-child(5):before{content:'Qty / batch'}
.bom-table td:nth-child(6){grid-column:1/7;grid-row:3}
.bom-table td:nth-child(7){grid-column:7/-1;grid-row:3}
.bom-table td:nth-child(6):before{content:'Unit UGX';display:inline;margin-right:4px;font-size:12px}
.bom-table td:nth-child(7):before{content:'Line UGX';display:inline;margin-right:4px;font-size:12px}
.bom-table td:nth-child(8){grid-column:3/-1;grid-row:4;display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.bom-table td:nth-child(8):before{display:none}
.bom-table .line-actions{gap:4px}.bom-table .change-chip{font-size:12px}
.bom-table input,.bom-table select{padding-inline:4px}
.bom-table .lookup-input{padding-right:37px}
}
/* v0.1.4: summaries first, details remain beside their result. */
.report-filter-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 12px;margin-bottom:12px}
.report-filter-panel>summary{font-size:14px;padding:2px 0;min-height:28px}
.report-filters{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 10px;align-items:end;margin:0}
.report-filters>div{margin:0;min-width:0}.report-filters label{font-size:12px;margin:0 0 3px}
.report-filters input,.report-filters select{min-height:36px;padding:5px 8px;font-size:14px}.report-filters .lookup-input{padding-right:37px}
.report-filter-actions{display:flex;align-items:center;gap:6px}.report-filter-actions button,.report-filter-actions .button{min-height:36px;padding:6px 9px;font-size:13px;margin:0;white-space:nowrap}
.report-filters>.errorlist,.date-locale-note{grid-column:1/-1;margin:0;font-size:12px}
.report-panel{padding:12px}.report-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.report-heading h1{font-size:23px;margin:0 0 3px}.report-heading p{font-size:13px;margin:0}
.report-expansion-actions{display:flex;flex-wrap:wrap;gap:6px}.report-expansion-actions button{font-size:12px;min-height:32px;padding:4px 8px;margin:0}
.report-panel .filter-chips{margin:6px 0}.report-panel .filter-chips a{padding:2px 7px;font-size:12px}
.report-order,.report-panel .report-note{font-size:12px;margin:4px 0}.summary-report{table-layout:auto}.summary-report th{position:static;padding:3px 7px}.summary-report th a{padding:4px 0;min-height:30px}.summary-report td{padding:7px;vertical-align:middle}.summary-report td:last-child{width:120px}.summary-report td a{min-height:32px;padding:5px 0}
.report-toggle{font-size:12px;min-height:32px;padding:4px 9px;margin:0;white-space:nowrap}
.report-detail-row[hidden]{display:none!important}.report-detail-row>td{padding:0 10px 12px;border-bottom:2px solid var(--ink)}.report-detail{border-left:3px solid var(--ink);padding:10px 12px;background:#F4F3EB}.report-detail table{margin:0;background:#fff}.report-detail th{position:static}.report-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 20px;margin:12px 0;font-size:13px}.report-facts dt{font-weight:600}.report-facts dd{margin:0}.report-detail-links{display:flex;gap:20px;flex-wrap:wrap;font-size:13px}.report-detail .version-comparison{padding:0}.filter-match{background:#fff1d5}.legacy-link{font-size:13px;margin:8px 0}
@media(max-width:1000px){.report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
.report-filter-panel{padding:7px 10px}.report-filter-panel>summary{min-height:44px;padding:7px 0}.report-filters{grid-template-columns:1fr 1fr;gap:8px}.report-filters input,.report-filters select{min-height:44px}.report-filter-actions{grid-column:1/-1}.report-filter-actions button,.report-filter-actions .button{min-height:44px}.report-heading h1{font-size:21px}.report-panel{padding:10px}.report-expansion-actions button{min-height:44px}.report-order{margin:4px 0}.summary-report .report-summary{padding:6px 0;border-bottom:1px solid var(--ink)}.summary-report td{padding:4px 0}.summary-report td:last-child{width:auto}.summary-report td a,.report-toggle{min-height:44px}.report-detail-row{border:0;padding:0}.report-detail-row>td{padding:0 0 10px}.report-detail-row>td:before{display:none}.report-detail{padding:6px 8px}.report-facts{grid-template-columns:1fr;gap:5px}.report-facts>div{display:grid;grid-template-columns:40% 1fr;gap:8px}.report-detail table td:last-child{width:auto}.version-comparison table td{display:block}.version-comparison table td:before{display:none}.version-comparison table td:nth-child(2):before{display:inline;content:'Change: '}.version-comparison table td:nth-child(3):before{display:inline;content:'Previous: '}.version-comparison table td:nth-child(4):before{display:inline;content:'This version: '}
}
/* Keep filter actions in their row and reclaim the former panel padding. */
.report-filters{padding:0}.report-filter-actions{grid-column:auto}.report-heading>div:first-child{display:flex;gap:6px 14px;align-items:baseline;flex-wrap:wrap}
@media(min-width:651px){.top{padding-block:8px}.top .user .quiet{min-height:36px;margin:0;padding:6px 10px}.desktop-nav{padding-block:2px}.desktop-nav a{padding-block:5px}.report-filter-panel>summary{display:none}.report-filters{gap:4px 10px}.report-heading h1{margin:0}.report-panel .report-order{margin-bottom:4px}.report-filter-panel{padding-block:7px}}
@media(max-width:650px){.report-filter-actions{grid-column:1/-1}.report-heading>div:first-child{display:block}}
@media(min-width:651px){.report-panel{padding:8px}.report-filter-panel{padding-block:5px}.report-panel .report-order{margin-block:2px}}
.report-panel .report-note{margin:2px 0}

/* Supplied brand mark; the surrounding app layout and controls are unchanged. */
.brand{gap:8px}.brand .brand-logo{display:block;width:48px;height:48px;object-fit:contain;flex:none}.brand .brand-name{font-size:14px;font-weight:500;letter-spacing:.3px;line-height:1.2}
@media(max-width:650px){.brand .brand-logo{width:44px;height:44px}.brand .brand-name{font-size:12px;max-width:9ch}}

/* v0.2.0 read-only report tools and complete contributing costs. */
.report-ranges{grid-column:1/-1;margin:0}.report-ranges>summary{font-size:13px;padding:4px}.range-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:8px}
.report-output-actions{display:flex;gap:16px;font-size:13px;margin:0 0 8px}.report-output-actions a{min-height:32px;display:inline-flex;align-items:center}.report-totals{margin-top:16px}.report-totals p{font-size:13px}
.cost-group{margin-top:20px;border-top:1px solid var(--line);padding-top:12px;scroll-margin-top:16px}.cost-subtotal{font-weight:bold;background:#F4F3EB;padding:8px}.contributing-costs tfoot{font-weight:bold}.contributing-costs>summary{min-height:44px}.contributing-costs small,.report-totals small{display:block}
@media(max-width:640px){.range-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.report-output-actions a{min-height:44px}.contributing-costs{overflow-wrap:anywhere}.contributing-costs th{position:static}}
@media print{header,nav,.report-filter-panel,.report-output-actions,.report-expansion-actions,.legacy-link,.pagination,.report-toggle,footer,.print-back{display:none!important}main{margin:0!important;padding:0!important;max-width:none!important}.panel{border:0;box-shadow:none;padding:0}.report-table-wrap{overflow:visible}.report-table th{position:static}.report-table tr{break-inside:avoid}.report-detail-row[hidden]{display:none!important}body{background:white;font-size:11pt}.report-totals{break-inside:avoid}.report-table td,.report-table th{display:table-cell!important}.report-table td:before{display:none!important}.report-table tr{display:table-row!important}.report-table thead{display:table-header-group!important}}

.phone-report-sort{display:none}@media(max-width:650px){.phone-report-sort{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end;margin:8px 0}.phone-report-sort>div{margin:0}.phone-report-sort label{font-size:12px}.phone-report-sort select{font-size:13px;padding:8px}.phone-report-sort button{grid-column:1/-1;margin:0}}@media print{.phone-report-sort{display:none!important}.report-table,.report-totals table{display:table!important}.report-table tbody,.report-totals tbody{display:table-row-group!important}}

@media(max-width:650px){.cost-group-summary{display:table;font-size:12px;table-layout:fixed}.cost-group-summary thead{display:table-header-group}.cost-group-summary tbody{display:table-row-group}.cost-group-summary tfoot{display:table-footer-group}.cost-group-summary tr{display:table-row}.cost-group-summary th,.cost-group-summary td{display:table-cell;padding:7px 4px;vertical-align:middle}.cost-group-summary th{font-size:10px;letter-spacing:0}.cost-group-summary th:first-child{width:31%}.cost-group-summary td:before{display:none}.cost-group-summary td a{min-height:44px;display:flex;align-items:center}}

/* Subtotal rows scroll with their groups, rather than covering the footer. */
.cost-group-summary th{position:static}

/* Consistent short date guidance; native calendar and input values are unchanged. */
.date-format-hint{display:block;margin-top:3px;font-size:12px;line-height:1.35;color:var(--ink,#263879)}

/* Printed reports keep the selected scope legible without screen controls. */
.print-context{display:none}
@media print{
  @page{size:A4 landscape;margin:12mm}
  .print-context{display:block;font-size:9pt;margin:0 0 8mm}
  .print-context p{margin:2mm 0}
  .print-notice,.filter-chips,.report-table th.breakdown-column,.report-table td.breakdown-column{display:none!important}
  .report-heading h1{font-size:16pt}
  .report-table,.report-totals table,.recipe-detail-table{font-size:9pt;width:100%;border-collapse:collapse}
  .report-table th,.report-table td,.report-totals th,.report-totals td{padding:2mm;overflow-wrap:normal;word-break:normal}
  .report-table td[data-label*="Cost"],.report-table td[data-label*="Price"],.report-table td[data-label*="Rate"],
  .report-table td[data-label*="Margin"],.report-table td[data-label*="GM"],.report-table td[data-label*="Threshold"],
  .report-table td[data-label*="Quantity"],.report-table td[data-label*="Output"],.report-table td[data-label="Lines"],
  .report-totals td:not(:first-child){white-space:nowrap}
  .report-totals{break-inside:auto}
  .report-totals tr,.recipe-detail-table tr{break-inside:avoid}
  .report-totals thead,.recipe-detail-table thead{display:table-header-group}
  .report-table th a{color:inherit;text-decoration:none}
}

/* ---- Daily Orders additions ---- */
[hidden]{display:none!important}
.notice-error{border-color:#d9a19b;background:#fbecea;color:#7a231b}
.grid-table,.grid-table tbody,.grid-table thead,.grid-table tfoot{display:table;width:100%}.grid-table thead{display:table-header-group}.grid-table tbody{display:table-row-group}.grid-table tfoot{display:table-footer-group}.grid-table tr{display:table-row;padding:0;border-bottom:0}.grid-table td,.grid-table th{display:table-cell;padding:10px 8px;border-bottom:1px solid var(--line)}.grid-table td::before{content:none}
.numeric{text-align:right;font-variant-numeric:tabular-nums}
.inline{display:inline;margin:0}.inline button{padding:4px 8px;min-height:32px;margin:0 0 0 8px}
.status-chip{display:inline-block;font-size:12px;font-weight:700;border-radius:4px;padding:4px 8px;border:1px solid transparent;white-space:nowrap}
.st-submitted{background:#e3f0e7;color:#195638;border-color:#a3cdb1}.st-submitted::before{content:"\2713\00a0"}
.st-late{background:#fff1d5;color:#7A4B00;border-color:#e2c27a}.st-late::before{content:"\2713\00a0"}
.st-saved{background:#e8eaf6;color:#36427C;border-color:#B4B9CD}.st-saved::before{content:"\270E\00a0"}
.st-waiting,.st-none{background:#fff;color:#5C67A0;border-color:#B4B9CD}.st-waiting::before{content:"\25CB\00a0"}
.st-missing{background:#fbecea;color:#7a231b;border-color:#d9a19b}.st-missing::before{content:"!\00a0"}
.st-skipped{background:#F4F3EB;color:#5C67A0;border-color:#B4B9CD}
.st-change{background:#fff1d5;color:#7A4B00;border-color:#e2c27a}
.brand-tag{font-size:11px;font-weight:700;letter-spacing:.3px;border-radius:4px;padding:2px 6px;border:1px solid var(--line);white-space:nowrap}
.brand-D{background:#d9f1fc;border-color:#7cc6e6;color:#0b4a66}.brand-K{background:#F4F3EB}
.cards strong.small{font-size:17px;line-height:1.35}.card-d{background:#eaf7fd!important;border-color:#7cc6e6!important}
.day-nav{align-items:end}.day-nav .button{margin:0}
.pick-list li{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pick-list a{text-decoration:none}
.tick-list{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin-top:8px}.tick-list label{padding:6px 0;margin:0}
.days-table input[type=checkbox]{width:24px;min-height:24px}
fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 16px;padding:14px 16px}legend{font-weight:650;padding:0 6px}
.helptext{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.narrow{max-width:720px}
.print-only{display:none}
/* order sheet */
.sheet-wrap{overflow:auto;max-height:78vh;border:1px solid var(--line);border-radius:8px;background:#fff}
.sheet{table-layout:auto;width:auto;min-width:100%;font-size:13px;border-collapse:separate;border-spacing:0}
.sheet th,.sheet td{padding:5px 7px!important;border-bottom:1px solid var(--line);border-right:1px solid #e3e5ee;text-align:right;white-space:nowrap}
.sheet thead th{position:sticky;top:0;z-index:2;vertical-align:bottom;text-transform:none;letter-spacing:0;color:var(--ink);background:#F4F3EB}
.sheet th.rot{height:120px;min-width:34px;padding:4px 2px!important}.sheet th.rot span{display:inline-block;writing-mode:vertical-rl;transform:rotate(180deg);font-size:12px;font-weight:600;max-height:112px;overflow:hidden}
.sheet .sticky-col{position:sticky;left:0;z-index:3;background:#fff;text-align:left;font-weight:700;border-right:2px solid var(--line)}
.sheet thead .sticky-col,.sheet tfoot .sticky-col{background:#F4F3EB;z-index:4}
.sheet .col-d{background:#d9f1fc}.sheet thead th.col-d{background:#bfe6f8}
.sheet .sub{font-weight:700;background:#eceef6;border-left:2px solid var(--line)}.sheet .sub.col-d{background:#bfe6f8}.sheet .grand{background:#E4C879}
.sheet tfoot td,.sheet tfoot th{font-weight:700;border-top:2px solid var(--ink);position:sticky;bottom:0;background:#F4F3EB}.sheet tfoot .col-d{background:#bfe6f8}.sheet tfoot .grand{background:#E4C879}
/* order entry */
.order-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.running{margin-left:auto;font-size:15px}.running strong{font-size:20px}
.product-group{padding:14px 16px;margin-bottom:12px}.product-group h3{margin:0 0 6px;font-size:16px}
.product-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #e3e5ee}.product-group h3+.product-row,.product-row:first-child{border-top:0}
.product-label strong{display:block;font-size:16px}.product-label span{font-size:13px}
.boxes{display:flex;gap:8px}.box{width:104px}.box label{font-size:12px;font-weight:600;margin-bottom:2px;color:var(--muted)}
.box input{font-size:20px;font-weight:600;text-align:right;min-height:48px;padding:8px 10px}.box input.filled{background:#fffbe9;border-width:2px}
.box-d input{background:#eaf7fd;border-color:#2b86ad}.box-d label{color:#0b4a66}
.hint{display:block;font-size:12px;color:var(--muted);text-align:right}
.more-products{margin:14px 0}.more-products>summary{font-weight:650;padding:12px 0;cursor:pointer}.more-products input[type=search]{margin-bottom:12px}
.load-when .choices{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.choice{display:flex;align-items:center;gap:8px;border:1px solid var(--ink);border-radius:6px;padding:10px 14px;font-weight:600;margin:0;cursor:pointer;background:#fff}.choice input{width:22px;min-height:22px}.choice:has(input:checked){background:var(--ink);color:#fff}
.savebar{position:sticky;bottom:0;background:#fff;border:2px solid var(--ink);border-bottom:0;border-radius:10px 10px 0 0;padding:10px 14px;margin:18px 0 0;display:flex;gap:8px;align-items:center;flex-wrap:wrap;z-index:5}.order-form{max-width:860px}.savebar .running{margin:0 auto 0 0}
button.big,.button.big{font-size:17px;padding:14px 22px;min-height:52px}
.confirm-check{font-size:17px;font-weight:600;padding:14px;border:2px solid #7A4B00;border-radius:8px;background:#fff5df;margin-bottom:14px}
.review-table td,.review-table th{font-size:16px}
/* agent pages */
body.agent main{max-width:720px;padding-top:18px}.agent-top{padding:10px 4%}.agent-top .brand{font-size:20px}
.day-switch{align-items:center}.day-switch a{padding:12px 18px;font-weight:600}.day-pick{margin:0}.day-pick input{min-height:46px}
.cutoff{font-weight:600}.cutoff.closed{color:#7a231b}
.route-card{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;background:#fff;border:1px solid var(--line);border-left:8px solid #B4B9CD;border-radius:10px;padding:14px 16px;margin-bottom:10px;text-decoration:none;min-height:64px}
.route-card.st-submitted{border-left-color:#2e8a57}.route-card.st-late{border-left-color:#c98a12}.route-card.st-missing{border-left-color:#b3382c}.route-card.st-saved{border-left-color:#36427C}
.route-card{background:#fff!important;color:var(--ink)!important}.route-card::before{content:none!important}
.route-name{font-size:18px;font-weight:700}.route-meta{grid-column:1/-1;font-size:14px;color:var(--muted)}
.board-title{margin-top:28px}.board-list{list-style:none;padding:0;margin:0;background:#fff;border:1px solid var(--line);border-radius:10px}.board-list li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 14px;border-bottom:1px solid #e3e5ee;background:#fff!important;color:var(--ink)!important}.board-list li::before{content:none!important}.board-list li:last-child{border-bottom:0}
.offline{position:sticky;top:0;z-index:20;background:#7a231b;color:#fff;padding:12px 4%;font-weight:600}
.received{border-left:8px solid #2e8a57}.received.waiting{border-left-color:#c98a12}.big-fact{font-size:20px;font-weight:650}
@media(max-width:650px){.box{width:88px}.product-row{gap:8px;flex-wrap:wrap}.boxes{margin-left:auto}.product-label{min-width:0;flex:1 1 120px}.savebar{padding:10px 10px}.savebar button{flex:1}.grid-table td,.grid-table th{padding:8px 6px}.day-nav .button{display:inline-block;margin-bottom:8px}}
@media print{.no-print,.top,.desktop-nav,.mobile-menu,footer,.notice{display:none!important}.print-only{display:block}body{background:#fff}main{padding:0;max-width:none}.sheet-wrap{overflow:visible;max-height:none;border:0}.sheet{font-size:9px}.sheet th,.sheet td{padding:2px 3px!important}.sheet thead th,.sheet tfoot td,.sheet tfoot th,.sheet .sticky-col{position:static}.cards{grid-template-columns:repeat(4,1fr)}.cards strong{font-size:18px}.panel{border:0;padding:0}@page{size:A4 landscape;margin:10mm}}

/* ---- 0.1.1 ---- */
.cards a.card{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 24px;text-decoration:none;color:var(--ink)}
.cards a.card:hover,.cards a.card:focus-visible{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink)}
.cards a.card span{display:block;color:var(--muted);font-size:14px}.cards a.card strong{display:block;font-size:34px;margin-top:8px;font-weight:600}
.cards a.card small{display:block;margin-top:6px;font-size:13px;color:var(--muted)}.cards a.card small::after{content:" \203A"}
.count{display:inline-block;font-size:14px;font-weight:700;background:#F4F3EB;border:1px solid var(--line);border-radius:12px;padding:1px 10px;margin-left:6px;vertical-align:middle}
.cutoff-line{margin:0 0 10px}.panel.slim{padding:10px 18px}.panel.slim summary{cursor:pointer;font-weight:600}
.board-tools{margin:6px 0 10px}.board-tools p{margin:0}.board-tools input{min-width:240px}
.board-list-office{list-style:none;margin:0;padding:0}.board-list-office li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #e3e5ee;flex-wrap:wrap}
.board-list-office li:last-child{border-bottom:0}.bl-main a{text-decoration:none}.bl-main a:hover{text-decoration:underline}.bl-meta{display:block;font-size:13px;color:var(--muted)}.bl-side{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.small{font-size:12px}.two-col h3{margin:0 0 6px;font-size:15px}
.sign-links{margin-top:22px;line-height:2.2}.route-list .route-card{min-height:56px}
input.pin{font-size:28px;letter-spacing:10px;text-align:center;min-height:60px}
.product-label strong{font-size:19px;letter-spacing:.3px}
.sub-tabs{margin-top:4px}.up{color:#195638;font-weight:700}.down{color:#962e24;font-weight:700}
.sheet .loads-row th{position:sticky;top:0;font-size:11px;font-weight:600;color:var(--muted);text-align:center;padding:2px 3px!important;background:#F4F3EB}.sheet .loads-row th.col-d{background:#bfe6f8}
.sheet thead tr:first-child th{position:static}.sheet thead{position:sticky;top:0;z-index:4}
td.move{white-space:nowrap}td.move button{padding:4px 9px;min-height:34px;margin:0;font-size:13px;border:1px solid var(--line)}
tr.dragging{opacity:.45}tr[draggable=true]{cursor:grab}
.order-save{position:sticky;top:0;z-index:6;background:#fff5df;border:2px solid #7A4B00;border-radius:8px;padding:10px 14px;margin-bottom:12px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.order-save button,.order-save .button{margin:0}
.user a{text-decoration:none}.user a:hover{text-decoration:underline}
@media(max-width:650px){.cards a.card{padding:15px}.cards a.card strong{font-size:27px}.cards a.card span{font-size:12px}.board-tools input{min-width:0;width:100%}}
.route-list{margin-top:12px}

/* ---- 0.1.2: layout fixes ---- */
.filters button,.filters .button,.actions button,.actions .button,.savebar button,.order-tools button,.day-nav .button,.section-heading .button{margin:0}
.actions{align-items:center;flex-wrap:nowrap}.actions input[type=search]{width:auto;flex:1 1 220px;min-width:160px}
.section-heading{flex-wrap:wrap}.section-heading>div{flex:0 1 auto}.section-heading h2{margin:0}
.section-heading>input[type=search]{width:auto;flex:0 1 280px}
.heading{flex-wrap:wrap;align-items:center}.heading .button{margin:0}
.board-tools{align-items:center}.order-tools,.savebar{align-items:center}
.filters{align-items:flex-end}.filters>button,.filters>.button{flex:0 0 auto}
.day-nav{flex-wrap:nowrap;gap:8px}.day-nav>div{flex:0 1 190px;min-width:150px}.day-nav .button{white-space:nowrap}
#results{scroll-margin-top:12px}.panel[id],section[id]{scroll-margin-top:12px}
.sheet tr.bucket-start>*{border-top:2px solid var(--ink)}tr.bucket-start>td{border-top:2px solid var(--line)}
.col-when{width:150px}.col-who{width:230px}
.user-list{list-style:none;margin:0;padding:0}.user-list>li{padding:12px 0;border-bottom:1px solid var(--line)}.user-list>li:last-child{border-bottom:0}
.user-list details{margin-top:6px}.user-list summary{cursor:pointer;color:var(--ink);font-weight:600;font-size:14px}
.user-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:end;padding:12px 0 4px}.user-forms form{margin:0}.user-forms .filters{flex-wrap:nowrap}
.how{margin:0 0 14px;padding-left:20px}.how li{margin-bottom:4px}
/* product layouts */
.layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;align-items:start;user-select:none;-webkit-user-select:none}
.bucket{border:2px solid var(--line);border-radius:10px;background:#F4F3EB;padding:0 8px 8px;min-height:74px}
.bucket.empty{border-style:dashed}
.bucket-head{display:flex;align-items:center;gap:8px;padding:8px 4px;font-size:12px;font-weight:700;color:var(--muted);cursor:grab;touch-action:none}
.bucket-items{list-style:none;margin:0;padding:0;min-height:26px}
.bucket-items li{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:8px 10px;margin-bottom:6px;cursor:grab}
.bucket-items li strong{min-width:56px}.chip-name{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bucket-items li.retired{opacity:.6}
.grip{color:var(--muted);letter-spacing:-3px;font-size:16px;line-height:1;padding:4px 4px 4px 0;touch-action:none;cursor:grab}
.dragging{outline:2px solid var(--ink);background:#E4C879!important;opacity:.9}.layout.is-dragging,.layout.is-dragging *{cursor:grabbing!important}
@media(max-width:650px){.actions{flex-wrap:wrap}.day-nav{flex-wrap:wrap}.day-nav>div{flex:1 1 100%}.layout{grid-template-columns:1fr}.user-forms{grid-template-columns:1fr}.filters>button{width:100%}}
.board-tools{flex-wrap:nowrap}.board-tools p{flex:1 1 auto}.board-tools>div{flex:0 0 260px}
.savebar button{white-space:nowrap}
@media(max-width:650px){.board-tools{flex-wrap:wrap}.board-tools>div{flex:1 1 100%}.savebar{gap:6px}.savebar .running{font-size:13px}.savebar .running strong{font-size:17px}.savebar button.big{padding:12px 14px;font-size:16px}.savebar button.secondary{padding:10px 10px}}

/* ---- 0.2.0: production order ---- */
.prod-status{margin:10px 0}.prod-status .status-chip{margin-right:8px}
.section-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 14px}
.section-chip{display:block;background:#fff;border:1px solid var(--line);border-left:8px solid #B4B9CD;border-radius:8px;padding:9px 12px;text-decoration:none;color:var(--ink)}
.section-chip strong{display:block;font-size:14px}.section-chip span{display:block;font-size:13px;color:var(--muted)}
.section-chip:hover,.section-chip:focus-visible{border-color:var(--ink)}
.sc-confirmed{border-left-color:#2e8a57!important}.sc-entered{border-left-color:#c98a12!important}.sc-missing{border-left-color:#b3382c!important}.sc-not_counted{border-left-color:#5C67A0!important}
.bal-card{border-left:8px solid #B4B9CD!important}
.prod-problems{border-color:#d9a19b;background:#fbecea}.prod-problems h2{font-size:16px;margin:0 0 6px}.prod-problems ul,.confirmation ul{margin:0;padding-left:20px}
.prod th,.prod td{font-size:14px}.prod thead th{white-space:normal;max-width:96px;line-height:1.25;font-size:12px}
.prod td.in{padding:2px 3px!important}.prod td.in input,.out-table td.in input{width:78px;min-height:34px;padding:4px 6px;text-align:right;margin:0;font-variant-numeric:tabular-nums}
.prod td.typed input,.prod .bag-cell.typed input{border-color:#c98a12;box-shadow:inset 0 0 0 1px #c98a12}.prod td.typed:not(.in):not(.bag-cell){box-shadow:inset 0 -3px 0 #c98a12}
.prod .nc,.out-table .nc{color:#7A4B00;font-size:12px;font-weight:700;margin-left:2px}.prod .short{color:#962e24}
.prod .bag-cell{white-space:nowrap;padding:2px 4px!important}.prod .bag-cell input{width:58px;min-height:34px;padding:4px 6px;text-align:right;margin:0 2px;font-weight:700}
.prod .step,.prod .reset{min-height:34px;width:32px;padding:0;margin:0;font-size:18px;line-height:1;background:#fff;color:var(--ink);border:1px solid var(--ink);border-radius:6px}
.prod .reset{border-color:#c98a12;color:#7A4B00;margin-left:2px}
.prod-legend{font-size:13px;margin-top:8px}.narrow-field{max-width:640px;margin:12px 0}
.sheet td.left{text-align:left}.out-wrap{max-height:none}.out-save{margin-top:14px}
.bal-grid{columns:4 200px;column-gap:28px;margin:10px 0 16px}.bal-row{break-inside:avoid;margin-bottom:8px}
.bal-row{display:flex;align-items:center;gap:10px}.bal-row label{flex:0 0 64px;margin:0;font-weight:700}.bal-row input{flex:1;min-width:0;margin:0;text-align:right}
.bal-break{display:block;border-top:1px solid var(--line);margin:4px 0 10px;break-after:avoid}
@media(max-width:650px){.section-strip{grid-template-columns:1fr}.bal-grid{columns:2 130px;column-gap:14px}.prod-wrap{max-height:none}}
@media print{.prod td.in input,.prod .bag-cell input{border:0;box-shadow:none!important;width:52px;padding:0;min-height:0;height:auto;background:transparent;font-size:8.5pt}.prod .step,.prod .reset{display:none!important}
.prod th,.prod td{font-size:8.5pt;line-height:1.15;padding:1.5px 4px!important}.prod thead th{position:static;font-size:7pt;word-break:normal;overflow-wrap:normal;hyphens:none;max-width:none;padding:1.5px 2px!important}.prod td.in,.prod .bag-cell{padding:1.5px 4px!important}
.approvals{margin-top:8mm}.approvals p{margin:1mm 0}.prod-status{font-size:9pt;margin:2mm 0}.prod-legend{font-size:7.5pt}.print-only h1{font-size:15pt;margin:0 0 1mm}.print-only p{margin:0 0 1mm;font-size:9pt}
html:has(#prod-form),body:has(#prod-form),main:has(#prod-form){page:prod}}
@page prod{size:A4 portrait;margin:8mm}

/* ---- 0.2.1 ---- */
.steps{list-style:none;display:flex;gap:6px;margin:0 0 14px;padding:0;flex-wrap:wrap}
.steps .step{flex:1 1 130px;min-width:0}.steps .step a,.steps .step-plain{display:block;height:100%;background:#fff;border:1px solid var(--line);border-top:5px solid #B4B9CD;border-radius:8px;padding:7px 10px;text-decoration:none;color:var(--ink)}
.steps .step strong{display:block;font-size:13px;line-height:1.25}.steps .step span span,.steps .step a span{display:block;font-size:12px;color:var(--muted)}
.steps .st-done a,.steps .st-done .step-plain{border-top-color:#2e8a57}.steps .st-waiting a,.steps .st-waiting .step-plain{border-top-color:#c98a12}
.steps .is-next a,.steps .is-next .step-plain{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}.steps .step a:hover{border-color:var(--ink)}
.prod-notes{padding:8px 14px}.prod-notes summary{cursor:pointer;font-weight:650}.prod-notes ul{margin-top:8px}
.prod-problems{padding:12px 16px;margin-bottom:12px}.prod-problems li{margin-bottom:4px}
.prod-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 8px;font-size:14px}.prod-tools button{margin:0;min-height:36px;padding:4px 12px;font-size:14px}
.prod tr.incomplete th.sticky-col{box-shadow:inset 4px 0 0 #c98a12}
.prod .bag-cell .reset{visibility:hidden}.prod .hand{color:#7A4B00;font-weight:700;font-size:10px;margin-left:2px}.prod td.by-hand{box-shadow:inset 0 -3px 0 #c98a12}
.review-panel{border:2px solid var(--ink)}.review-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.review-cols h3{font-size:15px;margin:0 0 6px}
.review-approve{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.review-approve button,.review-approve .button{margin:0}
.act-detail{margin-top:4px;font-size:13px}.act-detail summary{cursor:pointer;color:var(--muted)}.act-detail ul{margin:4px 0 0;padding-left:18px;columns:2 260px}
.bal-row input.filled{background:#f3f7f4}.draft-offer{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.draft-offer button{margin:0;min-height:38px}
@media(max-width:650px){.review-cols{grid-template-columns:1fr}.steps .step{flex:1 1 44%}}
@media print{.prod .hand{font-size:6pt}}
@media(max-width:650px){.savebar .muted{display:none}.steps{gap:4px;margin-bottom:10px}.steps .step a,.steps .step-plain{padding:5px 8px}}
.prod-status{margin:6px 0 10px}.prod-problems h2{font-size:15px}

/* ---- 0.2.2: confirmation, one change, other-brand products ---- */
.st-toconfirm{background:#fff1d5;color:#7A4B00;border-color:#e2c27a}.st-toconfirm::before{content:"\23F3\00a0"}
.route-card.st-toconfirm{border-left-color:#c98a12}.cards a.card.card-attn{border-color:#c98a12;box-shadow:inset 0 0 0 1px #c98a12}
.confirm-table td{vertical-align:top}.confirm-table form.inline{display:inline-block}.confirm-table button{margin:0 6px 4px 0;min-height:38px}
.send-back{display:block;max-width:100%}.send-back summary{cursor:pointer;padding:6px 0;color:var(--muted);font-size:14px;width:max-content;max-width:100%}.send-back form{margin-top:6px}.send-back input{margin-bottom:6px;width:100%;min-width:0}.send-back button{white-space:nowrap}@media(min-width:651px){.confirm-table th:last-child,.confirm-table td:last-child{width:230px}}
.confirm-here{margin-top:14px;display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.confirm-here button{margin:0}
.other-brand{padding-top:10px;padding-bottom:10px}.other-add summary{cursor:pointer;font-weight:650;padding:8px 0;color:var(--ink)}
.other-picker{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:6px 0}.other-picker>div{flex:1 1 180px;margin:0}.other-picker .box{flex:0 0 110px;width:110px}.other-picker button{margin:0}
.other-brand .product-row:first-child{border-top:0}.route-search-label{display:block;font-weight:650;margin-bottom:4px}

/* ---- 0.3.0: Done, prices, notifications, management reports ---- */
.st-loaded{background:#195638;color:#fff;border-color:#195638}.st-loaded::before{content:"\2713\2713\00a0"}
.route-card.st-loaded{border-left-color:#195638}
.bell{display:inline-flex;align-items:center;gap:6px;margin-right:14px;text-decoration:none}.bell-count{display:inline-block;min-width:22px;text-align:center;background:#b3382c;color:#fff;border-radius:11px;padding:1px 7px;font-size:12px;font-weight:700}
@media(min-width:1101px){.cards.cards-5{grid-template-columns:repeat(5,1fr)}.cards.cards-5 a.card{padding:18px 18px}}
@media(min-width:651px) and (max-width:1100px){.cards.cards-5{grid-template-columns:repeat(3,1fr)}}
.tick-done{display:inline-block}.tick-done summary{cursor:pointer;list-style:none;display:inline-block;border:1px solid #195638;color:#195638;background:#fff;border-radius:6px;padding:5px 12px;font-weight:700;font-size:14px;min-height:34px}.tick-done summary::-webkit-details-marker{display:none}.tick-done summary::before{content:"\2713\00a0"}
.tick-done[open]{flex:1 1 100%;text-align:right}.tick-done[open] summary{display:none}.tick-done form{margin:0;display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.tick-done form button{margin:0;min-height:36px;padding:6px 12px}.tick-done form span{font-size:14px}
.done-panel{border-left:6px solid #195638}.done-panel h2{margin-top:0}.done-panel .confirm-here{margin-top:0;align-items:center}
.note-list{list-style:none;margin:0;padding:0}.note-list li{display:flex;gap:16px;padding:11px 8px;border-bottom:1px solid #e3e5ee;align-items:flex-start}.note-list li:last-child{border-bottom:0}.note-list li.unread{background:#fff8e8}.note-when{flex:0 0 108px;font-size:13px;color:var(--muted)}.note-text{flex:1;min-width:0;overflow-wrap:anywhere}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:12px 0}.step-head{display:flex;justify-content:space-between;gap:8px;font-size:15px}.steps progress{width:100%;height:14px;accent-color:#195638}
@media(max-width:650px){.steps{grid-template-columns:1fr;gap:10px}.note-list li{flex-direction:column;gap:2px}.note-when{flex:none}.note-when br{display:none}.bell{margin-right:10px}}
.amount-line{font-size:17px;margin:8px 0 0}.as-h1{font-size:28px;margin:0}.cards a.card strong.money-big{overflow-wrap:anywhere}@media(max-width:650px){.cards a.card strong.money-big{font-size:21px}}
.money-lines tfoot th{border-top:2px solid var(--ink)}tfoot th{text-align:left}tfoot th.numeric{text-align:right}
tr.on-list th.sticky-col{box-shadow:inset 4px 0 0 #195638}.route-ticks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px 16px}.route-ticks .check{margin:0;padding:4px 0}

/* ---- 0.3.1: after the second audit ---- */
.tick-done-page summary{padding:9px 16px;font-size:15px;min-height:42px}.tick-done-page[open]{text-align:left}.tick-done-page form{justify-content:flex-start}.done-hint{margin:0 0 10px}
.report-version{border-top:1px solid var(--line);padding:10px 0 4px}.report-version:first-of-type{border-top:0}.report-version h3{margin:0}.report-version p{margin:2px 0 8px}
.saved-report{white-space:pre-wrap;overflow-wrap:anywhere;background:#F4F3EB;border:1px solid var(--line);border-radius:8px;padding:14px;font:14px/1.5 Consolas,'Courier New',monospace;max-height:520px;overflow:auto}
.money-lines td.numeric,#progress td.numeric,.cards strong.money-big{white-space:nowrap}
@media(max-width:650px){.money-lines{font-size:13px;table-layout:auto}.money-lines td,.money-lines th{padding:8px 3px;overflow-wrap:normal;word-break:normal}.money-lines th{font-size:10px;letter-spacing:0;white-space:normal}.money-lines th:nth-child(2),.money-lines td:nth-child(2){max-width:64px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
