:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-deep: #1e3a8a;
  --brand-soft: #eff6ff;
  --grad: linear-gradient(160deg, #7dd3fc 0%, #3b82f6 42%, #1d4ed8 72%, #1e3a8a 100%);
  --grad-btn: linear-gradient(135deg, #60a5fa, #2563eb 55%, #1d4ed8);
  --grad-hero: linear-gradient(135deg, #38bdf8 0%, #2563eb 55%, #1e40af 100%);
  --ok: #059669;
  --warn: #d97706;
  --bad: #e11d48;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5fb;
  --card: #fff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.22);
  --radius: 18px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); }
body.asomafuor-app {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--brand-dark); }
::selection { background: #bfdbfe; }

.boot {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}
.brand-mark, .boot .mark {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(37, 99, 235, 0.18);
}
.boot .mark svg, .brand-mark svg { display: block; }

.login-wrap {
  min-height: 100dvh;
  background: var(--grad);
  display: grid;
  place-items: center;
  padding: 24px 16px 56px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before,
.login-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-wrap::before {
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.18);
  top: -120px;
  right: -80px;
}
.login-wrap::after {
  width: 280px;
  height: 280px;
  background: rgba(15, 23, 42, 0.12);
  bottom: -80px;
  left: -40px;
}
.login-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 32px 26px 24px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.45s ease;
}
.login-card h1 {
  margin: 14px 0 0;
  text-align: center;
  color: var(--brand-deep);
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: -0.03em;
}
.tagline {
  text-align: center;
  color: var(--muted);
  margin: 8px 0 22px;
  line-height: 1.45;
  font-size: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: #334155; font-weight: 600; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
  outline: none;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-wrap button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.pw-wrap button:hover { background: var(--brand-soft); color: var(--brand-deep); }

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e2e8f0;
  color: var(--ink);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:not(:disabled):hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.btn-wide { width: 100%; padding: 13px; margin-top: 4px; }
.btn-sm { padding: 8px 12px; border-radius: 999px; font-size: 13px; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.22); }
.icon-btn.is-refreshing svg { animation: spin 0.8s linear infinite; }
.error {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  font-size: 13px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  min-height: 0;
}
.error:empty { display: none; }

