.finance-page {
  padding-bottom: 24px;
}

.finance-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.finance-page-actions .btn {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.finance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 20px;
  padding: 28px;
  margin-bottom: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.2), transparent 42%),
    linear-gradient(135deg, #0f172a 0%, #102a43 50%, #0f766e 100%);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  color: #fff;
}

.finance-eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-hero h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
}

.finance-hero p {
  margin-bottom: 18px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.finance-source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finance-source-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

.finance-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  justify-content: center;
}

.btn-finance-primary,
.btn-finance-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 16px;
  font-weight: 700;
  border: 0;
}

.btn-finance-primary {
  background: #f8fafc;
  color: #0f172a;
}

.btn-finance-primary:hover,
.btn-finance-primary:focus {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-finance-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-finance-secondary:hover,
.btn-finance-secondary:focus {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.finance-hero-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.finance-hero-note strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 16px;
}

.finance-hero-note span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.finance-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.finance-filter-pills,
.finance-filter-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-period {
  min-width: 96px;
  border-radius: 999px;
  font-weight: 700;
  color: #475569;
}

.finance-period.active {
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5a4 100%);
  border-color: transparent;
}

.finance-filter-fields .form-control {
  min-width: 150px;
  border-radius: 12px;
}

.finance-loading-state {
  padding: 6px 0 18px;
}

.finance-summary-grid,
.finance-story-grid,
.finance-top-grid,
.finance-grid-two {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

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

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

.finance-summary-card,
.finance-panel,
.finance-story-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.finance-summary-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  min-height: 148px;
}

.finance-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  font-size: 28px;
  flex-shrink: 0;
}

.finance-summary-card.income .finance-summary-icon {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.finance-summary-card.expense .finance-summary-icon {
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.finance-summary-card.net .finance-summary-icon {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
}

.finance-summary-card.projection .finance-summary-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 100%);
}

.finance-summary-label {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.finance-summary-value {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.finance-summary-meta {
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.finance-panel {
  padding: 22px;
}

.finance-story-card {
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.finance-story-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-story-card h5 {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
}

.finance-story-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.75;
}

.finance-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.finance-panel-head-actions {
  align-items: center;
}

.finance-panel-head h5 {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
}

.finance-panel-head span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.finance-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-panel-actions .btn {
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.finance-inline-link {
  color: #0f766e;
  font-weight: 700;
}

.finance-recurring-panel {
  margin-bottom: 18px;
}

.finance-recurring-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.finance-recurring-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8 0%, #06b6d4 100%);
  color: #fff;
  font-size: 24px;
  flex-shrink: 0;
}

.finance-recurring-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.finance-recurring-summary span {
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.finance-recurring-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.finance-recurring-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.finance-recurring-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.finance-recurring-card-top h6 {
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.finance-recurring-card-top p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.finance-recurring-card-top strong {
  color: #0f766e;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-recurring-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
}

.finance-recurring-meta span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-recurring-meta strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.finance-health-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.finance-health-score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 128px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdf4 100%);
}

.finance-health-score strong {
  color: #0f172a;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.finance-health-score span {
  color: #475569;
  font-weight: 700;
}

.finance-health-copy p,
.finance-panel-note {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.finance-health-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finance-health-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.finance-health-metric {
  padding: 14px 15px;
  border-radius: 18px;
  background: #f8fafc;
}

.finance-health-metric span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-health-metric strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.finance-highlight-list,
.finance-breakdown-list,
.finance-tips,
.finance-recent-list,
.finance-series-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finance-highlight-item,
.finance-breakdown-row,
.finance-tip,
.finance-recent-item,
.finance-series-row {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.finance-highlight-item {
  padding: 14px 16px;
}

.finance-highlight-item strong,
.finance-tip strong,
.finance-recent-main strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-highlight-item span,
.finance-tip span,
.finance-recent-main span,
.finance-series-values span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.finance-projection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.finance-mini-stat {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
}

.finance-mini-stat span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finance-mini-stat strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
}

.finance-breakdown-row {
  padding: 16px;
}

.finance-breakdown-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.finance-breakdown-top strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-breakdown-top span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.finance-breakdown-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.finance-progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.finance-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.finance-progress-fill.income {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

.finance-progress-fill.expense {
  background: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
}

.finance-tip {
  padding: 16px;
}

.finance-tip[data-tone='success'] {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.8), rgba(240, 253, 244, 1));
}

.finance-tip[data-tone='warning'] {
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.85), rgba(255, 247, 237, 1));
}

.finance-tip[data-tone='info'] {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.85), rgba(239, 246, 255, 1));
}

