/* ═══════════════════════════════════════════════════════
   JalaSai Garage System v5 — Complete Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:  #090a0c;
  --sur: #111317;
  --sur2:#191c21;
  --bor: #2d3239;
  --acc: #d7d9de;
  --acc2:#d28a42;
  --warn:#f5bb3d;
  --dan: #ff5f5f;
  --txt: #f6f1eb;
  --mut: #a39a92;
  --fh:  'Rajdhani', sans-serif;
  --fb:  'DM Sans', sans-serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at top right, rgba(215,217,222,.05), transparent 24%),
    linear-gradient(180deg, #111418 0%, #0b0d10 42%, #08090b 100%);
  color: var(--txt);
  font-family: var(--fb);
  min-height: 100vh;
  overflow-x: hidden;
}
input, select, textarea, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, [role="button"], .btn, .tab, .qbtn, .recent-chip, .ccard { cursor: pointer; }
.rcard[onclick] { cursor: pointer; }

:focus-visible {
  outline: 2px solid rgba(210,138,66,.7);
  outline-offset: 2px;
}

/* ─── Nav ─────────────────────────────────────────────── */
nav {
  background: linear-gradient(180deg, rgba(18,21,25,.98) 0%, rgba(12,14,18,.97) 100%);
  border-bottom: 1px solid rgba(215,217,222,.06);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  padding: 0 14px;
  display: flex;
  align-items: center;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 14px;
  white-space: nowrap;
  min-width: 0;
}
.brand-logo {
  width: 164px;
  height: 56px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.34);
}
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  align-items: center;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 600;
  color: var(--mut);
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: all .2s ease;
}
.tab:hover  { color: var(--txt); background: rgba(255,255,255,.04); border-color: rgba(210,138,66,.12); }
.tab.active {
  color: var(--txt);
  background: linear-gradient(180deg, rgba(50,51,56,.96) 0%, rgba(30,31,35,.98) 100%);
  border-color: rgba(210,138,66,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px rgba(0,0,0,.22);
}

/* ─── Status bar ──────────────────────────────────────── */
.gs-bar {
  background: linear-gradient(180deg, rgba(20,23,28,.95) 0%, rgba(15,17,21,.95) 100%);
  border-bottom: 1px solid rgba(215,217,222,.05);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.gs-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  color: var(--txt);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  font-family: var(--fh);
  font-weight: 600;
}
.gs-badge.off { background: rgba(255,71,87,.1); color: var(--dan); border-color: rgba(255,71,87,.3); }
.gs-bar-right { display: flex; align-items: center; gap: 8px; }
.gs-bar-info  { font-size: 11px; color: var(--mut); }

/* ─── Pages ───────────────────────────────────────────── */
.page { display: none; padding: 18px; max-width: 1460px; margin: 0 auto; }
.page.active { display: block; }
.page.active.page-fade-in { animation: pageFadeIn .15s ease; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Stats row ───────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.sc,
.jcard,
.ccard,
.mech-card,
.rcard,
.stbl,
.modal,
.scan-status,
.quick-card {
  background:
    linear-gradient(180deg, rgba(28,31,36,.97) 0%, rgba(16,18,22,.99) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 16px 34px rgba(0,0,0,.28);
}
.sc { border-radius: 16px; padding: 16px 18px; position: relative; overflow: hidden; }
.sc::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(210,138,66,.42), rgba(215,217,222,.02));
}
.sc-lbl { font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.sc-val { font-family: var(--fh); font-size: 28px; font-weight: 700; line-height: 1; }
.g { color: var(--acc); } .o { color: var(--acc2); } .y { color: var(--warn); } .r { color: var(--dan); }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: all .18s ease;
}
.btn-p  {
  background: linear-gradient(180deg, rgba(62,63,69,.98) 0%, rgba(34,35,39,.98) 100%);
  color: var(--txt);
  border: 1px solid rgba(210,138,66,.34);
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}
.btn-p:hover {
  background: linear-gradient(180deg, rgba(74,75,82,.98) 0%, rgba(38,39,43,.98) 100%);
  border-color: rgba(210,138,66,.52);
  color: #ffe2c3;
}
.btn-g  {
  background: linear-gradient(180deg, rgba(38,39,44,.98) 0%, rgba(24,24,27,.98) 100%);
  color: var(--txt);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-g:hover { border-color: rgba(210,138,66,.36); color: var(--acc); }
.btn-r  { background: rgba(255,71,87,.12); color: var(--dan); border: 1px solid rgba(255,71,87,.3); }
.btn-r:hover { background: rgba(255,71,87,.2); }
.btn-sm { min-height: 34px; padding: 6px 10px; font-size: 11px; border-radius: 9px; }
.btn-o  { background: rgba(210,138,66,.12); color: #efc28d; border: 1px solid rgba(210,138,66,.24); }

/* ─── Board header ────────────────────────────────────── */
.board-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22,25,30,.92) 0%, rgba(15,17,21,.96) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.board-ttl { font-family: var(--fh); font-size: 18px; font-weight: 700; letter-spacing: .2px; }
.board-hdr > div:last-child {
  gap: 10px !important;
  align-items: center;
}

/* ─── Job cards ───────────────────────────────────────── */
.jgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.jcard { border-radius: 16px; padding: 16px; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.jcard:hover {
  transform: translateY(-1px);
  border-color: rgba(210,138,66,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 38px rgba(0,0,0,.3);
}
.jcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 10px 0 0 10px; }
.jcard.urgent::before  { background: var(--dan); }
.jcard.normal::before  { background: var(--warn); }
.jcard.waiting::before { background: var(--mut); }
.jcard.done::before    { background: var(--acc); }
.jtop   { display: flex; justify-content: space-between; margin-bottom: 8px; }
.jnum   { font-family: var(--fh); font-size: 12px; color: var(--mut); font-weight: 600; }
.jcust  { font-family: var(--fh); font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.jveh   { font-size: 12px; color: #d8c2a7; margin-bottom: 6px; }
.jprob  { font-size: 12px; color: var(--mut); margin-bottom: 10px; line-height: 1.55; }
.jftr   { display: flex; align-items: center; justify-content: space-between; }
.mtag   { font-size: 11px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 4px 9px; }
.sbadge { font-size: 10px; font-family: var(--fh); font-weight: 600; letter-spacing: .4px; padding: 3px 8px; border-radius: 20px; }
.sbadge.waiting     { background: rgba(138,143,158,.15); color: var(--mut); }
.sbadge.in-progress { background: rgba(245,197,24,.15);  color: var(--warn); }
.sbadge.ready       { background: rgba(0,200,150,.15);   color: var(--acc); }
.sbadge.parts       { background: rgba(255,71,87,.15);   color: var(--dan); }
.sbadge.returned    { background: rgba(255,71,87,.15);   color: var(--dan); }
.jacts  { display: flex; gap: 5px; margin-top: 8px; border-top: 1px solid var(--bor); padding-top: 8px; flex-wrap: wrap; }

/* ─── Modal ───────────────────────────────────────────── */
.ovl { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 100; align-items: center; justify-content: center; padding: 16px; }
.ovl.open { display: flex; }
.modal { border-radius: 20px; padding: 24px; width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto; }
.modal.wide { max-width: 700px; }
.modal.xl   { max-width: 860px; }
.modal-ttl { font-family: var(--fh); font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.frow { margin-bottom: 12px; }
.flbl { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 5px; display: block; }
.finp { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px 13px; color: var(--txt); font-family: var(--fb); font-size: 13px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.finp:focus { border-color: rgba(210,138,66,.46); box-shadow: 0 0 0 3px rgba(210,138,66,.1); }
.fsel { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px 13px; color: var(--txt); font-family: var(--fb); font-size: 13px; outline: none; }
.fsel:focus { border-color: rgba(210,138,66,.46); box-shadow: 0 0 0 3px rgba(210,138,66,.1); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mftr { display: flex; gap: 8px; margin-top: 16px; }
.det-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bor); }
.det-row:last-child { border-bottom: none; }

/* ─── Stock ───────────────────────────────────────────── */
.sctrl {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22,25,30,.86) 0%, rgba(15,17,21,.92) 100%);
  border: 1px solid rgba(255,255,255,.05);
}
.sbox  { flex: 1; min-width: 160px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 11px 14px; color: var(--txt); font-family: var(--fb); font-size: 13px; outline: none; }
.sbox:focus { border-color: rgba(210,138,66,.46); box-shadow: 0 0 0 3px rgba(210,138,66,.1); }
.stbl { border-radius: 16px; overflow: hidden; overflow-x: auto; }
.stbl table { width: 100%; border-collapse: collapse; min-width: 620px; }
.stbl th { background: rgba(255,255,255,.035); padding: 12px 12px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #d6c2ae; font-weight: 600; position: sticky; top: 0; z-index: 1; }
.stbl td { padding: 9px 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); }
.stbl tr:hover td { background: rgba(255,255,255,.03); }
.virtual-table-wrap { max-height: min(72vh, 1850px); overflow: auto; position: relative; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.virtual-table-meta { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--bor); font-family: var(--fh); font-size: 13px; color: var(--mut); }
.virtual-spacer:hover td { background: transparent !important; }
.skeleton-row:hover td { background: transparent !important; }
.skeleton-line {
  display: inline-block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.06) 100%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.05s linear infinite;
}
.invoice-pending-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc2);
  box-shadow: 0 0 0 4px rgba(210,138,66,.12);
  flex: 0 0 auto;
}

@keyframes skeletonShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}
.qtyc    { font-family: var(--fh); font-size: 16px; font-weight: 700; }
.qtyc.ok { color: var(--acc); } .qtyc.low { color: var(--warn); } .qtyc.out { color: var(--dan); }
.sst    { font-size: 10px; font-family: var(--fh); font-weight: 600; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.sst.ok  { background: rgba(0,200,150,.1);  color: var(--acc); }
.sst.low { background: rgba(245,197,24,.1); color: var(--warn); }
.sst.out { background: rgba(255,71,87,.1);  color: var(--dan); }
.sku-tag { font-size: 10px; font-family: monospace; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 4px; padding: 2px 6px; color: #d9d2c8; }
.qctrl   { display: flex; align-items: center; gap: 4px; }
.qbtn    { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--txt); cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.qbtn:hover { border-color: var(--acc); color: var(--acc); }
.stock-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--bor); font-family: var(--fh); font-size: 13px; color: var(--mut); }
.list-pager {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--mut);
  font-family: var(--fh);
  font-size: 12px;
}
.list-pager button[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ─── Alerts ──────────────────────────────────────────── */
.alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.alert { background: rgba(255,71,87,.08); border: 1px solid rgba(255,71,87,.25); border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.alert.warn { background: rgba(245,197,24,.08); border-color: rgba(245,197,24,.25); }

/* ─── Customers ───────────────────────────────────────── */
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ccard { border-radius: 16px; padding: 15px; cursor: pointer; transition: border-color .2s, transform .18s ease; }
.ccard:hover { border-color: rgba(210,138,66,.18); transform: translateY(-1px); }

/* ─── Mechanics ───────────────────────────────────────── */
.mech-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -2px 0 14px;
}
.mech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mech-card { border-radius: 16px; padding: 16px; }
.mech-card.inactive { opacity: .6; }
.mech-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--fh); font-size: 18px; font-weight: 700; color: #000; flex-shrink: 0; }
.mech-avatar.sm { width: 28px; height: 28px; font-size: 13px; }

