/* ============================================================
   LocalTMS — "Midnight Command"
   A dark ops-console for freight: deep ink surfaces, hazard-amber
   signal color, monospace numerals, glowing status dots.
   ============================================================ */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0c0f13;
  --bg-raised: #12161c;
  --card: #141920;
  --card-hover: #181e26;
  --inset: #0e1217;

  /* lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* text */
  --text: #e7eaee;
  --muted: #8a94a3;
  --faint: #5c6674;

  /* signals */
  --accent: #ffb224;          /* hazard amber — fills & buttons */
  --accent-fg: #ffb224;       /* amber used as text/link color */
  --accent-ink: #1a1200;      /* text on amber */
  --accent-soft: rgba(255, 178, 36, 0.12);
  --green: #46d68c;
  --warn: #ffc964;
  --danger: #ff6b5e;
  --blue: #56a8ff;

  --radius: 10px;
  --radius-lg: 14px;

  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255, 178, 36, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.005em;
}

::selection { background: rgba(255, 178, 36, 0.3); }

/* slim dark scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
::-webkit-scrollbar-track { background: transparent; }

.app { display: flex; min-height: 100vh; }

/* ---------- sidebar : the rail ---------- */
.sidebar {
  width: 216px;
  background: linear-gradient(180deg, #10141a 0%, #0d1015 100%);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ff8a1e);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 0 18px rgba(255, 178, 36, 0.35);
}
.brand-name {
  font-weight: 750; font-size: 14.5px; letter-spacing: 0.01em;
  text-transform: uppercase;
}

.new-load-btn {
  background: var(--accent); color: var(--accent-ink); border: none;
  padding: 10px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.02em; cursor: pointer;
  box-shadow: 0 2px 14px rgba(255, 178, 36, 0.25);
  transition: transform 0.05s ease, box-shadow 0.15s ease;
}
.new-load-btn:hover { box-shadow: 0 2px 22px rgba(255, 178, 36, 0.45); }
.new-load-btn:active { transform: translateY(1px); }

nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  position: relative;
  padding: 9px 12px; border-radius: 8px; text-decoration: none;
  color: var(--muted); font-weight: 550; font-size: 13.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.12s ease, background 0.12s ease;
}
nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
nav a.active { color: var(--accent-fg); background: var(--accent-soft); }
nav a.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent); border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 178, 36, 0.8);
}

.sidebar-footer {
  margin-top: auto; font-size: 10.5px; color: var(--faint);
  padding: 10px 6px 0; border-top: 1px solid var(--border);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- main ---------- */
main { flex: 1; padding: 26px 30px; min-width: 0; }

.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 {
  font-size: 22px; font-weight: 750; margin-right: auto;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--border-strong); background: transparent; color: var(--text);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.24); }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  box-shadow: 0 1px 10px rgba(255, 178, 36, 0.2);
}
.btn.primary:hover { box-shadow: 0 1px 18px rgba(255, 178, 36, 0.4); background: #ffbe45; }
.btn.danger { color: var(--danger); border-color: rgba(255, 107, 94, 0.35); }
.btn.danger:hover { background: rgba(255, 107, 94, 0.1); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- inputs ---------- */
input, select, textarea {
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px;
  font-size: 13px; font-family: inherit;
  background: var(--inset); color: var(--text);
  width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 178, 36, 0.15);
}
input[readonly] { background: rgba(255, 255, 255, 0.03); color: var(--muted); }
input[type="date"], input[type="number"] { font-family: var(--font-mono); font-size: 12.5px; }

label {
  font-size: 10.5px; font-weight: 650; color: var(--muted);
  display: block; margin-bottom: 5px;
  letter-spacing: 0.09em; text-transform: uppercase;
}
.field { margin-bottom: 13px; }
/* rows wrap instead of clipping when the card gets narrow (small screens, zoom) */
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 120px; min-width: 0; }
.row > button { flex: 0 0 auto; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--card) 0%, #12161d 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}
.card h2 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px;
}

/* ---------- status chips : glowing dots ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--c, var(--muted));
  background: color-mix(in srgb, var(--c, var(--muted)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 25%, transparent);
}
.chip::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--muted));
  box-shadow: 0 0 7px color-mix(in srgb, var(--c, var(--muted)) 90%, transparent);
}
.st-open       { --c: #9aa4b2; }
.st-dispatched { --c: #56a8ff; }
.st-intransit  { --c: #ffb224; }
.st-delivered  { --c: #46d68c; }
.st-complete   { --c: #3fd4d4; }
.st-invoiced   { --c: #b18cff; }
.st-paid       { --c: #2fbf71; }
.st-cancelled  { --c: #ff6b5e; }

/* ---------- tables ---------- */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left; padding: 11px 13px; font-size: 10.5px; font-weight: 700;
  color: var(--muted); border-bottom: 1px solid var(--border-strong);
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
  background: var(--bg-raised); position: sticky; top: 0; z-index: 2;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent-fg); }
