/* ================================================
   BILLDESK — Shared Design System
   ================================================ */

:root {
  /* Sidebar */
  --sb-bg: #0f172a;
  --sb-brand: #ffffff;
  --sb-text: #94a3b8;
  --sb-hover-bg: #1e293b;
  --sb-hover-text: #f1f5f9;
  --sb-active-bg: #1e293b;
  --sb-active-text: #ffffff;
  --sb-accent: #818cf8;
  --sb-divider: #1e293b;
  --sb-label: #475569;

  /* Surface */
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;

  /* Text */
  --text-1: #0f172a;
  --text-2: #64748b;
  --text-3: #94a3b8;

  /* Accent */
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #eef2ff;

  /* Status colours */
  --blue: #3b82f6;
  --blue-bg: #eff6ff;
  --indigo: #6366f1;
  --indigo-bg: #eef2ff;
  --violet: #7c3aed;
  --violet-bg: #f5f3ff;
  --emerald: #10b981;
  --emerald-bg: #ecfdf5;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.06);

  /* Shape */
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 14px;

  /* Font */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: var(--font);
  cursor: pointer;
}

/* ── App shell ──────────────────────────────────── */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ================================================
   SIDEBAR
   ================================================ */
.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid var(--sb-divider);
  flex-shrink: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  color: var(--sb-accent);
  flex-shrink: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--sb-brand);
  letter-spacing: -0.2px;
}

/* Nav */
.nav {
  display: flex;
  flex-direction: column;
  padding: 10px 0 20px;
  flex: 1;
}

.nav-section-label {
  padding: 16px 18px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sb-label);
  user-select: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--sb-text);
  font-size: 13.5px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition:
    background 0.14s,
    color 0.14s;
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.14s;
}

.nav-link:hover {
  background: var(--sb-hover-bg);
  color: var(--sb-hover-text);
}
.nav-link:hover svg {
  opacity: 1;
}

.nav-link.active {
  background: var(--sb-active-bg);
  color: var(--sb-active-text);
  border-left-color: var(--sb-accent);
}
.nav-link.active svg {
  opacity: 1;
}

/* Sidebar user profile */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--sb-divider);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.sidebar-user.loaded {
  opacity: 1;
}
.sidebar-user-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--sb-hover-bg);
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sb-hover-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-email {
  font-size: 10.5px;
  color: var(--sb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-logout {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  color: var(--sb-text);
  transition:
    background 0.14s,
    color 0.14s;
}
.sidebar-user-logout:hover {
  background: var(--sb-hover-bg);
  color: #f87171;
}
.sidebar-user-logout svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ================================================
   MAIN
   ================================================ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.page-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}

.topbar-date {
  font-size: 12.5px;
  color: var(--text-3);
}

/* Page body */
.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================================
   WELCOME BANNER
   ================================================ */
.welcome-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  flex-shrink: 0;
}

.welcome-text h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 3px;
}

.welcome-text p {
  font-size: 13.5px;
  opacity: 0.8;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  transition:
    background 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-white {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.btn-danger:hover {
  background: #fee2e2;
}

/* ================================================
   STATS GRID
   ================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 19px;
  height: 19px;
}

.stat-icon--blue {
  background: var(--blue-bg);
  color: var(--blue);
}
.stat-icon--indigo {
  background: var(--indigo-bg);
  color: var(--indigo);
}
.stat-icon--violet {
  background: var(--violet-bg);
  color: var(--violet);
}
.stat-icon--emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.stat-icon--amber {
  background: #fef3c7;
  color: #d97706;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-1);
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ================================================
   DASHBOARD GRID (two columns)
   ================================================ */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 14px;
  align-items: start;
}

/* ================================================
   CARD
   ================================================ */
.card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.card-head h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
}

