/* ===========================================================
   GSPOS — admin dashboard UI
   Fixed sidebar, normal desktop density, stroke icons.
   Base 14px, controls 38px, cards on a light neutral ground.
   =========================================================== */

:root {
  --bg:          #f4f6f9;
  --surface:     #ffffff;
  --surface-2:   #f8fafc;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;

  --text:        #0f172a;
  --text-2:      #475569;
  --muted:       #94a3b8;

  --brand:       #2563eb;
  --brand-dark:  #1d4ed8;
  --brand-soft:  #eff6ff;

  --green:       #059669;
  --green-soft:  #ecfdf5;
  --red:         #dc2626;
  --red-soft:    #fef2f2;
  --amber:       #d97706;
  --amber-soft:  #fffbeb;
  --violet:      #7c3aed;
  --violet-soft: #f5f3ff;

  --sidebar:     #0f172a;
  --sidebar-2:   #1e293b;
  --sidebar-tx:  #94a3b8;

  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;

  --sh-sm: 0 1px 2px rgba(15,23,42,.06);
  --sh:    0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --sh-lg: 0 10px 24px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.05);

  --sidebar-w: 244px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 15px; }

.ico { flex: none; vertical-align: middle; }

/* ---------- shell ---------- */

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

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sidebar);
  display: flex; flex-direction: column;
  z-index: 60;
}

.sb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
}
.sb-brand .mark {
  width: 34px; height: 34px; border-radius: var(--r);
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  object-fit: cover;   /* the mark is an <img> once a logo is uploaded */
}
.sb-brand .nm { font-size: 14px; font-weight: 600; line-height: 1.2; }
.sb-brand .sub { font-size: 11px; color: var(--sidebar-tx); }

.sb-scroll { flex: 1; overflow-y: auto; padding: 12px 10px; }

