/* === Gaurish Infra Expenses — UI === */

:root {
  --bg: #FAFAF7;
  --bg-paper: #FFFFFF;
  --bg-muted: #F2F2EE;
  --ink-900: #0B0B0C;
  --ink-800: #1A1A1C;
  --ink-700: #2A2A2D;
  --ink-600: #4A4A4F;
  --ink-500: #6B6B71;
  --ink-400: #9A9AA0;
  --ink-300: #C5C5CA;
  --ink-200: #E5E5E0;
  --ink-100: #F0F0EC;
  --brand: #0E4F4A;
  --brand-100: #C9DFDD;
  --brand-300: #6BA39E;
  --brand-700: #08302D;
  --accent: #C97A3A;
  --danger: #B45146;
  --shadow-sm: 0 1px 2px rgba(11,11,12,0.04);
  --shadow-md: 0 6px 24px rgba(11,11,12,0.06);
  --shadow-lg: 0 24px 48px rgba(11,11,12,0.10);
  --out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
input, button, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--brand); color: var(--bg); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 999px; border: 2px solid var(--bg); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* === NAV === */
.nav {
  border-bottom: 1px solid var(--ink-200);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 24px;
}
@media (min-width: 768px) { .nav-inner { padding: 16px 40px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; width: 28px; border-radius: 999px;
  background: var(--ink-900); color: var(--bg);
  font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 14px;
}
.brand-text { font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 400; letter-spacing: -0.02em; }
.brand-text-muted { color: var(--ink-500); }

.nav-links { display: none; gap: 28px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--ink-600);
  position: relative; padding: 4px 0;
  transition: color 0.3s var(--out-expo);
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a.active { color: var(--ink-900); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink-900);
}
.nav-actions { display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.user-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--ink-100); color: var(--ink-700);
  font-size: 12px; font-weight: 500;
}

/* === PAGE === */
.page { padding: 40px 0 96px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.page-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300; font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 6px 0 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-500); font-weight: 500; margin: 0;
}
.eyebrow::before { content: ''; display: inline-block; height: 1px; width: 32px; background: var(--ink-400); }
.head-actions { display: inline-flex; gap: 10px; align-items: center; }

/* === BUTTONS === */
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s var(--out-expo);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--ink-900); color: var(--bg); }
.btn-primary:hover { background: var(--brand); gap: 12px; }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); }
.btn-ghost:hover { border-color: var(--ink-900); gap: 12px; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--ink-200); }
.btn-danger:hover { background: var(--danger); color: var(--bg); border-color: var(--danger); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-700); }
.link-arrow:hover { color: var(--ink-900); }
.link-arrow span { transition: transform 0.3s var(--out-expo); }
.link-arrow:hover span { transform: translateX(4px); }
.link-small { font-size: 12px; color: var(--ink-600); border-bottom: 1px solid transparent; padding-bottom: 1px; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; }
.link-small:hover { color: var(--ink-900); border-bottom-color: var(--ink-900); }
.link-small.danger { color: var(--danger); }
.link-small.danger:hover { border-bottom-color: var(--danger); }
.inline-form { display: inline; margin: 0; padding: 0; }
.push-right { margin-left: auto; }

/* === ALERTS / TOASTS === */
.alert {
  padding: 12px 16px; border-radius: 12px;
  background: #FCEEEC; color: #6E2A22;
  border: 1px solid #F3CFC9;
  font-size: 14px; margin-bottom: 20px;
}
.toast {
  padding: 12px 16px; border-radius: 12px;
  background: #E8F3F0; color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: 14px; margin-bottom: 20px;
  animation: slide-down 0.5s var(--out-expo);
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === STAT CARDS === */
.stat-grid {
  display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: var(--ink-200);
  border: 1px solid var(--ink-200);
  border-radius: 16px; overflow: hidden;
  margin-bottom: 32px;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--bg-paper); padding: 24px 24px 22px;
  transition: background 0.4s var(--out-expo);
}
.stat-card:hover { background: var(--bg); }
.stat-card-accent { background: var(--ink-900); color: var(--bg); }
.stat-card-accent:hover { background: var(--ink-900); }
.stat-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-500); margin-bottom: 14px;
}
.stat-card-accent .stat-label { color: var(--ink-400); }
.stat-value {
  font-family: 'Fraunces', Georgia, serif; font-weight: 300;
  font-size: 36px; letter-spacing: -0.02em; line-height: 1.05;
}
.stat-meta { margin-top: 10px; font-size: 12px; color: var(--ink-500); }
.trend-up { color: var(--danger); font-weight: 500; }
.trend-down { color: var(--brand); font-weight: 500; }
.stat-quick { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.quick-action {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(250,250,247,0.08); color: var(--bg);
  font-size: 13px; font-weight: 500;
  transition: all 0.3s var(--out-expo);
}
.quick-action:hover { background: var(--bg); color: var(--ink-900); }
.quick-secondary { background: transparent; color: var(--ink-300); }

/* === PANEL === */
.panel {
  background: var(--bg-paper);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 24px 24px 28px;
  margin-bottom: 24px;
}
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px; gap: 16px;
}
.panel-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-size: 22px; letter-spacing: -0.02em; margin: 0;
}
.panel-sub { font-family: 'Inter'; font-size: 11px; font-weight: 400; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.14em; margin-left: 8px; }

