/* Mountaineer Auto Restorations — Shop demo
   Charcoal, gold metallic, cream. */

:root {
  --bg: #0e0d0b;
  --bg-2: #141310;
  --bg-3: #1b1915;
  --bg-4: #23211c;
  --bg-hover: #2a271f;
  --line: #2f2b22;
  --line-strong: #3d372a;
  --gold: #c9a44a;
  --gold-2: #e0c36a;
  --gold-3: #f0d78c;
  --gold-dim: #8a7330;
  --gold-deep: #6e5a22;
  --gold-bg: rgba(201, 164, 74, 0.10);
  --gold-bg-2: rgba(201, 164, 74, 0.18);
  --cream: #f3ece0;
  --cream-2: #e4dccb;
  --muted: #9a9284;
  --muted-2: #6f6a60;
  --text: #f3ece0;
  --waiting: #c4b28a;
  --progress: #d4af37;
  --parts: #d4894a;
  --ready: #7dba7a;
  --paid: #8d877c;
  --info: #8aa8c4;
  --danger: #c4756a;
  --danger-bg: rgba(196, 117, 106, 0.12);
  --success-bg: rgba(125, 186, 122, 0.12);
  --parts-bg: rgba(212, 137, 74, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --font: "Outfit", "Segoe UI", system-ui, sans-serif;
  --display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sidebar: 236px;
  --topbar: 64px;
  --bottom: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(201, 164, 74, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold-3); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; margin: 0; }
h1 { font-size: 1.35rem; }
h2 { font-size: 1.05rem; }
p { margin: 0; }
::selection { background: var(--gold-bg-2); color: var(--cream); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* Shell */
.app-shell {
  display: flex;
  min-height: 100%;
}
.sidebar {
  width: var(--sidebar);
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  gap: 2px;
}
.brand:hover { color: var(--gold-2); }
.brand-logo { width: 148px; height: auto; margin-bottom: 2px; }
.brand-name {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  line-height: 1.2;
}
.brand-app {
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 1px;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 12px;
  flex: 1;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-2);
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.side-nav a:hover { background: var(--bg-4); color: var(--cream); }
.side-nav a.active {
  background: var(--gold-bg);
  color: var(--gold-2);
}
.nav-ico { width: 20px; height: 20px; display: grid; place-items: center; flex-shrink: 0; }
.nav-ico svg { width: 20px; height: 20px; }
.sidebar-foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
}
.shop-nap {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.icon-btn.menu-btn { display: none; }
.topbar-search {
  position: relative;
  flex: 1;
  max-width: 460px;
}
.topbar-search input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 12px 8px 36px;
  color: var(--cream);
  outline: none;
}
.topbar-search input:focus { border-color: var(--gold-dim); }
.topbar-search input::placeholder { color: var(--muted-2); }
.search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 40;
}
.search-results a, .search-results button.row {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--cream);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.search-results a:last-child, .search-results button.row:last-child { border-bottom: 0; }
.search-results a:hover, .search-results button.row:hover { background: var(--bg-hover); }
.search-results .meta { display: block; color: var(--muted); font-size: 0.8rem; }
.search-results .empty { padding: 12px; color: var(--muted); font-size: 0.9rem; }

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--gold-dim);
  background: var(--gold-bg);
  color: var(--gold-2);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.demo-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.view {
  padding: 24px 28px 48px;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--bg-4);
  color: var(--cream);
  border-color: var(--line-strong);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); color: var(--cream); }
