/* GaragemConect Central Automotiva
   Paleta: verde escuro (base da marca), preto, branco e verde-esmeralda nos detalhes.
   Mobile first: o celular segue o modelo (cabeçalho escuro, cards, barra de abas);
   a partir de 1024px vira painel com menu lateral. */

:root {
  --brand-950: #06190d;
  --brand-900: #0b2a17;
  --brand-800: #0f3a22;
  --brand-700: #15502e;
  --brand-600: #1c6a3c;
  --brand-500: #23854b;
  --accent: #2fbf6b;
  --accent-soft: #dcf5e6;
  --accent-ink: #157a41;

  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #f7f9f8;
  --line: #e2e8e4;
  --line-strong: #cfd8d2;
  --ink: #0e1a13;
  --ink-2: #3a4a40;
  --muted: #6b7a71;

  --amber: #b26a00;
  --amber-soft: #fff1d6;
  --blue: #1d5fbf;
  --blue-soft: #e1ecfb;
  --red: #c0352b;
  --red-soft: #fde4e1;
  --gray-soft: #eceff0;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(6, 25, 13, .06), 0 4px 14px rgba(6, 25, 13, .05);
  --shadow-lg: 0 10px 30px rgba(6, 25, 13, .16);
  --hero: linear-gradient(160deg, #1a5a33 0%, #0f3a22 55%, #0a2615 100%);
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --tabbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- frame ---------- */
.app { min-height: 100vh; }
.sidebar { display: none; }
.main { min-width: 0; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 12px); }
.content { padding: 14px 16px 24px; max-width: 1280px; margin: 0 auto; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px;
  background: var(--brand-800); color: #fff; min-height: 56px; }
.topbar-hero { display: none; }
.topbar-title { font-size: 17px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-back { display: inline-flex; padding: 6px; margin-left: -8px; border-radius: 50%; }
.topbar-back .icon { width: 24px; height: 24px; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-avatar { display: none; }

.bell { position: relative; display: inline-flex; padding: 8px; border-radius: 50%; }
.bell:hover { background: rgba(255,255,255,.1); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(6,25,13,.05); }
.bottom-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: var(--muted); }
.bottom-link .icon { width: 23px; height: 23px; }
.bottom-link.active { color: var(--brand-800); font-weight: 600; }
.bottom-link.active .icon { stroke-width: 2.3; }

@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: 264px 1fr; }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--hero); color: #e8f3ec; padding: 18px 14px; }
  .main { padding-bottom: 32px; }
  .content { padding: 24px 32px 40px; }
  .bottom-nav { display: none; }
  .topbar, .topbar-hero { display: flex; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 32px; min-height: 64px; }
  .topbar-back { display: none; }
  .topbar-title { font-size: 20px; }
  .topbar-avatar { display: grid; }
  .bell:hover { background: var(--surface-2); }
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; color: #fff; letter-spacing: .2px; }
.brand-text small { font-size: 12px; color: #9fd1b2; }
.logo img { width: 40px; height: 40px; }
.side-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.side-group { margin: 14px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #86b79a; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #d6e9dd; font-size: 14.5px; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.active { background: rgba(47,191,107,.18); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side-user { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin-top: 8px; }
.side-user-card { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; border-radius: 10px; }
.side-user-card:hover { background: rgba(255,255,255,.07); }
.side-user-text { display: flex; flex-direction: column; min-width: 0; }
.side-user-text strong, .side-user-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text strong { font-size: 14px; color: #fff; }
.side-user-text small { font-size: 12px; color: #9fd1b2; }
.side-logout { background: none; border: 0; color: #cfe6d8; padding: 8px; border-radius: 8px; cursor: pointer; }
.side-logout:hover { background: rgba(255,255,255,.1); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 14px;
  background: var(--accent-soft); color: var(--brand-800); }
.sidebar .avatar { background: rgba(255,255,255,.14); color: #fff; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }

/* ---------- hero (dashboards on the phone, as the model) ---------- */
.hero { margin: -14px -16px 16px; padding: calc(18px + env(safe-area-inset-top)) 16px 18px; background: var(--hero); color: #fff;
  border-radius: 0 0 26px 26px; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hero-hello { font-size: 22px; font-weight: 700; }
.hero-sub { font-size: 14px; color: #b8dcc6; margin-top: 2px; }
.hero-actions { display: flex; gap: 8px; }
.hero-actions .bell, .hero-round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; padding: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.hero-stat strong { font-size: 24px; line-height: 1.1; }
.hero-stat span { font-size: 12.5px; color: #cfe6d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .hero { margin: 0 0 22px; border-radius: 20px; padding: 24px; }
  .hero-actions { display: none; }
  .hero-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* ---------- cards, sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 16px; }
.section { margin: 20px 0; }
.section-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head .section-title { margin: 0; }
.link { color: var(--accent-ink); font-weight: 600; font-size: 14px; }

.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shortcut { padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.shortcut strong { font-size: 15.5px; }
.shortcut span { font-size: 13px; color: var(--muted); }
@media (min-width: 720px) { .shortcuts { grid-template-columns: repeat(4, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--line-strong); }
.stat-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-700); }
.stat-value { font-size: 20px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--muted); }

/* ---------- vehicle cards (list as the model) ---------- */
.vlist { display: grid; gap: 12px; }
@media (min-width: 720px) { .vlist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .vlist { grid-template-columns: repeat(3, 1fr); } }
.vcard { display: grid; grid-template-columns: 112px 1fr; overflow: hidden; min-height: 108px; }
.vcard-photo { background: var(--gray-soft); position: relative; }
.vcard-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.vcard-photo .icon { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; color: #a9b6ae; }
.vcard-body { padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.vcard-title { font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-meta { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vcard-price { font-size: 17px; font-weight: 700; }
.vcard-partner { font-size: 12px; color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.vcard-partner .icon { width: 14px; height: 14px; }
@media (min-width: 720px) {
  .vgrid .vcard { grid-template-columns: 1fr; grid-template-rows: 180px auto; }
}

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--accent-soft); color: var(--accent-ink); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: var(--gray-soft); color: var(--ink-2); }
.badge-dark { background: var(--brand-900); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; background: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--brand-500); }
.btn-light { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-light:hover { background: var(--surface-2); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-danger:hover { background: #fbd3ce; }
.btn-wa { background: #25d366; color: #fff; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-end { justify-content: flex-end; }
.inline { display: inline; }

/* ---------- forms ---------- */
.form-card { padding: 18px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 720px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-all { grid-column: 1 / -1; }
}
.form-legend { font-size: 15px; font-weight: 700; margin: 6px 0 2px; grid-column: 1 / -1; color: var(--brand-800); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); font-size: 15px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 2px solid rgba(47,191,107,.35); border-color: var(--accent); }
.field-hint { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 12.5px; color: var(--red); font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-600); }
.form-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.form-foot .btn { min-width: 140px; }
@media (max-width: 719px) { .form-foot .btn { flex: 1; } }

.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-info { background: var(--blue-soft); color: var(--blue); }
.alert-ok { background: var(--accent-soft); color: var(--accent-ink); }
.alert-warn { background: var(--amber-soft); color: var(--amber); }

.flash { display: flex; align-items: center; gap: 10px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500;
  animation: flash-in .2s ease-out; }
.flash-ok { background: var(--accent-soft); color: var(--accent-ink); }
.flash-error { background: var(--red-soft); color: var(--red); }
.flash.fade { opacity: 0; transition: opacity .4s; }
@keyframes flash-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1024px) { .flash { margin: 16px 32px 0; } }

/* ---------- toolbar, search, filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.searchbar { display: flex; gap: 8px; flex: 1; min-width: 220px; }
.searchbar .input { flex: 1; }
.search-input { position: relative; flex: 1; }
.search-input .icon { position: absolute; left: 12px; top: 13px; color: var(--muted); }
.search-input input { padding-left: 40px; }
.filters { margin-bottom: 14px; }
.filters summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.filters summary::-webkit-details-marker { display: none; }
.filters[open] summary { margin-bottom: 12px; }
.filter-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); padding: 14px; }
@media (min-width: 720px) { .filter-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .filter-grid { grid-template-columns: repeat(6, 1fr); } }
.filter-grid .field input, .filter-grid .field select { min-height: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-strong); background: var(--surface);
  display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 500; }
.chip.active { background: var(--brand-800); color: #fff; border-color: var(--brand-800); }
.result-count { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

/* ---------- tables (computer) / stacked rows (phone) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600;
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; white-space: nowrap; }
.cell-main { font-weight: 600; }
.cell-sub { font-size: 12.5px; color: var(--muted); }
@media (max-width: 719px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table-stack td { padding: 2px 0; border: 0; }
  .table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 12.5px; }
  .table-stack .num { text-align: left; }
}

/* ---------- rows list (phone-friendly lists) ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
a.row:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.row-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--gray-soft); flex: none; }
.row-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-700); flex: none; }
.row.unread { background: #f2fbf5; }
.row.unread .row-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* ---------- details ---------- */
.detail { display: grid; gap: 16px; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); align-items: start; } }
.gallery { overflow: hidden; }
.gallery-main { aspect-ratio: 4 / 3; background: var(--gray-soft); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .icon { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; color: #a9b6ae; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; flex: none; cursor: pointer; background: none; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 76px; height: 56px; object-fit: cover; }
.price-big { font-size: 28px; font-weight: 800; color: var(--brand-800); }
.title-big { font-size: 22px; font-weight: 800; line-height: 1.2; }
.kvs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; }
.kv { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.partner-box { border: 1px solid #bfe7cf; background: linear-gradient(180deg, #f2fbf6, #fff); }
.partner-box h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; color: var(--brand-800); }
.commission { font-size: 22px; font-weight: 800; color: var(--accent-ink); margin: 6px 0; }
.note { font-size: 13.5px; color: var(--ink-2); white-space: pre-line; }
.desc { white-space: pre-line; color: var(--ink-2); }
.store-line { display: flex; align-items: center; gap: 12px; }
.sticky-actions { position: sticky; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 8px); z-index: 10; }
@media (min-width: 1024px) { .sticky-actions { position: static; } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { font-size: 12px; color: var(--muted); }

/* photos manager */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 720px) { .photos { grid-template-columns: repeat(5, 1fr); } }
.photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo form { position: absolute; top: 6px; right: 6px; }
.photo .btn { min-height: 30px; padding: 0 8px; }
.photo-cover { position: absolute; left: 6px; bottom: 6px; }
.upload { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; text-align: center; }

/* commission calc preview */
.calc { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.calc strong { font-size: 18px; color: var(--accent-ink); }

/* menu page (phone) */
.menu-profile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; }
.menu-profile > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.menu-profile small { color: var(--muted); }
.menu-group { margin-bottom: 16px; }
.menu-group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 4px 8px; font-weight: 600; }
.menu-list { overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; text-align: left; font-size: 15px; }
.menu-list > :last-child, .menu-list > form:last-child .menu-item { border-bottom: 0; }
.menu-item span { flex: 1; }
.menu-item > .icon:first-child { color: var(--brand-600); }
.menu-item-danger, .menu-item-danger > .icon:first-child { color: var(--red); }

/* empty, pager */
.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-icon { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--brand-700); margin-bottom: 6px; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-title { font-weight: 700; font-size: 16.5px; }
.empty-text { color: var(--muted); max-width: 420px; margin-bottom: 10px; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 16px; }
.pager > :last-child { justify-self: end; }
.pager-page { font-size: 13.5px; color: var(--muted); }

/* bars (reports) */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bar { height: 10px; border-radius: 5px; background: var(--gray-soft); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--accent)); border-radius: 5px; }
.w-0 { width: 0 } .w-5 { width: 5% } .w-10 { width: 10% } .w-15 { width: 15% } .w-20 { width: 20% } .w-25 { width: 25% }
.w-30 { width: 30% } .w-35 { width: 35% } .w-40 { width: 40% } .w-45 { width: 45% } .w-50 { width: 50% } .w-55 { width: 55% }
.w-60 { width: 60% } .w-65 { width: 65% } .w-70 { width: 70% } .w-75 { width: 75% } .w-80 { width: 80% } .w-85 { width: 85% }
.w-90 { width: 90% } .w-95 { width: 95% } .w-100 { width: 100% }

/* ---------- public pages (login, access request) ---------- */
.bare-body { background: var(--hero); min-height: 100vh; display: flex; flex-direction: column; }
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 22px; padding: 28px 22px; box-shadow: var(--shadow-lg); }
.auth-card-wide { max-width: 760px; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; text-align: center; }
.auth-brand img { width: 64px; height: 64px; }
.auth-brand h1 { font-size: 22px; color: var(--brand-800); }
.auth-brand p { color: var(--muted); font-size: 14px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-foot a { color: var(--accent-ink); font-weight: 600; }
.auth-note { color: #b8dcc6; text-align: center; font-size: 12.5px; margin-top: 16px; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.active { color: var(--brand-800); border-color: var(--accent); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.text-right { text-align: right; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.ok-text { color: var(--accent-ink); }
.warn-text { color: var(--amber); }
.danger-text { color: var(--red); }

/* footer */
.footer { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 16px 20px; }
.bare-body .footer { color: #b8dcc6; padding: 0 16px 16px; }
@media (min-width: 1024px) { .footer { padding: 0 32px 24px; } }
.footer p { margin: 2px 0; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.footer-contact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bottom-nav-3 { grid-template-columns: repeat(3, 1fr); }
