:root{--navy:#102a43;--navy2:#193d58;--accent:#17658b;--ink:#1a2d3d;--mute:#607488;--line:#dbe5ed;--bg:#edf2f7;--paper:#fff}
*{box-sizing:border-box}html{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;line-height:1.27}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #287fb1;outline-offset:2px}a{color:#0c6794}button:disabled{opacity:.5;cursor:not-allowed}.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;top:-80px;left:10px;z-index:40;background:white;padding:8px}.skip-link:focus{top:5px}.container{width:min(1400px,calc(100% - 36px));margin:0 auto}.site-header{background:var(--navy);color:#fff;box-shadow:0 3px 10px #122e4333}.heading-row{height:53px;display:flex;align-items:center;justify-content:space-between;gap:12px}.identity{display:flex;align-items:center;gap:10px}.brand-chip{font-size:15px;font-weight:850;letter-spacing:-.04em;color:#fff;border:1px solid #ffffff65;width:34px;height:32px;border-radius:6px;display:grid;place-items:center}.identity-text{display:flex;flex-direction:column;gap:2px}.identity-text strong{font-size:11px;letter-spacing:.08em}.identity-text small{font-size:9px;color:#b1d1e2;letter-spacing:.11em}.heading-right{display:flex;align-items:center;gap:17px}.head-status{font-weight:750;font-size:10px;color:#dcebf2}.dot{display:inline-block;width:6px;height:6px;background:#46dba4;border-radius:50%;margin-right:5px}.page-title{font-size:11px;font-weight:800;letter-spacing:.14em;border-left:1px solid #456074;padding-left:16px}.main{padding-top:12px}.workspace{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--paper);box-shadow:0 4px 24px #28445911}.pick-area{padding:11px 14px 9px;background:#fff}.block-title,.title-with-meta,.picker-bottom,.filter-top,.filter-bottom,.result-header,.model-caption{display:flex;align-items:center}.block-title{justify-content:space-between;margin-bottom:9px;gap:8px}.title-with-meta{gap:12px;flex-wrap:wrap}.block-title h1{font-size:17px;letter-spacing:-.025em;margin:0}.statline,.tiny-muted{font-size:10px;color:var(--mute)}.picker-grid{display:grid;grid-template-columns:1.15fr 1.5fr .85fr;gap:8px}.picker-grid input,.picker-grid select,.search-field input{border:1px solid #cfdee8;border-radius:7px;background:#fff;color:#263f51;padding:0 10px;height:35px;max-width:100%;width:100%;outline:0;font-size:12px}.picker-grid select{padding-right:22px}.picker-bottom{justify-content:space-between;margin-top:5px;gap:8px}.selected-meta{font-weight:650;color:#466983}.text-action{font-size:11px;color:#17658b;background:transparent;border:0;padding:5px 3px;font-weight:750;white-space:nowrap}.text-action:hover{text-decoration:underline}.quick-models{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}.quick-models[hidden]{display:none}.chip{border:1px solid #ccdce6;border-radius:6px;padding:7px 11px;background:#f3f7fa;font-size:11px;color:#385a70;font-weight:720}.chip:hover{background:#e5f2f8}.empty-stage{padding:40px 10px 50px;text-align:center;color:#465f74;min-height:205px}.empty-stage strong{display:block;margin:8px 0;font-size:15px}.empty-stage p{margin:0;font-size:12px}.empty-glyph{display:grid;place-items:center;border-radius:100%;width:42px;height:42px;background:#e8f1f7;margin:auto;font-size:26px}.detail-area[hidden],.empty-stage[hidden],.source-note[hidden],.toast[hidden],[hidden]{display:none!important}.filter-area{padding:9px 14px 8px;background:#f7fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.filter-top{justify-content:space-between;gap:15px}.model-caption{align-items:start;flex-direction:column;gap:3px;min-width:0}.model-caption strong{font-size:13px;letter-spacing:-.02em;overflow-wrap:anywhere}.model-caption span{font-size:9px;color:var(--mute);font-weight:750;letter-spacing:.07em}.pm-tabs{display:flex;gap:5px;flex-shrink:0}.pm-tab{border:1px solid #c9dbe6;border-radius:6px;background:#fff;min-width:58px;padding:4px 7px;font-size:12px;font-weight:850;color:#49677b;height:35px}.pm-tab small{font-size:8px;font-weight:600;letter-spacing:.02em;margin-left:3px}.pm-tab[aria-checked=true]{background:var(--navy2);color:#fff;border-color:var(--navy2)}.filter-bottom{gap:13px;margin-top:8px}.search-field{flex:1;min-width:0}.search-field input{height:33px}.cat-tabs{display:flex;border:1px solid #ccdfe9;border-radius:7px;overflow:hidden;flex-shrink:0}.cat-tab{border:0;border-right:1px solid #ccdfe9;background:#fff;color:#456478;font-size:10.5px;font-weight:750;padding:7px 10px;white-space:nowrap}.cat-tab:last-child{border-right:0}.cat-tab.active{background:#dfeef6;color:#104c68}.switch-label{font-size:10.5px;color:#445f72;display:flex;gap:5px;align-items:center;white-space:nowrap}.switch-label input{accent-color:var(--navy);margin:0;width:15px;height:15px}.result-header{justify-content:space-between;min-height:35px;padding:7px 14px;gap:10px}.result-header h2{display:flex;align-items:baseline;gap:9px;font-size:13px;margin:0}.result-count{font-size:10px;color:#536e80;font-weight:500}.result-help{font-size:10px;color:#6c8393}.results-scroll{overflow:auto;max-height:calc(100dvh - 272px);min-height:80px;overscroll-behavior:contain;border-top:1px solid var(--line)}.compact-table{border-collapse:collapse;width:100%;font-size:11.5px;table-layout:fixed}.compact-table th{text-align:left;background:#e9f1f6;color:#31536d;position:sticky;top:0;z-index:1;white-space:nowrap;padding:8px 9px;font-size:10px;letter-spacing:.01em;border-bottom:1px solid #bdd3df}.compact-table th:nth-child(1){width:42px}.compact-table th:nth-child(2){width:32%}.compact-table th:nth-child(3){width:22%}.compact-table th:nth-child(4){width:auto}.compact-table th:nth-child(5){width:95px}.compact-table th:nth-child(6){width:54px}.compact-table td{padding:5px 9px;border-bottom:1px solid #e9eff4;vertical-align:middle;overflow-wrap:anywhere;line-height:1.19}.compact-table tbody tr:nth-child(even){background:#f8fafc}.compact-table tbody tr:hover{background:#e9f5fa}.compact-table .col-no{color:#8aa0b1;text-align:center}.compact-table .col-qty{text-align:right;white-space:nowrap}.compact-table .col-qty strong{font-size:12.5px;color:#174863}.compact-table .col-qty small{font-size:9px;color:#6a8190}.compact-table .col-more{text-align:center}.row-trigger{display:block;border:0;background:transparent;padding:2px 0;font-size:11.5px;font-weight:700;color:#203a4e;text-align:left;max-width:100%;overflow-wrap:anywhere}.row-trigger:hover,.row-trigger:focus-visible{color:#0d719d;text-decoration:underline}.cell-code{font-variant-numeric:tabular-nums;font-size:11px;color:#344f63}.cell-code.itc{color:#0a6289}.cell-code.muted{color:#a6b4bf}.open-btn{border:1px solid #cadde8;border-radius:6px;color:#256685;font-weight:800;background:#fff;padding:1px 11px;font-size:18px}.mobile-grid{display:none}.no-results{padding:35px 15px;text-align:center;font-size:12px;color:var(--mute)}.source-note,.notes{margin:7px 14px 0;border-top:1px solid #e2eaf0;color:#5e7383;font-size:10.5px;padding:6px 1px}.source-note{color:#816224}.source-note summary,.notes summary{cursor:pointer;font-weight:700}.notes p{margin:7px 0}.source-note div{margin-top:7px}.workspace+footer{font-size:10px;color:#788a99;text-align:center;padding:12px 0 16px}.toast{position:fixed;bottom:19px;left:50%;transform:translateX(-50%);background:#173f58;color:white;padding:11px 15px;border-radius:9px;box-shadow:0 4px 15px #122a4370;z-index:50;font-size:12px;max-width:90vw}.item-dialog{border:1px solid #cfdee7;border-radius:13px;padding:0;width:min(560px,calc(100vw - 22px));max-height:85dvh;box-shadow:0 25px 70px #0b203b60;color:var(--ink);overflow:auto}.item-dialog::backdrop{background:#0b223b94}.dialog-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:start;gap:10px;padding:16px 18px 12px;z-index:2}.dialog-kicker{display:block;color:#698093;font-size:10px;margin-bottom:4px}.dialog-header h2{font-size:18px;margin:0;line-height:1.2}.close-dialog{width:32px;height:32px;border:1px solid #d9e4ec;border-radius:7px;background:#f6f9fb;font-size:14px;color:#3c5870}.dialog-content{padding:16px 18px}.detail-qty{padding:11px 14px;background:#e9f3f8;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:10px}.detail-qty>span{font-size:12px;color:#37576c}.detail-qty strong{font-size:20px;white-space:nowrap}.detail-qty strong small{font-size:11px;color:#5d798a}.detail-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.detail-fields>div{background:#f7fafc;border:1px solid #e1ebf2;border-radius:8px;padding:12px;min-width:0}.detail-fields>div:first-child{grid-column:1/-1}.detail-fields span{display:block;color:#6d8495;font-size:10px;margin-bottom:5px}.detail-fields strong{display:block;font-size:12px;overflow-wrap:anywhere}.xref-section{margin-top:16px}.xref-section h3{margin:0 0 9px;font-size:13px}.xref-group{border:1px solid #e0e9f0;border-radius:8px;margin-top:8px;overflow:hidden}.xref-heading{padding:8px 11px;font-size:11px;font-weight:800;background:#f5f9fb}.xref-line{padding:9px 11px;border-top:1px solid #e6edf3;display:flex;justify-content:space-between;gap:8px;font-size:11px}.xref-line span{display:block;color:#708b9a}.xref-line strong{display:block;overflow-wrap:anywhere}.xref-line .status{align-self:center;font-size:10px;white-space:nowrap}.status.pending{color:#b77b1a}.status.confirmed{color:#16845a}.status.unavailable{color:#778a98}.small-muted{font-size:11px;color:#6c8190}.dialog-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:10px 18px;display:flex;justify-content:flex-end}.btn-done{background:#174b6a;border:0;border-radius:8px;color:#fff;font-size:12px;font-weight:750;padding:9px 18px}
@media(max-width:820px){.container{width:calc(100% - 20px)}.page-title{display:none}.heading-row{height:44px}.identity{gap:8px}.brand-chip{height:29px;width:30px;font-size:13px}.identity-text strong{font-size:10px}.identity-text small{font-size:8px}.head-status{font-size:9px}.main{padding-top:8px}.pick-area{padding:9px 9px 6px}.title-with-meta{gap:9px}.block-title h1{font-size:15px}.picker-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.picker-search{grid-column:1/-1}.picker-model{grid-column:1/2}.picker-type{grid-column:2/3}.picker-grid input,.picker-grid select{height:32px;font-size:11px}.picker-bottom{margin-top:3px}.selected-meta{max-width:64%;text-align:right}.filter-area{padding:7px 9px}.filter-top{align-items:start;gap:6px;flex-direction:column}.model-caption{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:5px}.model-caption strong{font-size:12px}.model-caption span{font-size:9px}.pm-tabs{width:100%;gap:4px}.pm-tab{min-width:0;flex:1;height:32px;font-size:11px;padding:3px 2px}.pm-tab small{font-size:8px}.filter-bottom{margin-top:6px;gap:6px;flex-wrap:wrap}.search-field{flex:1 1 100%}.search-field input{height:31px;font-size:11px}.cat-tabs{flex:1}.cat-tab{flex:1;padding:7px 5px;font-size:10px}.switch-label{font-size:9px;max-width:44%;white-space:normal}.result-header{padding:6px 9px;min-height:31px}.result-header h2{font-size:12px}.result-count{font-size:9px}.result-help{display:none}.desktop-table{display:none}.mobile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:6px;background:#f5f8fb}.results-scroll{max-height:calc(100dvh - 262px)}.mini-item{text-align:left;background:#fff;border:1px solid #e0e8f0;border-radius:6px;padding:5px 7px;display:flex;flex-direction:column;justify-content:space-between;min-width:0;gap:4px;min-height:53px;box-shadow:0 1px 2px #142e4208}.mini-item:hover,.mini-item:focus-visible{border-color:#7fb6d0;background:#f3fbfe}.mini-top{display:flex;gap:3px;justify-content:space-between;align-items:start;min-width:0}.mini-name{font-size:10px;font-weight:760;line-height:1.14;color:#203e52;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.mini-qty{color:#105b7c;background:#e4f2f9;white-space:nowrap;font-size:12px;font-weight:840;border-radius:4px;min-width:27px;padding:2px 3px;text-align:center;flex-shrink:0}.mini-qty small{display:block;font-size:7px;color:#4c7184;font-weight:700}.mini-bottom{display:flex;align-items:center;justify-content:space-between;min-width:0}.mini-pn{font-size:9px;color:#628096;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}.mini-section{font-size:8px;color:#42865c;font-weight:800;background:#edf7f0;padding:1px 3px;border-radius:3px}.notes,.source-note{margin:5px 10px 0;font-size:9.5px;padding:5px 0}.workspace+footer{padding:8px 0;font-size:9px}.detail-qty strong{font-size:18px}}
@media(max-width:360px){.identity-text strong{font-size:9px}.head-status{font-size:8px}.mini-name{font-size:9.5px}.mini-item{padding:5px}.cat-tab{font-size:9px}.switch-label{font-size:8px}}
@media print{html,body{background:#fff}.site-header{background:#102a43!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.workspace{box-shadow:none;border:0}.pick-area,.filter-area,.result-help,.result-header .text-action,.open-btn,.source-note,.notes,footer,.mobile-grid,.item-dialog{display:none!important}.detail-area{display:block!important}.result-header{padding:8px 0}.results-scroll{max-height:none;overflow:visible}.desktop-table{display:block!important}.compact-table{font-size:9px}.compact-table th,.compact-table td{font-size:8px;padding:5px;break-inside:avoid}.compact-table tr{break-inside:avoid}.row-trigger{font-size:8px}.compact-table th{position:static}.compact-table th:nth-child(6),.compact-table td:nth-child(6){display:none}thead{display:table-header-group}@page{size:A4 landscape;margin:10mm}}

/* Compact collapsed picker after a model is selected */
.model-actions{display:flex;gap:12px;align-items:center;flex-shrink:0}.model-actions .text-action{font-size:11px}.pick-area:has(#pickerGrid[hidden]){padding-top:9px;padding-bottom:9px}.pick-area:has(#pickerGrid[hidden]) .block-title{margin-bottom:0}.pick-area:has(#pickerGrid[hidden]) .block-title h1{font-size:15px}.pick-area:has(#pickerGrid[hidden]) .statline{font-size:9px}.pick-area:has(#pickerGrid[hidden]) .title-with-meta{gap:10px}
@media(max-width:820px){.model-actions{gap:7px}.model-actions .text-action{font-size:10px}.pick-area:has(#pickerGrid[hidden]) .block-title h1{font-size:12px}.pick-area:has(#pickerGrid[hidden]) .statline{font-size:9px}.pick-area:has(#pickerGrid[hidden]) .title-with-meta{flex-direction:column;align-items:start;gap:2px}.pick-area:has(#pickerGrid[hidden]) .model-actions .text-action{padding:4px 0}.pick-area:has(#pickerGrid[hidden]) .model-caption{display:none}.model-caption{display:none}.results-scroll{max-height:calc(100dvh - 188px)}.result-header{padding-top:5px;padding-bottom:5px}}
@media(min-width:821px){.results-scroll{max-height:calc(100dvh - 200px)}}


/* V3 – spreadsheet/table style matching source PDF; filter controls unchanged. */
.results-scroll{max-height:none!important;min-height:0;overflow:visible;border-top:1px solid #ccd8e2}
.material-list{width:100%}
.bom-table{width:100%;border-collapse:collapse;table-layout:fixed;color:#163047;font-size:11.5px;line-height:1.17}
.bom-table .number-col{width:3.8%}
.bom-table .material-col{width:24%}
.bom-table .genuine-col{width:16.5%}
.bom-table .itc-col{width:17%}
.bom-table .uom-col{width:4.5%}
.bom-table col.pm-col{width:6.84%}
.bom-table th,.bom-table td{border:1px solid #d4dfe8;padding:4px 7px;text-align:left;vertical-align:middle;overflow-wrap:anywhere;white-space:normal}
.bom-table thead th{background:#142e47;color:#fff;font-weight:760;font-size:10.5px;line-height:1.15;white-space:normal}
.bom-table thead th.pm-col{text-align:center;white-space:nowrap}
.bom-table thead th.pm-col.is-active{background:#1c638c;color:#fff}
.bom-table tbody tr.material-row:nth-of-type(2n+1){background:#f7fafc}
.bom-table tbody tr.material-row:hover{background:#ecf5fb}
.bom-table .section-row th{background:#e6edf3;color:#193b53;letter-spacing:.02em;font-size:11px;font-weight:800;text-align:left;padding:5px 9px}
.bom-table .number-cell{font-variant-numeric:tabular-nums;color:#37546a}
.bom-table .part-number-cell,.bom-table .itc-cell{font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere;font-size:11px}
.bom-table .uom-cell{text-align:center}
.bom-table .qty-cell{font-variant-numeric:tabular-nums;text-align:center;font-weight:600}
.bom-table .qty-cell.is-active{background:#e9f5fd;color:#0a4b72;font-weight:800}
.bom-table .material-button{display:block;background:none;border:0;padding:0;margin:0;text-align:left;color:inherit;line-height:inherit;font-size:inherit;font-weight:600;white-space:normal;cursor:pointer}
.bom-table .material-button:hover{text-decoration:underline;color:#0e719f}
.bom-table .material-button:focus-visible{outline:2px solid #287fb1;outline-offset:1px}
@media(max-width:900px){
 .container{width:calc(100% - 12px)}
 .workspace{border-radius:9px}
 .results-scroll{max-height:none!important;overflow:visible}
 .bom-table{font-size:9px;line-height:1.12;table-layout:fixed}
 .bom-table .number-col{width:6%}
 .bom-table .material-col{width:29%}
 .bom-table .genuine-col{width:21%}
 .bom-table .itc-col{width:25%}
 .bom-table .uom-col{width:7%}
 .bom-table col.pm-col.is-active{width:12%}
 .bom-table .pm-col:not(.is-active){display:none}
 .bom-table th,.bom-table td{padding:3px 3px;border-color:#d9e2eb}
 .bom-table thead th{font-size:8.5px;line-height:1.09}
 .bom-table thead th.pm-col.is-active{font-size:9px;white-space:normal}
 .bom-table .part-number-cell,.bom-table .itc-cell{font-size:8.8px;line-height:1.12}
 .bom-table .material-button{font-weight:650;font-size:9px;line-height:1.12}
 .bom-table .section-row th{font-size:9px;padding:4px 6px}
 .bom-table .uom-cell{font-size:8.5px}
 .bom-table .qty-cell{font-size:10px}
 .result-header{min-height:27px}
 .result-help{display:none}
}
@media(max-width:370px){
 .bom-table{font-size:8.5px}
 .bom-table .material-button{font-size:8.5px}
 .bom-table .part-number-cell,.bom-table .itc-cell{font-size:8.2px}
 .bom-table th,.bom-table td{padding:3px 2px}
}
@media print{
 html,body{background:#fff}
 .site-header{background:#102a43!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .workspace{box-shadow:none;border:0}
 .pick-area,.filter-area,.result-help,.result-header .text-action,.source-note,.notes,footer,.item-dialog{display:none!important}
 .detail-area{display:block!important}
 .result-header{padding:6px 0}
 .results-scroll{max-height:none!important;overflow:visible!important}
 .bom-table{font-size:9px;table-layout:fixed}
 .bom-table .pm-col{display:table-cell!important}
 .bom-table col.pm-col{display:table-column!important}
 .bom-table th,.bom-table td{font-size:8px;padding:4px;break-inside:avoid}
 .bom-table thead th{font-size:8px}
 .bom-table tr{break-inside:avoid}
 .bom-table .material-button,.bom-table .itc-cell,.bom-table .part-number-cell{font-size:8px}
 .bom-table thead{display:table-header-group}
 .bom-table .section-row th{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 @page{size:A4 landscape;margin:9mm}
}


/* V4 – narrow right-hand SoH column, original PM controls and table preserved */
.soh-switch{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-weight:750;font-size:10px;color:#37576c}
.soh-switch select{border:1px solid #c9dbe6;background:#fff;color:#23465d;border-radius:5px;font-size:10px;padding:5px;max-width:127px}
.soh-status{display:block;font-size:9px;font-weight:750;color:#90601a;white-space:normal;margin-top:2px}
.bom-table .material-col{width:22%}.bom-table .genuine-col{width:15%}.bom-table .itc-col{width:16%}.bom-table .uom-col{width:4.5%}.bom-table col.pm-col{width:6.3%}.bom-table col.soh-col{width:7.2%}
.bom-table thead th.soh-heading{background:#225a78;text-align:center;white-space:nowrap}
.bom-table .soh-cell{text-align:center;font-variant-numeric:tabular-nums;font-size:10px;font-weight:800;background:#f1f6f9;white-space:nowrap;overflow-wrap:normal}
.soh-double{display:flex;align-items:center;justify-content:space-around;gap:3px;white-space:nowrap;font-size:9px}
.soh-double span{display:inline-block}.soh-double span:first-child{color:#124f7a}.soh-double span:last-child{color:#486579}
.soh-na{font-weight:500;color:#95a4af}.soh-zero{color:#a04634}.soh-overlap{margin-left:2px;color:#b57716;font-weight:800;cursor:help}
.detail-stock{margin-top:12px;border:1px solid #dbe5ed;border-radius:8px;padding:10px;background:#f8fbfd;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}
.detail-stock strong{flex-basis:100%}.detail-stock span{background:#e9f2f7;padding:4px 9px;border-radius:5px}.detail-stock small{display:block;width:100%;color:#61788a;font-size:10px}
@media(max-width:900px){
 .bom-table .number-col{width:5%}.bom-table .material-col{width:24%}.bom-table .genuine-col{width:19%}.bom-table .itc-col{width:22%}.bom-table .uom-col{width:6%}.bom-table col.pm-col.is-active{width:9%}.bom-table col.soh-col{width:15%}
 .bom-table .soh-cell{font-size:9px;padding:3px 1px;white-space:normal}.soh-double{font-size:8px;gap:0;flex-direction:column;line-height:1.08}
 .soh-switch select{font-size:9px;padding:4px;max-width:112px}
 .soh-status{margin-left:0;display:block;margin-top:2px}
}
@media print{.soh-switch{display:none!important}.bom-table .soh-cell{font-size:8px}.soh-double{flex-direction:row;font-size:7px}}

/* V4.1: visible live-sync feedback and manual reconnect */
.soh-status[data-source="live"]{color:#17734b}
.soh-status[data-source="partial"]{color:#995e1d}
.soh-retry{display:inline-block;border:0;background:transparent;color:#1a648a;font-size:10px;font-weight:750;padding:2px 1px;margin-left:9px}
.soh-retry:hover{text-decoration:underline}
.soh-retry:disabled{opacity:.55}
@media print{.soh-retry{display:none!important}}

/* V4.3 – compact site-specific stock sufficiency indicators (single PM event). */
.bom-table .soh-cell{background:#f8fafc}
.soh-double{justify-content:center;gap:3px}
.soh-pill{display:inline-flex;align-items:center;justify-content:center;gap:2px;border:1px solid transparent;border-radius:4px;padding:2px 4px;line-height:1.15;font-size:9px;font-weight:800;white-space:nowrap;min-width:26px;font-variant-numeric:tabular-nums}
.soh-pill::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;flex:none;margin-right:1px}
.soh-pill .soh-place{font-size:8px;font-weight:850}.soh-pill .soh-value{font-size:9.5px}
.soh-enough{background:#e3f5e8;border-color:#a6ddba;color:#165b36}
.soh-low{background:#fff0c7;border-color:#e9c96b;color:#825600}
.soh-empty{background:#fde6e6;border-color:#efb7b7;color:#a22b2b}
.soh-unknown,.soh-notrequired{background:#eef1f4;border-color:#d6dfe6;color:#5e7182}
.soh-notrequired{opacity:.75}.soh-unknown .soh-value{font-weight:600}
.soh-legend{display:flex;flex-wrap:wrap;gap:4px 13px;align-items:center;margin:3px 0 0;color:#50687b;font-size:9px;line-height:1.15}
.soh-legend span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.soh-legend-dot{width:7px;height:7px;border:1px solid;border-radius:3px;display:inline-block}
.soh-legend-dot.soh-enough{background:#a8d9b9;border-color:#5a9e75}.soh-legend-dot.soh-low{background:#f1ce78;border-color:#af8639}.soh-legend-dot.soh-empty{background:#f0a9a9;border-color:#ad5252}.soh-legend-dot.soh-unknown{background:#d1dbe4;border-color:#8195a5}
@media(max-width:900px){.soh-double{flex-direction:column;gap:2px}.soh-pill{font-size:8px;padding:1px 3px;min-width:23px}.soh-pill .soh-value{font-size:8.5px}.soh-legend{font-size:8px;gap:3px 8px}}
@media print{.soh-pill,.soh-legend-dot{-webkit-print-color-adjust:exact;print-color-adjust:exact}.soh-legend{font-size:8px}.soh-double{flex-direction:row;gap:2px}.soh-pill{padding:1px 2px}}

/* V4.4 — table header/column fit; no modification to PM filters or stock logic. */
.bom-table {table-layout:fixed;width:100%}
.bom-table .number-col {width:4%}
.bom-table .material-col {width:20%}
.bom-table .genuine-col {width:14%}
.bom-table .itc-col {width:17%}
.bom-table .uom-col {width:5.5%}
.bom-table col.pm-col {width:5.7%}
.bom-table col.soh-col {width:11%}
.bom-table thead th {padding:5px 5px;vertical-align:middle;word-break:normal;overflow-wrap:normal;hyphens:none;line-height:1.2}
.bom-table thead th:first-child {white-space:nowrap;text-align:center}
.bom-table thead th:nth-child(5) {white-space:nowrap;text-align:center}
.bom-table tbody td.number-cell {white-space:nowrap;overflow-wrap:normal;text-align:center;padding-left:2px;padding-right:2px}
.bom-table thead th.pm-col {padding-inline:2px;font-size:9.5px}
.bom-table .uom-cell {white-space:nowrap;overflow-wrap:normal;padding-inline:2px}
.pm-heading-mobile {display:none}
@media (max-width:900px) {
  .bom-table .number-col {width:7.5%}
  .bom-table .material-col {width:24%}
  .bom-table .genuine-col {width:17%}
  .bom-table .itc-col {width:19%}
  .bom-table .uom-col {width:8%}
  .bom-table col.pm-col.is-active {width:10%}
  .bom-table col.soh-col {width:14.5%}
  .bom-table thead th {font-size:8.3px;line-height:1.16;padding:5px 2px}
  .bom-table thead th:first-child {font-size:8.8px;padding-inline:1px}
  .bom-table thead th:nth-child(5) {font-size:8.3px;padding-inline:1px}
  .bom-table thead th.pm-col.is-active {font-size:9px;padding-inline:1px}
  .pm-heading-label {display:none}
  .pm-heading-mobile {display:inline}
  .bom-table tbody td.number-cell {font-size:9px;padding-inline:1px}
  .bom-table .uom-cell {font-size:8.5px;padding-inline:1px}
  .bom-table .soh-cell {padding-inline:1px}
  .soh-double {flex-direction:column;gap:2px}
}
@media (max-width:370px) {
  .bom-table thead th {font-size:7.8px;padding:4px 1px}
  .bom-table thead th:first-child {font-size:8.2px}
  .bom-table thead th:nth-child(5) {font-size:7.9px}
  .bom-table tbody td.number-cell {font-size:8.3px}
  .bom-table .uom-cell {font-size:8px}
}
@media print {
  .pm-heading-label {display:inline!important}
  .pm-heading-mobile {display:none!important}
  .bom-table thead th {font-size:7.5px}
}


/* V4.5 – Corporate IPA identity (presentation only; SoH, BOM and PM logic unchanged) */
.site-header{
  position:relative;isolation:isolate;
  background:linear-gradient(108deg,#102a43 0%,#102a43 47%,#15364f 83%,#0c2338 100%);
  color:#fff;border-bottom:1px solid #2c516d;
  box-shadow:0 5px 16px rgba(12,37,57,.16);
}
.site-header::after{
  content:"";position:absolute;bottom:0;left:0;right:0;height:2px;z-index:-1;
  background:linear-gradient(90deg,#2574a0 0%,#2574a0 29%,#d7af50 32%,#d7af50 35%,#295e7e 37%,transparent 70%);
  opacity:.9;
}
.heading-row{height:70px;min-height:70px;gap:16px}
.identity{min-width:0;display:flex;align-items:center;gap:12px;flex:0 1 auto}
.brand-mark{
  width:53px;height:53px;flex:0 0 53px;display:grid;place-items:center;
  border-radius:12px;
  background:linear-gradient(140deg,rgba(255,255,255,.13),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.15);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.brand-mark img{display:block;width:auto;height:44px;max-width:46px;object-fit:contain;object-position:center}
.identity-text{gap:5px;min-width:0}
.identity-text strong{font-size:15px;font-weight:800;letter-spacing:.045em;line-height:1.08;white-space:nowrap;color:#fff}
.identity-text small{font-size:10px;font-weight:650;letter-spacing:.24em;color:#bcd2e0;line-height:1.1;white-space:nowrap}
.heading-right{gap:22px;min-width:0;justify-content:flex-end}
.header-product{display:flex;flex-direction:column;gap:4px;align-items:flex-end;padding-right:18px;border-right:1px solid rgba(191,211,224,.26)}
.header-eyebrow{font-size:9px;letter-spacing:.20em;font-weight:650;color:#adc8db;line-height:1.1}
.header-product strong{font-size:14px;letter-spacing:.11em;font-weight:850;color:#fff;white-space:nowrap;line-height:1.1}
.head-status{display:inline-flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;
  padding:8px 10px;font-size:10px;letter-spacing:.05em;font-weight:760;
  background:rgba(15,42,60,.44);color:#d4e9e7;border:1px solid rgba(126,195,180,.22);border-radius:24px}
.head-status .dot{width:7px;height:7px;margin:0 5px 0 0;background:#3bd3a0;box-shadow:0 0 0 3px rgba(59,211,160,.11)}
.page-title{display:none}
@media(max-width:820px){
  .heading-row{height:57px;min-height:57px;gap:7px}
  .identity{gap:8px}
  .brand-mark{width:42px;height:42px;flex-basis:42px;border-radius:10px}
  .brand-mark img{height:36px;max-width:38px}
  .identity-text{gap:4px}
  .identity-text strong{font-size:11px;letter-spacing:.016em}
  .identity-text small{font-size:8px;letter-spacing:.15em}
  .heading-right{gap:8px}
  .header-product{padding:0;border:0}
  .header-eyebrow{display:none}
  .header-product strong{font-size:10px;letter-spacing:.075em}
  .head-status{font-size:8px;padding:5px 7px;gap:2px}
  .head-status .dot{width:5px;height:5px;margin-right:3px;box-shadow:none}
  .status-desktop{display:none}
}
@media(max-width:540px){
  .container{width:calc(100% - 20px)}
  .heading-row{height:56px;min-height:56px}
  .identity-text strong{font-size:10px;max-width:185px;white-space:normal;line-height:1.14}
  .identity-text small{font-size:7.4px;letter-spacing:.14em}
  .header-product{display:none}
  .head-status{margin-left:auto;padding:6px 8px;letter-spacing:0;font-size:8px}
}
@media(max-width:360px){
 .brand-mark{width:38px;height:38px;flex-basis:38px}
 .brand-mark img{height:33px;max-width:34px}
 .identity-text strong{font-size:9px;max-width:170px}
 .head-status{font-size:7.5px;padding:5px 6px}
}
@media print{
 .site-header{background:#102a43!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .header-product,.head-status{color:#fff!important}
}

/* V4.7 – Mobile brand identity: keep application name visible at every screen size.
   Presentation only; BOM, PM, SoH live JS & spreadsheet integration unchanged. */
.identity-product-mobile{display:none}
@media (max-width:820px){
  .heading-row{height:64px;min-height:64px;gap:8px}
  .identity{min-width:0;flex:1 1 auto;gap:9px}
  .identity-text{min-width:0;display:flex;flex-direction:column;gap:3px}
  .identity-text strong{font-size:10.5px;line-height:1.1;letter-spacing:.014em;white-space:nowrap;max-width:none}
  .identity-product-mobile{display:block;color:#fff;font-size:12.5px;line-height:1.07;letter-spacing:.055em;font-weight:850;white-space:nowrap}
  .identity-text small{font-size:7.8px;line-height:1.1;letter-spacing:.16em}
  .header-product{display:none}
  .heading-right{flex:0 0 auto}
  .head-status{flex:none;margin-left:0;font-size:8px;padding:6px 8px}
}
@media (max-width:380px){
  .identity{gap:7px}
  .identity-text strong{font-size:9.4px;letter-spacing:0}
  .identity-product-mobile{font-size:11.3px;letter-spacing:.025em}
  .identity-text small{font-size:7px;letter-spacing:.12em}
  .head-status{font-size:7.5px;padding:5px 6px}
}
@media (max-width:340px){
  .identity-product-mobile{font-size:10.4px}
  .identity-text strong{font-size:8.8px}
  .brand-mark{width:36px;height:36px;flex-basis:36px}
  .brand-mark img{height:31px;max-width:32px}
  .head-status{padding:5px 5px}
}

/* R155 shared BOM status */
.bom-server-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0;font-size:11px;color:#536779}.bom-server-status [data-source="server"]{color:#156349;font-weight:600}@media(max-width:540px){.bom-server-status{font-size:10px;line-height:1.5}}

@media(max-width:540px){.filter-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto}.filter-bottom .search-field,.filter-bottom .cat-tabs{grid-column:1/-1;width:100%;min-width:0}.filter-bottom .cat-tab{min-width:0}.filter-bottom .switch-label{max-width:none;grid-column:1}.filter-bottom .soh-switch{grid-column:2;justify-self:end}}
