/* ===== ChaseApp v2 — Brand System ===== */

:root {
  --orange-50: #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;
  --orange-300: #FDBA74;
  --orange-400: #FB923C;
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;
  --orange-800: #9A3412;
  --orange-900: #7C2D12;
  --rust-500: #DC2626;
  --rust-600: #B91C1C;
  --rust-700: #991B1B;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --green-500: #22C55E;
  --green-600: #16A34A;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --tab-h: 64px;
  --top-h: 56px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--gray-900); background: var(--gray-50); -webkit-font-smoothing: antialiased; }

#app-root { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: var(--tab-h); padding-top: var(--top-h); }
@media (min-width: 768px) { #app-root { padding-bottom: 0; padding-left: 240px; } }

/* ===== Top Bar ===== */

#top-bar { position: fixed; top: 0; left: 0; right: 0; height: var(--top-h); background: white; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; padding: 0 16px; z-index: 100; }
#top-bar .back-btn { display: none; width: 36px; height: 36px; border: none; background: none; cursor: pointer; border-radius: var(--radius-sm); color: var(--gray-600); margin-right: 8px; align-items: center; justify-content: center; }
#top-bar .back-btn.visible { display: flex; }
#top-bar h1 { font-size: 18px; font-weight: 600; color: var(--gray-900); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 768px) { #top-bar { display: none; } }

/* ===== Tab Bar (mobile) / Sidebar (desktop) ===== */

#tab-bar { position: fixed; bottom: 0; left: 0; right: 0; height: var(--tab-h); background: white; border-top: 1px solid var(--gray-200); display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom, 0); }
#tab-bar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: none; background: none; cursor: pointer; color: var(--gray-400); font-size: 10px; font-weight: 500; padding: 4px 0; position: relative; transition: color 0.15s; }
#tab-bar button.active { color: var(--orange-500); }
#tab-bar button svg { width: 20px; height: 20px; }
@media (min-width: 768px) {
  #tab-bar { top: 0; left: 0; right: auto; bottom: 0; width: 240px; flex-direction: column; border-right: 1px solid var(--gray-200); border-top: none; padding-top: 24px; justify-content: flex-start; gap: 2px; }
  #tab-bar button { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 20px; margin: 0 8px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
  #tab-bar button:hover { background: var(--orange-50); }
  #tab-bar button.active { background: var(--orange-50); color: var(--orange-600); }
  #tab-bar .tab-label { font-size: 14px; }
}
.sidebar-user { display: none; }
@media (min-width: 768px) {
  .sidebar-user { display: block; position: fixed; bottom: 0; left: 0; width: 240px; padding: 20px; border-right: 1px solid var(--gray-200); background: white; font-size: 13px; color: var(--gray-500); }
  .sidebar-user .name { font-weight: 600; color: var(--gray-800); }
}

.notif-dot { position: absolute; top: 2px; right: calc(50% - 14px); width: 8px; height: 8px; border-radius: 50%; background: var(--rust-500); border: 2px solid white; }
@media (min-width: 768px) { .notif-dot { top: 8px; right: 12px; } }

/* ===== Floating Create Button ===== */

#fab-create { position: fixed; bottom: calc(var(--tab-h) + 16px); right: 16px; height: 52px; padding: 0 24px; border-radius: 26px; background: var(--orange-500); color: white; border: none; font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer; display: none; align-items: center; justify-content: center; gap: 8px; z-index: 90; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35); transition: transform 0.15s, background 0.15s, box-shadow 0.15s; }
#fab-create.visible { display: flex; }
#fab-create:hover { background: var(--orange-600); box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4); }
#fab-create:active { transform: scale(0.95); }
#fab-create svg { width: 16px; height: 16px; }
@media (min-width: 768px) { #fab-create { bottom: 24px; right: 40px; } }

/* ===== Main Content ===== */

#app { flex: 1; padding: 16px; max-width: 800px; width: 100%; margin: 0 auto; padding-bottom: 80px; }
@media (min-width: 768px) { #app { padding: 32px; max-width: 960px; padding-bottom: 32px; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.view { animation: fadeIn 0.25s ease-out; }

/* ===== Cards ===== */

.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 12px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-header h2 { font-size: 16px; font-weight: 600; color: var(--gray-900); }
.card-header a { font-size: 14px; color: var(--orange-500); text-decoration: none; font-weight: 500; }

/* ===== Stat Cards ===== */

.stat-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: box-shadow 0.15s; }
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card .label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.stat-card .sub { font-size: 13px; color: var(--gray-400); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Buttons ===== */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-size: 15px; font-weight: 600; padding: 0 20px; height: 44px; border-radius: var(--radius-sm); border: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, transform 0.1s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange-500); color: white; }
.btn-primary:hover { background: var(--orange-600); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-ghost { background: transparent; color: var(--gray-600); height: 36px; padding: 0 12px; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger { background: var(--rust-500); color: white; }
.btn-danger:hover { background: var(--rust-600); }
.btn-full { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; }

/* ===== Form Elements ===== */

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.input { width: 100%; height: 44px; padding: 0 14px; font-family: var(--font); font-size: 16px; color: var(--gray-900); background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus { border-color: var(--orange-400); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12); }
textarea.input { height: auto; padding: 12px 14px; min-height: 80px; resize: vertical; }
.input-error { border-color: var(--rust-500); }
.error-text { font-size: 13px; color: var(--rust-500); }
select.input { cursor: pointer; appearance: auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 399px) { .form-row { grid-template-columns: 1fr; } }
.form-section { margin-bottom: 24px; }
.form-section h3 { font-size: 14px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }

/* ===== Type Toggle ===== */

.type-toggle { display: flex; gap: 0; background: var(--gray-100); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; }
.type-toggle button { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 6px; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--gray-500); cursor: pointer; transition: all 0.15s; }
.type-toggle button.active { background: white; color: var(--gray-900); box-shadow: var(--shadow-sm); }

/* ===== Badges ===== */

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.badge-paid { background: #F0FDF4; color: var(--green-600); }
.badge-paid::before { background: var(--green-500); }
.badge-unpaid { background: var(--gray-100); color: var(--gray-600); }
.badge-unpaid::before { background: var(--gray-400); }
.badge-in-chase { background: var(--orange-50); color: var(--orange-600); }
.badge-in-chase::before { background: var(--orange-500); }
.badge-quote { background: #EFF6FF; color: #2563EB; }
.badge-quote::before { background: #3B82F6; }
.badge-expired { background: #FEF2F2; color: var(--rust-500); }
.badge-expired::before { background: var(--rust-500); }

/* ===== Invoice Cards ===== */

.invoice-card { display: flex; align-items: center; padding: 16px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); gap: 12px; cursor: pointer; transition: box-shadow 0.15s; }
.invoice-card:hover { box-shadow: var(--shadow); }
.invoice-card .info { flex: 1; min-width: 0; }
.invoice-card .info h3 { font-size: 15px; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invoice-card .info .meta { font-size: 13px; color: var(--gray-500); display: flex; gap: 8px; flex-wrap: wrap; }
.invoice-card .amount { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.invoice-card .badge-row { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ===== Customer Cards ===== */

.customer-card { display: flex; align-items: center; padding: 16px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-sm); gap: 14px; cursor: pointer; transition: box-shadow 0.15s; }
.customer-card:hover { box-shadow: var(--shadow); }
.customer-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.customer-card .info { flex: 1; min-width: 0; }
.customer-card .info h3 { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.customer-card .info .meta { font-size: 13px; color: var(--gray-400); }
.customer-card .stats { text-align: right; font-size: 13px; color: var(--gray-500); white-space: nowrap; }

/* ===== Filter Tabs ===== */

.filter-tabs { display: flex; gap: 4px; background: var(--gray-100); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 16px; overflow-x: auto; }
.filter-tabs button { flex: 1; padding: 8px 12px; border: none; background: transparent; border-radius: 6px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--gray-500); cursor: pointer; white-space: nowrap; transition: all 0.15s; }
.filter-tabs button.active { background: white; color: var(--gray-900); box-shadow: var(--shadow-sm); }

/* ===== Overlay / Modal ===== */

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fadeInOverlay 0.2s; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal { background: white; border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-height: 90vh; overflow-y: auto; padding: 24px 20px; animation: slideUp 0.3s; }
.modal-handle { width: 36px; height: 4px; background: var(--gray-300); border-radius: 2px; margin: 0 auto 16px; }
.modal h2 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.modal-list { display: flex; flex-direction: column; gap: 8px; }
.modal-list button { width: 100%; text-align: left; padding: 14px 16px; border: none; background: var(--gray-50); border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--gray-700); cursor: pointer; display: flex; align-items: center; gap: 12px; }
.modal-list button svg { width: 18px; height: 18px; color: var(--gray-400); flex-shrink: 0; }
.modal-list button:hover { background: var(--orange-50); }
@media (min-width: 640px) { .overlay { align-items: center; } .modal { border-radius: var(--radius-lg); max-width: 520px; max-height: 80vh; animation: fadeIn 0.2s; } .modal-handle { display: none; } }

/* ===== Empty State ===== */

.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-400); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--gray-500); margin-bottom: 4px; }
.empty-state p { font-size: 14px; color: var(--gray-400); }
.empty-state .btn { margin-top: 16px; }

/* ===== Toast ===== */

.toast { position: fixed; bottom: calc(var(--tab-h) + 16px); left: 16px; right: 16px; max-width: 400px; margin: 0 auto; background: var(--gray-900); color: white; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; text-align: center; z-index: 300; box-shadow: var(--shadow-lg); animation: toastIn 0.3s; pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 768px) { .toast { bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); margin: 0; } }

/* ===== Wallet Display ===== */

.wallet-display { text-align: center; padding: 32px 20px; }
.wallet-display .balance-label { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.wallet-display .balance { font-size: 48px; font-weight: 800; color: var(--gray-900); line-height: 1; margin-bottom: 4px; }
.wallet-display .balance-sub { font-size: 14px; color: var(--gray-400); margin-bottom: 24px; }

/* ===== Timeline ===== */

.timeline { position: relative; padding-left: 28px; margin: 16px 0; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--gray-200); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gray-300); background: white; }
.timeline-item.active::before { border-color: var(--orange-500); background: var(--orange-500); }
.timeline-item.completed::before { border-color: var(--green-500); background: var(--green-500); }
.timeline-item .day { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.timeline-item .desc { font-size: 13px; color: var(--gray-500); }

/* ===== Detail Views ===== */

.detail-section { margin-bottom: 24px; }
.detail-section h3 { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; margin-top: 16px; }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--gray-500); }
.detail-row .value { font-weight: 600; color: var(--gray-900); text-align: right; }

