/* ==============================================================
   Styles/site.css
   Shared modern design system for OpticSync (navy/green theme,
   matching the OpticSync logo). Linked from every page so the
   admin + retailer UI is visually consistent.
   ============================================================== */

:root {
    --navy: #1b4f8e;
    --navy-dark: #123a6c;
    --navy-light: #4a90d9;
    --green: #2ea876;
    --green-dark: #1f8c61;
    --green-bg: #e9f8f0;
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --row-hover: #f9fbff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #1e293b;
    --text-muted: #64748b;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #a15c00;
    --warning-bg: #fff8ec;
    --success: #16794f;
    --success-bg: #ecfdf5;
    --toggle-off: #d7dde5;
    --radius: 10px;
    --radius-sm: 7px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, .18);
    --btn-grad: linear-gradient(165deg, var(--navy-light) -40%, var(--navy) 60%);
    --btn-grad-hover: linear-gradient(165deg, var(--navy-light) -70%, var(--navy-dark) 70%);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --navy: #5b9bdc;
    --navy-dark: #82b7e8;
    --navy-light: #79b3e6;
    --green: #34d399;
    --green-dark: #6ee7b7;
    --green-bg: rgba(52, 211, 153, .14);
    --bg: #0c1322;
    --surface: #161f30;
    --surface-alt: #1c2740;
    --row-hover: #1d2a42;
    --border: #2a3650;
    --border-strong: #3c4d6b;
    --text: #e7ecf5;
    --text-muted: #93a1bb;
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, .14);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, .14);
    --success: #4ade80;
    --success-bg: rgba(74, 222, 128, .14);
    --toggle-off: #3c4d6b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 4px 18px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
    --btn-grad: linear-gradient(165deg, var(--navy-light) -40%, var(--navy) 70%);
    --btn-grad-hover: linear-gradient(165deg, var(--navy-light) -70%, var(--navy-dark) 80%);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { transition: background-color .2s; }

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s, color .2s;
    /* Safety net: nothing should ever force a horizontal scrollbar on the
       whole page -- individual wide elements (tables, etc.) scroll within
       their own box instead, see .grid-scroll below. */
    overflow-x: hidden;
}

a { color: var(--navy); }

/* ---------- Top nav ---------- */
.top {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--navy), var(--green)) 1;
    padding: 12px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 40;
}

.top a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.top a:hover { background: var(--bg); color: var(--navy); }
.top a b, .top a.active, .top nav a.active {
    color: var(--navy);
    font-weight: 700;
    background: var(--green-bg);
}

.top nav a { margin-left: 4px; }

.top strong, .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: .2px;
}

.brand img, .top strong img { height: 30px; width: auto; display: block; }
.brand .accent, .top strong .accent { color: var(--green); }

.theme-toggle {
    appearance: none;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.theme-toggle:hover { background: var(--bg); border-color: var(--navy); color: var(--navy); }
.theme-toggle:active { transform: scale(.9); }

/* On a phone, shrink everything in the top bar so it has the best chance of
   staying on one line. Pages with only a couple of nav links (e.g. Retailer's
   My Orders / Price List) realistically fit on one line this way. Pages with
   many links (e.g. Admin's 7-link nav) will still wrap to a second line --
   there's a hard floor on how small tappable nav text/padding can get, and at
   some point that's a "collapse into a menu" redesign, not a sizing tweak. */
@media (max-width: 640px) {
    .top { padding: 8px 12px; gap: 4px; row-gap: 4px; }
    .brand, .top strong { font-size: 13px; gap: 6px; }
    .brand img, .top strong img { height: 20px; }
    .brand .accent, .top strong .accent { display: none; }
    .top a { font-size: 11.5px; padding: 4px 6px; margin: 0 1px; }
    .top nav a { margin-left: 2px; }
    .theme-toggle { width: 26px; height: 26px; font-size: 12px; margin-left: 4px; }
}

/* ---------- Layout ---------- */
.wrap { padding: 22px 26px 36px; max-width: 1400px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
    padding: 9px 18px;
    border: 1px solid var(--navy);
    border-radius: var(--radius-sm);
    background: var(--btn-grad);
    color: #fff;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    transition: background .15s, box-shadow .15s, transform .05s, border-color .15s;
}

.btn:hover { background: var(--btn-grad-hover); border-color: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-sm); }
.btn:focus-visible, .btn-secondary:focus-visible, .btn-new:focus-visible, .btn-submit:focus-visible, .btn-cancel:focus-visible {
    outline: none; box-shadow: 0 0 0 3px rgba(74, 144, 217, .35);
}

