/* Shared presentation only: no financial, authorization or interaction hooks. */
:root {
 --ink:#172c49; --muted:#52647b; --line:#dce5ef; --paper:#f4f7fb;
 --surface:#fff; --green:#164fc7; --green-deep:#0b2e75; --lime:#f0df28; --coral:#b72836;
 --font-body:Arial, Helvetica, sans-serif;
 --font-display:Arial, Helvetica, sans-serif;
 --font:Arial, Helvetica, sans-serif; --display:Arial, Helvetica, sans-serif;
 --shadow:0 12px 32px rgb(23 44 73 / 8%);
}
body {font-family:var(--font-body);line-height:1.65;background:var(--paper);color:var(--ink)}
h1,h2,h3,h4,h5,h6,.brand-name,.admin-brand strong {font-family:var(--font-display);line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere}
button,input,select,textarea,table,nav {font-family:var(--font-body)}
button,input,select,textarea {max-width:100%}
input,select,textarea {color:var(--ink);accent-color:var(--green)}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {border-radius:10px;min-height:44px}
input[type=checkbox],input[type=radio] {min-height:0;flex-shrink:0}
:where(button,a,input,select,textarea,summary):focus-visible {outline:3px solid #164fc7;outline-offset:3px}
::selection {background:#dbe8ff;color:#0b2e75}
:where(.panel,.login-card,.summary-panel,.success-panel,.metric-card,.delivery-card,.pay-panel) {border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.login-view {background:radial-gradient(ellipse at 85% 10%,#dfebff,transparent 45%),var(--paper)}
.login-card {max-width:100%}
.login-card h1 {font-size:clamp(26px,4vw,36px)!important}
.login-card label,.form-grid label,.form-label {line-height:1.5}
.button,.admin-button,.quiet-button,.refresh-button,.signout-button {border-radius:10px;min-height:44px;line-height:1.4;white-space:normal}
.button,.admin-button {font-weight:600;box-shadow:0 3px 8px rgb(22 79 199 / 12%)}
.button:hover,.admin-button:hover {background:var(--green-deep)}
.button-light {background:white;color:var(--green-deep)}
.button-light:hover {color:white}
button:disabled {cursor:not-allowed}
.site-header {background:rgb(255 255 255 / 97%);border-color:var(--line)}
.primary-nav {gap:clamp(8px,1.2vw,20px);align-items:center}
.primary-nav a {font-size:13px;line-height:1.5;border-radius:8px;padding:8px}
.primary-nav a:hover,.primary-nav a[aria-current=page] {background:#eaf1ff;color:var(--green-deep)}
.header-inner {gap:16px}
.page-heading h1,.topbar h1 {font-size:clamp(26px,3vw,36px);line-height:1.25}
.product-grid {gap:clamp(16px,2vw,28px)}
.product-card {border-radius:18px;border-color:var(--line);box-shadow:var(--shadow)}
.product-info {padding:20px}
.product-info h3 {line-height:1.4}
.product-description {line-height:1.7}
.checkout-layout,.cart-layout {gap:clamp(20px,3vw,40px)}
.summary-panel,.success-panel,.pay-panel {padding:clamp(18px,3vw,30px)}
.checkout-form {gap:20px}
.payment-methods label {line-height:1.5}
.sidebar {background:white;overflow-y:auto}
.sidebar-label {color:var(--muted);font-size:11px}
.sidebar nav {gap:6px}
.nav-item {border-radius:10px;min-height:44px;padding:10px 12px;color:var(--muted)}
.nav-item:hover {background:#f1f5fc}
.nav-item.is-active {background:#e8f0ff;color:var(--green-deep);box-shadow:inset 3px 0 var(--green)}
.nav-item span {line-height:1.4;overflow-wrap:anywhere}
.sidebar-bottom {line-height:1.6}
.topbar,.portal-top {gap:16px;flex-wrap:wrap}
.metrics,.portal-metrics {gap:16px}
.metric-card {border-top:3px solid #164fc7}
.metric-card strong {font-family:var(--font-display);font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.metric-card span,.metric-card small {color:var(--muted);line-height:1.5}
.panel {min-width:0}
.panel h2 {margin-top:0;font-size:clamp(20px,2vw,25px)}
.table-scroll,.table-wrap {max-width:100%;overflow-x:auto;border-radius:10px;overscroll-behavior-inline:contain}
table {border-collapse:collapse;font-variant-numeric:tabular-nums}
th {background:#edf3fc;color:var(--ink);font-weight:700;letter-spacing:.025em;line-height:1.5}
th,td {padding:12px 14px;vertical-align:top;border-color:var(--line)}
tbody tr:hover {background:#f7faff}
.table-secondary,.settings-note {color:var(--muted)}
.portal {width:100%;max-width:1200px}
.portal-dashboard {gap:22px}
.portal-top-actions {flex-wrap:wrap}
.delivery-card {padding:20px;gap:10px}
.delivery-card header {flex-wrap:wrap}
.delivery-name {line-height:1.5}
.ref-box input {min-width:0}
.invoice-sheet {font-family:var(--font-body);line-height:1.5;font-variant-numeric:tabular-nums}
.invoice-company h2,.invoice-title,.invoice-customer h3 {font-family:var(--font-display)}
.invoice-table {font-size:12px}
.invoice-table th,.invoice-table td {padding:7px 8px}
.invoice-modal-box {min-width:0;max-width:100%}
.invoice-totals div {gap:16px}
@media(min-width:701px) {.sidebar {padding:24px 16px}.sidebar nav .nav-item span {font-size:14px!important}}
@media(max-width:1100px) and (min-width:761px) {.header-inner {flex-wrap:wrap;padding-block:12px}.primary-nav {flex:1;flex-wrap:wrap}}
@media(max-width:700px) {
 .dashboard .sidebar {position:static;height:auto;overflow:visible}
 .dashboard .sidebar nav {display:flex;flex-wrap:wrap;gap:8px}
 .dashboard .sidebar .nav-item {flex:1 1 140px;padding:10px 12px}
 .sidebar nav .nav-item span {font-size:13px!important}
 .dashboard .sidebar nav .sidebar-label {flex-basis:100%}
 .sidebar-bottom {margin-top:18px}
 .portal-dashboard {padding:16px 0}
 .portal-top-actions {width:100%}
 .portal-top-actions>* {flex:1}
 .login-view .login-card {padding:26px 20px!important}
 .form-grid {grid-template-columns:minmax(0,1fr)}
 .inline-select {flex-wrap:wrap}
 .ref-box {flex-direction:column}
 .delivery-list {grid-template-columns:minmax(0,1fr)}
 th,td {padding:10px}
 .invoice-modal {padding:8px}
 .invoice-modal-box {overflow-x:auto}
 .invoice-sheet {min-width:0}
 .invoice-table {font-size:11px}
 .invoice-table th,.invoice-table td {padding:5px 4px;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce) {* {scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print {
 .invoice-sheet {font-size:12px;color:#111;background:white;box-shadow:none;border-radius:0}
 .invoice-title {letter-spacing:.08em}
 .invoice-table th,.invoice-table td {padding:6px 8px}
 .invoice-table tr {break-inside:avoid}
 .invoice-head,.invoice-totals {break-inside:avoid}
}

/* Shared Arial typography for screen, portals, controls and print. */
html, body, body *, body *::before, body *::after { font-family: Arial, Helvetica, sans-serif !important; }
body { font-weight: 400; }
p, input, select, textarea, option { font-weight: 400; }
h1, .invoice-title { font-weight: 700 !important; }
h2, h3, h4, h5, h6 { font-weight: 600 !important; }
button, .button, .admin-button, .quiet-button, .refresh-button, .signout-button, .table-action, input[type="button"], input[type="submit"], input[type="reset"] { font-weight: 600 !important; }
@media print { body, .invoice-sheet { font-family: Arial, Helvetica, sans-serif !important; } }
/* Form controls never force their grid/flex parent wider than the screen (long <option> text, long values). */
input, select, textarea { min-width: 0; max-width: 100%; }
