/* SSTRADERS V48 — project-wide responsive + light/dark consistency audit */
:root{--v48-bg:#f5f8fc;--v48-surface:#fff;--v48-surface2:#f8fbff;--v48-text:#102a43;--v48-muted:#667b91;--v48-line:#dbe5ef;--v48-input:#fff;--v48-shadow:0 12px 34px rgba(16,42,67,.07)}
html[data-theme="dark"]{--v48-bg:#061321;--v48-surface:#0b1d30;--v48-surface2:#10263d;--v48-text:#eef6ff;--v48-muted:#9eb3c9;--v48-line:#24415d;--v48-input:#0a2035;--v48-shadow:none}
html[data-theme="light"]{--v48-bg:#f5f8fc;--v48-surface:#fff;--v48-surface2:#f8fbff;--v48-text:#102a43;--v48-muted:#667b91;--v48-line:#dbe5ef;--v48-input:#fff;--v48-shadow:0 12px 34px rgba(16,42,67,.07)}
html,body{max-width:100%;overflow-x:hidden}
img,video,svg{max-width:100%;height:auto}
html[data-theme] .admin-content{color:var(--v48-text)}
html[data-theme] :is(.panel,.admin-card,.form-panel,.metric-card,.card,.page-heading,.rm-toolbar-card,.ob-search-card,.ob-list-card,.ob-detail-card,.mob-card,.return-process-card,.pos-prior-card,.account-summary-card,.invoice-info-card,.invoice-money-card,.invoice-edit-summary-card,.continued-edit-card,.undercoat-card,.message-detail-card){background:var(--v48-surface)!important;border-color:var(--v48-line)!important;color:var(--v48-text)!important;box-shadow:var(--v48-shadow)!important}
html[data-theme] :is(.panel,.admin-card,.form-panel,.metric-card,.card,.page-heading,.rm-toolbar-card,.ob-search-card,.ob-list-card,.ob-detail-card,.mob-card,.return-process-card,.pos-prior-card,.account-summary-card,.invoice-info-card,.invoice-money-card,.invoice-edit-summary-card,.continued-edit-card,.undercoat-card,.message-detail-card) :is(h1,h2,h3,h4,h5,h6,strong,b){color:var(--v48-text)!important}
html[data-theme] :is(.panel,.admin-card,.form-panel,.metric-card,.card,.page-heading,.rm-toolbar-card,.ob-search-card,.ob-list-card,.ob-detail-card,.mob-card,.return-process-card,.pos-prior-card,.account-summary-card,.invoice-info-card,.invoice-money-card,.invoice-edit-summary-card,.continued-edit-card,.undercoat-card,.message-detail-card) :is(p,small,.text-muted){color:var(--v48-muted)!important}
html[data-theme] :is(input,select,textarea,.form-control,.form-select){background:var(--v48-input)!important;color:var(--v48-text)!important;border-color:var(--v48-line)!important}
html[data-theme] :is(input,textarea)::placeholder{color:var(--v48-muted)!important;opacity:.82}
html[data-theme] :is(label,.form-label){color:var(--v48-text)}
html[data-theme="dark"] option{background:#0a2035;color:#eef6ff}
html[data-theme] .table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-color:var(--v48-line)}
html[data-theme] :is(.admin-table,.table){--bs-table-bg:var(--v48-surface);--bs-table-color:var(--v48-text);--bs-table-border-color:var(--v48-line);color:var(--v48-text)!important}
html[data-theme] :is(.admin-table,.table) tbody td{background:var(--v48-surface)!important;color:var(--v48-text)!important;border-color:var(--v48-line)!important}
html[data-theme] :is(.admin-table,.table) thead th{background:var(--v48-surface2)!important;color:var(--v48-muted)!important;border-color:var(--v48-line)!important}
html[data-theme] .modal-content{background:var(--v48-surface)!important;color:var(--v48-text)!important;border-color:var(--v48-line)!important}
html[data-theme] .modal-header,html[data-theme] .modal-footer{border-color:var(--v48-line)!important}
/* Product page heading remains deliberately unboxed. */
html[data-theme] .products-page-heading{background:transparent!important;border:0!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
/* Dashboard sections */
html[data-theme] .ss14-dashboard-section{background:var(--v48-surface)!important;border-color:var(--v48-line)!important;color:var(--v48-text)!important}
html[data-theme] .ss14-dashboard-section :is(h2,h3,strong){color:var(--v48-text)!important}
html[data-theme] .ss14-dashboard-section :is(p,span,small,time){color:var(--v48-muted)!important}
html[data-theme="dark"] .ss14-dashboard-section :is(.ss14-order-card,.ss14-message-card,.ss14-empty-admin){background:#081a2b!important;border-color:#24415d!important}
/* Public catalogue/range cards */
html[data-theme="dark"] .ss13-range-strip>div{background:#0b1d30!important;border-color:#29445f!important}
html[data-theme="dark"] .ss13-range-strip>div :is(h2,h3,strong){color:#eef6ff!important}
html[data-theme="dark"] .ss13-range-strip>div :is(p,span,small){color:#a8bbcf!important}
html[data-theme="light"] .ss13-range-strip>div{background:#fff!important;border-color:#dbe5ef!important}
html[data-theme="light"] .ss13-range-strip>div :is(h2,h3,strong){color:#102a43!important}
/* Mobile/tablet audit */
@media (max-width:991.98px){
 .admin-content{padding-left:18px!important;padding-right:18px!important}
 .page-heading{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:14px!important}
 .page-heading .heading-actions{width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 .metric-grid,.v9-kpi-grid,.dashboard-grid,.account-summary-grid,.invoice-info-grid,.invoice-edit-grid,.return-bottom-grid,.segment-financial-grid,.user-detail-grid,.undercoat-grid,.mob-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .form-grid,.ob-form-grid,.editor-grid,.pos-walkin-grid,.pos-prior-grid,.continued-edit-grid{grid-template-columns:1fr!important}
}
@media (max-width:575.98px){
 .admin-content{padding-left:12px!important;padding-right:12px!important}
 .page-heading{padding:15px!important;border-radius:16px!important}
 .page-heading h1,.page-heading h2{font-size:clamp(1.55rem,8vw,2.05rem)!important;line-height:1.08!important}
 .metric-grid,.v9-kpi-grid,.dashboard-grid,.account-summary-grid,.invoice-info-grid,.invoice-edit-grid,.return-bottom-grid,.segment-financial-grid,.user-detail-grid,.undercoat-grid,.mob-grid{grid-template-columns:1fr!important}
 .metric-card,.panel,.admin-card,.form-panel{min-width:0!important}
 .form-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}
 .form-actions .btn,.form-actions button,.form-actions a{width:100%!important;justify-content:center!important}
 .table-responsive{margin-left:0!important;margin-right:0!important;border-radius:14px}
 .admin-table,.table{min-width:680px}
 .admin-table th,.admin-table td,.table th,.table td{padding:11px 10px!important;font-size:.82rem!important;white-space:nowrap}
 .ss14-dashboard-section{padding:14px!important;border-radius:17px!important}
 .ss14-dashboard-section-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important}
 .ss13-range-strip{padding-left:14px!important;padding-right:14px!important}
 .ss13-range-strip>div{min-height:0!important;padding:24px 20px!important;border-radius:20px!important}
 .ss13-range-strip>div h3{font-size:1.2rem!important;line-height:1.25!important}
 .ss13-range-strip>div p{font-size:.92rem!important}
}
@media print{html[data-theme] .updated-document,html[data-theme] .thermal-return,html[data-theme] .receipt{background:#fff!important;color:#111!important;box-shadow:none!important}}
