:root {
  --navy: #0d1b2e;
  --navy-2: #15253a;
  --blue: #0a75ad;
  --blue-soft: #e9f5fb;
  --orange: #f5a009;
  --orange-dark: #d98100;
  --ink: #172033;
  --muted: #687386;
  --line: #e3e8ef;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --success: #117a55;
  --success-bg: #e8f7f0;
  --warning: #b36300;
  --warning-bg: #fff3dc;
  --danger: #b42318;
  --danger-bg: #fff0ee;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(26, 39, 58, .07);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--canvas); font: 14px/1.5 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.eyebrow { margin: 0 0 4px; color: #8290a3; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 20; display: flex; height: 100vh; min-height: 0; flex-direction: column; overflow: hidden; padding: 24px 18px; color: #dce5ef; background: var(--navy); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; min-height: 58px; padding: 8px 9px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand img { width: 150px; height: auto; padding: 8px; border-radius: 10px; background: #fff; }
.brand span { display: none; }
.nav { display: grid; flex: 1 1 auto; min-height: 0; align-content: start; gap: 7px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 24px 6px 8px 0; scrollbar-color: rgba(174,186,202,.55) transparent; scrollbar-gutter: stable; scrollbar-width: thin; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(174,186,202,.42); }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(220,229,239,.65); }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; color: #aebaca; font-weight: 700; transition: .16s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: rgba(245,160,9,.17); box-shadow: inset 3px 0 0 var(--orange); }
.nav-icon { display: grid; width: 24px; height: 24px; place-items: center; color: var(--orange); font-size: 18px; }
.sidebar-profile { display: grid; flex: 0 0 auto; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-top: 8px; padding: 16px 5px 0; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-profile-info { min-width: 0; }
.sidebar-profile-info strong, .sidebar-profile-info > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile-info strong { color: #fff; font-size: 13px; }
.sidebar-profile-info > span { color: #8595a9; font-size: 11px; }
.sidebar-profile form { margin: 0; }
.sidebar-actions { display: flex; min-width: 0; align-items: center; gap: 2px; }
.avatar { display: inline-grid; width: 40px; height: 40px; place-items: center; flex: 0 0 auto; overflow: hidden; border: 2px solid rgba(255,255,255,.78); border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--blue), #075a89); box-shadow: 0 3px 10px rgba(10,25,42,.16); font-size: 12px; font-weight: 900; line-height: 1; letter-spacing: -.02em; text-align: center; vertical-align: middle; }
.avatar-small { width: 34px; height: 34px; border-width: 1px; font-size: 10px; }
.avatar-tone-0 { background: linear-gradient(145deg, #0b7caf, #07577e); }
.avatar-tone-1 { background: linear-gradient(145deg, #6475c8, #4654a0); }
.avatar-tone-2 { background: linear-gradient(145deg, #16856a, #0d634e); }
.avatar-tone-3 { background: linear-gradient(145deg, #bd6c20, #914a0b); }
.avatar-tone-4 { background: linear-gradient(145deg, #a85485, #7f3864); }
.avatar-tone-5 { background: linear-gradient(145deg, #526b84, #34495e); }
.icon-button { display: inline-grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 9px; color: inherit; background: transparent; cursor: pointer; font-size: 19px; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.icon-button svg { width: 18px; height: 18px; fill: currentColor; }

.main-area { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 78px; align-items: center; gap: 16px; padding: 14px clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar h1 { margin: 0; font-size: 20px; line-height: 1.15; }
.topbar .live-pill { margin-left: auto; }
.menu-button { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 30px clamp(20px, 3vw, 42px) 48px; }
.footer { padding: 24px 36px; color: #919bab; text-align: center; font-size: 12px; }

.alert { margin: 0 0 20px; padding: 13px 16px; border: 1px solid; border-radius: 12px; font-weight: 650; }
.alert-success { border-color: #b9e5d2; color: #0c6746; background: var(--success-bg); }
.alert-error { border-color: #f2c0bb; color: #9c271c; background: var(--danger-bg); }
.hero-panel { display: flex; min-height: 180px; align-items: end; justify-content: space-between; gap: 24px; overflow: hidden; padding: 32px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 82% -40%, rgba(16,142,205,.7), transparent 48%), linear-gradient(135deg, #0d1b2e, #142b47); box-shadow: var(--shadow); }
.hero-panel .eyebrow { color: #8dd3f1; }
.hero-panel h2 { max-width: 620px; margin: 4px 0 6px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.hero-panel p:last-child { max-width: 640px; margin: 0; color: #b9c8d8; font-size: 15px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; cursor: pointer; font-weight: 800; transition: .15s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(22,33,50,.08); }
.button-primary { border-color: var(--orange); color: #1f2836; background: var(--orange); }
.button-primary:hover { background: #ffae1b; }
.button-secondary { border-color: #bed6e3; color: #075f8d; background: #f5fbfe; }
.button-danger { border-color: #e6aba5; color: #9f2318; background: #fff4f2; }
.button-danger:hover { border-color: #d7857d; background: #ffe9e5; }
.button-light { flex: 0 0 auto; border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.11); }
.button-full { width: 100%; }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.text-link, .row-link { color: #0873a9; font-weight: 800; }
.row-link { display: inline-flex; min-height: 32px; align-items: center; padding: 4px 7px; border: 0; background: transparent; cursor: pointer; }
.row-link:hover, .text-link:hover { color: #00537f; text-decoration: underline; }
.row-link.danger { color: var(--danger); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.metric { position: relative; overflow: hidden; min-height: 136px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metric::after { position: absolute; right: -18px; bottom: -30px; width: 82px; height: 82px; border-radius: 50%; background: #f4f8fb; content: ""; }
.metric-accent { color: #fff; border-color: #0874aa; background: linear-gradient(145deg, #0878b1, #075985); }
.metric-accent::after { background: rgba(255,255,255,.08); }
.metric-label, .metric small { display: block; color: var(--muted); }
.metric-accent .metric-label, .metric-accent small { color: #c3e7f7; }
.metric-label { font-size: 12px; font-weight: 750; }
.metric strong { position: relative; z-index: 1; display: block; margin: 8px 0 3px; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.1; }
.metric small { font-size: 11px; }
.text-warning { color: var(--warning) !important; }

.dashboard-grid, .detail-grid, .settings-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr); gap: 18px; align-items: start; }
.settings-grid { grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); }
.vehicle-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.subsection-heading { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.master-list-panel { overflow: hidden; }
.master-list-panel table { min-width: 720px; }
.personal-master-panel table { min-width: 940px; }
.parking-limit-panel .compact-setting-form { display: flex; align-items: flex-start; gap: 18px; padding: 0 24px 24px; }
.parking-limit-panel .compact-setting-form .field { width: min(460px, 100%); margin: 0; }
.parking-limit-panel .compact-setting-form .button { min-height: 44px; flex: 0 0 auto; margin-top: 24px; }
.rate-history-panel { overflow: hidden; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; }
.panel-heading h2 { margin: 0; font-size: 18px; }
.side-panel { padding-bottom: 22px; }
.setting-badge { padding: 5px 9px; border-radius: 999px; color: #0873a9; background: var(--blue-soft); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.rate-display { margin: 4px 24px 16px; padding: 22px; border-radius: 14px; background: #f4f7fa; }
.rate-display span, .rate-display small { display: block; color: var(--muted); }
.rate-display strong { display: block; margin: 5px 0; color: var(--blue); font-size: 32px; }
.dashboard-rate-grid { display: grid; gap: 0; }
.dashboard-rate-grid .rate-display { margin-bottom: 10px; }
.summary-list { margin: 0 24px 20px; }
.summary-list div { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; font-weight: 700; }
.side-panel > .button { margin: 0 24px; width: calc(100% - 48px); }

.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 16px; color: #7a8698; background: #f7f9fb; text-align: left; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
td { padding: 15px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: #fbfcfd; }
.primary-cell strong, .primary-cell > span, .person-cell strong, .person-cell > div span, .cell-sub { display: block; }
.primary-cell > span, .person-cell > div span, .cell-sub { color: var(--muted); font-size: 11px; }
.device-app-cell { min-width: 190px; }
.device-app-cell > strong { display: block; margin-bottom: 3px; }
.device-update-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 5px 0 3px; }
.device-update-line .cell-sub { display: inline-block; }
.person-cell { display: flex; min-width: 160px; align-items: center; gap: 10px; }
.align-right { text-align: right; }
.amount { font-weight: 850; white-space: nowrap; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.status::before { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-success { color: var(--success); background: var(--success-bg); }
.status-warning { color: var(--warning); background: var(--warning-bg); }
.status-muted { color: #697386; background: #eef1f5; }
.workflow-pending { color: #9a5a00; background: #fff2d8; }
.workflow-approved { color: #075f8d; background: #e8f5fb; }
.workflow-declined { color: #a2261b; background: #fff0ee; }
.workflow-voided { color: #5f6673; background: #e9edf2; }
.workflow-reimbursed { color: #0d704d; background: #e6f7ee; }
.empty-state { padding: 60px 24px; color: var(--muted); text-align: center; }
.empty-state.compact { padding: 28px 20px; }
.empty-state > span { display: block; color: #b2bdca; font-size: 34px; }
.empty-state h3 { margin: 10px 0 4px; color: var(--ink); }
.empty-state p { max-width: 420px; margin: 0 auto; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 4px; font-size: 27px; }
.page-heading p:last-child { margin: 0; color: var(--muted); }
.heading-actions { display: flex; gap: 9px; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(130px, .7fr)) minmax(180px, 1.2fr) auto; gap: 10px; align-items: end; margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.filter-bar label span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.filter-bar input, .filter-bar select { width: 100%; height: 40px; padding: 8px 10px; border: 1px solid #d7dee7; border-radius: 9px; color: var(--ink); background: #fff; }
.report-filter-bar { grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; }
.user-category-filter { grid-template-columns: minmax(220px, 300px) minmax(280px, 1fr) auto auto; justify-content: start; }
.users-category-panel { margin-top: 20px; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.report-summary div { padding: 14px 18px; border-right: 1px solid var(--line); }
.report-summary div:last-child { border-right: 0; }
.report-summary span, .report-summary strong { display: block; }
.report-summary span { color: var(--muted); font-size: 11px; }
.report-summary strong { margin-top: 2px; font-size: 19px; }
.store-summary { grid-template-columns: repeat(4, 1fr); }
.store-summary .summary-date { font-size: 15px; }
.store-sync-heading-actions { align-items: center; }
.store-sync-heading-actions form { margin: 0; }
.store-sync-heading-actions .button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.store-sync-request-panel { margin-bottom: 14px; }
.store-sync-request-body { padding: 0 24px 22px; }
.store-sync-request-body > p { margin: 0; color: var(--muted); }
.store-sync-request-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.store-sync-request-grid div { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.store-sync-request-grid span, .store-sync-request-grid strong { display: block; }
.store-sync-request-grid span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.store-sync-request-grid strong { margin-top: 4px; font-size: 13px; }
.store-sync-request-note { margin-top: 14px !important; padding: 11px 13px; border-radius: 10px; background: var(--blue-soft); color: #075f8d !important; }
.store-sync-request-note.success-note { background: var(--success-bg); color: var(--success) !important; }
.store-sync-request-note.error-note { background: #fef2f2; color: #991b1b !important; }
.catalog-search { display: flex; gap: 10px; align-items: end; padding: 0 20px 18px; }
.catalog-search .field { flex: 1 1 360px; margin: 0; }
.catalog-search .button { flex: 0 0 auto; }
.manual-store-note { margin: -6px 0 18px; padding: 12px 14px; border-radius: 10px; color: #536174; background: #f2f6f9; font-size: 12px; line-height: 1.5; }
.records-panel { overflow: visible; }
.datatable-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 20px 16px; }
.datatable-toolbar label { color: var(--muted); font-size: 12px; }
.datatable-length, .datatable-search { display: inline-flex; align-items: center; gap: 8px; }
.datatable-length select, .datatable-search input { height: 38px; border: 1px solid #d7dee7; border-radius: 9px; color: var(--ink); background: #fff; }
.datatable-length select { min-width: 72px; padding: 7px 28px 7px 10px; }
.datatable-search { margin-left: auto; }
.datatable-search input { width: min(300px, 38vw); padding: 8px 11px; }
.datatable-length select:focus, .datatable-search input:focus { outline: 0; border-color: #4ba4cf; box-shadow: 0 0 0 3px rgba(25,134,187,.12); }
.datatable-clear { color: #0873a9; font-size: 11px; font-weight: 800; }
.datatable-filter-note { margin-left: auto; color: var(--muted); font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.pagination div { display: flex; gap: 8px; }
.datatable-page-buttons { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.datatable-pagination .pagination-number { min-width: 34px; padding-right: 9px; padding-left: 9px; }
.datatable-pagination .is-current { border-color: #0c79ae; color: #fff; background: #0c79ae; pointer-events: none; }
.datatable-pagination .is-disabled { opacity: .45; pointer-events: none; }
.pagination-ellipsis { align-self: center; padding: 0 2px; }

.back-link { display: inline-flex; margin-bottom: 16px; color: #0873a9; font-weight: 800; }
.visit-hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 28px; border-radius: 20px; color: #fff; background: linear-gradient(130deg, #0e1d31, #173453); }
.visit-hero h2 { margin: 2px 0; font-size: 30px; }
.visit-hero p:last-child { margin: 0; color: #b9c8d8; }
.visit-total { text-align: right; }
.visit-total > span:first-child, .visit-total strong { display: block; }
.visit-total > span:first-child { color: #aebed0; font-size: 11px; }
.visit-total > strong { margin: 2px 0 8px; font-size: 29px; }
.verification-total-block { min-width: 255px; }
.verification-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; margin-bottom: 4px; }
.verification-total-line span { color: #aebed0; font-size: 11px; }
.verification-total-line strong { font-size: 15px; }
.verification-total-excluded strong { color: #ffb1a8; }
.verification-total-net { margin-top: 7px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); }
.verification-total-net strong { color: #fff; font-size: 25px; }
.visit-status-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.expense-list { display: grid; gap: 12px; padding: 0 22px 22px; }
.expense-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.expense-card.verification-item-excluded, .allowance-item.verification-item-excluded { border-color: #efb7b0; background: #fff5f3; }
.expense-main, .expense-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.expense-main { flex-wrap: wrap; justify-content: flex-start; }
.expense-main > div { flex: 1 1 220px; min-width: 0; }
.expense-main p { margin: 2px 0; color: var(--muted); }
.expense-main small { color: #8290a2; }
.expense-main .expense-added-at { flex: 0 0 auto; margin-left: auto; text-align: right; white-space: nowrap; }
.vehicle-icon { display: grid; width: 45px; height: 45px; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #0873a9; background: var(--blue-soft); font-size: 9px; font-weight: 900; }
.expense-meta { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); }
.expense-meta strong { color: var(--ink); font-size: 16px; }
.admin-correction-summary { display: flex; margin-top: 12px; padding: 12px 14px; border: 1px solid #8ed8c0; border-radius: 11px; background: #ecfdf5; }
.admin-correction-summary > div { display: grid; gap: 3px; }
.admin-correction-summary strong { color: #087a5b; font-size: 13px; }
.admin-correction-summary span { color: #315c51; font-size: 12px; line-height: 1.45; }
.admin-correction-summary small { margin-top: 2px; color: #55756c; }
.admin-correction-form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-correction-form summary { color: #0873a9; cursor: pointer; font-size: 12px; font-weight: 900; }
.admin-correction-fields { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; padding: 14px; border-radius: 11px; background: #f3f8fb; }
.admin-correction-fields label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 800; }
.admin-correction-fields label small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.admin-correction-fields input, .admin-correction-fields textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; background: #fff; color: var(--ink); font: inherit; }
.admin-correction-fields textarea { resize: vertical; }
.admin-correction-fields .admin-correction-reason, .admin-correction-fields .form-help { grid-column: 1 / -1; }
.admin-correction-fields .form-help { margin: 0; color: var(--muted); font-size: 11px; }
.admin-correction-fields .button { justify-self: start; }
.allowance-correction-form { scroll-margin-top: 84px; }
@media (max-width: 640px) { .admin-correction-fields { grid-template-columns: 1fr; } }
.photo-strip, .store-photos { display: flex; gap: 9px; margin-top: 12px; }
.photo-strip a, .store-photos a { position: relative; overflow: hidden; width: 88px; border-radius: 9px; background: #e9edf2; }
.photo-strip img, .store-photos img { width: 88px; height: 70px; object-fit: cover; }
.photo-strip span, .store-photos span { display: block; padding: 5px; color: var(--muted); background: #fff; text-align: center; font-size: 9px; font-weight: 800; }
.store-photos { margin: 0 24px 18px; }
.store-photos a { width: calc(50% - 5px); }
.store-photos img { width: 100%; height: 130px; }
.allowance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 22px 22px; }
.allowance-row.verification-allowance-row-editable { grid-template-columns: 1fr; }
.allowance-row > div { padding: 14px 16px; border: 1px solid transparent; border-radius: 11px; background: #f4f7fa; }
.allowance-value { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.allowance-label-group { display: flex; min-width: 0; align-items: center; gap: 12px; }
.allowance-label-group > span:last-child { min-width: 0; }
.allowance-icon { width: 45px; height: 45px; }
.allowance-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.allowance-icon-parking { font-size: 17px; line-height: 1; }
.allowance-value > strong { flex: 0 0 auto; font-size: 16px; }

/* Verification editor: corrected horizontal layout used on page=visit. */
.verification-item-control,
.verification-item-control.compact {
  display: grid;
  grid-template-columns: 82px 104px minmax(220px, .88fr) minmax(280px, 1.2fr);
  gap: 0;
  align-items: stretch;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.verification-section-label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  padding: 10px 12px 0 0;
  border-right: 1px solid #edf1f5;
}
.verification-section-label strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}
.verification-choice {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 0 12px;
  border-right: 1px solid #edf1f5;
}
.verification-choice label {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid #d5dde7;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.verification-choice input { width: auto; margin: 0; accent-color: #0b78ac; }
.verification-amount-adjust {
  display: block;
  min-width: 0;
  padding: 0 14px;
}
.verification-amount-adjust > span,
.verification-remarks > span {
  display: flex;
  min-height: 17px;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  color: #455267;
  font-size: 10px;
  font-weight: 850;
}
.verification-amount-adjust em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.verification-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d2dae4;
  border-radius: 10px;
  background: #fff;
}
.verification-money-input > span { padding: 0 0 0 11px; color: #657287; font-size: 12px; font-weight: 850; }
.verification-money-input input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 10px 11px 10px 6px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  outline: none;
}
.verification-money-input:focus-within { border-color: #4ba4cf; box-shadow: 0 0 0 3px rgba(25,134,187,.12); }
.verification-money-input input:disabled { color: #8c97a6; background: #f1f3f5; cursor: not-allowed; }
.verification-amount-adjust small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.verification-item-adjusted { border-color: #e6c46c; box-shadow: inset 3px 0 0 #d9a62e; }
.verification-remarks {
  display: block;
  min-width: 0;
  padding-left: 14px;
}
.verification-remarks em { color: #a2261b; font-style: normal; font-weight: 750; white-space: nowrap; }
.verification-remarks textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #d2dae4;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.verification-remarks textarea::placeholder { color: #8290a2; opacity: 1; }
.verification-remarks textarea:focus { border-color: #4ba4cf; box-shadow: 0 0 0 3px rgba(25,134,187,.12); }
.verification-result { display: grid; gap: 4px; margin-top: 14px; padding: 11px 12px; border-radius: 10px; font-size: 11px; }
.verification-result-included { color: #075f47; background: #e8f7ef; }
.verification-result-excluded { color: #92251d; background: #fdebe8; }
.verification-result span { color: inherit; }
.verification-result .verification-amount-audit { font-weight: 850; }
.verification-result small { opacity: .78; }
.timeline { margin: 0 24px 18px; }
.timeline-item { display: grid; grid-template-columns: 12px 1fr; gap: 1px 11px; padding: 10px 0; }
.timeline-item i { grid-row: span 2; width: 10px; height: 10px; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px currentColor; }
.dot-in { color: var(--success); background: var(--success); }
.dot-out { color: var(--orange-dark); background: var(--orange-dark); }
.timeline-item span { color: var(--muted); font-size: 11px; }

.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.row-actions form { margin: 0; }
.dialog { width: min(590px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 18px; background: transparent; box-shadow: 0 20px 70px rgba(9,22,38,.28); }
.dialog::backdrop { background: rgba(8,19,33,.62); backdrop-filter: blur(3px); }
.dialog-card { padding: 25px; border-radius: 18px; background: #fff; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0; }
.dialog-heading .icon-button { color: var(--muted); background: #f2f4f7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: block; margin-bottom: 16px; }
.field-span { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 6px; color: #4b5668; font-size: 12px; font-weight: 800; }
label:has(input[required], select[required], textarea[required]) > span:first-child::after {
  color: #dc2626;
  content: " *";
  font-weight: 950;
}
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d2dae4; border-radius: 10px; color: var(--ink); background: #fff; outline: none; }
.field textarea { min-height: 94px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: #4ba4cf; box-shadow: 0 0 0 3px rgba(25,134,187,.12); }
.field small { display: block; margin-top: 5px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.password-dialog { width: min(470px, calc(100% - 28px)); }
.password-dialog-note { margin: -7px 0 20px; padding: 11px 13px; border-radius: 10px; color: #536174; background: #f2f6f9; font-size: 11px; }

.workflow-flow-label { display: inline-flex; padding: 8px 12px; border: 1px solid #c9e0ea; border-radius: 999px; color: #075f8d; background: #f4fbfe; font-size: 11px; font-weight: 850; white-space: nowrap; }
.workflow-filter-bar { grid-template-columns: repeat(4, minmax(140px, .8fr)) minmax(210px, 1.2fr) auto; }
.workflow-detail-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; margin-top: 18px; }
.workflow-action-panel, .workflow-history-panel { overflow: hidden; }
.workflow-form { padding: 0 24px 24px; }
.verification-review-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.verification-review-summary > div { padding: 12px; border-radius: 10px; background: #f3f6f9; }
.verification-review-summary span, .verification-review-summary strong { display: block; }
.verification-review-summary span { color: var(--muted); font-size: 10px; }
.verification-review-summary strong { margin-top: 3px; font-size: 16px; }
.verification-review-summary > div:nth-child(2) strong { color: #a2261b; }
.verification-review-summary > div:last-child { color: #075f47; background: #e8f7ef; }
.verification-help { margin: -7px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.workflow-buttons { display: flex; justify-content: flex-end; gap: 9px; }
.workflow-message { margin: 0 24px 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.workflow-message-declined { border-color: #f1c2bd; background: #fff5f3; }
.workflow-message strong { display: block; }
.workflow-message p { margin: 7px 0 0; color: #586477; }
.workflow-history-list { padding: 0 22px 20px; }
.workflow-history-list article { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 11px; padding: 15px 0; border-top: 1px solid var(--line); }
.workflow-history-dot { width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; box-shadow: 0 0 0 3px currentColor; }
.workflow-history-list p { margin: 2px 0; color: var(--muted); font-size: 11px; }
.workflow-history-list small { display: block; margin-top: 5px; color: #4f5b6c; }
.workflow-history-meta { min-width: 150px; text-align: right; }
.workflow-history-meta strong, .workflow-history-meta span { display: block; }
.workflow-history-meta span { color: var(--muted); font-size: 10px; }

.rate-panel { padding-bottom: 24px; }
.rate-panel form { padding: 0 24px; }
.vehicle-rate-editor { margin-bottom: 18px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #f9fbfd; }
.vehicle-rate-heading { margin-bottom: 14px; }
.vehicle-rate-heading strong, .vehicle-rate-heading span { display: block; }
.vehicle-rate-heading strong { color: var(--ink); font-size: 17px; }
.vehicle-rate-heading span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.rate-preview { margin-bottom: 18px; padding: 20px; border-radius: 14px; color: #fff; background: linear-gradient(140deg, #0b6f9f, #084b73); text-align: center; }
.vehicle-rate-editor .rate-preview { margin-bottom: 0; }
.rate-preview-car { background: linear-gradient(140deg, #7c4a05, #b86c05); }
.rate-preview span, .rate-preview small, .rate-preview strong { display: block; }
.rate-preview span, .rate-preview small { color: #c3e6f5; }
.rate-preview strong { margin: 5px 0; font-size: 34px; }
.history-list { padding: 0 22px 18px; }
.history-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.history-list article:last-child { border-bottom: 0; }
.history-list strong, .history-list span { display: block; }
.history-list span { color: var(--muted); font-size: 11px; }
.history-list article > div:last-child { text-align: right; }

.app-release-grid { grid-template-columns: minmax(420px, 1.12fr) minmax(340px, .88fr); }
.release-panel { padding-bottom: 24px; }
.release-panel form { padding: 0 24px; }
.release-guidance { margin-bottom: 18px; padding: 15px 16px; border: 1px solid #cce3ef; border-radius: 12px; color: #315268; background: #f1f9fc; }
.release-guidance strong, .release-guidance p { display: block; }
.release-guidance p { margin: 6px 0 0; font-size: 11px; line-height: 1.65; }
.release-required-check { display: flex; align-items: flex-start; gap: 11px; margin: 2px 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfd; cursor: pointer; }
.release-required-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange-dark); }
.release-required-check span, .release-required-check strong, .release-required-check small { display: block; }
.release-required-check small { margin-top: 3px; color: var(--muted); }
.release-summary { margin: 0 24px 18px; }
.release-version-line { margin: 0 24px 8px; }
.release-notes { margin: 0 24px 18px; padding: 15px; border-radius: 11px; background: #f5f7fa; }
.release-notes strong { display: block; margin-bottom: 5px; }
.release-notes p { margin: 0; color: #536174; font-size: 11px; line-height: 1.6; }
.release-panel + .panel > .button-full { width: calc(100% - 48px); margin: 0 24px 20px; }
.release-history-heading { margin: 8px 24px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.release-history { padding-bottom: 18px; }
.release-history article { align-items: flex-start; }

.frequency-filter-bar { grid-template-columns: repeat(3, minmax(140px, .75fr)) minmax(210px, 1.25fr) auto; }
.frequency-chart-panel { margin-bottom: 18px; overflow: hidden; }
.chart-heading { align-items: end; }
.chart-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.chart-type-field { flex: 0 0 180px; }
.chart-type-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.chart-type-field select { width: 100%; height: 40px; padding: 8px 10px; border: 1px solid #d7dee7; border-radius: 9px; color: var(--ink); background: #fff; }
.visit-frequency-chart { position: relative; width: 100%; height: 450px; min-height: 360px; padding: 0 14px 8px; transition: height .16s ease; }
.visit-frequency-chart canvas { display: block; max-width: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 28px; color: var(--muted); background: #fff; text-align: center; }
.chart-empty[hidden] { display: none; }
.chart-empty > span { color: #a8b4c1; font-size: 42px; }
.chart-empty h3 { margin: 8px 0 4px; color: var(--ink); }
.chart-empty p { margin: 0; }
.chart-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 7px 15px; padding: 0 24px 22px; }
.chart-legend[hidden] { display: none; }
.chart-legend span { display: flex; min-width: 0; align-items: center; gap: 8px; color: #4f5b6c; font-size: 10px; }
.chart-legend i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 3px; }
.chart-legend b { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.frequency-table-panel { margin-bottom: 18px; }
.visit-count-badge { display: inline-flex; min-width: 34px; justify-content: center; padding: 5px 9px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 12px; }

.map-filter-bar { grid-template-columns: repeat(4, minmax(135px, 1fr)) auto; }
.map-summary { grid-template-columns: repeat(3, 1fr); }
.route-map-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .62fr); gap: 18px; align-items: start; }
.route-map-panel .panel-heading { min-height: 78px; }
.route-map-wrap { position: relative; min-height: 570px; background: #dfe7e8; }
.route-map { z-index: 0; width: 100%; height: min(68vh, 720px); min-height: 570px; font-family: inherit; }
.map-empty { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; padding: 28px; color: var(--muted); background: #f7f9fb; text-align: center; }
.map-empty[hidden] { display: none; }
.map-empty > span { color: #a8b4c1; font-size: 46px; }
.map-empty h3 { margin: 8px 0 4px; color: var(--ink); }
.map-empty p { max-width: 430px; margin: 0 auto; }
.map-script-error { padding: 18px; color: #9c271c; background: var(--danger-bg); text-align: center; }
.map-legend { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: 10px; font-weight: 800; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #b9c3cf; }
.legend-start { background: var(--success); }
.legend-stop { background: var(--blue); }
.legend-end { background: var(--orange-dark); }
.route-list-panel { position: sticky; top: 96px; }
.route-list { display: grid; max-height: calc(100vh - 190px); overflow: auto; padding: 0 14px 16px; }
.route-card { display: grid; grid-template-columns: 10px minmax(0, 1fr) 20px; gap: 10px; align-items: center; width: 100%; padding: 13px 10px; border: 0; border-top: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.route-card:hover { border-radius: 10px; background: #f6f9fb; }
.route-card-color { width: 8px; height: 38px; border-radius: 999px; }
.route-card-main, .route-card-main strong, .route-card-main span, .route-card-main small { display: block; min-width: 0; }
.route-card-main strong, .route-card-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-card-main span { color: #4f5b6c; font-size: 11px; }
.route-card-main small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.route-card-arrow { color: var(--blue); font-size: 17px; font-weight: 900; }
.route-list-empty { padding: 30px 14px; color: var(--muted); text-align: center; }
.route-pin-shell, .route-arrow-shell { border: 0; background: transparent; }
.route-pin { --pin-color: var(--route-color); position: relative; display: grid; width: 32px; height: 32px; place-items: center; border: 3px solid #fff; border-radius: 50% 50% 50% 8px; color: #fff; background: var(--pin-color); box-shadow: 0 3px 10px rgba(9, 24, 41, .35); transform: rotate(-45deg); font-size: 11px; font-weight: 900; }
.route-pin.is-first { --pin-color: var(--success); }
.route-pin.is-last { --pin-color: var(--orange-dark); }
.route-pin b { transform: rotate(45deg); font: inherit; }
.route-arrow-shell span { display: block; width: 24px; height: 24px; transform-origin: center; filter: drop-shadow(0 1px 1px rgba(255,255,255,.95)); font-size: 22px; font-weight: 900; line-height: 24px; text-align: center; }
.map-popup { min-width: 235px; color: var(--ink); font: 12px/1.4 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.map-popup-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.map-popup-heading > span { display: grid; width: 28px; height: 28px; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; font-weight: 900; }
.map-popup-heading strong, .map-popup-heading small { display: block; }
.map-popup-heading small { color: var(--muted); font-size: 10px; }
.map-popup dl { margin: 0; }
.map-popup dl div { display: grid; grid-template-columns: 60px 1fr; gap: 8px; padding: 3px 0; }
.map-popup dt { color: var(--muted); }
.map-popup dd { margin: 0; font-weight: 750; }
.map-popup-route, .map-popup-address { margin-top: 8px; padding: 8px; border-radius: 8px; background: #f3f6f9; }
.map-popup-route span { color: var(--orange-dark); font-weight: 900; }
.map-popup-address { color: #566274; font-size: 10px; }
.map-popup-meta { margin-top: 6px; color: var(--muted); font-size: 9px; }
.map-popup-photo { display: grid; grid-template-columns: 72px 1fr; gap: 9px; align-items: center; margin-top: 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); font-weight: 850; }
.map-popup-photo img { width: 72px; height: 54px; object-fit: cover; }
.map-popup-link { display: inline-flex; margin-top: 10px; color: var(--blue); font-weight: 850; }
.route-map .leaflet-popup-content { margin: 13px 15px; }
.route-map .leaflet-control-attribution { font-size: 9px; }

.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; color: var(--success); background: var(--success-bg); font-size: 10px; font-weight: 850; white-space: nowrap; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(17,122,85,.12); }

.required-mark { color: var(--danger); font-size: 13px; line-height: 1; }
[data-test-account-wrap][hidden] { display: none; }
.danger-badge { color: var(--danger); background: var(--danger-bg); }
.cleanup-guidance { margin-bottom: 18px; overflow: hidden; }
.cleanup-safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.cleanup-safety-grid > div { min-height: 118px; padding: 20px; background: #fff; }
.cleanup-safety-grid strong, .cleanup-safety-grid span { display: block; }
.cleanup-safety-grid strong { margin-bottom: 6px; color: var(--navy); }
.cleanup-safety-grid span { color: var(--muted); font-size: 11px; line-height: 1.6; }
.cleanup-filter-bar { grid-template-columns: repeat(2, minmax(145px, .7fr)) minmax(260px, 1.4fr) auto; }
.cleanup-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cleanup-preview-panel { margin-bottom: 18px; }
.cleanup-confirm-form { margin: 0 24px 24px; padding: 22px; border: 1px solid #efb3ad; border-radius: 14px; background: #fff8f7; }
.cleanup-confirm-heading h3 { margin: 0 0 5px; font-size: 18px; }
.cleanup-confirm-heading p:last-child { margin: 0 0 18px; color: var(--muted); }
.cleanup-confirm-form .form-grid { margin-bottom: 17px; }
.cleanup-confirm-form .button-danger { min-width: 240px; }
.cleanup-history-panel { overflow: hidden; }
.cleanup-history-panel table { min-width: 1040px; }
.cleanup-reason { display: block; max-width: 330px; white-space: normal; }
.cleanup-actions { min-width: 118px; }
.cleanup-actions form { margin: 0; }
.cleanup-action-stack { display: flex; min-width: 190px; flex-direction: column; align-items: flex-start; gap: 8px; }
.cleanup-action-details { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.cleanup-action-details summary { padding: 8px 10px; color: var(--blue); font-size: 11px; font-weight: 800; cursor: pointer; list-style-position: inside; }
.cleanup-action-details.danger summary { color: var(--danger); }
.cleanup-inline-form { display: grid; gap: 9px; padding: 0 10px 10px; }
.cleanup-inline-form label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.cleanup-inline-form input { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.cleanup-inline-form .button { width: 100%; }

.login-body { min-height: 100vh; color: #fff; background: radial-gradient(circle at 18% 15%, rgba(13,129,184,.4), transparent 33%), linear-gradient(135deg, #0b1728 0%, #112740 100%); }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 70px; align-items: center; width: min(1120px, calc(100% - 40px)); margin: auto; padding: 50px 0; }
.login-brand { display: grid; gap: 34px; }
.login-brand img { width: 360px; padding: 18px; border-radius: 16px; background: #fff; }
.login-brand .eyebrow { color: #78c7ea; }
.login-brand h1 { margin: 0 0 12px; font-size: clamp(40px, 6vw, 68px); line-height: .98; }
.login-brand p:last-child { max-width: 570px; margin: 0; color: #b7c7d9; font-size: 17px; }
.login-card { padding: 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.login-card-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.login-card-heading h2 { margin: 0; font-size: 27px; }
.brand-mark { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #0b82b9, #075884); font-size: 22px; font-weight: 900; }
.login-card .alert { margin-bottom: 17px; }
.login-card .field { margin-bottom: 15px; }
.form-note { margin: 17px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

.sidebar-overlay { display: none; }


/* Verification employee review queue (v1.15.1) */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.verification-filter-bar { grid-template-columns: repeat(5, minmax(145px, 1fr)) auto auto; }
.verification-filter-reset { align-self: end; min-height: 42px; color: var(--muted); font-size: 11px; font-weight: 800; }
.verification-period-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -2px 0 16px; padding: 10px 14px; border: 1px solid #d8e1ec; border-radius: 12px; background: #f8fafc; }
.verification-period-summary strong { color: var(--navy); font-size: 13px; }
.verification-period-summary span { color: var(--muted); font-size: 12px; }
.verification-employee-queue-panel { overflow: visible; }
.verification-employee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 14px; padding: 0 20px 22px; }
.verification-employee-card { display: grid; gap: 15px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 15px rgba(25,39,59,.04); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.verification-employee-card:hover { border-color: #b9d5e3; box-shadow: 0 9px 24px rgba(25,39,59,.08); transform: translateY(-1px); }
.verification-employee-card-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.verification-employee-card-heading > div { min-width: 0; }
.verification-employee-card-heading > div > strong, .verification-employee-card-heading > div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verification-employee-card-heading > div > strong { font-size: 14px; }
.verification-employee-card-heading > div > span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.verification-employee-card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verification-employee-card-metrics > div { min-width: 0; padding: 10px 11px; border-radius: 10px; background: #f6f8fa; }
.verification-employee-card-metrics span, .verification-employee-card-metrics strong { display: block; }
.verification-employee-card-metrics span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.verification-employee-card-metrics strong { margin-top: 3px; overflow-wrap: anywhere; font-size: 14px; }
.verification-card-open { color: #0873a9; font-size: 11px; font-weight: 850; }
.verification-employee-review-heading { display: grid; gap: 12px; margin-bottom: 14px; }
.verification-employee-title { display: flex; align-items: center; gap: 12px; }
.verification-employee-title h2, .verification-employee-title p { margin: 0; }
.verification-employee-title h2 { font-size: 23px; }
.verification-employee-title p:last-child { color: var(--muted); font-size: 11px; }
.verification-progress-summary { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.verification-progress-summary > div { min-width: 0; }
.verification-progress-card strong { font-size: 14px; }
.verification-progress-track { box-sizing: border-box; height: 8px; margin-top: 7px; padding: 0 !important; overflow: hidden; border: 0 !important; border-radius: 999px; background: #e5ebf0; }
.verification-progress-track i { display: block; width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: var(--success); transition: width .25s ease; }
.verification-batch-bar { position: sticky; top: 88px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 0; padding: 13px 15px; border: 1px solid #b9e1ce; border-radius: 13px; background: rgba(241,250,246,.97); box-shadow: 0 5px 20px rgba(25,39,59,.06); backdrop-filter: blur(9px); }
.verification-batch-bar strong, .verification-batch-bar span { display: block; }
.verification-batch-bar span { margin-top: 2px; color: #4e675c; font-size: 10px; }
.verification-batch-bar .button { flex: 0 0 auto; }
.verification-batch-bar .button:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }
.verification-records-panel { overflow: visible; }
.verification-record-table { min-width: 850px; }
.verification-select-column { width: 64px; text-align: center; }
.verification-select-column input { width: 18px; height: 18px; accent-color: var(--success); cursor: pointer; }
.verification-select-column input:disabled { cursor: not-allowed; opacity: .35; }
.verification-batch-na { color: #9aa4b1; font-weight: 800; }
.verification-reviewed-label { display: inline-flex; min-height: 24px; align-items: center; padding: 4px 8px; border-radius: 999px; color: #59677a; background: #edf1f5; font-size: 9px; font-weight: 850; white-space: nowrap; }
.verification-row-flagged td { background: #fffaf8; }
.verification-clean-badge, .verification-flag-badge { display: inline-flex; min-height: 26px; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; white-space: nowrap; }
.verification-clean-badge { color: #08704e; background: var(--success-bg); }
.verification-flag-badge { color: #9a3a19; background: #fff0e8; }
.visit-flag-hero { margin-top: 9px; }
.verification-sticky-actions { position: sticky; top: 86px; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 16px; padding: 11px 13px; border: 1px solid #cbd8e2; border-radius: 13px; background: rgba(255,255,255,.97); box-shadow: 0 7px 24px rgba(16,31,49,.10); backdrop-filter: blur(10px); }
.verification-sticky-actions > div:first-child { min-width: 0; }
.verification-sticky-actions strong, .verification-sticky-actions span { display: block; }
.verification-sticky-actions > div:first-child span { color: var(--muted); font-size: 10px; }
.verification-sticky-total { margin-top: 2px; color: var(--success); font-size: 15px; }
.verification-sticky-buttons { display: flex; flex: 0 0 auto; gap: 8px; }
.verification-evidence-panel { position: sticky; top: 88px; max-height: calc(100vh - 105px); padding-bottom: 0; overflow: hidden; }
.verification-evidence-panel > .panel-heading { padding-bottom: 12px; }
.verification-evidence-scroll { max-height: calc(100vh - 178px); overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 0 18px 18px; }
.evidence-section { padding: 14px 0; border-top: 1px solid var(--line); }
.evidence-section:first-child { padding-top: 4px; border-top: 0; }
.evidence-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.evidence-section-heading strong { font-size: 11px; }
.evidence-section-heading span { color: var(--muted); font-size: 9px; }
.evidence-timeline { margin: 0; }
.evidence-timeline .timeline-item { padding-right: 0; padding-left: 25px; }
.evidence-timeline small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.evidence-store-photos { margin-top: 9px; }
.evidence-store-photos a { width: calc(50% - 5px); min-width: 0; }
.evidence-store-photos img { width: 100%; height: 94px; }
.evidence-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.evidence-photo-grid a { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #f4f6f8; }
.evidence-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #edf1f4; }
.evidence-photo-grid span, .evidence-photo-grid small { display: block; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-photo-grid span { padding-bottom: 0; color: #354258; font-size: 9px; font-weight: 850; }
.evidence-photo-grid small { padding-top: 1px; color: var(--muted); font-size: 8px; }
.evidence-empty { margin: 7px 0 0; padding: 9px 10px; border-radius: 9px; color: var(--muted); background: #f6f8fa; font-size: 9px; }
.verification-no-issues { padding: 11px; border-radius: 10px; color: #08704e; background: var(--success-bg); }
.verification-no-issues strong { font-size: 11px; }
.verification-no-issues p { margin: 3px 0 0; color: #39725f; font-size: 9px; line-height: 1.4; }
.verification-flag-list { display: grid; gap: 7px; }
.verification-flag-item { padding: 9px 10px; border-left: 3px solid #d08037; border-radius: 8px; background: #fff8ee; }
.verification-flag-item.verification-flag-error { border-left-color: var(--danger); background: var(--danger-bg); }
.verification-flag-item strong { display: block; color: #6c3f1c; font-size: 10px; }
.verification-flag-item.verification-flag-error strong { color: #8d281f; }
.verification-flag-item p { margin: 2px 0 0; color: #715844; font-size: 9px; line-height: 1.35; }
.parking-evidence-calculation { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 10px; border-radius: 10px; background: #f4f7fa; font-size: 11px; }
.parking-evidence-calculation strong { color: var(--success); font-size: 14px; }
.evidence-petty-list { display: grid; gap: 7px; }
.evidence-petty-list article { padding: 9px 10px; border-radius: 9px; background: #f6f8fa; }
.evidence-petty-list strong, .evidence-petty-list small { display: block; }
.evidence-petty-list strong { font-size: 10px; }
.evidence-petty-list p { margin: 3px 0; color: #445164; font-size: 9px; }
.evidence-petty-list small { color: var(--muted); font-size: 8px; }
.evidence-summary-list { margin: 0; }
.evidence-summary-list div { gap: 10px; padding: 8px 0; font-size: 9px; }
.evidence-summary-list dd { max-width: 62%; overflow-wrap: anywhere; }
.verification-decision-fields { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 12px; margin-bottom: 12px; }
.verification-decision-fields .field { margin: 0; }
.verification-quick-note { margin: -4px 0 13px; color: var(--muted); font-size: 10px; }
.reopen-verification-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.reopen-verification-panel > strong { display: block; color: #8b4d00; }
.reopen-verification-panel > p { margin: 3px 0 10px; color: var(--muted); font-size: 10px; }
.photo-viewer-dialog { width: min(1050px, calc(100% - 28px)); max-height: calc(100vh - 24px); }
.photo-viewer-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 24px); padding: 14px; border-radius: 17px; background: #fff; }
.photo-viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 12px; }
.photo-viewer-heading h2 { margin: 0; font-size: 15px; }
.photo-viewer-heading .icon-button { color: var(--muted); background: #f1f4f7; }
.photo-viewer-stage { display: grid; min-height: 240px; max-height: calc(100vh - 150px); place-items: center; overflow: auto; border-radius: 12px; background: #101820; }
.photo-viewer-stage img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 165px); object-fit: contain; }
.photo-viewer-actions { display: flex; justify-content: flex-end; padding-top: 10px; }
.photo-viewer-original { color: #0873a9; font-size: 10px; font-weight: 850; }
.photo-viewer-loading { color: #d5dde6; font-size: 11px; }


/* Reimbursement employee grouping (v1.15.6) */
.reimbursement-detail-panel { overflow: visible; }
.reimbursement-employee-claims { display: grid; gap: 14px; padding: 0 18px 20px; }
.reimbursement-claim-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reimbursement-claim-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.reimbursement-claim-heading > div:first-child { min-width: 0; }
.reimbursement-claim-heading > div:first-child strong, .reimbursement-claim-heading > div:first-child span { display: block; }
.reimbursement-claim-heading > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.reimbursement-claim-heading > div:last-child { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.reimbursement-expense-table { min-width: 680px; }
.reimbursement-expense-table th, .reimbursement-expense-table td { padding-top: 10px; padding-bottom: 10px; }
.reimbursement-expense-table tfoot th { border-top: 1px solid var(--line); background: #fbfcfd; }

@media (max-width: 1120px) {
  .verification-progress-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .verification-filter-bar { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .report-filter-bar { grid-template-columns: repeat(3, 1fr); }
  .user-category-filter { grid-template-columns: minmax(240px, 400px) auto; }
  .frequency-filter-bar { grid-template-columns: repeat(3, 1fr); }
  .map-filter-bar { grid-template-columns: repeat(3, 1fr); }
  .map-filter-bar .button { grid-column: span 2; }
  .cleanup-safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cleanup-filter-bar { grid-template-columns: repeat(2, 1fr); }
  .cleanup-filter-bar label:nth-of-type(3) { grid-column: 1 / -1; }
  .cleanup-summary { grid-template-columns: repeat(3, 1fr); }
  .filter-search { grid-column: span 2; }
}

@media (max-width: 850px) {
  .verification-evidence-panel { position: static; max-height: none; }
  .verification-evidence-scroll { max-height: none; overflow: visible; }
  .verification-sticky-actions { top: 78px; }
  .verification-batch-bar { position: static; }
  .verification-decision-fields { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 260px; transition: transform .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 15; background: rgba(4,13,25,.58); }
  body.menu-open .sidebar-overlay { display: block; }
  .menu-button { display: inline-grid; flex: 0 0 auto; place-items: center; }
  .topbar { min-height: 70px; }
  .dashboard-grid, .detail-grid, .settings-grid, .workflow-detail-grid { grid-template-columns: 1fr; }
  .app-release-grid { grid-template-columns: 1fr; }
  .route-map-layout { grid-template-columns: 1fr; }
  .route-list-panel { position: static; }
  .route-list { max-height: 420px; }
  .login-shell { grid-template-columns: 1fr; gap: 34px; max-width: 600px; }
  .login-brand { gap: 22px; }
  .login-brand img { width: 260px; }
  .login-brand h1 { font-size: 44px; }
}

@media (max-width: 620px) {
  .verification-filter-bar { grid-template-columns: 1fr 1fr; }
  .verification-period-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .verification-filter-bar label:nth-of-type(n), .verification-filter-bar .button, .verification-filter-reset { grid-column: 1 / -1; }
  .verification-employee-grid { grid-template-columns: 1fr; padding: 0 12px 16px; }
  .verification-progress-summary { grid-template-columns: 1fr 1fr; }
  .verification-progress-summary .verification-progress-card { grid-column: 1 / -1; }
  .verification-batch-bar { display: grid; }
  .verification-batch-bar .button { width: 100%; }
  .verification-sticky-actions { top: 65px; display: grid; gap: 8px; padding: 9px 10px; }
  .verification-sticky-buttons { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .verification-sticky-buttons .button { min-height: 38px; padding: 8px 9px; font-size: 10px; }
  .evidence-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-viewer-card { padding: 9px; }
  .content { padding: 18px 12px 36px; }
  .topbar { padding: 11px 13px; }
  .topbar h1 { font-size: 17px; }
  .topbar .eyebrow { display: none; }
  .topbar .live-pill { padding: 5px 8px; }
  .hero-panel { display: block; min-height: 0; padding: 24px 20px; border-radius: 18px; }
  .hero-panel .button { width: 100%; margin-top: 21px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 122px; padding: 16px; border-radius: 14px; }
  .metric strong { font-size: 24px; }
  .metric small { font-size: 10px; }
  .panel { border-radius: 14px; }
  .panel-heading { padding: 18px 16px 13px; }
  td, th { padding-right: 12px; padding-left: 12px; }
  .page-heading { display: block; margin-bottom: 16px; }
  .page-heading .button, .page-heading .live-pill { width: 100%; margin-top: 14px; }
  .page-heading > .setting-badge { display: inline-flex; margin-top: 12px; }
  .heading-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .heading-actions .button { margin-top: 14px; }
  .filter-bar { grid-template-columns: 1fr 1fr; padding: 12px; }
  .report-filter-bar { grid-template-columns: 1fr 1fr; }
  .user-category-filter { grid-template-columns: 1fr; }
  .user-category-filter label, .user-category-filter .button { grid-column: 1 / -1; }
  .frequency-filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar label:nth-of-type(3), .filter-bar label:nth-of-type(4), .filter-search, .filter-bar .button { grid-column: 1 / -1; }
  .report-summary { grid-template-columns: 1fr 1fr; }
  .datatable-toolbar { display: grid; grid-template-columns: 1fr; padding: 0 14px 14px; }
  .datatable-length, .datatable-search { width: 100%; margin-left: 0; }
  .datatable-search input { width: 100%; }
  .datatable-filter-note { margin-left: 0; }
  .datatable-pagination { align-items: flex-start; flex-direction: column; gap: 12px; }
  .datatable-page-buttons { justify-content: flex-start; }
  .report-summary div:nth-child(2) { border-right: 0; }
  .report-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .map-summary { grid-template-columns: 1fr 1fr; }
  .store-summary { grid-template-columns: 1fr; }
  .store-sync-heading-actions { grid-template-columns: 1fr; }
  .store-sync-heading-actions form, .store-sync-heading-actions .button { width: 100%; }
  .store-sync-request-grid { grid-template-columns: 1fr 1fr; }
  .store-sync-request-body { padding: 0 16px 18px; }
  .cleanup-safety-grid { grid-template-columns: 1fr; }
  .cleanup-filter-bar { grid-template-columns: 1fr; }
  .cleanup-filter-bar label, .cleanup-filter-bar label:nth-of-type(3), .cleanup-filter-bar .button { grid-column: 1 / -1; }
  .cleanup-summary { grid-template-columns: 1fr 1fr; }
  .cleanup-summary div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .cleanup-confirm-form { margin: 0 12px 16px; padding: 16px; }
  .cleanup-confirm-form .button-danger { width: 100%; min-width: 0; }
  .store-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .store-summary div:last-child { border-bottom: 0; }
  .catalog-search { display: grid; grid-template-columns: 1fr 1fr; padding: 0 14px 16px; }
  .catalog-search .field { grid-column: 1 / -1; }
  .map-summary div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .chart-heading { display: block; }
  .chart-type-field { display: block; width: 100%; margin-top: 14px; }
  .visit-frequency-chart { min-height: 340px; padding-right: 4px; padding-left: 4px; }
  .chart-legend { grid-template-columns: 1fr; padding: 0 16px 18px; }
  .route-map-wrap, .route-map { min-height: 470px; }
  .map-legend { margin-top: 10px; }
  .visit-hero { display: block; padding: 21px; }
  .visit-total { margin-top: 18px; text-align: left; }
  .verification-total-block { min-width: 0; }
  .visit-status-row { justify-content: flex-start; }
  .workflow-buttons { display: grid; grid-template-columns: 1fr; }
  .verification-item-control, .verification-item-control.compact { grid-template-columns: 1fr; gap: 10px; }
  .verification-section-label { min-height: 0; padding: 0 0 2px; border-right: 0; }
  .verification-choice { grid-template-columns: 1fr 1fr; padding: 0; border-right: 0; }
  .verification-amount-adjust, .verification-remarks { padding: 0; }
  .verification-review-summary { grid-template-columns: 1fr; }
  .workflow-history-list article { grid-template-columns: 12px minmax(0, 1fr); }
  .workflow-history-meta { grid-column: 2; min-width: 0; text-align: left; }
  .allowance-row { grid-template-columns: 1fr; }
  .expense-main { align-items: flex-start; }
  .expense-main p { overflow-wrap: anywhere; }
  .form-grid { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .dialog-card { padding: 20px 16px; }
  .parking-limit-panel .compact-setting-form { display: grid; }
  .parking-limit-panel .compact-setting-form .field, .parking-limit-panel .compact-setting-form .button { width: 100%; }
  .parking-limit-panel .compact-setting-form .button { margin-top: 0; }
  .login-shell { width: min(100% - 24px, 520px); padding: 28px 0; }
  .login-brand img { width: 220px; }
  .login-brand h1 { font-size: 35px; }
  .login-brand p:last-child { font-size: 14px; }
  .login-card { padding: 24px 18px; border-radius: 18px; }
  .reimbursement-claim-heading { display: grid; align-items: start; }
  .reimbursement-claim-heading > div:last-child { flex-wrap: wrap; justify-content: flex-start; }
}

@media print {
  .verification-sticky-actions, .verification-batch-bar, .photo-viewer-dialog { display: none !important; }
  .sidebar, .topbar, .footer, .filter-bar, .datatable-toolbar, .page-heading .button, .pagination, .back-link { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; }
  .panel, .metric { box-shadow: none; }
}

/* Generated Verification / Reimbursement batches v1.16.0 */
.status-danger { color:#991b1b; background:#fef2f2; }
.verification-generate-panel { margin-bottom:18px; }
.batch-generate-form { display:grid; grid-template-columns:minmax(160px,1fr) minmax(180px,1fr) minmax(220px,1.25fr) auto; gap:12px; align-items:end; }
.batch-generate-form .field { margin:0; }
.batch-table td, .batch-table th { vertical-align:middle; }
.batch-new-sync { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; background:#fff7ed; color:#b45309; font-size:11px; font-weight:800; white-space:nowrap; }
.batch-context-heading { margin:0 0 16px; }
.batch-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-top:10px; }
.batch-title-row h2 { margin:2px 0 5px; }
.batch-title-row p { margin:0; color:#6b7280; }
.batch-status-large { flex:0 0 auto; padding:8px 12px; font-size:12px; }
.batch-summary { margin-bottom:16px; }
.batch-update-alert { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; margin-bottom:16px; border-color:#fed7aa; background:#fffaf2; }
.batch-update-alert strong { color:#9a3412; }
.batch-update-alert p { margin:4px 0 0; color:#7c2d12; }
.batch-update-alert form { flex:0 0 auto; }
.batch-admin-panel { margin:0 0 16px; }
.batch-admin-form { display:grid; grid-template-columns:minmax(260px,1fr) auto; gap:12px; align-items:end; }
.batch-admin-form .field { margin:0; }
.batch-no-data-row { opacity:.67; background:#fafafa; }
.batch-row-actions { min-width:230px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.inline-action-form { display:inline-flex; margin:0; }
.batch-inline-details { position:relative; }
.batch-inline-details > summary { cursor:pointer; color:#546274; font-size:11px; font-weight:800; list-style:none; }
.batch-inline-details > summary::-webkit-details-marker { display:none; }
.batch-inline-details[open] { width:100%; padding:8px; border:1px solid #d9e0e8; border-radius:10px; background:#f8fafc; }
.batch-inline-details form { display:flex; gap:7px; margin-top:7px; }
.batch-inline-details input { min-width:190px; }
.reimbursement-detail-list { display:grid; gap:14px; }
.reimbursement-claim-card { border:1px solid #e1e6ec; border-radius:14px; background:#fff; overflow:hidden; }
.reimbursement-claim-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; background:#f8fafc; border-bottom:1px solid #e8edf2; }
.reimbursement-claim-heading > div { display:grid; gap:3px; }
.reimbursement-claim-heading > div:last-child { justify-items:end; }
.reimbursement-claim-heading span { font-size:11px; color:#687386; }
.compact-table table { margin:0; }
.compact-table th, .compact-table td { padding:9px 12px; }
@media (max-width: 980px) {
  .batch-generate-form { grid-template-columns:1fr 1fr; }
  .batch-generate-form .button { width:100%; }
  .batch-admin-form { grid-template-columns:1fr; }
  .batch-title-row, .batch-update-alert { align-items:stretch; flex-direction:column; }
  .batch-status-large { align-self:flex-start; }
}
@media (max-width: 640px) {
  .batch-generate-form { grid-template-columns:1fr; }
  .batch-row-actions { min-width:190px; }
  .batch-inline-details form { flex-direction:column; }
  .batch-inline-details input { min-width:0; width:100%; }
  .reimbursement-claim-heading { align-items:flex-start; flex-direction:column; }
  .reimbursement-claim-heading > div:last-child { justify-items:start; }
}

/* Verification batch summary / controlled action alignment v1.16.2 */
.verification-batch-summary {
  overflow: hidden;
}
.verification-batch-summary > div {
  min-height: 74px;
  box-sizing: border-box;
}
.verification-batch-summary > div:nth-child(4n) {
  border-right: 0;
}
.verification-batch-summary > div:nth-child(n+5) {
  border-top: 1px solid var(--line);
}
.verification-batch-summary .batch-summary-empty {
  min-height: 74px;
  padding: 0;
}
.batch-admin-panel .panel-heading {
  padding-bottom: 14px;
}
.batch-admin-form {
  padding: 0 24px 24px;
}
.batch-admin-form .button {
  min-height: 44px;
  align-self: end;
}
@media (max-width: 980px) {
  .batch-admin-form {
    padding: 0 18px 20px;
  }
}
@media (max-width: 786px) {
  .verification-batch-summary .batch-summary-empty {
    display: none;
  }
  .verification-batch-summary > div:not(.batch-summary-empty) {
    border-top: 1px solid var(--line);
  }
  .verification-batch-summary > div:not(.batch-summary-empty):nth-child(-n+4) {
    border-top: 0;
  }
}
@media (max-width: 620px) {
  .batch-admin-form {
    padding: 0 16px 18px;
  }
}

/* Verification batch generator card alignment v1.16.3 */
.verification-generate-panel .panel-heading {
  padding-bottom: 14px;
}
.verification-generate-panel .batch-generate-form {
  padding: 0 24px 24px;
  box-sizing: border-box;
}
.verification-generate-panel .batch-generate-form .field,
.verification-generate-panel .batch-generate-form .button {
  min-width: 0;
}
.verification-generate-panel .batch-generate-form .button {
  min-height: 44px;
  align-self: end;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .verification-generate-panel .batch-generate-form {
    padding: 0 18px 20px;
  }
}
@media (max-width: 620px) {
  .verification-generate-panel .batch-generate-form {
    padding: 0 16px 18px;
  }
}

/* v1.16.6 — Verification grouped by calendar date */
.verification-date-table td:nth-child(2) strong { white-space: nowrap; }
.verification-date-review-heading { margin-bottom: 18px; }
.verification-date-summary { margin-bottom: 18px; }
.verification-date-warning-panel { margin-bottom: 18px; padding: 18px 22px; border-color: #fed7aa; background: #fff7ed; }
.verification-date-warning-panel strong { color: #9a3412; }
.verification-date-warning-panel p { margin: 5px 0 0; color: #9a5a32; }
.verification-date-approve-bar { margin-bottom: 18px; }
.verification-day-review-panel { overflow: hidden; }
.verification-day-store-list { display: grid; gap: 18px; padding: 0 20px 22px; }
.verification-day-store-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 24px rgba(23, 42, 58, .045); }
.verification-day-store-card.verification-day-store-flagged { border-color: #f4c7ad; background: #fffdfb; }
.verification-day-store-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.verification-day-store-header h3 { margin: 3px 0 8px; font-size: 20px; }
.verification-day-store-badges { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.verification-day-store-total { min-width: 180px; text-align: right; }
.verification-day-store-total span, .verification-day-store-total small { display: block; color: var(--muted); font-size: 11px; }
.verification-day-store-total strong { display: block; margin: 4px 0; font-size: 21px; }
.verification-day-store-total .button { display: inline-flex; margin-top: 8px; }
.verification-day-warning-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 22px; border-bottom: 1px solid #fed7aa; background: #fff7ed; }
.verification-day-warning-list span { padding: 5px 8px; border-radius: 999px; color: #9a3412; background: #ffedd5; font-size: 10px; font-weight: 750; }
.verification-day-store-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr); gap: 0; }
.verification-day-detail-section { padding: 20px 22px; }
.verification-day-detail-section + .verification-day-detail-section { border-left: 1px solid var(--line); }
.verification-day-detail-section h4 { margin: 0 0 12px; font-size: 13px; }
.verification-day-photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.verification-day-photo-pair > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.verification-day-photo-pair a { display: block; margin-bottom: 8px; }
.verification-day-photo-pair img { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 9px; object-fit: cover; }
.verification-day-photo-pair strong, .verification-day-photo-pair span, .verification-day-photo-pair small { display: block; }
.verification-day-photo-pair span, .verification-day-photo-pair small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.verification-day-expense-list { display: grid; gap: 8px; }
.verification-day-expense-list > article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 54px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.verification-day-expense-list > article > div { min-width: 0; }
.verification-day-expense-list > article > div strong, .verification-day-expense-list > article > div span, .verification-day-expense-list > article > div small { display: block; }
.verification-day-expense-list > article > div span, .verification-day-expense-list > article > div small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.verification-day-proof-thumb { display: block; width: 48px; height: 40px; overflow: hidden; border-radius: 8px; }
.verification-day-proof-thumb img { width: 100%; height: 100%; object-fit: cover; }
.verification-day-store-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); background: #f8fafc; }
.verification-day-store-footer > div { min-width: 0; }
.verification-day-store-footer > div span { display: block; color: var(--muted); font-size: 10px; }
.verification-day-store-footer .button { flex: 0 0 auto; }

@media (max-width: 900px) {
  .verification-day-store-grid { grid-template-columns: 1fr; }
  .verification-day-detail-section + .verification-day-detail-section { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .verification-day-store-header, .verification-day-store-footer { align-items: stretch; flex-direction: column; }
  .verification-day-store-total { min-width: 0; text-align: left; }
  .verification-day-photo-pair { grid-template-columns: 1fr; }
  .verification-day-expense-list > article { grid-template-columns: minmax(0, 1fr) auto; }
  .verification-day-proof-thumb { grid-column: 1 / -1; width: 72px; height: 52px; }
  .verification-day-store-footer .button { width: 100%; }
}
.verification-day-proof-strip { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 170px; }
.verification-day-proof-strip .verification-day-proof-thumb { width: 48px; height: auto; min-height: 40px; text-align: center; }
.verification-day-proof-strip .verification-day-proof-thumb img { display: block; width: 48px; height: 40px; border-radius: 8px; object-fit: cover; }
.verification-day-proof-strip .verification-day-proof-thumb small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
@media (max-width: 640px) { .verification-day-proof-strip { grid-column: 1 / -1; justify-content: flex-start; max-width: none; } }

/* v1.16.7 — full-date Verification editor */
.verification-date-editor-panel > .panel-heading { margin-bottom: 2px; }
.verification-date-editor-list { gap: 22px; }
.verification-date-edit-store { display: block; }
.verification-date-edit-store-header { position: relative; }
.verification-date-edit-store-header .verification-day-store-total small b { color: var(--text); font-size: 12px; }
.verification-date-edit-grid { grid-template-columns: minmax(250px, .72fr) minmax(0, 1.8fr); }
.verification-date-evidence-column { background: #fbfcfd; }
.verification-date-evidence-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.verification-date-evidence-meta span { color: var(--muted); font-size: 11px; }
.verification-date-evidence-meta strong { font-size: 16px; }
.verification-date-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.verification-date-section-heading h4 { margin: 2px 0 0; }
.verification-date-inline-total { flex: 0 0 auto; text-align: right; color: var(--muted); font-size: 11px; }
.verification-date-inline-total strong { display: block; margin-top: 3px; color: var(--text); font-size: 16px; }
.verification-date-expense-list { gap: 12px; }
.verification-date-expense-list .expense-card { margin: 0; }
.verification-date-proof-strip { margin-top: 10px; }
.verification-date-store-workflow { padding: 18px 22px 20px; border-top: 1px solid var(--line); background: #f8fafc; }
.verification-date-store-workflow .verification-review-summary { margin: 0 0 14px; }
.verification-date-store-workflow .verification-decision-fields { margin-top: 14px; }
.verification-date-store-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.verification-date-store-actions > span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.verification-date-store-actions > div { display: flex; gap: 10px; flex: 0 0 auto; }
.verification-date-reviewed-footer { background: #f8fafc; }
.verification-date-edit-store .verification-item-control { margin-top: 12px; }
.verification-date-edit-store .verification-result { margin-top: 12px; }

@media (max-width: 980px) {
  .verification-date-edit-grid { grid-template-columns: 1fr; }
  .verification-date-store-actions { align-items: stretch; flex-direction: column; }
  .verification-date-store-actions > div { width: 100%; }
  .verification-date-store-actions .button { flex: 1 1 0; }
}

@media (max-width: 640px) {
  .verification-date-section-heading { flex-direction: column; }
  .verification-date-inline-total { text-align: left; }
  .verification-date-store-actions > div { flex-direction: column; }
  .verification-date-store-actions .button { width: 100%; }
}

/* v1.16.8 - Advanced Petty Cash + voucher controls */
.verification-advance-panel {
  padding: 0;
  overflow: hidden;
}
.verification-advance-panel .panel-heading {
  padding: 22px 24px 12px;
  align-items: center;
}
.verification-advance-form {
  display: grid;
  grid-template-columns: minmax(260px, 420px) auto;
  align-items: end;
  gap: 14px;
  padding: 0 24px 22px;
}
.verification-advance-form .field { margin: 0; }
.verification-advance-form .field small {
  display: block;
  margin-top: 6px;
  color: var(--muted, #64748b);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}
.verification-advance-form .button { min-height: 44px; }
.voucher-row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.voucher-row-actions .cash-voucher-status-link { min-height: 22px; padding: 2px 4px; font-size: 10px; line-height: 1.15; white-space: nowrap; }
.voucher-row-actions .button { white-space: nowrap; }
@media (max-width: 760px) {
  .verification-advance-panel .panel-heading { align-items: flex-start; gap: 12px; }
  .verification-advance-form { grid-template-columns: 1fr; }
  .verification-advance-form .button { width: 100%; }
}

/* v1.16.9 - Regional Supervisor Advanced Petty Cash workspace */
.advanced-petty-cash-panel .advanced-petty-cash-inline-form{margin:0;min-width:150px}
.advanced-petty-cash-panel .advanced-petty-cash-inline-form input[type="number"]{width:100%;min-width:140px;height:40px;border:1px solid var(--line,#d9e1ea);border-radius:10px;padding:8px 10px;background:#fff;color:inherit;font:inherit;font-weight:700}
.advanced-petty-cash-panel .advanced-petty-cash-inline-form input[type="number"]:disabled{background:#f3f5f7;color:#7d8895;cursor:not-allowed}
.verification-advance-readonly{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;padding:0 24px 22px}
.verification-advance-readonly span{font-size:12px;color:#6b7890}
.verification-advance-readonly strong{font-size:22px;color:#0d1b2e}
.verification-advance-readonly small{width:100%;color:#748198}
@media(max-width:760px){.advanced-petty-cash-panel .advanced-petty-cash-inline-form{min-width:125px}.advanced-petty-cash-panel .advanced-petty-cash-inline-form input[type="number"]{min-width:120px}.verification-advance-readonly{padding:0 18px 18px}}

/* v1.16.11 - Independent date-range Advanced Petty Cash */
.advanced-petty-cash-entry-panel{padding:0;overflow:hidden}
.advanced-petty-cash-entry-panel .panel-heading{padding:22px 24px 12px;align-items:center}
.advanced-petty-cash-entry-form{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(160px,.8fr) minmax(160px,.8fr) minmax(180px,.8fr) auto;gap:14px;align-items:end;padding:0 24px 24px}
.advanced-petty-cash-entry-form .field{margin:0}
.advanced-petty-cash-entry-form .button{min-height:44px;white-space:nowrap}
.advanced-petty-cash-panel .inline-form{display:flex;align-items:center;gap:8px;margin:0}
.advanced-petty-cash-panel .inline-form input[type="text"]{width:170px;min-height:36px;border:1px solid var(--line,#d9e1ea);border-radius:9px;padding:7px 9px;background:#fff;color:inherit;font:inherit;font-size:12px}
.verification-advance-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px 14px;align-items:stretch}
.verification-advance-item{display:grid;gap:3px;padding:12px 14px;border:1px solid var(--line,#d9e1ea);border-radius:12px;background:#f8fafc}
.verification-advance-item span{font-weight:700;color:#334155}
.verification-advance-item strong{font-size:20px;color:#0d1b2e}
.verification-advance-item small{color:#748198}
@media(max-width:980px){.advanced-petty-cash-entry-form{grid-template-columns:1fr 1fr}.advanced-petty-cash-entry-form .button{width:100%}}
@media(max-width:640px){.advanced-petty-cash-entry-panel .panel-heading{padding:18px 18px 10px;align-items:flex-start;gap:10px}.advanced-petty-cash-entry-form{grid-template-columns:1fr;padding:0 18px 18px}.advanced-petty-cash-panel .inline-form{flex-direction:column;align-items:stretch}.advanced-petty-cash-panel .inline-form input[type="text"]{width:100%}}

/* v1.16.13 - dashboard access control */
.access-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.access-control-panel{min-width:0}
.access-selector{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 16px}
.access-control-form{display:grid;gap:16px}
.access-toggle-list{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}
.access-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid var(--line);cursor:pointer}
.access-toggle-row:last-child{border-bottom:0}
.access-toggle-row:hover{background:#f8fafc}
.access-toggle-copy{display:grid;gap:3px;min-width:0}
.access-toggle-copy strong{color:var(--navy);font-size:14px}
.access-toggle-copy small{color:var(--muted);font-size:11px;line-height:1.45}
.access-switch{position:relative;display:inline-flex;flex:0 0 auto;width:46px;height:26px}
.access-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.access-switch i{display:block;width:46px;height:26px;border-radius:999px;background:#cbd5e1;box-shadow:inset 0 0 0 1px rgba(15,23,42,.06);transition:.18s ease}
.access-switch i::after{content:"";display:block;width:20px;height:20px;margin:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.28);transition:.18s ease}
.access-switch input:checked+i{background:#0b8f6a}
.access-switch input:checked+i::after{transform:translateX(20px)}
.access-switch input:focus-visible+i{outline:3px solid rgba(14,116,144,.22);outline-offset:2px}
.access-user-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.access-user-summary>div{display:flex;align-items:center;gap:10px;min-width:0}
.access-user-summary span span,.access-user-summary div>span{display:grid;min-width:0}
.access-user-summary small{color:var(--muted);font-size:11px}
.access-form-actions{display:flex;gap:10px;flex-wrap:wrap}
.access-reset-form{margin-top:10px}
.access-reset-form .button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:980px){.access-control-grid{grid-template-columns:1fr}}

/* v1.16.14 - Access Control panel body spacing */
.access-control-panel > .access-selector {
  margin: 0 24px 16px;
}
.access-control-panel > .access-control-form {
  margin: 0 24px 20px;
}
.access-control-panel > .access-user-summary {
  margin: 0 24px 16px;
}
.access-control-panel > .access-reset-form {
  margin: 10px 24px 0;
}
.access-control-panel > .form-note {
  margin: 12px 24px 22px;
}
.access-control-panel > .empty-state.compact {
  margin: 0 24px 22px;
}
@media (max-width: 640px) {
  .access-control-panel > .access-selector {
    margin-left: 16px;
    margin-right: 16px;
  }
  .access-control-panel > .access-control-form {
    margin-left: 16px;
    margin-right: 16px;
  }
  .access-control-panel > .access-user-summary {
    margin-left: 16px;
    margin-right: 16px;
  }
  .access-control-panel > .access-reset-form,
  .access-control-panel > .form-note,
  .access-control-panel > .empty-state.compact {
    margin-left: 16px;
    margin-right: 16px;
  }
}
