/* Executive cash forecast. Scoped using .hd-cf; no global form overrides. */
.hd-cf{display:block;min-width:0;margin:12px 0}
.hd-cf h3,.hd-cf h4,.hd-cf p{margin:0}
.hd-cf-head,.hd-cf-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hd-cf-head h3{font-size:1.08rem;color:#252525;font-weight:800}
.hd-cf-head p,.hd-cf-panel-head p{font-size:.77rem;color:#737373;margin-top:4px}
.hd-cf-tools{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
.hd-cf-switch{display:inline-flex;background:#f4f4f4;border:1px solid #e9e9e9;border-radius:12px;padding:3px;gap:2px}
.hd-cf-switch button{font:inherit;border:0;border-radius:9px;background:transparent;color:#555;cursor:pointer;padding:6px 11px;font-size:.78rem;white-space:nowrap}
.hd-cf-switch button.active{background:#242424;color:#fff}
.hd-cf-switch button:disabled{opacity:.65;cursor:default}
.hd-cf-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:15px}
.hd-cf-kpi{background:#fafafa;border:1px solid #eeeeee;border-radius:12px;display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px}
.hd-cf-kpi>span{font-size:.76rem;color:#666}
.hd-cf-kpi strong{font-size:1.03rem;font-weight:800;color:#262626;direction:ltr;text-align:right;unicode-bidi:isolate}
.hd-cf-kpi small{font-size:.69rem;line-height:1.6;color:#858585}
.hd-cf-negative{color:#b5303d!important}
.hd-cf-positive{color:#24754f!important}
.hd-cf-state{min-height:85px;display:flex;gap:9px;justify-content:center;align-items:center;color:#737373;font-size:.82rem;text-align:center;flex-wrap:wrap;padding:12px}
.hd-cf-loader{display:inline-block;width:18px;height:18px;border:2px solid #eee;border-top-color:#b5303d;border-radius:100%;animation:hd-cf-spin .75s linear infinite}
@keyframes hd-cf-spin{to{transform:rotate(360deg)}}
.hd-cf-note{margin-top:10px!important;padding:9px;background:#fff7eb;color:#805d2b;font-size:.77rem;border-radius:9px}
.hd-cf-chart{margin-top:12px;border:1px solid #eee;border-radius:12px;padding:12px;background:#fff}
.hd-cf-panel-head{margin-bottom:7px}
.hd-cf-panel-head h4{font-size:.85rem;color:#272727}
.hd-cf-panel-head>span{font-size:.73rem;color:#777;white-space:nowrap}
.hd-cf-chart svg{width:100%;height:154px;display:block;overflow:visible}
.hd-cf-chart-caption{display:flex;justify-content:space-between;color:#888;font-size:.71rem}
.hd-cf-list-head{margin-top:15px}
.hd-cf-days{max-height:265px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;display:grid;gap:5px}
.hd-cf-day{font:inherit;cursor:pointer;display:grid;grid-template-columns:105px 1fr 1fr 1fr;align-items:center;gap:9px;width:100%;min-width:0;background:#fff;border:1px solid #ececec;border-radius:9px;padding:9px 12px;color:#444;text-align:right;font-size:.76rem}
.hd-cf-day:hover{background:#fbf8f8;border-color:#e4caca}
.hd-cf-day strong{font-size:.8rem;text-align:left;direction:ltr;unicode-bidi:isolate}
.hd-cf-date{font-weight:800;color:#292929}
.hd-cf-receipt,.hd-cf-payment{min-width:0}
.hd-cf-receipt{color:#287553}
.hd-cf-payment{color:#ae3740}
.hd-cf-disclaimer{font-size:.74rem;line-height:1.85;color:#777;background:#f8f8f8;border-right:3px solid #bbb;padding:9px 11px;margin-top:12px!important;border-radius:8px}
.hd-cf-overlay{position:fixed;inset:0;z-index:1600;display:flex;align-items:center;justify-content:center;background:rgba(24,24,24,.42);padding:18px}
.hd-cf-dialog{width:min(460px,100%);max-height:min(82vh,650px);overflow:auto;background:#fff;border-radius:16px;box-shadow:0 14px 60px #0002;padding:17px}
.hd-cf-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.hd-cf-dialog header h4{font-size:1rem;color:#292929}
.hd-cf-dialog header button{border:none;background:#f4f4f4;border-radius:9px;font:inherit;color:#444;padding:5px 12px;font-size:1.3rem;cursor:pointer}
.hd-cf-detail-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #f0f0f0;font-size:.82rem}
.hd-cf-detail-row strong{direction:ltr;unicode-bidi:isolate}
.hd-cf-detail-total{font-weight:800;color:#292929}
.hd-cf-dialog p{line-height:1.7;color:#777;font-size:.72rem;margin-top:12px}
@media(max-width:900px){.hd-cf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .hd-cf-head{align-items:flex-start;flex-direction:column}
 .hd-cf-tools{width:100%;justify-content:space-between}
 .hd-cf-summary{gap:6px;margin-top:11px}
 .hd-cf-kpi{padding:9px;min-height:92px}
 .hd-cf-kpi strong{font-size:.9rem;overflow-wrap:anywhere}
 .hd-cf-panel-head{align-items:flex-start;flex-direction:column;gap:2px}
 .hd-cf-chart{padding:9px}
 .hd-cf-chart svg{height:118px}
 .hd-cf-day{grid-template-columns:1fr 1fr;gap:5px;padding:9px 10px;font-size:.73rem}
 .hd-cf-day strong{text-align:left}
}
@media(prefers-reduced-motion:reduce){.hd-cf-loader{animation:none}}


/* Decision-friendly, zero-referenced scheduled-flow chart.
   The vertical scale is real amounts in Toman, not a decorative sparkline. */
.hd-cf-chart-header{align-items:center;flex-wrap:wrap;margin-bottom:6px}
.hd-cf-view-switch{display:inline-flex;gap:3px;border:1px solid #e3e5e8;border-radius:10px;padding:3px;background:#f8f8f9}
.hd-cf-view-switch button{font:inherit;font-size:.75rem;padding:7px 11px;min-height:32px;border:0;border-radius:8px;color:#5b6471;background:transparent;cursor:pointer;white-space:nowrap}
.hd-cf-view-switch button.active{color:white;background:#303039;font-weight:750}
.hd-cf-view-switch button:focus-visible{outline:2px solid #b83d52;outline-offset:2px}
.hd-cf-chart-explain{font-size:.75rem!important;line-height:1.8;color:#606975;margin:5px 0 8px!important}
.hd-cf-legend{display:flex;gap:9px 17px;flex-wrap:wrap;align-items:center;color:#555e6c;font-size:.72rem;margin:5px 0 13px}
.hd-cf-legend>span{display:inline-flex;gap:6px;align-items:center}
.hd-cf-legend i{display:inline-block;flex:0 0 17px;height:4px;border-radius:3px;background:#bc3b4e}
.hd-cf-legend .hd-cf-legend-line{background:#bc3b4e}
.hd-cf-legend .hd-cf-legend-zero{height:0;background:none;border-top:2px dashed #89929b}
.hd-cf-legend .hd-cf-legend-receipt{background:#25936b}
.hd-cf-legend .hd-cf-legend-payment{background:#c84958}
.hd-cf-legend small{color:#747c87;font-size:.7rem;margin-inline-start:auto}
.hd-cf-graph{display:flex;gap:9px;direction:rtl;min-width:0;align-items:flex-start}
.hd-cf-y-scale{flex:0 0 114px;height:200px;position:relative;font-size:.72rem;color:#656c78;white-space:nowrap}
.hd-cf-y-scale span{position:absolute;right:0;left:0;transform:translateY(-50%);text-align:left;direction:rtl;font-variant-numeric:tabular-nums}
.hd-cf-plot{flex:1;min-width:0}
.hd-cf-plot svg{width:100%;height:200px;overflow:hidden;display:block;background:linear-gradient(180deg,#fff 0%,#fdfdfe 100%);border-radius:7px}
.hd-cf-chart-point{cursor:pointer;transition:opacity .15s ease}
.hd-cf-chart-point:hover{opacity:.74}
.hd-cf-plot .hd-cf-chart-caption{display:flex;justify-content:space-between;direction:rtl;color:#78818b;font-size:.68rem;gap:3px;white-space:nowrap;padding-top:7px}
.hd-cf-chart-takeaway{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;
    background:#fafafa;border:1px solid #eee;border-radius:9px;padding:10px 12px;margin-top:9px}
.hd-cf-chart-takeaway span{font-size:.77rem;color:#5e6570}
.hd-cf-chart-takeaway strong{font-size:.85rem;font-variant-numeric:tabular-nums;direction:rtl}
.hd-cf-chart-takeaway small{font-size:.7rem;color:#767f8c;margin-inline-start:auto}
@media(max-width:650px){
 .hd-cf-chart-header{align-items:flex-start}
 .hd-cf-view-switch{width:100%;justify-content:stretch}
 .hd-cf-view-switch button{flex:1;padding:7px 6px}
 .hd-cf-legend{gap:5px 10px;margin-bottom:10px;font-size:.67rem}
 .hd-cf-legend small{width:100%;margin:0}
 .hd-cf-graph{gap:4px}
 .hd-cf-y-scale{flex-basis:84px;height:174px;font-size:.62rem}
 .hd-cf-plot svg{height:174px}
 .hd-cf-plot .hd-cf-chart-caption{font-size:.6rem}
 .hd-cf-plot .hd-cf-chart-caption span:nth-child(even){display:none}
 .hd-cf-chart-takeaway{gap:4px 10px;padding:8px}
 .hd-cf-chart-takeaway small{width:100%;margin:0}
}
@media(prefers-reduced-motion:reduce){.hd-cf-chart-point{transition:none}}