.detail-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* ===== Page Header ===== */

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.page-header h1 { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.page-header-actions { display: flex; gap: 8px; }

/* ===== Quick Actions ===== */

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-actions .action-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; background: white; border: 2px dashed var(--gray-200); border-radius: var(--radius); cursor: pointer; font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--gray-600); transition: all 0.15s; }
.quick-actions .action-btn:hover { border-color: var(--orange-300); background: var(--orange-50); color: var(--orange-600); }
.quick-actions .action-btn:active { transform: scale(0.98); }
.quick-actions .action-btn svg { width: 22px; height: 22px; color: var(--gray-400); }
.quick-actions .action-btn:hover svg { color: var(--orange-400); }

/* ===== Line Items ===== */

.item-row { display: flex; gap: 6px; margin-bottom: 8px; align-items: flex-start; }
.item-fields { flex: 1; display: grid; grid-template-columns: 1fr 56px 80px; gap: 6px; }
.item-field { display: flex; flex-direction: column; gap: 2px; }
.item-field:nth-child(2) .input { text-align: center; }
.item-field:nth-child(3) .input { text-align: right; }
.item-label { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.3px; }
.item-totals { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gray-200); }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; color: var(--gray-600); }
.total-row.total-final { font-size: 16px; font-weight: 700; color: var(--gray-900); padding-top: 8px; border-top: 1px solid var(--gray-100); }

