/* Price controls and resilient layouts, 23 October 2026. */
.price-editor{min-width:0;padding:20px;border:1px solid #31547b;border-radius:16px;background:linear-gradient(145deg,#10243b,#0a1526)}
.price-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.price-editor-heading h3{margin:4px 0 0;font-size:22px}.price-editor-heading .eyebrow{font-size:11px;letter-spacing:.12em}
.price-editor>.form-help{margin:14px 0 20px;line-height:1.65;color:#b2c8e4}
.price-editor-options{display:grid;gap:18px}.price-editor-option{min-width:0;margin:0;padding:16px;border:1px solid #2c4564;border-radius:12px;background:#0a1525;transition:border-color .18s,background-color .18s}
.price-editor-option.is-manual{border-color:#499bdf;background:#0c1c30}.price-editor-option legend{max-width:100%;padding:0 8px;font-weight:800;font-size:16px;overflow-wrap:anywhere}
.price-input-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:14px 0}.price-input-grid>*{min-width:0}.price-input-grid input,.price-input-grid select{width:100%;box-sizing:border-box}
.price-input-grid input[readonly]{color:#b1bfd2;border-style:dashed;background:#121c2b;cursor:default}
.price-option-meta,.price-option-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;color:#adc6e2}.price-option-footer{align-items:center}.price-option-footer .check-row{font-size:13px}
.price-preview{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-top:14px;padding-top:14px;border-top:1px solid #233d59}.price-preview>span{font-size:12px;color:#9eb9d7}.price-preview strong{font-size:22px;letter-spacing:-.02em;color:#eef7ff;font-variant-numeric:tabular-nums}.price-preview del{font-size:13px;color:#98acc4}.price-preview b{font-size:12px;color:#79e0bf}.price-preview small{margin-inline-start:auto;font-size:11px;color:#75c6ff}.price-preview .price-below-cost{flex-basis:100%;color:#ffd592;font-size:12px;margin:0}.price-editor-status:empty{display:none}.price-editor-status{font-size:13px;margin-top:15px;color:#bce2ff}
.admin-price-mode{display:block;width:fit-content;margin-top:6px;font-size:11px;line-height:1.4;padding:4px 8px;border-radius:6px;border:1px solid #2b4766;color:#b3c7e1;background:#112036}.admin-price-mode.manual,.admin-price-mode.mixed{color:#8fe1ff;border-color:#326da1;background:#0b2c45}
#admin-dialog{width:min(900px,calc(100% - 24px));padding:0;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden}
#admin-dialog[open],#admin-dialog>form{display:flex;flex-direction:column}#admin-dialog>form{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);width:100%;min-height:0}#admin-dialog .modal-body{overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}#admin-dialog .modal-header,#admin-dialog .modal-actions{flex-shrink:0}#admin-dialog .modal-header h2{min-width:0;overflow-wrap:anywhere}#admin-dialog .modal-actions{align-items:center;padding-bottom:max(16px,env(safe-area-inset-bottom))}
#admin-dialog [hidden]{display:none!important}#admin-dialog #admin-error:not(:empty){border:1px solid #a94b61;background:#301a28;padding:12px;border-radius:10px;margin-top:18px;overflow-wrap:anywhere}#admin-dialog [aria-busy="true"]{cursor:progress}.admin-save-hint{margin-inline-end:auto;font-size:12px;color:#9bb7d9}
.admin-search,.supplier-controls{flex-wrap:wrap}.admin-search .search-field{min-width:min(240px,100%);flex:1}.admin-product{min-width:0}.table-shell,.supplier-table-wrap{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}.admin-table td .actions{flex-wrap:wrap}.admin-table th,.admin-table td{vertical-align:middle}
.info-banner,.trust-band,.instruction-grid,.payment-grid,.detail-bottom{min-width:0}.info-banner{height:auto;min-height:0}.info-banner>div{min-width:0}.info-banner p{overflow-wrap:anywhere}.trust-band{margin-inline:auto}.payment-handle code,.checkout-payment-handle code{overflow-wrap:anywhere;word-break:break-word}.payment-method,.panel,.detail-info{min-width:0}.panel>p{overflow-wrap:anywhere}.detail-options .option-btn{min-width:0}.detail-options .option-btn>span{overflow-wrap:anywhere}button,a,input,select,textarea{-webkit-tap-highlight-color:#328fff33}:focus-visible{outline:3px solid #58c9ff;outline-offset:3px}input[type=checkbox],input[type=radio]{accent-color:#2788ff}
@media(max-width:760px){.price-input-grid{grid-template-columns:1fr 1fr}.price-input-grid>label:first-child{grid-column:1/-1}.price-editor{padding:16px}.price-preview small{flex-basis:100%;margin-inline-start:0}.admin-search>.btn{flex:1}.admin-table td{padding:12px 10px}.admin-table .icon-button{min-width:44px;min-height:44px}#admin-dialog .modal-body{padding:16px}.price-editor-heading .btn{width:100%;min-height:44px}.price-editor .check-row{min-height:44px}.supplier-sync-actions>.btn{min-height:44px}.instruction-grid{gap:20px}.detail-bottom{gap:20px}}
@media(max-width:420px){.price-input-grid{grid-template-columns:1fr}.price-input-grid>label:first-child{grid-column:auto}.price-editor-option{padding:12px}.price-editor{padding:12px}.price-option-meta{display:grid;gap:5px}#admin-dialog{width:calc(100% - 12px);max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}#admin-dialog>form{max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}#admin-dialog .modal-header,#admin-dialog .modal-body,#admin-dialog .modal-actions{padding:12px}.admin-save-hint{display:none}#admin-dialog .modal-actions .btn{flex:1;min-height:46px}.price-editor-heading h3{font-size:20px}.field-label input,.field-label select,.field-label textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.price-editor-option{transition:none}}