.sb-label {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #64748b;
  padding: 14px 10px 6px;
}
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 2px;
  border-radius: var(--r-sm);
  color: var(--sidebar-tx);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
}
.sb-link:hover { background: var(--sidebar-2); color: #e2e8f0; text-decoration: none; }
.sb-link.on { background: var(--brand); color: #fff; }
.sb-link .tally {
  margin-left: auto;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
}
.sb-link.on .tally { background: rgba(255,255,255,.25); }
.sb-link .tally.warn { background: var(--red); color: #fff; }

.sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #e2e8f0;
}
.sb-user .nm { font-size: 13px; font-weight: 600; }
.sb-user .role { font-size: 11px; color: var(--sidebar-tx); }
.sb-user a { color: var(--sidebar-tx); display: flex; padding: 6px; border-radius: var(--r-sm); }
.sb-user a:hover { background: var(--sidebar-2); color: #fff; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 20px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 16px; }
.topbar .sub { font-size: 12px; color: var(--muted); }
.topbar .grow { flex: 1; min-width: 0; }

.content { padding: 20px; max-width: 1500px; width: 100%; }

.burger { display: none; }
.sb-backdrop { display: none; }

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  body.sb-open .sidebar { transform: none; }
  .main { margin-left: 0; }
  .burger { display: inline-flex; }
  body.sb-open .sb-backdrop {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(15,23,42,.45);
  }
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 16px;
}
.card-head {
  display: flex; align-items: center; gap: 8px;
  margin: -16px -16px 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
}
.card-pad-0 { padding: 0; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s;
  text-decoration: none;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { box-shadow: inset 0 1px 3px rgba(15,23,42,.1); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.btn-icon { width: 38px; padding: 0; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-sm.btn-icon { width: 32px; padding: 0; }
.btn-lg { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { filter: brightness(.94); }
.btn-danger  { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
.btn-warn    { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-warn:hover { filter: brightness(.94); }

.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn-outline-danger { color: var(--red); border-color: #fecaca; }
.btn-outline-danger:hover { background: var(--red-soft); }
.btn-outline-success { color: var(--green); border-color: #a7f3d0; }
.btn-outline-success:hover { background: var(--green-soft); }

.btn.on { background: var(--brand-soft); border-color: #bfdbfe; color: var(--brand-dark); }

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

.field { margin-bottom: 14px; }
.field > label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); margin-bottom: 5px;
}
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.input {
  width: 100%; height: 38px;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: 0;
}
textarea.input { height: auto; min-height: 76px; padding: 9px 11px; resize: vertical; }
select.input { padding-right: 30px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.input::placeholder { color: var(--muted); }
.input-lg { height: 46px; font-size: 18px; font-weight: 600; }

.input-group { display: flex; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; border-left: 0; }

.search-wrap { position: relative; flex: 1; }
.search-wrap .ico {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-wrap .input { padding-left: 34px; }

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

.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-tiles { grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); }

/* Billing grid: four across on any desktop or landscape tablet, so each photo
   is as large as the column allows. Only narrow phones step down. */
.g-billing { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .g-billing { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .g-billing { grid-template-columns: repeat(2, 1fr); } }
.g-people { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
@media (max-width: 720px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.mb { margin-bottom: 14px; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 22px; }
.center { text-align: center; }
.right { text-align: right; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-green { color: var(--green); } .text-red { color: var(--red); }
.text-amber { color: var(--amber); } .text-brand { color: var(--brand); }
.nowrap { white-space: nowrap; }

/* ---------- stat tiles ---------- */

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.stat .badge {
  width: 36px; height: 36px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex: none;
  background: var(--brand-soft); color: var(--brand);
}
.stat .badge.green  { background: var(--green-soft);  color: var(--green); }
.stat .badge.red    { background: var(--red-soft);    color: var(--red); }
.stat .badge.amber  { background: var(--amber-soft);  color: var(--amber); }
.stat .badge.violet { background: var(--violet-soft); color: var(--violet); }
.stat .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .val { font-size: 20px; font-weight: 650; letter-spacing: -.02em; margin-top: 1px; }

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

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
}
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red   { background: var(--red-soft);   color: var(--red); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-brand { background: var(--brand-soft); color: var(--brand-dark); }
.pill-grey  { background: var(--surface-2);  color: var(--text-2); border: 1px solid var(--border); }

/* ---------- avatars ---------- */

.ava {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ava-sm { width: 30px; height: 30px; }
.ava-lg { width: 72px; height: 72px; }
.ava-letter {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 15px; border: 0;
}
.ava-sm.ava-letter { font-size: 12px; }
.ava-lg.ava-letter { font-size: 26px; }

/* ---------- product tiles ---------- */

.tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  cursor: pointer;
  text-align: center;
  color: inherit; text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s;
  display: block;
}
.tile:hover { border-color: var(--border-2); box-shadow: var(--sh); text-decoration: none; }
.tile:active { transform: scale(.985); }
.tile.picked { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.tile-img {
  width: 100%; aspect-ratio: 1/1;
  border-radius: var(--r); object-fit: cover;
  background: var(--surface-2);
}
.tile-img.ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px dashed var(--border-2);
}
/* Tiles carry no caption: the photo is the label. Numbers only underneath. */
.tile-price { font-size: 14px; font-weight: 650; margin-top: 7px; }
.tile-photo { padding: 6px; }
.tile-photo .tile-img { border-radius: 7px; }
.tile-sub { font-size: 11.5px; color: var(--muted); }
.tile-round { border-radius: 50%; }
.tile-badge {
  position: absolute; top: 5px; right: 5px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.tile-flag {
  position: absolute; top: 5px; left: 5px;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--amber); color: #fff;
}
.tile-flag.out { background: var(--muted); }
.tile-dim { opacity: .55; }

/* ---------- list rows ---------- */

.list { display: flex; flex-direction: column; }
.lrow {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  color: inherit; text-decoration: none;
}
.lrow:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.lrow:last-child  { border-radius: 0 0 var(--r-lg) var(--r-lg); border-bottom: 1px solid var(--border); }
.lrow:only-child  { border-radius: var(--r-lg); }
a.lrow:hover { background: var(--surface-2); text-decoration: none; }
.lrow .main { flex: 1; min-width: 0; }
.lrow .title { font-size: 13.5px; font-weight: 550; }
.lrow .meta  { font-size: 12px; color: var(--muted); }
.lrow .amt   { font-size: 14px; font-weight: 650; white-space: nowrap; }

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

.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.scroll-x { overflow-x: auto; }

/* ---------- billing ---------- */

.pos { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pos { grid-template-columns: 1fr; } }

.cart-panel { position: sticky; top: 74px; }
.cart-items { max-height: 40vh; overflow-y: auto; }
.cart-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; cursor: pointer; }
.cart-item .nm small { display: block; color: var(--muted); font-weight: 400; }
.qty-btn {
  width: 26px; height: 26px; flex: none;
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.qty-btn:hover { background: var(--surface-2); }
.qty-num { min-width: 26px; text-align: center; font-size: 13.5px; font-weight: 650; }

.tot-line { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.tot-line.grand {
  font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  border-top: 1px solid var(--border); margin-top: 6px; padding-top: 9px;
}

.cust-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--surface-2);
  cursor: pointer; width: 100%; text-align: left;
}
.cust-chip:hover { border-color: var(--border-2); }

/* ---------- the change screen ---------- */
/* This is the one place that stays deliberately large: it is read at arm's
   length across a counter, and it is the whole reason the app exists. */

.change-box {
  border-radius: var(--r-lg); padding: 18px;
  background: var(--green-soft); border: 1px solid #a7f3d0;
  text-align: center;
}
.change-box.exact { background: var(--brand-soft); border-color: #bfdbfe; }
.change-box.short { background: var(--amber-soft); border-color: #fde68a; }
.change-box .lbl {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green);
}
.change-box.exact .lbl { color: var(--brand-dark); }
.change-box.short .lbl { color: var(--amber); }
.change-box .amt {
  font-size: 46px; font-weight: 750; line-height: 1.1;
  letter-spacing: -.03em; color: var(--green);
}
.change-box.exact .amt { color: var(--brand-dark); font-size: 34px; }
.change-box.short .amt { color: var(--amber); }

.notes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.note-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 4px 8px;
}
.note-face {
  min-width: 40px; height: 24px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
}
.note-x { font-size: 13px; font-weight: 700; color: var(--text-2); }

/* Indian note colours, so a chip resembles the real thing. */
.d500 { background: #8a6d3b; } .d200 { background: #e8a33d; } .d100 { background: #7f6fb0; }
.d50  { background: #4aa3c7; } .d20  { background: #b6d34a; } .d10  { background: #b98a52; }
.d5   { background: #6b8e23; } .d2   { background: #9aa0a6; } .d1   { background: #9aa0a6; }

/* ---------- keypad ---------- */

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.key {
  height: 44px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--surface); font-size: 17px; font-weight: 600; cursor: pointer;
}
.key:hover { background: var(--surface-2); }
.key:active { background: var(--border); }
.key.sec { font-size: 13px; color: var(--text-2); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

/* ---------- modal ---------- */

.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,23,42,.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
}
.modal-wide { max-width: 820px; }
.modal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-body { padding: 16px; }
.modal-foot {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border); background: var(--surface-2);
  position: sticky; bottom: 0;
}
.modal-foot .btn { flex: 1; }

/* ---------- photo upload ---------- */

.photo-drop {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px dashed var(--border-2); border-radius: var(--r-lg);
  padding: 14px; background: var(--surface-2);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.photo-drop:hover, .photo-drop.over { border-color: var(--brand); background: var(--brand-soft); }
/* Visually hidden rather than display:none — a display:none file input is
   unreliable to open programmatically in some browsers. */
.photo-drop .photo-input {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.photo-drop { position: relative; }
.photo-drop:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.photo-drop .photo-clear { position: relative; z-index: 1; }
.photo-prev {
  width: 78px; height: 78px; flex: none;
  border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.photo-prev.has { border-style: solid; }
.photo-copy { flex: 1; min-width: 0; }
.photo-copy .t { font-size: 13.5px; font-weight: 550; }
.photo-copy .s { font-size: 12px; color: var(--muted); }

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

.empty {
  text-align: center; padding: 46px 20px; color: var(--muted);
  border: 1px dashed var(--border-2); border-radius: var(--r-lg);
  background: var(--surface);
}
.empty .ico { color: var(--border-2); margin-bottom: 8px; }
.empty p { font-size: 13.5px; margin: 4px 0 14px; }

.alert {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 500; margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-ok  { background: var(--green-soft); color: #065f46; border-color: #a7f3d0; }
.alert-err { background: var(--red-soft);   color: #991b1b; border-color: #fecaca; }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tabs .btn { flex: none; }

.section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin: 20px 0 8px;
}

.offline-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: none; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--r);
  background: var(--amber); color: #fff;
  font-size: 13px; font-weight: 550;
  box-shadow: var(--sh-lg);
  max-width: 380px;
}
.offline-bar.show { display: flex; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.dot.off { background: var(--amber); }
.dot.pending { background: var(--brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.conn { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

@media print { .sidebar, .topbar, .offline-bar, .no-print { display: none !important; } .main { margin: 0; } }
