:root { --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f1f5f9; --accent: #0f766e; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: var(--bg); color: var(--ink); }
header { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px; }
header strong { display: block; }
header span { color: var(--muted); font-size: 13px; }
main { max-width: 420px; margin: 0 auto; padding: 24px 16px; }
body.wide main { max-width: 880px; }
.shell { display: grid; grid-template-columns: 168px 1fr; gap: 16px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 8px; }
.side button,
.side a {
  margin-top: 0;
  background: #1e3a5f;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
}
.side a:hover,
.side button:hover { background: #274872; }
.side button.on { background: #fff; color: var(--ink); }
.view { display: none; }
.view.on { display: block; }
@media (max-width: 700px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; overflow: visible; }
}
.top-links { display: flex; gap: 16px; align-items: center; }
.top-links a, .top-links button.linkish { margin-top: 0; background: transparent; color: var(--accent); padding: 0; }
a.muni-out { background: var(--accent); color: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.report-label { margin: 0 0 8px; font-weight: 700; }
body.beach-page { background: #efece6; }
body.beach-page header { background: #efece6; border-bottom: 0; }
body.beach-page .shell { grid-template-columns: 200px 1fr; }
.beach-address { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.report-panel { margin: 0 0 20px; }
.report-panel .toolbar { margin-bottom: 8px; }
.report-panel .toolbar button { margin-top: 0; }
.report-exports { margin-bottom: 0; }
.block { margin: 28px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.block h2 { margin: 0 0 4px; font-size: 18px; }
.tax-line { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; }
.tax-state { display: inline; margin: 0; font-weight: 700; font-size: 14px; }
.tax-info { margin: 8px 0 0; max-width: 36rem; }
.info-tip { width: 1.15rem; height: 1.15rem; border-radius: 999px; border: 1.5px solid currentColor; background: #fff; color: var(--ink); font-size: 0.7rem; font-weight: 700; line-height: 1; padding: 0; cursor: pointer; flex: 0 0 auto; }
.info-tip[aria-expanded="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tax-state.on { color: #047857; }
.tax-state.off { color: #b91c1c; }
.tax-list { display: grid; gap: 12px; }
.tax-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: inherit; }
.tax-row a { color: inherit; font-size: 18px; font-weight: 700; text-decoration: none; }
.tax-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tax-switch { position: relative; display: inline-block; width: 44px; height: 26px; }
.tax-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.tax-switch span { display: block; width: 44px; height: 26px; border-radius: 999px; background: #cbd5e1; cursor: not-allowed; }
.tax-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f8fafc; }
.tax-switch input:checked + span { background: #34c759; }
.tax-switch input:checked + span::after { left: 21px; }
.tax-switch input:disabled + span { cursor: default; }
.file-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; }
.file-line strong { font-weight: 700; }
.summary { margin-bottom: 16px; }
.summary strong { font-size: 28px; }
.stats { display: flex; gap: 16px; margin-top: 8px; }
.stats div { flex: 0 0 auto; }
.stats span { display: block; color: var(--muted); font-size: 12px; }
.tool-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 12px; }
.tool-box h2 { margin: 0 0 2px; font-size: 16px; }
.tool-note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.export-days { margin: 0 0 12px; font-weight: 700; }
.tool-box .toolbar { margin-bottom: 0; }
.tool-box .toolbar button,
.tool-box .toolbar a.btn { margin-top: 0; }
.tool-box .find-field { flex: 1 1 280px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.toolbar label { margin-top: 0; flex: 0 1 160px; }
.toolbar label.find-field { flex: 0 1 220px; min-width: min(100%, 12rem); overflow-wrap: anywhere; }
.toolbar button { flex: 0 0 auto; }
.beaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.beach { display: flex; gap: 12px; align-items: flex-start; }
.beach input[type=checkbox] { width: 18px; height: 18px; margin: 4px 0 0; flex: 0 0 auto; }
.beach-open { display: block; flex: 1; color: inherit; text-decoration: none; }
.beach h2 { margin: 0 0 8px; font-size: 18px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: block; text-align: center; padding: 8px 0; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 13px; }
.day strong, .day span { display: block; }
.day.current { outline: 2px solid var(--accent); }
.chairs { display: flex; flex-wrap: wrap; gap: 8px; }
.chair { padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.chair.booked { background: #dbeafe; }
.chair.walk-in { background: #111; color: #fff; }
h2.section { font-size: 16px; margin: 20px 0 8px; }
.arrival { border-top: 1px solid var(--line); padding: 12px 0; }
.arrival p { margin: 4px 0; }
.muted { color: var(--muted); font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.card.beach { border: 2px solid #94a3b8; }
a.hit { display: block; margin-bottom: 12px; text-decoration: none; color: inherit; }
label { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; }
input { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
button, .btn { display: inline-block; margin-top: 16px; border: 0; background: var(--accent); color: #fff; border-radius: 8px; padding: 10px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.msg { margin-top: 12px; font-size: 14px; }
.msg.error { color: #b91c1c; }
.msg.ok { color: #047857; }
body.payments main { max-width: 1100px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpis span { display: block; color: var(--muted); font-size: 12px; }
.kpis strong { display: block; margin-top: 4px; font-size: 22px; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }
#money.kpis,
body.payments #kpis { display: block; }
#money .receipt,
body.payments #kpis .receipt { background: transparent; border: 0; border-radius: 0; padding: 0; max-width: 460px; }
#money .receipt-row,
body.payments #kpis .receipt-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
#money .receipt-row:last-child,
body.payments #kpis .receipt-row:last-child { border-bottom: 0; }
#money .receipt-row span,
body.payments #kpis .receipt-row span { display: inline; color: var(--ink); font-size: 15px; }
#money .receipt-row.part span,
body.payments #kpis .receipt-row.part span { color: var(--muted); padding-left: 14px; }
#money .receipt-row strong,
body.payments #kpis .receipt-row strong { display: inline; margin: 0; font-size: 16px; white-space: nowrap; }
#money .receipt-row.total strong,
body.payments #kpis .receipt-row.total strong { font-size: 22px; }
#money .receipt-row.total span,
body.payments #kpis .receipt-row.total span,
#money .receipt-row.keeps span,
body.payments #kpis .receipt-row.keeps span { font-weight: 700; }
#money .receipt-row.part strong,
body.payments #kpis .receipt-row.part strong { font-weight: 400; font-size: 15px; color: var(--muted); }
.pay-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pay-table th, .pay-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.pay-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
select { width: 100%; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; background: #fff; }
.access-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 8px 0; }
.access-row label { margin: 0; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.access-row input[type=checkbox] { width: 18px; height: 18px; margin: 0; }
.access-row select { width: auto; min-width: 160px; margin: 0; }
ul { padding-left: 18px; }
li { margin: 6px 0; }
