.rate-page, .cash-page { display:grid; gap:1.25rem; min-width:0 }
.rate-page .pagehead, .cash-page .pagehead { margin-bottom:0 }
.rate-sheet { min-width:0; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden }
.sheet-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:.45rem 1rem; padding:1.1rem 1.25rem; border-bottom:1px solid var(--line) }
.sheet-head h2 { margin:0; font-size:1.08rem; letter-spacing:-.02em }
.sheet-head span,.cash-variance { font-size:.84rem; color:#52605e; font-variant-numeric:tabular-nums }
.rate-sheet .tablewrap { border:0; border-radius:0; margin:0; overflow-x:auto }
.rate-sheet .empty { border:0; border-radius:0; margin:0 }
.rate-sheet .data-table th { white-space:nowrap }
.rate-sheet .ledger-money { text-align:right; font-weight:650; font-variant-numeric:tabular-nums }
.ledger-plate { letter-spacing:.06em; white-space:nowrap }
.sheet-editor summary { padding:1.05rem 1.25rem; font-weight:650; cursor:pointer }
.rate-sheet > .sheet-editor { border-top:1px solid var(--line) }
.sheet-editor summary::marker { color:#836118 }
.sheet-editor form,.cash-action form { padding:0 1.25rem 1.25rem; display:grid; gap:1rem; align-items:end }
.rate-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr)); gap:1rem }
.rate-fields [hidden] { display:none }
.sheet-editor .btn,.cash-action .btn { justify-self:start }
.rate-fields label,.cash-action label { margin:0; min-width:0 }
.sheet-editor .hint { margin:0 }
.cash-action form { padding-top:1.25rem; max-width:39rem }
.cash-summary { border-radius:8px; padding:clamp(1.15rem,3vw,2rem); color:#fff; background:var(--ink); display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:1.5rem; font-variant-numeric:tabular-nums }
.cash-summary strong { display:block; font-size:clamp(2rem,4vw,3.6rem); letter-spacing:-.05em; margin-top:.3rem }
.cash-summary dl { margin:0; display:flex; gap:1.7rem; flex-wrap:wrap }
.cash-summary span,.cash-summary dt { color:#d5dad5; font-size:.84rem }
.cash-summary dd { margin:.3rem 0 0; font-weight:650 }
.cash-variance { padding:.7rem .85rem; background:#f4f3ee; border-left:3px solid var(--gold) }
@media (max-width:600px) { .sheet-head,.sheet-editor summary { padding:1rem } .sheet-editor form,.cash-action form { padding-inline:1rem } .sheet-editor .btn,.cash-action .btn { width:100% } }
.ep-shell .data-table th { text-transform:none; letter-spacing:normal }
.ep-shell .data-table th,.ep-shell .data-table td { font-variant-numeric:tabular-nums }
.cash-journal .sheet-head { align-items:center }
.cash-journal .sheet-head small,.cash-journal td small,.journal-stats small { display:block; margin-top:.25rem; color:var(--muted); font-size:.78rem }
.cash-journal .sheet-head form,.journal-pages { display:flex; flex-wrap:wrap; align-items:end; gap:.65rem }
.cash-journal .sheet-head label { margin:0 }
.journal-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin:0; padding:1.15rem 1.25rem; font-variant-numeric:tabular-nums }
.journal-stats dt { font-size:.84rem; color:var(--muted) }
.journal-stats dd { margin:.35rem 0 0; font-size:clamp(1rem,1.7vw,1.6rem); font-weight:650; overflow-wrap:anywhere }
.journal-movements { border-block:1px solid var(--line); background:#f6f6f2 }
.journal-movements dd { font-size:1rem }
.journal-hint { padding:.8rem 1.25rem; margin:0; font-size:.85rem }
.journal-actions { min-width:6rem }
.journal-actions button.link { min-height:36px }
.journal-check summary { cursor:pointer; color:#225d4f; font-weight:600 }
.journal-check form { display:grid; gap:.5rem; margin-top:.6rem; min-width:13rem }
.journal-pages { align-items:center; justify-content:flex-end; padding:1rem; border-top:1px solid var(--line); font-size:.85rem }
.cash-change-due { font-size:.9rem; font-weight:650; color:#244e41; font-variant-numeric:tabular-nums }
@media(max-width:740px) { .journal-stats { grid-template-columns:repeat(2,minmax(0,1fr)) } }

.team-sites { display:flex; flex-wrap:wrap; gap:.65rem 1.15rem; border:1px solid var(--line); padding:.7rem .9rem; }
.team-sites[hidden] { display:none; }
.team-sites legend { padding:0 .3rem; }
.team-sites .team-site { display:flex; align-items:center; gap:.4rem; }
.team-site input { width:1rem; height:1rem; min-height:0; }
h2.team-heading { margin-top:1.5rem; }