.two-col { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1.4fr 1fr; } }

/* === BARS (monthly) === */
.bars {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  height: 200px;
  padding-bottom: 50px;
}
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bar-fill {
  width: 100%; min-height: 4px;
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
  border-radius: 4px 4px 0 0;
  transition: height 1s var(--out-expo);
}
.bar:hover .bar-fill { background: linear-gradient(180deg, var(--brand-300), var(--brand)); }
.bar-label { position: absolute; top: calc(100% + 8px); left: 0; right: 0; text-align: center; }
.bar-amount { font-size: 12px; font-weight: 500; color: var(--ink-700); }
.bar-month { font-size: 10px; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* === EXPENSE LIST === */
.expense-list { list-style: none; margin: 0; padding: 0; }
.expense-row { border-bottom: 1px solid var(--ink-100); }
.expense-row:last-child { border-bottom: 0; }
.expense-link {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  transition: opacity 0.2s ease;
}
.expense-link:hover { opacity: 0.7; }
.expense-main { flex: 1; min-width: 0; }
.expense-category {
  display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-500); margin-bottom: 4px;
}
.expense-meta { font-size: 14px; }
.expense-desc { font-size: 13px; color: var(--ink-600); margin-top: 4px; }
.expense-side { text-align: right; flex-shrink: 0; }
.expense-amount {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 18px;
  letter-spacing: -0.01em; color: var(--ink-900);
}
.expense-date { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.expense-clip { font-size: 11px; color: var(--ink-500); margin-top: 4px; }

/* === CATEGORY LIST === */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cat-row-head { display: flex; justify-content: space-between; font-size: 14px; }
.cat-name { font-weight: 500; }
.cat-amount { font-family: 'Fraunces', Georgia, serif; font-weight: 400; }
.cat-bar { margin-top: 8px; height: 4px; background: var(--ink-100); border-radius: 999px; overflow: hidden; }
.cat-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink-900), var(--brand)); border-radius: 999px; }
.cat-meta { font-size: 11px; color: var(--ink-500); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.1em; }

/* === FILTER BAR === */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px; padding: 14px;
  background: var(--bg-paper); border: 1px solid var(--ink-200); border-radius: 12px;
  align-items: center;
}
.filter-bar input, .filter-bar select {
  padding: 9px 12px; border: 1px solid var(--ink-200); border-radius: 8px;
  background: var(--bg); font-size: 13px;
  transition: border-color 0.2s ease;
}
.filter-bar input:focus, .filter-bar select:focus { outline: none; border-color: var(--ink-900); }
.filter-bar input[type="search"] { flex: 1 1 220px; min-width: 0; }

.result-summary {
  margin-bottom: 16px; padding: 14px 18px;
  background: var(--bg-paper); border: 1px solid var(--ink-200); border-radius: 12px;
  font-size: 14px; color: var(--ink-700);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.result-meta { min-width: 0; }

/* === TABLE === */
.table-wrap { overflow-x: auto; border: 1px solid var(--ink-200); border-radius: 16px; background: var(--bg-paper); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table thead { background: var(--bg-muted); }
.data-table th {
  text-align: left; padding: 14px 18px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-500); font-weight: 500;
  border-bottom: 1px solid var(--ink-200);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.2s ease; }
.data-table tbody tr:hover { background: var(--bg); }
.col-amt { text-align: right; white-space: nowrap; font-family: 'Fraunces', Georgia, serif; font-size: 15px; }
.col-date, .col-cat, .col-pay { white-space: nowrap; }
.col-act { text-align: right; }
.chip {
  display: inline-block; padding: 3px 10px;
  background: var(--ink-100); color: var(--ink-700);
  border-radius: 999px; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.chip-inline { vertical-align: middle; margin-left: 12px; font-size: 12px; padding: 4px 12px; }
.clip { margin-left: 6px; font-size: 11px; color: var(--ink-500); }
.muted { color: var(--ink-500); }
.muted-sm { color: var(--ink-500); font-size: 12px; }

/* === FORM === */
.form { display: grid; gap: 18px; }
.form-grid {
  background: var(--bg-paper); border: 1px solid var(--ink-200); border-radius: 16px;
  padding: 28px 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; padding: 32px; gap: 22px; }
  .field-wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-500); font-weight: 500;
}
.optional { text-transform: none; letter-spacing: 0; color: var(--ink-400); font-weight: 400; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--ink-200); border-radius: 10px;
  background: var(--bg); font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink-900); background: var(--bg-paper);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input[type="file"] {
  padding: 12px; background: var(--bg-muted); border-style: dashed;
}
.input-group { display: flex; gap: 0; }
.input-group select {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  border-right: 0; flex: 0 0 90px;
}
.input-group input {
  border-top-left-radius: 0; border-bottom-left-radius: 0; flex: 1;
}
.form-actions {
  display: flex; gap: 12px; align-items: center; padding-top: 8px;
  border-top: 1px solid var(--ink-100); margin-top: 4px;
}

