:root {
  --bg: #f3efe6;
  --paper: #fffdf8;
  --ink: #222;
  --muted: #6a6257;
  --primary: #0b6e4f;
  --primary-light: #e5f4ee;
  --secondary: #d27a3a;
  --danger: #b23a48;
  --danger-light: #fbe9ec;
  --positive: #0b6e4f;
  --negative: #b23a48;
  --expense: #b58900;
  --border: #d7cfc4;
  --row-alt: #faf6ed;
  --row-hover: #ece4d4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  padding: 1rem;
}

header, main {
  width: min(820px, 100%);
  margin: 0 auto;
}

/* ---- Header ---- */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
  flex-wrap: wrap;
}

.header-row h1 {
  margin: 0;
  font-size: 1.25rem;
  text-align: center;
  flex: 1;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
}

.nav-link:hover { background: var(--primary-light); }
.nav-link.active { background: var(--primary-light); }

.status-bar {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
  margin: 0.2rem 0 0.85rem;
}

.status-bar.error { color: var(--danger); }

/* ---- Layout ---- */
main {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 14px #0000000a;
}

.panel > h2 {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.panel-subtitle {
  margin: -0.6rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Collapsible panel (e.g. dashboard Quick add) */
.collapsible > summary {
  cursor: pointer;
  list-style: none;
}
.collapsible > summary::-webkit-details-marker { display: none; }
.panel-summary {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.panel-summary::before {
  content: "▸";
  font-size: 0.8rem;
  transition: transform 0.15s;
}
.collapsible[open] > summary .panel-summary::before { transform: rotate(90deg); }
.collapsible[open] > summary { margin-bottom: 0.8rem; }

.hint { color: var(--muted); font-size: 0.85rem; margin: 0.3rem 0; }

/* ---- Buttons / inputs ---- */
button, .btn {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  transition: filter 0.1s;
}
button:hover { filter: brightness(1.06); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #4f5b56; }
.btn-danger    { background: var(--danger); }
.btn-link {
  background: none;
  color: var(--primary);
  padding: 0.1rem 0.3rem;
  font-weight: 600;
}
.btn-link.danger { color: var(--danger); }
.btn-link:hover { text-decoration: underline; }

input, select, textarea {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

input[type="date"], input[type="number"] { width: auto; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Balance card ---- */
.balance-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.balance-card .balance-block {
  text-align: center;
  padding: 0.8rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
}

.balance-card .balance-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.balance-card .balance-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.balance-card .balance-value.negative { color: var(--negative); }

/* ---- Tables ---- */
.txn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.txn-table th,
.txn-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.txn-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.txn-table tr:nth-child(even) td { background: var(--row-alt); }

.txn-table td.amount, .txn-table th.amount { text-align: right; font-variant-numeric: tabular-nums; }
.txn-table td.actions { text-align: right; white-space: nowrap; }
.amount.positive { color: var(--positive); font-weight: 700; }
.amount.negative { color: var(--negative); font-weight: 700; }
.amount.expense  { color: var(--expense); font-weight: 700; }
.amount.reset    { color: var(--muted); font-weight: 700; }

tr.row-reset td { background: var(--primary-light); }
tr.row-reset td.name { font-weight: 700; color: var(--primary); }

.row-skipped { opacity: 0.45; }
.row-skipped td { text-decoration: line-through; }
.row-edited td.name::after {
  content: " ✎";
  color: var(--muted);
  font-size: 0.7rem;
}

/* ---- Form grids ---- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  align-items: end;
}

.form-grid .full { grid-column: 1 / -1; }

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.toolbar .left, .toolbar .right { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ---- Allocation progress ---- */
.alloc-progress {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.alloc-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
}

.alloc-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-weight: 700;
}

.alloc-meta { color: var(--muted); font-size: 0.8rem; font-weight: 400; }

.alloc-bar {
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  height: 0.55rem;
  margin: 0.45rem 0 0.25rem;
}

.alloc-bar > span {
  display: block;
  height: 100%;
  background: var(--primary);
  transition: width 0.2s;
}

.alloc-bar.over > span { background: var(--danger); }

.alloc-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Weeks ---- */
.weeks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.week-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--row-alt);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.week-row.now { background: var(--primary-light); font-weight: 700; }
.week-row .delta.positive { color: var(--positive); }
.week-row .delta.negative { color: var(--negative); }
.week-row .balance.negative { color: var(--negative); font-weight: 700; }

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0008;
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 50;
}

.modal {
  background: var(--paper);
  border-radius: 16px;
  padding: 1.2rem;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
}

.modal h3 { margin-top: 0; }

/* ---- Misc ---- */
.empty {
  color: var(--muted);
  text-align: center;
  padding: 1rem 0;
  font-style: italic;
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill.warn { background: #fdebd6; color: var(--secondary); }
.pill.muted { background: #ece7dd; color: var(--muted); }
.pill.envelope-pill {
  background: #e7f0ff;
  color: #2a4a8a;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  margin-left: 0.25rem;
}

/* Envelopes page */
.env-summary { margin-bottom: 1rem; }
.env-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.env-stat {
  min-width: 9rem;
}
.env-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.env-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}
.env-stat-value.negative { color: var(--negative); }

.env-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}
.env-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e0d9c8);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.env-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.env-card-name {
  font-weight: 700;
  font-size: 1rem;
}
.env-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.env-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.env-card-balance {
  font-size: 1.4rem;
  font-weight: 700;
}
.env-card-balance.negative { color: var(--negative); }

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.8rem 0;
}

/* ---- Month timeline ---- */
.inline-control {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.inline-control select { width: auto; }
.inline-control.toggle { cursor: pointer; }
.inline-control input[type="checkbox"] { width: auto; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bucket {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}

.bucket.past-bucket {
  opacity: 0.6;
  background: var(--row-alt);
}

.bucket-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.8rem;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.bucket.past-bucket .bucket-head { background: #ece7dd; }

.bucket-label { font-weight: 700; color: var(--primary); }
.bucket-meta { color: var(--muted); font-variant-numeric: tabular-nums; }
.bucket-meta strong { color: var(--ink); }
.bucket-meta strong.negative { color: var(--negative); }
.bucket-meta strong.positive { color: var(--positive); }

.bucket-note {
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--row-alt);
  border-bottom: 1px solid var(--border);
  font-style: italic;
}

.timeline-table { font-size: 0.88rem; }
.timeline-table th, .timeline-table td { padding: 0.4rem 0.6rem; }
.timeline-table tr:last-child td { border-bottom: none; }

/* Keep the date on one line so weekday + day never split awkwardly. */
.timeline-table td:first-child,
.ledger-table td:first-child { white-space: nowrap; }

/* No zebra striping on the dashboard timeline — only highlight on hover. */
.timeline-table tr:nth-child(even) td { background: transparent; }
.timeline-table tbody tr:not(.week-sep):hover td { background: var(--row-hover); }

/* Thin colored bar separating calendar weeks. */
.timeline-table tr.week-sep td {
  padding: 0;
  height: 3px;
  background: var(--primary);
  border: none;
  opacity: 1;
}

tr.row-past td { opacity: 0.55; }
tr.row-today td {
  background: #fff7d6 !important;
  font-weight: 600;
}

/* Add transaction split forms */
.add-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #00000066;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal {
  background: var(--paper);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  width: min(95vw, 460px);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px #00000033;
}
.modal h3 { margin: 0 0 0.8rem; font-size: 1.05rem; }

/* ---- Receipt scan ---- */
.scan-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.scan-row .scan-btn {
  background: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.scan-hint { color: var(--muted); font-size: 0.8rem; }
.scan-preview {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  margin: 0.5rem auto;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  body { padding: 0.5rem; }
  header, main { width: 100%; }

  .panel { padding: 0.85rem 0.9rem; border-radius: 12px; }
  .panel > h2 { margin-bottom: 0.6rem; }

  .header-row { gap: 0.3rem; }
  .header-row h1 { font-size: 1.05rem; }
  .header-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    width: 100%;
    margin: 0 -0.5rem;
    padding: 0 0.5rem 0.2rem;
    scrollbar-width: none;
  }
  .header-nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 0.45rem 0.65rem; font-size: 0.95rem; }

  /* Prevent iOS auto-zoom on focus */
  input, select, textarea { font-size: 16px; padding: 0.55rem 0.7rem; }
  input[type="date"], input[type="number"] { width: 100%; }

  /* Bigger tap targets */
  .btn-link { padding: 0.45rem 0.55rem; font-size: 0.9rem; min-height: 36px; display: inline-flex; align-items: center; }
  button, .btn { padding: 0.6rem 0.95rem; font-size: 0.95rem; }

  .panel { overflow-x: hidden; }

  /* Other data tables (recurring rules, envelopes): horizontal scroll
     instead of squishing. */
  .txn-table-wrap,
  .panel > .txn-table:not(.ledger-table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .txn-table:not(.ledger-table):not(.timeline-table) { font-size: 0.88rem; min-width: 100%; }
  .txn-table:not(.ledger-table):not(.timeline-table) th,
  .txn-table:not(.ledger-table):not(.timeline-table) td { padding: 0.45rem 0.4rem; }

  /* Transaction ledger + dashboard timeline: stacked card rows on phones.
     Layout per row:
       [date]                 [amount]
       [description spanning            ]
       [balance]              [actions]  */
  .timeline-table thead,
  .ledger-table thead { display: none; }
  .timeline-table tbody,
  .ledger-table tbody { display: block; }

  .timeline-table tbody tr:not(.week-sep),
  .ledger-table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 0.6rem;
    row-gap: 0.2rem;
    padding: 0.6rem 0.3rem;
    border-bottom: 1px solid var(--border);
  }
  .timeline-table tbody td,
  .ledger-table tbody td { display: block; padding: 0; border: none; }

  /* date */
  .timeline-table tbody td:nth-child(1),
  .ledger-table tbody td:nth-child(1) {
    grid-column: 1; grid-row: 1;
    font-weight: 600; white-space: nowrap;
  }
  /* amount */
  .timeline-table tbody td:nth-child(3),
  .ledger-table tbody td:nth-child(3) {
    grid-column: 2; grid-row: 1;
    text-align: right; white-space: nowrap; font-size: 1rem;
  }
  /* description */
  .timeline-table tbody td:nth-child(2),
  .ledger-table tbody td:nth-child(2) {
    grid-column: 1 / -1; grid-row: 2; white-space: normal;
  }
  /* balance */
  .timeline-table tbody td:nth-child(4),
  .ledger-table tbody td:nth-child(4) {
    grid-column: 1; grid-row: 3;
    color: var(--muted); font-size: 0.85rem; white-space: nowrap;
  }
  .timeline-table tbody td:nth-child(4)::before,
  .ledger-table tbody td:nth-child(4)::before { content: "Balance "; }
  /* actions */
  .timeline-table tbody td:nth-child(5),
  .ledger-table tbody td:nth-child(5) {
    grid-column: 2; grid-row: 3; text-align: right; white-space: nowrap;
  }
  /* empty-state + spanning messages */
  .timeline-table tbody td.empty,
  .ledger-table tbody td.empty { grid-column: 1 / -1; text-align: center; }

  /* Row highlights move to the row (not per-cell) so the card looks solid. */
  .timeline-table tbody tr.row-today,
  .ledger-table tbody tr.row-today { background: #fff7d6; }
  .timeline-table tbody tr.row-reset,
  .ledger-table tbody tr.row-reset { background: var(--primary-light); }
  .timeline-table tbody tr td,
  .ledger-table tbody tr td { background: transparent !important; }

  /* Week separator stays a thin bar across the card list. */
  .timeline-table tbody tr.week-sep { display: block; padding: 0; border: none; }
  .timeline-table tbody tr.week-sep td { display: block; height: 3px; padding: 0; background: var(--primary) !important; }

  /* Bucket header: stack label above the totals line. */
  .bucket-head { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .bucket-meta { font-size: 0.78rem; line-height: 1.6; }

  /* Envelope grid: single column */
  .env-grid { grid-template-columns: 1fr; }
  .env-card-balance { font-size: 1.2rem; }

  /* Env summary horizontal layout still works but tighter */
  .env-summary-row { gap: 0.9rem; }
  .env-stat-value { font-size: 1.2rem; }

  /* Form rows tighter */
  .form-grid { gap: 0.5rem; }

  /* Toolbar wraps better */
  .toolbar { gap: 0.4rem; }
}

/* ---- Receipt scan overlay / spinner ---- */
.scan-overlay {
  position: fixed;
  inset: 0;
  background: #00000088;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.scan-overlay .scan-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 14px 40px #00000040;
  font-weight: 600;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #00000022;
  border-top-color: var(--primary, #2a4a8a);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Details disclosure ---- */
.details-block {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}
.details-block summary {
  cursor: pointer;
  color: var(--muted);
}
.details-block pre {
  background: #00000010;
  padding: 0.5rem 0.6rem;
  border-radius: 6px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.4rem 0 0;
  max-height: 200px;
  overflow: auto;
}

/* ---- Envelope progress bar ---- */
.env-progress {
  margin-top: 0.4rem;
  height: 8px;
  background: #00000010;
  border-radius: 6px;
  overflow: hidden;
}
.env-progress-bar {
  height: 100%;
  background: var(--primary, #2a4a8a);
  transition: width 0.25s ease;
}
.env-progress-bar.warn { background: #c98a1e; }
.env-progress-bar.over { background: #b13a3a; }
.env-card-quickfund {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.env-card-quickfund button {
  padding: 0.3rem 0.55rem;
  font-size: 0.82rem;
}

/* ---- Filter input ---- */
.filter-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.filter-row input {
  flex: 1;
  min-width: 0;
}

/* ---- Merchant map ---- */
.merchant-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border, #d4d1c8);
  font-size: 0.9rem;
}
.merchant-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-row select { flex: 1; min-width: 0; }

/* ---- Floating refresh button on dashboard ---- */
.floating-refresh {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary, #2a4a8a);
  color: white;
  border: none;
  box-shadow: 0 6px 18px #00000033;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-refresh:disabled { opacity: 0.5; }

/* ---- Dark mode ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1f24;
    --border: #383841;
    --muted: #a0a0aa;
  }
  body {
    background: #15151a;
    color: #e8e8ee;
  }
  .panel, .modal, .balance-card .balance-block, .env-card {
    background: #1f1f24;
    color: #e8e8ee;
    border-color: #383841;
  }
  input, select, textarea {
    background: #2a2a30;
    color: #e8e8ee;
    border-color: #383841;
  }
  .pill { background: #2a2a30; color: #e8e8ee; }
  .pill.envelope-pill { background: #1f3a6b; color: #cfdcf4; }
  .pill.muted { background: #2a2a30; color: #a0a0aa; }
  .btn-secondary { background: #2a2a30; color: #e8e8ee; border-color: #383841; }
  .nav-link { color: #c8c8d0; }
  .nav-link.active { color: #ffffff; }
  .status-bar { color: #a0a0aa; }
  hr, .section-divider { border-color: #383841; }
  .details-block pre { background: #00000040; }
  .scan-overlay .scan-card { background: #1f1f24; color: #e8e8ee; }
  .env-progress { background: #00000040; }
  tr.row-past td { color: #888892; }
  tr.row-today td { background: #2a3a55 !important; }
  tr.row-edited td { background: #3a2f1a; }
  tr.hl-income td { background: #1a3025; }
  tr.hl-expense td { background: #3a1f1f; }
  tr.hl-small td { background: #1f2a35; }
  tr.hl-mid td { background: #2f3322; }
  tr.hl-big td { background: #3a2424; }
}