th.drag-over { background: var(--accent-soft); color: var(--accent-fg); }
td {
  padding: 10px 13px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { cursor: pointer; transition: background 0.1s ease; }
tbody tr:hover { background: rgba(255, 178, 36, 0.045); }
tr.filters td { padding: 6px 8px; background: var(--bg-raised); }
tr.filters input, tr.filters select {
  padding: 4px 8px; font-size: 12px; border-radius: 6px;
  background: var(--inset);
}
.table-footer {
  padding: 11px 16px; font-size: 12px; color: var(--muted);
  display: flex; gap: 26px; flex-wrap: wrap;
  border-top: 1px solid var(--border-strong);
  background: var(--bg-raised);
  letter-spacing: 0.02em;
}
.table-footer b { color: var(--accent-fg); font-family: var(--font-mono); font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 7px 15px; border-radius: 20px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--muted);
  cursor: pointer; font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em;
  transition: all 0.12s ease;
}
.tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.tab.active {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 12px rgba(255, 178, 36, 0.3);
}
.tab .count { opacity: 0.75; margin-left: 6px; font-family: var(--font-mono); font-size: 11.5px; }

/* ---------- new load split view ---------- */
.split { display: flex; gap: 20px; align-items: flex-start; }
.split-left { flex: 1; position: sticky; top: 26px; min-width: 300px; }
.split-right { flex: 1.1; min-width: 380px; }

.dropzone {
  border: 1.5px dashed rgba(255, 178, 36, 0.35);
  border-radius: var(--radius-lg);
  padding: 46px 20px; text-align: center; color: var(--muted);
  background:
    radial-gradient(400px 160px at 50% 0%, rgba(255, 178, 36, 0.05), transparent),
    var(--card);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent); color: var(--text);
  box-shadow: 0 0 0 4px rgba(255, 178, 36, 0.08), inset 0 0 40px rgba(255, 178, 36, 0.04);
}
.dropzone .big { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }

.pdf-frame {
  width: 100%; height: calc(100vh - 130px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); background: #1a1a1a;
}

.stop-block {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px;
  background: var(--bg-raised);
}
.stop-block.pickup { border-left-color: var(--danger); }
.stop-block.delivery { border-left-color: var(--green); }
.stop-block-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- load detail ---------- */
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-head h1 { font-size: 21px; font-weight: 750; letter-spacing: -0.01em; }
.detail-head .spacer { flex: 1; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; align-items: start; }
.detail-grid .col { min-width: 0; }
@media (max-width: 1200px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }

.kv {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: 13px; gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); flex-shrink: 0; font-size: 12px; letter-spacing: 0.02em; }
.kv .v { font-weight: 550; text-align: right; word-break: break-word; }

