.finance-period-panel{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px;background:linear-gradient(120deg,#ff762e0e,transparent 65%),var(--panel)}
.finance-period-panel .eyebrow{margin-bottom:8px}.finance-period-title{font-size:25px;text-transform:capitalize;margin-bottom:6px}.finance-period-panel p{margin:0;font-size:14px}
.finance-period-controls{display:grid;gap:12px;flex-shrink:0}.finance-month-picker{display:flex;align-items:center;gap:8px}.finance-month-picker input{min-width:160px;max-width:200px;min-height:44px}.finance-month-arrow{min-width:44px;min-height:44px;font-size:23px;line-height:1;padding:9px}.finance-all-months{display:flex;align-items:center;gap:8px;justify-content:center;font-size:13px}.finance-all-months input{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--orange)}
.finance-dashboard-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.finance-dashboard-totals .card{display:flex;flex-direction:column;gap:12px;padding:22px 18px;min-width:0;text-align:left;color:inherit}.finance-dashboard-totals span{font-size:13px;color:var(--muted)}.finance-dashboard-totals strong{font-size:clamp(22px,2.3vw,32px);line-height:1.2;letter-spacing:-1px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.finance-dashboard-totals small{font-size:12px;color:var(--muted)}.finance-dashboard-totals .finance-total-paid{border-color:#427154;background:linear-gradient(140deg,#65ad7012,transparent),var(--panel)}.finance-total-paid strong{color:#b5debd}.finance-late-value{color:#ffae9a}.finance-renewal-summary strong,.finance-renewal-summary small{color:var(--orange)}.finance-renewal-summary:hover{border-color:var(--orange)}.finance-renewal-summary:focus-visible{outline:2px solid var(--orange);outline-offset:3px}.finance-overview-note{margin:14px 0 28px;line-height:1.6}
.finance-students-panel,.finance-records-panel{margin-bottom:24px;scroll-margin-top:20px;min-width:0}.finance-students-panel:focus-visible{outline:2px solid var(--orange);outline-offset:3px}.finance-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.finance-section-heading .eyebrow{margin-bottom:8px}.finance-section-heading h2{margin-bottom:6px}.finance-section-heading p{margin:0}.finance-section-heading>button{flex-shrink:0;min-height:44px}.finance-roster-filters{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;margin-bottom:22px}.finance-roster-filters input,.finance-roster-filters select{font-size:16px}.finance-record-filter{max-width:260px;margin-bottom:20px}
.finance-table-wrap{width:100%;overflow-x:auto}.finance-sheet{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5}.finance-sheet th{font-size:12px;font-weight:600;letter-spacing:.25px;color:var(--muted);text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.finance-sheet td{padding:18px 10px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}.finance-sheet th:first-child,.finance-sheet td:first-child{padding-left:0}.finance-sheet th:last-child,.finance-sheet td:last-child{padding-right:0}.finance-sheet tr:last-child td{border-bottom:0}.finance-sheet small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:5px}.finance-student-name{min-width:140px}.finance-student-name>strong{font-size:15px;display:block}.finance-sheet .finance-amount{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.finance-sheet .finance-amount strong{font-size:16px}.finance-row-actions{text-align:right}.finance-row-actions button{min-height:44px;font-size:12px;padding:10px 12px;max-width:140px}.finance-renewal-row .finance-student-name{border-left:2px solid var(--orange);padding-left:10px!important}.finance-renewal-text,.finance-sheet .finance-request{color:var(--orange)}.finance-payment-state{display:inline-flex;align-items:center;gap:4px;max-width:100%;font-size:12px;font-weight:600;border:1px solid transparent;padding:5px 8px;border-radius:7px;line-height:1.5}.finance-payment-state.is-paid{color:#b5debd;background:#65ad7012;border-color:#427154}.finance-payment-state.is-pending{color:#ffbd90;background:#ff762e0d}.finance-payment-state.is-late{color:#ffae9a;background:#ff866d0d}.finance-payment-state.is-unknown{color:var(--muted);background:#ffffff06}.finance-payment-cell{min-width:105px}.finance-sheet-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-top:20px;margin-top:5px;border-top:1px solid var(--line);font-size:13px}.finance-sheet-footer>div{display:flex;justify-content:flex-end;gap:22px;flex-wrap:wrap}.finance-sheet-footer>div>span{color:var(--muted);display:grid;gap:3px}.finance-sheet-footer strong{color:#f5f5f5;font-size:15px;font-variant-numeric:tabular-nums}.finance-sheet-note{margin:16px 0 0;font-size:12px;line-height:1.6}
.finance-settings{padding:0}.finance-settings>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;padding:22px 27px;list-style:none;font-weight:650}.finance-settings>summary::-webkit-details-marker{display:none}.finance-settings>summary small{color:var(--orange);font-size:12px;font-weight:500}.finance-settings>summary:focus-visible{outline:2px solid var(--orange);outline-offset:-5px;border-radius:14px}.finance-settings-content{display:grid;gap:18px;padding:0 22px 22px;border-top:1px solid var(--line)}.finance-settings-content>.card{margin:0}.finance-settings-content>.card:first-child{margin-top:20px}.finance-settings-content .bank-setup{border-color:var(--line)}.finance-settings-content .bank-setup summary{cursor:pointer;font-size:14px;color:var(--muted)}.finance-settings-content .bank-setup h2{margin-top:18px}.finance-settings-content .bank-setup p{margin-bottom:0}
@media(max-width:1150px){.finance-dashboard-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-period-panel{align-items:flex-start}.finance-student-name{min-width:110px}}
@media(max-width:920px){.finance-table-wrap{overflow:visible}.finance-sheet,.finance-sheet tbody,.finance-sheet tr,.finance-sheet td{display:block;min-width:0;width:100%}.finance-sheet thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.finance-sheet tr{border:1px solid var(--line);border-radius:12px;padding:18px;margin-bottom:14px;background:#ffffff02}.finance-sheet td{padding:9px 0!important;border:0!important;white-space:normal!important}.finance-sheet td[data-label]{display:grid;grid-template-columns:minmax(85px,.8fr) minmax(0,1.5fr);align-items:start;gap:12px;text-align:left}.finance-sheet td[data-label]:before{content:attr(data-label);font-size:12px;color:var(--muted);font-weight:500}.finance-sheet td.finance-student-name{padding-bottom:14px!important;margin-bottom:6px;border-bottom:1px solid var(--line)!important}.finance-student-name>strong{font-size:17px}.finance-sheet .finance-row-actions{padding-top:12px!important;text-align:left}.finance-row-actions button{max-width:none;min-height:44px;padding:10px 14px}.finance-renewal-row{border-left:2px solid var(--orange)!important}.finance-payment-cell{min-width:0}.finance-sheet-footer{margin-top:0}.finance-sheet tr:last-child{margin-bottom:0}}
@media(max-width:640px){.finance-period-panel{flex-direction:column;gap:18px;padding:22px}.finance-period-controls{width:100%}.finance-month-picker{justify-content:space-between}.finance-month-picker label{flex:1}.finance-month-picker input{max-width:none;min-width:0;width:100%;font-size:16px}.finance-all-months{justify-content:flex-start}.finance-dashboard-totals{gap:10px}.finance-dashboard-totals .card{padding:18px 14px;gap:9px}.finance-dashboard-totals strong{font-size:24px;letter-spacing:-.7px}.finance-roster-filters{grid-template-columns:1fr;gap:14px}.finance-section-heading{flex-wrap:wrap;gap:14px}.finance-section-heading>button{font-size:12px;padding:10px 14px}.finance-sheet-footer{align-items:flex-start;flex-direction:column;gap:14px}.finance-sheet-footer>div{justify-content:flex-start;gap:18px}.finance-sheet-footer strong{font-size:14px}.finance-settings>summary{padding:22px;align-items:flex-start;flex-direction:column;gap:4px}.finance-settings-content{padding:0 14px 14px}.finance-overview-note{font-size:13px}}
