/* ═══════════════════════════════════════════════
   Green Avenue Society — mobile-first stylesheet
   (same look as the Ambaji Marble House app)
   ═══════════════════════════════════════════════ */
:root {
  --navy: #1a2340; --navy2: #243055; --ink: #1e293b; --ink2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line2: #f1f5f9; --bg: #f4f6fb; --blue: #2563eb;
  --green: #16a34a; --green-bg: #dcfce7; --red: #dc2626; --red-bg: #fee2e2;
  --amber: #b45309; --amber-bg: #fef3c7; --sky: #0369a1; --sky-bg: #e0f2fe;
  --nav-h: 64px; --top-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; }
a { color: var(--blue); }

/* ── Top bar ─────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: calc(var(--top-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 14px 0; display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%); box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1.1; }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: rgba(255,255,255,.6); }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; font-size: 1rem; }
.top-back { color: #fff; font-size: 1.35rem; text-decoration: none; padding: 4px 8px 4px 0; }
.top-title { color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip { background: rgba(255,255,255,.1); color: #e2e8f0; border: 0; border-radius: 20px; padding: 6px 12px; font-size: .82rem; display: flex; align-items: center; gap: 6px; }
.ro-tag { background: #f59e0b; color: #fff; font-size: .62rem; padding: 1px 6px; border-radius: 6px; font-weight: 700; }

/* ── Page ────────────────────────────────────── */
.page { max-width: 760px; margin: 0 auto; padding: calc(var(--top-h) + env(safe-area-inset-top) + 14px) 12px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 2px 0 14px; }
.page-title { font-size: 1.3rem; font-weight: 800; margin: 0; }
.page-sub { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.flash { margin-bottom: 12px; }
.section-label { font-size: .72rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; margin: 20px 2px 8px; display: flex; justify-content: space-between; align-items: center; }
.section-label a { text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; text-decoration: none; }

/* ── Cards ───────────────────────────────────── */
.card { border: none; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.07); background: #fff; }
.card-pad { padding: 16px; }
.hero { background: linear-gradient(135deg, var(--ink), #334155); color: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.hero .h-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; opacity: .65; font-weight: 600; }
.hero .h-value { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.hero .h-split { display: flex; gap: 18px; margin-top: 10px; font-size: .85rem; }
.hero .h-split span { opacity: .65; margin-right: 4px; }
.hero .green { color: #4ade80; } .hero .red { color: #f87171; }

.stat { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; color: inherit; display: block; }
.stat .s-label { font-size: .68rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.stat .s-value { font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.stat .s-sub { font-size: .74rem; color: var(--muted); }
.stat.green .s-value { color: var(--green); } .stat.red .s-value { color: var(--red); } .stat.blue .s-value { color: var(--blue); }
.progress-thin { height: 6px; border-radius: 6px; background: var(--line2); overflow: hidden; margin-top: 6px; }
.progress-thin > div { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); }

/* ── Quick actions ───────────────────────────── */

/* ── Lists ───────────────────────────────────── */
.list { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.07); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line2); text-decoration: none; color: inherit; }
.list-row:last-child { border-bottom: 0; }
.list-row:active { background: #f8fafc; }
.lr-main { flex: 1; min-width: 0; }
.lr-title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-sub { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-right { text-align: right; flex-shrink: 0; }
.lr-amt { font-weight: 800; font-size: .95rem; }
.lr-amt.in { color: var(--green); } .lr-amt.out { color: var(--red); }
.lr-note { font-size: .7rem; color: var(--faint); }

.day-head { font-size: .72rem; font-weight: 700; color: var(--faint); padding: 8px 14px 4px; background: #f8fafc; text-transform: uppercase; letter-spacing: .4px; display: flex; justify-content: space-between; }
.kind-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.k-maintenance { background: var(--green-bg); color: var(--green); }
.k-special { background: #ede9fe; color: #7c3aed; }
.k-income { background: var(--sky-bg); color: var(--sky); }
.k-expense { background: var(--red-bg); color: var(--red); }

/* ── Badges / status ─────────────────────────── */
.tag { display: inline-block; font-size: .66rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; vertical-align: middle; }
.tag-owner { background: #e0e7ff; color: #3730a3; }
.tag-tenant { background: #fef3c7; color: #92400e; }
.tag-left { background: #e2e8f0; color: #475569; }
.tag-cash { background: #dcfce7; color: #166534; }
.tag-upi { background: #e0f2fe; color: #075985; }
.tag-legacy, .tag-adjustment { background: #f1f5f9; color: #475569; }
.st { display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.st-paid, .st-clear { background: var(--green-bg); color: var(--green); }
.st-advance { background: var(--sky-bg); color: var(--sky); }
.st-partial { background: var(--amber-bg); color: var(--amber); }
.st-due { background: var(--red-bg); color: var(--red); }
.st-upcoming, .st-na { background: var(--line2); color: var(--muted); }

/* ── Month chips (statement + grid) ──────────── */
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mchip { border-radius: 10px; padding: 7px 4px; text-align: center; font-size: .72rem; font-weight: 700; line-height: 1.2; }
.mchip small { display: block; font-weight: 600; font-size: .66rem; opacity: .85; }
.mchip.paid { background: var(--green-bg); color: #166534; }
.mchip.advance { background: var(--sky-bg); color: #075985; }
.mchip.partial { background: var(--amber-bg); color: #92400e; }
.mchip.due { background: var(--red-bg); color: #991b1b; }
.mchip.upcoming, .mchip.na { background: var(--line2); color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .72rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* ── Filters ─────────────────────────────────── */
.filters { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 12px; }
.filters .row { --bs-gutter-x: 8px; --bs-gutter-y: 8px; }
.pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { padding: 6px 13px; border-radius: 20px; font-size: .78rem; font-weight: 600; border: 1.5px solid #cbd5e1; color: #475569; background: #fff; text-decoration: none; white-space: nowrap; }
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.summary-bar { background: linear-gradient(135deg, var(--ink), #334155); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.summary-bar .s-label { display: block; font-size: .68rem; opacity: .65; text-transform: uppercase; letter-spacing: .5px; }
.summary-bar .s-value { font-weight: 800; font-size: 1.02rem; }
.summary-bar .red { color: #f87171; } .summary-bar .green { color: #4ade80; }

/* ── Forms ───────────────────────────────────── */
.form-control, .form-select { font-size: 1rem; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink2); }
.form-control:focus, .form-select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.form-label { font-size: .8rem; font-weight: 700; color: #475569; margin-bottom: 5px; }
.req::after { content: " *"; color: var(--red); }
.amount-input { font-size: 1.8rem !important; font-weight: 800; text-align: center; padding: 10px !important; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { display: none; }
.seg label { border: 2px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; font-weight: 700; color: var(--muted); background: #fff; cursor: pointer; }
.seg label i { font-size: 1.2rem; display: block; }
.seg input:checked + label { border-color: var(--blue); background: #eff6ff; color: var(--blue); }
.seg.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.pick-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pick-months input { display: none; }
.pick-months label { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: .78rem; font-weight: 700; background: #fff; cursor: pointer; line-height: 1.2; }
.pick-months label small { display: block; font-weight: 600; color: var(--muted); font-size: .68rem; }
.pick-months label.due { border-color: #fca5a5; }
.pick-months input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick-months input:checked + label small { color: #cbd5e1; }
.preview { background: #f8fafc; border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: 12px; font-size: .85rem; }
.preview .pv-row { display: flex; justify-content: space-between; padding: 2px 0; }
.sticky-actions { position: sticky; bottom: calc(var(--nav-h) + 8px + env(safe-area-inset-bottom)); z-index: 5; padding-top: 8px; }

/* ── Buttons ─────────────────────────────────── */
.btn { font-weight: 600; border-radius: 10px; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-lg { padding: 13px 18px; font-size: 1rem; border-radius: 12px; }

.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff !important; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff !important; }
.btn-dark { background: linear-gradient(135deg, var(--ink), #334155); color: #fff !important; }
.btn-light { background: #fff; color: var(--ink2) !important; border: 1.5px solid var(--line); }
.btn-wa { background: #25d366; color: #fff !important; }
.btn-soft { background: #eef2ff; color: #3730a3 !important; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

/* ── Tables (reports) ────────────────────────── */

.table { margin: 0; font-size: .82rem; }

/* ── Misc ────────────────────────────────────── */
.empty { text-align: center; padding: 40px 16px; color: var(--faint); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: .88rem; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv b { text-align: right; }
.text-red { color: var(--red) !important; } .text-green { color: var(--green) !important; }
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.alert { border: 0; border-radius: 10px; font-size: .87rem; font-weight: 500; }
.alert-success { background: var(--green-bg); color: #15803d; } .alert-danger { background: var(--red-bg); color: #b91c1c; }
.alert-warning { background: #fef9c3; color: #92400e; }

@media (min-width: 768px) {
  .page { padding-left: 20px; padding-right: 20px; }
  .months { grid-template-columns: repeat(6, 1fr); }
  .pick-months { grid-template-columns: repeat(4, 1fr); }
}

/* ── Home: hero chips, big actions, dues card ── */

.h-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.h-chips div { background: rgba(255,255,255,.08); border-radius: 10px; padding: 7px 10px; font-size: .8rem; display: flex; justify-content: space-between; gap: 6px; }
.h-chips span { opacity: .65; }
.h-chips .green { color: #4ade80; } .h-chips .red { color: #f87171; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big-act { display: flex; align-items: center; gap: 10px; padding: 16px 14px; border-radius: 16px; color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.12); min-height: 84px; }
.big-act:active { transform: scale(.98); }
.big-act i { font-size: 1.9rem; line-height: 1; }
.big-act b { display: block; font-size: 1.12rem; }
.big-act small { display: block; font-size: .72rem; opacity: .85; line-height: 1.2; }
.big-act.in { background: linear-gradient(135deg, #22c55e, #15803d); }
.big-act.out { background: linear-gradient(135deg, #f87171, #dc2626); }

.s-label-sm { font-size: .7rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.dues-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); text-decoration: none; color: inherit; }
.dues-row > span:first-child { flex: 1; }
.dues-row b { display: block; font-size: .92rem; }
.dues-row small { display: block; font-size: .74rem; color: var(--muted); }
.dues-row .amt { font-weight: 800; color: var(--red); font-size: 1.05rem; }
.dues-row i { color: var(--faint); }
.dues-total { display: flex; justify-content: space-between; padding-top: 10px; font-size: .9rem; }
.dues-total b { font-size: 1.15rem; color: var(--red); }

/* ═══ Tables: clean, bordered, readable ═══════════════════════════ */
.tbl-wrap { background: #fff; border: 1px solid #dfe5ee; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.tbl-wrap.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .84rem; }
.tbl thead th { background: #f1f5f9; color: #475569; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 10px; border-bottom: 1.5px solid #cbd5e1; white-space: nowrap; text-align: left; }
.tbl tbody td { padding: 10px; border-bottom: 1px solid #e8edf3; vertical-align: middle; color: var(--ink); }
.tbl tbody tr:nth-child(even) td { background: #fafbfd; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr[onclick] { cursor: pointer; }
.tbl tbody tr[onclick]:active td { background: #eef4ff; }
.tbl td + td, .tbl th + th { border-left: 1px solid #eef2f7; }
.tbl tfoot td { background: #f1f5f9; border-top: 1.5px solid #cbd5e1; font-weight: 800; padding: 10px; font-size: .82rem; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl .c { text-align: center; white-space: nowrap; }
.tbl .nm { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.tbl .sub { font-size: .72rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.tbl .sub .tag { font-size: .6rem; padding: 1px 5px; }

/* house number: big and clear */
.hno { display: block; font-weight: 800; font-size: 1.05rem; color: var(--navy); letter-spacing: .2px; line-height: 1.1; }
.hfl { display: inline-block; margin-top: 3px; font-size: .62rem; font-weight: 700; color: #1d4ed8; background: #e0e9ff;
  border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.house-td { width: 72px; background: #f8fafc !important; border-right: 1.5px solid #dfe5ee; }
.same-house .house-td { border-top: 0; }
.ditto { color: #94a3b8; font-size: 1.2rem; display: block; text-align: center; }

.amt-due { color: var(--red); font-weight: 800; }
.amt-adv { color: #0369a1; font-weight: 800; }
.amt-ok { color: var(--green); font-size: 1.05rem; }

/* owners / tenants switch */
.type-switch { display: grid; grid-template-columns: repeat(3, 1fr); background: #eef2f7; border-radius: 12px; padding: 4px; gap: 4px; }
.type-switch a { text-align: center; padding: 8px 4px; border-radius: 9px; font-size: .82rem; font-weight: 600; color: #475569; text-decoration: none; }
.type-switch a b { display: inline-block; margin-left: 4px; background: #fff; color: var(--navy); border-radius: 10px; padding: 0 7px; font-size: .74rem; }
.type-switch a.active { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.25); }
.type-switch a.active b { background: rgba(255,255,255,.2); color: #fff; }

.top-back { margin-right: 2px; }

/* ── House number badge (person page, lists) ── */
.unit-badge { min-width: 60px; height: 48px; border-radius: 10px; background: var(--ink); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-weight: 800; line-height: 1.05; padding: 0 6px; flex-shrink: 0; }
.unit-badge .hno { color: #fff; font-size: 1rem; }
.unit-badge small { font-size: .58rem; font-weight: 600; opacity: .85; white-space: nowrap; }
.hno.long { font-size: .82rem; overflow-wrap: anywhere; }

/* ── Houses table (fits a phone) ── */
.houses-tbl { table-layout: fixed; }
.houses-tbl col.c-house { width: 64px; } .houses-tbl col.c-mon { width: 74px; } .houses-tbl col.c-due { width: 78px; }
.houses-tbl td, .houses-tbl th { padding: 9px 7px; }
.houses-tbl thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; letter-spacing: 0; font-size: .62rem; padding: 8px 6px; }
.houses-tbl .nm { overflow-wrap: anywhere; }
.houses-tbl .st { padding: 3px 6px; font-size: .68rem; white-space: nowrap; }
.houses-tbl td.house-td { width: auto; }
.house-td .hno { overflow-wrap: anywhere; }

/* ── Month grid ── */
table.mgrid { width: auto; min-width: 100%; font-size: .74rem; }
.mgrid thead th { position: sticky; top: 0; z-index: 2; }
.mgrid thead th.cur { background: #1e293b; color: #fff; }
.mgrid thead th small { font-weight: 600; opacity: .7; }
.mgrid .sticky-col { position: sticky; left: 0; z-index: 3; background: #fff; min-width: 112px; max-width: 128px; border-right: 1.5px solid #cbd5e1; }
.mgrid thead .sticky-col { background: #f1f5f9; z-index: 4; }
.mgrid tbody tr:nth-child(even) .sticky-col { background: #fafbfd; }
.mgrid .house-line .hno { display: inline; font-size: .92rem; }
.mgrid .house-line .hfl { margin-left: 4px; }
.mgrid .nm { font-weight: 500; font-size: .72rem; color: var(--muted); }
.mgrid td.cell { min-width: 44px; padding: 8px 4px; font-weight: 700; border-bottom-color: #fff; }
.mgrid td.cell + td.cell { border-left-color: #fff; }
.mgrid td.cell.paid { background: var(--green-bg) !important; color: #166534; }
.mgrid td.cell.advance { background: var(--sky-bg) !important; color: #075985; }
.mgrid td.cell.partial { background: var(--amber-bg) !important; color: #92400e; }
.mgrid td.cell.due { background: var(--red-bg) !important; color: #991b1b; }
.mgrid td.cell.upcoming, .mgrid td.cell.na { color: #cbd5e1; }

/* ── Report tables (balance sheet) ── */
.table-wrap { overflow-x: auto; border-radius: 12px; background: #fff; border: 1px solid #dfe5ee; box-shadow: 0 2px 10px rgba(15,23,42,.05); }
.table { margin: 0; font-size: .82rem; }
.table thead th { background: #f1f5f9; color: #475569; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px;
  padding: 10px; border: 0; border-bottom: 1.5px solid #cbd5e1; white-space: nowrap; }
.table td { padding: 9px 10px; vertical-align: middle; border-color: #e8edf3; }
.table td + td, .table th + th { border-left: 1px solid #eef2f7; }
.table tbody tr:nth-child(even) td { background: #fafbfd; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.cat td { background: #e8eef7 !important; color: #334155; font-weight: 700; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .4px; border-top: 1.5px solid #cbd5e1; }
.table tr.total td { background: #f1f5f9 !important; font-weight: 800; border-top: 1.5px solid #cbd5e1; }

/* ── Bottom navigation ── */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #cbd5e1; display: flex; align-items: center;
  box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 0; margin: 6px 3px;
  border-radius: 12px; font-size: .68rem; font-weight: 700; color: #334155; text-decoration: none; }
.bottom-nav a i { font-size: 1.3rem; color: #1e293b; }
.bottom-nav a.active, .bottom-nav a.active i { background: var(--navy); color: #fff; }

/* ── Staff attendance ── */
.day-nav { display: flex; flex-direction: row; align-items: center; padding: 6px; }
.dn-arrow { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  color: var(--navy); font-size: 1.2rem; text-decoration: none; }
.dn-arrow.disabled { color: #cbd5e1; }
.dn-date { flex: 1; text-align: center; position: relative; cursor: pointer; line-height: 1.2; }
.dn-date b { display: block; font-size: 1.05rem; }
.dn-date span { font-size: .8rem; color: var(--muted); }
.dn-date input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.att-row { flex-wrap: wrap; }
.att-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #eef2f7; border-radius: 10px; padding: 3px; }
.att-seg button { border: 0; background: transparent; border-radius: 8px; padding: 7px 8px; font-size: .74rem; font-weight: 700; color: #475569; white-space: nowrap; }
.att-seg button[data-kind=present].on { background: var(--green); color: #fff; }
.att-seg button[data-kind=half].on { background: #f59e0b; color: #fff; }
.att-seg button[data-kind=absent].on { background: var(--red); color: #fff; }

/* ── Install banner ── */
.install-banner { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.install-banner.d-none { display: none !important; }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; }
.install-banner b { display: block; font-size: .9rem; }
.install-banner small { display: block; font-size: .74rem; color: var(--muted); }
.k-settings { background: #f1f5f9; color: #475569; }

/* phones: 16px inputs stop iPhone zooming in when typing */
@media (max-width: 767px) {
  .form-control, .form-select, .form-control-sm, .form-select-sm { font-size: 16px !important; }
}

/* ── Staff month calendar ── */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { text-align: center; font-size: .72rem; font-weight: 600; color: #94a3b8; }
.cal-d { aspect-ratio: 1; border: 0; border-radius: 10px; font-weight: 600; font-size: .9rem; color: #0f172a; }
.cal-d.k-present { background: #dcfce7; color: #166534; }
.cal-d.k-half { background: #fef3c7; color: #92400e; }
.cal-d.k-absent { background: #fee2e2; color: #b91c1c; }
.cal-d.k-future { background: #f1f5f9; color: #cbd5e1; }
.cal-d:disabled { opacity: 1; }
.cal-d.sel { outline: 2px solid #1a2340; outline-offset: 1px; }
.cal-key { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: .75rem; color: #64748b; }
.cal-key span { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: -8px; }
.cal-key .k-present { background: #dcfce7; } .cal-key .k-half { background: #fef3c7; } .cal-key .k-absent { background: #fee2e2; }
.lr-title a { color: inherit; text-decoration: none; }