/* ─── Expenses ────────────────────────────────────────── */
.exp-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }

/* ─── Reports ─────────────────────────────────────────── */
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rcard { border-radius: 16px; padding: 18px; }
.rcard-ttl { font-family: var(--fh); font-size: 12px; color: var(--mut); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.mrow { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--bor); }
.mrow:last-child { border-bottom: none; }
.week-chart { display: flex; gap: 6px; align-items: flex-end; padding: 4px 0; }
.report-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(210,138,66,.14), transparent 28%),
    linear-gradient(180deg, rgba(22,25,30,.96) 0%, rgba(13,15,19,.98) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 18px 36px rgba(0,0,0,.28);
}
.report-kicker {
  font-size: 11px;
  color: var(--acc2);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.report-title {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 6px;
}
.report-sub,
.report-section-copy,
.report-bar-hint,
.report-person-meta,
.report-forecast-meta,
.report-callout-copy,
.report-status-metrics span,
.report-heat-jobs,
.report-period-wrap,
.report-empty {
  color: var(--mut);
}
.report-period-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.period-chip {
  min-width: 148px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.period-chip-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mut);
  margin-bottom: 4px;
}
.period-chip-value {
  display: block;
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
}
.report-exec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.report-metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,29,34,.97) 0%, rgba(14,16,20,.99) 100%);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 14px 28px rgba(0,0,0,.24);
}
.report-metric-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 6px;
}
.report-metric-value {
  font-family: var(--fh);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 10px;
}
.report-metric-delta { min-height: 24px; }
.delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}
.delta-pill.up {
  color: #9be6c6;
  background: rgba(0,200,150,.12);
  border-color: rgba(0,200,150,.24);
}
.delta-pill.down {
  color: #ffb0a8;
  background: rgba(255,95,95,.12);
  border-color: rgba(255,95,95,.24);
}
.delta-pill.neutral {
  color: #d6d0c9;
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}
.report-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.report-span-12 { grid-column: span 12; }
.report-span-8 { grid-column: span 8; }
.report-span-7 { grid-column: span 7; }
.report-span-6 { grid-column: span 6; }
.report-span-5 { grid-column: span 5; }
.report-span-4 { grid-column: span 4; }
.report-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.report-section-copy {
  font-size: 12px;
  line-height: 1.45;
  margin-top: -4px;
}
.report-stack-gap > * + * { margin-top: 10px; }
.report-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.05);
}
.report-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.report-compare-table th,
.report-compare-table td {
  padding: 11px 12px;
  text-align: left;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.report-compare-table th {
  border-top: none;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #d6c2ae;
  background: rgba(255,255,255,.03);
}
.report-compare-table tbody tr:hover td {
  background: rgba(255,255,255,.025);
}
.report-bar-row { margin-bottom: 12px; }
.report-bar-row:last-child { margin-bottom: 0; }
.report-bar-label {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
}
.report-bar-hint {
  font-size: 11px;
  margin-top: 2px;
}
.report-bar-metric {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 6px;
}
.report-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.report-bar-track.compact { height: 8px; }
.report-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(210,138,66,.82), rgba(215,217,222,.9));
}
.report-bar-fill.cash { background: linear-gradient(90deg, #d28a42, #efc28d); }
.report-bar-fill.upi { background: linear-gradient(90deg, #8db6ff, #d7d9de); }
.report-bar-fill.other,
.report-bar-fill.warn { background: linear-gradient(90deg, #f5bb3d, #efc28d); }
.report-callout {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.025) 100%);
  border: 1px solid rgba(255,255,255,.07);
}
.report-callout.subtle {
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
}
.report-callout-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mut);
}
.report-callout-value {
  font-family: var(--fh);
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0;
}
.report-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.report-analysis-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.report-analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.report-analysis-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  overflow-wrap: anywhere;
}
.report-analysis-sub {
  font-size: 11px;
  color: var(--mut);
  margin-top: 3px;
}
.report-analysis-strong {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 700;
  color: var(--acc);
  text-align: right;
}
.report-analysis-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.report-analysis-metric {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.05);
}
.report-analysis-metric span {
  display: block;
  font-size: 11px;
  color: var(--mut);
  margin-bottom: 4px;
}
.report-analysis-metric strong {
  font-family: var(--fh);
  font-size: 14px;
  color: var(--txt);
}
.report-heatmap { overflow-x: auto; }
.report-heatmap-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.report-heatmap-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.report-heatmap-card-head {
  font-family: var(--fh);
  font-size: 14px;
  color: var(--mut);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.report-heatmap-card-body {
  display: grid;
  gap: 8px;
}
.report-heatmap-grid {
  display: grid;
  gap: 8px;
  min-width: 640px;
}
.report-heatmap-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mut);
  text-align: center;
  padding-bottom: 2px;
}
.report-heatmap-head.left {
  text-align: left;
  display: flex;
  align-items: center;
}
.report-heat-cell {
  min-height: 66px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.05);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%),
    radial-gradient(circle at top right, rgba(210,138,66,calc(var(--heat, 0) * .34)), transparent 60%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.report-heat-cell-card {
  min-height: 0;
  padding: 10px 12px;
}
.report-heat-slot {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--mut);
  margin-bottom: 4px;
}
.report-heat-money {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.report-heat-jobs { font-size: 11px; }
.report-status-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}
.report-status-card:last-child { margin-bottom: 0; }
.report-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 700;
}
.report-status-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-status-metrics strong {
  display: block;
  font-family: var(--fh);
  font-size: 18px;
  margin-top: 4px;
}
.report-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-mini-stat {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.report-mini-stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 5px;
}
.report-mini-stat strong {
  display: block;
  font-family: var(--fh);
  font-size: 18px;
  line-height: 1.2;
}
.report-sublist { margin-top: 10px; }
.report-forecast-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 10px;
}
.report-forecast-item:last-child { margin-bottom: 0; }
.report-forecast-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
}
.report-forecast-value {
  font-family: var(--fh);
  font-weight: 700;
}
.report-forecast-meta {
  font-size: 11px;
  margin-top: 8px;
}
.report-person-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.report-person-row:last-child { border-bottom: none; }
.report-person-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.report-person-name {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.report-person-meta {
  font-size: 11px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.report-person-stats {
  text-align: right;
  min-width: 0;
  flex-shrink: 1;
}
.report-person-strong {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: var(--acc);
  overflow-wrap: anywhere;
}
.report-rank {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 700;
  background: rgba(210,138,66,.14);
  border: 1px solid rgba(210,138,66,.25);
  color: #efc28d;
  flex-shrink: 0;
}
.report-inline-bar {
  margin-top: 6px;
  width: 140px;
  max-width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}
.report-inline-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(210,138,66,.92), rgba(215,217,222,.92));
}
.report-empty {
  font-size: 12px;
  padding: 8px 0;
}