.card-head-link {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.card-head-link:hover {
  text-decoration: underline;
}

/* ================================================
   QUICK ACTIONS
   ================================================ */
.quick-actions {
  display: flex;
  flex-direction: column;
}

.qa-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.qa-item:last-child {
  border-bottom: none;
}
.qa-item:hover {
  background: #f8fafc;
}

.qa-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qa-icon svg {
  width: 15px;
  height: 15px;
}

.qa-icon--blue {
  background: var(--blue-bg);
  color: var(--blue);
}
.qa-icon--indigo {
  background: var(--indigo-bg);
  color: var(--indigo);
}
.qa-icon--violet {
  background: var(--violet-bg);
  color: var(--violet);
}
.qa-icon--emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.qa-body {
  flex: 1;
  min-width: 0;
}

.qa-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.qa-sub {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 1px;
}

.qa-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ================================================
   DATA TABLE
   ================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr {
  background: #f8fafc;
}

.data-table th {
  padding: 9px 18px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 11px 18px;
  font-size: 13px;
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover td {
  background: #f8fafc;
}

.data-table td.mono {
  font-family: "Courier New", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}

.data-table td.amount {
  font-weight: 600;
  color: var(--emerald);
}

/* ================================================
   EMPTY STATE
   ================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
  color: var(--text-3);
  gap: 10px;
}

.empty-state svg {
  width: 38px;
  height: 38px;
  opacity: 0.35;
}

.empty-state p {
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}

.empty-state a {
  color: var(--accent);
  font-weight: 500;
}
.empty-state a:hover {
  text-decoration: underline;
}

/* ================================================
   FORM COMPONENTS  (shared across all pages)
   ================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-group label,
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-1);
  background: var(--surface);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  background: var(--bg);
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.65;
  border-style: dashed;
}

/* ================================================
   MODAL
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 440px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.18s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  font-size: 15px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-3);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.modal-close:hover {
  background: var(--bg);
  color: var(--text-1);
}

.modal-body {
  padding: 22px 22px 8px;
}

.modal-foot {
  padding: 14px 22px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 3-button footer: cancel pushed left, skip + primary on right */
.modal-foot--3 {
  justify-content: space-between;
}

.modal-foot--3 .btn:first-child {
  margin-right: auto;
}

/* Outlined / ghost button */
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ================================================
   TOAST
   ================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 200;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================
   TOPBAR ACTIONS (search inline + button row)
   ================================================ */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-inline {
  position: relative;
  display: flex;
  align-items: center;
}

.search-inline svg {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--text-3);
  pointer-events: none;
}

.search-inline input {
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-1);
  background: var(--surface);
  width: 210px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

/* Stretch search input to fill container (used in bills filter bar) */
.bills-search-bar {
  flex: 1;
  min-width: 140px;
}

.bills-search-bar input {
  width: 100%;
  padding-right: 30px;
}

.search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-clear:hover {
  color: var(--text-1);
  background: var(--border);
}

.search-inline input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ================================================
   CUSTOMERS PAGE
   ================================================ */

/* Stats strip */
.cust-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 28px;
  box-shadow: var(--shadow-sm);
}

.cust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.cust-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

.cust-stat-label {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 4px;
}

.cust-stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Table utilities */
.table-scroll {
  overflow-x: auto;
}

.row-num {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
}

.cust-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--indigo-bg);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.cust-primary {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
}

.cust-secondary {
  font-size: 13px;
  color: var(--text-2);
}

.na {
  color: var(--text-3);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
}

.badge--blue {
  background: var(--blue-bg);
  color: var(--blue);
}

/* Row action buttons */
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.13s;
}

.icon-btn svg {
  width: 14px;
  height: 14px;
}

.icon-btn--edit {
  background: var(--indigo-bg);
  color: var(--indigo);
}
.icon-btn--edit:hover {
  background: #dde3ff;
}

.icon-btn--del {
  background: #fef2f2;
  color: #ef4444;
}
.icon-btn--del:hover {
  background: #fee2e2;
}

.icon-btn--view {
  background: var(--accent-light);
  color: var(--accent);
}
.icon-btn--view:hover {
  background: #dde5ff;
}

/* Modal sm */
.modal--sm {
  width: 380px;
}

.del-msg {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Form field error */
.field-error {
  display: none;
  font-size: 11.5px;
  color: #ef4444;
  margin-top: 4px;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.req {
  color: #ef4444;
  margin-left: 2px;
}

/* ================================================
   BILL PAGE — shared (customer-bill + blank-bill)
   ================================================ */

/* Step cards */
.bill-step {
  margin-bottom: 0;
  flex-shrink: 0;
}

.bill-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.step-head-action {
  margin-left: auto;
  flex-shrink: 0;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-badge--done {
  background: var(--emerald);
}

.step-badge--done svg {
  width: 14px;
  height: 14px;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}

.step-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 1px;
}

.bill-step-body {
  padding: 18px 20px;
}

/* Customer selector row */
.cust-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.select-wrap svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
}

.select-wrap select {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-1);
  background: var(--surface);
  appearance: none;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.select-wrap select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.select-wrap select:disabled {
  background: var(--bg);
  color: var(--text-3);
  cursor: not-allowed;
  opacity: 0.65;
  border-style: dashed;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

/* Info notice */
.info-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--blue-bg);
  border: 1px solid #bfdbfe;
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--blue);
}

.info-notice svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.info-notice a {
  color: var(--accent);
  font-weight: 600;
}