/* === AUTH === */
.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(14,79,74,0.06), transparent),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(201,122,58,0.06), transparent),
    var(--bg);
}
.auth-shell { padding: 32px 20px; width: 100%; }
.auth-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink-200);
  border-radius: 20px;
  max-width: 420px; margin: 0 auto;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.auth-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 300; font-size: 32px;
  letter-spacing: -0.02em; margin: 0;
}
.auth-sub { color: var(--ink-500); font-size: 14px; margin: 6px 0 24px; }
.auth-foot { font-size: 11px; color: var(--ink-400); text-align: center; margin: 24px 0 0; }

/* === EMPTY === */
.empty {
  padding: 32px 16px; text-align: center;
  color: var(--ink-500); font-size: 14px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-large {
  padding: 64px 24px; background: var(--bg-paper);
  border: 1px solid var(--ink-200); border-radius: 16px;
}
.empty-small { padding: 12px 0; text-align: left; }

.error-code {
  font-family: 'Fraunces', Georgia, serif; font-size: 72px;
  font-weight: 300; color: var(--ink-300); letter-spacing: -0.04em;
  line-height: 1; margin: 0;
}

/* === DETAIL === */
.detail-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.5fr 1fr; } }
.detail-card {
  background: var(--bg-paper); border: 1px solid var(--ink-200);
  border-radius: 16px; padding: 28px;
}
.detail-heading {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400; font-size: 20px;
  margin: 0 0 18px; letter-spacing: -0.01em;
}
.detail-subheading {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-500); font-weight: 500; margin: 22px 0 8px;
}
.detail-desc { white-space: pre-wrap; color: var(--ink-700); font-size: 14px; margin: 0; }
.detail-foot { font-size: 11px; color: var(--ink-400); margin: 22px 0 0; }
.dl {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 8px 18px; margin: 0; font-size: 14px;
}
.dl dt {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-500); padding-top: 3px;
}
.dl dd { margin: 0; color: var(--ink-800); }

/* === ATTACHMENT === */
.attachment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attachment-list-edit li { display: flex; align-items: center; gap: 12px; }
.attachment-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--ink-200); border-radius: 999px;
  background: var(--bg); font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
  max-width: 100%; min-width: 0;
}
.attachment-pill:hover { border-color: var(--ink-900); background: var(--bg-paper); }
.att-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.att-size { color: var(--ink-500); font-size: 11px; }

/* === OUTREACHPRO BRAND === */
.brand-mark-op {
  background: #2563EB; color: #FFFFFF;
  width: 26px; height: 26px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* === FORM CARD (invoice / settings sections) === */
.form-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 24px 24px 20px;
  margin-bottom: 18px;
}
.form-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.form-heading {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-500); margin: 0 0 14px;
}
.form-grid-inner {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) {
  .form-grid-inner { grid-template-columns: 1fr 1fr; gap: 18px; }
}
.form-grid-inner .field-wide { grid-column: 1 / -1; }
.invoice-form .form-actions {
  background: var(--bg-paper); border: 1px solid var(--ink-200);
  border-radius: 14px; padding: 20px 24px;
}

