:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --line: #e8ecf4;
  --paper: #f7f8fc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #94a3b8;
  --soft: #64748b;
  --brand: #16a34a;
  --brand-2: #0d9488;
  --brand-3: #22c55e;
  --brand-ink: #052e16;
  --brand-soft: #ecfdf5;
  --mint: #10b981;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --ok-text: #047857;
  --warn: #d97706;
  --warn-bg: #fff7ed;
  --warn-text: #c2410c;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --danger-text: #be123c;
  --info: #0ea5e9;
  --info-bg: #f0f9ff;
  --info-text: #0369a1;
  --shadow: 0 10px 30px rgba(2, 44, 34, .05);
  --shadow-lg: 0 18px 48px rgba(2, 44, 34, .10);
  --radius: 18px;
  --sidebar: 272px;
  --top: 72px;
  --fs-xs: 11.5px;
  --fs-sm: 12.5px;
  --fs-md: 13.5px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  --display: "Plus Jakarta Sans", Inter, "Segoe UI", sans-serif;
  --sans: Inter, "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.5;
  letter-spacing: -.01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-md); color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.025em;
  font-weight: 600;
  line-height: 1.3;
}
h1 { font-size: var(--fs-xl); font-weight: 700; }
h2 { font-size: 18px; font-weight: 600; color: var(--ink-2); }
h3 { font-size: var(--fs-lg); font-weight: 600; color: var(--ink-3); }
p { margin: 0 0 10px; color: var(--ink-3); font-size: var(--fs-md); }
strong, b { font-weight: 600; color: var(--ink-2); }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  background:
    radial-gradient(circle at 20% 0%, rgba(34,197,94,.28), transparent 38%),
    radial-gradient(circle at 100% 78%, rgba(13,148,136,.20), transparent 34%),
    linear-gradient(180deg, #04150d 0%, #06251a 100%);
  color: #e2e8f0;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  transition: transform .25s ease;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 10px 22px;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: -.04em;
  box-shadow: 0 8px 18px rgba(34,197,94,.35);
}
.brand strong { font-family: var(--display); font-size: 15px; font-weight: 700; color: #f8fafc; }
.brand small { display: block; color: #94a3b8; font-size: var(--fs-xs); font-weight: 500; }
.nav-scroll { overflow-y: auto; flex: 1; padding-right: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.nav-scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
.nav-label {
  color: #7c879c; font-size: 10.5px; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase; padding: 16px 12px 8px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px; color: #cbd5e1;
  margin-bottom: 4px; font-size: var(--fs-md); font-weight: 500;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.active {
  background: linear-gradient(135deg, rgba(34,197,94,.24), rgba(13,148,136,.18));
  color: #fff; box-shadow: inset 0 0 0 1px rgba(34,197,94,.30);
}
.nav-link.active .nav-ico { background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); }
.nav-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); font-size: 13px;
}

.main { margin-left: var(--sidebar); flex: 1; min-width: 0; }
.topbar {
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; position: sticky; top: 0; z-index: 20;
  background: rgba(247,248,252,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,236,244,.9);
}
.page-title h1 {
  margin: 0; font-family: var(--display);
  font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.03em; color: var(--ink);
}
.page-title p { margin: 3px 0 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; min-width: 240px; display: flex; gap: 8px; align-items: center;
  color: var(--muted); font-size: var(--fs-md);
}
.search input { border: 0; outline: 0; width: 100%; background: transparent; font-size: var(--fs-md); color: var(--ink-3); }
.icon-btn, .btn, .badge, .chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; color: var(--soft); font-size: 15px;
}
.user-chip {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px 6px 6px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3);
}
.avatar {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-xs);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.brand-mark-img { padding: 0; overflow: hidden; background: #fff; }
.brand-preview { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; display: grid; place-items: center; }
.brand-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-preview.sm { width: 40px; height: 40px; border-radius: 10px; }
input[type="color"].input { padding: 4px; height: 42px; cursor: pointer; }
.brand-live {
  border-radius: 18px; padding: 18px; min-height: 220px;
  background: linear-gradient(180deg, #04150d, #06251a); color: #ecfdf5;
}
.brand-live-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.brand-live-logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-3, #22c55e), var(--brand-2, #0d9488));
  color: #fff; font-weight: 800;
}
.brand-live strong { display: block; color: #fff; }
.brand-live small { color: #94a3b8; }
.brand-live .btn-primary { margin-right: 8px; }

.content { padding: 22px; }
.content.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s ease; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }
.mt { margin-top: 16px; }

.card {
  background: var(--card);
  border: 1px solid #eef1f8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-3);
}
.stat { position: relative; overflow: hidden; min-height: 118px; }
.stat::after {
  content: ""; position: absolute; right: -24px; top: -24px;
  width: 104px; height: 104px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,197,94,.14), rgba(13,148,136,.10));
}
.stat .label { color: var(--soft); font-size: var(--fs-sm); font-weight: 500; }
.stat .value {
  font-family: var(--display);
  font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.04em;
  margin: 8px 0 4px; color: var(--ink);
}
.stat .hint { font-size: var(--fs-xs); color: var(--ok); font-weight: 500; }
.stat .hint.danger { color: var(--danger-text); }