/* Readonly meta grid */
.bill-meta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.bill-meta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bill-meta-col--right {
  min-width: 200px;
  align-items: flex-end;
}

.readonly-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.readonly-field label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.readonly-field label::after {
  content: "AUTO";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-left: 6px;
  padding: 1px 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-3);
  vertical-align: middle;
  opacity: 0.75;
}

.readonly-val {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  min-height: 36px;
  cursor: default;
  user-select: text;
}

.mono-val {
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* Bill table */
.bill-table-wrap {
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.bill-table thead tr {
  background: #f8fafc;
}

/* Computed/auto column headers — subtle accent tint */
.bill-table thead th.bt-sqft,
.bill-table thead th.bt-tsqft,
.bill-table thead th.bt-total {
  background: rgba(99, 102, 241, 0.06);
}

.bill-table th {
  padding: 9px 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.bill-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.bill-table tbody tr:last-child td {
  border-bottom: none;
}
.bill-table tbody tr:hover td {
  background: #fafbff;
}

/* Column widths */
.bt-no {
  width: 40px;
}
.bt-desc {
  min-width: 180px;
}
.bt-size {
  width: 190px;
}
.bt-sqft {
  width: 80px;
}
.bt-qty {
  width: 70px;
}
.bt-tsqft {
  width: 90px;
}
.bt-rate {
  width: 110px;
}
.bt-total {
  width: 110px;
}
.bt-del {
  width: 44px;
}

/* Cell types */
.cell-num {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 600;
  text-align: center;
}

.cell-auto {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  text-align: right;
  background: rgba(99, 102, 241, 0.04);
}

.bill-table tbody tr:hover .cell-auto {
  background: rgba(99, 102, 241, 0.07);
}

.cell-total {
  font-weight: 700;
  color: var(--text-1);
}

/* Cell inputs */
.cell-input {
  width: 100%;
  border: 1px solid #d6dce4;
  border-radius: 5px;
  padding: 5px 8px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  transition:
    border-color 0.12s,
    background 0.12s,
    box-shadow 0.12s;
}

.cell-input:hover {
  background: var(--bg);
  border-color: #a5b4fc;
}

.cell-input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.14);
}

/* Hide number arrows */
.cell-input[type="number"]::-webkit-inner-spin-button,
.cell-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.cell-input[type="number"] {
  -moz-appearance: textfield;
}

.cell-input--desc {
  min-width: 120px;
}
.cell-input--dim {
  width: 48px;
  text-align: center;
  padding: 5px 4px;
}
.cell-input--num {
  text-align: right;
}

/* Size cell layout */
.size-inputs {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.size-sep {
  font-size: 12px;
  color: var(--text-3);
}

.size-unit {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 2px;
}

/* Rate cell */
.rate-wrap {
  display: flex;
  align-items: center;
}

.rate-prefix {
  font-size: 12px;
  color: var(--text-3);
  margin-right: 2px;
  flex-shrink: 0;
}

/* Grand total row */
.grand-total-row td {
  border-top: 2px solid var(--border);
  padding: 11px 10px;
  border-bottom: none !important;
  background: #f8fafc;
}

.grand-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-align: right;
  padding-right: 14px !important;
}

.grand-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  text-align: right;
}

/* Add row bar */
.add-row-bar {
  padding: 12px 20px;
}

.btn-add-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-sm);
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s;
}

.btn-add-row svg {
  width: 13px;
  height: 13px;
}

.btn-add-row:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ================================================
   GST / TAX SECTION
   ================================================ */
.tax-mode-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tax-mode-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-2);
  white-space: nowrap;
}
.tax-toggle-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.tax-toggle-btn {
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  border-right: 1px solid var(--border);
}
.tax-toggle-btn:last-child {
  border-right: none;
}
.tax-toggle-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}
.tax-toggle-btn.active {
  background: var(--accent);
  color: #fff;
}
.tax-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.tax-check-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ================================================
   SAVE CUSTOMER PROMPT (blank bill modal)
   ================================================ */
.save-cust-prompt {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 0 12px;
}

.save-cust-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.save-cust-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.save-cust-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-1);
  padding-top: 8px;
}

.save-cust-msg strong {
  color: var(--text-0, #0f172a);
}

.save-cust-msg a {
  color: var(--accent);
  text-decoration: none;
}

.save-cust-msg a:hover {
  text-decoration: underline;
}

/* ================================================
   UNIT TOGGLE (ft / in per bill row)
   ================================================ */
.unit-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-left: 5px;
  flex-shrink: 0;
}