.btn.secondary, .btn-secondary {
    background: var(--surface);
    color: var(--navy);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}
.btn.secondary:hover, .btn-secondary:hover { background: var(--bg); border-color: var(--navy); box-shadow: var(--shadow-sm); }

.btn.accent { background: linear-gradient(165deg, var(--green) -40%, var(--green-dark) 70%); border-color: var(--green); }
.btn.accent:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-new, .btn-submit { background: var(--btn-grad); color: #fff; border: 1px solid var(--navy);
    border-radius: var(--radius-sm); padding: 9px 20px; cursor: pointer; font-size: 14px;
    font-weight: 600; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: background .15s, box-shadow .15s; }
.btn-new:hover, .btn-submit:hover { background: var(--btn-grad-hover); box-shadow: var(--shadow-md); }

.btn-cancel { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); padding: 9px 18px; cursor: pointer; font-size: 14px; margin-top: 8px; margin-left: 8px; }
.btn-cancel:hover { background: var(--bg); }

/* ---------- Filters / toolbar ---------- */
.filters, .toolbar {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.toolbar { justify-content: flex-end; }

.filters select, .filters input, select, input[type=text], input[type=password],
input[type=number], input[type=date], textarea {
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font: inherit;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: var(--navy-light);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, .18);
}
textarea { resize: vertical; min-height: 34px; width: 100%; box-sizing: border-box; }

/* ---------- Bulk edit panel (Products) ---------- */
.bulk { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
    margin-bottom: 16px; display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(238px, auto);
    gap: 10px; align-items: end;
    box-shadow: var(--shadow-sm); }
.bulk .title { grid-column: 1 / -1; font-weight: 700; font-size: 13px; align-self: center; color: var(--navy); }
.bulk label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.bulk input, .bulk select { width: 100%; }
.bulk .bulk-actions { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin: 0; }
.bulk .bulk-actions .btn { width: auto; white-space: nowrap; }
.inline-field { display: flex; gap: 8px; align-items: stretch; }
.inline-field input { flex: 1; }
.inline-field .btn { width: auto; white-space: nowrap; }
@media (max-width: 980px) {
    .bulk { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .bulk .bulk-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
    .bulk { grid-template-columns: 1fr; }
    .bulk > div { grid-column: 1; }
    .bulk .bulk-actions { flex-wrap: wrap; }
}

/* ---------- Cards / grid (table) ---------- */
/* Wrap any <asp:GridView>/<table> in this div so a wide table scrolls within
   its own box on a narrow/zoomed-in viewport instead of overflowing the page. */
.grid-scroll { width: 100%; overflow-x: auto; }
/* On desktop, leave the table at width:100% (below) so it always fits the
   window with no horizontal scrollbar -- a long Remarks cell just wraps to a
   couple of lines, which is fine when there's plenty of width to go around.
   Below this breakpoint (phone-width screens), a data-heavy table has no
   sensible way to fit 8-9 columns into ~380px without either scrolling or
   cramming every cell into a sliver and wrapping it across many lines -- so
   there we deliberately let the table grow to its natural width and scroll
   horizontally instead, which is the lesser evil on a small screen. */
@media (max-width: 900px) {
    .grid-scroll .grid, .grid-scroll table { width: auto; min-width: 100%; }
    .grid-scroll td, .grid-scroll th { white-space: nowrap; }
}

.grid, table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.grid th, th {
    background: var(--surface-alt);
    text-align: left;
    padding: 11px 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.grid td, td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.grid tr:last-child td { border-bottom: none; }
.grid tr:hover td { background: var(--row-hover); }

.grid a.action, a.action {
    color: var(--navy);
    font-size: 12.5px;
    font-weight: 600;
    margin-right: 12px;
    cursor: pointer;
    text-decoration: none;
}
.grid a.action:hover, a.action:hover { text-decoration: underline; }
.grid a.action.del, a.action.del { color: var(--danger); }

.status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 82px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}
.status-toggle .toggle-track {
    position: relative;
    display: inline-block;
    flex: 0 0 36px;
    width: 36px;
    height: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--toggle-off);
    transition: background .15s, border-color .15s;
}
.status-toggle .toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 31, 45, .25);
    transition: transform .15s;
}
.status-toggle.is-on { color: var(--success); }
.status-toggle.is-on .toggle-track { background: var(--success); border-color: var(--success); }
.status-toggle.is-on .toggle-knob { transform: translateX(16px); }
.status-toggle:focus { outline: none; }
.status-toggle:focus .toggle-track { box-shadow: 0 0 0 3px rgba(74, 144, 217, .2); }

