body.customer-editor-open{overflow:hidden}
#customer-editor.active{position:fixed;inset:0;z-index:1200;background:#f7f3ed;overflow:auto;padding:0;display:flex;flex-direction:column;align-items:stretch}
#customer-editor .customer-editor-toolbar{position:sticky;top:0;z-index:2;flex:none;display:flex;flex-wrap:nowrap;gap:12px;padding:calc(14px + env(safe-area-inset-top)) 20px 14px;margin:0;background:#fff;border-bottom:1px solid #ddd}
.customer-editor-toolbar h2{flex:1;margin:0;text-align:center;font-size:clamp(15px,2vw,22px)}
.customer-editor-tools{padding:12px 20px;display:flex;flex-wrap:wrap;gap:8px}
#customer-editor .customer-editor-layout{flex:1;padding:0 20px 20px;min-height:0}
#customer-editor .customer-editor-preview{height:calc(100dvh - 190px);min-height:420px;border-radius:18px}
#customer-editor .customer-editor-panel{max-height:calc(100dvh - 190px)}
.branch-status-card.disconnected,.publish-card.disconnected{background:rgba(185,28,28,.07)!important;border-color:rgba(185,28,28,.25)!important}
.status-pill.disconnected,.branch-status-card.disconnected>b{color:#b42335!important}
.status-pill.disconnected{background:rgba(185,28,28,.09)!important}
.branch-status-card.connected{background:rgba(21,128,61,.07)!important;border-color:rgba(21,128,61,.2)!important}
.status-pill.connected{color:#15803d!important;background:rgba(21,128,61,.09)!important}
.admin-fullscreen{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;border:0;padding:0;background:#f7f3ed;color:#282723}
.admin-fullscreen>header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(16px + env(safe-area-inset-top)) 24px 16px;background:#fff;border-bottom:1px solid #dedbd3;z-index:1}
.admin-fullscreen h2{margin:0}
.cost-breakdown-content{max-width:1000px;margin:auto;padding:24px}
.cost-breakdown-row{display:flex;direction:rtl;align-items:center;justify-content:space-between;gap:20px;padding:18px;background:#fff;border-bottom:1px solid #ece9e1}
.costs-intro[role=button]{cursor:pointer}
#marketing form label{display:grid;gap:8px;margin:18px 0}
#marketing textarea{font:inherit;padding:14px;border:1px solid #d8d6d0;border-radius:14px;resize:vertical}
#branchManager>button{margin-bottom:20px}
#branchManager article{margin-bottom:16px;padding:22px}
#branchManager article button{margin-inline-end:8px;margin-top:8px}
#branchManager form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:24px;max-width:1100px}
#branchManager form h3{grid-column:1/-1;margin:0 0 8px}
#branchManager form label{display:grid;gap:8px;min-width:0}
#branchManager form input{width:100%;box-sizing:border-box;min-height:44px}
#branchManager form input[name=id],#branchManager form input[type=number],#branchManager form input[name=phone],#branchManager form input[name=map_url]{direction:ltr;text-align:left}
@media(max-width:680px){#branchManager form{grid-template-columns:1fr;padding:16px}}
@media(max-width:850px){#customer-editor .customer-editor-layout{padding:0 8px 12px}#customer-editor .customer-editor-layout.editing .customer-editor-panel{inset:92px 8px 12px;max-height:none;z-index:3}#customer-editor .customer-editor-toolbar{padding-inline:12px}}
/* Cash-flow forecast: compact horizons, readable rows, mobile-safe editor. */
.forecast-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.forecast-toolbar h2{margin-inline-end:auto}.forecast-chip{padding:7px 12px!important;border-radius:999px!important;min-width:0!important;background:transparent!important;color:inherit!important;border:1px solid #bcbcbc!important}.forecast-chip.active{background:#ffcc33!important;color:#181818!important;border-color:#ffcc33!important}.forecast-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0}.forecast-metrics>div{padding:16px;border:1px solid #8885;border-radius:14px}.forecast-metrics strong{display:block;font-size:24px;margin-top:8px}.forecast-warning{padding:14px;background:#e9a92818;border:1px solid #ce961f;border-radius:12px;margin:12px 0}.cash-forecast details{margin:14px 0}.cash-forecast summary{cursor:pointer;font-weight:700;padding:10px 0}.cash-forecast td{white-space:nowrap}.forecast-dialog{width:min(1100px,94vw);max-height:90dvh;overflow:auto;border:1px solid #888;border-radius:20px;background:var(--card,#fff);color:var(--ink,#222);padding:24px}.forecast-dialog::backdrop{background:#0008}.forecast-dialog label{display:block;margin:12px 0}.forecast-dialog input{max-width:100%;min-width:80px}.forecast-dialog input[type=checkbox]{min-width:auto;width:22px;height:22px;margin:8px}.forecast-dialog table input{width:130px}.forecast-dialog form>button{margin:8px}
