/* ==========================================================================
   GirviBook — Mobile-first gold-loan (girvi) manager
   Design system
   ========================================================================== */

:root {
  /* Brand — premium jeweller palette */
  --gold:        #c8a24a;
  --gold-deep:   #a9832f;
  --gold-soft:   #f4ecd8;
  --ink:         #1b1e2b;   /* headers, primary text */
  --ink-2:       #3a3f52;
  --muted:       #7c8296;
  --line:        #e7e3d8;
  --bg:          #f7f4ec;   /* warm paper */
  --surface:     #ffffff;
  --surface-2:   #fbf9f3;

  /* Semantic */
  --due:         #c0392b;   /* money owed / remaining (red) */
  --due-soft:    #fdecea;
  --paid:        #1f8a54;   /* received / positive (green) */
  --paid-soft:   #e6f4ec;
  --info:        #2f6ecf;
  --info-soft:   #e8f0fc;
  --warn:        #b8860b;

  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(27,30,43,.05), 0 6px 18px rgba(27,30,43,.05);
  --shadow-lg:   0 12px 40px rgba(27,30,43,.18);

  --nav-h:       58px;
  --app-max:     480px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* SVG icon base — inherits colour from its container via currentColor */
.svgic { display: block; flex: 0 0 auto; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #ece7db;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overscroll-behavior-y: none; }

/* App is a centered mobile column even on desktop */
#app {
  max-width: var(--app-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(0,0,0,.12);
  position: relative;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea { font-family: inherit; font-size: 16px; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--info); text-decoration: none; }

/* ---------- Top app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #20233a, #191b2c);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.appbar .back {
  font-size: 22px; line-height: 1; color: #fff; margin: -4px 0;
  width: 30px; display: flex; align-items: center;
}
.appbar h1 { font-size: 16.5px; margin: 0; font-weight: 650; letter-spacing: .2px; flex: 1; }
.appbar .sub { font-size: 11px; color: #b9bdd4; font-weight: 500; }
.appbar .brandmark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: #241d05; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.appbar .actions { margin-left: auto; display: flex; gap: 6px; }
.appbar .actions button {
  color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; gap: 6px;
}
.appbar .back { justify-content: center; }
.appbar .back .svgic { stroke-width: 2.2; }

/* ---------- Scrollable content ---------- */
.screen {
  flex: 1;
  padding: 12px 13px calc(var(--nav-h) + 24px);
  overflow-y: auto;
}
.screen.no-nav { padding-bottom: 24px; }

/* ---------- Bottom navigation ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--app-max);
  height: var(--nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 10px; font-weight: 600;
}
.bottomnav button .ic { display: grid; place-items: center; height: 24px; }
.bottomnav button.active { color: var(--gold-deep); }
.bottomnav button.active .ic .svgic { stroke-width: 2.1; }
.bottomnav button.center {
  flex: 0 0 auto;
}
.bottomnav .fab {
  width: 50px; height: 50px; margin-top: -18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: #241d05;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(168,131,47,.45);
  border: 3px solid var(--bg);
}
.bottomnav .fab .svgic { stroke-width: 2.4; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px; margin-bottom: 10px;
  border: 1px solid rgba(231,227,216,.7);
}
.card.tight { padding: 11px; }

.section-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); font-weight: 700; margin: 16px 4px 7px;
}
.section-title:first-child { margin-top: 4px; }

/* ---------- Dashboard summary ---------- */
.hero {
  background: linear-gradient(150deg, #23263e 0%, #171a2b 100%);
  color: #fff; border-radius: 16px; padding: 15px 16px; margin-bottom: 10px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(23,26,43,.26);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,74,.32), transparent 70%);
}
.hero .label { font-size: 11px; color: #b9bdd4; font-weight: 600; letter-spacing: .3px; }
.hero .big { font-size: 25px; font-weight: 800; margin: 3px 0 1px; letter-spacing: -.5px; }
.hero .big .rupee { color: var(--gold); font-weight: 700; }
.hero .row { display: flex; gap: 8px; margin-top: 11px; }
.hero .row .stat {
  flex: 1; background: rgba(255,255,255,.08); border-radius: 10px; padding: 7px 10px;
}
.hero .row .stat .n { font-size: 15px; font-weight: 700; }
.hero .row .stat .t { font-size: 10.5px; color: #b9bdd4; margin-top: 1px; }

.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kpi {
  background: var(--surface); border-radius: 12px; padding: 10px 12px;
  box-shadow: var(--shadow); border: 1px solid rgba(231,227,216,.7);
}
.kpi .n { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.kpi .t { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 1px; }
.kpi.due .n { color: var(--due); }
.kpi.paid .n { color: var(--paid); }

/* ---------- Quick actions (compact icon row) ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface); border-radius: 13px; padding: 11px 4px 9px;
  box-shadow: var(--shadow); border: 1px solid rgba(231,227,216,.7);
  text-align: center;
}
.quick .qic {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
}
.quick .qic .svgic { width: 19px; height: 19px; }
.quick .qt { font-weight: 700; font-size: 11px; line-height: 1.2; }
.quick .qd { display: none; }
.qic.g1 { background: var(--gold-soft); color: var(--gold-deep); }
.qic.g2 { background: var(--paid-soft); color: var(--paid); }
.qic.g3 { background: var(--info-soft); color: var(--info); }
.qic.g4 { background: #f3ecfb; color: #7b45c9; }

/* ---------- Girvi list item ---------- */
.gitem {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 11px 13px; margin-bottom: 8px;
  border: 1px solid rgba(231,227,216,.7); position: relative;
}
.gitem .top { display: flex; align-items: center; gap: 9px; }
.gitem .avatar {
  width: 35px; height: 35px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(145deg, var(--gold-soft), #efe4c6);
  color: var(--gold-deep); font-weight: 800; font-size: 13.5px;
  display: grid; place-items: center;
}
.gitem .name { font-weight: 700; font-size: 14px; }
.gitem .meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.gitem .amt { margin-left: auto; text-align: right; }
.gitem .amt .v { font-weight: 800; font-size: 14px; }
.gitem .amt .l { font-size: 10px; color: var(--muted); }
.gitem .barline {
  display: flex; gap: 12px; margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line); font-size: 11.5px;
}
.gitem .barline b { font-weight: 700; }
.gitem .barline .lbl { color: var(--muted); }

/* Status chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 2.5px 8px; border-radius: 999px;
  letter-spacing: .3px;
}
.chip.active   { background: var(--info-soft); color: var(--info); }
.chip.closed   { background: var(--paid-soft); color: var(--paid); }
.chip.transferred { background: #f3ecfb; color: #7b45c9; }
.chip.overdue  { background: var(--due-soft); color: var(--due); }
.chip.dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.chip .svgic { width:13px; height:13px; stroke-width:2.2; margin-left:-1px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 11px; }
.field > label {
  display: block; font-size: 12px; font-weight: 700; color: var(--ink-2);
  margin-bottom: 4px; letter-spacing: .2px;
}
.field .hint { font-size: 10.5px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.input, .select, textarea.input {
  width: 100%; padding: 10.5px 12px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, textarea.input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,.16);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%237c8296' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
textarea.input { resize: vertical; min-height: 60px; line-height: 1.5; }
.input.rupee-in { padding-left: 30px; }
.field.money { position: relative; }
.field.money .cur {
  position: absolute; left: 12px; bottom: 11px; color: var(--muted); font-weight: 600;
  pointer-events: none;
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }

/* Segmented / toggle */
.seg { display: flex; background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; padding: 8px 6px; border-radius: 8px; font-weight: 700; font-size: 12.5px;
  color: var(--muted);
}
.seg button.on { background: var(--ink); color: #fff; box-shadow: var(--shadow); }

.checkline { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.checkline input { width: 20px; height: 20px; accent-color: var(--gold-deep); }
.checkline label { font-weight: 600; font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 12.5px; border-radius: 12px; font-weight: 750; font-size: 14.5px;
  transition: transform .05s, filter .15s;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: linear-gradient(145deg, var(--gold), var(--gold-deep)); color: #241d05;
  box-shadow: 0 8px 18px rgba(168,131,47,.35); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-success { background: linear-gradient(145deg, #24a566, #17824c); color: #fff;
  box-shadow: 0 8px 18px rgba(23,130,76,.3); }
.btn-danger-ghost { background: var(--due-soft); color: var(--due); }
.btn-sm { width: auto; padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }
.btn-add {
  width: 100%; padding: 11px; border-radius: 12px; font-weight: 750; font-size: 13.5px;
  color: var(--gold-deep); background: var(--gold-soft);
  border: 1.5px dashed var(--gold); display:flex; align-items:center; justify-content:center; gap:7px;
}
.btn-row { display: flex; gap: 9px; }
.btn-row .btn { flex: 1; }

.sticky-actions {
  position: sticky; bottom: 0; margin: 14px -13px -6px;
  padding: 10px 13px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247,244,236,0), var(--bg) 24%);
}

/* ---------- Ledger / detail rows ---------- */
.ledger { display: flex; flex-direction: column; gap: 0; }
.lrow {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.lrow:last-child { border-bottom: none; }
.lrow .k { color: var(--muted); font-weight: 600; }
.lrow .v { font-weight: 700; }
.lrow.total { border-top: 2px solid var(--ink); border-bottom: none; padding-top: 10px; margin-top: 2px; }
.lrow.total .k { color: var(--ink); font-weight: 800; }
.lrow.total .v { font-size: 16px; }
.v.due { color: var(--due); }
.v.paid { color: var(--paid); }

.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.dual .cell .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.dual .cell .v { font-size: 13.5px; font-weight: 700; margin-top: 1px; }

/* Item preview card in girvi detail */
.itemcard {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 11px; margin-bottom: 8px;
}
.itemcard .ih { display: flex; justify-content: space-between; align-items: flex-start; }
.itemcard .iname { font-weight: 700; font-size: 13.5px; }
.itemcard .imeta { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.itemcard .ival { text-align: right; font-weight: 800; color: var(--gold-deep); }
.metal-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
  background: var(--gold-soft); color: var(--gold-deep); text-transform: uppercase; letter-spacing:.4px; }

/* photo thumb */
.thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.thumb-sm { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }

/* Signature pad */
.sigpad-wrap { border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2); position: relative; }
.sigpad { width: 100%; height: 150px; display: block; touch-action: none; border-radius: 12px; }
.sigpad-wrap .clear-sig { position: absolute; top: 8px; right: 10px; font-size: 12px; font-weight: 700; color: var(--info); }
.sigpad-wrap .ph { position:absolute; inset:0; display:grid; place-items:center; color: var(--muted); font-size:13px; pointer-events:none; }

/* ---------- Search ---------- */
.searchbar {
  display: flex; align-items: center; gap: 9px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 9.5px 12px; margin-bottom: 10px;
}
.searchbar input { border: none; outline: none; flex: 1; background: none; }
.searchbar .ic { color: var(--muted); display: grid; place-items: center; }

/* Empty state */
.empty { text-align: center; padding: 30px 20px; color: var(--muted); }
.empty .em-ic { display: flex; justify-content: center; margin-bottom: 11px; opacity: .45; color: var(--muted); }
.empty .em-ic .svgic { width: 38px; height: 38px; stroke-width: 1.6; }
.empty .em-t { font-weight: 700; color: var(--ink-2); font-size: 14.5px; }
.empty .em-d { font-size: 12.5px; margin-top: 5px; line-height: 1.45; }

/* Customer picker result */
.pick {
  display: flex; align-items: center; gap: 11px; padding: 10px 4px;
  border-bottom: 1px solid var(--line); width: 100%; text-align: left;
}
.pick:last-child { border-bottom: none; }
.pick .avatar { width: 34px; height: 34px; border-radius: 9px;
  background: var(--gold-soft); color: var(--gold-deep); font-weight: 800;
  display: grid; place-items: center; font-size: 13.5px; }
.pick .nm { font-weight: 700; font-size: 13.5px; }
.pick .mt { font-size: 11.5px; color: var(--muted); }
.pick .go { margin-left: auto; color: var(--muted); display: grid; place-items: center; }
.menu-ic { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.menu-ic .svgic { width: 17px; height: 17px; }
.pill-note .svgic { flex: 0 0 auto; margin-top: 1px; }
.go { display: grid; place-items: center; color: var(--muted); }

/* ---------- Modal / sheet ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(23,26,43,.5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: var(--app-max); background: var(--bg);
  border-radius: 20px 20px 0 0; padding: 6px 14px calc(16px + env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; transform: translateY(20px); transition: transform .2s;
  box-shadow: var(--shadow-lg);
}
.sheet-backdrop.open .sheet { transform: translateY(0); }
.sheet .grip { width: 38px; height: 4px; border-radius: 3px; background: var(--line); margin: 7px auto 11px; }
.sheet h2 { font-size: 16.5px; margin: 0 0 3px; }
.sheet .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 12px; }

/* Toast */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 20px); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 80; opacity: 0; transition: all .25s;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: #17824c; }
.toast.err { background: #b02a1c; }

/* small helpers */
.muted { color: var(--muted); }
.mono-amt { font-variant-numeric: tabular-nums; }
.hl-due { color: var(--due); font-weight: 800; }
.hl-paid { color: var(--paid); font-weight: 800; }
.spacer { height: 8px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.link-btn { color: var(--info); font-weight: 700; font-size: 13.5px; }
.pill-note { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; font-weight: 600; line-height: 1.45; display: flex; gap: 8px; }

/* Fade-in for view transitions */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen > * { animation: fade .22s ease both; }

/* Payment history rows */
.payrow { display:flex; justify-content:space-between; padding:8.5px 0; border-bottom:1px solid var(--line); font-size:13px; }
.payrow:last-child{ border-bottom:none; }
.payrow .pd { font-weight:700; }
.payrow .pv { text-align:right; }

/* ---------- Sales / billing ---------- */
.chip.partial { background: #fdf3dd; color: #a4700a; }
.chip.typechip { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }

.payinput { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.payinput .select, .payinput .input { padding: 11px 10px; font-size: 14px; }
.payinput .select { background-position: right 8px center; padding-right: 26px; }
.payrow-del { color: var(--due); flex: 0 0 auto; padding: 6px; border-radius: 8px; background: var(--due-soft); display: grid; place-items: center; }
.warnline { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); font-size: 12px; font-weight: 600;
  margin-top: 8px; line-height: 1.4; }
.warnline .svgic { flex: 0 0 auto; margin-top: 1px; }

/* printable invoice */
.invoice { background: #fff; color: #111; border: 1px solid #ccc; border-radius: 8px; padding: 18px; font-size: 12.5px; line-height: 1.45; }
.inv-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #222; padding-bottom: 10px; }
.inv-shop { font-size: 17px; font-weight: 800; }
.inv-title { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #444; }
.inv-buyer { padding: 9px 0; border-bottom: 1px solid #ccc; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11.5px; }
.inv-table th, .inv-table td { border: 1px solid #bbb; padding: 5px 6px; text-align: center; }
.inv-table th { background: #f2f0ea; font-weight: 700; }
.inv-totals { display: flex; justify-content: flex-end; margin-top: 10px; }
.inv-totals table { border-collapse: collapse; min-width: 240px; }
.inv-totals td { padding: 4px 8px; border-bottom: 1px dotted #ccc; }
.inv-totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.inv-totals .inv-grand td { font-weight: 800; border-top: 2px solid #222; border-bottom: 2px solid #222; font-size: 13.5px; }
.inv-totals .inv-due td { font-weight: 800; color: #b02a1c; }
.inv-words { margin-top: 10px; font-size: 12px; border-top: 1px solid #ccc; padding-top: 8px; }
.inv-og { margin-top: 6px; font-size: 11.5px; color: #333; }
.inv-foot { display: flex; gap: 16px; justify-content: space-between; margin-top: 22px; align-items: flex-end; }
.inv-terms { font-size: 10px; color: #555; max-width: 55%; line-height: 1.5; }
.inv-signs { display: flex; gap: 26px; font-size: 11px; text-align: center; }
.inv-signs div { border-top: 1px solid #555; padding-top: 5px; min-width: 110px; }
.invoice { overflow-x: auto; }
@media (max-width: 480px) {
  .inv-foot { flex-direction: column; align-items: stretch; }
  .inv-terms { max-width: 100%; }
  .inv-signs { justify-content: space-between; margin-top: 20px; }
}

@media print {
  body { background: #fff; }
  #app { box-shadow: none; max-width: 100%; background: #fff; }
  .no-print, .toast, .bottomnav, .appbar { display: none !important; }
  .screen { padding: 0 !important; overflow: visible; }
  .invoice { border: none; border-radius: 0; padding: 6px; }
  .screen > * { animation: none; }
}

/* Activity log rows */
.actrow { display:flex; align-items:flex-start; gap:10px; padding:9.5px 0; border-bottom:1px solid var(--line); }
.actrow:last-child { border-bottom:none; }
.actrow[role="button"] { cursor:pointer; }
.actrow[role="button"]:active { opacity:.6; }
.acticon { width:31px; height:31px; flex:0 0 auto; border-radius:9px; background:var(--surface-2);
  border:1px solid var(--line); display:grid; place-items:center; color:var(--ink-2); }
.acticon .svgic { width:16px; height:16px; }
.acticon.gold   { background:var(--gold-soft); border-color:transparent; color:var(--gold-deep); }
.acticon.green  { background:var(--paid-soft); border-color:transparent; color:var(--paid); }
.acticon.purple { background:#f3ecfb; border-color:transparent; color:#7b45c9; }
.acticon.red    { background:var(--due-soft); border-color:transparent; color:var(--due); }
.acticon.slate  { background:var(--surface-2); color:var(--ink-2); }
.actbody { flex:1; min-width:0; }
.acttitle { font-weight:700; font-size:13px; }
.actdetail { font-size:11.5px; color:var(--ink-2); margin-top:1px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acttime { font-size:10.5px; color:var(--muted); margin-top:2px; }
.acttime .actby { color:var(--ink-2); font-weight:600; }
.acttime .actdev { opacity:.7; }
.actamt { font-weight:800; font-size:14px; color:var(--gold-deep); white-space:nowrap; }