.unit-btn {
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font);
  line-height: 1.4;
  transition:
    background 0.12s,
    color 0.12s;
}

.unit-btn + .unit-btn {
  border-left: 1px solid var(--border);
}

.unit-btn.active {
  background: var(--accent);
  color: #fff;
}

.unit-btn:not(.active):hover {
  background: var(--bg);
}

/* ================================================
   CUSTOMER BILLS DRAWER
   ================================================ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cust-bills-drawer {
  position: fixed;
  top: 0;
  right: -640px;
  width: 600px;
  max-width: calc(100vw - 60px);
  height: 100%;
  background: var(--surface);
  box-shadow: -6px 0 32px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: right 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.cust-bills-drawer.open {
  right: 0;
}

.cbd-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cbd-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
  flex-shrink: 0;
}

.cbd-title-col {
  flex: 1;
  min-width: 0;
}

.cbd-customer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbd-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.cbd-stats {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cbd-stat {
  flex: 1;
  text-align: center;
}

.cbd-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
}

.cbd-stat-label {
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cbd-stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 4px;
}

.cbd-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cbd-search {
  flex: 1;
}

.cbd-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cbd-sort-wrap label {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.cbd-sort-wrap select {
  font-size: 12.5px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
  font-family: var(--font);
}

.cbd-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cbd-table-wrap {
  overflow-x: auto;
}

.cbd-body .empty-state {
  flex: 1;
}

.cbd-new-bill-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 16px 4px;
  flex-shrink: 0;
}

/* ================================================
   BILLS PAGE
   ================================================ */
.bills-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-wrap: wrap;
}

.bills-type-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.bills-tab {
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-family: var(--font);
  transition:
    background 0.12s,
    color 0.12s;
}

.bills-tab + .bills-tab {
  border-left: 1px solid var(--border);
}

.bills-tab.active {
  background: var(--accent);
  color: #fff;
}

.bills-tab:not(.active):hover {
  background: var(--accent-light);
  color: var(--accent);
}

.bills-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.bills-sort-wrap label {
  font-size: 12px;
  color: var(--text-3);
}

.bills-sort-wrap select {
  font-size: 12.5px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-1);
  cursor: pointer;
  font-family: var(--font);
}

/* ================================================
   STATUS BADGES
   ================================================ */
.badge--paid {
  background: #dcfce7;
  color: #15803d;
}

.badge--pending {
  background: #fef9c3;
  color: #a16207;
}

.badge--emerald {
  background: var(--emerald-bg);
  color: var(--emerald);
}

/* Clickable status pill (used on bill detail page) */
.status-toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition:
    opacity 0.15s,
    transform 0.1s;
}

.status-toggle-btn:hover {
  opacity: 0.78;
  transform: scale(0.97);
}

.status-paid {
  background: #dcfce7;
  color: #15803d;
}

.status-pending {
  background: #fef9c3;
  color: #a16207;
}

/* Clickable invoice number links in tables */
.inv-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  font-size: 12.5px;
}

.inv-link:hover {
  text-decoration: underline;
}

/* Result count in filter bar */
.bills-result-count {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================
   BREADCRUMB
   ================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 16px;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.12s;
}

.breadcrumb-link:hover {
  color: var(--accent);
}

.breadcrumb-link svg {
  width: 13px;
  height: 13px;
}

.breadcrumb-sep {
  color: var(--border);
  font-size: 14px;
}

.breadcrumb-current {
  font-weight: 600;
  color: var(--text-1);
}

/* ================================================
   BILL DETAIL PAGE
   ================================================ */
.bd-invoice-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.bd-invoice-left {
  padding: 24px 28px;
  border-right: 1px solid var(--border);
}

.bd-invoice-right {
  padding: 24px 28px;
}

.bd-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.bd-customer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.bd-muted {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.bd-invoice-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.bd-invoice-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-1);
  font-family: "Courier New", Courier, monospace;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.bd-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.bd-meta-label {
  font-size: 11.5px;
  color: var(--text-3);
  flex-shrink: 0;
}

.bd-updated-note {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* Grand total row */
.bd-grand-total-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 14px 20px;
  margin-top: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}

.bd-grand-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bd-grand-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Topbar left layout */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bd-not-found {
  padding: 64px 24px;
  text-align: center;
}

.bd-not-found p {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 12px;
}

.bd-not-found a {
  color: var(--accent);
}

/* Edit mode indicator in topbar */
.edit-mode-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  background: #fef3c7;
  color: #d97706;
  padding: 2px 9px;
  border-radius: 4px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Clickable status badge (bills list quick-toggle) */
