/* =============================================================================
   Cleaner look, light mode (founder 2026-11-24: "very similar structure to what
   currently exists just cleaner and easier to read", matching the phone app).
   Same pages, tabs and sections; only the styling changes:
   * one flat page background, no mint box behind the cards
   * the phone app's colours (pf-app.css): ink #10241C, muted #4B5E55, lines #DCE7E0
   * cards: white, 22px corners, no borders or shadows
   * tabs: an underline under the active tab instead of folder tabs
   * tables: dark green headers kept (as in the phone app), lighter row lines
   * text: 14px minimum for labels and table headers, 15px body
   Loaded after pf-theme.css and before the dark theme. Every rule is light mode
   only (html:not([data-theme="dark"])), so dark mode is unchanged.
   ============================================================================= */

/* ---- colours: the shared tokens take the phone app's values ---------------- */
html:not([data-theme="dark"]) .pf-ui {
  --pf-ink: #10241C;
  --pf-text: #24382F;
  --pf-muted: #4B5E55;
  --pf-line: #DCE7E0;
  --pf-line-strong: #C9D8CF;
  --pf-line-green: #DCE7E0;
  --pf-wash: #F3F7F4;
  --pf-canvas: #F3F7F4;
  --pf-section: #FFFFFF;
}

/* ---- page: one flat background ------------------------------------------- */
html:not([data-theme="dark"]) body:has(main.dashboard-shell) { background: #F3F7F4; }
html:not([data-theme="dark"]) body:has(main.dashboard-shell)::before { background: none; }
html:not([data-theme="dark"]) main.content-wrapper.dashboard-shell {
  background: transparent; box-shadow: none; border: 0;
}

/* ---- top bar: white with a line under it, the current page as a pill ------- */
html:not([data-theme="dark"]) body:has(main.dashboard-shell) .navbar.site-navbar {
  background: #FFFFFF; backdrop-filter: none; box-shadow: none; border-radius: 0;
  border-bottom: 1px solid #DCE7E0;
}
html:not([data-theme="dark"]) body:has(main.dashboard-shell) .navbar.site-navbar .nav-link:not(.signup-btn) {
  color: #4B5E55; font-weight: 500; border-radius: 999px; padding: .5rem .85rem;
}
html:not([data-theme="dark"]) body:has(main.dashboard-shell) .navbar.site-navbar .nav-link:not(.signup-btn):hover { color: #10241C; background: #F3F7F4; }
html:not([data-theme="dark"]) body:has(main.dashboard-shell) .navbar.site-navbar .nav-link.active,
html:not([data-theme="dark"]) body:has(main.dashboard-shell) .navbar.site-navbar .nav-link[aria-current="page"] {
  color: #064E3B; background: #E6F2EB; font-weight: 700;
}

/* ---- page titles ------------------------------------------------------------ */
html:not([data-theme="dark"]) .pf-ui .pf-top h4 {
  font-weight: 800; font-size: 1.75rem; letter-spacing: -.02em; color: #10241C;
}
html:not([data-theme="dark"]) .pf-ui .pf-top p { color: #4B5E55; font-size: .95rem; }

/* ---- tabs: underline instead of folder tabs -------------------------------- */
html:not([data-theme="dark"]) .pf-ui .pf-tabs {
  gap: 1.5rem; border-bottom: 1px solid #DCE7E0 !important; margin-bottom: 1.25rem;
}
html:not([data-theme="dark"]) .pf-ui .pf-tabs .nav-link {
  padding: .7rem 0 .8rem; border-radius: 0; color: #4B5E55 !important; font-size: .95rem; font-weight: 500;
}
html:not([data-theme="dark"]) .pf-ui .pf-tabs .nav-link:hover { background: none !important; color: #10241C !important; }
html:not([data-theme="dark"]) .pf-ui .pf-tabs .nav-link.active {
  background: none !important; color: #10241C !important; font-weight: 700; box-shadow: inset 0 -3px 0 #047857;
}

/* ---- the white panel under the tabs: a card in its own right --------------- */
html:not([data-theme="dark"]) .pf-ui .tab-content,
html:not([data-theme="dark"]) .pf-ui .pf-panel {
  border-radius: 22px !important; border: 0 !important; box-shadow: none !important;
}
html:not([data-theme="dark"]) .pf-ui .pf-tabs + .tab-content { border-top-left-radius: 22px !important; }

/* ---- cards: white, 22px corners, no borders or shadows --------------------- */
html:not([data-theme="dark"]) .pf-ui .card {
  border: 0 !important; border-radius: 22px !important; box-shadow: none !important;
}
html:not([data-theme="dark"]) .pf-ui .card-body { padding: 1.35rem 1.5rem; }
html:not([data-theme="dark"]) .pf-ui .card h5,
html:not([data-theme="dark"]) .pf-ui .section-heading,
html:not([data-theme="dark"]) .pf-ui .pf-section-title {
  font-family: Manrope, Inter, sans-serif; font-weight: 800; color: #10241C;
}
/* boxes inside a card: a soft fill instead of a mint border */
html:not([data-theme="dark"]) .pf-ui .ov-setup,
html:not([data-theme="dark"]) .pf-fc .pf-cashchart,
html:not([data-theme="dark"]) .pf-fc .full-year-table-wrapper,
html:not([data-theme="dark"]) .pf-tx .transactions-fixed-wrapper,
html:not([data-theme="dark"]) .pf-tx .table-responsive {
  border: 0 !important; border-radius: 18px !important; box-shadow: none !important;
}
html:not([data-theme="dark"]) .pf-ui .ov-setup { background: #FFFFFF; border-radius: 22px !important; }

/* ---- tables: dark green headers stay everywhere, as in the phone app (founder 2026-11-25: "few other areas where
   green headings are required"); only the row lines are lighter ------------------------------------------------ */
/* the headers fade from dark green at the top to a lighter green at the bottom (founder 2026-11-25: "a green that
   transforms colours… dark into light"). Top to bottom, not left to right: header cells stay put while the table
   scrolls (sticky), so each cell paints the same fade and the row reads as one. The shared header colour is a
   background everywhere it's used (pf-ui.css, overview.css, forecast.css), so the fade goes in the same variable. */
html:not([data-theme="dark"]) .pf-ui,
html:not([data-theme="dark"]) .pf-ui * { --pf-head: linear-gradient(180deg, #033A2D 0%, #05845F 100%); }
/* the cash statement's two header rows (month, then Actual / Forecast) share one fade */
html:not([data-theme="dark"]) .pf-fc #tbl-cashflow-statement thead tr:not(.month-status-row) th {
  background-image: linear-gradient(180deg, #033A2D 0%, #045E46 100%) !important;
}
html:not([data-theme="dark"]) .pf-fc #tbl-cashflow-statement thead tr.month-status-row th {
  background-image: linear-gradient(180deg, #045E46 0%, #05845F 100%) !important;
}
/* Forecast vs actual: its two header rows too; the picked month and the total keep their own colour */
html:not([data-theme="dark"]) .pf-ui .pf-acc__t thead tr:not(.pf-acc__sub) th:not(.is-sel):not(.is-total) {
  background-image: linear-gradient(180deg, #033A2D 0%, #045E46 100%);
}
html:not([data-theme="dark"]) .pf-ui .pf-acc__t thead tr.pf-acc__sub th:not(.is-sel):not(.is-total) {
  background-image: linear-gradient(180deg, #045E46 0%, #05845F 100%);
}
html:not([data-theme="dark"]) .pf-ui .pf-hist__table th,
html:not([data-theme="dark"]) .pf-ui .budget-analysis__table thead th,
html:not([data-theme="dark"]) .pf-ui .ov4-table thead th,
html:not([data-theme="dark"]) .pf-tx .table:not(.pf-tidy__kwtable) thead th {
  background-image: linear-gradient(180deg, #033A2D 0%, #05845F 100%) !important;
}
html:not([data-theme="dark"]) .pf-ui .ov4-table tbody tr { border-top-color: #EEF3F0; }

/* cash statement (Forecast): the dark green header stays, as in the phone app (founder 2026-11-25: "green bar still
   exists on cash forecast in app, why is it gone on web app"); section rows white with bold text */
html:not([data-theme="dark"]) .pf-fc #tbl-cashflow-statement tbody tr.report-table__major-heading td {
  background: #FFFFFF !important; color: #10241C !important; font-weight: 800; font-size: .95rem;
  border-bottom: 1px solid #DCE7E0;
}
html:not([data-theme="dark"]) .pf-fc #tbl-cashflow-statement tbody tr.report-table__summary-row td { background-color: #F7FAF8 !important; border-bottom-color: #EEF3F0; }
html:not([data-theme="dark"]) .pf-fc #tbl-cashflow-statement tbody tr.report-table__summary-row td.month-cur { background-color: #EEF5F0 !important; }
html:not([data-theme="dark"]) .pf-fc #tbl-cashflow-statement tbody tr.report-table__balance-row td { background-color: #E6F2EB !important; color: #064E3B; }

/* ---- text: 14px minimum for labels, hints and badges ----------------------- */
html:not([data-theme="dark"]) .pf-ui small,
html:not([data-theme="dark"]) .pf-ui .small,
html:not([data-theme="dark"]) .pf-ui .ov-tag,
html:not([data-theme="dark"]) .pf-ui .ov4-tile__hint,
html:not([data-theme="dark"]) .pf-ui .ov4-nbtn,
html:not([data-theme="dark"]) .pf-ui .ov-cuts__sub,
html:not([data-theme="dark"]) .pf-tx .badge { font-size: .875rem; }
html:not([data-theme="dark"]) .pf-ui .text-muted { color: #4B5E55 !important; }
