:root {
  --bg: #0a0a0c;
  --sidebar-bg: #0d0d10;
  --panel: #161619;
  --panel-2: #1d1d21;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f2f4;
  --muted: #9a9aa3;
  --muted-2: #7e7e87;
  --accent: #ff7a3d;
  --accent-2: #ff9457;
  --accent-grad: linear-gradient(135deg, #ff9457 0%, #ff6a3d 55%, #f5471f 100%);
  --accent-ink: #2a0f00;
  --success: #34d399;
  --warning: #eab308;
  --danger: #f87171;
  --info: #60a5fa;
  --violet: #a78bfa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  scrollbar-color: var(--border-strong) var(--bg);
  scrollbar-width: thin;
  -webkit-user-select: none;
  user-select: none;
}

/* ...but keep actual data selectable/copyable — customer names, phone
   numbers, addresses, order numbers, log entries, tokens in form fields */
td, input, textarea, pre, code {
  -webkit-user-select: text;
  user-select: text;
}

/* modern themed scrollbar (Chrome/Edge/Safari) — replaces the default OS scrollbar everywhere in the admin panel */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 8px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--bg); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- layout ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
}
.brand-emoji { font-size: 28px; }
.brand-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--border); }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.2px; }
.brand-sub { font-size: 11px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }

.nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }

/* max-height transition rather than the fancier grid-template-rows: 0fr
   trick — the fr-unit version doesn't reliably animate/settle across
   engines, this one (a fixed ceiling comfortably above the tallest real
   group) does, universally. */
.nav-section-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  max-height: 320px;
  transition: max-height 0.2s ease;
}
.nav-section.collapsed .nav-section-links { max-height: 0; }
@media (prefers-reduced-motion: reduce) {
  .nav-section-links { transition: none; }
}

.nav-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 14px 10px 4px;
  padding: 0;
  background: none;
  border: none;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted-2);
  cursor: pointer;
}
.nav-group:hover { color: var(--muted); }
.nav-group-static { cursor: default; }
.nav-group-static:hover { color: var(--muted-2); }
.nav-group-chevron { display: inline-block; font-size: 8px; transition: transform 0.15s ease; }
.nav-section.collapsed .nav-group-chevron { transform: rotate(-90deg); }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
}
.nav-link:hover { background: var(--panel); color: var(--text); }
.nav-count {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 20px;
  line-height: 1.5;
}
.nav-link.active .nav-count { background: rgba(0, 0, 0, 0.25); }
.nav-link.active {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: 0 4px 12px rgba(255, 106, 61, 0.25);
}
.nav-icon { font-size: 15px; width: 18px; text-align: center; }
.logout-link { margin-top: 10px; color: var(--danger); }