/* icon stat cards */
.stat-ico {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; margin-bottom: 12px;
  background: var(--brand-soft); color: var(--brand);
}
.stat-ico.tone-blue { background: var(--info-bg); color: var(--info-text); }
.stat-ico.tone-amber { background: var(--warn-bg); color: var(--warn-text); }
.stat-ico.tone-rose { background: var(--danger-bg); color: var(--danger-text); }
.stat-ico.tone-violet { background: #f5f3ff; color: #6d28d9; }
.stat .value.sm { font-size: 20px; }
.trend { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 600; }
.trend.up { color: var(--ok-text); }
.trend.down { color: var(--danger-text); }

.btn {
  border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; font-weight: 600;
  font-size: var(--fs-md); background: #eef0f8; color: var(--ink-3);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; box-shadow: 0 8px 18px rgba(22,163,74,.28);
}
.btn-primary:hover { filter: brightness(1.04); }
.btn-ok { background: var(--ok-bg); color: var(--ok-text); }
.btn-warn { background: var(--warn-bg); color: var(--warn-text); }
.btn-danger { background: var(--danger-bg); color: var(--danger-text); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--soft); }
.btn-sm { padding: 7px 10px; font-size: var(--fs-xs); border-radius: 10px; font-weight: 600; }
.btn-block { width: 100%; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left; padding: 13px 10px; border-bottom: 1px solid #f1f4f9;
  font-size: var(--fs-md); color: var(--ink-3); font-weight: 500;
}
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
td strong { font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); }
td .muted { margin-top: 2px; }
tr:hover td { background: #fafbff; }

.badge {
  border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 600;
  letter-spacing: .01em; background: var(--brand-soft); color: var(--brand); text-transform: capitalize;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-text); }