.btn-gold {
  background: linear-gradient(180deg, #e0c36a 0%, #c9a44a 55%, #a68532 100%);
  color: #1a1508;
  border-color: #8a6a1f;
  font-weight: 600;
}
.btn-gold:hover { filter: brightness(1.06); color: #1a1508; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--cream-2); }
.btn-danger { background: var(--danger-bg); border-color: #7a4038; color: #e6b4ad; }
.btn-small { padding: 6px 10px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.icon-btn {
  background: transparent;
  border: 0;
  color: var(--cream);
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 0;
}
.icon-btn:hover { background: var(--bg-4); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, .label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea,
input.input, select.input, textarea.input {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--cream);
  outline: none;
  width: 100%;
}
.field textarea, textarea.input { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
input.input:focus, select.input:focus, textarea.input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-bg);
}
.hint { font-size: 0.78rem; color: var(--muted); }
.hint.warn { color: #c4a36a; }
.field .btn { align-self: flex-start; width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Cards / KPI */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  opacity: 0.7;
}
.kpi .label { margin-bottom: 8px; }
.kpi .value {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.kpi .foot { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card + .card { margin-top: 14px; }
.card-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.card-h h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; }

/* Status */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  white-space: nowrap;
}
.pill.waiting { color: var(--waiting); background: rgba(196, 178, 138, 0.1); }
.pill.in_progress { color: var(--progress); background: var(--gold-bg); }
.pill.waiting_parts { color: var(--parts); background: var(--parts-bg); }
.pill.ready { color: var(--ready); background: var(--success-bg); }
.pill.paid { color: var(--paid); background: rgba(141, 135, 124, 0.12); }
.pill.estimate { color: var(--info); background: rgba(138, 168, 196, 0.12); }
.pill.invoice { color: var(--gold-2); background: var(--gold-bg); }

/* Dashboard layout */
.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 14px;
}
.job-row, .est-row, .rem-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: inherit;
}
.job-row:first-of-type, .est-row:first-of-type, .rem-row:first-of-type { border-top: 0; padding-top: 2px; }
a.job-row:hover, a.est-row:hover { color: var(--cream); }
.job-row .who { font-weight: 500; }
.job-row .veh, .muted { color: var(--muted); font-size: 0.86rem; }
.job-row .right, .est-row .right { text-align: right; }
.money { font-variant-numeric: tabular-nums; font-weight: 500; }
.empty { color: var(--muted); padding: 12px 0; font-size: 0.92rem; }
.tips {
  border: 1px dashed var(--line-strong);
  background: var(--gold-bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 22px;
  color: var(--cream-2);
  font-size: 0.9rem;
}
.tips strong { color: var(--gold-2); font-weight: 500; }

/* Kanban */
.board-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.status-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.status-filters button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
}
.status-filters button.on, .status-filters button:hover {
  border-color: var(--gold-dim);
  color: var(--gold-2);
  background: var(--gold-bg);
}
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 12px;
  align-items: start;
}
.column {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 180px;
  display: flex;
  flex-direction: column;
}
.column.drag-over { border-color: var(--gold); background: var(--gold-bg); }
.col-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.col-h .count {
  background: var(--bg-4);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.72rem;
  color: var(--cream-2);
  letter-spacing: 0;
}
.col-body { padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; flex: 1; }
.wo-card {
  display: block;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--cream);
  cursor: grab;
}
.wo-card:hover { border-color: var(--gold-dim); color: var(--cream); }
.wo-card .num { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; }
.wo-card .name { font-weight: 500; margin-top: 2px; }
.wo-card .veh { margin: 2px 0 8px; }
.wo-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wo-card .concern {
  font-size: 0.8rem;
  color: var(--cream-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

/* Customers */
.cust-list { display: flex; flex-direction: column; }
.cust-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.cust-item:hover { color: var(--cream); background: rgba(255,255,255,0.015); }
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}
.veh-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--bg-2);
  margin-bottom: 10px;
}
.veh-card h3 { font-family: var(--font); font-size: 1rem; letter-spacing: 0; font-weight: 500; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 4px 10px; font-size: 0.86rem; margin-top: 8px; }
.kv dt { color: var(--muted); }
.history-table, .line-table, .report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.history-table th, .line-table th, .report-table th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
}
.history-table td, .line-table td, .report-table td {
  padding: 10px 8px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.history-table tr:hover td { background: rgba(255,255,255,0.015); }
.num-col, .right { text-align: right; }

/* Work order */
.wo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.wo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lines-wrap { overflow-x: auto; }
.line-table input, .line-table select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 8px;
  width: 100%;
}
.line-table .desc { min-width: 220px; }
.line-table .qty { width: 78px; }
.line-table .rate { width: 100px; }
.line-table .tot { width: 100px; text-align: right; font-variant-numeric: tabular-nums; }
.line-table .rm { width: 40px; }
.totals {
  width: min(340px, 100%);
  margin-left: auto;
  margin-top: 12px;
}
.totals .t-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--cream-2);
  font-variant-numeric: tabular-nums;
}
.totals .t-row.grand {
  border-top: 1px solid var(--gold-dim);
  margin-top: 6px;
  padding-top: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}
.discount-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.discount-box label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* Payment */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-methods { display: grid; gap: 10px; }
.pay-method {
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--cream);
}
.pay-method:hover, .pay-method.on {
  border-color: var(--gold);
  background: var(--gold-bg);
}
.pay-method .m-title { font-weight: 500; }
.pay-method .m-sub { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.square-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--gold-2);
  background: var(--gold-bg);
  border: 1px dashed var(--gold-dim);
  padding: 8px 10px;
  border-radius: 6px;
}

