/* Shared visual language with the approved staff shell; no business rules. */
:root{--nav:#243e60;--ink:#243244;--muted:#596777;--line:#e3e6ea;--bg:#faf9f6;--blue:#243e60;--danger:#a83232;--ok:#267252;--warn:#885b13;--pink:#f8bbd0;--radius:12px;--space:24px}
body{font-size:15px;font-variant-numeric:tabular-nums}
header{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);padding:16px 32px}
header .mark{background:#f9edf1;color:var(--nav);font-size:13px;font-weight:600}
header h1{font-size:18px;letter-spacing:.04em}
header small,header .me{color:var(--muted)}
header .manual-link,header button.logout,.langbar button{color:var(--nav);border-color:var(--line);min-height:44px;display:inline-flex;align-items:center}
.langbar button.on{background:#f9edf1;border-color:var(--pink)}
main{width:100%;max-width:1280px;min-width:0;padding:28px 24px 64px;gap:20px}
main>*,section,.card,.search-row,.rows,.prow{min-width:0;max-width:100%}
.card{padding:var(--space);border:0;border-radius:var(--radius)}
.card h2{font-size:18px;letter-spacing:0;text-transform:none;color:var(--ink);margin-bottom:20px}
label{font-size:14px;font-weight:400}
button,a.doc-btn,.file-up,summary{min-height:44px}
button{font:inherit}
button.primary,button.ghost{font-weight:500}
:focus-visible{outline:3px solid #486c94;outline-offset:3px}
.tabs{gap:24px;border-bottom:1px solid var(--line);margin-bottom:0}
.tabs button{border:0;border-radius:0;background:transparent;padding:12px 6px;color:var(--muted);font-size:16px;font-weight:500}
.tabs button.active{background:transparent;color:var(--nav);box-shadow:inset 0 -3px var(--pink)}
.product-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:12px 0}
.product-filters label{min-width:160px;margin:0}
.product-filters button{margin-left:auto}
.search-result{font-size:13px;color:var(--muted)}
.matrix-choices{max-height:200px;overflow:auto;padding:4px;gap:8px}
.matrix-choices button{display:flex;align-items:center;gap:10px;padding:8px 14px;font-size:14px;font-weight:400;border-color:var(--line)}
.choice-meta{font-size:12px;color:var(--muted);white-space:nowrap}
.matrix-choices button.active{background:#f9edf1;border-color:var(--pink);color:var(--nav)}
.power-matrix{padding:20px;background:#f6f7f8;border:0}
.power-matrix-head{align-items:center}
.power-matrix-title{font-size:16px;font-weight:600}
.power-matrix-product,.power-matrix-hint{font-size:13px;color:var(--muted)}
.power-matrix-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.power-cell{margin:0;padding:10px;border-color:var(--line);font-size:14px}
.power-cell strong{font-size:15px}
.power-cell .sig{font-size:11px}
.power-cell input{min-height:44px;font-size:16px}
.cell-price{font-size:12px;color:var(--muted)}
.power-cell.is-out{background:#ededed}
.power-cell.is-out input{background:#e2e2e2;cursor:not-allowed}
.power-matrix:not(.hidden)~.row-actions #addBtn{background:#fff;color:var(--nav);border:1px solid var(--line)}
.rowhead{font-size:13px;margin-top:22px}
.prow select,.prow input{min-width:0;min-height:44px}
.prow{grid-template-columns:minmax(0,1fr) 180px 100px 44px;gap:10px}
.fine{color:var(--muted);line-height:1.6}
.file-intake{padding-top:20px;margin-top:20px}
.file-up{padding:9px 12px;border:1px solid var(--line);border-radius:9px}
table{font-size:14px}
th{font-size:13px;color:var(--muted);padding:12px}
td{padding:12px;overflow-wrap:anywhere}
.num{white-space:nowrap}
.sumrow{font-size:15px;min-height:32px}
.sumrow.total strong{font-size:22px}
.history-table{width:100%}
.history-tools{gap:10px}
.history-summary .stat{background:#f6f7f8;border:0}
.status-filter{max-width:220px}
.notify-disclosure{margin-bottom:20px;border-bottom:1px solid var(--line);padding-bottom:8px}
.notify-disclosure summary{cursor:pointer;display:list-item;padding:10px 0;color:var(--nav)}
.notify-card{border:0;background:#f6f7f8}
.delivery-order{padding:20px 0;border-bottom:1px solid var(--line)}
.delivery-heading{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.delivery-shipment{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 0}
.delivery-shipment a{display:inline-flex;align-items:center;min-height:44px;color:var(--nav)}
.delivery-shipment>.fine:first-of-type{display:none}
.mini-btn{min-height:44px;font-size:13px;font-weight:400}
.empty{color:var(--muted)}
.order-detail{overflow-x:auto}
.table-scroll{min-width:0;max-width:100%;overflow-x:auto}
#cartTable td:first-child{min-width:160px}
@media(max-width:680px){
 header{padding:12px 16px;gap:8px;position:static}
 header .langbar{width:100%;margin:0;flex-wrap:wrap}
 main{padding:16px 12px 48px}.card{padding:18px}
 .tabs{gap:8px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .tabs button{font-size:13px;padding:10px 2px;white-space:normal}
 .product-filters{gap:8px}.product-filters label{min-width:0;flex:1}.product-filters button{width:100%}
 .matrix-choices button{max-width:100%;flex-wrap:wrap;text-align:left;border-radius:12px}
 .power-matrix{padding:12px}.power-matrix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .prow{grid-template-columns:minmax(0,1fr) 44px}.prow .p-sel,.prow .w-sel{grid-column:1/-1}
 .file-intake>*{max-width:100%}
 #cartTable{display:table;min-width:660px}#cartTable.hidden{display:none}
 .history-table{display:table;min-width:850px}
 .notify-row label{min-width:0;width:100%;flex-basis:100%}
 .history-tools label{min-width:0;flex:1}.history-summary{grid-template-columns:1fr}
 .delivery-heading,.delivery-heading .fine,.delivery-shipment{display:block}
 .delivery-shipment{overflow-wrap:anywhere}
}
