body[data-auth=pending]{visibility:hidden}.scheduler-wrapper{display:flex;flex-direction:column;height:calc(100vh - 85px);gap:12px;overflow:hidden}.resize-handle{flex-shrink:0;height:10px;cursor:ns-resize;display:flex;align-items:center;justify-content:center;margin:-8px 0;z-index:20;position:relative;border-radius:4px;transition:background .15s}.resize-handle:hover,.resize-handle.dragging{background:#667eea14}.resize-handle-bar{width:48px;height:4px;border-radius:2px;background:#dee2e6;transition:background .15s,width .15s;pointer-events:none}.resize-handle:hover .resize-handle-bar,.resize-handle.dragging .resize-handle-bar{background:#667eea;width:64px}.charts-row{flex:none!important;height:22vh;min-height:22vh;max-height:70vh}.resize-handle-v{flex-shrink:0;width:10px;cursor:ew-resize;display:flex;align-items:center;justify-content:center;margin:0 2px;z-index:20;position:relative;border-radius:4px;transition:background .15s}.resize-handle-v:hover,.resize-handle-v.dragging{background:#667eea14}.resize-handle-v-bar{width:4px;height:48px;border-radius:2px;background:#dee2e6;transition:background .15s,height .15s;pointer-events:none}.resize-handle-v:hover .resize-handle-v-bar,.resize-handle-v.dragging .resize-handle-v-bar{background:#667eea;height:64px}.bottom-row{flex:1;display:flex;flex-direction:row;gap:0;min-height:0;overflow:hidden}.subaccounts-sidebar{flex-shrink:0;min-width:60px;max-width:300px;width:300px;transition:width 0s}.subaccounts-sidebar.is-narrowing .status-badge{font-size:0;padding:6px;min-width:8px;height:8px;border-radius:50%;transition:all .15s}.subaccounts-sidebar.is-collapsed .subaccounts-header,.subaccounts-sidebar.is-collapsed .subaccount-name,.subaccounts-sidebar.is-collapsed .subaccount-meta,.subaccounts-sidebar.is-collapsed .subaccount-badge,.subaccounts-sidebar.is-collapsed .status-badge,.subaccounts-sidebar.is-collapsed .subaccount-info,.subaccounts-sidebar.is-collapsed #subaccountSearch,.subaccounts-sidebar.is-collapsed #searchClear,.subaccounts-sidebar.is-collapsed #refreshList,.subaccounts-sidebar.is-collapsed #loadingSubaccountText,.subaccounts-sidebar.is-narrowing .subaccount-meta,.subaccounts-sidebar.nearly-collapsed .subaccount-meta,.subaccounts-sidebar.nearly-collapsed .status-badge{display:none!important;transition:display .15s}.subaccounts-sidebar.is-collapsed .subaccount-item>.d-flex{display:none!important}.subaccounts-sidebar.is-collapsed .subaccount-item{padding:6px;justify-content:center;gap:0}.subaccount-initials{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.65rem;font-weight:900;letter-spacing:-.5px;line-height:1;border-radius:4px;mix-blend-mode:normal;pointer-events:none;opacity:0;transition:opacity .15s;text-shadow:0 1px 3px rgba(0,0,0,.6),0 0 6px rgba(0,0,0,.3)}.subaccounts-sidebar.is-collapsed .subaccount-initials{opacity:1!important}.charts-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chart-card{background:#fff;border:1px solid #e9ecef;border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;min-height:0;overflow:hidden}.chart-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;flex-shrink:0}.chart-card-title{font-weight:600;color:#212529;font-size:.9rem;display:flex;align-items:center;gap:8px}.chart-range-btns .btn{font-size:.75rem;padding:2px 8px}.chart-canvas-wrapper{flex:1;min-height:0;position:relative}.subaccounts-sidebar{background:#fff;width:300px;border-radius:12px;border:1px solid #e9ecef;display:flex;flex-direction:column;overflow:hidden;min-height:0;max-height:100%}.subaccounts-header{padding:12px 16px;border-bottom:1px solid #e9ecef;background:linear-gradient(135deg,#f8f9fa,#e9ecef);flex-shrink:0}.subaccounts-list{overflow-y:auto;padding:8px;min-height:0;flex:1}.subaccount-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;border:1px solid #e9ecef;background:#ffffffe6;cursor:pointer;margin-bottom:8px;transition:all .15s ease}.subaccount-item:hover{background:#f8f9fac2;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.subaccount-item.active{border-left:3px solid var(--sa-color, #667eea);background:#667eea14}.subaccount-color{position:relative;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;flex-shrink:0;border:2px solid #fff;box-shadow:0 2px 4px #00000026}.subaccount-info{flex:1;min-width:0}.subaccount-name{font-weight:600;color:#212529;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}.subaccount-meta{font-size:.78rem;color:#6c757d}.subaccount-badge{font-size:.7rem;padding:3px 9px;border-radius:10px;background:var(--sa-color, #667eea);color:#fff;flex-shrink:0;font-weight:600}.status-badge{padding:2px 8px;border-radius:10px;font-size:.7rem;font-weight:600;text-transform:uppercase}.status-active{background-color:#e8f5e8;color:#2e7d32}.status-inactive{background-color:#ffebee;color:#d32f2f}.config-panel{flex:1;min-width:0;background:#fff;border:1px solid #e9ecef;border-radius:12px;display:flex;flex-direction:column;overflow:hidden}.config-panel-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:12px 20px;flex-shrink:0;display:flex;justify-content:space-between;align-items:center}.config-panel-header h5{margin:0;font-size:1rem}.config-panel-body{flex:1;overflow-y:auto;padding:16px}.editing-job-banner{position:sticky;top:0;z-index:10}.config-panel,.scheduler-config-panel,[id*=configPanel],.col:has(#configForm){overflow-y:auto;position:relative}.config-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#6c757d;text-align:center;padding:40px}.config-empty i{font-size:3rem;color:#dee2e6;margin-bottom:16px}.config-form{display:none}.form-section{margin-bottom:16px;padding:14px;border:1px solid #e9ecef;border-radius:8px;background:#fafbfc}.section-title{font-weight:600;font-size:.85rem;color:#495057;margin-bottom:12px;display:flex;align-items:center;gap:6px}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.form-label{font-size:.82rem;font-weight:500;margin-bottom:4px;color:#495057}.form-control,.form-select{font-size:.85rem;padding:6px 10px}.message-preview-card{border:1px solid #e9ecef;border-radius:10px;overflow:hidden;margin-bottom:10px;background:#fff}.message-preview-card.is-first{border-left:3px solid var(--sa-color, #667eea)}.message-preview-card.is-alt{border-left:3px solid #dee2e6}.message-preview-header{display:flex;align-items:center;justify-content:space-between;padding:7px 12px;background:#f8f9fa;border-bottom:1px solid #e9ecef}.message-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:2px 10px;border-radius:20px}.message-pct{font-size:.75rem;color:#6c757d;font-weight:500}.message-preview-body{padding:10px 12px;font-size:.82rem;color:#212529;white-space:pre-wrap;line-height:1.5}.message-preview-box{background:#f0f4ff;border:1px solid #c5d0f5;border-radius:8px;padding:10px 14px;font-size:.82rem;color:#2c3e50;line-height:1.5;min-height:52px;font-style:italic}.message-preview-box.alt{background:#f5f0ff;border-color:#c5b8f5}.message-preview-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#6c757d;margin-bottom:4px}.schedule-type-toggle{display:flex;gap:8px;margin-bottom:14px}.schedule-type-btn{flex:1;padding:8px;border:2px solid #e9ecef;border-radius:8px;background:#fff;cursor:pointer;text-align:center;font-size:.82rem;font-weight:600;color:#6c757d;transition:all .15s}.schedule-type-btn.active{border-color:#667eea;background:#667eea14;color:#667eea}.repeat-options{display:none}.repeat-options.show{display:block}.delay-inputs{display:grid;grid-template-columns:1fr 1fr 100px;gap:8px;align-items:end}.custom-value-placeholder{background:#d4f7e0;color:#1a7f4b;border:1px solid #a3e9c0;border-radius:4px;padding:1px 5px;font-size:.8em;font-family:monospace;cursor:default}.custom-value-resolved{background:#d4f7e0;color:#1a7f4b;border:1px solid #a3e9c0;border-radius:4px;padding:1px 5px;font-size:.8em;font-weight:600}.custom-value-missing{background:#fff0f0;color:#cf222e;border:1px solid #ffb3b3;border-radius:4px;padding:1px 5px;font-size:.8em;font-family:monospace}.message-preview-toggle{padding:6px 2px;border-bottom:1px solid #f0f0f0;margin-bottom:8px}.btn-schedule{background:linear-gradient(135deg,#28a745,#20c997);border:none;color:#fff;font-weight:600;padding:10px 24px;border-radius:8px;font-size:.9rem}.btn-schedule:hover{background:linear-gradient(135deg,#1e7e34,#17a2b8);color:#fff}.scheduled-jobs-list{max-height:160px;overflow-y:auto}.job-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid #e9ecef;border-radius:6px;margin-bottom:6px;background:#fff;font-size:.82rem}.job-item-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.btn-job-cancel{background:none;border:none;color:#dc3545;padding:0 4px;cursor:pointer;font-size:.85rem;line-height:1}.color-bar{width:4px;border-radius:2px;background:var(--sa-color, #667eea);flex-shrink:0;align-self:stretch}.scheduled-jobs-list,.completed-jobs-list{max-height:160px;overflow-y:auto}.job-item{display:flex;align-items:flex-start;gap:10px;padding:8px 12px;border:1px solid #e9ecef;border-radius:6px;margin-bottom:6px;background:#fff;font-size:.82rem}.job-item.job-item--completed{opacity:.8;background:#f8f9fa}.job-item.job-item--cancelled{opacity:.65;background:#fff5f5;border-color:#ffd6d6}.job-item-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:4px}.job-item-info{flex:1}.job-item-time{color:#6c757d;font-size:.78rem;white-space:nowrap}.job-stats{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.job-stat-pill{display:inline-flex;align-items:center;gap:3px;font-size:.7rem;padding:1px 7px;border-radius:10px;font-weight:600;white-space:nowrap}.job-stat-pill.sent{background:#e8f5e8;color:#2e7d32}.job-stat-pill.failed{background:#ffebee;color:#c62828}.job-stat-pill.no-contact{background:#fff8e1;color:#f57f17}.job-stat-pill.runs{background:#e3f2fd;color:#1565c0}.job-stat-pill.start-date{background:#fae0ff;color:#b139c9}.job-stat-pill.start-time{background:#ffe3f8;color:#cc3ea6}.job-stat-pill.end-time{background:#ffe7ed;color:#d74c71}.completed-toggle{display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;padding:6px 2px;border-radius:6px;transition:background .12s}.completed-toggle:hover{background:#f0f4ff}.completed-toggle-arrow{transition:transform .2s;color:#6c757d;font-size:.8rem}.completed-toggle.open .completed-toggle-arrow{transform:rotate(180deg)}.completed-collapse{overflow:hidden;max-height:0;transition:max-height .25s ease}.completed-collapse.open{max-height:400px}@media(max-width:1100px){.subaccounts-sidebar{width:260px}.form-grid-3{grid-template-columns:1fr 1fr}}@media(max-width:768px){.charts-row{grid-template-columns:1fr}.bottom-row{flex-direction:column}.resize-handle-v{display:none}.subaccounts-sidebar{width:100%!important;max-width:100%;max-height:220px}}