.sidebar-footer {
  margin: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hours-label { font-size: 11px; color: var(--muted-2); font-weight: 700; text-transform: uppercase; }
.hours-status { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
.hours-status.open { color: var(--success); }
.hours-status.closed { color: var(--danger); }
.hours-value { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.hours-edit {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 7px;
  background: var(--panel-2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  z-index: 5;
}
.topbar-burger { background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; display: none; }
.topbar-title { font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.bell { position: relative; font-size: 18px; color: var(--muted); display: inline-block; }
@keyframes bbq-bell-pulse {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-18deg); }
  40% { transform: rotate(14deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}
.bell-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
}

.profile { display: flex; align-items: center; gap: 9px; }
.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.profile-name { font-size: 13px; font-weight: 700; }
.profile-role { font-size: 11px; color: var(--muted-2); }

.content { padding: 24px 28px 40px; max-width: 1400px; width: 100%; margin: 0 auto; }

h1 { font-size: 20px; margin: 0 0 18px; font-weight: 800; }
h2 { font-size: 14.5px; margin: 26px 0 12px; color: var(--muted); font-weight: 700; }

/* ---------- cards / stats ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  /* grid items default to min-width:auto, so a wide table inside one card
     would otherwise force the whole grid row (all sibling cards) wider than
     the viewport instead of scrolling locally inside .table-wrap */
  min-width: 0;
}

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-top { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-card .stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-icon.orange { background: rgba(255, 122, 61, 0.16); color: #ff9457; }
.stat-icon.blue { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.stat-icon.green { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.stat-icon.violet { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
.stat-icon.yellow { background: rgba(234, 179, 8, 0.16); color: #eab308; }
.stat-icon.red { background: rgba(248, 113, 113, 0.16); color: #f87171; }

.stat-value { font-size: 27px; font-weight: 800; margin-top: 10px; letter-spacing: -0.5px; }
.stat-trend { font-size: 12px; font-weight: 700; margin-top: 4px; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }
.stat-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) {
  .grid-2, .grid-2-even { grid-template-columns: 1fr; }
}

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-head h3 { font-size: 14.5px; margin: 0; font-weight: 800; }

/* ---------- tables ---------- */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--muted-2); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.4px; }
tr:hover td { background: var(--panel-2); }
.table-wrap { overflow-x: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-grad);
  color: var(--accent-ink);
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(255, 106, 61, 0.25);
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn.success { background: var(--success); color: #062015; box-shadow: none; }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn.ghost { background: none; box-shadow: none; border: 1px solid var(--border-strong); color: var(--muted); }
.btn.disabled { pointer-events: none; opacity: 0.4; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.pagination-info { font-size: 12.5px; }

/* ---------- forms ---------- */

input[type=text], input[type=number], input[type=password], input[type=file],
input[type=date], input[type=tel], select, textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  margin-bottom: 12px;
}
label { display: block; font-size: 12.5px; color: var(--muted); margin: 16px 0 4px; font-weight: 600; }
label:first-of-type { margin-top: 0; }
.field-with-button { margin-bottom: 16px; }
.field-hint { font-size: 13px; margin: 0 0 16px; }
.row { display: flex; gap: 16px; align-items: stretch; }
.row > div { flex: 1; display: flex; flex-direction: column; }
.row > div input, .row > div select, .row > div textarea { margin-top: auto; }

.admin-checkbox {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}

.allergen-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.allergen-check {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  cursor: pointer;
  margin: 0 !important;
}
.allergen-check:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 122, 61, 0.1);
}

/* ---------- badges / pills ---------- */

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge.new { background: rgba(255, 122, 61, 0.16); color: var(--accent-2); }
.badge.confirmed { background: rgba(234, 179, 8, 0.16); color: var(--warning); }
.badge.cooking { background: rgba(255, 122, 61, 0.16); color: var(--accent-2); }
.badge.ready { background: rgba(52, 211, 153, 0.16); color: var(--success); }
.badge.courier { background: rgba(167, 139, 250, 0.16); color: var(--violet); }
.badge.completed { background: rgba(52, 211, 153, 0.22); color: var(--success); }
.badge.cancelled { background: rgba(248, 113, 113, 0.16); color: var(--danger); }
.badge.paid { background: rgba(52, 211, 153, 0.16); color: var(--success); }
.badge.unpaid { background: rgba(248, 113, 113, 0.16); color: var(--danger); }
.badge.role-admin { background: rgba(255, 122, 61, 0.16); color: var(--accent-2); }
.badge.role-manager { background: rgba(96, 165, 250, 0.16); color: var(--info); }

.type-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; vertical-align: middle; }

.order-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  font-size: 13px;
  flex-shrink: 0;
}
.order-type-badge.delivery { background: rgba(96, 165, 250, 0.18); }
.order-type-badge.pickup { background: rgba(167, 139, 250, 0.18); color: #a78bfa; }
.cell-flex { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
td { vertical-align: middle; }

/* ---------- flash ---------- */

.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; }
.flash.success { background: rgba(52, 211, 153, 0.14); color: var(--success); }
.flash.error { background: rgba(248, 113, 113, 0.14); color: var(--danger); }
.flash.warning { background: rgba(234, 179, 8, 0.14); color: var(--warning); }

/* ---------- login ---------- */

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { width: 340px; }
.login-box .card { text-align: left; }

/* ---------- misc ---------- */

.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--panel-2); }
.muted { color: var(--muted); }
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters select { width: auto; margin-bottom: 0; }
.filters a.btn { padding: 9px 14px; }

/* quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.quick-action:hover { border-color: var(--border-strong); }
.quick-action .qa-icon { font-size: 22px; }

/* status donut (conic-gradient, no JS chart lib) */
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-inner {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.donut-inner .n { font-size: 20px; font-weight: 800; }
.donut-inner .l { font-size: 10px; color: var(--muted-2); text-transform: uppercase; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; flex: 1; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend-item span:last-child { margin-left: auto; color: var(--muted); font-weight: 700; }

/* daily revenue bar chart */
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  overflow-x: auto;
  padding-top: 8px;
}
.revenue-bar-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
  min-width: 18px;
  height: 100%;
}
.revenue-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: var(--accent-grad);
}
.revenue-bar-label {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
  height: 13px;
}

/* order status timeline (stepper) */
.order-timeline { display: flex; align-items: flex-start; overflow-x: auto; padding: 6px 2px; }
.order-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 64px;
}
.order-timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--border-strong);
  background: var(--panel-2);
  color: var(--muted-2);
  flex-shrink: 0;
}
.order-timeline-step.done .order-timeline-dot { background: var(--success); border-color: var(--success); color: #062015; }
.order-timeline-step.current .order-timeline-dot {
  background: var(--accent-grad);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.18);
}
.order-timeline-label { font-size: 11px; font-weight: 700; color: var(--muted-2); text-align: center; }
.order-timeline-step.done .order-timeline-label,
.order-timeline-step.current .order-timeline-label { color: var(--text); }
.order-timeline-line { flex: 1; height: 2px; background: var(--border-strong); margin-top: 13px; min-width: 16px; }
.order-timeline-line.done { background: var(--success); }

