/* AR DEBANG Cash Flow — follows manager dashboard spacing and mobile-first sizing */
#cashFlowScreen .cf-page{max-width:1180px;margin:0 auto;padding:12px 14px 28px;color:var(--text-primary,#172033)}
#cashFlowScreen .cf-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 16px}#cashFlowScreen .cf-eyebrow{font-size:10px;letter-spacing:1.15px;font-weight:800;color:#e47732}#cashFlowScreen .cf-heading h2{font-size:23px;line-height:1.2;margin:4px 0;font-weight:800}#cashFlowScreen .cf-heading p{font-size:12px;color:#7b8494;margin:0}#cashFlowScreen .cf-refresh{width:38px;height:38px;border:1px solid #e6eaf0;background:#fff;color:#526071;border-radius:12px;display:grid;place-items:center}
#cashFlowScreen .cf-filter,#cashFlowScreen .cf-panel{background:var(--card-bg,#fff);border:1px solid var(--border-color,#e9edf2);border-radius:15px;box-shadow:0 3px 14px rgba(20,34,55,.035)}#cashFlowScreen .cf-filter{padding:11px;margin-bottom:13px}#cashFlowScreen .cf-presets{display:flex;gap:6px;overflow-x:auto;padding-bottom:9px}#cashFlowScreen .cf-presets button{white-space:nowrap;border:1px solid #e7eaf0;background:#f8fafc;color:#586477;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:700}#cashFlowScreen .cf-presets button.active{background:#fff1e8;border-color:#f2b48d;color:#b9551b}#cashFlowScreen .cf-dates{display:flex;align-items:end;gap:8px}#cashFlowScreen .cf-dates label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;font-size:10px;font-weight:700;color:#7b8494}#cashFlowScreen .cf-dates input{width:100%;min-width:0;height:35px;border:1px solid #e5e9ef;border-radius:8px;padding:0 6px;font-size:11px;color:#283548;background:#fff}#cashFlowScreen .cf-dates>button{height:35px;border:0;border-radius:8px;background:#e8752f;color:#fff;padding:0 13px;font-size:11px;font-weight:800}
#cashFlowScreen .cf-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px}#cashFlowScreen .cf-kpi{position:relative;overflow:hidden;min-width:0;padding:14px 13px;border-radius:14px;background:#fff;border:1px solid #e9edf2;box-shadow:0 3px 14px rgba(20,34,55,.035)}#cashFlowScreen .cf-kpi>span{display:block;color:#737f90;font-size:11px;font-weight:700}#cashFlowScreen .cf-kpi strong{display:block;font-size:clamp(16px,2vw,23px);line-height:1.3;margin:8px 0 4px;letter-spacing:-.5px;overflow-wrap:anywhere}#cashFlowScreen .cf-kpi small{display:block;color:#929baa;font-size:10px}#cashFlowScreen .cf-kpi i{position:absolute;right:11px;top:12px;font-size:18px;opacity:.22}#cashFlowScreen .cf-in strong{color:#16834a}#cashFlowScreen .cf-out strong{color:#d35c43}#cashFlowScreen .cf-net strong{color:#2474c7}#cashFlowScreen .cf-due strong{color:#bd7a24}
#cashFlowScreen .cf-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,1fr);gap:13px;margin-bottom:13px}#cashFlowScreen .cf-panel{padding:15px;min-width:0}#cashFlowScreen .cf-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}#cashFlowScreen .cf-panel-head h3{font-size:14px;font-weight:800;margin:0 0 4px}#cashFlowScreen .cf-panel-head p{font-size:10px;color:#8a94a3;margin:0}.cf-live{font-size:9px;font-weight:800;letter-spacing:.5px;color:#16834a;background:#eaf8f0;padding:5px 7px;border-radius:20px}.cf-chart-wrap{height:225px;position:relative}.cf-flow-row{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid #f0f2f5;font-size:11px;color:#697486}.cf-flow-row b{font-size:11px;color:#273448;white-space:nowrap}.cf-dot{width:8px;height:8px;border-radius:50%}.cf-dot.green{background:#169b62}.cf-dot.orange{background:#e17b39}.cf-dot.red{background:#d35c43}.cf-dot.blue{background:#478bd2}.cf-note{margin-top:12px;padding:10px;border-radius:9px;background:#f7f9fc;color:#778294;font-size:10px;line-height:1.55}.cf-position>div{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #f0f2f5;font-size:11px;color:#748093}.cf-position b{color:#273448;white-space:nowrap}.cf-explain .material-icons{color:#e47732}.cf-explain ul{margin:0;padding-left:17px;color:#697486;font-size:11px;line-height:1.7}.cf-explain li{margin:5px 0}.cf-footer{text-align:center;color:#929baa;font-size:10px;padding:4px 8px 12px}
@media(max-width:720px){#cashFlowScreen .cf-page{padding:9px 10px 24px}#cashFlowScreen .cf-heading h2{font-size:21px}#cashFlowScreen .cf-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#cashFlowScreen .cf-kpi{padding:12px 11px;min-height:92px}#cashFlowScreen .cf-kpi strong{font-size:18px;margin-top:9px}#cashFlowScreen .cf-grid{grid-template-columns:1fr;gap:10px}#cashFlowScreen .cf-panel{padding:13px;border-radius:13px}.cf-chart-wrap{height:205px}#cashFlowScreen .cf-filter{padding:9px}#cashFlowScreen .cf-dates input{font-size:10px}#cashFlowScreen .cf-dates>button{padding:0 11px}}
@media(max-width:360px){#cashFlowScreen .cf-page{padding-left:7px;padding-right:7px}#cashFlowScreen .cf-kpi strong{font-size:16px}#cashFlowScreen .cf-kpi>span{font-size:10px}#cashFlowScreen .cf-dates{gap:5px}#cashFlowScreen .cf-dates input{padding:0 3px}}
/* v42.147 — collection-first target protection and settings */
#cashFlowScreen .cf-target-control{margin:0 0 14px;padding:14px}#cashFlowScreen .cf-settings-btn{border:1px solid #cbdcf0;background:#eef5ff;color:#1766b1;border-radius:9px;padding:8px 10px;font-size:9px;font-weight:900;white-space:nowrap}#cashFlowScreen .cf-target-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#cashFlowScreen .cf-target-grid article{min-width:0;padding:11px;border:1px solid #edf0f4;border-radius:10px;background:#f8fafc}#cashFlowScreen .cf-target-grid small{display:block;color:#78879a;font-size:9px;font-weight:800;line-height:1.4}#cashFlowScreen .cf-target-grid strong{display:block;margin:6px 0;color:#26384d;font-size:clamp(15px,2vw,21px);overflow-wrap:anywhere}#cashFlowScreen .cf-target-grid span{display:block;color:#7c8999;font-size:8px;line-height:1.4}#cashFlowScreen #cfRequiredTarget{color:#bd593c}#cashFlowScreen .cf-target-progress{margin-top:12px}#cashFlowScreen .cf-target-progress>div:first-child{display:flex;justify-content:space-between;color:#68798d;font-size:9px;font-weight:800;margin-bottom:6px}#cashFlowScreen .cf-progress-track{height:7px;border-radius:20px;background:#edf1f6;overflow:hidden}#cashFlowScreen .cf-progress-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#2387dc,#19a477);border-radius:20px;transition:width .2s}#cashFlowScreen .cf-target-foot{margin-top:10px;padding:9px 10px;border-radius:9px;background:#f0f6ff;color:#526d8b;font-size:9px;line-height:1.5}#cashFlowScreen .cf-settings-popup{position:fixed;inset:0;z-index:100600;display:flex;align-items:center;justify-content:center;padding:14px;box-sizing:border-box}#cashFlowScreen .cf-settings-backdrop{position:absolute;inset:0;background:rgba(15,35,58,.42)}#cashFlowScreen .cf-settings-card{position:relative;width:min(410px,100%);max-height:90vh;overflow:auto;padding:16px;background:#fff;border:1px solid #dce6f1;border-radius:16px;box-shadow:0 22px 55px rgba(20,50,80,.24)}#cashFlowScreen .cf-settings-card>label{display:flex;flex-direction:column;gap:6px;margin:12px 0;color:#52657b;font-size:10px;font-weight:800}#cashFlowScreen .cf-settings-card input,#cashFlowScreen .cf-settings-card select{width:100%;box-sizing:border-box;border:1px solid #d7e2ef;border-radius:9px;padding:10px;background:#f9fbfe;color:#26384d;font-size:12px}#cashFlowScreen .cf-settings-actions{display:flex;gap:8px;margin-top:16px}#cashFlowScreen .cf-settings-actions button{flex:1;border:0;border-radius:9px;padding:11px;background:#edf1f6;color:#536477;font-size:10px;font-weight:900}#cashFlowScreen .cf-settings-actions button:last-child{background:#1768b7;color:white}
@media(max-width:700px){#cashFlowScreen .cf-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cashFlowScreen .cf-target-control{padding:11px}#cashFlowScreen .cf-settings-btn{padding:7px 8px;font-size:8px}}@media(max-width:360px){#cashFlowScreen .cf-target-grid strong{font-size:14px}}
/* 42.149 — compact filters, opening cash, dual target progress and history */
#cashFlowScreen .cf-filter-wrap{position:relative;display:flex;justify-content:flex-end;margin:0 0 12px}
#cashFlowScreen .cf-date-button{display:flex;align-items:center;gap:8px;min-height:36px;padding:0 11px;border:1px solid #e1e7ef;border-radius:10px;background:#fff;color:#41536a;font-size:11px;font-weight:800}
#cashFlowScreen .cf-date-button .material-icons{font-size:17px;color:#e47732}
#cashFlowScreen .cf-filter-popup{position:absolute;right:0;top:42px;z-index:10050;width:min(330px,calc(100vw - 28px));padding:12px;background:#fff;border:1px solid #e2e8f0;border-radius:13px;box-shadow:0 14px 38px rgba(20,34,55,.16)}
#cashFlowScreen .cf-filter-popup-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#29394e;font-size:12px}
#cashFlowScreen .cf-filter-popup-head>button{border:0;background:transparent;color:#66758a;font-size:22px}
#cashFlowScreen .cf-filter-popup .cf-presets{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 10px;overflow:visible}
#cashFlowScreen .cf-filter-popup .cf-presets button{padding:7px 9px;font-size:10px}
#cashFlowScreen .cf-dates{display:flex;align-items:end;gap:8px}
#cashFlowScreen .cf-dates label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;font-size:10px;font-weight:700;color:#7b8494}
#cashFlowScreen .cf-dates input{width:100%;min-width:0;height:35px;box-sizing:border-box;border:1px solid #e5e9ef;border-radius:8px;padding:0 6px;font-size:11px;color:#283548;background:#fff}
#cashFlowScreen .cf-filter-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}
#cashFlowScreen .cf-filter-actions button{border:0;border-radius:8px;padding:8px 12px;background:#edf1f6;color:#526174;font-size:10px;font-weight:800}
#cashFlowScreen .cf-filter-actions button:last-child{background:#e8752f;color:#fff}
#cashFlowScreen .cf-target-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
#cashFlowScreen .cf-expense-progress .cf-progress-track i{background:linear-gradient(90deg,#e4a13c,#e47732)}
#cashFlowScreen .cf-history-panel{margin-top:12px;padding:14px}
#cashFlowScreen .cf-history-wrap{width:100%;overflow-x:auto}
#cashFlowScreen .cf-history-table{width:100%;min-width:850px;border-collapse:collapse;font-size:10px;text-align:left}
#cashFlowScreen .cf-history-table th{padding:9px 8px;background:#f5f7fa;color:#68778b;font-weight:800;white-space:nowrap}
#cashFlowScreen .cf-history-table td{padding:9px 8px;border-bottom:1px solid #edf0f4;color:#46566b;white-space:nowrap}
#cashFlowScreen .cf-history-table td small{display:block;margin-top:3px;color:#929baa;font-size:9px}
#cashFlowScreen .cf-history-status{display:inline-block;padding:4px 6px;border-radius:20px;font-size:9px;font-weight:800}
#cashFlowScreen .cf-history-status.done{background:#e9f7ef;color:#18824c}
#cashFlowScreen .cf-history-status.pending{background:#fff3e8;color:#b76525}
@media(max-width:720px){#cashFlowScreen .cf-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cashFlowScreen .cf-filter-wrap{justify-content:flex-start}#cashFlowScreen .cf-filter-popup{left:0;right:auto}#cashFlowScreen .cf-history-panel{padding:10px}}

/* 42.150 — target lifecycle collection, compact centred date popup, six target cards */
#cashFlowScreen .cf-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#cashFlowScreen .cf-filter-popup{position:fixed;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 32px));max-width:calc(100vw - 32px);box-sizing:border-box;z-index:100600}
#cashFlowScreen .cf-filter-popup-head{width:100%;min-height:32px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 9px;border-bottom:1px solid #edf0f4}
#cashFlowScreen .cf-filter-popup-head>b{display:block;flex:1;min-width:0}
#cashFlowScreen .cf-filter-popup-head>button{flex:0 0 30px;width:30px;height:30px;display:grid;place-items:center;border:1px solid #e5e9ef;border-radius:8px;background:#f7f9fc;color:#44536a;font-size:21px;line-height:1;padding:0}
#cashFlowScreen .cf-filter-popup .cf-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:11px 0 10px}
#cashFlowScreen .cf-filter-popup .cf-presets button{width:100%;min-width:0;white-space:normal;text-align:center;box-sizing:border-box;padding:9px 5px}
@media(max-width:720px){#cashFlowScreen .cf-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cashFlowScreen .cf-filter-popup{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px)}}

.cf-target-filter{display:flex;align-items:center;gap:8px;min-width:0}.cf-target-filter label{font-size:11px;font-weight:700;color:#758196;white-space:nowrap}.cf-target-filter select{max-width:210px;min-width:130px;padding:9px 11px;border:1px solid #dfe5ed;border-radius:10px;background:#fff;color:#253449;font:inherit;font-size:12px}.cf-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:760px){.cf-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:480px){.cf-panel-head{align-items:flex-start;flex-direction:column}.cf-target-filter{width:100%}.cf-target-filter select{flex:1;max-width:none}}
