/* DailyCash — bright, modern theme. Uses logical properties so RTL (Urdu) flips automatically. */
:root {
    --bg: #f4f6fc;
    --surface: #ffffff;
    --ink: #172033;
    --muted: #68748d;
    --line: #e7ebf4;
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-50: #eef0ff;
    --green: #10b981;
    --green-50: #e7f9f2;
    --rose: #f43f5e;
    --rose-50: #fff0f3;
    --amber: #f59e0b;
    --amber-50: #fff6e3;
    --sky: #0ea5e9;
    --sky-50: #e8f6fe;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 10px 28px rgba(23, 32, 51, .06);
    --sidebar: 268px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -8%, #e6e8ff 0%, transparent 62%),
        radial-gradient(700px 360px at -10% 105%, #e2f6ee 0%, transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
.lang-ur body, html.lang-ur body { font-family: 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', var(--font); line-height: 2; }
html.lang-ur .btn, html.lang-ur .nav-link, html.lang-ur .badge, html.lang-ur .input, html.lang-ur .select { line-height: 1.8; }
html.lang-ur h1, html.lang-ur h2, html.lang-ur h3 { line-height: 1.9; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
.num, .money, td.n, .stat .val { font-variant-numeric: tabular-nums; font-family: 'Inter', system-ui, sans-serif; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.right { text-align: end; }

/* ---------- layout ---------- */
.sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar);
    background: var(--surface); border-inline-end: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 20px 14px; z-index: 40;
}
.main { margin-inline-start: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: 14px; padding: 14px 28px;
    position: sticky; top: 0; z-index: 20;
    background: rgba(244, 246, 252, .82); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(231, 235, 244, .8);
}
.page-title { font-size: 20px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 24px 28px 32px; flex: 1; max-width: 1400px; width: 100%; margin-inline: auto; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.menu-btn { display: none; }

.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 22px; color: var(--ink); }
.brand-mark {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-size: 22px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #06b6d4); box-shadow: 0 8px 18px rgba(99, 102, 241, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; }
.brand-text small { color: var(--muted); font-size: 11.5px; }

.nav { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }
.nav-title { margin: 18px 12px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.nav-link {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
    color: #44506a; font-weight: 500; transition: .15s;
}
.nav-link i { font-size: 18px; color: #8a94ab; transition: .15s; }
.nav-link:hover { background: #f3f5fb; color: var(--ink); }
.nav-link.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.nav-link.active i { color: var(--brand); }

.sidebar-foot { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
}
.me-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.me-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: var(--muted); font-size: 12px; }

.lang-switch { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); }
.lang-switch a { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lang-switch a.on { background: var(--brand); color: #fff; }
html.lang-ur .lang-switch a { font-size: 12.5px; padding: 3px 12px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card, .grid + .card, .card + .grid, .grid + .grid { margin-top: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { font-size: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-head { padding: 18px 20px 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty i { font-size: 38px; color: #c3c9d9; display: block; margin-bottom: 8px; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: 1.6fr 1fr; }
.section-label { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-weight: 700; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.section-label:first-child { margin-top: 0; }
html.lang-ur .section-label { letter-spacing: 0; text-transform: none; font-size: 15px; }

/* stat cards */
.stat { display: flex; gap: 14px; align-items: center; padding: 18px; }
.stat .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .val { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.stat.sm .val { font-size: 19px; }
.stat.sm .ico { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
.c-brand { background: var(--brand-50); color: var(--brand); }
.c-rose { background: var(--rose-50); color: var(--rose); }
.c-green { background: var(--green-50); color: var(--green); }
.c-amber { background: var(--amber-50); color: var(--amber); }
.c-sky { background: var(--sky-50); color: var(--sky); }
.pos { color: #059669; }
.neg { color: #e11d48; }

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    padding: 10px 18px; border-radius: 12px; font: inherit; font-weight: 600; font-size: 14px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); transition: .15s; white-space: nowrap;
}
.btn:hover { background: #f6f7fc; color: var(--ink); }
.btn.primary { background: linear-gradient(135deg, #5b54f0, #4338ca); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(79, 70, 229, .28); }
.btn.primary:hover { filter: brightness(1.06); color: #fff; }
.btn.danger { color: #e11d48; border-color: #ffd5dc; background: #fff7f8; }
.btn.danger:hover { background: #ffe9ed; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-size: 13px; font-weight: 600; color: #44506a; }
.input, .select, textarea.input {
    width: 100%; padding: 10px 14px; border: 1px solid #dfe4f0; border-radius: 12px; background: #fff; color: var(--ink);
    font: inherit; outline: none; transition: .15s;
}
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
textarea.input { min-height: 84px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.hint { font-size: 12px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { min-width: 150px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 16px; background: #fafbfe; border-bottom: 1px solid var(--line); white-space: nowrap; }
html.lang-ur .table th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.table td { padding: 13px 16px; border-bottom: 1px solid #f0f2f8; vertical-align: middle; }
.table tbody tr:hover { background: #fafbff; }
.table tfoot td { font-weight: 700; background: #fafbfe; border-top: 2px solid var(--line); border-bottom: 0; }
.table td.n, .table th.n { text-align: end; }
.table .strong { font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green { background: var(--green-50); color: #047857; }
.badge.gray { background: #eef0f6; color: #5a6580; }
.badge.amber { background: var(--amber-50); color: #b45309; }
.badge.brand { background: var(--brand-50); color: var(--brand-600); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 8px; background: #f2f4fb; font-size: 12.5px; font-weight: 500; color: #44506a; }
.chip i { color: var(--brand); }
.chip b { font-family: 'Inter', sans-serif; direction: ltr; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; }

.bar { height: 8px; background: #eef0f7; border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 99px; }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pagination .pages { display: flex; gap: 6px; }
.pagination a, .pagination span.cur { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 13px; padding: 0 8px; }
.pagination span.cur { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- flash ---------- */
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; border: 1px solid; }
.flash.success { background: var(--green-50); color: #047857; border-color: #b7ecd8; }
.flash.error { background: var(--rose-50); color: #be123c; border-color: #ffd0d9; }
.flash.warning { background: var(--amber-50); color: #b45309; border-color: #fde3ad; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(23, 32, 51, .45); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100; backdrop-filter: blur(2px); }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(23, 32, 51, .3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 22px; display: grid; gap: 16px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #fafbfe; border-radius: 0 0 20px 20px; }

/* ---------- entry form ---------- */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.veh { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fcfcff; display: grid; gap: 10px; }
.veh-top { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.veh-top i { width: 36px; height: 36px; border-radius: 11px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 18px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; color: var(--brand); font-weight: 700; }
.stepper button:hover { background: var(--brand-50); }
.stepper input { flex: 1; min-width: 0; text-align: center; font-weight: 700; font-size: 16px; padding: 7px 4px; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.summary-bar .pill { flex: 1; min-width: 160px; border-radius: 14px; padding: 12px 16px; }
.pill .lbl { font-size: 12px; font-weight: 600; opacity: .8; }
.pill .val { font-size: 22px; font-weight: 800; font-family: 'Inter', sans-serif; direction: ltr; }
.money-input { position: relative; }
.money-input .cur { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-family: 'Inter', sans-serif; pointer-events: none; }
.money-input .input { padding-inline-start: 46px; font-weight: 600; direction: ltr; text-align: start; }
html.lang-ur .money-input .input { text-align: end; }

/* presets / segmented */
.seg { display: inline-flex; background: #eef0f8; border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: #5a6580; }
.seg a.on { background: #fff; color: var(--brand-600); box-shadow: 0 1px 4px rgba(23, 32, 51, .1); }
.chart-box { position: relative; height: 300px; }
.chart-box.sm { height: 260px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }

/* ---------- login ---------- */
body.login { min-height: 100vh; }
.login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.login-hero {
    position: relative; overflow: hidden; color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
    background: linear-gradient(135deg, #5b54f0 0%, #7c5cf4 50%, #0ea5e9 120%);
}
.login-hero::before, .login-hero::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.login-hero::before { width: 420px; height: 420px; inset-block-start: -140px; inset-inline-end: -120px; }
.login-hero::after { width: 300px; height: 300px; inset-block-end: -100px; inset-inline-start: -80px; }
.login-hero > * { position: relative; z-index: 1; }
.login-hero h2 { font-size: 36px; line-height: 1.25; max-width: 460px; }
html.lang-ur .login-hero h2 { line-height: 1.8; }
.login-hero p { max-width: 460px; opacity: .92; font-size: 16px; margin: 0; }
.login-hero ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.login-hero li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.login-hero li i { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.login-hero .brand { color: #fff; padding: 0; }
.login-hero .brand-text small { color: rgba(255, 255, 255, .8); }
.login-hero .brand-mark { background: rgba(255, 255, 255, .22); box-shadow: none; }
.login-form-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px; gap: 24px; }
.login-card { width: 100%; max-width: 410px; }
.login-card h1 { font-size: 28px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); margin-bottom: 26px; }
.login-card form { display: grid; gap: 16px; }
.login-card .btn.primary { padding: 13px; font-size: 15px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .g4 { grid-template-columns: repeat(2, 1fr); }
    .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: none; }
    [dir=rtl] .sidebar { transform: translateX(100%); }
    .sidebar-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(23, 32, 51, .25); }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(23, 32, 51, .4); z-index: 30; display: none; }
    .sidebar-open .sidebar-backdrop { display: block; }
    .main { margin-inline-start: 0; }
    .menu-btn { display: grid; }
    .topbar { padding: 12px 16px; }
    .content { padding: 18px 16px 28px; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-hero { display: none; }
}
@media (max-width: 640px) {
    .g2, .g3, .g4 { grid-template-columns: 1fr; }
    .lang-switch a { padding: 6px 9px; font-size: 12px; }
    .page-title { font-size: 17px; }
    .stat .val { font-size: 21px; }
    .filters .field { min-width: 46%; flex: 1; }
}

/* ---------- print ---------- */
@media print {
    body { background: #fff; font-size: 12px; }
    .sidebar, .topbar, .foot, .no-print, .filters, .btn, .menu-btn, .flash { display: none !important; }
    .main { margin: 0; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    .grid { gap: 10px; }
    .chart-box { height: 220px; }
    .print-only { display: block !important; }
}
.print-only { display: none; }

/* ---------- daily sheet (Excel-like grid) ---------- */
.sheet-wrap { overflow-x: auto; }
table.sheet { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
.sheet th {
    background: #f1f4fb; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5a6580; font-weight: 700;
    padding: 11px 10px; text-align: start; border-bottom: 1px solid #dfe4f0; border-inline-end: 1px solid #e7ebf4; white-space: nowrap;
}
html.lang-ur .sheet th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.sheet th.n { text-align: end; }
.sheet td { padding: 0; border-bottom: 1px solid #e9edf6; border-inline-end: 1px solid #e9edf6; background: #fff; vertical-align: middle; }
.sheet td.rn { width: 44px; text-align: center; background: #f8f9fd; color: #8a94ab; font-size: 12px; font-weight: 700; }
.sheet tr.grp td { border-top: 2px solid #c9d1e8; }
.sheet select, .sheet input {
    width: 100%; min-height: 46px; border: 0; background: transparent; padding: 10px 10px; font: inherit; color: var(--ink);
    outline: none; border-radius: 0; text-overflow: ellipsis;
}
.sheet td:focus-within { outline: 2px solid var(--brand); outline-offset: -2px; background: #f5f5ff; position: relative; z-index: 1; }
.sheet input.n-cell { text-align: end; direction: ltr; font-weight: 700; font-variant-numeric: tabular-nums; }
.sheet td.x { width: 44px; text-align: center; }
.sheet .x button { width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: #b0b8cc; font-size: 16px; cursor: pointer; }
.sheet .x button:hover { background: var(--rose-50); color: var(--rose); }
.sheet tfoot td { background: #f1f4fb; font-weight: 800; padding: 12px 10px; border-bottom: 0; }
.sheet td.ro { padding: 12px 10px; }
.sheet td.ro.n { text-align: end; font-variant-numeric: tabular-nums; direction: ltr; font-weight: 700; }
.sheet .empty-row td { padding: 26px; text-align: center; color: var(--muted); }
.sheet-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.date-nav { display: inline-flex; align-items: center; gap: 8px; }
.date-nav .input { width: auto; font-weight: 700; }
.sheet-actions {
    position: sticky; bottom: 0; z-index: 15; margin-top: 20px; padding: 12px 0; display: flex; gap: 10px; align-items: center;
    flex-wrap: wrap; background: linear-gradient(to top, rgba(244, 246, 252, .98) 70%, rgba(244, 246, 252, 0));
}
.sheet-actions .grow { flex: 1; }
.kbd { display: inline-block; padding: 1px 7px; border: 1px solid #d6dcec; border-bottom-width: 2px; border-radius: 6px; font: 600 12px 'Inter', sans-serif; background: #fff; }
.sheet input::placeholder { color: #c5cbdc; font-weight: 500; }
.sheet select:invalid, .sheet select option[value=""] { color: #8a94ab; }

/* ---------- simplified sheet: fixed area column + totals footer ---------- */
.sheet td.ac { padding: 0 14px; font-weight: 700; min-width: 180px; }
.sheet td.ac .al { display: block; min-height: 46px; line-height: 46px; }
.sheet tr.sub td.ac { background: #fbfcfe; }
.sheet td.x { width: 84px; white-space: nowrap; }
.sheet .x button.add { color: var(--brand); font-weight: 800; font-size: 18px; }
.sheet .x button.add:hover { background: var(--brand-50); color: var(--brand-600); }
.sheet tfoot td { font-weight: 700; padding: 12px 10px; }
.sheet tfoot td.n { text-align: end; direction: ltr; font-variant-numeric: tabular-nums; font-size: 16px; }
.sheet tfoot td.in { padding: 0; background: #fff; }
.sheet tfoot tr.t-total td { background: #eef0ff; color: var(--brand-600); border-top: 2px solid #c9d1e8; }
.sheet tfoot tr.t-exp td:first-of-type + td { background: #fff4f6; color: #be123c; }
.sheet tfoot tr.t-exp td:first-child { background: #fff4f6; }
.sheet tfoot tr.t-profit td { background: #e7f9f2; color: #047857; }
.sheet tfoot td { border-bottom: 1px solid #e9edf6; }

/* ---- Daily sheet: Excel-style (area | qty per vehicle type | collected) ---- */
.sheet th.rn-h, .sheet td.rn { position: sticky; inset-inline-start: 0; z-index: 2; width: 44px; min-width: 44px; }
.sheet th.ac-h, .sheet td.ac { position: sticky; inset-inline-start: 44px; z-index: 2; min-width: 170px; box-shadow: 2px 0 0 #e9edf6; }
html[dir="rtl"] .sheet th.ac-h, html[dir="rtl"] .sheet td.ac { box-shadow: -2px 0 0 #e9edf6; }
.sheet th.rn-h, .sheet th.ac-h { z-index: 3; }
.sheet tr.sub td.ac { background: #fbfcfe; }
.sheet th.qh { min-width: 110px; white-space: nowrap; }
.sheet th.amt-h { min-width: 140px; }
.sheet td.ac .al { white-space: nowrap; }
.sheet tfoot td:nth-child(1), .sheet tfoot td:nth-child(2) { position: sticky; z-index: 2; }
.sheet tfoot td:nth-child(1) { inset-inline-start: 0; }
.sheet tfoot td:nth-child(2) { inset-inline-start: 44px; }
.sheet tfoot tr.t-profit td:nth-child(2) { position: static; }
.sheet input.c-amt { font-size: 15px; }
@media (max-width: 640px) {
    .sheet-actions .pill { display: none; }
    .sheet-actions .btn { width: 100%; justify-content: center; }
}