.link-edit { color: var(--navy); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.link-edit:hover { text-decoration: underline; }

/* ---------- Status / messages ---------- */
.msg { display: block; color: var(--warning); background: var(--warning-bg);
    padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 13px; }
.err  { color: var(--danger); background: var(--danger-bg); padding: 8px 12px;
    border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 8px; display: inline-block; }
.ok   { color: var(--success); background: var(--success-bg); padding: 8px 12px;
    border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 8px; display: inline-block; }
.msg:empty, .err:empty, .ok:empty { display: none; padding: 0; margin: 0; background: none; }

.badge { font-size: 11px; background: var(--green-bg); color: var(--green-dark);
    border-radius: 20px; padding: 3px 10px; white-space: nowrap; font-weight: 600; }
.na { color: var(--border-strong); font-size: 11px; }
.price { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, .45);
    display: none; align-items: center; justify-content: center; z-index: 50;
    backdrop-filter: blur(1px);
}
.modal-backdrop.show { display: flex; }
.modal {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 26px 28px;
    width: min(420px, calc(100vw - 40px));
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal h3 { margin: 0 0 16px 0; color: var(--navy); font-size: 18px; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.modal.modal-lg { width: min(760px, calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow: auto; }
.modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.modal-grid .span2 { grid-column: 1 / -1; }
.section-title { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 14px;
    margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--navy); }
@media (max-width: 640px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-grid .span2 { grid-column: auto; }
}

/* ---------- Retailer occasion greeting ---------- */
.occasion-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .5);
    box-sizing: border-box;
}
.occasion-dialog {
    width: min(440px, 100%);
    padding: 30px;
    border-top: 4px solid var(--green);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.occasion-kicker { color: var(--green-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.occasion-dialog h2 { margin: 10px 0 12px; color: var(--navy); font-size: 26px; }
.occasion-dialog p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; }
.occasion-signoff { margin: 18px 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 480px) {
    .occasion-dialog { padding: 24px 20px; }
    .occasion-dialog h2 { font-size: 22px; }
}

.field { margin-bottom: 12px; }
.field label, label { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; box-sizing: border-box; }
.field .hint, .hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: block; }
.hint.warn { color: var(--danger); font-weight: 600; }

/* ---------- Tabs (PriceList) ---------- */
.tabs { display: flex; gap: 0; margin-bottom: 0; }
.tab-btn { padding: 10px 22px; border: 1px solid var(--border); background: var(--surface-alt);
    cursor: pointer; font-size: 13.5px; font-weight: 600; border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-right: 4px; color: var(--text-muted); }
.tab-btn.active { background: var(--surface); color: var(--navy); border-color: var(--border);
    border-bottom: 2px solid var(--surface); margin-bottom: -1px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.panel-wrap { background: var(--surface); border: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 0; box-shadow: var(--shadow-sm); }
.family-header td { background: var(--green-bg); font-weight: 700; font-size: 12px;
    color: var(--green-dark); padding: 6px 14px; letter-spacing: .3px; }

/* ---------- Panels (MyOrders, generic) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; margin-bottom: 22px; max-width: 720px; box-shadow: var(--shadow-sm); }
.panel h3 { margin-top: 0; font-weight: 700; color: var(--navy); }
.form-row { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.form-row label { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.form-row input, .form-row select { padding: 8px; width: 100%; }
.form-col { flex: 1; min-width: 120px; }

/* ---------- Order-slip scan ---------- */
.slip-scan-box { background: var(--green-bg); border: 1px dashed var(--green); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 16px; }
.slip-scan-box label { color: var(--green-dark); font-weight: 700; }
.slip-scan-box input[type=file] { display: block; margin: 8px 0; width: 100%; }
.hint.slip-ok { color: var(--success); }
.hint.slip-error { color: var(--danger); }
.slip-flagged { border-color: var(--warning) !important; background: var(--warning-bg) !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, .25); }

/* ---------- Searchable select (Brand / Family / Product / Coating) ---------- */
.ssel-native { display: none !important; }
.ssel-wrap { position: relative; width: 100%; }
.ssel-wrap .ssel-input { width: 100%; box-sizing: border-box; cursor: text; }
.ssel-wrap.open .ssel-input { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(74, 144, 217, .18); }
.ssel-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40;
    min-width: 100%; width: max-content; max-width: 520px;
    max-height: 230px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.ssel-item { padding: 7px 10px; font-size: 13.5px; color: var(--text); cursor: pointer; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.ssel-item:hover, .ssel-item.hover { background: var(--row-hover); }
.ssel-item.active { background: var(--green-bg); color: var(--green-dark); font-weight: 600; }
.ssel-empty { padding: 7px 10px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- KPI tiles + module panels (ERP Hub) ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--shadow-sm); border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--navy), var(--green)) 1;
    transition: box-shadow .15s, transform .1s; }
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.kpi span { display: block; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.kpi strong { display: block; font-size: 24px; font-weight: 700; margin-top: 6px; color: var(--navy); }

.modules { display: grid; grid-template-columns: repeat(2, minmax(360px, 1fr)); gap: 16px; }
.module { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; min-width: 0; box-shadow: var(--shadow-sm); }
.module.wide { grid-column: 1 / -1; }
.module h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--navy); }

