:root {
  --primary: #0f766e;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --warn: #b45309;
  --warn-50: #fffbeb;
  --success: #15803d;
  --success-50: #f0fdf4;
  --info: #1d4ed8;
  --info-50: #eff6ff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --bg: #f4f6f8;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .18);
  --sidebar-w: 248px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-size: 15px; line-height: 1.5; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
svg.ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.bold { font-weight: 650; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.pos { color: var(--success); }
.neg { color: var(--danger); }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt { margin-top: 16px; }
.mt-sm { margin-top: 8px; }
.mb { margin-bottom: 16px; }

/* ---------------- Layout ---------------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: #0b3b37; color: #d1fae5; position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column; padding: 18px 12px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #2dd4bf, #0d9488); display: grid; place-items: center; color: #fff; font-weight: 800; }
.brand-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.brand-sub { font-size: 12px; color: #99f6e4; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #ccfbf1; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.nav a.active { background: rgba(45, 212, 191, .18); color: #fff; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 8px; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.sidebar-foot .name { color: #fff; font-weight: 600; font-size: 14px; }
.sidebar-foot button { margin-left: auto; color: #99f6e4; background: none; border: 0; cursor: pointer; padding: 6px; border-radius: 8px; }
.sidebar-foot button:hover { background: rgba(255, 255, 255, .1); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.content { max-width: 1120px; margin: 0 auto; padding: 26px 28px 60px; }
.topbar { display: none; }
.bottomnav { display: none; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }

@media (max-width: 880px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .content { padding: 16px 14px 96px; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; background: #0b3b37; color: #fff;
    padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar .brand-logo { width: 30px; height: 30px; font-size: 14px; }
  .topbar .title { font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar button { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
    background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; color: var(--muted); }
  .bottomnav a.active { color: var(--primary); }
  .bottomnav a:hover { text-decoration: none; }
  .bottomnav .fab { margin-top: -18px; }
  .bottomnav .fab span.circle { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(15, 118, 110, .4); }
  h1 { font-size: 21px; }
}

/* Mobile drawer menu */
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: 280px; max-width: 85vw; background: #0b3b37; z-index: 61; padding: 18px 12px; display: flex; flex-direction: column; }

/* ---------------- Cards ---------------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-body { padding: 16px 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: #fafbfc; border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .grid-4 { gap: 10px; } }

.stat { padding: 16px 18px; }
.stat .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.accent { background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; border: 0; }
.stat.accent .label, .stat.accent .hint { color: #ccfbf1; }
@media (max-width: 640px) { .stat { padding: 12px 14px; } .stat .value { font-size: 18px; } }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; gap: 10px; }
.section-title h2 { display: flex; align-items: center; gap: 8px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-2); background: #fff; color: var(--text); font: inherit; font-weight: 550; font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none !important;
}
.btn:hover { background: #f8fafc; border-color: #94a3b8; }
.btn:focus-visible { outline: 3px solid rgba(13, 148, 136, .35); outline-offset: 1px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-800); border-color: var(--primary-800); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: var(--danger-50); border-color: #fca5a5; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #166534; }
.btn-warn { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warn:hover { background: #d97706; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #eef2f6; border-color: transparent; }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; border-radius: 8px; gap: 5px; }
.btn-sm svg.ic { width: 16px; height: 16px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 4px; }
.btn-xs svg.ic { width: 14px; height: 14px; }
.btn-icon { width: 34px; padding: 0; }
.btn-block { width: 100%; }
.btn-lg { height: 44px; font-size: 15px; }

/* ---------------- Badges ---------------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; }
.b-paid { background: var(--success-50); color: var(--success); border: 1px solid #bbf7d0; }
.b-unpaid { background: var(--danger-50); color: var(--danger); border: 1px solid #fecaca; }
.b-claimed { background: var(--warn-50); color: var(--warn); border: 1px solid #fde68a; }
.b-neutral { background: #f1f5f9; color: var(--text-2); border: 1px solid var(--border); }
.b-info { background: var(--info-50); color: var(--info); border: 1px solid #bfdbfe; }
.b-admin { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }

/* ---------------- Avatar ---------------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; letter-spacing: .02em; }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid #fff; margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }
.avatar.more { background: #e2e8f0 !important; color: var(--text-2); }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, input[type=text], input[type=password], input[type=date], input[type=month], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(13, 148, 136, .18); }
input.money-input { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-error { background: var(--danger-50); color: var(--danger); border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-info { background: var(--info-50); color: var(--info); border: 1px solid #bfdbfe; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.form-warn { background: var(--warn-50); color: var(--warn); border: 1px solid #fde68a; padding: 10px 12px; border-radius: 10px; font-size: 14px; }

.seg { display: inline-flex; background: #eef2f6; border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 550; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.active { background: #fff; color: var(--primary-800); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border-2); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; font: inherit; font-size: 13px; color: var(--text-2); }
.chip:hover { border-color: var(--primary-600); color: var(--primary-800); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters > * { width: auto; }
.filters input[type=month] { width: 170px; }
.filters select { width: 180px; }
.filters input[type=search] { width: 200px; }
@media (max-width: 640px) { .filters > * { flex: 1 1 140px; width: auto !important; } }

/* ---------------- Participant picker ---------------- */
.picker { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.picker-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f8fafc; border-bottom: 1px solid var(--border); gap: 8px; flex-wrap: wrap; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.picker-row:last-child { border-bottom: 0; }
.picker-row:hover { background: #fafcfc; }
.picker-row.on { background: var(--primary-50); }
.picker-row .amt { width: 140px; }
.picker-row .share { width: 110px; text-align: right; }
@media (max-width: 640px) {
  .picker-row .share { width: 84px; font-size: 13px; }
  .picker.items-mode .picker-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; }
  .picker.items-mode .picker-row .amt { grid-column: 2 / 5; grid-row: 2; width: 100%; }
  .picker.items-mode .picker-row .share { grid-column: 4; grid-row: 1; }
}
.contrib-actions { min-width: 200px; }
.st-col { display: inline-flex; min-width: 92px; }
@media (max-width: 640px) { .contrib-actions { min-width: 0; } }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 650; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table th.right, .table td.right { text-align: right; }
.table tfoot td { font-weight: 700; background: #fafbfc; border-top: 1px solid var(--border); }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: #fafcfc; }

/* ---------------- Lists ---------------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f1f5f9; }
.list-item:last-child { border-bottom: 0; }
a.list-item { color: inherit; }
a.list-item:hover { background: #fafcfc; text-decoration: none; }
.list-item .title { font-weight: 600; }
.list-item .meta { font-size: 13px; color: var(--muted); }
.list-item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .list-item { padding: 12px 14px; flex-wrap: wrap; }
  .list-item .actions { width: 100%; justify-content: flex-start; padding-left: 48px; }
}
.cat-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.cat-lunch { background: #ffedd5; color: #c2410c; }
.cat-party { background: #fce7f3; color: #be185d; }
.cat-drink { background: #ede9fe; color: #6d28d9; }
.cat-other { background: #e0f2fe; color: #0369a1; }
.cat-in { background: var(--success-50); color: var(--success); }
.cat-out { background: var(--danger-50); color: var(--danger); }

.progress { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--success); border-radius: 99px; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty svg.ic { width: 34px; height: 34px; stroke-width: 1.5; margin-bottom: 6px; color: #94a3b8; }

.debt-card { border-left: 4px solid var(--danger); }
.debt-card.claimed { border-left-color: #f59e0b; }
.debt-card.incoming { border-left-color: var(--success); }
details.items summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
details.items summary::-webkit-details-marker { display: none; }
details.items[open] summary { margin-bottom: 6px; }
.mini-list { font-size: 13px; border-top: 1px dashed var(--border); margin-top: 6px; }
.mini-list div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #eef2f6; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; word-break: break-word; }

.receipt-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
.receipt-full { max-width: 100%; max-height: 75vh; display: block; margin: 0 auto; border-radius: 8px; }
.qr-preview { width: 150px; height: 150px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

/* ---------------- QR pay card ---------------- */
.pay { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.pay-qr { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; }
.pay-qr img { width: 240px; height: 240px; display: block; image-rendering: pixelated; }
.pay-qr img.photo { image-rendering: auto; object-fit: contain; }
.pay-info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; }
.copy-row .k { font-size: 12px; color: var(--muted); }
.copy-row .v { font-weight: 650; word-break: break-all; }
.vietqr-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #0f766e; margin-top: 6px; }

/* ---------------- Modal / toast ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .12s ease-out; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .14s ease-out; }
.modal.lg { max-width: 720px; }
.modal.sm { max-width: 400px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); gap: 10px; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
@media (max-width: 640px) {
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; max-width: none !important; }
  .modal-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

#toast-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; align-items: center; gap: 8px; max-width: 92vw; animation: pop .15s ease-out; }
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }

/* ---------------- Auth ---------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #99f6e4 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #a7f3d0 0%, transparent 55%), #f0fdfa; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .card-pad { padding: 28px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand .brand-logo { width: 46px; height: 46px; font-size: 20px; border-radius: 13px; }
.auth-tabs { display: flex; margin-bottom: 18px; }
.auth-tabs .seg { width: 100%; }
.auth-tabs .seg button { flex: 1; justify-content: center; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(15, 118, 110, .2); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; justify-content: center; padding: 50px; }

.ledger-in { color: var(--success); }
.ledger-out { color: var(--danger); }

@media print {
  .sidebar, .topbar, .bottomnav, .btn { display: none !important; }
  .main { margin: 0; }
}
