:root {
  --primary: #2157d6;
  --primary-strong: #173f9b;
  --primary-soft: #eaf0ff;
  --secondary: #0f766e;
  --secondary-soft: #e7f8f5;
  --accent: #6d28d9;
  --success: #15803d;
  --success-soft: #e9f8ee;
  --warning: #b7791f;
  --warning-soft: #fff6df;
  --danger: #c2410c;
  --danger-soft: #fff0e8;
  --info: #2563eb;
  --info-soft: #eaf2ff;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --surface-strong: #eef3f9;
  --text: #172033;
  --text-soft: #334155;
  --muted: #697586;
  --border: #dfe6f0;
  --border-strong: #c8d2e0;
  --shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.06);
  --radius: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --sidebar: 282px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(180deg, #fbfcff 0, var(--bg) 260px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

button,
.btn {
  border-radius: var(--radius);
  cursor: pointer;
}

button:disabled,
.btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

:focus-visible {
  outline: 3px solid rgba(33, 87, 214, 0.22);
  outline-offset: 2px;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid var(--border);
  box-shadow: 10px 0 30px rgba(16, 24, 40, 0.03);
  backdrop-filter: blur(18px);
}

.sidebar-backdrop,
.sidebar-close,
.mobile-menu {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 54px;
  color: var(--text);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand strong {
  display: block;
  font-size: 21px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-label {
  margin: 12px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a,
.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text-soft);
  background: transparent;
  border-radius: var(--radius);
  text-align: left;
  font-weight: 750;
}

.nav a svg,
.nav button svg {
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active,
.nav button:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.nav a:hover svg,
.nav a.is-active svg,
.nav button:hover svg {
  color: var(--primary);
}

.nav .new-btn {
  justify-content: center;
  margin: 8px 0 4px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(33, 87, 214, 0.22);
}

.nav .new-btn svg {
  color: #fff;
}

.nav .new-btn:hover {
  background: var(--primary-strong);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.user-chip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--secondary-soft);
  color: var(--secondary);
  font-weight: 900;
}

.user-chip strong,
.user-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.main {
  min-width: 0;
  padding-bottom: 84px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(170px, 260px) minmax(320px, 720px) auto;
  gap: var(--space-4);
  align-items: center;
  padding: 14px var(--space-5);
  background: rgba(246, 248, 251, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.topbar-title strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-soft);
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-soft);
  color: var(--primary);
}

.global-search {
  position: relative;
  min-width: 0;
}

.global-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.global-search input::placeholder {
  color: #98a2b3;
}

.global-search i {
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 70;
  display: none;
  overflow: hidden;
  max-height: min(520px, 72vh);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-results.is-open {
  display: block;
}

.search-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-align: left;
}

.search-item:hover {
  background: var(--surface-soft);
}

.search-item:last-child {
  border-bottom: 0;
}

.search-item strong {
  color: var(--text);
}

.search-suggestion-head {
  padding: 10px 14px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-picker-message {
  min-height: 18px;
}

.search-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: var(--space-5);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.page-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.1;
}

.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card {
  padding: var(--space-4);
}

.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.panel-head h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.panel-body {
  padding: var(--space-4);
}

.kpi {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: start;
  overflow: hidden;
}

.kpi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--primary);
}

.kpi span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.kpi strong {
  font-size: 25px;
  line-height: 1.1;
}

.kpi small {
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.toolbar input,
.toolbar select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(33, 87, 214, 0.16);
}

.btn:hover {
  background: var(--primary-strong);
}

.btn.secondary {
  background: #fff;
  color: var(--text-soft);
  border-color: var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--surface-soft);
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn.success {
  background: var(--success);
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.14);
}

.btn.warning {
  background: var(--warning);
  box-shadow: 0 10px 20px rgba(183, 121, 31, 0.14);
}

.btn.danger {
  background: var(--danger);
  box-shadow: 0 10px 20px rgba(194, 65, 12, 0.14);
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text-soft);
  font-weight: 800;
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--border-strong);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(33, 87, 214, 0.55);
  box-shadow: 0 0 0 4px rgba(33, 87, 214, 0.12);
  outline: 0;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.alert {
  margin-bottom: var(--space-4);
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.alert.success {
  border-color: #b7e3c8;
  color: #0f6b3c;
  background: var(--success-soft);
}

.alert.danger {
  border-color: #f3b2b2;
  color: #9c1c1c;
  background: #fff1f1;
}

.alert.info {
  border-color: #b7cdfd;
  color: #1d4ed8;
  background: var(--info-soft);
}

.alert.warning {
  border-color: #f4d291;
  color: #8a5a10;
  background: var(--warning-soft);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  background: #fbfcff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

tr:hover td {
  background: #fbfdff;
}

td strong {
  color: var(--text);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-weight: 850;
  font-size: 12px;
}

.badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.info {
  background: var(--info-soft);
  color: var(--info);
}

.amount-positive {
  color: var(--danger);
  font-weight: 900;
}

.amount-negative {
  color: var(--success);
  font-weight: 900;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 0;
  background: var(--surface-soft);
}

.tab-button {
  min-height: 42px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--primary);
  background: #fff;
}

.tab-button.is-active {
  color: var(--primary);
  background: #fff;
  border-bottom-color: var(--primary);
  font-weight: 850;
}

.tab-panel {
  display: none;
  padding: var(--space-4);
}

.tab-panel.is-active {
  display: block;
}

.customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
}

