/* GENERATED from web/_shared/dashboard.css by scripts/sync-dashboard.mjs: edit the master copy. */
/* Dasurv web dashboards (owner 2026-11-05: "Since we are using web, I don't want to see compact UI").
   One layout for edit.dasurv.app, biz.dasurv.app and merchant.dasurv.app: a sidebar with the sections, a top bar
   on small screens, wide content with summary cards and tables. Layout only: the colours and fonts are each page's
   own design-system tokens (--page, --card, --sunken, --ink, --ink-soft, --ink-faint, --rule, --on-ink, --accent).
   THE MASTER COPY is web/_shared/dashboard.css; scripts/sync-dashboard.mjs copies it into each site. */

.db-shell { min-height: 100vh; }
.db-side { display: none; }
.db-top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px;
  background: var(--card); border-bottom: 1px solid var(--rule); }
.db-top .db-logo { flex: 1; }
.db-menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -8px;
  border: none; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.db-menu-btn svg { width: 22px; height: 22px; }
.db-logo { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; text-decoration: none; color: var(--ink); }
.db-logo b { font-weight: 700; font-size: 20px; letter-spacing: -0.4px; }
.db-logo b i { display: inline-block; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: var(--accent); }
.db-logo small { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The sidebar: always on from 900 px; a drawer below that (body.db-nav-open). */
.db-nav { display: flex; flex-direction: column; gap: 2px; }
.db-nav-label { margin: 16px 12px 6px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.db-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; text-decoration: none;
  color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.db-nav a svg { width: 20px; height: 20px; flex: 0 0 20px; }
.db-nav a:hover { background: var(--sunken); color: var(--ink); }
.db-nav a.on { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.db-nav .db-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; line-height: 22px; font-weight: 600; text-align: center; }
.db-nav .db-count:empty { display: none; }
.db-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule); }
.db-who { display: flex; flex-direction: column; min-width: 0; }
.db-who .name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-who .meta { font-size: 12px; color: var(--ink-soft); }
.db-scrim { display: none; }

@media (max-width: 899px) {
  body.db-nav-open { overflow: hidden; }
  body.db-nav-open .db-side { display: flex; position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(300px, 86vw); box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    animation: db-slide 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  body.db-nav-open .db-scrim { display: block; position: fixed; inset: 0; z-index: 40; background: var(--scrim, rgba(0, 0, 0, 0.45)); }
}
@keyframes db-slide { from { transform: translateX(-100%); } }
.db-side { flex-direction: column; gap: 20px; padding: 24px 16px; background: var(--card); border-right: 1px solid var(--rule); overflow-y: auto; }
@media (min-width: 900px) {
  .db-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); }
  .db-side { display: flex; position: sticky; top: 0; height: 100vh; }
  .db-top { display: none; }
}

/* The content: wide, never a phone column. */
.db-main { min-width: 0; padding: 24px 16px 48px; }
.db-main > * { max-width: 1440px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .db-main { padding: 32px 32px 64px; } }
.db-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.db-head h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.3px; }
.db-head .meta { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.db-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Summary cards */
.db-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.db-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius-card, 16px); background: var(--card);
  text-decoration: none; color: var(--ink); min-width: 0; }
a.db-card:hover { box-shadow: inset 0 0 0 1px var(--rule); }
.db-card .label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.db-card .value { font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-card .sub { font-size: 13px; color: var(--ink-soft); }
.db-card.warn .value { color: var(--warn, #b45309); }

/* A panel (card) and the toolbar above a table */
.db-panel { background: var(--card); border-radius: var(--radius-card, 16px); padding: 20px; min-width: 0; }
.db-panel + .db-panel { margin-top: 16px; }
.db-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.db-panel-head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.db-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.db-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .db-grid-2 { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); } }

/* Tables: a real table on wide screens, labelled rows on phones (each td carries data-label). */
.db-table-wrap { background: var(--card); border-radius: var(--radius-card, 16px); overflow: auto; }
.db-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.db-table th { position: sticky; top: 0; z-index: 1; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--rule);
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); white-space: nowrap; }
.db-table td { padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.db-table tbody tr:last-child td { border-bottom: none; }
.db-table tbody tr.click { cursor: pointer; }
.db-table tbody tr.click:hover td { background: var(--sunken); }
.db-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.db-table .muted { color: var(--ink-soft); }
.db-table th button { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: none; background: none; font: inherit; color: inherit; cursor: pointer; }
.db-table th button.on { color: var(--ink); }
.db-table th button.on::after { content: '↓'; }
@media (max-width: 760px) {
  .db-table thead { display: none; }
  .db-table, .db-table tbody, .db-table tr, .db-table td { display: block; width: 100%; }
  .db-table tr { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .db-table tbody tr:last-child { border-bottom: none; }
  .db-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: none; text-align: right; }
  .db-table td::before { content: attr(data-label); color: var(--ink-soft); font-size: 12px; text-align: left; flex: 0 0 auto; }
  .db-table td[data-label=""]::before { content: none; }
  .db-table td.db-first { display: block; text-align: left; padding-bottom: 6px; }
  .db-table td.db-first::before { content: none; }
}
