/* Admin dashboard */

/* ---------------------------------------------------------------- setup checklist */
.ac-setup .card-head { gap: 16px; }
.ac-setup-meter { width: 180px; }
.ac-setup-meter .meter { height: 6px; }
.ac-setup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-setup-list li { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 18px; min-width: 0; }
.ac-setup-list li + li { border-left: 1px solid var(--line); }
.ac-setup-list li .btn { align-self: flex-start; margin-top: auto; }
.ac-setup-check {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.ac-setup-list li.is-done .ac-setup-check { background: var(--success); border-color: var(--success); color: #fff; }
.ac-setup-title { font-weight: 700; font-size: 13.5px; }
.ac-setup-list li.is-done .ac-setup-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.ac-setup-text { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 1100px) {
  .ac-setup-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-setup-list li:nth-child(3) { border-left: 0; }
  .ac-setup-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .ac-setup-meter { display: none; }
  .ac-setup-list { grid-template-columns: minmax(0, 1fr); }
  .ac-setup-list li { flex-direction: row; align-items: center; padding: 12px 16px; }
  .ac-setup-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ac-setup-list li .btn { margin-top: 0; align-self: center; }
}

/* shared chart (reports): the hover dot is parked at (-10,-10) until used */
.ac-chart .hover-dot[cx="-10"] { visibility: hidden; }
.ac-hbar-name { color: var(--ink-2); font-weight: 600; }
a.ac-hbar-name:hover { color: var(--brand-text); }

/* ---------------------------------------------------------------- dashboard */
.dash-head { margin-bottom: 0; }
.dash-head .page-actions { gap: 10px; }
.dash-period a { height: 34px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; font-weight: 650; }
.dash-block { margin-top: 22px; }
.dash-kdv { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-left: 3px; letter-spacing: 0; font-stretch: 100%; font-family: var(--font); }

/* inbox tiles */
.dash-inbox { margin-top: 22px; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
.dash-ib {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: var(--ink);
  border: 1px solid transparent; text-decoration: none !important; transition: transform 0.15s, box-shadow 0.2s; min-width: 0;
}
.dash-ib:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px rgba(15, 22, 48, 0.45); color: var(--ink); }
.dash-ib .ti { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); }
.dash-ib .ti .icon { width: 19px; height: 19px; }
.dash-ib-text { min-width: 0; }
.dash-ib-text b { display: block; font-family: var(--font-display); font-size: 22px; font-stretch: 112%; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-ib-text span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-ib-go { margin-left: auto; color: var(--muted); }
.dash-ib-tape { background: var(--tape-soft); border-color: color-mix(in srgb, var(--tape) 25%, var(--tape-soft)); }
.dash-ib-tape .ti { color: #b57400; }
.dash-ib-mint { background: var(--success-soft); border-color: color-mix(in srgb, var(--success-bright) 12%, var(--success-soft)); }
.dash-ib-mint .ti { color: var(--success); }
.dash-ib-coral { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger-bright) 12%, var(--danger-soft)); }
.dash-ib-coral .ti { color: var(--danger); }
.dash-ib-violet { background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 10%, var(--violet-soft)); }
.dash-ib-violet .ti { color: var(--violet); }
:root[data-theme="dark"] .dash-ib-tape .ti { color: var(--tape); }
.dash-tasks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dash-tasks a {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none !important;
}
.dash-tasks a:hover { border-color: var(--line-strong); color: var(--ink); }
.dash-tasks a .icon { width: 15px; height: 15px; color: var(--muted); }
.dash-tasks a b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* KPI row */
.dash-kpis { margin-top: 18px; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); overflow: hidden; }
.dash-kpi { display: block; padding: 20px 22px; min-width: 0; color: inherit; text-decoration: none !important; transition: background 0.12s; }
a.dash-kpi:hover { background: var(--surface-2); color: inherit; }
.dash-kpi + .dash-kpi { border-left: 1px solid var(--line-2); }
.dash-kpi-l { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.dash-kpi-l .ti { width: 30px; height: 30px; }
.dash-kpi-v {
  display: block; margin-top: 12px; font-family: var(--font-display); font-size: 30px; font-stretch: 115%; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-kpi-of { font-size: 17px; color: var(--faint); font-weight: 700; letter-spacing: 0; }
.dash-kpi-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.dash-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 750; color: var(--success); min-width: 0; white-space: nowrap; }
.dash-delta .icon { width: 14px; height: 14px; }
.dash-delta > span { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dash-delta.is-down { color: var(--danger); }
.dash-delta.is-flat { color: var(--muted); }
.dash-spark { width: 96px; height: 30px; flex: none; overflow: visible; }
.dash-spark path { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dash-spark.is-tape path { stroke: color-mix(in srgb, var(--tape) 82%, #b57400); }
.dash-spark.is-blue path { stroke: var(--blue); }
.dash-spark.is-mint path { stroke: var(--success-bright); }
.dash-spark.is-sky path { stroke: var(--sky-bright); }

/* rows of cards */
.dash-row { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.dash-row.dash-row-half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.dash-row.is-single, .dash-row > :only-child { grid-template-columns: minmax(0, 1fr); }
.dash-row > .card { min-width: 0; }

/* daily revenue */
.dash-legend { display: flex; gap: 14px; font-size: 12.5px; font-weight: 650; color: var(--muted); flex-wrap: wrap; }
.dash-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; background: color-mix(in srgb, var(--blue) 24%, var(--surface)); }
.dash-legend i.is-today { background: var(--blue); }
.dash-legend i.is-we { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.dash-chart { position: relative; height: 240px; }
.dash-grid { position: absolute; left: 44px; right: 4px; top: 12px; bottom: 28px; pointer-events: none; }
.dash-grid span { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); }
.dash-grid em { position: absolute; left: -44px; top: -8px; width: 38px; text-align: right; font-style: normal; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.dash-bars { position: absolute; left: 44px; right: 4px; top: 12px; bottom: 0; display: flex; gap: 10px; }
.dash-bcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; outline: none; cursor: default; }
.dash-bwrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.dash-bar {
  display: block; width: 100%; max-width: 30px; min-height: 2px; border-radius: 9px 9px 4px 4px;
  background: color-mix(in srgb, var(--blue) 24%, var(--surface)); transform-origin: bottom; animation: dash-grow 0.9s var(--ease) both; transition: background 0.15s;
}
.dash-bcol.is-we .dash-bar { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.dash-bcol.is-today .dash-bar { background: var(--blue); }
.dash-bcol.is-hover .dash-bar, .dash-bcol:focus-visible .dash-bar { background: color-mix(in srgb, var(--blue) 45%, var(--surface)); }
.dash-bcol small { height: 28px; padding-top: 8px; font-size: 11px; color: var(--faint); font-weight: 650; white-space: nowrap; line-height: 1.2; }
.dash-bcol.is-today small { color: var(--ink-2); }
.dash-tip {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); background: var(--ink); color: var(--surface); border-radius: 10px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.35; pointer-events: none; font-variant-numeric: tabular-nums;
}
.dash-tip small { display: block; font-size: 11px; font-weight: 600; opacity: 0.72; }
@keyframes dash-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* open orders donut */
.dash-donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-donut { width: 150px; height: 150px; position: relative; flex: none; }
.dash-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dash-donut circle { fill: none; stroke-width: 16; }
.dash-donut .dash-donut-track { stroke: var(--surface-3); }
.dash-donut .is-tape { stroke: var(--tape); }
.dash-donut .is-blue { stroke: var(--blue); }
.dash-donut .is-sky { stroke: var(--sky-bright); }
.dash-donut .is-violet { stroke: var(--violet); }
.dash-donut-c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.dash-donut-c b { display: block; font-family: var(--font-display); font-size: 28px; font-stretch: 112%; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-donut-c small { font-size: 12px; color: var(--muted); font-weight: 650; }
.dash-dl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; min-width: 160px; }
.dash-dl li, .dash-dl a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.dash-dl a { flex: 1; text-decoration: none !important; }
.dash-dl a:hover { color: var(--ink); }
.dash-dl i { width: 10px; height: 10px; border-radius: 3px; display: block; flex: none; }
.dash-dl i.is-tape { background: var(--tape); }
.dash-dl i.is-blue { background: var(--blue); }
.dash-dl i.is-sky { background: var(--sky-bright); }
.dash-dl i.is-violet { background: var(--violet); }
.dash-dl b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }

/* pending approvals */
.dash-pending .table-wrap { position: relative; }
.dash-pending .table th { border-top: 1px solid var(--line-2); }
.dash-pending .table th, .dash-pending .table td { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
.dash-pending .table th:first-child, .dash-pending .table td:first-child { padding-left: 14px; }
.dash-pending .table td { padding-top: 13px; padding-bottom: 13px; }
.dash-pending .table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.dash-pending .dash-who b { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* In a half-width card the payment chip moves under the amount so the check and approve columns stay in view. */
.dash-pending { container: dash-pending / inline-size; }
.dash-pay-sub { display: none; }
.dash-pay-sub .chip { height: 22px; font-size: 11.5px; padding: 0 8px; }
@container dash-pending (min-width: 560px) and (max-width: 900px) {
  .dash-pending .dash-col-pay { display: none; }
  .dash-pending .dash-pay-sub { display: block; margin-top: 4px; }
}
.dash-done { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--success-soft); color: var(--success); }
.dash-done .icon { width: 16px; height: 16px; }
.dash-pending tr.is-done td:not([data-check-cell]):not(.actions) { opacity: 0.6; }
.dash-code { display: block; font-stretch: 88%; font-weight: 700; color: var(--ink-2); text-decoration: none !important; font-variant-numeric: tabular-nums; }
a.dash-code:hover { color: var(--brand-text); }
.dash-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.dash-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dash-who b { display: block; font-weight: 650; line-height: 1.3; color: var(--ink); }
.dash-who small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.dash-who a { text-decoration: none !important; }
.dash-who a:hover b { color: var(--brand-text); }
.dash-av { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; font-weight: 750; display: grid; place-items: center; flex: none; }
.dash-more { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 650; color: var(--brand-text); text-decoration: none !important; }
.dash-more .icon { width: 15px; height: 15px; }
.dash-more:hover { background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.dash-empty { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.dash-empty b { display: block; color: var(--ink); font-size: 14px; font-weight: 700; }
.dash-empty-pad { padding: 4px 20px 22px; }

/* dealer activity */
.dash-feed { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; gap: 4px; }
.dash-feed li + li .dash-feed-item { border-top: 1px dashed var(--line-2); }
.dash-feed-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--ink); text-decoration: none !important; }
a.dash-feed-item:hover .dash-feed-t b { color: var(--brand-text); }
.dash-feed .ti { width: 34px; height: 34px; border-radius: 11px; }
.dash-feed .ti .icon { width: 17px; height: 17px; }
.dash-feed-t { flex: 1; min-width: 0; line-height: 1.4; color: var(--ink); }
.dash-feed-t b { font-weight: 700; }
.dash-feed-t > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-feed-m { font-size: 13px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* best sellers */
.dash-top-tools { display: flex; align-items: center; gap: 12px; }
.dash-top-switch { padding: 3px; }
.dash-top-switch button { height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 650; }
.dash-tp { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; gap: 14px; }
.dash-tp-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; color: var(--ink); text-decoration: none !important; }
a.dash-tp-item:hover b { color: var(--brand-text); }
.dash-tp .ti { width: 34px; height: 34px; border-radius: 10px; }
.dash-tp-img { width: 34px; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.dash-tp-img img { width: 100%; height: 100%; object-fit: cover; }
.dash-tp-main { min-width: 0; }
.dash-tp-main b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-meter { display: block; margin-top: 6px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dash-meter i { display: block; height: 100%; border-radius: inherit; }
.dash-meter .is-blue { background: var(--blue); }
.dash-meter .is-violet { background: var(--violet); }
.dash-meter .is-coral { background: var(--danger-bright); }
.dash-meter .is-tape { background: var(--tape); }
.dash-meter .is-mint { background: var(--success-bright); }
.dash-tp strong { font-size: 14px; font-weight: 750; text-align: right; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-tp strong small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.dash-unit { font-size: 12px; color: var(--muted); font-weight: 600; }

/* overdue balances */
.dash-od { list-style: none; margin: 0; padding: 0 20px 20px; display: grid; gap: 10px; }
.dash-od li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.dash-od .dash-who { flex: 1; }
.dash-od strong { font-size: 15px; font-weight: 800; color: var(--danger); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-od form { display: contents; }
.dash-od .btn { background: var(--surface); }
.dash-sent { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 700; white-space: nowrap; }
.dash-sent .icon { width: 15px; height: 15px; }

@media (max-width: 1180px) {
  .dash-inbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-inbox > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-kpi:nth-child(odd) { border-left: 0; }
  .dash-kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .dash-kpis > .dash-kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dash-row, .dash-row.dash-row-half { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dash-head .page-actions { width: 100%; }
  .dash-inbox, .dash-kpis { grid-template-columns: minmax(0, 1fr); }
  .dash-kpi + .dash-kpi { border-left: 0; border-top: 1px solid var(--line-2); }
  .dash-bars { gap: 4px; left: 36px; }
  .dash-grid { left: 36px; }
  .dash-grid em { left: -36px; width: 30px; }
  .dash-bcol small { visibility: hidden; }
  .dash-od li { align-items: center; }
  .dash-od .dash-who b { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-bar { animation: none; }
  .dash-ib { transition: none; }
}

/* ---------------------------------------------------------------- reports */
.rp-tabs { margin-bottom: 22px; }
.rp-tabs a, .rp-tabs button { padding: 10px 8px 12px; gap: 5px; font-size: 13.5px; }
.rp-tabs a .icon { width: 15px; height: 15px; }
.rp-range .select { height: 42px; border-radius: var(--r); min-width: 160px; font-weight: 600; }
.rp-stats { margin-bottom: 18px; }
.rp-stats .stat-value { margin-top: 14px; }
.rp-kdv { margin-left: 2px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.rp-delta { display: inline-flex; align-items: center; gap: 3px; }
.rp-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.rp-chart { height: 260px; }
.rp-quiet { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.rp-head-total { font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.rp-link { color: inherit; }
.rp-link:hover b { color: var(--brand-text); }
.rp-rank { color: var(--faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-share { min-width: 140px; }
.rp-avatar-none { background: var(--surface-3); color: var(--muted); }

.rp-bars { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; gap: 14px; }
.rp-bars li { display: grid; gap: 6px; }
.rp-bars-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rp-bars-top b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-bars small, .rp-rank-main small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rp-bars-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rp-bars-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.rp-bars-track .is-tape { background: var(--tape); }
.rp-bars-track .is-mint { background: var(--success-bright); }
.rp-bars-track .is-coral { background: var(--danger-bright); }
.rp-bars-track .is-violet { background: var(--violet); }
.rp-bars-track .is-sky { background: var(--sky-bright); }
.rp-bars-track .is-gray { background: var(--faint); }

.rp-rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rp-rank-list.rp-pad { padding: 0 20px 18px; }
.rp-rank-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; }
.rp-rank-main { min-width: 0; display: grid; gap: 6px; }
.rp-rank-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.rp-rank-top b { font-weight: 650; min-width: 0; }
.rp-rank-v { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-two { align-items: start; gap: 18px; }

.rp-aging-bar { height: 22px; border-radius: 8px; overflow: hidden; display: flex; gap: 3px; }
.rp-aging-bar i { display: block; height: 100%; }
.rp-ag-current { background: var(--blue); }
.rp-ag-d30 { background: var(--tape); }
.rp-ag-d60 { background: var(--danger-bright); }
.rp-ag-d90 { background: color-mix(in srgb, var(--danger-bright) 60%, var(--danger)); }
.rp-ag-d90plus { background: color-mix(in srgb, var(--danger) 72%, #000); }
.rp-ag { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.rp-ag li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "dot label pct" "val val val"; gap: 6px 8px; align-items: center; padding: 12px 14px; font-size: 13px; }
.rp-ag li + li { border-left: 1px solid var(--line-2); }
.rp-ag em { grid-area: dot; width: 12px; height: 12px; border-radius: 4px; display: block; }
.rp-ag span { grid-area: label; font-weight: 600; color: var(--ink-2); min-width: 0; }
.rp-ag small { grid-area: pct; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.rp-ag b { grid-area: val; font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }

.rp-days { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rp-days .select { min-width: 110px; }

@media (max-width: 1100px) {
  .rp-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-ag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-ag li + li { border-left: 0; }
  .rp-ag li:nth-child(even) { border-left: 1px solid var(--line-2); }
  .rp-ag li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 720px) {
  .rp-chart { height: 210px; }
  .rp-range .select { min-width: 0; }
  .rp-tabs { margin-bottom: 16px; }
}
