/* MTOS V8 · Readable, visible financial dashboard, scoped to accounting Workspace. */
#mtosCashDashboard{display:block!important;visibility:visible!important;opacity:1!important;margin:5px 0 25px;color:#15376d;font-size:14px}
#mtosCashDashboard .mtos-cash-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 22px;border:1px solid #d9e8f5;background:#fff;border-radius:20px 20px 0 0}
#mtosCashDashboard .mtos-cash-kicker{font-size:11px;letter-spacing:1.15px;font-weight:820;color:#0a82dc}
#mtosCashDashboard h2{margin:4px 0;font-size:clamp(21px,2vw,29px);font-weight:850;letter-spacing:-.65px;color:#13386f}
#mtosCashDashboard h3{font-size:18px;letter-spacing:-.2px;color:#15396e;margin:0}
#mtosCashDashboard p{color:#69829d;font-size:12.5px;line-height:1.55;margin:5px 0 0}
#mtosCashDashboard .mtos-cash-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#mtosCashDashboard .mtos-cash-controls label{color:#45638a;font-weight:730;font-size:12.5px}
#mtosCashDashboard .mtos-cash-controls input{min-height:42px;padding:6px 10px;border-radius:11px;border:1px solid #c9dff2;min-width:130px;background:#fbfdff;color:#204678}
#mtosCashDashboard .mtos-cash-controls button{min-height:42px;border:1px solid #b9d9f2;background:#edf7ff;border-radius:11px;font-size:12.5px;font-weight:800;color:#0966c0;padding:8px 13px}
#mtosCashDashboard .mtos-cash-state{background:#f3f8fd;color:#5d789a;font-size:12px;padding:9px 22px;border:1px solid #d9e8f5;border-top:0}
#mtosCashDashboard .mtos-cash-state.is-ready{background:#eefbf7;color:#127d58}
#mtosCashDashboard .mtos-cash-state.is-error{background:#fff3f1;color:#a94748}
#mtosCashDashboard .mtos-cash-empty{padding:36px 20px;border:1px dashed #c7dced;border-top:0;background:#fff;text-align:center;color:#6a85a2;border-radius:0 0 18px 18px}
#mtosCashDashboard .mtos-cash-warning{border:1px solid #f0d1b5;border-radius:15px;background:#fffaf3;padding:16px 20px;color:#8a5a29;margin:8px 0}
#mtosCashDashboard .mtos-cash-warning strong{display:block;font-size:15px}
#mtosCashDashboard .mtos-cash-warning p{color:#896a55;margin:5px 0}
#mtosCashDashboard .mtos-cash-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,0.85fr);gap:12px;margin-top:16px}
#mtosCashDashboard .mtos-cash-hero-primary{background:linear-gradient(110deg,#083e9b,#0c77db 65%,#15b9e9);border-radius:22px;color:white;padding:26px 28px;box-shadow:0 15px 32px rgba(10,88,190,.13)}
#mtosCashDashboard .mtos-cash-overline{font-size:12px;letter-spacing:.9px;color:#daf4ff;font-weight:800;text-transform:uppercase}
#mtosCashDashboard .mtos-cash-hero-primary strong{display:block;font-size:clamp(30px,3vw,48px);margin:7px 0 4px;font-variant-numeric:tabular-nums;letter-spacing:-1px;line-height:1.1;overflow-wrap:anywhere}
#mtosCashDashboard .mtos-cash-hero-primary p,#mtosCashDashboard .mtos-cash-hero-primary b{color:#e7f7ff;font-size:12.2px}
#mtosCashDashboard .mtos-cash-hero-split{display:flex;flex-direction:column;gap:12px}
#mtosCashDashboard .mtos-cash-hero-split>div{padding:17px 19px;flex:1;border:1px solid #d7e7f5;border-radius:17px;background:#fff;display:flex;flex-direction:column;justify-content:center;gap:4px}
#mtosCashDashboard .mtos-cash-hero-split span{font-size:12.5px;color:#597b9f;font-weight:730}
#mtosCashDashboard .mtos-cash-hero-split strong{font-size:clamp(19px,1.7vw,27px);letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#123a6d}
#mtosCashDashboard .mtos-cash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:15px}
#mtosCashDashboard .mtos-cash-kpi{padding:17px 16px;border:1px solid #dbe8f3;background:white;border-radius:17px;min-width:0;display:flex;flex-direction:column;gap:6px;box-shadow:0 5px 15px rgba(18,66,121,.025);border-top:3px solid #dbe8f3}
#mtosCashDashboard .mtos-cash-kpi.revenue{border-top-color:#0b75e7}#mtosCashDashboard .mtos-cash-kpi.parking{border-top-color:#10b8e9}#mtosCashDashboard .mtos-cash-kpi.monthly{border-top-color:#1b89cb}#mtosCashDashboard .mtos-cash-kpi.deposit{border-top-color:#815fdf}#mtosCashDashboard .mtos-cash-kpi.outflow{border-top-color:#e88755}#mtosCashDashboard .mtos-cash-kpi.pending{border-top-color:#c39b43}#mtosCashDashboard .mtos-cash-kpi.debt{border-top-color:#ef6b77}#mtosCashDashboard .mtos-cash-kpi.forecast{border-top-color:#38a87b}
#mtosCashDashboard .mtos-cash-kpi span{font-size:12.5px;font-weight:760;color:#48698e}
#mtosCashDashboard .mtos-cash-kpi strong{font-size:clamp(20px,1.65vw,27px);color:#173a6c;font-variant-numeric:tabular-nums;line-height:1.2;overflow-wrap:anywhere}
#mtosCashDashboard .mtos-cash-kpi small{font-size:11px;color:#718aa4;line-height:1.5}
#mtosCashDashboard .mtos-cash-chart-panel{margin-top:15px;border:1px solid #dbe8f3;background:white;border-radius:20px;padding:21px}
#mtosCashDashboard .mtos-cash-chart-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
#mtosCashDashboard .mtos-cash-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:#5d7996}
#mtosCashDashboard .mtos-cash-legend span{display:inline-flex;align-items:center;gap:6px}
#mtosCashDashboard .mtos-cash-legend i{display:inline-block;width:11px;height:11px;border-radius:5px}
#mtosCashDashboard .mtos-cash-legend i.bill{background:#1463e6}#mtosCashDashboard .mtos-cash-legend i.day{background:#15b5df}#mtosCashDashboard .mtos-cash-legend i.deposit{background:#9865e6}#mtosCashDashboard .mtos-cash-legend i.balance{background:#17a673}
#mtosCashDashboard .mtos-cash-chart-scroll{width:100%;overflow-x:auto;margin:16px 0 5px}
#mtosCashDashboard .mtos-cash-svg{display:block;width:100%;min-width:580px;height:auto;max-height:370px}
#mtosCashDashboard .mtos-cash-svg .guide line{stroke:#e4ecf5;stroke-width:1}
#mtosCashDashboard .mtos-cash-svg .guide text{fill:#728ba5;font:12px system-ui,sans-serif}
#mtosCashDashboard .mtos-cash-svg .traces polyline{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
#mtosCashDashboard .mtos-cash-svg .traces polyline.bill{stroke:#1463e6}#mtosCashDashboard .mtos-cash-svg .traces polyline.day{stroke:#15b5df}#mtosCashDashboard .mtos-cash-svg .traces polyline.deposit{stroke:#9865e6}#mtosCashDashboard .mtos-cash-svg .traces polyline.balance{stroke:#17a673;stroke-width:4}
#mtosCashDashboard .mtos-cash-svg .traces circle{stroke:white;stroke-width:2}#mtosCashDashboard .mtos-cash-svg .traces circle.bill{fill:#1463e6}#mtosCashDashboard .mtos-cash-svg .traces circle.day{fill:#15b5df}#mtosCashDashboard .mtos-cash-svg .traces circle.deposit{fill:#9865e6}#mtosCashDashboard .mtos-cash-svg .traces circle.balance{fill:#17a673}
#mtosCashDashboard .mtos-cash-details{margin-top:10px;padding-top:12px;border-top:1px solid #eaf0f7}
#mtosCashDashboard .mtos-cash-details summary{color:#176ad0;font-size:12.5px;font-weight:760;cursor:pointer}
#mtosCashDashboard .mtos-cash-scroll{overflow-x:auto;margin-top:12px}
#mtosCashDashboard .mtos-cash-scroll table{border-collapse:collapse;width:100%;min-width:760px;font-size:12px}
#mtosCashDashboard .mtos-cash-scroll th,#mtosCashDashboard .mtos-cash-scroll td{padding:11px;border-bottom:1px solid #e9eff7;text-align:right;white-space:nowrap}
#mtosCashDashboard .mtos-cash-scroll th:first-child,#mtosCashDashboard .mtos-cash-scroll td:first-child{text-align:left}
#mtosCashDashboard .mtos-cash-scroll th{color:#536e92;background:#f4f9fd}
#mtosCashDashboard .mtos-cash-footnote{padding:12px 2px 0!important;color:#6786a4!important}
@media(max-width:1250px){#mtosCashDashboard .mtos-cash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#mtosCashDashboard .mtos-cash-hero{grid-template-columns:1fr}#mtosCashDashboard .mtos-cash-hero-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#mtosCashDashboard .mtos-cash-header{padding:16px;gap:12px}#mtosCashDashboard .mtos-cash-controls{width:100%}#mtosCashDashboard .mtos-cash-hero-primary{padding:20px}#mtosCashDashboard .mtos-cash-kpis{gap:8px}#mtosCashDashboard .mtos-cash-kpi{padding:13px}#mtosCashDashboard .mtos-cash-kpi strong{font-size:19px}#mtosCashDashboard .mtos-cash-hero-split{grid-template-columns:1fr}#mtosCashDashboard .mtos-cash-chart-panel{padding:14px}}
@media print{#mtosCashDashboard .mtos-cash-controls{display:none!important}}
/* V9: history and approvals */
#mtosCashDashboard .mtos-cash-controls select{min-height:42px;padding:8px 10px;border:1px solid #c9dff2;border-radius:11px;background:#fbfdff;color:#204678}
#mtosCashDashboard .mtos-cash-monthly-table{width:100%;min-width:1220px}
#mtosCashDashboard .mtos-cash-monthly-table tr.is-deficit{background:#fff3f0;color:#a63d39}
#mtosCashDashboard .mtos-cash-monthly-table td strong{font-weight:800}
#mtosCashDashboard .mtos-cash-chart-scroll{max-height:none}
#mtosCashDashboard .mtos-cash-svg{max-height:370px;width:max(100%,920px)}
#mtosCashDashboard .mtos-cash-warning{margin-top:14px}

/* V9.2 · Contractor deposit receipts: long secure codes wrap naturally. */
.mtos-deposit-notice{padding:12px 14px;border-radius:12px;background:#e7f8f3;border:1px solid #b9e8d6;color:#126846;font-size:13px;line-height:1.55;margin-top:12px;overflow-wrap:anywhere}
.mtos-deposit-code{overflow-wrap:anywhere;max-width:320px;line-height:1.5;margin-bottom:6px}
.mtos-deposit-lookup{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;margin-left:6px;border:1px solid #cde0f5;border-radius:9px;font-size:12px;font-weight:700;color:#135bba;text-decoration:none;background:#f7fbff}
.mtos-deposit-lookup:hover,.mtos-deposit-lookup:focus-visible{border-color:#5b9fee;background:#eaf5ff}
@media(max-width:640px){.mtos-deposit-lookup{margin:6px 0 0}.mtos-deposit-code{max-width:235px}}

/* V9.3 — Preview receipt/contractor-deposit fields inside the shared designer. */
.mtos35-preview-mode{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 14px;margin:10px 0;border:1px solid #dbe7f5;border-radius:12px;background:#f5faff;color:#28517e;font-size:12px;font-weight:700}
.mtos35-preview-mode .btn{min-height:34px;padding:7px 12px}
@media(max-width:680px){.mtos35-preview-mode span{width:100%}}
