.duplicate-warning{border:2px solid #dc2626;background:#fff1f2;color:#991b1b;padding:10px;border-radius:9px;margin:8px 0}.duplicate-warning summary{font-weight:700;cursor:pointer}.duplicate-warning li{margin:5px 0}
.order-input-modes{display:flex;justify-content:center;gap:0;margin:0 0 6px}
.order-input-modes button{min-height:34px;padding:5px 18px;border-radius:0;background:#edf3f2;color:#35534b;border:1px solid #c4d5cf}
.order-input-modes button:first-child{border-radius:7px 0 0 7px}.order-input-modes button:last-child{border-radius:0 7px 7px 0}
.order-input-modes button[aria-pressed=true]{background:#245d4c;color:white;border-color:#245d4c;font-weight:700}
.st-text{background:transparent;border:0;text-decoration:underline;padding:2px 0!important;min-height:22px;font-size:11px;color:#286c55}
.st-offer-row{display:flex;gap:9px;align-items:center;border:1px solid #cbdcd4;border-radius:7px;padding:9px;margin:6px 0}.st-offer-row input{width:auto}.st-offer-row span{display:grid;gap:3px;min-width:0}.st-offer-row small{overflow-wrap:anywhere}
.st-review-row{display:grid;gap:5px;border-bottom:1px solid #d7e0dc;padding:9px 0}.st-review-row>label{display:flex;align-items:center;gap:8px}.st-review-row>label input{width:auto}.st-review-row>small{color:#5d6b64}
.identity-editor textarea{min-height:64px}.identity-barcode-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px 0;border-bottom:1px solid #d2ded8}.identity-barcode-row label{display:grid;gap:3px;font-size:12px}.identity-barcode-row input,.identity-barcode-row select{width:100%;min-width:0}.identity-details{margin:8px 0}.identity-details strong{overflow-wrap:anywhere}.identity-details small{display:block;font-weight:400;font-size:11px;color:#66736d}
@media(max-width:620px){
 .st-footer>div{min-width:0}.st-footer small{display:block!important;max-width:none;font-size:10px}.identity-barcode-row{grid-template-columns:minmax(0,1fr)}
}

#dialog[data-order-mode=stocktake] .rq-detail-quantity,#dialog[data-order-mode=stocktake] .quantity-options,#dialog[data-order-mode=stocktake] label:has(#want-order){display:none}.photo-code-proposal{padding:8px;background:#eff6f2;border:1px solid #c6d8cb;font-size:12px}.photo-code-proposal .inline-check{overflow-wrap:anywhere}

#request-footer .order-input-modes{margin:0;flex-shrink:0}#request-footer .order-input-modes button{padding:5px 8px;min-height:36px;font-size:12px}
@container (max-width:620px){
 #request-footer.request-footer{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:5px;padding:8px}
 #request-footer>div:first-child{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;min-width:0}
 #request-footer .order-input-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
 #request-footer .order-input-modes button{padding:5px 3px;min-width:0;font-size:11px;white-space:normal}
 #request-footer .primary{min-width:0;max-width:100%;font-size:12px;white-space:normal}
 #request-footer strong{font-size:12px}
}

body:has(#main[data-order-mode=stocktake]),
#main[data-order-mode=stocktake] .catalog-browse-tools{background:#d3e4ff}
#main[data-order-mode=stocktake]{min-height:calc(100dvh - 135px)}
#main[data-order-mode=stocktake] .inventory-toolbar,
#main[data-order-mode=stocktake] .classification-nav,
#main[data-order-mode=stocktake] .request-footer{background:#c5dbff;border-color:#7c9cc7}
#main[data-order-mode=stocktake] :is(.stock-card,.family-first){background:#e6efff}
#main[data-order-mode=stocktake] .family-variant{background:#dceaff}
#main[data-order-mode=stocktake] .order-input-modes button[aria-pressed=true],
.st-round-tools>button{background:#204b8a;border-color:#204b8a;color:#fff}
.st-round-tools{display:flex;justify-content:flex-end;padding:0 0 5px}
.st-round-tools.is-active{justify-content:flex-start;padding:0}
.st-round-tools[hidden]{display:none}
.st-round-tools button{min-height:32px;padding:3px 10px;font-weight:700}
.st-round-tools>button:hover:not(:disabled){background:#163b70;color:#fff}
.st-round-head{display:grid;width:100%;min-width:0;gap:6px;padding:8px 0}
.st-round-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(5.6rem,1.7fr);gap:4px;width:min(100%,32rem)}
.st-round-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.st-round-head span{color:#204b8a}
.st-round-head button{min-height:32px;padding:3px 6px;color:#204b8a;background:#f4f8ff;border:1px solid #adc4e5}
.st-round-controls :is(button,select){min-width:0;min-height:44px;white-space:nowrap;font-size:12px}
.st-round-view-picker{position:relative;min-width:0}
.st-round-view-picker::after{content:"";position:absolute;top:50%;right:6px;width:5px;height:5px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-75%) rotate(45deg);color:#204b8a;pointer-events:none}
.st-round-controls select{appearance:none;width:100%;padding:0 11px;border:1px solid #adc4e5;border-radius:8px;background:#f4f8ff;color:#204b8a;font-weight:700;text-align:center;text-align-last:center}
.st-round-section+.st-round-section{margin-top:8px}
.st-location-title{margin:0;padding:6px 8px;background:#dceaff;color:#204b8a;font-size:13px}
.st-round-section .inventory-columns{display:grid;padding:5px 8px;color:#375980;font-size:10px}
.st-round-section .st-round-selected{background:#d2e9db;color:#21553b;font-weight:700}
.stock-row .st-single{width:100%;min-width:0;justify-content:center}
.st-single .quantity-button[value=""],.st-status{font-size:10px}
.st-status{display:block;text-align:center;color:#375980;line-height:1.2;word-break:keep-all}
.st-single:has([data-st-act=confirm]){flex-direction:column;gap:2px}
.st-single .quantity-button:has(.st-count-hint){flex-direction:column;gap:1px;padding-inline:1px;line-height:1.1}
.st-single .quantity-button:has(.st-count-hint) [data-quantity-label]{max-width:100%;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.st-count-hint{font-size:8px;font-weight:500;letter-spacing:-.35px;color:#375980;white-space:nowrap}
.st-other-locations>summary{cursor:pointer;padding:6px 8px;color:#375980;font-size:11px;background:#f4f8ff}
.st-single [data-st-act=confirm]{min-height:16px;padding:0 2px;font-size:9px;background:#fff4df}
.st-row-preview{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-inventory-view=compact] .stocktake-mode-row .order-toggle[data-st-shortage="1"]>.order-label{display:block;font-size:10px;line-height:1}