.stop-timeline { position: relative; }
.stop-item {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 13px; margin-bottom: 10px;
  background: var(--bg-raised);
}
.stop-item .head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; align-items: baseline; }
.stop-item .head b { font-size: 13px; }
.stop-item .head .muted { font-family: var(--font-mono); font-size: 11.5px !important; }
.stop-type {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  padding: 1.5px 6px; border-radius: 4px; margin-right: 2px;
}
.stop-type.pickup { color: var(--danger); background: rgba(255, 107, 94, 0.12); }
.stop-type.delivery { color: var(--green); background: rgba(70, 214, 140, 0.12); }
.stop-item .sub { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stop-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stamp {
  font-size: 11px; color: var(--green); font-weight: 650;
  font-family: var(--font-mono); letter-spacing: 0;
}

.money-line {
  display: flex; justify-content: space-between; padding: 7px 0;
  font-size: 13px; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.money-line b { font-family: var(--font-mono); font-size: 13px; }
.money-line.total {
  border-top: 1px solid var(--border-strong); border-bottom: none;
  margin-top: 6px; padding-top: 12px;
  font-weight: 750; font-size: 14px;
}
.money-line.total span:last-child { color: var(--green); font-family: var(--font-mono); }

.doc-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; background: var(--bg-raised);
  flex-wrap: wrap; /* controls drop to a second line instead of crushing the filename */
}
.doc-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.doc-item .meta { font-size: 11px; color: var(--faint); font-family: var(--font-mono); }
.doc-item select { width: auto; font-size: 11.5px; padding: 3px 6px; }

.note-item { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.note-item .meta { font-size: 11px; color: var(--faint); margin-top: 3px; font-family: var(--font-mono); }

/* ---------- status progress rail ---------- */
.status-bar { display: flex; gap: 3px; margin-bottom: 18px; flex-wrap: wrap; }
.status-step {
  padding: 6px 15px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 700; color: var(--faint);
  letter-spacing: 0.07em; text-transform: uppercase;
  border-radius: 6px;
}
.status-step.done {
  color: var(--muted); border-color: rgba(255, 178, 36, 0.25);
  background: rgba(255, 178, 36, 0.05);
}
.status-step.current {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  box-shadow: 0 0 14px rgba(255, 178, 36, 0.35);
}

/* ---------- side panel ---------- */
.side-panel {
  position: fixed; right: 0; top: 0; height: 100vh; width: min(380px, 100vw);
  background: linear-gradient(180deg, #151a21, #10141a);
  border-left: 1px solid var(--border-strong);
  box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5);
  padding: 22px; overflow-y: auto; z-index: 40;
}
.side-panel.hidden { display: none; }
.side-panel .close {
  float: right; border: none; background: none; font-size: 22px;
  cursor: pointer; color: var(--muted); line-height: 1;
}
.side-panel .close:hover { color: var(--text); }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: linear-gradient(180deg, #171c24, #12161d);
  border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 24px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal h2 { font-size: 16px; margin-bottom: 18px; font-weight: 700; letter-spacing: -0.01em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- toast ---------- */
#toastRoot { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1c222b; color: var(--text);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  padding: 11px 18px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  animation: toast-in 0.2s ease;
}
.toast.error { border-left-color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

/* ---------- utility ---------- */
input.autofilled, select.autofilled {
  background: rgba(255, 178, 36, 0.08);
  border-color: rgba(255, 178, 36, 0.45);
}
.dir-locked { opacity: 0.85; }

.empty { text-align: center; color: var(--faint); padding: 44px 20px; }
.muted { color: var(--muted); }
.link { color: var(--accent-fg); cursor: pointer; text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.warn-badge { color: var(--warn); font-size: 11.5px; font-weight: 650; }

/* ---------- responsive scaling ---------- */
/* the New Load split view stacks when there isn't room for PDF + form side by side */
@media (max-width: 1100px) {
  .split { flex-direction: column; }
  .split-left { position: static; width: 100%; min-width: 0; }
  .split-right { min-width: 0; width: 100%; }
  .pdf-frame { height: 55vh; }
}

@media (max-width: 900px) {
  main { padding: 16px; }
  .page-head h1 { font-size: 19px; }
}

/* small screens: the sidebar becomes a top bar with horizontal nav */
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .sidebar {
    position: sticky; top: 0; z-index: 50;
    width: 100%; height: auto;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-right: none; border-bottom: 1px solid var(--border-strong);
  }
  .brand-name { display: none; }
  nav { flex-direction: row; gap: 2px; overflow-x: auto; flex: 1; }
  nav a { padding: 7px 10px; font-size: 12px; white-space: nowrap; }
  nav a.active::before { display: none; }
  .new-load-btn { padding: 8px 12px; font-size: 12.5px; white-space: nowrap; }
  .sidebar-footer { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-panel { width: 100vw; }
}

/* ---------- auth screen ---------- */
.auth-screen {
  position: fixed; inset: 0; z-index: 300;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(255, 178, 36, 0.07), transparent 60%),
    var(--bg);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-card {
  background: linear-gradient(180deg, var(--card), var(--bg-raised));
  border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 30px 28px;
  width: 100%; max-width: 380px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
html[data-theme="light"] .auth-card { box-shadow: 0 24px 60px rgba(20, 22, 28, 0.18); }

/* ---------- theme picker (Settings page) ---------- */
.theme-picker { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-swatch {
  flex: 1; border: 2px solid var(--border-strong); border-radius: var(--radius);
  padding: 14px; cursor: pointer; background: var(--bg-raised);
  text-align: center; font-weight: 650; font-size: 13px; color: var(--muted);
  transition: border-color 0.12s ease, color 0.12s ease;
}
.theme-swatch:hover { border-color: rgba(128, 128, 128, 0.5); }
.theme-swatch.active { border-color: var(--accent); color: var(--text); }
.theme-swatch .dots { display: flex; gap: 5px; justify-content: center; margin-bottom: 9px; }
.theme-swatch .dots span { width: 14px; height: 14px; border-radius: 50%; }

/* ============================================================
   "Daylight" — the light companion theme.
   Same design language: warm paper surfaces, amber signal,
   mono numerals. Selected in Settings, stored per browser.
   ============================================================ */

html[data-theme="light"] { color-scheme: light; }

html[data-theme="light"] body {
  --bg: #f3f2ee;
  --bg-raised: #faf9f6;
  --card: #ffffff;
  --card-hover: #f7f6f2;
  --inset: #f5f4f0;

  --border: rgba(24, 26, 32, 0.09);
  --border-strong: rgba(24, 26, 32, 0.16);

  --text: #1d2027;
  --muted: #5c6470;
  --faint: #989ea9;

  --accent: #f5a30a;
  --accent-fg: #b45309;
  --accent-ink: #241700;
  --accent-soft: rgba(245, 163, 10, 0.14);
  --green: #0f9d63;
  --warn: #b45309;
  --danger: #d93a2b;
  --blue: #2266cc;

  background: var(--bg);
}

/* status signals need darker inks on paper */
html[data-theme="light"] .st-open       { --c: #64748b; }
html[data-theme="light"] .st-dispatched { --c: #2563eb; }
html[data-theme="light"] .st-intransit  { --c: #c2410c; }
html[data-theme="light"] .st-delivered  { --c: #059669; }
html[data-theme="light"] .st-complete   { --c: #0e7490; }
html[data-theme="light"] .st-invoiced   { --c: #7c3aed; }
html[data-theme="light"] .st-paid       { --c: #15803d; }
html[data-theme="light"] .st-cancelled  { --c: #dc2626; }

/* flatten the dark gradients & glows onto paper */
html[data-theme="light"] .sidebar { background: #faf9f6; }
html[data-theme="light"] .card,
html[data-theme="light"] .modal { background: var(--card); }
html[data-theme="light"] .side-panel { background: var(--card); box-shadow: -14px 0 44px rgba(20, 22, 28, 0.12); }
html[data-theme="light"] .modal { box-shadow: 0 24px 70px rgba(20, 22, 28, 0.25); }
html[data-theme="light"] .modal-backdrop { background: rgba(35, 38, 46, 0.35); }
html[data-theme="light"] .toast {
  background: #ffffff; color: var(--text);
  box-shadow: 0 12px 32px rgba(20, 22, 28, 0.18);
}
html[data-theme="light"] .brand-logo { box-shadow: 0 2px 10px rgba(245, 163, 10, 0.35); }
html[data-theme="light"] .new-load-btn { box-shadow: 0 2px 10px rgba(245, 163, 10, 0.3); }
html[data-theme="light"] .new-load-btn:hover { box-shadow: 0 3px 16px rgba(245, 163, 10, 0.45); }
html[data-theme="light"] nav a.active::before { box-shadow: none; }
html[data-theme="light"] .tab.active { box-shadow: 0 1px 8px rgba(245, 163, 10, 0.3); }
html[data-theme="light"] .status-step.current { box-shadow: 0 1px 10px rgba(245, 163, 10, 0.35); }
html[data-theme="light"] .chip::before { box-shadow: none; }
html[data-theme="light"] .btn:hover { background: rgba(24, 26, 32, 0.04); }
html[data-theme="light"] nav a:hover { background: rgba(24, 26, 32, 0.05); }
html[data-theme="light"] tbody tr:hover { background: rgba(245, 163, 10, 0.06); }
html[data-theme="light"] .kv { border-bottom-color: rgba(24, 26, 32, 0.05); }
html[data-theme="light"] .money-line { border-bottom-color: rgba(24, 26, 32, 0.05); }
html[data-theme="light"] .note-item { border-bottom-color: rgba(24, 26, 32, 0.06); }
html[data-theme="light"] .pdf-frame { background: #e8e8e8; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(24, 26, 32, 0.22); border-color: var(--bg); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(24, 26, 32, 0.35); }
html[data-theme="light"] ::selection { background: rgba(245, 163, 10, 0.3); }
html[data-theme="light"] input.autofilled,
html[data-theme="light"] select.autofilled {
  background: #fff7e0; border-color: rgba(196, 130, 10, 0.5);
}
