/* Cash Flow: scoped, compact, no financial calculations in CSS or the shared shell. */
.feeAdminUi #feeMain .feeTopActions{gap:3px}
.feeAdminUi #feeMain .feeTopActions>button{height:40px;min-height:40px;flex:1 1 0;border-radius:9px;font-size:16px;padding:2px 0}
.feeAdminUi #feeMain .feeTopActions>button .feeIconGlyph{width:16px;height:16px}
.feeAdminUi #feeMain .feeTopActions #feeToolsBtn{flex:0 0 22px;max-width:22px;padding:0;border-color:transparent;background:transparent!important;color:#195f74!important;font-size:19px}
.feeAdminUi #feeMain .feeTopActions #feeExpenseBtn{background:#195f74;color:#fff}
.feeAdminUi #feeMain .feeTopActions #feeExpenseBtn::before{content:'';display:block;background:center/contain no-repeat url('/assets/cash-flow/expense.svg');filter:brightness(0) invert(1);width:18px;height:18px}
.feeAdminUi #feeMain .feeTopActions #feeSlotManagerBtn{font-size:0}
.feeAdminUi #feeMain .feeTopActions #feeSlotManagerBtn::before{content:'';width:18px;height:18px;background:center/contain no-repeat url('/assets/cash-flow/compass.svg')}
.feeAdminUi #feeMain .feeTopActions #feeNewAdmissionBtn .feeToolLabel{font-size:13px}
.cashFlowOverlay[hidden],.cashFlowOverlay [hidden]{display:none!important}
.cashFlowOverlay{position:fixed;inset:0;z-index:85;background:#10203d66;display:flex;align-items:center;justify-content:center;padding:12px;overscroll-behavior:contain;color:#10203d;font-family:Arial,sans-serif;font-size:12px}
.cashFlowSheet{width:100%;max-width:760px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;display:flex;flex-direction:column;background:#fff;border:1px solid #cfdaea;border-radius:16px;box-sizing:border-box}
.cashFlowSheet>header{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 8px;gap:8px}
.cashFlowSheet h2{font-size:19px;line-height:1.2;margin:0;font-weight:750}
.cashFlowSheet h3{font-size:13px;margin:16px 0 10px}
.cashFlowSheet>header>div{display:flex;gap:4px}
.cashFlowSheet button{cursor:pointer;font:inherit;box-shadow:none;border:1px solid #d3deea;background:#f8fafc;color:#10203d;border-radius:8px;min-height:32px;padding:6px 10px}
.cashFlowSheet>header button{width:30px;min-height:32px;padding:6px}
.cashFlowSheet button img{width:15px;height:15px;display:block}
.cashFlowTabs{display:flex;padding:2px 14px 12px;gap:0}
.cashFlowTabs button{flex:1;border-radius:0;background:#eef3fa;min-height:34px;font-size:13px}
.cashFlowTabs button:first-child{border-radius:8px 0 0 8px}.cashFlowTabs button:last-child{border-radius:0 8px 8px 0}
.cashFlowTabs button[aria-selected=true]{color:#fff;background:#176c7b;border-color:#176c7b}
.cashFlowBody{padding:2px 14px 16px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
.cashFlowFormHost{padding:10px 0 12px;border-bottom:1px solid #e3e9f1}
.cashFlowSheet .pnlInlineForm{display:grid;gap:10px;padding:0;background:transparent;border:0;border-radius:0}
.cashFlowSheet .pnlInlineFormRow,.cashFlowRuleRow{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cashFlowSheet .fieldLabel,.cashFlowSheet label{font-size:11px;font-weight:500;color:#334155;margin:0 0 4px}
.cashFlowSheet input,.cashFlowSheet select{width:100%;box-sizing:border-box;min-width:0;min-height:35px;font:inherit;font-size:13px;color:#10203d;background:#fff;border:1px solid #bfcee1;border-radius:7px;padding:7px 9px;outline-offset:2px}
.cashFlowSheet input[type=date]{appearance:none;max-width:100%}.cashFlowSheet input:focus,.cashFlowSheet select:focus{outline:2px solid #67b4c7}
.cashFlowSheet #expenseSaveWrap{justify-items:start;gap:4px}.cashFlowSheet #saveExpenseBtn,.cashFlowSheet [data-cf-rule] button{width:auto;min-height:32px;background:#176c7b;color:#fff;border-color:#176c7b;font-size:12px;padding:6px 12px}
.cashFlowSheet .saveMsg{font-size:11px;min-height:0}.cashFlowSheet .saveMsg:empty{display:none}
.cashFlowSheet details{margin:0 0 7px;border:1px solid #ccdaeb;border-radius:8px;overflow:hidden}
.cashFlowSheet summary{display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:pointer;list-style:none;min-height:34px;padding:5px 10px;box-sizing:border-box;background:#f0f5fc;font-size:12px;touch-action:manipulation}
.cashFlowSheet summary::-webkit-details-marker{display:none}.cashFlowSheet summary::after{content:'';background:center/12px no-repeat url('/assets/cash-flow/chevron-right.svg');width:12px;height:12px;flex:0 0 12px}
.cashFlowSheet details[open]>summary::after{transform:rotate(90deg)}
.cashFlowSheet summary>span:first-child{font-weight:650;margin-right:auto}.cashFlowSheet summary>span:last-of-type{font-variant-numeric:tabular-nums;white-space:nowrap;color:#475569}
.cashFlowTable{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;margin:0;line-height:1.35}
.cashFlowTable th,.cashFlowTable td{padding:7px 6px;border-bottom:1px solid #e1e8f1;text-align:left;font-weight:400;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cashFlowTable th{font-size:10px;background:#f5f8fc;color:#526078;font-weight:600}.cashFlowTable tr:last-child td{border-bottom:0}.cashFlowTable td:last-child,.cashFlowTable th:last-child{text-align:right;width:28%;white-space:nowrap}.cashFlowTable td:first-child,.cashFlowTable th:first-child{width:26%;white-space:nowrap}
.cashFlowPayments td:nth-child(2),.cashFlowPayments th:nth-child(2){width:15%}.cashFlowPayments td:first-child,.cashFlowPayments th:first-child{width:23%}.cashFlowPayments td:last-child,.cashFlowPayments th:last-child{width:24%}
.cashFlowFilters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:3px 0 14px}.cashFlowFilters label{display:grid;gap:4px}.cashFlowFilters select{min-height:34px}
.cashFlowTotals{display:grid;grid-template-columns:1fr 1fr 1fr;padding:10px 4px}.cashFlowTotals>span{padding:0 6px;font-size:10px;color:#475569;border-right:1px solid #dce4ef}.cashFlowTotals>span:last-child{border:0}.cashFlowTotals strong{display:block;font-size:13px;color:#10203d;margin-top:4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cashFlowTeacherHead,.cashFlowSheet .cashFlowTeacher>summary{display:grid;grid-template-columns:.65fr 1.15fr 1.1fr 1.1fr;gap:4px;font-size:11px;padding:8px 6px;position:relative}
.cashFlowTeacherHead{font-size:10px;background:#edf3fa;color:#475569}.cashFlowTeacherHead span:not(:first-child),.cashFlowSheet .cashFlowTeacher>summary>span:not(:first-child){text-align:right;white-space:nowrap;margin:0}
.cashFlowSheet .cashFlowTeacher>summary{padding-right:18px}.cashFlowSheet .cashFlowTeacher>summary::after{position:absolute;right:3px;width:9px;background-size:9px}
.cashFlowSheet .cashFlowTeacher{border:0;border-bottom:1px solid #dce5f0;border-radius:0;margin:0}.cashFlowSheet .cashFlowTeacher>summary{background:#fff}.cashFlowSheet .cashFlowTeacher[open]>summary{background:#eaf6f5}.cashFlowTeacher>[data-cf-detail]{padding:8px 5px}
.cashFlowSheet .profit{color:#167344!important}.cashFlowSheet .loss{color:#b91c1c!important}.cashFlowEmpty,.cashFlowHint{font-size:11px;color:#64748b;margin:9px 0}
.cashFlowSheet [data-cf-message]{font-size:11px;margin:3px 0 9px}.cashFlowSheet [data-cf-message].error{color:#b91c1c;cursor:pointer}
.cashFlowSheet [data-cf-rule]{display:grid;gap:9px;margin-top:12px}.cashFlowSheet [data-cf-rule]>label{display:grid;gap:4px}.cashFlowRecurringRow,.cashFlowConnection{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #e1e8f1;font-size:11px}.cashFlowConnection>span{color:#64748b}
.cashFlowSheet button:focus-visible,.cashFlowSheet summary:focus-visible{outline:2px solid #67b4c7;outline-offset:-2px}
@media(max-width:480px){.cashFlowOverlay{padding:8px}.cashFlowSheet{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}.cashFlowBody{padding-left:11px;padding-right:11px}.cashFlowSheet>header{padding-left:11px;padding-right:11px}.cashFlowTabs{padding-left:11px;padding-right:11px}}
@media(prefers-reduced-motion:reduce){.cashFlowOverlay *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.cashFlowTeacherRow{display:grid;grid-template-columns:.65fr 1.15fr 1.1fr 1.1fr;gap:4px;align-items:center;padding:3px 6px;border-bottom:1px solid #e1e8f1;font-size:11px;font-variant-numeric:tabular-nums}
.cashFlowSheet .cashFlowTeacherRow button{border:0;border-radius:4px;background:transparent;color:#176c7b;text-align:right;padding:7px 0;min-height:32px;font-size:11px;white-space:nowrap;text-decoration:underline;text-decoration-color:#bbd6dc;text-underline-offset:3px}
.cashFlowTeacherRow>span{text-align:right;white-space:nowrap}
.cashFlowDrill{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#10203d55;padding:16px;z-index:2;overscroll-behavior:contain}
.cashFlowDetailSheet{width:100%;max-width:650px;max-height:calc(100vh - 56px);max-height:calc(100dvh - 56px);background:white;border:1px solid #cfdaea;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;font-size:12px}
.cashFlowDetailSheet>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-bottom:1px solid #e1e8f1}
.cashFlowDetailSheet h3{font-size:12px;margin:0}.cashFlowDetailBody{overflow:auto;overscroll-behavior:contain;min-height:0;-webkit-overflow-scrolling:touch}
.cashFlowDetailSheet button{border:1px solid #d3deea;border-radius:6px;padding:6px;background:#f8fafc;cursor:pointer}.cashFlowDetailSheet button img{display:block;width:13px;height:13px}

.cashFlowSheet [data-cf-review-notice] button{font-size:11px;min-height:28px;color:#a52b27;background:#fff5f4;border-color:#f2d6d4;padding:4px 7px;margin:4px 0}
.cashFlowReview>[data-cf-detail],.cashFlowReview>div{padding:8px}.cashFlowReview form{display:grid;gap:8px}.cashFlowReview label{display:grid;gap:4px}.cashFlowReview .cashFlowConfirm{display:flex;align-items:center;gap:6px}.cashFlowConfirm input{width:16px;min-height:16px}.cashFlowReviewActions{display:flex;gap:6px}.cashFlowReview [data-cf-review-msg]{color:#b91c1c;font-size:11px;margin:0}

@supports (-webkit-touch-callout:none){@media(max-width:480px){.cashFlowSheet input,.cashFlowSheet select{font-size:16px}}}

.feeAdminUi #feeMain .feeTopActions #feeNewAdmissionBtn{position:relative}
.feeAdminUi #feeMain .feeTopActions #feeNewAdmissionCount{position:absolute;top:1px;right:1px;min-width:13px;height:13px;font-size:8px;padding:0 2px;line-height:13px}
.feeAdminUi #feeMain .feeTopActions #feeFeedbackBtn{font-size:10px!important;white-space:nowrap}
@media(max-width:380px){.feeAdminUi #feeMain .feeTopActions #feeFeedbackBtn{font-size:9px!important}}

.cashFlowSheet [data-cf-recurring-toggle]{min-height:24px;padding:2px 6px;font-size:10px}.cashFlowRecurringRow{align-items:center}

.cashFlowDrill{box-sizing:border-box}.cashFlowDetailSheet{max-height:100%;max-height:min(100%,calc(100dvh - 56px))}.cashFlowDetailBody thead th{position:sticky;top:0;z-index:1}

.cashFlowExpenseWithStatus{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.cashFlowExpenseWithStatus>span:first-child{min-width:0;overflow-wrap:anywhere}.cashFlowSalaryStatus{flex:none;font-size:10px;font-weight:400;color:#64748b;white-space:nowrap}
