/* style.css — Side Hustle Tax Estimator */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:    #22c55e;
  --green-dk: #16a34a;
  --red:      #ef4444;
  --red-dk:   #dc2626;
  --blue:     #3b82f6;
  --blue-dk:  #2563eb;
  --yellow:   #f59e0b;
  --purple:   #8b5cf6;
  --bg:       #f8fafc;
  --surface:  #ffffff;
  --border:   #e2e8f0;
  --text:     #1e293b;
  --muted:    #64748b;
  --radius:   12px;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--blue); }
a:hover { text-decoration: underline; }

/* ============================================================
   HEADER
============================================================ */
header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}

.header-inner { max-width: 800px; margin: 0 auto; }

header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.tagline {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.disclaimer-banner {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: #fcd34d;
}

/* ============================================================
   TAB NAV
============================================================ */
.tab-nav {
  display: flex;
  background: #1e293b;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 3px solid #0f172a;
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 0.9rem 0.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.tab-btn:hover { color: #e2e8f0; }

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--green);
}

/* ============================================================
   CONTENT LAYOUT
============================================================ */
.tab-content-wrapper { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.card-intro {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

/* ============================================================
   FORMS
============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select {
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.input-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.input-prefix span {
  padding: 0.6rem 0.6rem 0.6rem 0.75rem;
  color: var(--muted);
  font-weight: 600;
  background: #f1f5f9;
  border-right: 1.5px solid var(--border);
  user-select: none;
}

.input-prefix input {
  border: none;
  border-radius: 0;
  background: transparent;
  flex: 1;
}

.input-prefix input:focus {
  outline: none;
  border: none;
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ============================================================
   YEAR-END PROJECTION TOGGLE
============================================================ */
.projection-box {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius);
}

.toggle-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] { display: none; }

.toggle-switch {
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  margin-top: 3px;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-switch { background: var(--green); }
.toggle-label input:checked + .toggle-switch::after { transform: translateX(20px); }

.toggle-text strong { display: block; font-size: 1rem; color: var(--text); }
.toggle-text p { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

#asOfDateWrapper {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 280px;
}

#asOfDateWrapper label { font-size: 0.9rem; font-weight: 600; }

.hidden { display: none !important; }

/* ============================================================
   TABLES
============================================================ */
.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.table-scroll { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: #f1f5f9;
  padding: 0.65rem 0.75rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr:hover { background: #f8fafc; }

tbody td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody td input[type="text"],
tbody td input[type="number"],
tbody td input[type="date"],
tbody td select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: transparent;
  min-width: 80px;
}

tbody td input:focus,
tbody td select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}

.input-prefix-cell {
  display: flex;
  align-items: center;
  gap: 0;
}

.input-prefix-cell span {
  padding: 0.4rem 0.4rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.center { text-align: center; }

.deduction-cell {
  font-weight: 600;
  color: var(--green-dk);
}

tfoot td {
  padding: 0.65rem 0.75rem;
  background: #f8fafc;
  border-top: 2px solid var(--border);
}

.total-label {
  font-weight: 700;
  font-size: 0.9rem;
}

.total-value {
  font-weight: 700;
  color: var(--green-dk);
  font-size: 1rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }

.btn-add {
  background: var(--green);
  color: #fff;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--red);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-remove:hover { background: #fee2e2; }

/* ============================================================
   SOURCE CHIPS
============================================================ */
.source-chips {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.source-chips p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }

.chip {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  margin: 0.25rem;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--blue-dk);
  cursor: pointer;
  transition: background 0.15s;
}

.chip:hover { background: #dbeafe; }

/* ============================================================
   EXPENSE CATEGORIES
============================================================ */
.expense-categories {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.expense-categories p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }

.category-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.cat-badge {
  padding: 0.3rem 0.7rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--green-dk);
  font-weight: 500;
}

/* ============================================================
   MILEAGE
============================================================ */
.mileage-rate-banner {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #92400e;
}

.mileage-tips { margin-top: 1.2rem; }
.mileage-tips h3 { font-size: 1rem; margin-bottom: 0.75rem; }

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .tips-grid { grid-template-columns: 1fr; }
}

.tip-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
}

.tip-card.yes { background: #f0fdf4; border: 1px solid #bbf7d0; }
.tip-card.no  { background: #fff1f2; border: 1px solid #fecdd3; }

.tip-card strong { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }

.tip-card ul { padding-left: 1.2rem; }
.tip-card ul li { margin-bottom: 0.25rem; }

/* ============================================================
   DASHBOARD
============================================================ */
.status-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.status-card.refund {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid var(--green);
}

.status-card.owe {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 2px solid var(--red);
}

.status-icon { font-size: 2.5rem; }

.status-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.metric-card.highlight {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
}

.metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.metric-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.projection-notice {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: var(--blue-dk);
}

/* ============================================================
   BREAKDOWN TABLE
============================================================ */
.breakdown-section { margin-bottom: 1.5rem; }
.breakdown-section h3 { font-size: 1rem; margin-bottom: 0.75rem; }

.breakdown-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.breakdown-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.breakdown-table td:last-child { text-align: right; font-weight: 600; }

.breakdown-table .section-header td {
  background: #f1f5f9;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
}

.breakdown-table .total-row td {
  background: #1e293b;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   QUARTERLY BOX
============================================================ */
.quarterly-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.quarterly-box h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.quarterly-box p { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.75rem; }

.quarter-dates {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.quarter {
  flex: 1;
  min-width: 80px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.quarter span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.2rem;
}

.small-note { font-size: 0.78rem !important; }

/* ============================================================
   DISCLAIMER
============================================================ */
.disclaimer-full {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.disclaimer-full h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.disclaimer-full p  { font-size: 0.82rem; color: #78350f; line-height: 1.5; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .status-amount { font-size: 1.5rem; }
  .tab-btn { font-size: 0.78rem; padding: 0.75rem 0.4rem; }
  .card { padding: 1rem; }
}
/* ============================================================
   DEPENDENTS SECTION
============================================================ */
.dependent-credit-banner {
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
  margin-bottom: 1rem;
}

.dependent-row {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}

.dependent-row:hover { border-color: var(--blue); }

.dependent-row-inner {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.dep-name-group { flex: 2; min-width: 180px; }
.dep-age-group  { flex: 1; min-width: 120px; position: relative; }

.dep-credit-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}

.badge-child {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.badge-other {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.dep-remove {
  flex-shrink: 0;
  margin-bottom: 0.3rem;
}

/* Dependent Credit Reference Grid */
.dependent-reference {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.dependent-reference h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.credit-ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.credit-ref-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.credit-ref-item strong { display: block; margin-bottom: 0.25rem; font-size: 0.88rem; }
.credit-ref-item span   { color: var(--muted); line-height: 1.4; }

.credit-child    { background: #f0fdf4; border: 1px solid #bbf7d0; }
.credit-other    { background: #eff6ff; border: 1px solid #bfdbfe; }
.credit-phaseout { background: #fffbeb; border: 1px solid #fde68a; }
.credit-rate     { background: #fdf4ff; border: 1px solid #e9d5ff; }

/* ============================================================
   MILEAGE SECTION ADDITIONS
============================================================ */
.vehicle-info-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.vehicle-info-box h3 {
  font-size: 1rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.irs-badge {
  font-size: 0.72rem;
  background: #fee2e2;
  color: var(--red-dk);
  border: 1px solid #fca5a5;
  padding: 0.15rem 0.45rem;
  border-radius: 20px;
  font-weight: 700;
}

.irs-req {
  color: var(--red);
  font-weight: 700;
}

.method-toggle-box {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 10px;
}

.method-toggle-box h3 { font-size: 1rem; margin-bottom: 0.75rem; }

.method-options { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.method-option {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--surface);
}

.method-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }

.method-option.active-method {
  border-color: var(--green);
  background: #f0fdf4;
}

.method-option-content strong { display: block; font-size: 0.92rem; }
.method-option-content span   { font-size: 0.82rem; color: var(--muted); }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.tip-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.tip-item strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; }
.tip-item p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ============================================================
   DASHBOARD ADDITIONS
============================================================ */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.summary-card.green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.summary-card.blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.summary-card.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.summary-card.red    { background: linear-gradient(135deg, #ef4444, #dc2626); }

.summary-label { font-size: 0.82rem; font-weight: 600; opacity: 0.85; }
.summary-value { font-size: 1.8rem; font-weight: 800; margin: 0.2rem 0; }
.summary-sub   { font-size: 0.78rem; opacity: 0.8; }

/* Breakdown Table */
.breakdown-table { display: flex; flex-direction: column; gap: 0; }

.breakdown-section-header {
  background: #f1f5f9;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  border-radius: 6px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
}

.breakdown-row.deduction span:last-child { color: var(--green-dk); font-weight: 600; }

.breakdown-row.subtotal {
  font-weight: 700;
  background: #f8fafc;
  border-radius: 6px;
  margin-top: 0.2rem;
}

.breakdown-row.owed span:last-child    { color: var(--red-dk); font-weight: 700; }
.breakdown-row.refund span:last-child  { color: var(--green-dk); font-weight: 700; }

/* Dependent Credit Table in Dashboard */
.dep-credit-table { display: flex; flex-direction: column; gap: 0; }

.dep-credit-header,
.dep-credit-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
}

.dep-credit-header {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  background: #f1f5f9;
  border-radius: 6px;
}

.dep-credit-subtotal,
.dep-credit-total {
  font-weight: 700;
  background: #f8fafc;
}

.dep-credit-phaseout { color: var(--red-dk); }
.dep-credit-total    { color: var(--green-dk); }
.credit-amount       { text-align: right; font-weight: 600; }

/* Quarterly Grid */
.quarterly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.quarterly-item {
  text-align: center;
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 1rem;
}

.q-label  { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 0.4rem; }
.q-amount { font-size: 1.4rem; font-weight: 800; color: var(--blue-dk); }

/* Disclaimer Card */
.disclaimer-card {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  font-size: 0.88rem;
  color: #92400e;
}

@media (max-width: 380px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
  .tab-nav, .table-toolbar, .btn, .btn-remove,
  .source-chips, .chip, header .disclaimer-banner { display: none; }
  .tab-panel { display: block !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ── Data Management Toolbar ─────────────────────── */
.data-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.data-toolbar-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-right: 4px;
}
.toolbar-btn {
  padding: 7px 14px;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.toolbar-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.toolbar-btn:active { transform: translateY(0); }
.toolbar-btn-blue  { background: #3b82f6; color: #fff; }
.toolbar-btn-green { background: #22c55e; color: #fff; }
.toolbar-btn-red   { background: #ef4444; color: #fff; }