.form { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 10px; margin-bottom: 12px; }
.form .span2 { grid-column: span 2; }
.form .span4 { grid-column: 1 / -1; }
.form > div { min-width: 0; }
.form select, .form input, .form textarea { width: 100%; }

@media (max-width: 980px) {
    .kpis, .modules { grid-template-columns: 1fr; }
    .form { grid-template-columns: repeat(2, minmax(100px, 1fr)); }
    .form .span4 { grid-column: 1 / -1; }
}

/* ---------- GST Challan print sheet ---------- */
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm); }
.head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--navy);
    padding-bottom: 16px; margin-bottom: 20px; }
.head h1 { margin: 0; font-size: 24px; font-weight: 700; color: var(--navy); }
.muted { color: var(--text-muted); font-size: 12px; }
.meta { text-align: right; font-size: 13px; line-height: 1.7; }
.parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; min-height: 110px; background: #fbfcfe; }
.box h3 { margin: 0 0 8px; font-size: 14px; color: var(--navy); }
.box div { font-size: 13px; line-height: 1.55; }
.num { text-align: right; white-space: nowrap; }
.totals { width: 380px; margin-left: auto; margin-top: 16px; box-shadow: none; }
.totals td { border: 0; border-bottom: 1px solid #f1f5f9; }
.totals tr:last-child td { border-bottom: 2px solid var(--navy); font-weight: 700; font-size: 15px; color: var(--navy); }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 0; }

@media print {
    body { background: #fff; }
    .top, .actions { display: none; }
    .wrap { margin: 0; max-width: none; padding: 0; }
    .sheet { border: 0; border-radius: 0; padding: 0; box-shadow: none; }
}

/* ---------- Login page ---------- */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--surface-alt) 0%, var(--bg) 60%);
}
.login-card {
    width: min(380px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.login-card img { height: 64px; margin-bottom: 14px; }
.login-card h2 { margin: 0 0 24px; font-weight: 700; color: var(--navy); font-size: 20px; letter-spacing: .2px; }
.login-card label { text-align: left; }
.login-card .field { text-align: left; }
.login-card .btn { width: 100%; padding: 11px; font-size: 14.5px; margin-top: 4px; }