.badge--clickable {
  cursor: pointer;
  border: none;
  font-family: var(--font);
  font-size: inherit;
  transition:
    opacity 0.12s,
    transform 0.1s;
}
.badge--clickable:hover {
  opacity: 0.8;
  transform: scale(0.96);
}

/* Copy invoice number button (bill-detail) */
.copy-inv-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 7px;
  cursor: pointer;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition:
    color 0.12s,
    border-color 0.12s;
}
.copy-inv-btn svg {
  width: 13px;
  height: 13px;
}
.copy-inv-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Invoice number + copy button row (bill-detail) */
.bd-invoice-number-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.bd-invoice-number-row .bd-invoice-number {
  margin-bottom: 0;
}

/* Prev / Next navigation buttons (bill-detail topbar) */
.btn-nav {
  padding: 6px 11px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-nav svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.btn-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ================================================
   MOBILE NAVIGATION — hamburger + responsive layout
   ================================================ */

/* Hamburger toggle (desktop: hidden) */
.btn-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 4px;
  transition:
    background 0.13s,
    color 0.13s;
}
.btn-hamburger:hover {
  background: var(--border);
  color: var(--text-1);
}
.btn-hamburger svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Sidebar close button (desktop: hidden) */
.sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sb-text);
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition:
    background 0.13s,
    color 0.13s;
}
.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.sidebar-close svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* Sidebar backdrop overlay */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 290;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-backdrop.open {
  display: block;
}

/* ── Tablet & mobile (≤ 768px) ── */
@media (max-width: 768px) {
  /* Show mobile controls */
  .btn-hamburger {
    display: flex;
  }
  .sidebar-close {
    display: flex;
  }

  /* Sidebar becomes off-canvas drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    height: 100%;
    z-index: 300;
    width: 260px;
    min-width: 260px;
    transition: left 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.3);
  }
  .sidebar.open {
    left: 0;
  }

  /* Topbar */
  .topbar {
    padding: 0 14px;
    gap: 8px;
  }
  .page-title {
    font-size: 14px;
  }
  .topbar-date {
    display: none;
  }

  /* Page body */
  .page-body {
    padding: 14px;
    gap: 12px;
  }

  /* Welcome banner — stack vertically */
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
  }

  /* Stats — 2 columns */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Dashboard two-col → single col */
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  /* Bill detail invoice card → single col */
  .bd-invoice-card {
    grid-template-columns: 1fr;
  }
  .bd-invoice-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  /* Bill builder readonly meta grid → single col */
  .bill-meta-grid {
    grid-template-columns: 1fr;
  }
  .bill-meta-col--right {
    min-width: unset;
    align-items: flex-start;
  }

  /* Narrower search in topbar */
  .search-inline input {
    width: 150px;
  }

  /* Modal — max height for small screens */
  .modal {
    max-height: 88vh;
    overflow-y: auto;
  }

  /* Drawer — full width on mobile */
  .cust-bills-drawer {
    width: 100%;
    max-width: 100%;
    right: -110%;
  }
  .cust-bills-drawer.open {
    right: 0;
  }

  /* Customer stats strip — allow wrap */
  .cust-stats {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 6px 0;
  }

  /* Bills filter bar — allow wrap */
  .bills-filters {
    padding: 10px 14px;
    gap: 8px;
  }

  /* Topbar left — prevent overflow */
  .topbar-left {
    min-width: 0;
    overflow: hidden;
    flex: 1;
  }
}

/* ── Phone (≤ 480px) ── */
@media (max-width: 480px) {
  .topbar {
    padding: 0 10px;
    height: 52px;
  }
  .page-body {
    padding: 10px;
    gap: 10px;
  }
  .stat-card {
    padding: 14px 12px;
    gap: 10px;
  }
  .stat-value {
    font-size: 18px;
  }
  .stat-label {
    font-size: 11px;
  }
  .cust-stat-value {
    font-size: 20px;
  }
  .cust-stat-div {
    display: none;
  }
  .cust-stat {
    flex: 0 0 auto;
  }
  .bills-filters {
    padding: 8px 10px;
    gap: 6px;
  }
  .breadcrumb {
    font-size: 11.5px;
    gap: 4px;
  }
  .bd-grand-total-row {
    padding: 10px 12px;
    gap: 12px;
  }
  .bd-grand-value {
    font-size: 18px;
  }
  .bd-invoice-left,
  .bd-invoice-right {
    padding: 14px 14px;
  }
  .welcome-banner {
    padding: 16px;
  }
  .welcome-text h2 {
    font-size: 17px;
  }
  .topbar-actions {
    gap: 5px;
  }
}