.balance-box {
  min-width: 300px;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid #c9d8ff;
}

.balance-box span {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.balance-box strong {
  display: block;
  margin-top: 7px;
  color: var(--primary-strong);
  font-size: 32px;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: var(--space-3);
}

.timeline-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: start;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.line-row {
  padding: var(--space-3);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.pending-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.pending-alert strong,
.pending-alert span {
  display: block;
}

.pending-grid,
.attachment-grid {
  display: grid;
  gap: var(--space-4);
}

.pending-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pending-card h3 {
  margin: 12px 0 8px;
}

.pending-thumb,
.pending-preview,
.attachment-tile {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.pending-thumb {
  aspect-ratio: 4 / 3;
  border-width: 0 0 1px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.pending-preview {
  min-height: 420px;
  place-items: center;
}

.pending-thumb img,
.pending-preview img,
.attachment-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.attachment-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.attachment-tile {
  gap: 8px;
  padding: var(--space-3);
  color: var(--text);
}

.attachment-tile img {
  height: 150px;
  border-radius: var(--radius);
}

.attachment-tile strong,
.attachment-tile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-tile small {
  color: var(--muted);
}

.attachment-file {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 22px;
  font-weight: 900;
}

.empty {
  padding: var(--space-6);
  text-align: center;
  color: var(--muted);
}

.chart {
  width: 100%;
  height: 300px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(0, 1fr);
  background:
    linear-gradient(180deg, #ffffff 0, #f6f8fb 55%, #eef5f4 100%),
    var(--bg);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid var(--border);
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-card.is-wide {
  max-width: 1040px;
}

.auth-shell.setup-shell {
  grid-template-columns: 1fr;
}

.setup-shell .auth-panel {
  align-items: center;
  min-height: 100vh;
  border-right: 0;
}

.setup-shell .auth-art {
  display: none;
}

.auth-card .page-head {
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.auth-card .page-head h2 {
  font-size: 28px;
}

.auth-art {
  display: grid;
  place-items: center;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(33, 87, 214, 0.92), rgba(15, 118, 110, 0.9)),
    #173f9b;
  color: #fff;
}

.auth-art-inner {
  display: grid;
  gap: var(--space-4);
  max-width: 460px;
}

.auth-art-inner img {
  width: 240px;
  max-width: 80%;
  padding: var(--space-4);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.auth-art-inner strong {
  margin-top: var(--space-4);
  font-size: 34px;
  line-height: 1.05;
}

.auth-art-inner span {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.6;
}

.mobile-nav,
.quick-sheet {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-104%);
    width: min(88vw, 320px);
    transition: transform 0.22s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    background: rgba(15, 23, 42, 0.4);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-close,
  .mobile-menu {
    display: inline-grid;
  }

  .sidebar-close {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .brand {
    padding-right: 48px;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 12px var(--space-4);
  }

  .topbar .global-search {
    grid-column: 1 / -1;
    order: 4;
  }

  .content {
    padding: var(--space-4);
  }

  .grid.five,
  .grid.four,
  .grid.three,
  .pending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-hero,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border);
    box-shadow: 0 -16px 32px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 54px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-nav a.is-active {
    color: var(--primary);
  }

  .mobile-nav .plus {
    width: 56px;
    height: 56px;
    min-height: 56px;
    margin: -18px auto 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 16px 26px rgba(33, 87, 214, 0.28);
  }

  .mobile-nav .plus svg {
    width: 24px;
    height: 24px;
  }

  .quick-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: end;
    background: rgba(15, 23, 42, 0.36);
  }

  body.quick-open .quick-sheet {
    display: flex;
  }

  .quick-sheet-panel {
    width: 100%;
    display: grid;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
    border-radius: var(--radius) var(--radius) 0 0;
    background: #fff;
    box-shadow: 0 -18px 42px rgba(16, 24, 40, 0.18);
  }

  .quick-sheet-panel > strong {
    font-size: 18px;
  }

  .quick-sheet-panel a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 52px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
    font-weight: 850;
  }

  .quick-close {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 22px;
  }

  .auth-card {
    padding: var(--space-4);
    box-shadow: var(--shadow-soft);
  }

  .auth-art {
    display: none;
  }

  .topbar {
    gap: var(--space-3);
  }

  .topbar .toolbar {
    display: none;
  }

  .content {
    padding: var(--space-4) var(--space-3);
  }

  .page-head,
  .panel-head,
  .pending-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head h2 {
    font-size: 24px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .form-grid,
  .pending-grid {
    grid-template-columns: 1fr;
  }

  .pending-preview {
    min-height: 280px;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar > *,
  .btn {
    width: 100%;
  }

  .topbar .global-search input {
    height: 44px;
  }

  .balance-box {
    min-width: 0;
  }

  .balance-box strong {
    font-size: 28px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  tr {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  td {
    display: grid;
    grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
    gap: var(--space-3);
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 850;
  }

  tr:hover td {
    background: transparent;
  }
}

@media (max-width: 420px) {
  .topbar-title strong {
    font-size: 15px;
  }

  .mobile-nav span {
    font-size: 11px;
  }

  td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media print {
  .sidebar,
  .sidebar-backdrop,
  .topbar,
  .mobile-nav,
  .quick-sheet,
  .no-print {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  body {
    background: #fff;
  }

  .content {
    padding: 0;
  }

  .card,
  .panel {
    box-shadow: none;
    border-color: #999;
  }
}
