/* ═══════════════════════════════════════════════════════════════
   PRG OS design system
   Built for a phone held in a work glove at the edge of a parking lot,
   and for a laptop at the kitchen table at 9pm. Big tap targets, high
   contrast, no decoration that doesn't carry information.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0b1220;
  --ink-2: #111c30;
  --ink-3: #1b2942;
  --line: #e2e8f0;
  --line-dark: #24334d;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #7c8ba1;
  --brand: #f59e0b;
  --brand-dark: #d97706;
  --brand-ink: #0b1220;
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --warn: #d97706;
  --warn-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .16);
  --sidebar: 236px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
a { color: inherit; }
img { max-width: 100%; }

/* ─────────── Layout ─────────── */
#app { display: flex; min-height: 100%; }

.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar);
  background: var(--ink); color: #cbd5e1;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 30;
}
.sidebar .logo {
  padding: 22px 20px 18px; font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: -.3px; line-height: 1.25;
}
.sidebar .logo span { color: var(--brand); }
.sidebar .logo small { display: block; font-size: 10.5px; font-weight: 600; color: #64748b; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 2px; border-radius: 9px;
  color: #94a3b8; text-decoration: none; font-weight: 600; font-size: 14px;
  transition: background .12s, color .12s;
}
.nav a:hover { background: var(--ink-2); color: #e2e8f0; }
.nav a.active { background: var(--ink-3); color: #fff; }
.nav a.active .ico { color: var(--brand); }
.nav .ico { width: 19px; text-align: center; font-size: 15px; flex: 0 0 19px; }
.nav .sec { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #64748b; padding: 18px 12px 7px; font-weight: 700; }
.nav .badge { margin-left: auto; background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 20px; }

.sidebar .foot { padding: 12px; border-top: 1px solid var(--line-dark); }
.userchip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.userchip:hover { background: var(--ink-2); }
.userchip .av { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: 0 0 30px; }
.userchip .nm { font-size: 13px; font-weight: 600; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userchip .rl { font-size: 11px; color: #64748b; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.topbar h1 { font-size: 21px; }
.topbar .sub { color: var(--text-3); font-size: 13px; margin-left: 2px; }
.topbar .spacer { flex: 1; }
.view { padding: 24px 26px 90px; flex: 1; }

/* ─────────── Cards ─────────── */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-head h2 { font-size: 15px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.sidebar-left { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; }

/* ─────────── Stats ─────────── */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }
.stat .val { font-size: 27px; font-weight: 800; margin-top: 7px; letter-spacing: -.02em; }
.stat .sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.stat.accent { background: var(--ink); border-color: var(--ink); }
.stat.accent .lbl { color: #64748b; }
.stat.accent .val { color: #fff; }
.stat.accent .sub { color: #94a3b8; }
.stat .val.pos { color: var(--ok); }
.stat .val.neg { color: var(--danger); }

/* ─────────── Buttons ─────────── */
button, .btn {
  font: inherit; font-weight: 650; cursor: pointer;
  border-radius: 10px; border: 1px solid transparent;
  padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: filter .12s, background .12s, border-color .12s;
  text-decoration: none; white-space: nowrap;
}
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: var(--ink-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: #f8fafc; }
.btn-quiet { background: transparent; color: var(--text-2); padding: 7px 10px; }
.btn-quiet:hover:not(:disabled) { background: #f1f5f9; color: var(--text); }
.btn-danger { background: var(--danger-bg); color: #991b1b; }
.btn-danger:hover:not(:disabled) { background: #fecaca; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  background: transparent; border: 0; color: var(--text-3);
  width: 32px; height: 32px; padding: 0; border-radius: 8px; font-size: 16px;
}
.icon-btn:hover { background: #f1f5f9; color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-bg); color: #991b1b; }

/* ─────────── Forms ─────────── */
label.field { display: block; margin-bottom: 14px; }
label.field > span {
  display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-3); margin-bottom: 6px;
}
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 10px;
  background: var(--surface); transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; margin-bottom: 10px; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: 0 0 17px; }

/* ─────────── Tables ─────────── */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; padding: 11px 16px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); font-weight: 700;
  border-bottom: 1px solid var(--line); background: #f8fafc; white-space: nowrap;
}
table.data th.r, table.data td.r { text-align: right; }
table.data td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: #fafbfc; }
table.data tbody tr.static { cursor: default; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .strong { font-weight: 650; }
table.data .muted { color: var(--text-3); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ─────────── Pills / badges ─────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 20px; text-transform: uppercase;
  background: #f1f5f9; color: var(--text-2); white-space: nowrap;
}
.pill.ok { background: var(--ok-bg); color: #166534; }
.pill.warn { background: var(--warn-bg); color: #92400e; }
.pill.danger { background: var(--danger-bg); color: #991b1b; }
.pill.info { background: var(--info-bg); color: #1e40af; }
.pill.dark { background: var(--ink); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: #eef2f7; color: var(--text-2); }

/* ─────────── Empty / loading ─────────── */
.empty { text-align: center; padding: 56px 24px; color: var(--text-3); }
.empty .big { font-size: 40px; margin-bottom: 12px; opacity: .5; }
.empty h3 { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }
.empty p { font-size: 14px; max-width: 42ch; margin: 0 auto 18px; }
.skel { background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 17px; height: 17px; border: 2px solid rgba(0,0,0,.15); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────── Toasts ─────────── */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 11px;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 550; max-width: 380px;
  display: flex; align-items: center; gap: 10px; animation: rise .22s ease-out; pointer-events: auto;
}
.toast.ok { background: #14532d; }
.toast.err { background: #7f1d1d; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ─────────── Modal / drawer ─────────── */
/* Above the lightbox (150) so a dialog opened from it is never buried. */
.overlay {
  position: fixed; inset: 0; background: rgba(11, 18, 32, .55);
  z-index: 160; display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: min(620px, 100%); max-height: 90vh; display: flex; flex-direction: column; animation: pop .18s ease-out;
}
.modal.wide { width: min(980px, 100%); }
@keyframes pop { from { transform: scale(.97) translateY(8px); opacity: 0; } }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal-head h2 { font-size: 17px; flex: 1; }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #fafbfc; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(760px, 100%); background: var(--surface); z-index: 110; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } }

/* ─────────── Photos ─────────── */
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo {
  position: relative; border-radius: 11px; overflow: hidden; background: #e2e8f0;
  aspect-ratio: 4/3; cursor: pointer; border: 1px solid var(--line);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .meta {
  position: absolute; inset: auto 0 0 0; padding: 22px 9px 7px;
  background: linear-gradient(transparent, rgba(11,18,32,.82));
  color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px;
}
.photo .ph { position: absolute; top: 7px; left: 7px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 5px; background: rgba(11,18,32,.75); color: #fff; }
.photo .ph.before { background: #b91c1c; }
.photo .ph.after { background: #15803d; }
.photo .gps { position: absolute; top: 7px; right: 7px; font-size: 11px; opacity: .9; }
.photo.sel { outline: 3px solid var(--brand); outline-offset: -3px; }

.lightbox { position: fixed; inset: 0; background: rgba(6,10,18,.95); z-index: 150; display: flex; flex-direction: column; }
.lightbox .lb-top { padding: 14px 18px; display: flex; align-items: center; gap: 12px; color: #fff; }
.lightbox .lb-top .spacer { flex: 1; }
.lightbox .lb-img { flex: 1; display: grid; place-items: center; padding: 10px 18px; min-height: 0; }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .lb-bot { padding: 16px 18px 24px; color: #cbd5e1; font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.lightbox button { background: rgba(255,255,255,.11); color: #fff; }
.lightbox button:hover { background: rgba(255,255,255,.2); }

/* ─────────── Repair builder ─────────── */
.repair { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.repair-head { display: flex; align-items: center; gap: 11px; padding: 13px 15px; cursor: pointer; background: #fbfcfd; }
.repair-head:hover { background: #f6f8fa; }
.repair-head .n { width: 25px; height: 25px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: 0 0 25px; }
.repair-head .t { flex: 1; min-width: 0; }
.repair-head .t b { display: block; font-size: 14.5px; }
.repair-head .t small { color: var(--text-3); font-size: 12.5px; }
.repair-head .amt { font-weight: 750; font-size: 15px; font-variant-numeric: tabular-nums; }
.repair-body { padding: 16px 15px; border-top: 1px solid var(--line); }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-2);
}
.chip:hover { border-color: #94a3b8; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on.brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.summary { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 20px 22px; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: #94a3b8; }
.summary .line b { color: #fff; font-variant-numeric: tabular-nums; font-weight: 650; }
.summary .line.total { border-top: 1px solid var(--line-dark); margin-top: 9px; padding-top: 13px; font-size: 17px; color: #fff; font-weight: 700; }
.summary .line.total b { color: var(--brand); font-size: 22px; font-weight: 800; }
.summary .line.profit b { color: #4ade80; }

/* ─────────── Calendar ─────────── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal .dow { padding: 9px; text-align: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); background: #f8fafc; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal .day { min-height: 108px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.cal .day.out { background: #fafbfc; }
.cal .day.today .dn { background: var(--brand); color: var(--brand-ink); }
.cal .dn { font-size: 12px; font-weight: 700; color: var(--text-2); width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 5px; }
.cal .ev {
  font-size: 11.5px; padding: 4px 7px; border-radius: 6px; margin-bottom: 3px; cursor: pointer;
  background: var(--info-bg); color: #1e3a8a; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-left: 3px solid var(--info);
}
.cal .ev.done { background: var(--ok-bg); color: #14532d; border-left-color: var(--ok); }
.cal .ev:hover { filter: brightness(.96); }

/* ─────────── Mobile ─────────── */
.mobile-nav { display: none; }
.mobile-top { display: none; }
.fab { display: none; }

@media (max-width: 900px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3, .grid.c2, .grid.sidebar-left { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .view { padding: 16px 14px 110px; }

  /* The topbar carries the page title and every primary action (Complete, Invoice,
     Send). It must stay reachable on a phone, so it flows inline instead of hiding. */
  .topbar {
    position: static; background: transparent; backdrop-filter: none;
    border-bottom: 0; padding: 0 0 14px; gap: 10px;
  }
  /* The sticky bar already shows the page title, so don't print it twice. */
  .topbar h1 { display: none; }
  .topbar .sub { width: 100%; margin: 0 0 2px; font-size: 13.5px; }
  .topbar .spacer { display: none; }
  .topbar button, .topbar .btn { flex: 1 1 auto; min-height: 44px; }
  .topbar > .pill { align-self: center; }

  .mobile-top {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 20; padding: 13px 16px;
    background: var(--ink); color: #fff;
  }
  .mobile-top h1 {
    font-size: 17px; flex: 1; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .mobile-top .icon-btn { color: #94a3b8; }
  .mobile-top .icon-btn:hover { background: var(--ink-2); color: #fff; }

  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; text-decoration: none; color: var(--text-3); font-size: 10px; font-weight: 650;
    border-radius: 9px;
  }
  .mobile-nav a .ico { font-size: 19px; }
  .mobile-nav a.active { color: var(--brand-dark); }

  .fab {
    display: grid; place-items: center;
    position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 45;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--brand); color: var(--brand-ink); font-size: 25px;
    box-shadow: 0 6px 22px rgba(245, 158, 11, .48); border: 0;
  }
  .fab:active { transform: scale(.94); }

  .modal, .drawer { width: 100%; max-height: 94vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; align-self: flex-end; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal-foot { position: sticky; bottom: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .toasts { left: 14px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }

  /* Scroll wide tables sideways rather than hiding columns. A balance or a status
     the crew cannot see is worse than one they have to swipe to. */
  .card-body.tight { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.data { min-width: 100%; }
  table.data th, table.data td { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
  table.data td .idesc, table.data td .muted { white-space: normal; }

  .row { flex-direction: column; }
  .photogrid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
  .cal .day { min-height: 74px; padding: 4px; }
  .cal .ev { font-size: 9.5px; padding: 2px 4px; }
  input, select, textarea { font-size: 16px; } /* iOS: stop the zoom-on-focus */
}

/* Offline banner */
.offline-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--warn); color: #422006; padding: 9px 16px;
  font-size: 13px; font-weight: 700; text-align: center;
}
@media (max-width: 900px) { .offline-bar { bottom: calc(66px + env(safe-area-inset-bottom)); } }

@media print {
  .sidebar, .topbar, .mobile-nav, .mobile-top, .fab, .no-print { display: none !important; }
  .view { padding: 0; }
  .card { box-shadow: none; border: 0; }
}