/* ===== Toggle Rows (Settings) ===== */

.toggle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); position: relative; }
.toggle-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--gray-800); padding-right: 60px; }
.toggle-desc { flex: 0 0 100%; font-size: 12px; color: var(--gray-400); }
.toggle-row input[type="checkbox"] { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 24px; appearance: none; background: var(--gray-300); border-radius: 12px; cursor: pointer; transition: background 0.2s; }
.toggle-row input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle-row input[type="checkbox"]:checked { background: var(--orange-500); }
.toggle-row input[type="checkbox"]:checked::before { transform: translateX(20px); }

/* ===== Notes Toggle ===== */

.notes-toggle { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.notes-toggle label { font-size: 14px; font-weight: 500; color: var(--gray-700); cursor: pointer; }
.notes-switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.notes-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.notes-switch .slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 11px; cursor: pointer; transition: background 0.2s; }
.notes-switch .slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.notes-switch input:checked + .slider { background: var(--orange-500); }
.notes-switch input:checked + .slider::before { transform: translateX(18px); }

/* ===== Notifications ===== */

.notif-card { padding: 14px 16px; cursor: pointer; transition: opacity 0.15s; }
.notif-card.read { opacity: 0.55; }
.notif-card .time { font-size: 12px; color: var(--gray-400); margin-top: 4px; display: block; }