.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--grad);
  color: #fff;
  padding: 8px 16px 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.top-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lock {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.top h1 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top small { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; opacity: 0.9; font-size: 11px; font-weight: 500; }
.top-actions { display: flex; gap: 6px; flex-shrink: 0; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
}
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.25);
  animation: pulse 1.8s ease infinite;
}
.live-pill.off i { background: #fdba74; box-shadow: none; animation: none; }

.pad {
  padding: 0 16px 28px;
  max-width: 1280px;
  width: 100%;
  margin: -18px auto 0;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--grad-hero);
  color: #fff;
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
button.hero-card {
  font: inherit;
  cursor: pointer;
  width: 100%;
  border: 0;
  text-align: left;
  color: #fff;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  right: -40px;
  top: -50px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}
.hero-side {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.hero-side div {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
}
.hero-side span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero-side b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  letter-spacing: -0.03em;
}
@media (min-width: 760px) {
  .hero-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
  .hero-side {
    grid-template-columns: 1fr;
  }
}
.hero-card h2 {
  margin: 4px 0 14px;
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: -0.04em;
  position: relative;
}
.hero-value {
  position: relative;
  font-size: clamp(32px, 8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.92;
}
.hero-meta b { font-weight: 800; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
  min-height: 96px;
  width: 100%;
  text-align: left;
  color: inherit;
  display: block;
}
button.kpi, button.alert-card, button.mix-hit {
  cursor: pointer;
  font: inherit;
}
button.kpi:hover, button.alert-card:hover, .row-item.tap:hover, button.mix-hit:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}
.kpi-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.kpi.warn .kpi-ico { background: #fff7ed; color: var(--warn); }
.kpi.bad .kpi-ico { background: #fff1f2; color: var(--bad); }
.kpi.ok .kpi-ico { background: #ecfdf5; color: var(--ok); }
.kpi span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.kpi b {
  display: block;
  font-size: clamp(18px, 4.2vw, 22px);
  margin-top: 4px;
  letter-spacing: -0.03em;
}

.panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
  margin-top: 12px;
}
.panel h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.split { display: grid; gap: 12px; }

.section {
  margin: 20px 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.section h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }

.grid { display: grid; gap: 10px; }
.branch {
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  padding: 14px 14px 14px 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.branch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-btn);
}
.branch.wh::before { background: linear-gradient(180deg, #fbbf24, #d97706); }
.branch .row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.branch strong { font-size: 15px; letter-spacing: -0.02em; }
.branch .today-fig { font-size: 18px; letter-spacing: -0.03em; }
.branch-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.branch-stats div {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px;
}
.branch-stats span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.branch-stats b { font-size: 12px; }

.badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge.wh { background: #fef3c7; color: #92400e; }
.pay {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: capitalize;
  background: #f1f5f9;
  color: #334155;
}
.pay.cash { background: #ecfdf5; color: #047857; }
.pay.momo { background: #fff7ed; color: #c2410c; }
.pay.card { background: #eff6ff; color: #1d4ed8; }
.pay.credit { background: #f5f3ff; color: #6d28d9; }
.pay.insurance { background: #ecfeff; color: #0f766e; }
.pay.split { background: #f1f5f9; color: #475569; }

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 12px 0;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: var(--shadow);
  border: 1px solid #eef2f7;
}
.tabs button.on {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
.tabs button em {
  font-style: normal;
  opacity: 0.72;
  font-weight: 700;
  margin-left: 4px;
}

.rows { display: grid; gap: 0; }
.row-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
  align-items: start;
  width: 100%;
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 10px;
  color: inherit;
  text-align: left;
}
.row-item.tap { cursor: pointer; }
.row-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.row-item strong { display: block; font-size: 14px; letter-spacing: -0.02em; }
.row-item .meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-side { text-align: right; }
.row-side b { display: block; font-size: 14px; letter-spacing: -0.02em; }
.row-side small { color: var(--muted); font-size: 11px; }
.qty {
  font-weight: 800;
  font-size: 13px;
}
.qty.low { color: var(--warn); }
.qty.out, .exp.expired { color: var(--bad); }

.muted { color: var(--muted); }
.empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
}
.empty .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: var(--brand);
}
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
.empty p { margin: 0; font-size: 13px; line-height: 1.45; }

.notice {
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.notice-off { background: #ecfeff; color: #155e75; border: 1px solid #a5f3fc; }
.notice-err { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.notice-bad { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

.alerts { display: grid; gap: 8px; margin-top: 12px; }
.alert-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  color: inherit;
  border-left: 4px solid #93c5fd;
}
.alert-card.warn { border-left-color: #f59e0b; }
.alert-card.warn .kpi-ico { background: #fff7ed; color: var(--warn); }
.alert-card.bad { border-left-color: #e11d48; }
.alert-card.bad .kpi-ico { background: #fff1f2; color: var(--bad); }
.alert-card.credit { border-left-color: #7c3aed; }
.alert-card.credit .kpi-ico { background: #f5f3ff; color: #6d28d9; }
.alert-card .kpi-ico { margin: 0; flex-shrink: 0; }
.alert-card p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.alert-card b { font-size: 14px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 168px;
  margin-top: 10px;
  padding: 18px 4px 0;
}
.chart-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background-image: linear-gradient(to top, #e2e8f0 1px, transparent 1px);
  background-size: 100% 25%;
}
.chart-val {
  font-size: 9px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.chart-bar {
  width: min(100%, 22px);
  background: linear-gradient(180deg, #7dd3fc, #2563eb);
  border-radius: 7px 7px 3px 3px;
  min-height: 6px;
}
.chart-col.is-empty .chart-bar {
  height: 4px !important;
  min-height: 4px;
  background: #e2e8f0;
  opacity: 0.9;
}
.chart-bar.today { background: linear-gradient(180deg, #fde68a, #f59e0b); }
.chart-col.is-today span { color: #b45309; font-weight: 800; }
.chart-col span {
  font-size: 10px;
  color: #64748b;
  margin-top: 6px;
  font-weight: 700;
}

.mix-panel { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.donut-btn {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.donut-svg { display: block; }
.donut-center {
  position: absolute;
  inset: 22px;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.donut-center small { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.donut-center b { font-size: 11px; letter-spacing: -0.03em; line-height: 1.15; max-width: 68px; }
.mix { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.mix-hit {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 2px 0;
  text-align: left;
  color: inherit;
}
.hbar-lab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  gap: 10px;
}
.hbar-lab span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hbar-lab em {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}
.hbar-lab b {
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.hbar-lab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.hbar-track { height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-top: 5px; }
.hbar-track div { height: 100%; border-radius: 99px; }

.site-foot {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
}
.site-foot .mehra-link {
  color: var(--brand-deep);
  font-weight: 800;
  text-decoration: none;
}
.site-foot .mehra-link:hover { text-decoration: underline; }
.site-foot.on-dark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.site-foot.on-dark .mehra-link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  background: #0f172a;
  color: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  display: none;
}
.install.show { display: block; }
.install h3 { margin: 0 0 6px; font-size: 16px; }
.install p { margin: 0 0 12px; color: #cbd5e1; font-size: 13px; }
.install .row { display: flex; gap: 8px; }
.install .btn-sm { background: #1e293b; color: #fff; }
.ios-steps { font-size: 13px; color: #cbd5e1; margin: 0 0 12px; padding-left: 18px; }

.skel {
  background: linear-gradient(90deg, #e2e8f0 0%, #f8fafc 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease infinite;
  border-radius: 12px;
  color: transparent !important;
}
.hero-card.skel { min-height: 168px; }
.kpi.skel { min-height: 96px; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.filters .wide { grid-column: 1 / -1; }
.filters select, .filters input {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.filters select:focus, .filters input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.facts {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}
.fact:last-child { border-bottom: 0; }
.fact span { color: var(--muted); }
.fact b { text-align: right; }
.pay-split { display: grid; gap: 8px; margin-top: 8px; }
.hint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.panel.tap { cursor: pointer; }

@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .grid.branches { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1.2fr 0.8fr; }
  .alerts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .pad { padding-left: 28px; padding-right: 28px; }
  .top { padding-left: 28px; padding-right: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
