/* Webcrawlz - deep navy + teal theme */
:root {
  --bg: #0b1526;
  --sidebar: #081120;
  --card: #101d33;
  --border: #1e2f4d;
  --text: #e6eef7;
  --muted: #7d8ea8;
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.13);
  --ok: #6ee7a0;
  --ok-dim: rgba(110, 231, 160, 0.13);
  --warn: #fbbf24;
  --warn-dim: rgba(251, 191, 36, 0.13);
  --danger: #f87171;
  --danger-dim: rgba(248, 113, 113, 0.13);
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--accent); }

/* ---------- auth pages ---------- */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  width: 380px;
  max-width: 100%;
}
.auth-card .logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.auth-card .logo-row img { width: 44px; height: 44px; border-radius: 10px; }
.auth-card .logo-fallback {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
}
.auth-card h1 { font-size: 20px; margin-bottom: 4px; }
.auth-card p.sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.6px; }
.field input, .field select {
  width: 100%; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.btn {
  display: inline-block; padding: 10px 18px;
  background: var(--accent); color: #06231f; border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.block { width: 100%; }
.btn.danger { background: var(--danger); color: #2b0d0d; }
.form-error {
  display: none; background: var(--danger-dim); color: var(--danger);
  border: 1px solid var(--danger); border-radius: var(--radius);
  padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.form-error.show { display: block; }

/* ---------- app shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; flex-shrink: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 18px 12px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
a.brand-link { text-decoration: none; color: inherit; border-radius: 10px; }
a.brand-link:hover { background: rgba(255, 255, 255, 0.04); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand .logo-fallback {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.brand .name { font-weight: 800; font-size: 15px; letter-spacing: 0.3px; }
.brand .name small { display: block; font-weight: 400; font-size: 9px; letter-spacing: 2.5px; color: var(--muted); }
.nav-item {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: 13.5px; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left; font-family: inherit;
}
.nav-item:hover { background: rgba(45, 212, 191, 0.06); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 700; }
.sidebar .spacer { flex: 1; }
.user-chip { padding: 10px 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.user-chip button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12.5px; padding: 0; margin-top: 4px; }

.main { flex: 1; padding: 26px 30px; min-width: 0; }
.main h2 { font-size: 20px; margin-bottom: 4px; }
.main .page-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.kpi .v { font-size: 26px; font-weight: 800; color: var(--accent); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.card h3 { font-size: 15px; margin-bottom: 10px; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; padding: 9px 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted); border-bottom: 1px solid var(--border);
}
table.grid td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: rgba(45, 212, 191, 0.04); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.badge.prospect { background: rgba(125, 142, 168, 0.15); color: var(--muted); }
.badge.contacted { background: var(--accent-dim); color: var(--accent); }
.badge.proposal { background: var(--warn-dim); color: var(--warn); }
.badge.client { background: var(--ok-dim); color: var(--ok); }
.badge.active { background: var(--accent-dim); color: var(--accent); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select {
  padding: 8px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
}
.empty { color: var(--muted); padding: 30px; text-align: center; font-size: 13.5px; }
.placeholder { text-align: center; padding: 60px 20px; color: var(--muted); }
.placeholder .big { font-size: 40px; margin-bottom: 12px; }
.placeholder h3 { color: var(--text); margin-bottom: 6px; }

/* Find (Phase B) */
.tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.tab {
  background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 16px; cursor: pointer; border-radius: 8px;
}
.tab:hover { color: var(--text); background: rgba(45, 212, 191, 0.06); }
.tab.on { color: var(--accent); background: var(--accent-dim); }
.progress { height: 8px; background: rgba(125, 142, 168, 0.18); border-radius: 6px; overflow: hidden; margin: 8px 0; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width 0.4s; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chk input { accent-color: var(--accent); }
.card .field input, .toolbar input[type="text"], .toolbar input:not([type]) {
  padding: 9px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13.5px;
}
.card .field input:focus, .toolbar input:focus { outline: none; border-color: var(--accent); }
.card textarea {
  padding: 8px 10px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px; font-family: inherit;
}
table.grid select {
  padding: 6px 8px; background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-size: 12.5px;
}
table.grid input[type="checkbox"] { accent-color: var(--accent); }
a.btn { text-decoration: none; display: inline-block; }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.badge.danger { background: var(--danger-dim); color: var(--danger); }

/* ---------- Pipeline / CRM (Phase D) ---------- */
.kanban {
  display: grid; grid-template-columns: repeat(5, minmax(215px, 1fr));
  gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start;
}
.kcol { background: rgba(16, 29, 51, 0.55); border: 1px solid var(--border); border-radius: var(--radius); min-height: 180px; }
.kcol-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.kcount {
  font-size: 11px; font-weight: 700; color: var(--muted);
  background: rgba(125, 142, 168, 0.15); border-radius: 12px; padding: 1px 9px;
}
.kcol-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 90px; }
.kcol-body.drover { outline: 2px dashed var(--accent); outline-offset: -2px; border-radius: 0 0 8px 8px; }
.kempty { color: var(--muted); font-size: 12px; text-align: center; padding: 18px 6px; border: 1px dashed var(--border); border-radius: 8px; }
.kcard {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; cursor: grab;
}
.kcard:active { cursor: grabbing; }
.kname { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.kname a { color: var(--text); text-decoration: none; }
.kname a:hover { color: var(--accent); }
.kmeta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.kdeals { font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.kfu { font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.kfu.overdue { color: var(--danger); }
.kfu.today { color: var(--warn); }
.kfu.upcoming, .kfu.done { color: var(--muted); }
.kacts { margin-top: 6px; }

/* business drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(4, 8, 16, 0.6); z-index: 40;
}
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(480px, 94vw);
  background: var(--bg); border-left: 1px solid var(--border); z-index: 41;
  overflow-y: auto; padding: 20px 22px 40px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.dhead h3 { font-size: 18px; margin: 0; }
.dsub { font-size: 12px; margin-top: 4px; }
.dsub2 { color: var(--muted); font-size: 12px; }
.dsec { border-top: 1px solid var(--border); padding: 16px 0; }
.dsec h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 12px; }
.dform .field { margin-bottom: 12px; }
.dform textarea { width: 100%; }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.inline-form input, .inline-form select {
  flex: 1 1 120px; padding: 8px 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px;
}
.inline-form input:focus, .inline-form select:focus { outline: none; border-color: var(--accent); }
.drow {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.drow:last-child { border-bottom: none; }
.drow.dimmed { opacity: 0.55; }
.drowact { display: flex; gap: 6px; flex-shrink: 0; }
.timeline { display: flex; flex-direction: column; gap: 2px; }
.tl-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; align-items: flex-start; }
.tl-item:last-child { border-bottom: none; }
.tl-item .badge { flex-shrink: 0; margin-top: 1px; }
.tl-body { flex: 1; }
.danger-zone { border: 1px solid var(--danger); border-radius: var(--radius); padding: 16px; margin-top: 8px; }
.danger-zone h4 { color: var(--danger); }

/* ---------- Motion (Lens-style): subtle, respects reduced motion ---------- */

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
#main > * { animation: viewIn 0.28s ease; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.kcard { animation: cardIn 0.3s ease; }
.kcard:hover { border-color: var(--accent); }

.kcol-body.drover {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
  border-radius: 0 0 8px 8px;
  background: rgba(45, 212, 191, 0.06);
  transition: background 0.15s;
}

/* Pulsing "live" dot for running jobs and audits */
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.livedot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; vertical-align: 1px;
  box-shadow: 0 0 10px var(--accent);
  animation: livePulse 1.4s ease-in-out infinite;
}

/* Shimmering progress bar while a Find job is active */
@keyframes barShimmer {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}
.progress.live > i {
  background-image: linear-gradient(45deg,
    rgba(255, 255, 255, 0.22) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.22) 75%, transparent 75%);
  background-size: 40px 40px;
  animation: barShimmer 0.9s linear infinite;
}

/* Gentle lift on dashboard cards */
.card { transition: transform 0.18s ease, border-color 0.18s ease; }
.kpis .kpi { transition: transform 0.18s ease, border-color 0.18s ease; }
.kpis .kpi:hover { transform: translateY(-3px); border-color: var(--accent); }

/* Buttons: subtle press feedback */
.btn { transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:active { transform: scale(0.97); }

/* Drawer / modal slide-in */
@keyframes drawerIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.drawer { animation: drawerIn 0.25s ease; }
@keyframes backdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.drawer-backdrop { animation: backdropIn 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  #main > *, .kcard, .drawer, .drawer-backdrop { animation: none; }
  .livedot { animation: none; opacity: 1; }
  .progress.live > i { animation: none; }
  .card, .kpis .kpi, .btn { transition: none; }
}

/* ---------- bulk selection bar ---------- */
.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  animation: viewIn 0.2s ease;
  flex-wrap: wrap;
}
.bulkbar strong { font-size: 13.5px; }
.bulkbar select {
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}
.ksel {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.kname .ksel { margin-right: 8px; vertical-align: -2px; }
th .ksel, td .ksel { vertical-align: -2px; }

/* ---------- themed dialogs (replaces native alert/confirm) ---------- */
.ui-dialog {
  position: fixed;
  z-index: 61;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  width: 400px;
  max-width: calc(100vw - 48px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  animation: viewIn 0.18s ease;
}
.ui-dialog-msg {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
  white-space: pre-wrap;
}
.ui-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- animation batch: gauges, live find, sparklines, counters, drag ---------- */

/* audit score gauge */
.gauge-wrap { display: flex; align-items: center; gap: 18px; }
.gauge-svg { width: 150px; height: 92px; flex-shrink: 0; }
.gauge-num { font-size: 30px; font-weight: 800; fill: var(--text); }
.gauge-label { font-size: 10px; letter-spacing: 1.5px; fill: var(--muted); }
.scorebar { margin-top: 10px; }
.scorebar .sb-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.scorebar .sb-name { width: 130px; color: var(--muted); flex-shrink: 0; }
.scorebar .sb-track { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.scorebar .sb-fill { height: 100%; width: 0; border-radius: 6px; background: var(--teal);
  transition: width 1s cubic-bezier(.22,.8,.3,1); }
.scorebar .sb-val { width: 34px; text-align: right; font-weight: 700; }

/* find: live job card scan */
.card.scanning { position: relative; overflow: hidden; }
.card.scanning::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(45,212,191,.10) 50%, transparent 70%);
  animation: scanSweep 2.2s linear infinite; }
@keyframes scanSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.count-tick { display: inline-block; animation: countTick .5s ease; color: var(--teal); font-weight: 800; }
@keyframes countTick { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.newres-pill { animation: viewIn .25s ease; }

/* find: staggered result rows */
tr.rrow-in { animation: rowIn .35s ease backwards; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* rankings: sparkline draw + delta flash */
.spark { display: block; margin-top: 6px; }
.spark path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: sparkDraw 1.1s ease forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.delta-flash-up { animation: dFlashUp 1.6s ease; border-radius: 6px; }
.delta-flash-down { animation: dFlashDown 1.6s ease; border-radius: 6px; }
@keyframes dFlashUp { 0% { background: rgba(45,212,191,.35); } 100% { background: transparent; } }
@keyframes dFlashDown { 0% { background: rgba(248,113,113,.35); } 100% { background: transparent; } }

/* dashboard: overdue pulse */
.badge.pulse-overdue { animation: overduePulse 2s ease-in-out infinite; }
@keyframes overduePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(248,113,113,.0); } 50% { box-shadow: 0 0 0 5px rgba(248,113,113,.25); } }

/* pipeline: drag lift + landing flash (drop-target glow lives in .kcol-body.drover above) */
.kcard.dragging { opacity: .85; transform: rotate(2deg) scale(1.03); box-shadow: 0 18px 44px rgba(0,0,0,.5);
  border-color: var(--teal); cursor: grabbing; }
@keyframes landFlash { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.55); } 100% { box-shadow: 0 0 0 14px rgba(45,212,191,0); } }
.kcard.landed { animation: landFlash .7s ease; }

/* reduced motion: everything settles instantly */
@media (prefers-reduced-motion: reduce) {
  .card.scanning::after, .count-tick, tr.rrow-in, .spark path,
  .delta-flash-up, .delta-flash-down, .badge.pulse-overdue,
  .kcard.landed { animation: none !important; }
  .scorebar .sb-fill { transition: none; }
}

/* ---------- Phase 2: client workspace ---------- */
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
label.check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.socrow { display: grid; grid-template-columns: 170px 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .socrow { grid-template-columns: 1fr; } }
.socrow2 { display: grid; grid-template-columns: 170px 1fr 110px 150px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.socrow2 input[type="number"] { width: 100%; }
@media (max-width: 900px) { .socrow2 { grid-template-columns: 1fr 1fr; } }
.suggestbox { border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.suggestbox .toolbar { margin: 6px 0; }
/* Desktop-only gate: friendly note on small screens, dismissable per session. */
#deskGate { display: none; }
@media (max-width: 820px) {
  #deskGate { display: flex; position: fixed; inset: 0; z-index: 200; background: var(--bg);
    flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; gap: 14px; }
  #deskGate h2 { margin: 0; }
  #deskGate p { max-width: 340px; opacity: 0.8; }
  #deskGate .fine { font-size: 12px; opacity: 0.55; margin-top: 18px; }
  #deskGate .fine button { background: none; border: none; color: var(--accent); cursor: pointer; text-decoration: underline; font-size: 12px; }
}
/* Client reports: clean document + print rules. */
.rpt { background: #fff; color: #111; border-radius: 12px; padding: 36px 40px; max-width: 800px; }
.rpt h2 { color: #0b1526; margin: 4px 0 2px; }
.rpt h3 { color: #0b1526; border-bottom: 2px solid #0ea5a4; padding-bottom: 6px; margin-top: 28px; }
.rpt .rpt-agency { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #0ea5a4; font-weight: 700; }
.rpt .rpt-sec ul { padding-left: 20px; }
.rpt .rpt-sec li { margin: 6px 0; }
.rpt table.grid { width: 100%; }
.rpt table.grid th { background: #f1f5f9; color: #0b1526; }
.rpt table.grid td { color: #111; border-color: #e2e8f0; }
.rpt .page-sub { color: #64748b !important; }
.rpt .badge { color: #fff; }
.rpt-foot { margin-top: 32px; padding-top: 12px; border-top: 1px solid #e2e8f0; text-align: center; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, #deskGate { display: none !important; }
  .shell { display: block; }
  .main { margin: 0; padding: 0; }
  .rpt { border-radius: 0; padding: 0; max-width: none; }
  .rpt-sec { break-inside: avoid; }
}
/* Invoices: printable document. */
.inv-top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.inv-meta { text-align: right; display: flex; flex-direction: column; gap: 8px; }
.inv-billto { margin-bottom: 20px; }
.rpt table.grid tr.inv-total td { background: #f1f5f9; font-size: 16px; }
@media print {
  .inv-top { margin-bottom: 16px; }
}