/* ─── Scanner ─────────────────────────────────────────── */
.scan-wrap { max-width: 600px; margin: 0 auto; }
#reader { border-radius: 12px; overflow: hidden; background: #000; min-height: 240px; }
#stock-scan-reader, #job-parts-reader { border-radius: 12px; overflow: hidden; background: #000; min-height: 220px; }
#reader video { width: 100% !important; border-radius: 12px; }
#stock-scan-reader video, #job-parts-reader video { width: 100% !important; border-radius: 12px; }
.scan-status { background: var(--sur); border: 1px solid var(--bor); border-radius: var(--radius); padding: 16px; margin-top: 12px; text-align: center; }

/* ─── Print / QR ──────────────────────────────────────── */
.print-manager { display: grid; grid-template-columns: minmax(460px, 540px) minmax(0, 1fr); gap: 16px; align-items: start; }
.print-selection-panel { min-width: 460px; }
.print-selection-panel .stbl, .print-preview-panel { border-radius: 12px; overflow: hidden; }
.print-selection-panel .stbl { overflow-x: auto; }
.print-preview-panel { min-width: 0; }
.print-preview-head { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.035); }
#print-sheet-wrap { padding: 12px; overflow: auto; background: #e0e0e0; min-height: 420px; }
.recent-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.recent-chip { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); border-radius: 999px; padding: 8px 12px; font-size: 11px; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; }
.quick-card { border-radius: 10px; padding: 12px; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.label-mark { font-size: 11px; color: var(--mut); }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.sticker { background: #fff; border: 2px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; display: inline-block; }
.sticker canvas { display: block !important; margin: 0 auto 6px !important; }
.stk-sku  { font-family: monospace; font-size: 8px; color: #555; word-break: break-all; margin-bottom: 2px; }
.stk-name { font-size: 10px; font-weight: 700; color: #111; margin-bottom: 2px; line-height: 1.3; }
.stk-bike { font-size: 9px; color: #e65c00; font-weight: 600; margin-bottom: 2px; }
.stk-qty  { font-size: 9px; color: #777; }
.stk-location { font-size: 8px; color: #666; line-height: 1.1; margin-top: 1px; }
/* A4 landscape: 10 cols × 4 rows — each label is 29.7mm × 52.5mm (portrait) */
.sticker-grid.sheet-a4-40 {
  display: grid;
  grid-template-columns: repeat(10, 29.7mm);
  grid-auto-rows: 52.5mm;
  gap: 0;
  width: 297mm;
  margin: 0 auto;
}
.sheet-sticker {
  width: 29.7mm !important;
  height: 52.5mm !important;
  border: 0.3mm dashed #c8c8c8;
  border-radius: 0;
  padding: 1.2mm 0.8mm 0.6mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;   /* QR on top · text below */
  align-items: center;
  justify-content: center;
  background: #fff;
}
.sheet-sticker .stk-qr-col {
  width: 22mm;
  height: 22mm;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8mm;
}
.a4-qr-img, .a4-qr-canvas {
  display: block !important;
  width: 22mm !important;
  height: 22mm !important;
  background: #fff;
  image-rendering: pixelated;
}
.sheet-sticker .stk-text-col {
  width: 100%;
  text-align: center;
  line-height: 1.2;
}
.sheet-sticker .stk-bike { font-size: 5.2px; line-height: 1.2; margin-bottom: 0; color: #e65c00; font-weight: 700; }
.sheet-sticker .stk-name { font-size: 6px;   line-height: 1.15; margin-bottom: 0; font-weight: 700; }
.sheet-sticker .stk-name.name-xs  { font-size: 5.2px; }
.sheet-sticker .stk-name.name-xxs { font-size: 4.5px; }
.sheet-sticker .stk-sku  { font-size: 4.8px; line-height: 1.2; color: #666; font-family: monospace; }
.sheet-sticker .stk-qty  { font-size: 5px;   line-height: 1.3; color: #333; font-weight: 600; }
.sheet-sticker .stk-location { font-size: 4.5px; line-height: 1.2; color: #777; }
.a4-sheet {
  width: 297mm;
  min-height: 210mm;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(10, 29.7mm);
  grid-template-rows: repeat(4, 52.5mm);
  gap: 0;
  margin: 0 auto 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,.18);
  overflow: hidden;
  page-break-after: always;
}
.label-empty {
  width: 29.7mm;
  height: 52.5mm;
  border: 0.3mm dashed #ececec;
  background: #fafafa;
}

/* ─── Invoice (on-screen preview) ────────────────────────*/
.inv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.inv-brandwrap { display: flex; align-items: flex-start; gap: 12px; }
.inv-logo {
  width: 140px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 24px rgba(0,0,0,.26);
}
.inv-brand { font-family: var(--fh); font-size: 22px; font-weight: 800; color: #f0d2b1; letter-spacing: 1px; }
.inv-addr  { font-size: 11px; color: var(--mut); margin-top: 2px; }
.inv-num   { font-family: var(--fh); font-size: 16px; font-weight: 700; text-align: right; }
.inv-date  { font-size: 11px; color: var(--mut); text-align: right; }
.inv-divider { border-top: 1px solid rgba(210,138,66,.14); margin: 12px 0; }
.inv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inv-lbl   { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--mut); margin-bottom: 3px; }
.inv-val   { font-family: var(--fh); font-size: 14px; font-weight: 700; }
.inv-sub   { font-size: 11px; color: var(--mut); }
.inv-desc  { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; }
.inv-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 11px; }
.inv-table th { background: rgba(255,255,255,.035); padding: 6px 8px; text-align: left; font-size: 10px; color: #d8c5b3; }
.inv-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.inv-totals { margin-top: 12px; }
.inv-tot-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.inv-grand  { font-family: var(--fh); font-size: 18px; font-weight: 800; border-top: 2px solid rgba(210,138,66,.28) !important; margin-top: 4px; padding-top: 8px; }

/* ─── Toast ───────────────────────────────────────────── */
.toast { position: fixed; bottom: 20px; right: 20px; background: linear-gradient(180deg, rgba(31,28,25,.98) 0%, rgba(20,20,22,.98) 100%); border: 1px solid rgba(210,138,66,.24); border-radius: 10px; padding: 12px 18px; font-size: 13px; z-index: 999; transform: translateY(80px); opacity: 0; transition: all .3s; max-width: 300px; pointer-events: none; box-shadow: 0 18px 34px rgba(0,0,0,.34); }
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── GS modal ────────────────────────────────────────── */
.gs-form { background: var(--sur2); border-radius: 8px; padding: 14px; margin-bottom: 12px; }

/* ─── Print media — invoice printing (portrait) ───────── */
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body    { background: #fff !important; color: #000 !important; }
  nav, .no-print, .gs-bar { display: none !important; }
  .page { display: none !important; padding: 0 !important; }
  body.print-stickers #page-print { display: block !important; padding: 0 !important; max-width: none !important; margin: 0 !important; }
  body.print-stickers #page-print > .board-hdr { display: none !important; }
  body.print-stickers .print-selection-panel,
  body.print-stickers .print-preview-head,
  body.print-stickers #page-print > div:nth-of-type(2) { display: none !important; }
  body.print-stickers .print-manager { display: block !important; }
  body.print-stickers .print-preview-panel { border: none !important; background: transparent !important; }
  body.print-stickers #print-sheet-wrap { padding: 0 !important; background: #fff !important; min-height: auto !important; }
  .sticker-grid { display: grid !important; }
  /* A4 landscape sticker sheet: 10 cols × 4 rows, 29.7mm × 52.5mm per label */
  .sticker-grid.sheet-a4-40 {
    grid-template-columns: repeat(10, 29.7mm) !important;
    grid-auto-rows: 52.5mm !important;
    gap: 0 !important;
    width: 297mm !important;
    margin: 0 !important;
  }
  .sticker { break-inside: avoid; page-break-inside: avoid; border: 1.5px solid #ccc; }
  .sheet-sticker { border: 0.3mm dashed #c8c8c8 !important; flex-direction: column !important; }
  .a4-sheet { box-shadow: none !important; margin: 0 !important; width: 297mm !important; min-height: 210mm !important; }
  .label-empty { display: block !important; background: #fff !important; }
  .a4-qr-img, .a4-qr-canvas { width: 22mm !important; height: 22mm !important; }
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .page { padding: 14px; }
  .jgrid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .cust-grid, .mech-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .print-manager { grid-template-columns: 1fr; }
  .print-selection-panel { min-width: 0; }
  .report-exec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .report-span-12, .report-span-8, .report-span-7, .report-span-6, .report-span-5, .report-span-4 { grid-column: span 6; }
}

@media (max-width: 600px) {
  body { padding-bottom: env(safe-area-inset-bottom); }
  nav {
    height: auto;
    min-height: 58px;
    padding: 8px 10px 10px;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
  }
  .gs-bar { padding: 6px 12px; align-items: flex-start; }
  .page { padding: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .f2, .f3, .exp-summary, .rgrid, .inv-grid2 { grid-template-columns: 1fr; }
  .print-manager { grid-template-columns: 1fr; }
  .brand { margin-right: 0; gap: 8px; width: 100%; }
  .brand-logo { width: 126px; height: 44px; border-radius: 8px; }
  .tabs {
    width: 100%;
    gap: 6px;
    padding-bottom: 2px;
  }
  .tab   { padding: 8px 12px; font-size: 12px; min-height: 44px; }
  .board-hdr { align-items: stretch; }
  .board-hdr > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px !important;
  }
  .board-hdr > div:last-child > .btn,
  .board-hdr > div:last-child > .sbox,
  .board-hdr > div:last-child > .fsel,
  .board-hdr > div:last-child > div {
    flex: 1 1 100%;
    min-width: 0;
  }
  .mech-toolbar > .fsel,
  .mech-toolbar > .finp {
    flex: 1 1 100%;
    min-width: 0 !important;
    width: 100% !important;
  }
  .board-ttl { font-size: 16px; }
  .btn { min-height: 40px; padding: 10px 14px; font-size: 13px; }
  .btn-sm { min-height: 34px; padding: 6px 10px; font-size: 11px; }
  .sbox, .finp, .fsel { min-height: 42px; padding: 10px 12px; font-size: 14px; }
  textarea.finp { min-height: 88px; }
  .sc { padding: 12px 14px; }
  .sc-val { font-size: 24px; }
  .jgrid, .cust-grid, .mech-grid { grid-template-columns: 1fr; gap: 12px; }
  .jcard, .ccard, .mech-card, .rcard { padding: 14px; }
  .jcust { font-size: 18px; }
  .jprob { font-size: 13px; line-height: 1.55; }
  .jacts, .quick-actions, .mftr { gap: 8px; }
  .jacts .btn, .mftr .btn { flex: 1 1 calc(50% - 4px); }
  .quick-actions .btn { flex: 1 1 calc(50% - 4px); }
  .stbl table { min-width: 560px; }
  .stbl th, .stbl td { padding: 10px 10px; }
  .modal { padding: 16px; border-radius: 16px; max-height: calc(100vh - 18px); }
  .modal.wide, .modal.xl { max-width: 100%; }
  .modal-ttl { font-size: 18px; margin-bottom: 14px; }
  .frow { margin-bottom: 14px; }
  .flbl { font-size: 10px; margin-bottom: 6px; }
  .choice-chips, .hint-chips, .recent-chip-row { gap: 6px; }
  .choice-chips .btn, .hint-chips .btn {
    min-height: 34px;
    padding: 7px 10px;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .inv-logo { width: 108px; height: 52px; }
  .inv-table { min-width: 560px; display: block; overflow-x: auto; white-space: nowrap; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .report-hero { flex-direction: column; align-items: stretch; padding: 16px; }
  .report-title { font-size: 22px; }
  .report-period-wrap { width: 100%; }
  .period-chip { flex: 1; min-width: 0; }
  .report-exec-grid, .report-bento { grid-template-columns: 1fr; }
  .report-span-12, .report-span-8, .report-span-7, .report-span-6, .report-span-5, .report-span-4 { grid-column: span 1; }
  .report-mini-stats { grid-template-columns: 1fr; }
  .report-analysis-grid,
  .report-heatmap-card-grid,
  .report-analysis-metrics { grid-template-columns: 1fr; }
  .report-status-metrics { grid-template-columns: 1fr 1fr; }
  .report-metric-value { font-size: 26px; }
  .report-compare-table { min-width: 520px; }
  .report-heatmap-grid { min-width: 560px; }
  .report-person-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .report-person-main,
  .report-person-stats {
    width: 100%;
  }
  .report-person-stats {
    text-align: left;
    padding-left: 38px;
  }
  .print-selection-panel .stbl table { min-width: 520px; }
  #page-stock .sctrl,
  #page-reports .report-filter-row,
  #page-expenses > .board-hdr + div,
  #page-invoices > div[style*="display:flex"],
  #page-jobs .board-hdr > div:last-child {
    gap: 8px !important;
  }
  #page-stock .sctrl > *,
  #page-reports .report-filter-row > *,
  #page-expenses > .board-hdr + div > *,
  #page-invoices > div[style*="display:flex"] > * {
    flex: 1 1 100%;
    min-width: 0 !important;
    width: 100% !important;
  }
  #job-status-filter-menu {
    left: 0 !important;
    right: 0;
    min-width: 0 !important;
  }
}
@media (max-width: 400px) {
  .page { padding: 10px; }
  .stats { grid-template-columns: 1fr; }
  .sc-val { font-size: 22px; }
  .tab { padding: 8px 10px; font-size: 11px; min-height: 44px; }
  .btn { font-size: 12px; }
  .modal { padding: 14px; }
  .jacts .btn, .mftr .btn, .quick-actions .btn { flex: 1 1 100%; }
  .report-status-metrics { grid-template-columns: 1fr; }
  .report-person-stats { padding-left: 0; }
}

.toast {
  color: #fff !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

.shared-sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(18, 18, 20, .18);
  backdrop-filter: blur(2px);
}

.shared-sync-overlay.show {
  display: grid;
}

.shared-sync-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(210,138,66,.26);
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(24, 24, 26, .96);
  box-shadow: 0 22px 48px rgba(0,0,0,.34);
}

.shared-sync-box strong,
.shared-sync-box span {
  display: block;
}

.shared-sync-box strong {
  font-family: var(--fh);
  font-size: 13px;
}

.shared-sync-box span {
  margin-top: 3px;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.35;
}

.shared-sync-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid rgba(255,255,255,.22);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: sharedSyncSpin .8s linear infinite;
}

@keyframes sharedSyncSpin {
  to { transform: rotate(360deg); }
}