/* Phone mock (texts) */
.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  background: #0a0a0a;
  border: 2px solid #3a352c;
  border-radius: 28px;
  padding: 16px 14px 20px;
  box-shadow: var(--shadow);
}
.phone-bar {
  height: 18px;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.phone-bar span {
  width: 80px; height: 6px;
  background: #2a2a2a;
  border-radius: 99px;
}
.sms {
  background: #1c2c1c;
  color: #e8f0e8;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.sms-meta { color: var(--muted); font-size: 0.72rem; text-align: center; margin: 8px 0 10px; }

/* Reports */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 8px; }
.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}
.bar .fill {
  width: 100%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  border-radius: 3px 3px 0 0;
  min-height: 2px;
}
.bar .b-label { font-size: 0.68rem; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar .b-val { font-size: 0.7rem; color: var(--cream-2); font-variant-numeric: tabular-nums; }

/* Settings */
.placeholder-flag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4a36a;
  border: 1px solid #8a6a32;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

/* More (mobile) */
.more-list a, .more-list button {
  display: flex;
  width: 100%;
  text-align: left;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  padding: 14px 16px;
  margin-bottom: 8px;
  justify-content: space-between;
  align-items: center;
}
.more-list a:hover, .more-list button:hover { border-color: var(--gold-dim); color: var(--cream); }

/* Modal / overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 50;
}
.sidebar.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; }
.modal {
  position: fixed;
  z-index: 70;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.modal-wide { width: min(720px, calc(100% - 28px)); }
.modal h2 { margin-bottom: 8px; }
.modal .sub { color: var(--muted); margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-4);
  border: 1px solid var(--gold-dim);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 220px;
  max-width: 360px;
  font-size: 0.9rem;
}

/* Bottom nav — hidden on desktop */
.bottom-nav { display: none; }

/* Print documents (on-screen) */
.print-sheet {
  background: #f7f1e6;
  color: #1a1814;
  max-width: 800px;
  margin: 0 auto;
  padding: 36px 40px 48px;
  border-radius: 4px;
  box-shadow: var(--shadow);
  position: relative;
}
.print-sheet .demo-watermark {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7330;
  border: 1px solid #c9a44a;
  padding: 2px 8px;
  border-radius: 999px;
}
.print-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid #c9a44a;
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.print-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.print-brand img { width: 150px; margin-bottom: 4px; }
.print-brand .word { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.18em; color: #6e5a22; }
.print-brand .tag { font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.28em; color: #8a7330; margin-bottom: 8px; }
.print-head .word {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  color: #6e5a22;
}
.print-head .doc-type {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  color: #1a1814;
  text-align: right;
}
.print-head .nap, .print-meta { font-size: 0.85rem; color: #4a453c; line-height: 1.5; }
.print-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.print-cols h3 {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #8a7330;
  margin-bottom: 6px;
}
.print-sheet table { width: 100%; border-collapse: collapse; }
.print-sheet th {
  text-align: left;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6e5a22;
  border-bottom: 1px solid #c9a44a;
  padding: 6px 8px 8px 0;
}
.print-sheet td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #ddd4c4;
  font-size: 0.9rem;
}
.print-sheet .totals-print { width: 280px; margin-left: auto; margin-top: 16px; }
.print-sheet .t-row { display: flex; justify-content: space-between; padding: 4px 0; color: #3a3530; }
.print-sheet .t-row.grand {
  border-top: 2px solid #c9a44a;
  margin-top: 6px;
  padding-top: 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: #1a1814;
}
.print-foot {
  margin-top: 36px;
  border-top: 1px solid #ddd4c4;
  padding-top: 14px;
  font-size: 0.8rem;
  color: #4a453c;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.print-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px; }

body.print-mode .sidebar,
body.print-mode .topbar,
body.print-mode .bottom-nav,
body.print-mode .print-toolbar { display: none !important; }
body.print-mode .main-wrap { min-height: auto; }
body.print-mode .view { padding: 24px; }
body.print-mode { background: #d9d0c2; }

@media print {
  body { background: #fff !important; }
  .sidebar, .topbar, .bottom-nav, .print-toolbar, .toast-root, .overlay, .modal, .demo-badge {
    display: none !important;
  }
  .main-wrap, .view { padding: 0 !important; margin: 0 !important; }
  .print-sheet {
    box-shadow: none;
    max-width: none;
    border-radius: 0;
    padding: 0;
    background: #fff;
  }
  .print-sheet .demo-watermark { position: static; display: inline-block; margin-bottom: 8px; }
  a { color: inherit; }
}

/* Tablet */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid, .profile-grid, .pay-grid { grid-template-columns: 1fr; }
  .board {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .column { min-width: 220px; flex: 0 0 220px; scroll-snap-align: start; }
}

@media (max-width: 860px) {
  :root { --bottom: calc(64px + var(--safe-b)); }
  .sidebar {
    display: none;
    width: min(280px, 86vw);
    box-shadow: var(--shadow);
  }
  .sidebar.open { display: flex; }
  .icon-btn.menu-btn { display: grid; }
  .top-new { display: none; }
  .topbar { padding: 0 12px; }
  .demo-badge { font-size: 0; padding: 5px 8px; gap: 0; }
  .demo-badge::after { content: "Demo"; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
  .view { padding: 16px 16px calc(var(--bottom) + 20px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--bottom);
    padding-bottom: var(--safe-b);
    background: rgba(20, 19, 16, 0.96);
    border-top: 1px solid var(--line);
    z-index: 40;
    justify-content: space-around;
    align-items: flex-start;
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 8px;
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--gold-2); }
  .bottom-nav a.nav-fab {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    margin-top: -18px;
    background: linear-gradient(180deg, #e0c36a 0%, #c9a44a 100%);
    color: #1a1508;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
    border: 3px solid var(--bg);
  }
  .bottom-nav a.nav-fab svg { width: 22px; height: 22px; }
  .toast-root { bottom: calc(var(--bottom) + 10px); }
  .print-sheet { padding: 20px 16px 28px; }
  .print-head, .print-cols, .print-foot { grid-template-columns: 1fr; display: grid; }
  .print-head .doc-type { text-align: left; }
  .print-sheet .totals-print { width: 100%; }
  .wo-card { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
