.sheet-mode .page-head{margin:18px 0}.sheet-mode .stats{gap:12px;margin-bottom:16px}.sheet-mode .stat{padding:12px 18px}.sheet-mode .stat-value{font-size:23px;margin:6px 0}.sheet-mode .stat-note,.sheet-mode .stat-icon{display:none}.sheet-mode .panel-head{padding:15px 18px}.sheet-mode .panel-head p{max-width:430px;line-height:1.5}.sheet-mode .toolbar{flex-wrap:wrap;justify-content:flex-end}.sheet-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#f8faf7;padding:10px 14px;border-top:1px solid #e1e9e0;border-bottom:1px solid #dce6db}.sheet-toolbar label{font-size:11px;display:flex;align-items:center;gap:8px;margin-left:8px}.sheet-company{font-size:11px;width:105px;padding:6px}.sheet-dirty{font-weight:500;color:#9a7535;font-size:11px;margin-left:auto}.sheet-help{padding:9px 16px;font-size:11px;color:#6d837a;line-height:1.7}.sheet-help span{margin-left:12px;color:#91a195}.sheet-wrap{height:calc(100vh - 445px);min-height:325px;overflow:auto;position:relative;border-top:1px solid #d5e1d3;background:#fff}.sheet-grid{table-layout:fixed;width:max-content;border-collapse:separate;border-spacing:0;white-space:normal}.sheet-grid th,.sheet-grid td{padding:0;font-size:12px;border:0;border-right:1px solid #dae4d8;border-bottom:1px solid #dae4d8;vertical-align:middle}.sheet-grid thead th{background:#e0edd5;color:#365438;text-align:center;font-size:11px;position:sticky;top:26px;z-index:3;height:43px;line-height:1.6;font-weight:500;white-space:nowrap}.sheet-grid thead th small{display:block;font-size:10px;color:#8c9e87}.sheet-grid .sheet-groups th{height:26px;top:0;background:#c8deba;font-size:11px;letter-spacing:.5px}.sheet-grid thead .procurement-col,.sheet-grid .sheet-groups th:last-child{background:#d8eef6;color:#376b7f}.sheet-grid td.procurement-col{background:#f1f8fb}.sheet-grid .sheet-number{width:52px;min-width:52px;position:sticky;left:0;background:#f3f6f0;color:#93a28d;text-align:center;font-size:11px;font-weight:400;z-index:2}.sheet-grid thead .sheet-number,.sheet-grid .sheet-groups th:first-child{z-index:5}.sheet-grid .sheet-first{position:sticky;left:52px;background:#fff;z-index:1}.sheet-grid thead tr:last-child th:nth-child(2){left:52px;z-index:4}.sheet-cell{height:34px;min-height:34px;overflow:hidden;text-overflow:ellipsis;white-space:pre;padding:8px 9px;outline:none;font-size:12px;cursor:cell;line-height:18px;position:relative}.sheet-cell.editable{color:#2d4534}.sheet-cell.selected{background:#e3f0e980;box-shadow:inset 0 0 0 1px #b4d7c4}.sheet-cell.active{box-shadow:inset 0 0 0 2px #137e64;z-index:1}.sheet-cell[contenteditable]:focus{background:#fffef4}.sheet-image-cell{display:flex;align-items:center;justify-content:center;padding:2px;color:#95a997;font-size:10px}.sheet-image-cell img{height:29px;max-width:80px;object-fit:contain}.sheet-grid .sheet-error-row th{background:#ffe9df;color:#a14f31}.sheet-grid .sheet-error-row td:not(.procurement-col){background:#fff8f1}.row-error-dot{font-size:11px;background:#bf7454;color:white;border-radius:50%;padding:0 4px;margin-left:2px}.row-dirty-dot{color:#cc9d52;margin-left:3px}.sheet-bottom{display:flex;align-items:center;gap:12px;padding:9px 14px;font-size:11px;color:#91a08b;background:#fafcf8;min-height:35px}.sheet-reference{color:#56765c;min-width:38px}.sheet-message{color:#827948;flex:1}.sheet-bottom>span:last-child{font-size:10px}@media(max-width:760px){.sheet-toolbar{gap:7px}.sheet-toolbar .btn{font-size:10px;padding:7px 9px}.sheet-help span{display:block;margin:0}.sheet-bottom>span:last-child{display:none}.sheet-wrap{min-height:350px}.sheet-dirty{margin-left:0}.sheet-mode .stats{gap:7px}.sheet-mode .stat{padding:10px}.sheet-mode .toolbar{justify-content:flex-start}}
.sheet-grid .sheet-groups th:not(:first-child){text-align:left;padding-left:14px}
/* Match the ERP chrome while preserving input/procurement column cues. */
.sheet-toolbar{background:#f7f9ff;border-color:#e3e8f2}
.sheet-help{color:#7b879b}.sheet-help span{color:#929db0}
.sheet-wrap{border-top-color:#dce4f0}
.sheet-grid th,.sheet-grid td{border-right-color:#e0e6ee;border-bottom-color:#e0e6ee}
.sheet-grid thead th{background:#e9f1e7;color:#4c6651}
.sheet-grid thead th small{color:#8d9d90}
.sheet-grid .sheet-groups th{background:#d6e6d1;color:#49644c}
.sheet-grid thead .procurement-col,.sheet-grid .sheet-groups th:last-child{background:#dfe9fb;color:#365b91}
.sheet-grid td.procurement-col{background:#f3f7ff}
.sheet-grid .sheet-number{background:#f3f5fa;color:#8c99ae}
.sheet-cell.editable{color:#33445d}
.sheet-cell.selected{background:#e8efffb3;box-shadow:inset 0 0 0 1px #c0d1f0}
.sheet-cell.active{box-shadow:inset 0 0 0 2px #4779f5}
.sheet-image-cell{color:#8a9ab4}
.sheet-bottom{background:#f8faff;color:#8b98ac}
.sheet-reference{color:#4a70ab}
.sheet-cell.sheet-multiline{height:auto;min-height:44px;white-space:pre-wrap;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;line-height:20px;padding:8px 9px}
.sheet-cell[contenteditable]:focus{white-space:pre-wrap;height:auto;min-height:44px;overflow-wrap:anywhere}
.sheet-grid td:has(.sheet-multiline){vertical-align:top}
.spec-review{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}
.spec-review>img{width:100%;max-height:60vh;object-fit:contain;background:#f5f7fc;border:1px solid var(--line);border-radius:8px}
.spec-review textarea{min-height:130px;line-height:1.7}.spec-review summary{cursor:pointer;color:#4a70ab;font-size:12px}.ocr-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font-size:12px;color:#718097}
@media(max-width:760px){.spec-review{grid-template-columns:1fr}.spec-review>img{max-height:220px}}
.panel .table-wrap th:last-child{background:#f5f7fc}
.panel .table-wrap tbody tr:hover td:last-child{background:#f7f9ff}
/* Explicit table and column widths keep long product titles inside their cells. */
.sheet-grid{width:4297px}
.sheet-grid .sheet-width-52{width:52px}.sheet-grid .sheet-width-75{width:75px}.sheet-grid .sheet-width-90{width:90px}.sheet-grid .sheet-width-105{width:105px}.sheet-grid .sheet-width-110{width:110px}.sheet-grid .sheet-width-120{width:120px}.sheet-grid .sheet-width-125{width:125px}.sheet-grid .sheet-width-130{width:130px}.sheet-grid .sheet-width-140{width:140px}.sheet-grid .sheet-width-150{width:150px}.sheet-grid .sheet-width-180{width:180px}.sheet-grid .sheet-width-190{width:190px}.sheet-grid .sheet-width-200{width:200px}.sheet-grid .sheet-width-220{width:220px}