.field-toggle {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--ink-200); border-radius: 10px;
  background: var(--bg); cursor: pointer;
}
.field-toggle input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.field-toggle .optional { display: block; font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* === ITEMS TABLE === */
.items-table {
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  overflow: hidden;
}
.items-head, .items-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) 0.7fr 0.5fr 0.7fr 0.8fr 36px;
  gap: 10px; align-items: center;
  padding: 12px 14px;
}
.items-head {
  background: var(--bg-muted);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-500); font-weight: 500;
  border-bottom: 1px solid var(--ink-200);
}
.items-row { border-bottom: 1px solid var(--ink-100); background: var(--bg-paper); }
.items-row:last-child { border-bottom: 0; }
.items-row input {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--ink-200); border-radius: 8px;
  background: var(--bg); font-size: 14px;
}
.items-row input:focus { outline: none; border-color: var(--ink-900); background: var(--bg-paper); }
.line-amt {
  display: inline-block; text-align: right; width: 100%;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.col-line-amt { text-align: right; }
.col-rate input, .col-qty input { text-align: right; }
.row-remove {
  height: 28px; width: 28px;
  border: 1px solid var(--ink-200); background: var(--bg);
  border-radius: 999px; font-size: 18px; line-height: 1;
  color: var(--ink-500); cursor: pointer;
}
.row-remove:hover { color: var(--danger); border-color: var(--danger); }

.totals-strip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; margin-top: 14px;
  background: var(--ink-900); color: var(--bg); border-radius: 10px;
}
.totals-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.totals-value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* === STATUS CHIPS === */
.chip-draft { background: var(--ink-100); color: var(--ink-700); }
.chip-sent { background: #FFF3E0; color: #8A5A1F; }
.chip-paid { background: #E8F3F0; color: #0E4F4A; }
.chip-cancelled { background: #FCEEEC; color: #6E2A22; }
.chip-lut {
  background: #E6EEFF; color: #1E3A8A;
  font-weight: 600; letter-spacing: 0.08em;
}

.status-form { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.status-btn {
  padding: 6px 12px;
  border: 1px solid var(--ink-200); background: var(--bg);
  border-radius: 999px; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; cursor: pointer; color: var(--ink-600);
  transition: all 0.2s ease;
}
.status-btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
.status-btn.is-active { background: var(--ink-900); color: var(--bg); border-color: var(--ink-900); }

.filter-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-600); user-select: none;
}
.filter-check input { margin: 0; }

/* === CLEARED CHIPS / BUTTONS === */
.chip-cleared {
  background: #E8F3F0; color: #0E4F4A;
  font-weight: 600;
}
.chip-pending {
  background: #FFF3E0; color: #8A5A1F;
}

/* === ROW-LEVEL CLEARED / PENDING TINTS === */
/* Dashboard recent expenses list */
.expense-row.row-cleared {
  background: #E8F3F0;
  border-left: 3px solid #0E4F4A;
  padding-left: 12px;
  border-radius: 0 8px 8px 0;
  margin: 2px 0;
}
.expense-row.row-pending {
  background: #FDE9E6;
  border-left: 3px solid #C84A3D;
  padding-left: 12px;
  border-radius: 0 8px 8px 0;
  margin: 2px 0;
}
.expense-row.row-cleared .expense-link,
.expense-row.row-pending .expense-link {
  padding-left: 0;
}
.expense-list .expense-row + .expense-row {
  margin-top: 4px;
}

/* Data table rows — strong, visible tints */
.data-table tbody tr.row-cleared > td {
  background: #E8F3F0 !important;
}
.data-table tbody tr.row-cleared > td:first-child {
  box-shadow: inset 4px 0 0 #0E4F4A;
}
.data-table tbody tr.row-cleared:hover > td {
  background: #D4E9E4 !important;
}

.data-table tbody tr.row-pending > td {
  background: #FDE9E6 !important;
}
.data-table tbody tr.row-pending > td:first-child {
  box-shadow: inset 4px 0 0 #C84A3D;
}
.data-table tbody tr.row-pending:hover > td {
  background: #FAD7D1 !important;
}

.btn-clear {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent;
  background: #0E4F4A; color: var(--bg);
  transition: all 0.3s var(--out-expo);
  text-decoration: none; white-space: nowrap;
}
.btn-clear:hover { background: #08302D; gap: 12px; }
.btn-unclear {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--ink-200);
  background: transparent; color: var(--ink-700);
}
.btn-unclear:hover { border-color: var(--ink-900); }

.cleared-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #E8F3F0; border: 1px solid #B5D6CF;
  border-radius: 12px; margin-bottom: 18px;
  color: #0E4F4A;
}
.cleared-banner-icon {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; width: 28px; border-radius: 999px;
  background: #0E4F4A; color: #fff;
  font-weight: 700; flex-shrink: 0;
}
.cleared-banner strong { color: #0E4F4A; }

/* === BANK CARDS === */
.bank-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bank-grid { grid-template-columns: 1fr 1fr; }
}
.bank-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 22px 22px 18px;
  position: relative;
}
.bank-card.is-default {
  border-color: #1A2A45;
  box-shadow: 0 0 0 1px #1A2A45 inset;
}
.bank-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.bank-nickname {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-900); margin: 8px 0 0;
}
.bank-actions { display: inline-flex; gap: 12px; align-items: center; }
.bank-dl { font-size: 13px; }
.bank-dl dt { font-size: 10px; }
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

/* === CLEAR FORM (inside modal-like card) === */
.clear-form-card {
  background: var(--bg-paper);
  border: 1px solid var(--ink-200); border-radius: 12px;
  padding: 16px 18px; margin-top: 12px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