.finance-recent-item,
.finance-series-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.finance-recent-main {
  flex: 1;
  min-width: 0;
}

.finance-recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.finance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-pill.manual {
  background: #dcfce7;
  color: #166534;
}

.finance-pill.pending {
  background: #fee2e2;
  color: #b91c1c;
}

.finance-pill.scheduled {
  background: #ede9fe;
  color: #6d28d9;
}

.finance-recent-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.finance-amount {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.finance-amount.income {
  color: #15803d;
}

.finance-amount.expense {
  color: #b91c1c;
}

.finance-row-actions {
  display: flex;
  gap: 8px;
}

.finance-row-actions .btn {
  border-radius: 999px;
  font-weight: 700;
}

.finance-expense-panel {
  margin-bottom: 18px;
}

.finance-ledger-panel {
  margin-bottom: 18px;
}

.finance-ledger-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.finance-ledger-toolbar-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.finance-ledger-toolbar-copy span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.finance-ledger-search {
  position: relative;
  min-width: 280px;
}

.finance-ledger-search i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 18px;
}

.finance-ledger-search .form-control {
  height: 44px;
  padding-left: 40px;
  border-radius: 14px;
}

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

.finance-ledger-table {
  width: 100% !important;
  margin: 0 !important;
}

.finance-ledger-table thead th {
  border-top: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.finance-ledger-table td {
  vertical-align: top;
}

.finance-ledger-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.finance-ledger-main strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-ledger-main span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.finance-ledger-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-ledger-date strong {
  white-space: nowrap;
}

.finance-ledger-passive {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.finance-datatable-footer .dataTables_length label,
.finance-datatable-footer .dataTables_info {
  color: #64748b;
  font-size: 13px;
}

.finance-datatable-footer .dataTables_length select {
  min-width: 88px;
  margin: 0 6px;
  border-radius: 10px;
}

.finance-datatable-footer .dataTables_paginate {
  margin-top: 8px;
}

.finance-datatable-footer .pagination {
  margin-bottom: 0;
}

.finance-datatable-footer .page-item.active .page-link {
  border-color: #0f766e;
  background: #0f766e;
}

.finance-datatable-footer .page-link {
  color: #0f766e;
  border-radius: 10px;
}

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

.finance-expense-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.finance-expense-table th {
  padding: 0 14px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.finance-expense-table td {
  padding: 16px 14px;
  vertical-align: top;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.finance-expense-table td:first-child {
  border-left: 1px solid #e2e8f0;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.finance-expense-table td:last-child {
  border-right: 1px solid #e2e8f0;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}

.finance-expense-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.finance-expense-cell strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-expense-cell span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.finance-expense-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-expense-amount {
  color: #b91c1c;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-expense-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.finance-series-panel {
  margin-bottom: 18px;
}

.finance-series-row {
  align-items: center;
}

.finance-series-label {
  min-width: 88px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-series-visual {
  flex: 1;
  min-width: 0;
}

.finance-series-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.finance-series-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.finance-series-fill.positive {
  background: linear-gradient(135deg, #0f766e 0%, #2dd4bf 100%);
}

.finance-series-fill.negative {
  background: linear-gradient(135deg, #dc2626 0%, #fb7185 100%);
}

.finance-series-values {
  display: grid;
  min-width: 240px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: right;
}

.finance-cash-series-values {
  min-width: 190px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-series-values strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.finance-empty-state {
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.finance-inline-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.finance-inline-help {
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.finance-modal {
  border: 0;
  border-radius: 22px;
}

.finance-modal .modal-header,
.finance-modal .modal-footer {
  border-color: #e2e8f0;
}

.finance-modal-subtitle {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.finance-modal-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.finance-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.finance-mode-btn:hover,
.finance-mode-btn:focus {
  border-color: #0f766e;
  color: #0f766e;
  outline: none;
}

.finance-mode-btn.active {
  border-color: #0f766e;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12) 0%, rgba(45, 212, 191, 0.12) 100%);
  color: #0f766e;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.finance-mode-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.finance-modal-recurring-quick {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f8fafc 100%);
}

.finance-modal-recurring-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.finance-modal-recurring-head strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-modal-recurring-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.finance-modal-recurring-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.finance-modal-recurring-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.finance-modal-recurring-item.is-selected .finance-modal-recurring-select {
  border-color: #0f766e;
  background: #ecfdf5;
}

.finance-modal-recurring-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.finance-modal-recurring-select:hover,
.finance-modal-recurring-select:focus {
  border-color: #0f766e;
  outline: none;
}

.finance-modal-recurring-select-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.finance-modal-recurring-select-main strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.finance-modal-recurring-select-main span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.finance-modal-recurring-select-amount {
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.finance-modal-recurring-empty {
  padding: 12px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .finance-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991px) {
  .finance-hero,
  .finance-story-grid,
  .finance-top-grid,
  .finance-grid-two {
    grid-template-columns: 1fr;
  }

  .finance-recurring-list {
    grid-template-columns: 1fr;
  }

  .finance-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-series-row {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-series-values {
    min-width: 0;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .finance-summary-grid,
  .finance-projection-grid {
    grid-template-columns: 1fr;
  }

  .finance-health-metrics {
    grid-template-columns: 1fr;
  }

  .finance-page-actions {
    justify-content: flex-start;
  }

  .finance-hero,
  .finance-filter-bar,
  .finance-summary-card,
  .finance-panel {
    padding: 18px;
  }

  .finance-health-wrap,
  .finance-recent-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .finance-panel-head-actions {
    align-items: flex-start;
  }

  .finance-panel-actions {
    width: 100%;
  }

  .finance-panel-actions .btn {
    flex: 1;
  }

  .finance-recent-side {
    width: 100%;
    align-items: flex-start;
  }

  .finance-row-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .finance-row-actions .btn {
    flex: 1;
  }

  .finance-ledger-toolbar {
    flex-direction: column;
  }

  .finance-ledger-search {
    width: 100%;
    min-width: 0;
  }

  .finance-recurring-meta {
    grid-template-columns: 1fr;
  }

  .finance-recurring-summary {
    align-items: flex-start;
  }

  .finance-recurring-card-top {
    flex-direction: column;
  }

  .finance-datatable-footer .dataTables_length,
  .finance-datatable-footer .dataTables_info,
  .finance-datatable-footer .dataTables_paginate {
    text-align: left !important;
  }

  .finance-expense-table,
  .finance-expense-table thead,
  .finance-expense-table tbody,
  .finance-expense-table tr,
  .finance-expense-table th,
  .finance-expense-table td {
    display: block;
    width: 100%;
  }

  .finance-expense-table {
    min-width: 0;
    border-spacing: 0;
  }

  .finance-expense-table thead {
    display: none;
  }

  .finance-expense-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .finance-expense-table tr {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
  }

  .finance-expense-table td,
  .finance-expense-table td:first-child,
  .finance-expense-table td:last-child {
    border: 0;
    border-bottom: 1px solid #eef2f7;
    border-radius: 0;
    background: transparent;
  }

  .finance-expense-table td:last-child {
    border-bottom: 0;
  }

  .finance-expense-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .finance-expense-actions {
    justify-content: flex-start;
  }
}