/* ===== Autocomplete ===== */

.autocomplete-wrap { position: relative; }
.ac-dropdown { display: none; position: absolute; top: calc(100% - 12px); left: 0; right: 0; background: white; border: 1px solid var(--gray-200); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-md); z-index: 50; max-height: 180px; overflow-y: auto; }
.ac-dropdown.open { display: block; }
.ac-dropdown button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: none; background: none; cursor: pointer; font-family: var(--font); font-size: 14px; color: var(--gray-700); }
.ac-dropdown button:hover { background: var(--orange-50); }
.ac-dropdown button .sub { font-size: 12px; color: var(--gray-400); }

/* ===== Confirmation Modal Buttons ===== */

.confirm-btn { min-height: 52px !important; height: 52px !important; font-size: 16px !important; }

/* ===== Existing Client Badge ===== */

.existing-badge { display:inline-flex;font-size:12px;font-weight:500;color:var(--orange-700);background:var(--orange-50);border:1px solid var(--orange-200);border-radius:999px;padding:3px 10px;margin-top:4px;width:auto;align-self:flex-start; }

/* ===== Items Table in Detail ===== */

.items-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.items-table th { text-align: left; padding: 8px 4px; font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--gray-200); }
.items-table td { padding: 8px 4px; border-bottom: 1px solid var(--gray-100); }
.items-table td:last-child, .items-table th:last-child { text-align: right; }

/* ===== Preview Card ===== */

.preview-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--gray-200); }
.preview-header .business { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.preview-header .sub { font-size: 13px; color: var(--gray-500); }
.preview-section { margin-bottom: 16px; }
.preview-section h4 { font-size: 12px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.preview-section p { font-size: 14px; color: var(--gray-700); }
.preview-totals { border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 12px; }

/* ===== Consistent Icon Sizing ===== */

.view svg, .modal svg, .btn svg, .card svg, .stat-card svg, .invoice-card svg, .customer-card svg, .detail-actions svg, .detail-section svg, .page-header svg, .notif-card svg, .preview-section svg, .wallet-display svg { width: 16px; height: 16px; }

/* ===== Chase Badge (orange circle with white number) ===== */

.chase-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-500); color: white; font-size: 12px; font-weight: 700; margin-right: 6px; vertical-align: middle; }

/* ===== Payment Method Checkboxes ===== */

.pm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray-800); cursor: pointer; padding: 6px 0; }
.pm-check input { width: 18px; height: 18px; accent-color: var(--orange-500); cursor: pointer; }
.pm-fields { padding: 8px 0 8px 26px; }

/* ===== Utilities ===== */

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mr-8 { margin-right: 8px; }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.w-full { width: 100%; }