.badge.warn { background: var(--warn-bg); color: var(--warn-text); }
.badge.danger { background: var(--danger-bg); color: var(--danger-text); }
.badge.info { background: var(--info-bg); color: var(--info-text); }
.badge.muted { background: #f1f5f9; color: var(--soft); }
.badge.dot::before { content: "•"; margin-right: 2px; }

.seat-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eef1f6;
}
.seat-toolbar-name { display: flex; align-items: center; gap: 10px; }
.seat-toolbar-name strong { font-size: 18px; }
.seat-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  text-decoration: none; line-height: 1; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-pill[hidden], .edit-val[hidden], .view-val[hidden] { display: none !important; }
.btn-pill span { font-size: 16px; line-height: 1; }
.btn-pill:hover { transform: translateY(-1px); }
.btn-pill-ghost {
  background: #fff; color: #1f2937; border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.btn-pill-ghost:hover { border-color: #cbd5e1; box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.btn-pill-soft {
  background: #eef2ff; color: #3730a3;
  box-shadow: 0 6px 16px rgba(79,70,229,.12);
}
.btn-pill-soft:hover { filter: brightness(1.03); }
.btn-pill-primary {
  background: linear-gradient(135deg, var(--brand-3), var(--brand-2));
  color: #fff; box-shadow: 0 10px 22px rgba(22,163,74,.28);
}
.btn-pill-primary:hover { filter: brightness(1.05); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters .input, .filters select { width: auto; min-width: 160px; flex: 1; }
.input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 11px 12px; outline: 0; font-size: var(--fs-md); color: var(--ink-2);
}
.input::placeholder, textarea::placeholder { color: #b6bfce; }
.input:focus, select:focus, textarea:focus { border-color: #86efac; box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; color: var(--soft); }
.field { margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.flash {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  font-weight: 600; font-size: var(--fs-md);
}
.flash.success { background: var(--ok-bg); color: var(--ok-text); }
.flash.error { background: var(--danger-bg); color: var(--danger-text); }

.modal-bg {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .42);
  display: none; align-items: flex-end; justify-content: center; z-index: 60; padding: 16px;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff; width: min(720px, 100%); border-radius: 20px;
  padding: 22px; max-height: 90vh; overflow: auto;
}
.modal h3 { margin: 0 0 16px; font-size: 17px; color: var(--ink); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: var(--fs-sm); color: var(--soft);
}
.tab.active { background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(22,163,74,.24); }

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }

.auth-wrap {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr;
  background: #070b16;
}
.auth-art {
  padding: 48px; color: #e2e8f0;
  background:
    radial-gradient(circle at 20% 20%, rgba(34,197,94,.42), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(13,148,136,.28), transparent 26%),
    linear-gradient(160deg, #04150d, #06251a);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art h2 { font-size: 38px; line-height: 1.18; letter-spacing: -.04em; max-width: 520px; font-weight: 700; color: #f8fafc; }
.auth-art .lead { color: #94a3b8; max-width: 460px; font-size: var(--fs-md); font-weight: 500; }
.auth-art .foot { color: #64748b; font-size: var(--fs-sm); }
.auth-panel { background: #f6f7fb; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.auth-card > p { color: var(--muted); font-size: var(--fs-md); }
.hint-text { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }

.menu-btn { display: none; }
.overlay { display: none; }

.list-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f4f9;
}
.list-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.list-item strong { font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); }
.item-title { display: block; font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); letter-spacing: -.015em; }
.item-meta { margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.item-value { font-size: var(--fs-md); font-weight: 600; color: var(--soft); white-space: nowrap; }
.item-date { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.muted { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.meta-grid .muted { margin-bottom: 3px; }
.meta-grid strong { font-size: var(--fs-md); color: var(--ink-2); }

.receipt {
  max-width: 720px; margin: 24px auto; background: #fff; padding: 28px; border-radius: 16px; color: var(--ink-3);
}
.receipt h2 { margin: 0; font-size: 22px; color: var(--ink); }
.receipt p { font-size: var(--fs-md); color: var(--ink-3); }
.receipt strong { color: var(--ink-2); }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--brand-soft); color: var(--brand); padding: 2px 6px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 600; }
.api-box { background: #04150d; color: #a7f3d0; border-radius: 14px; padding: 14px; overflow: auto; font-size: 12.5px; line-height: 1.55; }
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f1f4f9;
  font-size: var(--fs-md); font-weight: 500; color: var(--ink-3);
}
.switch:last-of-type { border-bottom: 0; }
.power-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.power-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600;
}
#staffVendorGrid .vendor-card { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }

.seat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px;
}
.seat {
  border-radius: 14px; padding: 12px 10px; text-align: center; border: 1px solid #e6eaf2;
  background: #f8fafc; position: relative; transition: transform .12s ease, box-shadow .12s ease;
}
.seat:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.seat-no { font-weight: 800; font-size: 16px; color: var(--ink); }
.seat-meta { font-size: 11px; color: var(--muted); margin-top: 2px; min-height: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-free { background: #f8fafc; border-color: #e2e8f0; }
.seat-occupied { background: #dcfce7; border-color: #86efac; }
.seat-maint { background: #fff7ed; border-color: #fed7aa; }
.seat-actions { display: flex; gap: 4px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.seat-actions form { margin: 0; }
.mini {
  border: 1px solid #dbe2ee; background: #fff; border-radius: 8px; padding: 3px 8px;
  font-size: 11px; cursor: pointer; color: var(--ink-3);
}
.mini:hover { background: #f1f5f9; }
.mini.danger { color: #dc2626; border-color: #fecaca; }

/* ---- Modern dashboard components ---- */
.card.hoverable { transition: transform .15s ease, box-shadow .15s ease; }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card.grad {
  color: #ecfdf5; border: 0;
  background:
    radial-gradient(circle at 88% -10%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(135deg, var(--brand), var(--brand-2));
}
.card.grad .label, .card.grad .muted, .card.grad p { color: rgba(236,253,245,.82); }
.card.grad .value, .card.grad h3 { color: #fff; }

.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.section-head h3 { margin: 0; }
.section-head .link { font-size: var(--fs-sm); font-weight: 600; color: var(--brand); }

/* Simple CSS bar chart */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 168px; padding-top: 10px; }
.chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar {
  width: 100%; max-width: 42px; border-radius: 8px 8px 4px 4px; min-height: 4px;
  background: linear-gradient(180deg, var(--brand-3), var(--brand)); transition: height .4s ease;
}
.chart .bar.alt { background: linear-gradient(180deg, #7dd3fc, var(--info)); }
.chart .bar-label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.chart .bar-val { font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.legend { display: flex; gap: 16px; margin-top: 12px; font-size: var(--fs-xs); color: var(--soft); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* Progress + donut */
.progress { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-3), var(--brand)); }
.progress.amber > span { background: linear-gradient(90deg, #fbbf24, var(--warn)); }
.progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.donut { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto; }
.donut .hole { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.donut .hole b { font-family: var(--display); font-size: 22px; color: var(--ink); }
.donut .hole small { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.qa {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink-3);
  transition: transform .12s ease, border-color .12s ease;
}
.qa:hover { transform: translateY(-2px); border-color: #86efac; }
.qa .qa-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 16px; }

.avatar-lg { width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, var(--brand-3), var(--brand-2)); color: #fff; display: grid; place-items: center; font-weight: 700; }

.vendor-select {
  min-width: 210px; border: 1px solid var(--line); background: #fff; border-radius: 12px;
  padding: 9px 12px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2);
}
.vendor-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid #e6f4ec; border-radius: 16px; padding: 12px 16px; margin-bottom: 14px;
}
.vendor-banner strong { font-size: 15px; margin: 0 8px; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vendor-card {
  display: block; background: #fff; border: 1px solid #eef1f8; border-radius: 16px; padding: 16px;
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.vendor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #86efac; }
.vendor-card.open { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.vendor-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vendor-card-head .badge { margin-left: auto; }
.vendor-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.vendor-metrics .muted { display: block; font-size: 11px; }
.vendor-metrics b { font-size: 15px; color: var(--ink); }
.vendor-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.vendor-card-foot .link { font-size: var(--fs-sm); font-weight: 700; color: var(--brand); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .search { min-width: 160px; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-110%); width: min(86vw, 300px); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .overlay.open { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 30; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 240px; padding: 28px; }
  .auth-art h2 { font-size: 26px; }
  .content { padding: 14px; }
  .topbar { padding: 0 12px; }
  .user-chip span { display: none; }
  .search { display: none; }
  .vendor-select { min-width: 140px; }
  .page-title h1 { font-size: 18px; }
  .stat .value { font-size: 22px; }
}
