/* WriteOffs — fleet styling: navy + gold shelf family, green money accent. */
:root {
  --navy: #0a1f44; --navy2: #0a2540; --gold: #c9a227; --green: #1e8e5a;
  --ink: #12233f; --muted: #5b6b82; --line: #dbe3ee; --card: #ffffff; --bg: #eef2f7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
header.top { background: var(--navy); color: #fff; padding: 18px 16px 16px; }
header.top h1 { margin: 0; font-size: 28px; letter-spacing: .2px; }
header.top .benefit { margin: 6px 0 0; color: #cfe0f2; font-size: 15px; max-width: 34em; }
main { max-width: 680px; margin: 0 auto; padding: 14px 12px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.card h2 { margin: 0 0 8px; font-size: 18px; }
.fine { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* Payoff */
.payoff { border-top: 4px solid var(--green); }
.payoff-main { display: flex; flex-direction: column; gap: 2px; }
.payoff-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.payoff-amount { font-size: 40px; font-weight: 800; color: var(--green); line-height: 1.05; }
.payoff-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; color: var(--ink); }
.payoff-row .dot { color: var(--muted); }
.payoff-row.est label { color: var(--muted); font-size: 14px; }
.payoff-row.est strong { color: var(--green); font-size: 18px; }
select, input[type="date"], input[type="number"], input[type="text"] {
  font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 44px;
}
select:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.cat-totals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cat-chip { background: #e8f4ee; color: #14532d; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }

/* This week */
.week .prompt-line { margin: 6px 0 0; font-weight: 600; color: var(--navy); }

/* Capture */
.capture-actions { display: flex; gap: 10px; }
.big-action {
  flex: 1; min-height: 60px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--green); color: #fff; font: 700 18px/1.2 inherit; padding: 12px 8px;
}
.big-action.alt { background: var(--navy); }
.big-action:active { transform: translateY(1px); }
.capture-form { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.capture-form h2 { margin: 0; }
.capture-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
.odo-toggle { display: flex; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font: 600 14px inherit; cursor: pointer; color: var(--muted); }
.chip.active { border-color: var(--green); color: var(--green); background: #e8f4ee; }
.rate-line { margin: 0; color: var(--muted); font-size: 14px; }
.form-btns { display: flex; gap: 10px; }
.save-btn { flex: 1; min-height: 48px; border: 0; border-radius: 10px; background: var(--gold); color: #231a00; font: 700 16px inherit; cursor: pointer; }
.cancel-btn { min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 600 15px inherit; padding: 0 16px; cursor: pointer; color: var(--muted); }
.saved-flash { min-height: 20px; margin: 8px 0 0; color: var(--green); font-weight: 600; }

/* Entries */
.entries-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.year-pick { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.entry-list { list-style: none; margin: 6px 0 0; padding: 0; }
.entry { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; }
.entry-main { display: flex; flex-direction: column; min-width: 0; }
.entry-date { font-size: 12px; color: var(--muted); }
.entry-what { font-weight: 600; }
.entry-note { display: block; font-weight: 400; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.entry-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.entry-amt { font-weight: 800; color: var(--green); }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font: 600 13px inherit; cursor: pointer; color: var(--navy); }
.mini-btn.danger { color: #b3261e; }

/* Tax time */
.export-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.export-btn { min-height: 48px; border: 1.5px solid var(--navy); border-radius: 10px; background: #fff; color: var(--navy); font: 700 15px inherit; cursor: pointer; text-align: left; padding: 10px 14px; }
.schedule-view { margin-top: 12px; }
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
table.sched { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
table.sched th, table.sched td { border-bottom: 1px solid var(--line); padding: 7px 6px; text-align: left; }
table.sched .num { text-align: right; }
table.sched tr.total td { font-weight: 800; border-top: 2px solid var(--navy); }
.ledger-link { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fbf7e8; }
.ledger-tile { background: var(--gold); color: #231a00; font-weight: 800; border-radius: 10px; padding: 10px; }
.ledger-link .tool-arrow { margin-left: auto; font-size: 20px; color: var(--muted); }

footer .version { color: var(--muted); font-size: 13px; margin-top: 6px; }

@media print {
  body { background: #fff; }
  .shelf-homebar, header.top, .payoff, .week, .capture, .entries, .export-btns, .ledger-link, footer, #mockFeedbackTool { display: none !important; }
  .taxtime { border: 0; box-shadow: none; }
  .schedule-view { display: block !important; }
}
