/* Transport Khata web app. Colours are the Android app's own (android ui/theme/Theme.kt). */
:root {
  --navy: #0B2A5B; --navy-dark: #061A3D; --navy-light: #1C4A96; --blue: #1D5FD1;
  --accent: #F59E0B; --accent-dark: #B45309; --accent-bg: #FFF3DC; --on-accent: #1F1300;
  --bg: #F3F5F9; --surface: #FFFFFF; --muted-bg: #EEF1F6; --line: #E2E7EF; --line-strong: #C5CDD9;
  --text: #0F172A; --text2: #5B6B80;
  --good: #0F7A43; --good-bg: #E1F5EA; --bad: #C62828; --bad-bg: #FDE8E7;
  --warn: #8F5400; --warn-bg: #FFF1D6; --info: #1C4A96; --info-bg: #E4ECFB;
  --radius: 12px; --side: 248px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .18);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif; -webkit-font-smoothing: antialiased; }
h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
h2 { margin: 0; font-size: 16px; font-weight: 700; }
h3 { margin: 0; font-size: 17px; font-weight: 700; }
p { margin: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text2); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.grow { flex: 1 1 auto; min-width: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.icon { flex: none; }
.boot { padding: 40px; color: var(--text2); text-align: center; }

/* ───────── shell ───────── */
.shell { display: flex; min-height: 100vh; }
.side { width: var(--side); flex: none; background: var(--navy); color: #D4DEF0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 10px; color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.side-company { margin: 6px 12px 10px; }
.side-company select, .side-company .company-name { width: 100%; background: var(--navy-dark); color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 9px 10px; font-weight: 600; }
.side-company .company-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav { display: flex; flex-direction: column; padding: 4px 10px 16px; gap: 1px; }
.side-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8EA3C7; padding: 14px 10px 6px; }
.side a.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: #D4DEF0; text-decoration: none; font-weight: 500; }
.side a.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.side a.nav-item.on { background: var(--navy-light); color: #fff; font-weight: 700; }
.side a.nav-item .nav-badge { margin-left: auto; background: var(--accent); color: var(--on-accent); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.side a.nav-item .nav-badge.plain { background: rgba(255,255,255,.14); color: #fff; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 8px; }
.side-user { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 6px; border-radius: 10px; }
.side-user:hover { background: rgba(255,255,255,.07); }
.side-user .who { min-width: 0; }
.side-user .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { font-size: 12px; color: #A9B9D6; }
.side-tools { display: flex; gap: 6px; }
.side-tools select, .side-tools button { flex: 1; background: transparent; color: #D4DEF0; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 7px 8px; cursor: pointer; font-size: 13px; }
.side-tools select option { color: var(--text); }
.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.scrim { display: none; }
@media (max-width: 900px) {
  .side { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  .shell.drawer-open .side { box-shadow: var(--shadow-lg); }
  .shell.drawer-open .side { transform: none; }
  .shell.drawer-open .scrim { display: block; position: fixed; inset: 0; background: rgba(6, 26, 61, .45); z-index: 30; }
  .topbar { display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 8px 8px; position: sticky; top: 0; z-index: 20; }
  .topbar .icon-btn { color: #fff; }
  .topbar .top-title { font-weight: 800; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ───────── page ───────── */
.page { width: 100%; margin: 0 auto; padding: 22px 28px 48px; display: flex; flex-direction: column; gap: 16px; }
.page-wide { max-width: 1320px; }
.page-mid { max-width: 1040px; }
.page-narrow { max-width: 760px; }
@media (max-width: 900px) { .page { padding: 16px 16px 40px; } }
.page-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.page-title { flex: 1 1 240px; min-width: 0; }
.page-title h1 { overflow-wrap: anywhere; }
.page-sub { color: var(--text2); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back-btn { margin-left: -6px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 16px 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 28px; }
.card-actions { display: flex; gap: 6px; align-items: center; }
.card > .table-wrap { margin: 0 -18px -16px; }
.card:not(.pad) > .table-wrap { margin: 0; }
.card-list { display: flex; flex-direction: column; }
.card-list > * + * { border-top: 1px solid var(--line); }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text2); margin: 4px 0 -4px; }

/* ───────── buttons ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--muted-bg); }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .seg:focus-visible, a:focus-visible { outline: 3px solid rgba(29, 95, 209, .35); outline-offset: 1px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-light); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.accent:hover { background: #E89005; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:hover { background: #A61F1F; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--info-bg); }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text2) transparent var(--text2) transparent; animation: spin .8s linear infinite; }
.btn.primary.busy::after, .btn.danger.busy::after { border-color: #fff transparent #fff transparent; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--text2); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--muted-bg); color: var(--text); }
.topbar .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.link { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ───────── pills, money, banners ───────── */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--muted-bg); color: var(--text2); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn, .pill.amber { background: var(--warn-bg); color: var(--warn); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.navy { background: var(--navy); color: #fff; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.good, .good-text { color: var(--good); }
.money.bad, .bad-text { color: var(--bad); }
.money.warn, .warn-text { color: var(--warn); }
.money.strong { font-weight: 700; }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-radius: 10px; border: 1px solid transparent; }
.banner .icon { margin-top: 1px; }
.banner.info { background: var(--info-bg); color: #163B78; }
.banner.good { background: var(--good-bg); color: #0B5E33; }
.banner.warn { background: var(--warn-bg); color: #6E4100; border-color: #F6D69A; }
.banner.bad { background: var(--bad-bg); color: #9B1C1C; }
.banner .btn { flex: none; }
.plan-banner { margin: 0; border-radius: 0; border-width: 0 0 1px; }

/* ───────── states ───────── */
.loading { display: flex; align-items: center; gap: 10px; color: var(--text2); padding: 24px 4px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.reloading { opacity: .6; transition: opacity .15s; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 16px; }
.empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--muted-bg); color: var(--text2); display: flex; align-items: center; justify-content: center; }
.empty-title { font-weight: 700; font-size: 15px; }
.empty .muted { max-width: 420px; }

/* ───────── tiles ───────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-decoration: none; color: inherit; position: relative; }
a.kpi:hover { border-color: var(--line-strong); }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--info-bg); color: var(--info); margin-bottom: 4px; }
.kpi-icon.good { background: var(--good-bg); color: var(--good); }
.kpi-icon.bad { background: var(--bad-bg); color: var(--bad); }
.kpi-icon.warn { background: var(--warn-bg); color: var(--warn); }
.kpi-label { color: var(--text2); font-size: 13px; font-weight: 600; }
.kpi-value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi-value.good { color: var(--good); } .kpi-value.bad { color: var(--bad); } .kpi-value.warn { color: var(--warn); }
.kpi-sub { color: var(--text2); font-size: 12.5px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat-label { color: var(--text2); font-size: 12.5px; }
.stat-value { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat-value.good { color: var(--good); } .stat-value.bad { color: var(--bad); } .stat-value.warn { color: var(--warn); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv-label { color: var(--text2); flex: none; max-width: 50%; }
.kv-value { text-align: right; overflow-wrap: anywhere; }
.kv-value.strong { font-weight: 700; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-bg); color: var(--accent-dark); font-weight: 800; flex: none; }

/* ───────── chips and tabs: one row that scrolls sideways, never wraps ───────── */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 1px; flex-wrap: nowrap; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--text); }
.chip:hover { background: var(--muted-bg); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-count { font-size: 11.5px; font-weight: 700; opacity: .75; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-weight: 600; color: var(--text2); cursor: pointer; white-space: nowrap; }
.tab.on { color: var(--navy); border-bottom-color: var(--navy); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .search { flex: 1 1 260px; max-width: 420px; }
.toolbar .chips { flex: 1 1 300px; }

/* ───────── tables ───────── */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F8FAFC; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table.dense td { padding: 8px 12px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table tr.link-row { cursor: pointer; }
.table tr.link-row:hover td { background: #F7F9FD; }
.table a.row-link { color: inherit; text-decoration: none; font-weight: 600; }
.table tfoot td { font-weight: 700; background: #F8FAFC; border-top: 1px solid var(--line); border-bottom: 0; }
.cell-sub { display: block; color: var(--text2); font-size: 12.5px; font-weight: 400; }
.more-row { display: flex; justify-content: center; padding: 12px; }

/* ───────── forms ───────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .form-row.cols-2, .form-row.cols-3, .form-row.cols-4 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-weight: 600; font-size: 13px; color: #334155; }
.req { color: var(--bad); }
.input { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { resize: vertical; min-height: 64px; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 95, 209, .15); }
.input[disabled] { background: var(--muted-bg); color: var(--text2); }
.has-error .input { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12.5px; font-weight: 600; }
.field-hint { color: var(--text2); font-size: 12.5px; display: block; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-prefix, .input-suffix { position: absolute; color: var(--text2); display: flex; align-items: center; pointer-events: none; }
.input-prefix { left: 11px; font-weight: 600; }
.input-suffix { right: 8px; }
.input-suffix button { pointer-events: auto; }
.has-prefix .input { padding-left: 28px; }
.has-suffix .input { padding-right: 36px; }
.clear-btn { border: 0; background: none; color: var(--text2); cursor: pointer; padding: 4px; border-radius: 6px; display: flex; }
.clear-btn:hover { background: var(--muted-bg); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check-label { font-weight: 600; }
.segmented { display: flex; gap: 0; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; width: max-content; max-width: 100%; overflow-x: auto; }
.seg { border: 0; background: var(--surface); padding: 8px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; color: var(--text2); }
.seg + .seg { border-left: 1px solid var(--line-strong); }
.seg.on { background: var(--navy); color: #fff; }
.seg[disabled] { opacity: .5; cursor: not-allowed; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.picker { position: relative; }
.picker-list { position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 280px; overflow-y: auto; }
.picker-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; }
.picker-list li.active { background: var(--info-bg); }
.picker-list li.add .opt-label { color: var(--blue); font-weight: 700; }
.picker-list li.none { color: var(--text2); cursor: default; }
.opt-label { font-weight: 600; }
.opt-sub { color: var(--text2); font-size: 12.5px; }

/* ───────── dialogs and toasts ───────── */
.dialog { border: 0; border-radius: 16px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
.dialog.wide { width: min(760px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(6, 26, 61, .5); }
.dialog-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 8px; background: var(--navy-dark); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 600; }
.toast.bad { background: #8E1B1B; }

/* ───────── disclosure, lists ───────── */
.disclosure { border: 1px solid var(--line); border-radius: 10px; }
.disclosure-head { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; padding: 11px 14px; font-weight: 600; cursor: pointer; }
.disclosure-body { padding: 0 14px 14px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-decoration: none; color: inherit; }
a.list-item:hover { background: #F7F9FD; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }

/* ───────── sign-in ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-brand { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand .logo { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }
.auth-brand h1 { font-size: 34px; margin-top: 18px; color: #fff; }
.auth-brand .tag { color: var(--accent); font-weight: 700; margin-top: 4px; }
.auth-points { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; max-width: 420px; }
.auth-points div { display: flex; gap: 12px; color: #D4DEF0; }
.auth-points .icon { color: var(--accent); }
.auth-form-side { display: flex; flex-direction: column; align-items: center; padding: 24px; }
.auth-lang { align-self: flex-end; }
.auth-card { width: 100%; max-width: 420px; margin: auto 0; display: flex; flex-direction: column; gap: 14px; padding: 8px 0 24px; }
.auth-card h2 { font-size: 24px; color: var(--navy); font-weight: 800; }
.auth-links { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 24px 20px; }
  .auth-brand h1 { font-size: 24px; margin-top: 10px; }
  .auth-points { display: none; }
}

/* ───────── QR and printing ───────── */
.qr { display: inline-flex; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr svg, .qr img { display: block; width: 200px; height: 200px; }
@media print {
  .side, .topbar, .page-actions, .no-print, .plan-banner, .toasts { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .page { padding: 0; max-width: none; }
}
a.plan-link { text-decoration: none; }
a.plan-link:hover { filter: brightness(.98); }

/* The five load statuses (android StatusPill). */
.pill.status-NEW_LOAD { background: #F7E6F2; color: #8E2F7C; }
.pill.status-TRUCK_ASSIGNED { background: var(--info-bg); color: var(--navy); }
.pill.status-DELIVERED { background: var(--warn-bg); color: var(--warn); }
.pill.status-COMPLETED { background: var(--good-bg); color: var(--good); }
.pill.status-CANCELLED { background: var(--bad-bg); color: var(--bad); }
/* A tall dialog scrolls, but its Save and Cancel stay in reach. */
.dialog { max-height: calc(100vh - 32px); }
.dialog-body > .form-actions:last-child { position: sticky; bottom: -20px; background: var(--surface); margin: 0 -20px -20px; padding: 12px 20px 20px; border-top: 1px solid var(--line); }
.dialog-body > p.muted { white-space: pre-line; }

/* The Transport Khata logo (its own rounded square, transparent corners). */
.logo-img { width: 32px; height: 32px; border-radius: 8px; display: block; flex: none; }
.logo-img.big { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 14px 30px rgba(0,0,0,.35); }

/* Sign-in, design A: the brand side glows (grid, route line), the form sits on a white card, the main button is saffron. */
.auth-brand { position: relative; overflow: hidden; background:
  radial-gradient(520px 420px at 30% 22%, rgba(91,155,255,.55), transparent 65%),
  linear-gradient(165deg, #163F87 0%, var(--navy) 45%, #050F2A 100%); }
.auth-brand::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(140,180,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(140,180,255,.08) 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.auth-brand::after { content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,176,32,.75) 0 10px, transparent 10px 18px); transform: rotate(-6deg); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .logo-img.big { width: 128px; height: 128px; border-radius: 28px; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 50px rgba(91,155,255,.35); }
.auth-form-side { background: #EEF2F8; min-width: 0; }
.auth-card { box-sizing: border-box; background: #fff; border-radius: 26px; padding: 26px 24px 20px; box-shadow: 0 20px 50px rgba(11,42,91,.14); }
.auth-card h2 { font-size: 26px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auth-row label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.btn.glow { min-height: 50px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 800; color: #1F1300;
  background: linear-gradient(90deg, #FFB020, #FF7A00); box-shadow: 0 10px 24px rgba(255,122,0,.35); }
.btn.glow:hover { filter: brightness(1.05); background: linear-gradient(90deg, #FFB020, #FF7A00); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-two .btn { min-height: 44px; border-radius: 12px; color: var(--navy); font-weight: 700; white-space: normal; text-align: center; }
.auth-trust { text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .auth-brand .logo-img.big { width: 96px; height: 96px; border-radius: 22px; }
  .auth-brand::after { top: 90%; }
  .auth-card { padding: 22px 18px 18px; }
}