/* telegram activity widget */
.tg-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.tg-icon { font-size: 22px; }
.tg-item .tg-name { font-weight: 700; font-size: 13px; }
.tg-item .tg-sub { font-size: 11.5px; color: var(--muted-2); }
.tg-item .btn { margin-left: auto; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.ok { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.bad { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
.status-dot.warn { background: var(--warning); box-shadow: 0 0 6px var(--warning); }

.progress-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.progress-bar > span { display: block; height: 100%; background: var(--accent-grad); }

/* ---------- customer ratings ---------- */

.rating-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.rating-score { text-align: center; flex-shrink: 0; min-width: 110px; }
.rating-score-value { font-size: 40px; font-weight: 800; line-height: 1; color: var(--text); }
.rating-score-stars { font-size: 15px; margin-top: 6px; letter-spacing: 1px; }
.rating-score-count { font-size: 12px; margin-top: 4px; }
.rating-bars { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row { display: grid; grid-template-columns: 32px 1fr 26px; align-items: center; gap: 10px; font-size: 12.5px; }
.rating-bar-row .progress-bar { margin-top: 0; }
.rating-bar-label { color: var(--muted); white-space: nowrap; }
.rating-bar-count { text-align: right; color: var(--muted-2); }

.review-mini-list { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.review-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 6px; border-radius: 8px; cursor: pointer; font-size: 12.5px; }
.review-mini-row:hover { background: var(--panel-2); }
.review-mini-stars { letter-spacing: 1px; }

.rating-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rating-filter a.btn.active { background: var(--accent-grad); color: var(--accent-ink); box-shadow: none; }

.action-btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.actions-cell { white-space: nowrap; }

.recipe-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.recipe-row select { flex: 1; margin: 0; }
.recipe-row input { width: 130px; flex-shrink: 0; margin: 0; }

.order-type-fields { display: none; }
.backup-remote-fields { display: none; }

/* ---------- responsive / mobile ---------- */

.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .shell { display: block; }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

  .main { min-width: 0; }

  .topbar-burger { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
  .topbar { padding: 12px 14px; gap: 10px; }
  .topbar-title { font-size: 15px; }
  .topbar-actions { gap: 12px; }
  .profile-name, .profile-role { display: none; }

  .content { padding: 16px 14px 32px; }

  h1 { font-size: 17px; }

  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 22px; }

  .quick-actions { grid-template-columns: repeat(2, 1fr); }

  .card { padding: 14px; }

  .donut-wrap { flex-direction: column; align-items: flex-start; gap: 14px; }

  .row { flex-direction: column; gap: 0; }

  .admin-checkbox { width: 26px; height: 26px; min-width: 26px; }

  .login-box { width: 92vw; max-width: 340px; }

  th, td { padding: 8px 9px; font-size: 12.5px; }

  /* wide multi-column tables become a stacked list of cards instead of
     scrolling sideways — each row turns into a card, each cell into a
     label/value line via the data-label attribute set in the template */
  table.responsive-table { border: none; }
  table.responsive-table tr:first-child { display: none; }
  table.responsive-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--panel-2);
  }
  table.responsive-table tr:hover td { background: none; }
  table.responsive-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: none;
    font-size: 13px;
  }
  table.responsive-table td.actions-cell {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }
  table.responsive-table td.responsive-block {
    display: block;
  }
  table.responsive-table td.responsive-block::before {
    display: block;
    margin-bottom: 6px;
  }
  table.responsive-table td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    color: var(--muted-2);
    font-weight: 700;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
  }
}
