:root {
  --bg: #f3f5f9; --surface: #ffffff; --text: #1b2333; --muted: #667085; --border: #e2e6ee;
  --primary: #3156d3; --primary-ink: #ffffff; --primary-soft: #e9eeff;
  --side: #121a2e; --side-text: #c5cde0; --side-active: #24315a;
  --green: #0f7a56; --green-soft: #dff5eb; --amber: #9a5b00; --amber-soft: #fff0d0;
  --red: #b3261e; --red-soft: #fde7e5; --violet: #6039c4; --violet-soft: #ece6fb;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1320; --surface: #171e2f; --text: #e6eaf3; --muted: #9aa4b8; --border: #283148;
    --primary: #7c98ff; --primary-ink: #0b1020; --primary-soft: #1e2a52;
    --side: #0a0f1c; --side-active: #1d2850;
    --green: #4fd1a1; --green-soft: #12362b; --amber: #f2b64d; --amber-soft: #3a2c10;
    --red: #ff8a80; --red-soft: #3d1a18; --violet: #b69cff; --violet-soft: #2a2150; --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--primary); }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pad { padding: 16px; }
.r { text-align: right; }

/* layout */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: var(--side); color: var(--side-text); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { font-weight: 700; font-size: 17px; color: #fff; padding: 4px 10px 16px; }
.sidebar nav { flex: 1; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7e8aa8; padding: 14px 10px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-size: 14px; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); }
.sidebar nav a.active { background: var(--side-active); color: #fff; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 11px; font-weight: 700; flex: none; }
.me { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 10px 4px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.me strong { color: #fff; }
.me small { color: #8d98b4; }
.me a, .linklike { color: var(--side-text); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; text-decoration: underline; }
.main { flex: 1; min-width: 0; }
.topbar { display: none; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); font-weight: 600; position: sticky; top: 0; z-index: 20; }
.topbar button { font-size: 20px; background: none; border: 0; color: var(--text); cursor: pointer; }
.content { padding: 22px 26px 40px; max-width: 1320px; }
.page-head { margin-bottom: 14px; }

/* cards, forms, buttons */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.narrow { max-width: 480px; }
.card.form { max-width: 880px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
label input, label select, label textarea { width: 100%; }
textarea { min-height: 84px; resize: vertical; }
.check { flex-direction: row; align-items: flex-start; font-weight: 400; color: var(--text); gap: 8px; font-size: 14px; }
.check input { margin-top: 4px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px 16px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash.ok { background: var(--green-soft); color: var(--green); }
.flash.err { background: var(--red-soft); color: var(--red); }
.flash.info { background: var(--primary-soft); color: var(--primary); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 14px; }
.filters label { min-width: 150px; }
.filters label.route-pick { flex: 1 1 230px; max-width: 380px; }
.filters label.route-pick select { text-overflow: ellipsis; }
.filters-bar { display: none; }
.filters-fields { display: contents; }   /* on a computer the fields sit in the filter row exactly as if the wrapper were not there */
.only-sm { display: none; }
.only-cell-sm { display: none; }
.only-row-sm { display: none; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 2px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.tabs a.active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tabs a b { font-variant-numeric: tabular-nums; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(127,127,127,.05); }
.table td.r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr.total td { font-weight: 700; background: rgba(127,127,127,.07); }
.table tr.grp td { background: var(--primary-soft); font-weight: 600; border-top: 1px solid var(--border); }
.table tr.sub td:first-child { padding-left: 28px; }
.table .zero { color: var(--muted); }
.table .empty { text-align: center; color: var(--muted); padding: 28px; }
.table td a { color: var(--primary); text-decoration: none; font-weight: 600; }
.table td a:hover { text-decoration: underline; }
.table td small { display: block; color: var(--muted); }
.table td.cmt { min-width: 220px; max-width: 320px; }
.pager { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
details > summary { cursor: pointer; color: var(--primary); font-size: 13px; }
details ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }

/* badges */
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-right: 4px; background: var(--border); color: var(--text); white-space: nowrap; }
.badge.hero { background: var(--amber-soft); color: var(--amber); }
.badge.npd { background: var(--violet-soft); color: var(--violet); }
.badge.cls-a { background: var(--green-soft); color: var(--green); }
.badge.cls-b { background: var(--primary-soft); color: var(--primary); }
.badge.cls-c { background: var(--amber-soft); color: var(--amber); }
.badge.cls-ewi { background: var(--violet-soft); color: var(--violet); }
.badge.cls-tailor { background: var(--red-soft); color: var(--red); }
.badge.out-order_taken { background: var(--green-soft); color: var(--green); }
.badge.out-no_order, .badge.out-closed { background: var(--red-soft); color: var(--red); }
.badge.out-follow_up { background: var(--amber-soft); color: var(--amber); }
.badge.off { background: var(--red-soft); color: var(--red); }
.gap { font-weight: 700; white-space: nowrap; }
.gap.green { color: var(--green); } .gap.amber { color: var(--amber); } .gap.red { color: var(--red); }

/* dashboard flow */
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
a.tile:hover { border-color: var(--primary); }
.tile-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.tile-num { font-size: 28px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 13px; color: var(--muted); }
.tile.hero { border-left: 4px solid var(--amber); }
.tile.good { border-left: 4px solid var(--green); }
.tile.warn { border-left: 4px solid var(--amber); }
.tile.bad { border-left: 4px solid var(--red); }
.flow-root { max-width: 380px; margin: 0 auto; }
.flow-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.flow-col { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.flow-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.flow-col .tile { box-shadow: none; }
.arrow { text-align: center; color: var(--muted); font-size: 18px; line-height: 1; padding: 7px 0; }
.arrow.fork { padding-bottom: 3px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.top3 { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.top3 li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--border); }
.top3 li b { font-variant-numeric: tabular-nums; }
.top3-h { font-size: 12px; color: var(--muted); margin: 10px 0 0; font-weight: 600; }
.note { margin-top: 12px; font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; margin-top: 8px; }
.meta span b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.timeline li:first-child { border-top: 0; }
.timeline .when { color: var(--muted); font-size: 13px; }
.map-box { height: 380px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px; background: var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; margin-bottom: 10px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 140px auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.status { font-size: 13px; color: var(--muted); }

/* installable app: install buttons, back button, bottom tab bar on phones */
.install-row { margin-top: 16px; }
.install-row .btn { width: 100%; }
.sidebar .install { color: #fff; background: rgba(255,255,255,.12); border: 0; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.topbar .back-btn { font-size: 28px; line-height: 1; padding: 0 6px; }
.tabbar { display: none; }
.map-box { position: relative; z-index: 0; }   /* keeps the map's own layers under the tab bar */

/* sign-in / setup */
.bare-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 720px; }
.auth-card h1 { margin-bottom: 6px; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.menu-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .topbar { display: flex; padding-top: calc(10px + env(safe-area-inset-top)); }
  .content { padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px; }   /* anything smaller makes iPhones zoom in when a field is tapped */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--border);
            padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font: inherit; font-size: 11px;
            font-weight: 600; color: var(--muted); background: none; border: 0; text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.active { color: var(--primary); }
  .tabbar a.go { color: var(--primary); }
  .tabbar a.go svg { width: 44px; height: 44px; padding: 10px; margin-top: -22px; border-radius: 50%; background: var(--primary); stroke: var(--primary-ink); box-shadow: 0 2px 8px rgba(0,0,0,.28); }
  .flow-cols, .two-col { grid-template-columns: minmax(0, 1fr); }
  .filters label { min-width: 130px; flex: 1; }
  /* phones: the filters start folded (a summary line + the period buttons); the Filters button opens the rest */
  .filters { gap: 8px; padding: 10px 12px; }
  .filters-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1 1 100%; }
  .filters-summary { font-size: 14px; font-weight: 600; min-width: 0; }
  .filters-toggle { flex: none; }
  .scope-line { display: none; }   /* the filter summary above already says it */
  .filters.is-folded .filters-fields, .filters.is-folded .filters-apply { display: none; }
  .filters .presets { flex: 1 1 100%; min-width: 0; flex-wrap: wrap; padding-bottom: 4px; }
  .filters .presets::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; padding: 8px 14px; font-size: 14px; }
  .filters .filters-apply { flex: 1 1 100%; }
}
@media (max-width: 720px) {
  /* long tables keep the columns that matter on a phone; the rest are on the store's own page or under "Details" */
  .hide-sm { display: none; }
  .csv-link { display: none; }   /* spreadsheets are for a computer */
  .table td .gap + small { white-space: nowrap; }   /* a date stays in one piece */
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }   /* the segment buttons become one row you can swipe */
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; padding: 8px 14px; }
  .content { padding-left: 10px; padding-right: 10px; }
  .table th, .table td { padding: 8px 5px; }   /* tighter, and headings may wrap, so the table fits the screen */
  .table th, .table td.r, .table th.r { white-space: normal; }   /* numbers never contain a space, so they still stay in one piece */
  .table td a { word-break: break-word; }
  .only-sm { display: block; }
  .only-cell-sm { display: table-cell; }
  /* the Details line under each store: a full-width row of its own */
  .only-row-sm { display: table-row; }
  tr.has-details > td { border-bottom: 0; padding-bottom: 2px; }
  .only-row-sm td { padding-top: 0; }
  .only-row-sm summary { padding: 4px 0; }
  .only-row-sm p { margin: 6px 0 0; font-size: 13px; }
  .only-row-sm p b { color: var(--muted); font-weight: 600; }
  .only-row-sm .badge { white-space: normal; }
  .wrap-any { overflow-wrap: anywhere; }   /* long store and product names break to fit the screen */
}
@media (max-width: 520px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .tile-num { font-size: 24px; }
  .line { grid-template-columns: minmax(0, 1fr) 90px; }
  .line .remove-line { grid-column: 1 / -1; justify-self: start; }
}

/* ---- daily action report ---- */
.ar-head { text-align: center; }
.ar-head h2 { margin: 4px 0; }
.ar-head p { margin: 2px 0; }
.ar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ar-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ar-two h3 { margin: 4px 0 6px; font-size: 15px; }
.ar-store { border-top: 1px solid var(--border); padding: 8px 0; }
.ar-store p { margin: 4px 0 0; }
@media (max-width: 720px) { .ar-grid { grid-template-columns: 1fr; } }
@media print {
  .sidebar, .topbar, .tabbar, .filters, .no-print, .scope-line { display: none !important; }
  .app, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
  body { background: #fff; }
  .card, .table-wrap, .ar-store { box-shadow: none; break-inside: avoid; }
  .ar-break { break-before: page; }
  .hide-sm { display: table-cell !important; }
  .only-row-sm { display: none !important; }
}
/* Billed stores: one card per store with what it bought */
.bs-head { background: #dbe8fb; border-left: 4px solid #1e3a5f; border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; color: #1e3a5f; }
.bs-head h2 { margin: 0 0 2px; font-size: 18px; }
.bs-head p { margin: 0; font-size: 12px; }
.bs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bs-card { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.bs-title { background: #dbe8fb; border-left: 4px solid #1e3a5f; border-radius: 4px; padding: 6px 10px; margin-bottom: 8px; color: #1e3a5f; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.bs-title a { color: inherit; text-decoration: none; }
.bs-title span { font-size: 11px; }
.bs-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 2px; border-bottom: 1px solid var(--border); font-size: 12px; }
.bs-row b { font-weight: 700; }.bs-bills { margin-top: 8px; font-size: 12px; }
.bs-bills summary { cursor: pointer; color: #1e3a5f; font-weight: 600; }
.bs-row a { color: inherit; text-decoration: none; }
.bs-row a:hover { text-decoration: underline; }

/* Store history: the column headings stay visible while the rows scroll */
.table-wrap.sticky-head { overflow: auto; max-height: calc(100vh - 70px); }
.sticky-head .table thead th { position: sticky; top: 0; z-index: 5; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.rng-list { margin-top: 4px; min-width: 150px; }
.rng-list div { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 1px 0; border-bottom: 1px solid var(--border); }
/* Overall dashboard charts */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ch h3 { margin: 0 0 10px; font-size: 14px; }
.ch-donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ch-donut .ring { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.ch-donut .ring::before { content: ''; position: absolute; inset: 24px; background: var(--surface); border-radius: 50%; }
.ch-donut .ring span { position: relative; font-weight: 700; font-size: 13px; text-align: center; max-width: 80px; }
.ch-donut ul { list-style: none; margin: 0; padding: 0; font-size: 13px; flex: 1; min-width: 140px; }
.ch-donut li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.ch-donut li i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.ch-donut li span { flex: 1; }
.ch-bar { display: grid; grid-template-columns: minmax(110px, 46%) 1fr auto; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.ch-bar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-bar .nm a { color: inherit; text-decoration: none; }
.ch-bar .tr { background: var(--border); border-radius: 4px; height: 12px; overflow: hidden; display: block; }
.ch-bar .tr span { display: block; height: 100%; border-radius: 4px; }
/* ===== Larger, cleaner look (computers and tablets; phones keep their compact sizes) ===== */
@media screen and (min-width: 721px) {
  body { font-size: 17px; line-height: 1.5; }
  h1 { font-size: 27px; letter-spacing: -.01em; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  .small { font-size: 14.5px; }
  .sidebar { width: 270px; padding: 22px 14px; }
  .brand { font-size: 20px; padding: 4px 12px 20px; }
  .nav-h { font-size: 12.5px; }
  .sidebar nav a { font-size: 16px; padding: 10px 12px; border-radius: 10px; border-left: 3px solid transparent; }
  .sidebar nav a.active { border-left-color: #7c98ff; background: var(--side-active); }
  .num { width: 24px; height: 24px; font-size: 12.5px; }
  .me { font-size: 14.5px; }
  .content { padding: 28px 34px 48px; max-width: 1560px; }
  .page-head { margin-bottom: 18px; }
  .scope-line { font-size: 15px; }
  .card { padding: 20px; border-radius: 14px; }
  label { font-size: 14px; }
  input, select, textarea { padding: 10px 12px; font-size: 16px; border-radius: 10px; }
  .btn { padding: 10px 18px; font-size: 16px; border-radius: 10px; }
  .btn.small { padding: 6px 13px; font-size: 14.5px; }
  .btn.primary { box-shadow: 0 1px 2px rgba(49,86,211,.35); }
  .chip { padding: 6px 14px; font-size: 14.5px; }
  .tabs a { padding: 9px 18px; font-size: 16px; }
  .filters { padding: 16px 18px; gap: 14px; border-radius: 14px; }
  .filters label { min-width: 170px; }
  .table-wrap { border-radius: 14px; }
  table.table { font-size: 16px; }
  .table th { font-size: 13px; padding: 13px 14px; background: rgba(127,127,127,.06); }
  .table td { padding: 12px 14px; }
  .table tbody tr:nth-child(even) td { background: rgba(127,127,127,.025); }
  .table tbody tr:hover td { background: var(--primary-soft); }
  .table td small { font-size: 13.5px; }
  .badge { font-size: 13.5px; padding: 2px 10px; }
  details > summary { font-size: 14.5px; }
  .tile { padding: 16px 18px; border-radius: 14px; }
  .tile-label { font-size: 13px; }
  .tile-num { font-size: 34px; }
  .tile-sub { font-size: 14.5px; }
  .flow-col { padding: 18px; border-radius: 14px; }
  .flow-col h3 { font-size: 13.5px; }
  .top3 { font-size: 15px; }
  .top3-h { font-size: 13.5px; }
  .kpis { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
  .timeline li, .meta { font-size: 16px; }
  /* charts and store cards */
  .ch-grid { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
  .ch h3 { font-size: 16.5px; margin-bottom: 14px; }
  .ch-donut .ring { width: 160px; height: 160px; }
  .ch-donut .ring::before { inset: 30px; }
  .ch-donut .ring span { font-size: 15px; max-width: 96px; }
  .ch-donut ul { font-size: 15px; }
  .ch-bar { font-size: 14.5px; padding: 5px 0; grid-template-columns: minmax(130px, 44%) 1fr auto; }
  .ch-bar .tr { height: 16px; border-radius: 6px; }
  .bs-head h2 { font-size: 22px; }
  .bs-head p { font-size: 14.5px; }
  .bs-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
  .bs-title { font-size: 15.5px; }
  .bs-title span { font-size: 13px; }
  .bs-row { font-size: 14.5px; padding: 5px 2px; }
  .bs-bills { font-size: 14.5px; }
  .rng-list div { font-size: 14px; }
  .ar-head h2 { font-size: 22px; }
  .top3 li, .ch-bar .nm { line-height: 1.35; }
}
.emp-find { margin-bottom: 6px; }
select[name=emp][size] { height: auto; }
