:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#213547;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff;font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;font-weight:400;line-height:1.5}a{color:#646cff;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a:hover{color:#535bf2}body{background-color:#fff;min-width:320px;min-height:100vh;margin:0}h1{font-size:3.2em;line-height:1.1}button{cursor:pointer;color:#fff;border-color:#2563eb;border-radius:20%;width:35px;height:28px;font-family:inherit}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#2563eb}}.header{z-index:1000;background:#fff;justify-content:space-between;align-items:center;width:100%;height:70px;padding:10px 20px;display:flex;position:fixed;top:0;left:0;box-shadow:0 2px 4px #0000001a}.content-wrapper{background-color:#f5f5f5;min-height:calc(100vh - 70px);margin-top:70px;margin-left:70px;padding:20px}.header-logo{border-radius:50%;width:35px;height:35px}.header-title{color:#333;font-size:18px;font-weight:600}.header-right{gap:10px;display:flex;position:relative;right:22px}.header-btn{color:#fff;cursor:pointer;background-color:#007bff;border:none;border-radius:6px;padding:6px 12px;transition:background .3s,transform .3s}.logout{background-color:#007bff}.sidebar{background:#fff;border-right:1px solid #ddd;width:70px;height:calc(100vh - 70px);padding-top:10px;position:fixed;top:70px;left:0;overflow:hidden}.nav-sidebar-btn{appearance:none;box-shadow:none;cursor:pointer;color:#090808e8;background:0 0;border:none;outline:none;flex-shrink:0;justify-content:center;align-items:center;width:35px;height:38px;margin:8px 12px;padding:0;font-size:22px;display:flex}.nav-sidebar-btn:hover{color:#007bff;transform:scale(1.1)}.login-popup{z-index:9999;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.login-card{background:#fff;border-radius:10px;flex-direction:column;gap:12px;width:480px;padding:22px 20px;display:flex;position:relative}.login-card h3{color:#000;font-size:18px;font-weight:600}.login-card label{color:#000;font-size:13px;font-weight:500}.login-card input{border:none;border-bottom:1px solid #ddd;outline:none;padding:8px 4px;font-size:14px}.login-card input:focus{border-bottom:1px solid}.login-submit{color:#fff;cursor:pointer;background:#4b6bfb;border:none;border-radius:6px;margin-top:10px;padding:10px;font-weight:600}.login-close{cursor:pointer;color:#000;background:0 0;border:none;font-size:20px;position:absolute;top:10px;right:14px}.user-info{align-items:center;gap:12px;display:flex}.username{color:#333;font-weight:600}.logout-btn{color:#fff;cursor:pointer;background:#e74c3c;border:none;border-radius:4px;padding:6px 12px}.logout-btn:hover{background:#c0392b}:root{--primary-color:#2563eb;--primary-color-dark:#1d4ed8;--border-color:#e2e8f0;--font-color-dark:#1e293b;--card-bg:#fff;--card-shadow:0 1px 3px #00000014;--bg-light:#f1f5f9}body{color:#374151;background:#fff;margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.5}.main-header{border-bottom:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-right:50px;padding-bottom:15px;display:flex}.header-right{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.action-btn,.icon-btn,.sidebar-btn,.create-btn{cursor:pointer;box-sizing:border-box;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:6px;justify-content:center;align-items:center;gap:0;min-width:36px;height:36px;padding:0;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}.icon-btn,.sidebar-btn{border:1px solid #e2e8f0;min-width:36px;padding:0;font-size:14px}.create-btn{color:#fff;background:#111827;border:none;min-width:36px;height:36px;padding:0;font-weight:600}.label-btn{white-space:nowrap;gap:8px;font-size:13px;font-weight:600;width:auto!important;min-width:auto!important;padding:0 14px!important}.label-btn svg{flex-shrink:0}.btn-reanalyse{color:#fff!important;background:#2563eb!important;border:none!important}.btn-reanalyse:hover{background:#1d4ed8!important}.btn-back{color:#fff!important;background:#475569!important;border:none!important}.btn-back:hover{background:#334155!important}.table-container{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:100%;margin-top:20px;overflow:auto hidden}tbody td{color:#1e293b;vertical-align:middle;white-space:nowrap;padding:10px 14px;font-size:13px;font-weight:500}.form-drawer{z-index:9999;opacity:0;pointer-events:none;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;gap:12px;width:560px;max-width:85vw;height:calc(100vh - 100px);padding:0;transition:all .25s;display:flex;position:fixed;top:78px;left:90px;box-shadow:0 24px 64px #0000002e}.form-drawer.open{opacity:1;pointer-events:auto}.drawer-close{cursor:pointer;color:#64748b;background:0 0;border:none;justify-content:center;align-items:center;min-width:30px;height:30px;padding:0;font-size:14px;line-height:1;display:inline-flex;position:absolute;top:14px;right:18px}.drawer-input{box-sizing:border-box;color:#111827;background:0 0;border:none;border-bottom:1px solid #e2e8f0;outline:none;width:100%;padding:9px 0;font-size:13px;border-radius:0!important}.tabs-bar{align-items:center;gap:20px;display:flex}.tab{justify-content:center;align-items:center;display:flex}.tab button{color:#374151;cursor:pointer;background:#f1f5f9;border:1px solid #0000;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;transition:all .2s}.tab.active button{color:#2563eb;background:#fff;border:1px solid #2563eb;font-weight:600}@media (width<=1200px){.main-content{padding:18px}.form-drawer{width:520px;left:80px}}@media (width<=992px){.header-right{gap:8px}.form-drawer{width:480px;left:20px}}@media (width<=768px){.main-header{flex-direction:column;align-items:flex-start}.header-right{width:100%}.form-drawer{width:calc(100% - 24px);height:calc(100vh - 90px);top:70px;left:50%;transform:translate(-50%)}.table-container{padding:12px}}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (width<=768px){.filter-controls{grid-template-columns:1fr}.filter-header-bar{padding:12px 16px}.filter-actions{justify-content:stretch}.filter-clear-btn,.filter-apply-btn{flex:1}.filter-tag{padding:2px 8px;font-size:11px}}@media (width<=480px){.filter-header-title{flex-direction:row;align-items:center}.active-filter-tags{flex-direction:column;align-items:flex-start}}.task-drawer{z-index:1000;background:#fff;flex-direction:column;width:480px;height:100vh;transition:right .3s;display:flex;position:fixed;top:0;right:-480px;box-shadow:-4px 0 20px #00000014}.task-drawer.open{right:0}.task-drawer .drawer-title{color:#1a202c;border-bottom:1px solid #e2e8f0;flex-shrink:0;padding:20px 24px;font-size:18px;font-weight:600}.task-drawer .drawer-close{cursor:pointer;color:#a0aec0;background:0 0;border:none;font-size:24px;transition:color .2s;position:absolute;top:18px;right:20px}.task-drawer .drawer-close:hover{color:#dc2626}.task-drawer .drawer-scroll-area{flex:1;padding:20px 24px;overflow-y:auto}.task-drawer .drawer-submit{color:#fff;cursor:pointer;background:#6366f1;border:none;border-radius:8px;flex-shrink:0;margin:16px 24px 24px;padding:12px;font-size:16px;font-weight:600;transition:all .2s}.task-drawer .drawer-submit:hover{background:#4f46e5;box-shadow:0 4px 12px #6366f14d}.action-buttons .icon-btn{cursor:pointer;color:#4a5568;background:0 0;border:none;border-radius:4px;padding:4px 8px;font-size:14px;transition:all .2s}.action-buttons .icon-btn:hover{color:#1a202c;background:#f1f3f5}.action-buttons .task-btn{color:#6366f1}.action-buttons .task-btn:hover{color:#4f46e5;background:#eef2ff}.filter-header-bar{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:16px;padding:16px 20px;animation:.3s slideDown;box-shadow:0 2px 8px #0000000f}.filter-actions{grid-column:1/-1;justify-content:flex-end;align-items:center;gap:8px;display:flex}.filter-badge{color:#fff;background:#6366f1;border-radius:12px;margin-left:8px;padding:2px 10px;font-size:12px;font-weight:600}.status-badge{text-transform:capitalize;border-radius:12px;padding:3px 10px;font-size:12px;font-weight:500;display:inline-block}.status-converted{color:#7c3aed;background:#ede9fe}.status-lost{color:#dc2626;background:#fee2e2}.score-chip{border-radius:12px;padding:3px 10px;font-size:12px;font-weight:600;display:inline-block}@media (width<=768px){.task-drawer{width:100%;right:-100%}.task-drawer.open{right:0}.filter-controls{grid-template-columns:1fr}.filter-header-bar{padding:12px 16px}.filter-actions{justify-content:stretch}.filter-clear-btn,.filter-apply-btn{flex:1}.filter-tag{padding:2px 8px;font-size:11px}}@media (width<=480px){.filter-header-title{flex-direction:row;align-items:center}.active-filter-tags{flex-direction:column;align-items:flex-start}.action-buttons{flex-direction:column;gap:4px}}@media (width<=480px){.pagination-bar{flex-direction:column;align-items:flex-start}}.lead-details-wrapper{box-sizing:border-box;color:#374151;background:#fff;min-height:calc(100vh - 80px);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;line-height:1.5;position:absolute;top:80px;left:70px;right:0;overflow-x:hidden}html,body{overflow-x:hidden}.top-nav{background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:14px 22px;display:flex}.breadcrumb{color:#111827;font-size:13px;font-weight:700}.top-actions{align-items:center;gap:16px;display:flex}.admin-badge{color:#374151;background:#f1f5f9;border-radius:6px;padding:6px 10px;font-size:13px;font-weight:600}.status-dropdown{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;align-items:center;gap:6px;padding:7px 14px;font-size:13px;font-weight:600;transition:all .2s;display:flex}.status-dropdown:hover{background:#f9fafb}.status-dropdown .dot{background:#22c55e;border-radius:50%;width:7px;height:7px}.convert-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;justify-content:center;align-items:center;min-width:36px;height:36px;padding:0;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}.convert-btn:hover{background:#1d4ed8}.tabs-bar{background:#fff;border-bottom:1px solid #e2e8f0;align-items:center;gap:26px;height:65px;padding:0 22px;display:flex}.tab{color:#64748b;cursor:pointer;font-size:13px;font-weight:600}.tab-btn{color:#64748b;cursor:pointer;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;width:36px;min-width:36px;height:36px;padding:0;font-size:14px;transition:all .2s;display:inline-flex}.tab-btn:hover{color:#2563eb;background:#f1f5f9}.tab-btn.active{color:#fff;background:#2563eb;border-color:#2563eb}.tab.active{color:#2563eb;font-weight:600;position:relative}.tab.active:after{content:"";background:#2563eb;width:100%;height:2px;position:absolute;bottom:-14px;left:0}.lead-id{color:#64748b;margin-left:auto;font-size:13px}.details-layout{width:100%;min-height:auto;display:flex}.activity-section{box-sizing:border-box;flex:1;width:100%;min-width:0;padding:0}.activity-section h3{color:#111827;margin-bottom:2px;font-size:16px;font-weight:600}.activity-entry{color:#374151;align-items:center;gap:6px;margin-bottom:6px;font-size:13px;display:flex}.activity-date{color:#64748b;margin-bottom:25px;font-size:12px}.new-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;width:fit-content;padding:7px 16px;font-size:13px;font-weight:600;transition:all .2s;position:relative;bottom:9%;left:93%}.new-btn:hover{background:#1d4ed8}.info-section{background:#f1f5f9;border-left:1px solid #e2e8f0;width:420px;padding:2px 18px}.lead-profile{align-items:center;gap:14px;margin-left:auto;display:flex}.profile-circle{color:#fff;background:#2563eb;border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;font-size:18px;font-weight:700;display:flex}.profile-name{color:#111827;font-size:17px;font-weight:700}.profile-icons{color:#64748b;cursor:pointer;gap:12px;margin-left:auto;font-size:18px;display:flex}.info-block{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:0;padding:3px;transition:box-shadow .18s,transform .18s}.info-block:hover{transform:translateY(-1px);box-shadow:0 4px 14px #00000017}.block-title{z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;padding:14px 16px;font-size:16px;font-weight:600;position:sticky;top:0;margin-top:0!important}.info-row{color:#374151;border-bottom:1px dashed #e2e8f0;justify-content:space-between;padding:10px 0;font-size:13px;display:flex}.info-row span{color:#64748b}.task-details-empty{color:#94a3b8;text-align:center;padding:16px 0;font-size:13px;font-style:italic}.task-status-pill{text-transform:capitalize;color:#1a2332;background:#e8ecf1;border-radius:12px;padding:2px 10px;font-size:11px;font-weight:600;display:inline-block}.task-status-pill.backlog{color:#6b7a8f;background:#eef1f5}.task-status-pill.started{color:#4a5b8c;background:#e6eaf5}.task-status-pill.inprogress{color:#4a6cf7;background:#e8f0fe}.task-status-pill.completed{color:#1f9d55;background:#e6f9ef}.details-layout{align-items:flex-start;width:100%;min-width:0;min-height:auto;display:flex;overflow-x:hidden}.activity-section{box-sizing:border-box;background:#fff;flex:1;width:100%;min-width:0;padding:0}.task-modal-overlay{z-index:1000;background:#0f172a59;width:100vw;height:100vh;position:fixed;top:0;left:0}.task-modal{z-index:1001;scrollbar-width:none;-ms-overflow-style:none;background:#fff;border-radius:12px;width:370px;max-width:calc(100vw - 48px);height:calc(100vh - 150px);max-height:calc(100vh - 150px);animation:.2s taskModalIn;position:fixed;top:110px;right:24px;overflow-y:auto;box-shadow:0 20px 50px #00000040}.task-modal::-webkit-scrollbar{display:none}@keyframes taskModalIn{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:translate(0)}}.task-modal-header{background:#c7cad0;border-bottom:1px solid #e2e8f0;border-radius:12px 12px 0 0;justify-content:space-between;align-items:center;padding:18px 22px;display:flex;position:sticky;top:0}.task-modal-header h4{color:#111827;margin:0;font-size:19px;font-weight:700}.task-modal-close{color:#374151;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:4px;font-size:21px;line-height:1;display:inline-flex}.task-modal-close:hover{background:#00000014}.task-modal-body{padding:4px 22px 20px}.task-modal-body .info-row{padding:11px 0;font-size:15px}.task-modal-body .info-row span{font-size:15px}.task-modal-body .task-status-pill{padding:3px 12px;font-size:13px}.task-modal-body.task-modal-form{flex-direction:column;gap:4px;padding:18px 22px 30px;display:flex}.task-modal-form label{color:#4b5563;margin-top:10px;font-size:13px;font-weight:500}.task-modal-form input,.task-modal-form select,.task-modal-form textarea{resize:none;color:#111827;box-sizing:border-box;background:0 0;border:none;border-bottom:1px solid #ddd;outline:none;width:100%;padding:9px 0;font-family:inherit;font-size:14px}.task-modal-form input:focus,.task-modal-form select:focus,.task-modal-form textarea:focus{border-bottom:1px solid #4a6cf7}.task-modal-form input:disabled{color:#9ca3af}.task-modal-actions{justify-content:flex-end;align-items:center;margin-top:18px;display:flex}.task-modal-actions .submit{color:#fff;cursor:pointer;background:#4a6cf7;border:none;border-radius:50%;justify-content:center;align-items:center;width:40px;min-width:40px;height:40px;padding:0;font-size:15px;line-height:1;transition:background .2s,transform .15s;display:flex;box-shadow:0 4px 10px #4a6cf759}.task-modal-actions .submit:hover{background:#3a57d1;transform:translateY(-1px)}.task-modal-actions .submit:active{transform:translateY(0)}.task-modal-actions .submit:disabled{cursor:not-allowed;box-shadow:none;background:#a5b4fc;transform:none}.comments-wrapper{box-sizing:border-box;background:#fff;border:1px solid #eee;flex:1;width:100%;min-width:0}.comments-header{box-sizing:border-box;z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;justify-content:space-between;width:100%;padding:14px 22px;font-size:16px;font-weight:600;display:flex;position:sticky;top:0}.comments-header h3{color:#111827;margin-bottom:2px;font-size:16px;font-weight:600}.new-comments-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;justify-content:center;align-items:center;width:36px;min-width:36px;height:36px;font-size:16px;transition:background .2s;display:flex}.new-comments-btn:hover{background:#1d4ed8}.no-comments{text-align:center;color:#777;padding:40px 20px;font-size:14px}.no-comments button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:50%;width:36px;height:36px;margin-top:10px;font-size:16px;transition:background .2s}.no-comments button:hover{background:#1d4ed8}.comment-box{box-sizing:border-box;background:#c7cad0;border-bottom:1px solid #eee;width:100%;padding:14px 22px}.comment-box textarea{resize:vertical;color:#333;background:#f9f9f9;border:1px solid #ddd;border-radius:6px;width:100%;min-height:80px;padding:10px;font-family:inherit;font-size:14px;transition:border-color .2s}.comment-box textarea:focus{background:#fff;border-color:#2563eb;outline:none}.comment-actions{justify-content:flex-end;gap:10px;margin-top:10px;display:flex}.discard{color:#333;cursor:pointer;background:#e5e7eb;border:none;border-radius:6px;padding:8px 16px;font-size:14px;transition:background .2s}.discard:hover{background:#d1d5db}.submit{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;padding:8px 16px;font-size:14px;transition:background .2s}.submit:hover{background:#1d4ed8}.comment-timeline{box-sizing:border-box;background:#fafbfc;flex-direction:column;gap:12px;width:100%;height:calc(100vh - 240px);padding:14px 22px;display:flex;overflow:hidden auto}.comment-timeline::-webkit-scrollbar{width:6px}.comment-timeline::-webkit-scrollbar-track{background:0 0}.comment-timeline::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.comment-timeline::-webkit-scrollbar-thumb:hover{background:#b5b5b5}.comment-item{color:#0f172a;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:12px;padding:14px;transition:transform .15s,box-shadow .15s;display:block;box-shadow:0 10px 30px #0f172a14}.comment-item:last-child{margin-bottom:0}.comment-item:hover{transform:translateY(-2px);box-shadow:0 16px 40px #0f172a1f}.comment-user{color:#666;align-items:center;gap:8px;width:100%;margin-bottom:8px;font-size:14px;display:flex}.comment-user strong{color:#0f172a;font-size:.9rem;font-weight:600}.avatar{color:#4a6cf7;background:#e8f0fe;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;font-weight:600;display:flex}.time{color:#94a3b8;margin-left:auto;font-size:11px}.comment-text{color:#334155;background:0 0;margin-left:0;padding:0;font-size:13px;line-height:1.5}*{box-sizing:border-box}.tasks-container,.tasks-container *{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.tasks-container{background-color:#fff;border:none;width:100%;min-width:0;padding:0;overflow-x:hidden}.tasks-top-header{box-sizing:border-box;z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;justify-content:space-between;align-items:center;width:100%;margin-bottom:15px;padding:10px 22px;font-size:16px;font-weight:600;display:flex;position:sticky;top:0}.tasks-top-header h2{color:#0f172a;font-size:1rem;font-weight:600}.tasks-top-header .create-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;justify-content:center;align-items:center;width:36px;min-width:36px;height:36px;padding:0;font-size:16px;font-weight:600;transition:background .2s;display:inline-flex}.tasks-top-header .create-btn:hover{background:#1d4ed8}.tasks-top-header .create-btn i{color:#fff;font-size:16px;line-height:1}.kanban-board{box-sizing:border-box;flex-wrap:nowrap;gap:12px;width:100%;padding:0 22px 10px;display:flex;overflow:hidden}.kanban-columns{background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;flex:1 1 0;min-width:0}.tasks-container>div[style*=margin-bottom]{width:100%;min-width:0;overflow:hidden}.kanban-column-header{color:#000;background-color:#fff;border-bottom:2px solid #0000;border-radius:14px 14px 0 0;justify-content:space-between;align-items:center;padding:12px 15px;font-size:.85rem;font-weight:600;display:flex}.kanban-column-header .count{color:#475569;background-color:#fff;border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:500}.kanban-column-header.backlog,.kanban-column-header.started,.kanban-column-header.inprogress,.kanban-column-header.completed{border-bottom-color:#e5e7eb}.kanban-cards{flex-direction:column;gap:12px;padding:12px;display:flex}.kanban-card{cursor:pointer;color:#000;word-wrap:break-word;overflow-wrap:break-word;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:0;padding:14px;transition:transform .15s,box-shadow .15s;box-shadow:0 10px 30px #0f172a14}.kanban-card h4,.kanban-card .card-meta,.kanban-card .card-dates{white-space:normal;word-wrap:break-word;overflow-wrap:break-word}.kanban-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px #0f172a1f}.kanban-card h4{color:#0f172a;margin-bottom:6px;font-size:.9rem;font-weight:600}.card-meta,.card-dates{color:#475569;margin-top:4px;font-size:.75rem}.task-box{z-index:9999;color:#111827;background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;gap:14px;width:420px;max-width:85vw;max-height:calc(100vh - 130px);padding:0 0 14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;position:fixed;top:90px;left:110px;overflow:hidden;box-shadow:0 24px 64px #0000002e}.task-box h3{color:#111827;border-bottom:1px solid #e2e8f0;flex-shrink:0;margin:0 0 4px;padding:14px 22px;font-size:16px;font-weight:700}.task-box>input,.task-box>select,.task-box>label{margin-left:22px;margin-right:22px;display:block}.task-box>input[type=text],.task-box>select{margin-bottom:6px}.task-box>label{margin-top:4px;margin-bottom:0}.task-box>input[type=date]{margin-bottom:6px}.task-box input,.task-box input[type=date],.task-box select{box-sizing:border-box;color:#111827;background:0 0;border:none;border-bottom:1px solid #e2e8f0;border-radius:0;outline:none;width:auto;padding:9px 0;font-size:13px;transition:border .2s}.task-box input:focus,.task-box select:focus{border-bottom-color:#2563eb}.task-box label{color:#374151;font-size:13px;font-weight:600;display:block}.task-actions{background:#fff;border-top:1px solid #e2e8f0;flex-shrink:0;justify-content:flex-end;gap:10px;margin-top:8px;padding:12px 22px 0;display:flex}.task-actions .discard,.task-actions .submit{cursor:pointer;border-radius:6px;justify-content:center;align-items:center;height:36px;padding:0 16px;font-size:13px;font-weight:600;transition:all .2s;display:inline-flex}.task-actions .discard{color:#374151;background:#fff;border:1px solid #d1d5db}.task-actions .discard:hover{background:#f9fafb}.task-actions .submit{color:#fff;background:#2563eb;border:none;font-weight:600}.task-actions .submit:hover{background:#1d4ed8}.task-actions .discard i,.task-actions .submit i{font-size:16px;line-height:1}.groupby-wrapper{position:relative}.groupby-menu{z-index:100;color:#000;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:180px;position:absolute;top:44px;left:auto;right:0;box-shadow:0 10px 30px #0f172a26}.groupby-menu div{cursor:pointer;padding:10px 14px;font-size:.85rem}.groupby-menu .divider{background:#e2e8f0;height:1px;margin:4px 0}.groupby-grid{grid-template-columns:repeat(4,1fr);gap:16px;display:grid}.task-box input[type=date]{color:#111827;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;cursor:pointer;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:auto;padding:9px 12px;position:relative}.task-box input[type=date]:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.task-box input[type=date]::-webkit-calendar-picker-indicator{opacity:.7;cursor:pointer;filter:invert(.3);padding:2px}.task-box input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:1}.calls-header{box-sizing:border-box;z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;justify-content:space-between;align-items:center;width:100%;padding:14px 22px;font-size:16px;font-weight:600;display:flex;position:sticky;top:0}.calls-header h3{color:#111827;margin-bottom:2px;font-size:16px;font-weight:600}.log-call-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;justify-content:center;align-items:center;width:36px;min-width:36px;height:36px;font-size:16px;transition:background .2s;display:flex}.log-call-btn:hover{background:#1d4ed8}.call-kanban-cards{box-sizing:border-box;flex-direction:column;gap:12px;width:100%;padding:4px 22px;display:flex}.call-kanban-card{color:#0f172a;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;transition:transform .15s,box-shadow .15s;box-shadow:0 10px 30px #0f172a14}.call-kanban-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px #0f172a1f}.call-kanban-card .card-header{justify-content:space-between;align-items:flex-start;margin-bottom:6px;display:flex}.call-kanban-card .card-header h4{color:#0f172a;align-items:center;gap:8px;margin:0;font-size:.9rem;font-weight:600;display:flex}.call-kanban-card-icon{color:#4a6cf7;font-size:13px;display:inline-flex}.call-kanban-card .card-meta{flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 8px;display:flex}.call-type-badge{color:#4a6cf7;background:#e8f0fe;border-radius:10px;padding:2px 10px;font-size:11px;font-weight:500;display:inline-block}.call-status-badge{color:#4a5568;text-transform:capitalize;background:#eef1f5;border-radius:10px;padding:2px 10px;font-size:11px;font-weight:500;display:inline-block}.call-status-badge.completed{color:#2e7d32;background:#e8f5e9}.call-status-badge.inprogress{color:#e65100;background:#fff3e0}.call-from-to{color:#334155;align-items:center;gap:8px;margin-bottom:8px;font-size:13px;display:flex}.call-arrow{color:#4a6cf7;font-size:11px}.call-comments{color:#475569;white-space:pre-wrap;word-break:break-word;background:#f8fafc;border:1px solid #eef1f5;border-radius:8px;margin-bottom:8px;padding:8px 10px;font-size:12px;line-height:1.4}.call-kanban-card .card-timestamps{color:#94a3b8;border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:12px;padding-top:8px;font-size:11px;display:flex}.call-kanban-card .card-timestamps small{align-items:center;gap:4px;display:inline-flex}.no-calls{color:#777;flex-direction:column;justify-content:center;align-items:center;height:300px;display:flex}.add-board-form-panel{z-index:9999;box-sizing:border-box;color:#000;background:#fff;border:1px solid #dcdcdc;border-radius:12px;flex-direction:column;gap:10px;width:270px;height:calc(100vh - 145px);padding:20px 14px 14px 18px;display:flex;position:fixed;overflow-y:hidden;box-shadow:0 10px 25px #00000014;top:350px!important;left:210px!important}.form-close-btn{cursor:pointer;color:#333;background:0 0;border:none;font-size:22px;line-height:1;position:absolute;top:10px;right:14px}.add-board-form-panel h3{color:#222;margin-bottom:6px;font-size:16px;font-weight:600}.add-board-form-panel input,.add-board-form-panel input[type=date],.add-board-form-panel input[type=text],.add-board-form-panel input[type=number],.add-board-form-panel select{box-sizing:border-box;color:#000;background:0 0;border:none;border-bottom:1px solid #ddd;outline:none;width:100%;padding:10px 0;font-size:14px;border-radius:0!important}.add-board-form-panel::-webkit-scrollbar{width:5px}.add-board-form-panel::-webkit-scrollbar-thumb{background:#bdbdbd;border-radius:10px}.add-board-form-panel::-webkit-scrollbar-track{background:#f1f1f1}.notes-section{box-sizing:border-box;width:100%;padding-top:2px;position:relative}.notes-header{box-sizing:border-box;z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;justify-content:space-between;align-items:center;width:100%;padding:14px 22px;font-size:16px;font-weight:600;display:flex;position:sticky;top:0}.notes-header h3{color:#111827;margin:0;font-size:16px;font-weight:600}.add-note-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;justify-content:center;align-items:center;width:36px;min-width:36px;height:36px;font-size:16px;transition:background .2s;display:flex}.add-note-btn:hover{background:#3a57d1}.notes-list{box-sizing:border-box;background:#fafbfc;flex-direction:column;gap:12px;width:100%;padding:14px 22px;display:flex}.note-card{color:#0f172a;background-color:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;transition:transform .15s,box-shadow .15s;box-shadow:0 10px 30px #0f172a14}.note-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px #0f172a1f}.note-card .card-header{margin-bottom:6px}.note-card h4{color:#0f172a;margin:0;font-size:.9rem;font-weight:600}.note-card p{color:#334155;margin:0;font-size:13px;line-height:1.5}.note-card .card-timestamps{color:#94a3b8;border-top:1px solid #f1f5f9;margin-top:10px;padding-top:8px;font-size:11px}.note-card .card-timestamps small{align-items:center;gap:4px;display:inline-flex}.empty{text-align:center;color:#9ca3af;padding:15px 0;font-size:13px}.add-board-form-panel h3{color:#111827;margin:0 0 5px;font-size:16px;font-weight:600}.add-board-form-panel label{color:#2d2d2eec;margin-top:2px;font-size:14px;font-weight:500}.add-board-form-panel input,.add-board-form-panel textarea{resize:none;color:#000;background:0 0;border:none;border-bottom:1px solid #ddd;outline:none;width:100%;padding:10px 0;font-family:inherit;font-size:14px}.add-board-form-panel input:focus,.add-board-form-panel textarea:focus{border-bottom:1px solid #2d2d2e}.submit-btn:disabled{cursor:not-allowed;background:#a5b4fc}@media (width<=768px){.add-board-form-panel{width:90%;left:50%}}.activity-timeline{box-sizing:border-box;background:#fff;width:100%;padding:0}.activity-timeline::-webkit-scrollbar{width:6px}.activity-timeline::-webkit-scrollbar-track{background:0 0}.activity-timeline::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.activity-timeline::-webkit-scrollbar-thumb:hover{background:#b5b5b5}.activity-loading,.empty-activity{color:#777;padding:20px;font-size:14px}.activity-kanban-cards{box-sizing:border-box;background:#fafbfc;flex-direction:column;gap:10px;width:100%;padding:14px 22px;display:flex}.activity-kanban-card{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;transition:transform .15s,box-shadow .15s;box-shadow:0 10px 30px #0f172a14}.activity-kanban-card:hover{transform:translateY(-2px);box-shadow:0 16px 40px #0f172a1f}.activity-kanban-card.clickable{cursor:pointer}.activity-kanban-card.clickable:focus-visible{outline-offset:-2px;outline:2px solid #4a6cf7}.activity-kanban-card.selected{background:#eef2ff;border-color:#4a6cf7;box-shadow:inset 3px 0 #4a6cf7}.activity-kanban-card .card-header{justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:6px;display:flex}.activity-kanban-card .card-header h4{color:#1a2332;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;display:flex}.activity-card-icon{color:#4a6cf7;font-size:14px;display:inline-flex}.activity-kanban-card .card-actions{opacity:0;flex-shrink:0;gap:2px;transition:opacity .2s;display:flex}.activity-kanban-card:hover .card-actions{opacity:1}.activity-kanban-card .card-actions button{cursor:pointer;color:#9aa6b5;background:0 0;border:none;border-radius:4px;padding:4px 7px;font-size:12px;transition:all .2s}.activity-kanban-card .card-actions .edit-btn:hover{color:#4a6cf7;background:#eef2f7}.activity-kanban-card .card-meta{color:#6b7a8f;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 6px;font-size:12px;display:flex}.task-type-badge{color:#4a6cf7;text-transform:capitalize;background:#e8f0fe;border-radius:10px;padding:2px 10px;font-size:11px;font-weight:500;display:inline-block}.task-type-badge.call{color:#2e7d32;background:#e8f5e9}.task-type-badge.comment{color:#e65100;background:#fff3e0}.task-type-badge.note{color:#8e24aa;background:#f3e8fd}.lead-status-badge{color:#4a5568;text-transform:capitalize;background:#eef1f5;border-radius:10px;padding:2px 10px;font-size:11px;font-weight:500;display:inline-block}.activity-description{color:#333;margin:4px 0 6px;font-size:13px;line-height:1.4}.card-timestamps{color:#9aa6b5;border-top:1px solid #f0f2f5;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:8px;font-size:11px;display:flex}.card-timestamps small{align-items:center;gap:4px;display:inline-flex}.view-details-hint{color:#4a6cf7;align-items:center;gap:4px;font-weight:600;display:inline-flex}.view-details-hint i{font-size:10px}.activity-wrapper{box-sizing:border-box;background:#fff;border:1px solid #eee;width:100%}.activity-title{box-sizing:border-box;z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;width:100%;margin:0;padding:14px 22px;font-size:16px;font-weight:600;position:sticky;top:0}:root{--primary-color:#2563eb;--primary-color-dark:#1d4ed8;--border-color:#e2e8f0;--font-color-dark:#1e293b;--card-bg:#fff;--card-shadow:0 1px 3px #00000014;--bg-light:#f1f5f9;--panel-margin:32px}body{color:#374151;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.5}.content-wrapper{box-sizing:border-box;background:#f1f5f9;width:100%;min-height:100vh;display:flex}.action-btn,.icon-btn{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;justify-content:center;align-items:center;gap:0;min-width:34px;height:34px;padding:0;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}.create-btn{color:#fff;cursor:pointer;background:#111827;border:none;border-radius:6px;justify-content:center;align-items:center;min-width:34px;height:34px;padding:0;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}td.numeric,th.numeric{text-align:right}thead th:last-child,tbody td:last-child{text-align:center}.lead-drawer{z-index:9999;opacity:0;pointer-events:none;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;gap:10px;width:560px;max-width:85vw;height:calc(100vh - 95px);padding:0;transition:all .25s;display:flex;position:fixed;top:78px;left:90px;box-shadow:0 24px 64px #0000002e}.lead-drawer.open{opacity:1;pointer-events:auto}.drawer-title{color:#111827;border-bottom:1px solid #e2e8f0;margin-bottom:0;padding:18px 24px;font-size:17px;font-weight:700}.drawer-close{cursor:pointer;color:#64748b;background:0 0;border:none;font-size:22px;line-height:1;position:absolute;top:16px;right:18px}.drawer-scroll-area{flex:1;margin-top:0;padding:20px 24px;overflow-y:auto}.drawer-scroll-area::-webkit-scrollbar{width:5px}.drawer-scroll-area::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:10px}.drawer-scroll-area::-webkit-scrollbar-track{background:#f1f5f9}.drawer-field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.drawer-label{color:#374151;margin-top:4px;margin-bottom:6px;font-size:13px;font-weight:600}.drawer-input{box-sizing:border-box;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;padding:9px 12px;font-size:13px;transition:all .15s}.drawer-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.drawer-submit{color:#fff;cursor:pointer;background:#2563eb;border:none;border-top:1px solid #e2e8f0;border-radius:8px;justify-content:center;align-items:center;min-width:36px;height:36px;margin:16px 24px;padding:0;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}.filter-header-bar{background:#fff;border:1px solid #e2e8f0;border-radius:8px;width:1370px;margin-top:-6px;padding:16px 20px;animation:.3s slideDown;box-shadow:0 2px 8px #0000000f}@keyframes spin{to{transform:rotate(360deg)}}.filter-header-title{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.filter-header-title span{color:#2d3748;font-size:15px;font-weight:600}.filter-close-btn{color:#a0aec0;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;padding:4px;transition:all .2s;display:flex}.filter-close-btn:hover{color:#dc2626;background:#fee2e2}.filter-controls{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:16px;display:grid}.filter-controls--row{flex-wrap:wrap;align-items:flex-end;gap:16px;display:flex}.filter-group{flex-direction:column;gap:4px;display:flex}.filter-group--batch{flex:260px;min-width:220px;max-width:420px}.filter-group label{color:#4a5568;text-transform:uppercase;letter-spacing:.5px;font-size:12px;font-weight:600}.filter-input{background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:100%;padding:8px 12px;font-size:13px;transition:border-color .2s}.filter-input:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px #6366f11a}.filter-input[type=date]{color:#2d3748;cursor:pointer}.filter-input[type=date]::-webkit-calendar-picker-indicator{cursor:pointer}.filter-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.filter-clear-btn{color:#4a5568;cursor:pointer;background:#f1f3f5;border:none;border-radius:6px;padding:8px 16px;font-size:13px;font-weight:500;transition:all .2s}.filter-clear-btn:hover{color:#dc2626;background:#fee2e2}.filter-apply-btn{color:#fff;cursor:pointer;background:#6366f1;border:none;border-radius:6px;padding:8px 20px;font-size:13px;font-weight:600;transition:all .2s}.filter-apply-btn:hover{background:#4f46e5;box-shadow:0 4px 12px #6366f14d}.active-filter-tags{border-top:1px solid #f0f0f0;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;padding-top:12px;display:flex}.active-tags-label{color:#4a5568;font-size:12px;font-weight:500}.filter-tag{color:#4f46e5;background:#eef2ff;border-radius:16px;align-items:center;gap:4px;padding:4px 10px;font-size:12px;font-weight:500;display:inline-flex}.filter-tag svg{cursor:pointer;color:#4f46e5;width:14px;height:14px;transition:color .2s}.filter-tag svg:hover{color:#dc2626}.active-filters-bulk-row{border-top:1px solid #f0f0f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-top:16px;padding-top:12px;display:flex}.active-filters-bulk-row .active-filter-tags--inline{border-top:none;margin-top:0;padding-top:0}.proposal-bulk-actions{flex-shrink:0;align-items:center;gap:10px;margin-left:auto;display:flex}.proposal-bulk-btn{cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;padding:0;font-size:15px;line-height:1;transition:all .2s;display:inline-flex}.proposal-bulk-btn svg{width:16px;height:16px}.proposal-bulk-btn--generate{color:#4f46e5;background:#eef2ff;border:1px solid #c7d2fe}.proposal-bulk-btn--generate:hover{background:#e0e7ff;box-shadow:0 4px 12px #6366f133}.proposal-bulk-btn--send{color:#fff;background:#2563eb}.proposal-bulk-btn--send:hover{background:#1d4ed8;box-shadow:0 4px 12px #2563eb59}@media (width<=640px){.active-filters-bulk-row{flex-direction:column;align-items:flex-start}.proposal-bulk-actions{margin-left:0}}.action-btn.active{color:#4f46e5;background:#eef2ff}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideInRight{0%{opacity:0;transform:translate(40px)}to{opacity:1;transform:translate(0)}}.task-form-group input,.task-form-group select{background:#fff;border:1px solid #d1d5db;border-radius:8px;width:100%;padding:10px 14px;font-size:14px;transition:all .2s}.action-buttons{justify-content:center;align-items:center;gap:6px;display:flex}.icon-btn{cursor:pointer;color:#6b7280;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;transition:all .2s;display:flex}.icon-btn:hover{color:#1f2937;background:#f3f4f6}.task-btn{color:#6366f1}.task-btn:hover{color:#4f46e5;background:#eef2ff}.status-badge{border-radius:12px;padding:4px 12px;font-size:13px;font-weight:500;display:inline-block}.status-interested{color:#1e40af;background:#dbeafe}.status-not-interested{color:#991b1b;background:#fee2e2}.status-new{color:#065f46;background:#d1fae5}.status-contacted{color:#92400e;background:#fef3c7}.status-nurture{color:#5b21b6;background:#ede9fe}.status-qualified{color:#1e40af;background:#dbeafe}.status-unqualified{color:#4b5563;background:#f3f4f6}.status-junk{color:#991b1b;background:#fecaca}@media (width<=768px){.task-modal-content{max-width:100%;margin:10px}.task-form-row{grid-template-columns:1fr}.task-modal-header{flex-direction:column;align-items:flex-start;gap:12px}.task-modal-header h3{font-size:18px}.task-modal-footer{flex-direction:column}.task-modal-footer button{justify-content:center;width:100%}}@media (width<=768px){.filter-controls{grid-template-columns:1fr}.filter-controls--row{flex-direction:column;align-items:stretch}.filter-group--batch{max-width:none}.proposal-bulk-actions{justify-content:flex-end;margin-left:0}.filter-header-bar{padding:12px 16px}.filter-actions{justify-content:stretch}.filter-clear-btn,.filter-apply-btn{flex:1}.filter-tag{padding:2px 8px;font-size:11px}}@media (width<=480px){.filter-header-title{flex-direction:row;align-items:center}.active-filter-tags{flex-direction:column;align-items:flex-start}}@media (width<=480px){.pagination-bar{flex-direction:column;align-items:flex-start}}*{box-sizing:border-box;margin:0;padding:0}.tasks-page{box-sizing:border-box;background:#f0f2f5;width:auto;min-height:100vh;padding:20px 24px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;position:absolute;top:80px;left:70px;right:0}.tasks-header{background:#c7cad0;border-bottom:1px solid #e8ecf1;justify-content:space-between;align-items:center;margin-bottom:6px;display:flex;border-radius:10px 10px 0 0!important;padding:12px 20px!important}.tasks-header .left-section{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.tasks-header h1{color:var(--ui-text-strong);font-size:19px;font-weight:700}.tasks-header .stage-label{color:#6b7a8f;font-size:14px;font-weight:400}.tasks-header .live-badge{color:#4a6cf7;letter-spacing:.2px;background:#e8f0fe;border-radius:12px;padding:3px 12px;font-size:11px;font-weight:600}.tasks-header .right-section{align-items:center;gap:12px;display:flex}.tasks-header .header-actions{align-items:center;gap:14px;display:flex}.stage-view-btn{color:#4a6cf7;cursor:pointer;background:#fff;border:1px solid #4a6cf7;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;padding:0;font-size:13px;font-weight:600;transition:all .2s;display:flex}.stage-view-btn i{font-size:13px}.stage-view-btn:hover{background:#eef2ff;transform:translateY(-1px)}.stage-view-btn.active{color:#fff;background:#4a6cf7;box-shadow:0 4px 12px #4a6cf74d}.create-task-btn{color:#fff;cursor:pointer;background:#4a6cf7;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;padding:0;font-size:13px;font-weight:600;transition:all .2s;display:flex}.create-task-btn:hover{background:#3a5cd9;transform:translateY(-1px);box-shadow:0 4px 12px #4a6cf74d}.create-task-btn i{font-size:14px}.stages-stats{border-bottom:1px solid #e8ecf1;align-items:center;gap:24px;margin-bottom:16px;padding:14px 0 12px;display:flex}.stages-stats .stage-stat{align-items:center;gap:6px;display:flex}.stages-stats .stage-stat .dot{border-radius:50%;width:8px;height:8px;display:inline-block}.stages-stats .stage-stat .dot.leads{background:#4a6cf7}.stages-stats .stage-stat .dot.contacts{background:#2ecc71}.stages-stats .stage-stat .dot.deals{background:#f39c12}.stages-stats .stage-stat .label{color:#6b7a8f;font-size:13px;font-weight:500}.stages-stats .stage-stat .count{color:#1a2332;font-size:14px;font-weight:600}.stages-stats .total-items{color:#6b7a8f;align-items:center;gap:6px;margin-left:auto;font-size:13px;display:flex}.stages-stats .total-items .number{color:#1a2332;background:#e8ecf1;border-radius:4px;padding:0 12px;font-size:18px;font-weight:700}.filters-sections{background:0 0;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:20px;padding:0;display:flex}.search-bar input{color:#1a2332;background:#fff;border:1px solid #dce0e6;border-radius:6px;width:100%;padding:8px 14px;font-size:13px;transition:all .2s}.search-bar input::placeholder{color:#9aa6b5}.search-bar input:focus{border-color:#4a6cf7;outline:none;box-shadow:0 0 0 3px #4a6cf714}.filter-select{cursor:pointer;color:#1a2332;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236b7a8f' d='M5 6L0 0h10z'/%3E%3C/svg%3E") right 10px center no-repeat;border:1px solid #dce0e6;border-radius:6px;min-width:120px;padding:8px 28px 8px 12px;font-size:13px;transition:all .2s}.filter-select:hover{border-color:#b8c2ce}.filter-select:focus{border-color:#4a6cf7;outline:none;box-shadow:0 0 0 3px #4a6cf714}.date-filter-wrapper{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.date-filter-select{min-width:130px}.custom-date-range{background:#fff;border:1px solid #dce0e6;border-radius:6px;align-items:center;gap:6px;padding:3px 8px;display:flex}.custom-date-range .date-input{color:#1a2332;background:0 0;border:none;border-radius:4px;width:120px;padding:5px 8px;font-size:12px}.custom-date-range .date-input:focus{outline:none}.custom-date-range .date-input::placeholder{color:#9aa6b5}.date-separator{color:#9aa6b5;font-size:12px;font-weight:500}.kanban-board{grid-template-columns:repeat(4,1fr);gap:16px;display:grid}.kanban-columns{background:#fff;border:1px solid #e8ecf1;border-radius:8px;flex-direction:column;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000000f}.kanban-column-header{color:#1a2332;text-transform:uppercase;letter-spacing:.3px;background:#f8f9fb;border-bottom:1px solid #e8ecf1;justify-content:space-between;align-items:center;padding:12px 16px;font-size:13px;font-weight:600;display:flex}.kanban-column-header .count{color:#1a2332;background:#e8ecf1;border-radius:12px;padding:1px 10px;font-size:12px;font-weight:600}.kanban-column-header.backlog{background:#f8f9fb;border-bottom:3px solid #9aa6b5}.kanban-column-header.started{background:#f8f9fb;border-bottom:3px solid #6b7a8f}.kanban-column-header.inprogress{background:#f8f9fb;border-bottom:3px solid #4a6cf7}.kanban-column-header.completed{background:#f8f9fb;border-bottom:3px solid #2ecc71}.kanban-column-header.stage-contacts{background:#f8f9fb;border-bottom:3px solid #4a6cf7}.kanban-column-header.stage-leads{background:#f8f9fb;border-bottom:3px solid #f5a623}.kanban-column-header.stage-deals{background:#f8f9fb;border-bottom:3px solid #9b59b6}.kanban-column-header.stage-customerwon{background:#f8f9fb;border-bottom:3px solid #2ecc71}.kanban-column-header.stage-customerlost{background:#f8f9fb;border-bottom:3px solid #e74c3c}.kanban-cards{background:#fafbfc;flex:1;max-height:500px;padding:10px;overflow-y:auto}.kanban-cards::-webkit-scrollbar{width:4px}.kanban-cards::-webkit-scrollbar-track{background:#f0f2f5;border-radius:2px}.kanban-cards::-webkit-scrollbar-thumb{background:#dce0e6;border-radius:2px}.kanban-cards::-webkit-scrollbar-thumb:hover{background:#b8c2ce}.kanban-card{background:#fff;border:1px solid #e8ecf1;border-radius:6px;margin-bottom:8px;padding:12px 14px;transition:all .2s;box-shadow:0 1px 2px #00000008}.kanban-card:hover{border-color:#d0d6df;transform:translateY(-1px);box-shadow:0 4px 12px #0000000f}.kanban-card:last-child{margin-bottom:0}.card-header{justify-content:space-between;align-items:flex-start;margin-bottom:4px;display:flex}.card-header .card-name{color:#1a2332;font-size:14px;font-weight:600;line-height:1.3}.card-header .card-email{color:#6b7a8f;word-break:break-all;margin-top:1px;font-size:12px;font-weight:400;display:block}.card-actions{opacity:0;flex-shrink:0;gap:2px;transition:opacity .2s;display:flex}.kanban-card:hover .card-actions{opacity:1}.card-actions button{cursor:pointer;color:#9aa6b5;background:0 0;border:none;border-radius:4px;padding:2px 6px;font-size:12px;transition:all .2s}.card-actions .edit-btn:hover{color:#4a6cf7;background:#eef2f7}.card-actions .delete-btn:hover{color:#e74c3c;background:#fef0f0}.card-meta{flex-wrap:wrap;align-items:center;gap:4px;margin:6px 0 4px;display:flex}.card-meta .status-badge{border-radius:10px;padding:1px 10px;font-size:11px;font-weight:500;display:inline-block}.card-meta .status-badge.active{color:#2e7d32;background:#e8f5e9}.card-meta .status-badge.inactive{color:#c62828;background:#fce4ec}.card-meta .status-badge.lead{color:#4a6cf7;background:#e8f0fe}.card-meta .status-badge.contact{color:#2e7d32;background:#e8f5e9}.card-meta .status-badge.deal{color:#e65100;background:#fff3e0}.card-meta .variables-info{color:#6b7a8f;margin-left:auto;font-size:12px}.card-meta .view-link{color:#4a6cf7;cursor:pointer;margin-left:2px;font-size:12px;font-weight:500;text-decoration:none;transition:color .2s}.card-meta .view-link:hover{color:#3a5cd9;text-decoration:underline}.card-dates{color:#9aa6b5;align-items:center;gap:6px;margin-top:4px;font-size:11px;display:flex}.card-dates .date-icon{margin-right:2px}.card-timestamps{color:#9aa6b5;border-top:1px solid #f0f2f5;gap:12px;margin-top:4px;padding-top:4px;font-size:10px;display:flex}.empty-column{text-align:center;color:#9aa6b5;padding:20px 0;font-size:12px}.empty-column p{margin:0}.loading-spinner{text-align:center;color:#6b7a8f;background:#fff;border:1px solid #e8ecf1;border-radius:8px;padding:40px 20px}.loading-spinner i{color:#4a6cf7;margin-right:10px;font-size:20px}.no-tasks{text-align:center;background:#fff;border:1px solid #e8ecf1;border-radius:8px;padding:40px 20px}.no-tasks i{color:#dce0e6;margin-bottom:12px;font-size:40px}.no-tasks p{color:#1a2332;margin:0 0 4px;font-size:16px;font-weight:600}.no-tasks span{color:#9aa6b5;font-size:13px}.task-modal-overlay{z-index:2000;background:#00000059;justify-content:flex-end;align-items:flex-start;padding:90px 24px 24px;animation:.2s ease-in fadeIn;display:flex;position:fixed;inset:0}.task-modal-content{background:#fff;border-radius:16px;flex-direction:column;width:100%;max-width:480px;max-height:calc(100vh - 114px);animation:.3s ease-out slideInRight;display:flex;overflow:hidden;box-shadow:0 25px 50px #00000040}.task-modal-header{border-bottom:1px solid #e5e7eb;flex-shrink:0;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.task-modal-header h3{color:#1f2937;margin:0;font-size:20px;font-weight:600}.modal-close-btn{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:32px;min-width:32px;height:32px;font-size:18px;transition:all .2s;display:flex}.modal-close-btn:hover{color:#1f2937;background:#f3f4f6}.task-modal-body{flex:1;padding:24px;overflow-y:auto}.task-form-group{margin-bottom:18px}.task-form-group label{color:#4b5563;margin-bottom:6px;font-size:14px;font-weight:500;display:block}.task-form-group input,.task-form-group select{box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:8px;width:100%;padding:10px 14px;font-size:14px;transition:all .2s}.task-form-group input:focus,.task-form-group select:focus{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px #6366f11a}.task-form-row{grid-template-columns:1fr 1fr;gap:16px;display:grid}.task-modal-footer{border-top:1px solid #e5e7eb;flex-shrink:0;justify-content:flex-end;gap:12px;padding:16px 24px;display:flex}.task-modal-footer button{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;min-width:42px;padding:10px 16px;font-size:14px;font-weight:500;transition:all .2s;display:flex}.btn-cancel{color:#6b7280;background:#f3f4f6}.btn-cancel:hover{color:#1f2937;background:#e5e7eb}.btn-create{color:#fff;background:#6366f1}.btn-create:hover{background:#4f46e5;transform:translateY(-1px);box-shadow:0 4px 6px #6366f133}.btn-create i,.btn-cancel i{font-size:14px}.submit-btn:hover{background:#3a5cd9;transform:translateY(-1px);box-shadow:0 4px 12px #4a6cf74d}@media (width<=1400px){.tasks-page{width:calc(100% - 40px);left:20px}}@media (width<=1200px){.kanban-board,.kanban-board.stage-view{grid-template-columns:repeat(2,1fr)}.tasks-page{width:calc(100% - 30px);padding:16px 20px;left:15px}}@media (width<=992px){.tasks-page{width:calc(100% - 20px);padding:14px 16px;top:40px;left:10px}}@media (width<=768px){.tasks-page{width:100%;padding:12px 14px;top:30px;left:0}.tasks-header{flex-direction:column;align-items:flex-start;gap:10px}.tasks-header .left-section{width:100%}.tasks-header h1{font-size:20px}.tasks-header .right-section{width:100%}.tasks-header .header-actions{flex-direction:row;justify-content:flex-end;width:100%}.create-task-btn,.stage-view-btn{width:44px;height:44px}.stages-stats{flex-wrap:wrap;gap:12px;padding:10px 0}.stages-stats .total-items{justify-content:flex-start;width:100%;margin-left:0}.filters-sections{flex-direction:column;align-items:stretch;gap:6px}.search-bar{min-width:auto}.filter-select{width:100%;min-width:auto}.date-filter-wrapper{flex-direction:column;width:100%;min-width:auto}.date-filter-select{width:100%}.custom-date-range{flex-direction:column;align-items:stretch;width:100%;padding:8px 10px}.custom-date-range .date-input{width:100%}.kanban-board{grid-template-columns:1fr;gap:12px}.kanban-board.stage-view{grid-template-columns:1fr}.kanban-cards{max-height:350px}.task-modal-content{width:95%}.task-form-row{grid-template-columns:1fr}.task-modal-footer{flex-direction:column}.task-modal-footer button{width:100%}.card-actions{opacity:1}}@media (width<=480px){.tasks-page{padding:10px 12px;top:20px}.tasks-header h1{font-size:18px}.tasks-header .stage-label{font-size:12px}.tasks-header .live-badge{padding:2px 10px;font-size:10px}.stages-stats .stage-stat .label{font-size:12px}.stages-stats .stage-stat .count{font-size:13px}.stages-stats .total-items .number{font-size:16px}.kanban-card{padding:10px 12px}.card-header .card-name{font-size:13px}.card-header .card-email{font-size:11px}.task-modal-body{padding:16px}.task-modal-header h3{font-size:16px}}.tasks-page{box-sizing:border-box}.filters-sections,.kanban-board{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}.filters-sections{flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;display:flex}.search-bar{flex:auto;min-width:0}.search-bar input{box-sizing:border-box;width:100%}.kanban-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;min-width:0;display:grid}.kanban-board.stage-view{grid-template-columns:repeat(5,minmax(0,1fr))}.kanban-columns{box-sizing:border-box;width:100%;min-width:0}@media (width<=1200px){.filters-sections,.kanban-board{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}.kanban-board,.kanban-board.stage-view{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.filters-sections{flex-direction:column;align-items:stretch}.kanban-board,.kanban-board.stage-view{grid-template-columns:minmax(0,1fr)}}.campaign-rules-wrapper{box-sizing:border-box;background:#f8fafc;width:auto;min-height:calc(100vh - 70px);padding:24px 32px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;position:absolute;top:40px;left:70px;right:0;overflow-x:hidden}.rules-header{background:#e5e7eb;border:1px solid #e2e8f0;border-radius:10px;justify-content:space-between;align-items:center;margin-top:33px;margin-bottom:20px;padding:14px 20px;display:flex;box-shadow:0 1px 3px #0000000a}.rules-header-left{align-items:center;gap:16px;display:flex}.rules-header-left h3{color:#1e293b;letter-spacing:-.3px;margin:0;font-size:20px;font-weight:600}.campaign-badge{color:#475569;letter-spacing:.3px;background:#e8edf5;border:1px solid #dce2ec;border-radius:20px;padding:4px 14px;font-size:12px;font-weight:500}.rules-header-right{align-items:center;gap:10px;display:flex}.btn-primary{color:#1e293b;cursor:pointer;white-space:nowrap;background:#e8edf5;border:1px solid #dce2ec;border-radius:8px;align-items:center;gap:6px;padding:8px 18px;font-size:14px;font-weight:500;transition:all .2s;display:flex}.btn-primary:hover{background:#dce2ec;border-color:#c8d0dd;transform:translateY(-1px)}.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-secondary{color:#475569;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:6px;padding:8px 16px;font-size:14px;font-weight:500;transition:all .2s;display:flex}.btn-secondary:hover{background:#f8fafc;border-color:#cbd5e1}.icon-btn{justify-content:center;gap:0;width:40px;height:40px;padding:10px!important}.spin-icon{animation:.8s linear infinite spin}.btn-clear{color:#64748b;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #e2e8f0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:6px 10px;font-size:18px;transition:all .2s;display:flex;position:relative}.btn-clear:hover{color:#0f172a;background:#f1f5f9;border-color:#cbd5e1;transform:rotate(90deg)}.btn-clear:after{content:"Clear all filters";color:#fff;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none;background:#0f172a;border-radius:6px;padding:4px 10px;font-size:11px;font-weight:500;transition:all .2s;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%)}.btn-clear:hover:after{opacity:1;visibility:visible}.btn-close{color:#64748b;cursor:pointer;background:0 0;border:none;padding:0 8px;font-size:24px;line-height:1;transition:all .2s}.btn-close:hover{color:#ef4444;transform:rotate(90deg)}.campaign-selector-bar{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-wrap:nowrap;align-items:center;gap:16px;min-height:60px;margin-bottom:20px;padding:12px 20px;display:flex;box-shadow:0 1px 3px #0000000a}.campaign-selector-group{flex-shrink:0;align-items:center;gap:10px;display:flex}.campaign-selector-group label{color:#334155;white-space:nowrap;font-size:13px;font-weight:500}.campaign-selector-group select{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;outline:none;min-width:200px;height:36px;padding:6px 12px;font-size:13px;transition:all .2s}.campaign-selector-group select:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #94a3b81a}.selector-divider{background:#e2e8f0;flex-shrink:0;width:1px;height:30px}.rules-filters{flex-wrap:nowrap;flex:1;align-items:center;gap:14px;display:flex}.filter-group{flex-shrink:0;align-items:center;gap:8px;display:flex}.filter-group label{color:#64748b;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;font-size:12px;font-weight:500}.filter-group select{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;outline:none;min-width:130px;height:36px;padding:6px 10px;font-size:13px;transition:all .2s}.filter-group select:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #94a3b81a}.clear-filters-wrapper{border-left:1px solid #e2e8f0;flex-shrink:0;align-items:center;gap:8px;margin-left:auto;padding-left:14px;display:flex}.clear-filters-wrapper .filter-count{color:#64748b;white-space:nowrap;font-size:12px;font-weight:500}.rules-list{flex-direction:column;gap:16px;display:flex}.rule-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:20px 24px;transition:all .2s;position:relative;box-shadow:0 1px 3px #0000000a}.rule-card:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0000000f}.rule-card.inactive{opacity:.6;background:#fafcff;border-color:#eef2f6}.rule-card.inactive:after{content:"INACTIVE";color:#64748b;letter-spacing:.5px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;padding:2px 12px;font-size:10px;font-weight:600;position:absolute;top:12px;right:12px}.rule-card-header{justify-content:space-between;align-items:flex-start;margin-bottom:10px;display:flex}.rule-title{flex-wrap:wrap;flex:1;align-items:center;gap:12px;display:flex}.rule-priority{color:#475569;text-align:center;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;min-width:30px;padding:2px 10px;font-size:11px;font-weight:600}.rule-name{color:#0f172a;font-size:16px;font-weight:500}.rule-status{letter-spacing:.5px;border:1px solid #0000;border-radius:12px;padding:3px 12px;font-size:10px;font-weight:600}.rule-status.active{color:#1e40af;background:#dbeafe;border-color:#bfdbfe}.rule-status.inactive{color:#64748b;background:#f1f5f9;border-color:#e2e8f0}.rule-trigger{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:3px 12px;font-size:12px}.rule-actions{flex-shrink:0;align-items:center;gap:6px;display:flex}.rule-actions button{cursor:pointer;color:#64748b;background:0 0;border:1px solid #0000;border-radius:6px;padding:6px 8px;font-size:16px;line-height:1;transition:all .2s}.rule-actions button:hover{color:#0f172a;background:#f1f5f9;border-color:#e2e8f0}.btn-toggle{opacity:.6}.btn-toggle:hover{opacity:1}.btn-edit:hover{background:#e8edf5;border-color:#dce2ec}.btn-delete:hover{color:#dc2626;background:#fee2e2;border-color:#fecaca}.rule-description{color:#475569;margin-bottom:12px;padding-left:42px;font-size:14px}.rule-condition,.rule-action-preview{align-items:baseline;gap:8px;padding:6px 12px 6px 42px;font-size:14px;display:flex}.rule-condition .label,.rule-action-preview .label{color:#64748b;text-transform:uppercase;letter-spacing:.3px;min-width:72px;font-size:12px;font-weight:500}.rule-condition{background:#f8fafc;border:1px solid #eef2f6;border-radius:6px;margin:4px 0;padding:8px 12px 8px 42px}.rule-delay{color:#64748b;margin-top:6px;padding-left:42px;font-size:13px}.rules-empty{text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:60px 20px;box-shadow:0 1px 3px #0000000a}.rules-empty p{color:#475569;margin:4px 0;font-size:16px}.rules-empty .empty-hint{color:#94a3b8;margin-bottom:16px;font-size:14px}.rules-loading{text-align:center;color:#64748b;padding:40px;font-size:16px}.rules-builder-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#0f172a4d;justify-content:center;align-items:center;animation:.3s fadeIn;display:flex;position:fixed;inset:0}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.rules-builder-modal{background:#fff;border:1px solid #e2e8f0;border-radius:14px;flex-direction:column;width:95%;max-width:700px;max-height:90vh;animation:.3s slideUp;display:flex;box-shadow:0 20px 60px #0f172a26}.builder-header{background:#fafcff;border-bottom:1px solid #e2e8f0;border-radius:14px 14px 0 0;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.builder-header h4{color:#0f172a;margin:0;font-size:18px;font-weight:600}.builder-body{flex:1;padding:24px;overflow-y:auto}.builder-body .form-group{margin-bottom:18px}.builder-body .form-group label{color:#334155;margin-bottom:6px;font-size:13px;font-weight:500;display:block}.builder-body .form-group input,.builder-body .form-group textarea,.builder-body .form-group select{color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:8px;outline:none;width:100%;padding:10px 14px;font-family:inherit;font-size:14px;transition:all .2s}.builder-body .form-group input:focus,.builder-body .form-group textarea:focus,.builder-body .form-group select:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #94a3b81a}.builder-body .form-group textarea{resize:vertical;min-height:60px}.builder-body .form-group .hint{color:#94a3b8;margin-top:4px;font-size:12px;display:block}.condition-group{grid-template-columns:1fr 1fr 1fr;gap:10px;display:grid}.condition-group select{cursor:pointer;color:#0f172a;background:#fff;border:1px solid #e2e8f0;border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:13px}.condition-group select:focus{border-color:#94a3b8;box-shadow:0 0 0 3px #94a3b81a}.condition-header{justify-content:space-between;align-items:center;margin-bottom:6px;display:flex}.condition-header label{margin-bottom:0}.logic-toggle{background:#f1f5f9;border-radius:8px;gap:2px;padding:2px;display:inline-flex}.logic-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:6px 10px;font-size:12px;font-weight:600;transition:all .15s;display:flex}.logic-btn:hover{color:#334155}.logic-btn.active{color:#fff;background:#3b82f6}.condition-row{align-items:center;gap:8px;margin-bottom:10px;display:flex}.condition-row .condition-group{flex:1}.remove-condition-btn{color:#94a3b8;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:18px;line-height:1;transition:all .15s;display:flex}.remove-condition-btn:hover:not(:disabled){color:#ef4444;background:#fef2f2;border-color:#fca5a5}.remove-condition-btn:disabled{opacity:.4;cursor:not-allowed}.add-condition-btn{color:#475569;cursor:pointer;background:#f8fafc;border:1px dashed #94a3b8;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;margin-top:2px;padding:0;transition:all .15s;display:flex}.add-condition-btn:hover{color:#4338ca;background:#eef2ff;border-color:#6366f1}.checkbox-group{align-items:center;display:flex}.checkbox-group label{cursor:pointer;color:#334155;align-items:center;gap:10px;font-weight:500;display:flex}.checkbox-group input[type=checkbox]{cursor:pointer;accent-color:#64748b;border:1px solid #e2e8f0;border-radius:4px;width:18px;height:18px}.message-preview{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;min-height:40px;padding:12px 16px;font-size:14px;line-height:1.6}.rule-preview-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;margin-top:16px;padding:16px 20px}.rule-preview-box strong{color:#0f172a;margin-bottom:8px;font-size:14px;display:block}.preview-content{flex-direction:column;gap:4px;display:flex}.preview-content div{color:#475569;padding:4px 0;font-size:14px}.preview-label{color:#334155;min-width:50px;font-weight:500;display:inline-block}.builder-footer{background:#fafcff;border-top:1px solid #e2e8f0;border-radius:0 0 14px 14px;justify-content:flex-end;gap:12px;padding:16px 24px;display:flex}.rules-toast{z-index:2000;border:1px solid #0000;border-radius:10px;padding:14px 24px;font-size:14px;font-weight:500;animation:.3s slideIn;position:fixed;bottom:30px;right:30px;box-shadow:0 4px 16px #0f172a1a}@keyframes slideIn{0%{transform:translate(100%)}to{transform:translate(0)}}.rules-toast.success{color:#1e40af;background:#dbeafe;border-color:#bfdbfe}.rules-toast.error{color:#991b1b;background:#fee2e2;border-color:#fecaca}.rules-toast.warning{color:#92400e;background:#fef3c7;border-color:#fde68a}.campaign-rules-wrapper::-webkit-scrollbar{width:8px;height:8px}.campaign-rules-wrapper::-webkit-scrollbar-track{background:#f1f5f9}.campaign-rules-wrapper::-webkit-scrollbar-thumb{background:#cbd5e1;border:1px solid #e2e8f0;border-radius:10px}.campaign-rules-wrapper::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (width<=1500px){.campaign-rules-wrapper{width:100%;padding:20px 24px;left:0}}@media (width<=1300px){.campaign-selector-bar{flex-wrap:wrap;gap:12px;min-height:auto;padding:12px 16px}.rules-filters{flex-wrap:wrap;gap:10px}.filter-group{flex:1;min-width:120px}.selector-divider{display:none}.campaign-selector-group{width:100%}.campaign-selector-group select{flex:1;min-width:0}.clear-filters-wrapper{border-top:1px solid #e2e8f0;border-left:none;justify-content:flex-end;width:100%;margin-left:0;padding-top:8px;padding-left:0}}@media (width<=1200px){.campaign-rules-wrapper{padding:16px 20px}.rules-header{flex-direction:column;align-items:stretch;gap:12px}.rules-header-right{flex-wrap:wrap}.condition-group{grid-template-columns:1fr}.condition-row{align-items:flex-start}}@media (width<=768px){.campaign-rules-wrapper{padding:12px 16px;top:20px}.rules-header{padding:12px 16px}.rules-header-left{flex-wrap:wrap}.campaign-selector-bar{flex-direction:column;align-items:stretch;padding:12px 16px}.campaign-selector-group{flex-direction:column;align-items:stretch}.campaign-selector-group select{min-width:100%}.rules-filters,.filter-group{flex-direction:column;align-items:stretch}.filter-group select{min-width:100%}.clear-filters-wrapper{border-top:1px solid #e2e8f0;border-left:none;justify-content:flex-start;padding-top:8px}.rule-card-header{flex-direction:column;gap:8px}.rule-title{flex-wrap:wrap}.rule-actions{justify-content:flex-end;width:100%}.rule-condition,.rule-action-preview{flex-direction:column;align-items:flex-start;padding-left:12px}.rules-builder-modal{border-radius:0;width:100%;max-height:100vh}}.text-muted{color:#94a3b8}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.d-flex{display:flex}.align-center{align-items:center}.justify-between{justify-content:space-between}.flex-wrap{flex-wrap:wrap}.flex-1{flex:1}.react-flow{direction:ltr}.react-flow__container{width:100%;height:100%;position:absolute;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1px;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:.5s linear infinite dashdraw}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{-webkit-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:0 0;pointer-events:none}.react-flow__nodesselection-rect{pointer-events:all;cursor:-webkit-grab;cursor:grab;position:absolute}.react-flow__handle{pointer-events:none;background:#1a192b;border:1px solid #fff;border-radius:100%;width:6px;min-width:5px;height:6px;min-height:5px;position:absolute}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;bottom:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-top{top:-4px;left:50%;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{top:50%;right:-4px;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{z-index:5;margin:15px;position:absolute}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{background:#ffffff80;margin:0;padding:2px 3px;font-size:10px}.react-flow__attribution a{color:#999;text-decoration:none}@keyframes dashdraw{0%{stroke-dashoffset:10px}}.react-flow__edgelabel-renderer{pointer-events:none;-webkit-user-select:none;user-select:none;width:100%;height:100%;position:absolute}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{color:#222;text-align:center;background-color:#fff;border:1px solid #1a192b;border-radius:3px;width:150px;padding:10px;font-size:12px}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted #0059dccc}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{background-color:#3367d9;border:1px solid #fff;border-radius:1px;width:4px;height:4px;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{top:50%;left:0}.react-flow__resize-control.handle.right{top:50%;left:100%}.react-flow__resize-control.handle.top{top:0;left:50%}.react-flow__resize-control.handle.bottom{top:100%;left:50%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border:0 solid #3367d9}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;height:100%;top:0;transform:translate(-50%)}.react-flow__resize-control.line.left{border-left-width:1px;left:0}.react-flow__resize-control.line.right{border-right-width:1px;left:100%}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{width:100%;height:1px;left:0;transform:translateY(-50%)}.react-flow__resize-control.line.top{border-top-width:1px;top:0}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.campaign-workflow-container{background:#f5f7fa;flex-direction:column;height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;display:flex}.campaign-workflow-loading{background:#f5f7fa;flex-direction:column;justify-content:center;align-items:center;height:100vh;display:flex}.spinner{border:4px solid #e2e8f0;border-top-color:#0d6efd;border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}.workflow-header{background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:12px 20px;display:flex}.header-right{gap:8px;display:flex}.btn-refresh,.btn-close{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:6px;padding:6px 14px;font-size:13px;transition:all .2s}.btn-refresh:hover{background:#f5f5f5}.btn-close:hover{color:#dc2626;background:#fee2e2}.stats-bar{background:#fff;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;align-items:center;gap:16px;padding:10px 20px;display:flex}.stat-item{align-items:center;gap:6px;font-size:13px;display:flex}.stat-dot{border-radius:50%;width:10px;height:10px;display:inline-block}.stat-label{color:#64748b;font-weight:500}.stat-value{color:#1a1a2e;font-weight:600}.stat-item.total{border-left:1px solid #e2e8f0;margin-left:auto;padding-left:16px}.btn-run-workflow{color:#fff;cursor:pointer;background:#10b981;border:none;border-radius:6px;padding:6px 16px;font-size:13px;font-weight:500;transition:background .2s}.btn-run-workflow:hover:not(:disabled){background:#059669}.btn-run-workflow:disabled{opacity:.5;cursor:not-allowed}.react-flow-wrapper{background:#f5f7fa;flex:1;min-height:400px;padding:20px 24px;overflow-y:auto}.react-flow,.react-flow__pane{background:0 0!important}.react-flow__controls,.react-flow__minimap{display:none!important}.column-header-node{background:#fff;border-radius:8px 8px 0 0;width:260px;padding:0;overflow:hidden;box-shadow:0 1px 3px #0000000f}.column-header-content{border-bottom:3px solid #9aa6b5;justify-content:space-between;align-items:center;padding:12px 16px;display:flex;background:#f7fafc!important}.column-title{color:#2d3748;text-transform:uppercase;letter-spacing:.5px;font-size:14px;font-weight:600}.column-count{color:#4a5568;background:#edf2f7;border-radius:12px;padding:2px 10px;font-size:12px;font-weight:600}.lead-card-node{background:#fff;border:1px solid #3d3f41;border-top:none;border-left-width:4px;border-radius:0;width:250px;margin-bottom:0;padding:12px 16px;transition:background .15s;position:relative;box-shadow:0 1px 3px #0000000a}.lead-card-node:last-child{border-radius:0 0 8px 8px}.lead-card-node:hover{background:#f7fafc}.visible-handle{display:none!important}.lead-card-header{align-items:flex-start;gap:10px;margin-bottom:4px;display:flex}.lead-avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:14px;font-weight:600;display:flex}.lead-info{flex:1;min-width:0}.lead-name{color:#1a202c;white-space:nowrap;text-overflow:ellipsis;margin-bottom:2px;font-size:14px;font-weight:500;overflow:hidden}.lead-email{color:#718096;white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.lead-status-badge{border-radius:12px;flex-shrink:0;padding:2px 8px;font-size:10px;font-weight:500}.lead-card-details{color:#4a5568;padding:4px 0;font-size:12px}.detail-item{gap:4px;padding:2px 0;display:flex}.detail-label{color:#a0aec0}.view-link{color:#3182ce;cursor:pointer;margin-top:2px;font-size:12px;font-weight:500;text-decoration:none;display:inline-block}.view-link:hover{text-decoration:underline}.email-status{font-size:11px;font-weight:500}.status-sent{color:#3b82f6}.status-opened{color:#8b5cf6}.status-clicked{color:#10b981}.status-pending{color:#94a3b8}.status-failed{color:#ef4444}.lead-card-actions{border-top:1px solid #f1f5f9;gap:6px;margin-top:8px;padding-top:8px;display:flex}.action-btn{cursor:pointer;border:none;border-radius:4px;flex:1;padding:4px 8px;font-size:11px;font-weight:500;transition:all .2s}.action-btn.send-btn{color:#fff;background:#0d6efd}.action-btn.send-btn:hover:not(:disabled){background:#0b5ed7}.action-btn.send-btn:disabled{opacity:.5;cursor:not-allowed}.action-btn.edit-btn{color:#fff;background:#f59e0b}.action-btn.edit-btn:hover{background:#d97706}.logs-container{background:#0f172a;border-top:1px solid #1e293b;flex-direction:column;max-height:150px;display:flex}.logs-header{color:#94a3b8;border-bottom:1px solid #1e293b;padding:6px 16px;font-size:12px;font-weight:500}.logs-list{flex:1;padding:4px 16px;overflow-y:auto}.empty-logs{color:#475569;text-align:center;padding:8px 0;font-size:12px}.log-entry{color:#e2e8f0;border-bottom:1px solid #1a1a2e;align-items:center;gap:8px;padding:3px 0;font-size:12px;display:flex}.log-entry .log-time{color:#64748b;min-width:70px;font-size:11px}.log-entry .log-icon{font-size:12px}.log-entry .log-message{flex:1}.log-entry.success .log-message{color:#34d399}.log-entry.error .log-message{color:#f87171}.log-entry.warning .log-message{color:#fbbf24}.log-entry.info .log-message{color:#60a5fa}.email-modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.email-modal-content{background:#fff;border-radius:12px;width:90%;max-width:550px;max-height:85vh;overflow:hidden;box-shadow:0 20px 60px #0000004d}.email-modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.email-modal-header h3{margin:0}.modal-close{cursor:pointer;color:#94a3b8;background:0 0;border:none;padding:0 8px;font-size:24px}.modal-close:hover{color:#1a1a2e}.email-modal-body{max-height:calc(85vh - 140px);padding:20px 24px;overflow-y:auto}.email-recipient-info{background:#f8fafc;border-radius:6px;margin-bottom:16px;padding:12px}.recipient-row{gap:8px;padding:4px 0;font-size:14px;display:flex}.recipient-row .label{color:#64748b;min-width:70px;font-weight:500}.recipient-row .value{color:#1a1a2e}.form-group{margin-bottom:16px}.form-group label{color:#1a1a2e;margin-bottom:4px;font-size:13px;font-weight:500;display:block}.form-group input,.form-group textarea{box-sizing:border-box;border:1px solid #e2e8f0;border-radius:6px;width:100%;padding:8px 12px;font-family:inherit;font-size:14px}.form-group input:focus,.form-group textarea:focus{border-color:#0d6efd;outline:none}.form-group textarea{resize:vertical;min-height:120px}.email-error{color:#dc2626;background:#fee2e2;border-radius:6px;margin-bottom:12px;padding:10px;font-size:14px}.email-modal-footer{border-top:1px solid #e2e8f0;justify-content:flex-end;gap:10px;padding:16px 24px;display:flex}.btn-cancel{cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:8px 20px;font-size:14px}.btn-cancel:hover{background:#f8fafc}.btn-send{color:#fff;cursor:pointer;background:#0d6efd;border:none;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:500}.btn-send:hover:not(:disabled){background:#0b5ed7}.btn-send:disabled{opacity:.5;cursor:not-allowed}.email-editor-overlay{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:9999;background:#000000b3;justify-content:center;align-items:center;animation:.3s fadeIn;display:flex;position:fixed;inset:0}.email-editor-content{background:#fff;border-radius:16px;width:90%;max-width:500px;max-height:85vh;animation:.3s slideUp;overflow:hidden;box-shadow:0 25px 70px #0006}.email-editor-header{background:#f8fafc;border-bottom:2px solid #e2e8f0;justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.email-editor-header h3{color:#1a1a2e;margin:0;font-size:18px}.email-editor-body{padding:24px}.editor-info{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:20px;padding:14px 16px}.info-row{border-bottom:1px solid #f1f5f9;justify-content:space-between;padding:6px 0;font-size:14px;display:flex}.info-row:last-child{border-bottom:none}.info-row .label{color:#64748b;font-weight:500}.info-row .value{color:#1a1a2e;font-weight:500}.email-editor-footer{background:#f8fafc;border-top:2px solid #e2e8f0;justify-content:flex-end;gap:12px;padding:18px 24px;display:flex}.btn-save{color:#fff;cursor:pointer;background:#0d6efd;border:none;border-radius:8px;padding:10px 28px;font-size:14px;font-weight:500;transition:all .2s}.btn-save:hover:not(:disabled){background:#0b5ed7;transform:translateY(-1px);box-shadow:0 4px 12px #0d6efd4d}.btn-save:disabled{opacity:.5;cursor:not-allowed;transform:none}@media (width<=992px){.react-flow-wrapper{padding:12px}}@media (width<=768px){.stats-bar{flex-direction:column;align-items:stretch;gap:6px}.stat-item.total{border-left:none;margin-left:0;padding-left:0}.lead-card-node{width:200px}.column-header-node{width:210px}}.campaign-workflow-page{box-sizing:border-box;background:#f5f7fa;flex-direction:column;width:100%;min-height:calc(100vh - 70px);padding:0;display:flex}.campaign-workflow-page-header{background:#fff;border-bottom:1px solid #e2e8f0;border-radius:8px 8px 0 0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:12px 20px;display:flex}.header-left{align-items:center;gap:16px;display:flex}.header-left h2{color:#1a1a2e;margin:0;font-size:18px}.back-btn{color:#fff;cursor:pointer;background:#6c757d;border:none;border-radius:6px;padding:6px 14px;font-size:13px;transition:background .2s}.back-btn:hover{background:#5a6268}.campaign-selector{background:#fff;border-bottom:1px solid #e2e8f0;flex-wrap:wrap;align-items:center;gap:16px;padding:10px 20px;display:flex}.campaign-selector label{color:#333;font-size:13px;font-weight:500}.campaign-selector select{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:6px;min-width:200px;padding:6px 12px;font-size:13px}.campaign-selector select:focus{border-color:#0d6efd;outline:none}.workflow-container{background:#fff;border-radius:0 0 8px 8px;flex:1;min-height:500px;overflow:hidden}.loading-spinner{text-align:center;color:#666;padding:60px;font-size:16px}@media (width<=768px){.campaign-workflow-page-header{flex-direction:column;align-items:flex-start}.header-left{flex-wrap:wrap}.campaign-selector{flex-direction:column;align-items:stretch}.campaign-selector select{min-width:100%}}.upload-container{background:#fff;border-radius:12px;max-width:700px;margin:40px auto;padding:28px;font-family:Inter,sans-serif;position:relative;left:500px;box-shadow:0 6px 20px #0000000f}.upload-container-inline{background:#fff;border:1px solid #e1e1e1;border-radius:12px;margin-top:30px;padding:28px;font-family:Inter,sans-serif}.title{color:#1e293b;margin-bottom:18px;font-size:22px;font-weight:600}.upload-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;align-items:center;gap:15px;padding:22px;display:flex}.file-label{cursor:pointer;color:#0f172a;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:8px;padding:10px 14px;font-size:14px;transition:background .2s}.file-label:hover{background:#cbd5e1}.file-input{display:none}.file-name{color:#475569;flex-grow:1;font-size:14px}.upload-btn{color:#fff;cursor:pointer;background:#0ea5e9;border:none;border-radius:8px;padding:10px 18px;font-weight:600;transition:all .2s}.upload-btn:hover{background:#0284c7}.response-box{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;margin-top:25px;padding:18px}.response-box h3{color:#0f172a;margin-bottom:10px;font-size:18px}.inserted{color:#10b981;margin-bottom:12px;font-size:15px;font-weight:600}.errors h4{color:#dc2626;margin-bottom:8px}.error-item{color:#7f1d1d;background:#fee2e2;border-left:4px solid #dc2626;border-radius:6px;margin-bottom:6px;padding:8px 10px;font-size:14px}.csv-columns-box{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:18px;padding:16px}.csv-columns-title{color:#1e293b;margin:0 0 10px;font-size:14px;font-weight:600}.csv-columns-list{flex-wrap:wrap;gap:8px;display:flex}.csv-column-tag{color:#1a1a1a;letter-spacing:.01em;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:5px 12px;font-family:Inter,Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:600}.content-wrapper{box-sizing:border-box;background:#f1f5f9;width:100%;min-height:100vh}.campaign-table-container{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:10px;max-width:1370px;margin-top:20px;overflow:auto hidden}.campaign-table-container::-webkit-scrollbar{height:8px}.campaign-table-container::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:10px}.campaign-table-container::-webkit-scrollbar-track{background:#f1f5f9;border-radius:10px}.campaign-table{border-collapse:collapse;table-layout:auto;min-width:600px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}.campaign-table thead th{text-align:left;color:#475569;white-space:nowrap;vertical-align:bottom;z-index:1;background:#fff;border-bottom:1px solid #e2e8f0;padding:10px 14px;font-size:13px;font-weight:700;position:sticky;top:0}.campaign-table thead th:first-child{z-index:3}.campaign-table thead th:first-child,.campaign-table tbody td:first-child{z-index:2;background:#fff;position:sticky;left:0;box-shadow:4px 0 8px #0000000a}.campaign-table tbody tr:hover td:first-child{background:#f1f5f9}.campaign-table thead th:last-child,.campaign-table tbody td:last-child{z-index:2;text-align:center;background:#fff;min-width:60px;height:63px;position:sticky;right:0;box-shadow:-4px 0 8px #0000000a}.campaign-table thead th .th-top,.campaign-table thead th .th-bottom{color:#475569;font-size:13px;font-weight:700;line-height:1.5;display:block}.campaign-table tbody tr{background:#fff;border-bottom:1px solid #f1f5f9;transition:background .15s}.campaign-table tbody tr:nth-child(2n),.campaign-table tbody tr:nth-child(2n) td:first-child,.campaign-table tbody tr:nth-child(2n) td:last-child{background:#f3f4f6}.campaign-table tbody tr:hover,.campaign-table tbody tr:hover td:first-child,.campaign-table tbody tr:hover td:last-child{cursor:pointer;background:#f1f5f9}.campaign-table tbody td{color:#1e293b;white-space:nowrap;padding:10px 14px;font-size:13px;font-weight:500}.campaign-table td.numeric,.campaign-table th.numeric{text-align:right}.campaign-table .col-name{width:150px}.campaign-table .col-type{width:100px}.campaign-table .col-platform{width:90px}.campaign-table .col-objective{width:130px}.campaign-table .col-budget,.campaign-table .col-spent{width:80px}.campaign-table .col-date{width:95px}.campaign-table .col-status{width:90px}.campaign-table .col-audience-id{width:100px}.campaign-table .col-audience-name{width:120px}.campaign-table .col-actions{text-align:center;width:100px}.drawer-input[type=date]{color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}.drawer-input[type=date]::-webkit-calendar-picker-indicator{filter:brightness(0);cursor:pointer;opacity:1}.campaign-drawer .drawer-label{color:#374151;letter-spacing:.01em;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px;font-weight:600}.campaign-drawer .drawer-input{color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}.campaign-drawer .drawer-title{color:#111827;letter-spacing:-.01em;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:17px;font-weight:700}.campaign-drawer .drawer-submit{letter-spacing:.01em;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:600}.campaign-header .path-main{color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:18px;font-weight:700}.campaign-header .path-sub{color:#64748b;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:18px;font-weight:500}.campaign-header .action-btn,.campaign-header .icon-btn{justify-content:center;align-items:center;min-width:34px;height:34px;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:600;display:inline-flex}.campaign-header .create-btn{letter-spacing:.01em;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px;font-weight:600}.campaign-table .edit-btn{cursor:pointer;color:#374151;background:#fff;border:1px solid #e2e8f0;border-radius:6px;align-items:center;padding:5px 8px;font-size:13px;transition:all .2s;display:inline-flex}.campaign-table .edit-btn:hover{background:#f1f5f9}.rules-modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:2000;background:#0009;justify-content:center;align-items:center;animation:.2s fadeIn;display:flex;position:fixed;inset:0}.rules-modal-content{background:#fff;border-radius:12px;width:90%;max-width:700px;max-height:85vh;animation:.3s slideUp;overflow:hidden;box-shadow:0 20px 60px #0000004d}.rules-modal-header{background:#f8f9fa;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;padding:16px 24px;display:flex}.rules-modal-header h3{color:#1a1a2e;margin:0;font-size:18px}.rules-modal-close{cursor:pointer;color:#999;background:0 0;border:none;padding:0 8px;font-size:28px;line-height:1;transition:color .2s}.rules-modal-close:hover{color:#333}.rules-modal-body{max-height:calc(85vh - 70px);padding:24px;overflow-y:auto}.rules-modal-body .campaign-selector-bar{margin-bottom:16px}@media (width<=768px){.rules-modal-content{width:95%;max-height:90vh}.rules-modal-header{padding:12px 16px}.rules-modal-body{padding:16px}}.message-btn{color:#6c63ff;cursor:pointer;background:0 0;border:none;margin-left:5px;padding:4px 8px;font-size:1.1rem;transition:all .2s}.message-btn:hover{color:#4a3fcf;transform:scale(1.1)}.message-drawer .drawer-field{margin-bottom:15px}.drawer-textarea{resize:vertical;min-height:80px;font-family:inherit}.message-preview{background-color:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;min-height:60px;padding:15px}.preview-image{border-radius:4px;max-width:100%;max-height:200px;margin-bottom:10px}.document-preview{background-color:#e3f2fd;border-radius:4px;margin-bottom:10px;padding:10px;font-weight:500}.preview-text{white-space:pre-wrap;word-wrap:break-word}.col-actions{justify-content:center;align-items:center;gap:5px;min-width:90px;display:flex}@media (width<=768px){.col-actions{min-width:70px}.message-btn{padding:2px 5px;font-size:.9rem}}.chart-section{background:#fff;border-radius:12px;width:40%;margin-top:30px;padding:20px 24px;box-shadow:0 4px 12px #00000014}.leads-chart{width:100%;height:320px;position:relative}.chart-loading{text-align:center;color:#777;padding:40px 0;font-size:14px}@media (width<=768px){.leads-chart{height:260px}}.dashboard{box-sizing:border-box;background:#f7f8fa;width:auto;min-height:calc(100vh - 70px);padding:24px 32px;position:absolute;top:40px;left:70px;right:0;overflow-x:hidden}.dashboard h2{color:#111827;margin-bottom:20px;font-size:20px;font-weight:600}.cards{grid-template-columns:repeat(4,1fr);align-items:center;gap:15px;width:100%;display:grid}.card{text-align:center;background:#fff;border:1px solid #e5e7eb;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;min-height:150px;padding:22px;transition:all .2s;display:flex;box-shadow:0 4px 14px #0000000d}.card:hover{transform:translateY(-2px);box-shadow:0 6px 16px #00000014}.label{color:#6b7280;font-size:13px;font-weight:500}.card h1{color:#111827;margin-top:10px;font-size:34px;font-weight:700}.chart-section{box-sizing:border-box;background:#fff;border-radius:16px;width:100%;margin-top:30px;padding:24px;box-shadow:0 6px 16px #0000000f}.chart-title{color:#1f2937;margin-bottom:20px;font-size:18px;font-weight:600}.chart-row{grid-template-columns:1fr 1fr;gap:24px;width:100%;display:grid}.chart-box{box-sizing:border-box;background:#fff;border:1px solid #eef2f7;border-radius:14px;flex-direction:column;width:100%;height:420px;padding:20px;display:flex;overflow:hidden;box-shadow:0 6px 16px #00000014}@media (width<=1200px){.cards{grid-template-columns:repeat(2,1fr)}}@media (width<=900px){.chart-row{grid-template-columns:1fr}}@media (width<=600px){.cards{grid-template-columns:1fr}}.page-container{background:#f9fafb;width:1450px;min-height:100vh;padding:0 25px;position:relative;top:70px;left:70px}.calls-headers{z-index:2;background:#c7cad0;border-bottom:1px solid #ebe6e6;border-radius:8px;justify-content:space-between;align-items:center;height:60px;padding:0 14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;position:sticky;top:0}.calls-header h3{margin:0;font-size:16px;font-weight:600}.header-actions{align-items:center;gap:10px;display:flex}.refresh-btn{color:#555;cursor:pointer;background:0 0;border:1px solid #ddd;border-radius:18px;padding:8px 12px;font-size:14px;transition:all .3s}.refresh-btn:hover{background:#f0f0f0;transform:rotate(180deg)}.stats-cards{grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:20px;display:grid}.stat-card{background:#fff;border:1px solid #e6e6e6;border-radius:10px;align-items:center;gap:15px;padding:9px 12px;transition:box-shadow .2s;display:flex}.stat-card:hover{box-shadow:0 6px 18px #0000000f}.stat-icon{color:#fff;border-radius:10px;justify-content:center;align-items:center;width:45px;height:45px;font-size:18px;display:flex}.stat-icon.total{background:#4b6bfb}.stat-icon.outgoing{background:#2196f3}.stat-icon.incoming{background:#ff9800}.stat-icon.completed{background:#4caf50}.stat-info{flex-direction:column;display:flex}.stat-value{color:#111;font-size:22px;font-weight:700}.stat-label{color:#777;font-size:13px}.filters-section{background:#fff;border:1px solid #e6e6e6;border-radius:10px;flex-wrap:wrap;gap:15px;margin-bottom:20px;padding:6px 1px;display:flex}.search-box{background:#f5f6fa;border-radius:8px;flex:1;align-items:center;min-width:200px;padding:0 12px;display:flex}.search-box i{color:#999;margin-right:10px}.search-box input{background:0 0;border:none;outline:none;width:100%;padding:10px 0;font-size:14px}.filter-select{cursor:pointer;background:#fff;border:1px solid #ddd;border-radius:8px;outline:none;min-width:150px;padding:10px 15px;font-size:14px}.filter-select:focus{border-color:#4b6bfb}.table-container{background:#fff;border:1px solid #e6e6e6;border-radius:10px;padding:20px;overflow:hidden}.table-responsive{overflow-x:auto}.calls-table{border-collapse:collapse;width:100%;font-size:14px}.calls-table thead{background:#f8f9fa}.calls-table th{text-align:left;color:#555;white-space:nowrap;border-bottom:2px solid #e8eaed;padding:12px 15px;font-weight:600}.calls-table td{vertical-align:middle;border-bottom:1px solid #f0f0f0;padding:12px 15px}.calls-table tbody tr{transition:background-color .2s}.calls-table tbody tr:hover{background-color:#f8f9fa}.call-type-badge{border-radius:20px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;font-weight:500;display:inline-flex}.call-type-badge.outgoing{color:#1976d2;background:#e3f2fd}.call-type-badge.incoming{color:#e65100;background:#fff3e0}.call-type-badge i{font-size:12px}.status-badge{text-transform:capitalize;border-radius:20px;align-items:center;gap:4px;padding:4px 12px;font-size:12px;font-weight:500;display:inline-flex}.status-badge.completed{color:#2e7d32;background:#e8f5e9}.status-badge.inprogress{color:#e65100;background:#fff3e0}.status-badge i{font-size:12px}.related-badge{color:#7b1fa2;background:#f3e5f5;border-radius:12px;padding:4px 10px;font-size:12px;font-weight:500;display:inline-block}.date-display{color:#666;align-items:center;gap:4px;font-size:13px;display:inline-flex}.date-display i{color:#999}.loading-spinner{text-align:center;color:#666;padding:40px 20px}.loading-spinner i{color:#4b6bfb;margin-right:10px}.no-calls{color:#777;flex-direction:column;justify-content:center;align-items:center;height:300px;font-size:14px;display:flex}.no-calls i{color:#ddd;margin-bottom:15px;font-size:48px}.no-calls p{color:#666;margin:0 0 5px;font-size:18px}.no-calls span{color:#999;font-size:14px}.add-board-form-panel{z-index:9999;background:#fff;border:1px solid #dcdcdc;flex-direction:column;gap:12px;width:260px;padding:25px 14px 16px 18px;display:flex;position:fixed;top:46%;left:9.5%;transform:translate(-50%,-50%);box-shadow:0 10px 35px #00000026}.form-close-btn{cursor:pointer;color:#333;background:0 0;border:none;font-size:22px;position:absolute;top:12px;right:15px}.add-board-form-panel h3{margin-bottom:4px;font-size:18px;font-weight:600}.add-board-form-panel label{color:#2d2d2e;font-size:14px;font-weight:500}.add-board-form-panel input,.add-board-form-panel select{background:0 0;border:none;border-bottom:1px solid #ddd;outline:none;width:100%;padding:10px 0;font-size:14px}.add-board-form-panel input:focus,.add-board-form-panel select:focus{border-bottom:1px solid #2d2d2e}.submit-btn{color:#fff;cursor:pointer;background:#4b6bfb;border:none;border-radius:8px;margin-top:6px;padding:12px;font-size:15px;font-weight:600}.submit-btn:hover{background:#3a57d1}@media (width<=1024px){.stats-cards{grid-template-columns:repeat(2,1fr)}}@media (width<=768px){.page-container{width:100%;padding:15px;top:80px;left:0}.calls-header{flex-direction:column;align-items:flex-start;gap:10px}.header-actions{justify-content:flex-end;width:100%}.stats-cards{grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{padding:12px 15px}.stat-icon{width:40px;height:40px;font-size:16px}.stat-value{font-size:18px}.filters-section{flex-direction:column;align-items:stretch}.search-box{min-width:auto}.calls-table{font-size:12px}.calls-table th,.calls-table td{padding:8px 10px}.call-type-badge,.status-badge,.related-badge{padding:2px 8px;font-size:10px}}@media (width<=480px){.stats-cards{grid-template-columns:1fr 1fr;gap:8px}.stat-card{text-align:center;flex-direction:column;padding:10px}.stat-icon{width:35px;height:35px;font-size:14px}.stat-value{font-size:16px}.calls-table{font-size:11px}.calls-table th,.calls-table td{padding:6px 8px}}.seg-modal-overlay{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:10000;background:#00000059;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:fixed;top:0;left:0}.seg-modal{background:#fff;border-radius:14px;width:520px;max-height:80vh;padding:28px 32px 24px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow-y:auto;box-shadow:0 24px 64px #0000002e}.seg-modal-header{justify-content:space-between;align-items:center;margin-bottom:22px;display:flex}.seg-modal-header h3{color:#111827;margin:0;font-size:17px;font-weight:700}.seg-modal-close{cursor:pointer;color:#64748b;background:0 0;border:none;justify-content:center;align-items:center;min-width:34px;height:34px;padding:0;font-size:16px;display:inline-flex}.seg-modal-close:hover{color:#111827}.seg-checkbox-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.seg-checkbox-item{cursor:pointer;color:#374151;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:8px;padding:8px 12px;font-size:13px;font-weight:600;transition:all .15s;display:flex}.seg-checkbox-item:hover{background:#f1f5f9;border-color:#2563eb}.seg-checkbox-item input[type=checkbox]{accent-color:#2563eb;cursor:pointer;width:16px;height:16px}.seg-modal-footer{border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;margin-top:22px;padding-top:16px;display:flex}.seg-selected-count{color:#64748b;font-size:13px;font-weight:500}.compute-run-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;justify-content:center;align-items:center;min-width:36px;height:36px;padding:0;font-size:16px;font-weight:600;transition:all .2s;display:inline-flex}.compute-run-btn:hover{background:#1d4ed8}.compute-run-btn:disabled{cursor:not-allowed;background:#94a3b8}.seg-cell{min-width:140px}.seg-label{color:#94a3b8;font-size:13px}.seg-label.has-segment{color:#fff;background:#2563eb;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:700}.seg-edit-inline{align-items:center;gap:4px;display:flex}.seg-edit-input{color:#111827;border:1px solid #e2e8f0;border-radius:6px;outline:none;width:100px;padding:6px 12px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}.seg-edit-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.seg-save-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:700}.seg-save-btn:hover{background:#1d4ed8}.seg-cancel-btn{cursor:pointer;color:#94a3b8;background:0 0;border:none;align-items:center;padding:2px;font-size:13px;display:flex}.seg-cancel-btn:hover{color:#374151}.seg-results-section{margin-top:24px}.seg-results-title{color:#1a1a1a;margin:0 0 4px;font-family:Inter,Plus Jakarta Sans,sans-serif;font-size:16px;font-weight:700}.seg-results-subtitle{color:#888;margin:0 0 12px;font-family:Inter,Plus Jakarta Sans,sans-serif;font-size:13px}.seg-results-empty{text-align:center;color:#666;margin-top:60px;font-family:Inter,Plus Jakarta Sans,sans-serif}.seg-results-empty p{margin-bottom:16px;font-size:15px}.seg-badge{color:#4b6bfb;white-space:nowrap;background:#eef2ff;border-radius:6px;padding:4px 10px;font-size:12.5px;font-weight:600}.seg-name-text{color:#333;font-size:13px;font-weight:500}.campaign-header .action-btn,.campaign-header .icon-btn{justify-content:center;align-items:center;min-width:34px;height:34px;padding:0;font-size:14px;display:inline-flex}.aa-error .action-btn{justify-content:center;align-items:center;min-width:34px;height:34px;padding:0;display:inline-flex}.aa-loading-wrap,.aa-error{text-align:center;color:#64748b;padding:40px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px;line-height:1.5}.aa-error p{color:#ef4444;margin-bottom:12px}.aa-empty{text-align:center;color:#94a3b8;padding:80px 40px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px;line-height:1.5}.aa-empty h3{color:#111827;margin-bottom:12px;font-size:17px;font-weight:700}.aa-modal{max-width:820px}.aa-field-group{margin-bottom:18px}.aa-group-label{color:#374151;margin:0 0 6px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px;font-weight:600}.aa-charts-grid{grid-template-columns:1fr;gap:20px;padding:20px;display:grid}.aa-chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px;transition:box-shadow .18s,transform .18s;box-shadow:0 1px 3px #0000000f}.aa-chart-card:hover{transform:translateY(-1px);box-shadow:0 4px 14px #00000017}.aa-chart-title{color:#111827;margin:0 0 12px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:14px;font-weight:600}.aa-chart-img{border-radius:8px;width:100%;height:auto;display:block}.aa-fi-section{background:#fff;border:1px solid #e2e8f0;border-radius:10px;margin:20px;padding:14px;transition:box-shadow .18s,transform .18s;box-shadow:0 1px 3px #0000000f}.aa-fi-section:hover{transform:translateY(-1px);box-shadow:0 4px 14px #00000017}.aa-fi-title{color:#111827;margin:0 0 12px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:17px;font-weight:700}.aa-fi-layout{grid-template-columns:2fr 1fr;align-items:start;gap:16px;display:grid}.aa-fi-table{border-collapse:collapse;background:#fff;width:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}.aa-fi-table th,.aa-fi-table td{text-align:left;padding:10px 14px}.aa-fi-table th{color:#475569;z-index:1;background:#fff;border-bottom:1px solid #e2e8f0;font-size:13px;font-weight:700;position:sticky;top:0}.aa-fi-table tbody tr{background:#fff;border-bottom:1px solid #f1f5f9}.aa-fi-table tbody tr:nth-child(2n){background:#f8fafc}.aa-fi-table tbody tr:hover{background:#f1f5f9}.aa-fi-table td{color:#1e293b}.aa-fi-table td.numeric,.aa-fi-table th.numeric{text-align:right}.aa-rank-badge{color:#fff;text-align:center;background:#2563eb;border-radius:10px;min-width:22px;padding:2px 8px;font-size:10px;font-weight:700;display:inline-block}.aa-accuracy-pill{color:#fff;background:#22c55e;border-radius:20px;padding:4px 12px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:12px;font-weight:700;display:inline-block}@media (width<=1000px){.aa-fi-layout{grid-template-columns:1fr}}.upload-pages{box-sizing:border-box;background:#f7f8fa;width:auto;min-height:calc(100vh - 70px);padding:24px 32px;position:absolute;top:40px;left:70px;right:0;overflow-x:hidden}.upload-containers{box-sizing:border-box;background:#fff;border-radius:16px;width:100%;padding:24px;box-shadow:0 6px 16px #0000000f}.upload-title{color:#111827;margin-bottom:20px;font-size:20px;font-weight:600}.upload-tab-bar{background:#f7f8fa;border:1px solid #e5e7eb;border-radius:12px;align-items:center;gap:12px;margin-bottom:24px;padding:12px 16px;display:flex}.upload-tab{cursor:pointer;color:#6b7280;background:0 0;border:none;border-radius:8px;align-items:center;gap:8px;padding:10px 20px;font-size:14px;font-weight:500;transition:all .2s;display:flex}.upload-tab:hover{color:#111827;background:#0000000a}.upload-tab.active{color:#111827;background:#fff;box-shadow:0 2px 8px #0000000f}.tab-count{color:#6b7280;background:#e5e7eb;border-radius:12px;padding:1px 10px;font-size:12px;font-weight:600}.upload-tab.active .tab-count{color:#fff;background:#111827}.upload-btn-wrapper{margin-left:auto;position:relative}.file-input-hidden{opacity:0;pointer-events:none;width:.1px;height:.1px;position:absolute}.upload-action-btn{color:#fff;cursor:pointer;background:#111827;border-radius:8px;padding:10px 24px;font-size:14px;font-weight:500;transition:all .2s;display:inline-block}.upload-action-btn:hover{background:#1f2937;transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.upload-content{flex-direction:column;align-items:center;min-height:400px;padding:10px 0;display:flex}.upload-empty{flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:60px 20px;display:flex}.empty-icon{opacity:.3;font-size:72px}.empty-text{color:#6b7280;font-size:16px;font-weight:500}.empty-sub{color:#9ca3af;font-size:14px}.upload-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;width:100%;margin-bottom:24px;display:grid}.upload-item{background:#f7f8fa;border:1px solid #e5e7eb;border-radius:12px;padding:14px;transition:all .2s}.upload-item:hover{background:#fff;border-color:#d1d5db;box-shadow:0 2px 8px #0000000a}.item-preview{background:#fff;border:1px solid #f3f4f6;border-radius:8px;justify-content:center;align-items:center;height:100px;margin-bottom:10px;display:flex;position:relative}.item-icon{font-size:48px}.item-remove{color:#fff;cursor:pointer;opacity:0;background:#0009;border:none;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:12px;transition:all .2s;display:flex;position:absolute;top:6px;right:6px}.upload-item:hover .item-remove{opacity:1}.item-remove:hover{background:#dc3545;transform:scale(1.1)}.item-details{flex-direction:column;gap:4px;display:flex}.item-name{color:#111827;white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;overflow:hidden}.item-size{color:#6b7280;font-size:12px}.upload-status{color:#0c5460;text-align:center;background:#f0f9ff;border:1px solid #d1ecf1;border-radius:8px;width:100%;margin-bottom:16px;padding:10px 20px;font-size:14px}.upload-all-btn{color:#fff;cursor:pointer;background:#10b981;border:none;border-radius:8px;padding:12px 32px;font-size:15px;font-weight:600;transition:all .2s}.upload-all-btn:hover:not(:disabled){background:#059669;transform:translateY(-2px);box-shadow:0 4px 12px #10b9814d}.upload-all-btn:disabled{cursor:not-allowed;opacity:.7;background:#d1d5db}@media (width<=1200px){.upload-page{width:100%;padding:20px;left:0}}@media (width<=900px){.upload-page{padding:16px;top:20px}.upload-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}}@media (width<=768px){.upload-tab-bar{flex-wrap:wrap;gap:8px;padding:10px}.upload-tab{flex:1;justify-content:center;padding:8px 12px;font-size:13px}.upload-btn-wrapper{width:100%;margin-left:0}.upload-action-btn{text-align:center;width:100%;padding:10px}.upload-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.item-preview{height:80px}.item-icon{font-size:36px}.empty-icon{font-size:56px}.upload-all-btn{width:100%}}@media (width<=600px){.upload-page{padding:12px;top:10px}.upload-container{padding:16px}.upload-title{font-size:18px}.upload-tab{padding:6px 10px;font-size:12px}.tab-count{padding:0 8px;font-size:10px}.upload-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}.item-preview{height:60px}.item-icon{font-size:28px}.item-name{font-size:12px}.item-size{font-size:10px}.empty-icon{font-size:48px}.empty-text{font-size:14px}}.category-popup-overlay{z-index:1000;background:#00000080;justify-content:center;align-items:center;animation:.3s fadeIn;display:flex;position:fixed;inset:0}.category-popup{background:#fff;border-radius:16px;width:90%;max-width:480px;padding:0;animation:.3s slideUp;overflow:hidden;box-shadow:0 20px 60px #0000004d}.popup-header{background:#fafafa;border-bottom:2px solid #f0f0f0;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.popup-header h3{color:#1a1a2e;margin:0;font-size:18px;font-weight:600}.popup-close{color:#6b7280;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 8px;font-size:20px;transition:all .2s}.popup-close:hover{color:#111827;background:#f3f4f6}.popup-content{flex-direction:column;gap:14px;padding:20px 24px 24px;display:flex}.category-item{cursor:pointer;background:#f8f9fa;border:2px solid #0000;border-radius:12px;align-items:center;gap:16px;padding:16px 20px;transition:all .3s;display:flex}.category-item:hover{background:#fff;border-color:#e5e7eb;transform:translate(6px);box-shadow:0 4px 12px #0000000f}.category-item:active{transform:scale(.98)}.category-item:first-child:hover{background:#eff6ff;border-color:#3b82f6}.category-item:last-child:hover{background:#f5f3ff;border-color:#8b5cf6}.category-image-icon{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:56px;height:56px;transition:all .3s;display:flex}.category-item:hover .category-image-icon{transform:scale(1.05);box-shadow:0 4px 12px #00000014}.category-item:first-child:hover .category-image-icon{border-color:#3b82f6}.category-item:last-child:hover .category-image-icon{border-color:#8b5cf6}.category-img{object-fit:contain;width:32px;height:32px;transition:all .3s}.category-item:hover .category-img{transform:scale(1.1)}.category-info{flex-direction:column;flex:1;gap:2px;display:flex}.category-name{color:#1a1a2e;font-size:16px;font-weight:600}.category-desc{color:#6b7280;font-size:13px}.category-arrow{color:#9ca3af;font-size:20px;transition:all .3s}.category-item:hover .category-arrow{color:#1a1a2e;transform:translate(4px)}@media (width<=768px){.category-popup{width:95%;max-width:400px}.popup-header{padding:16px 20px}.popup-header h3{font-size:16px}.popup-content{gap:12px;padding:16px 16px 20px}.category-item{gap:12px;padding:14px 16px}.category-image-icon{width:48px;height:48px}.category-img{width:28px;height:28px}.category-name{font-size:15px}.category-desc{font-size:12px}}@media (width<=480px){.category-popup{border-radius:12px;width:98%;max-width:350px}.popup-header{padding:14px 16px}.popup-header h3{font-size:15px}.popup-close{font-size:18px}.popup-content{gap:10px;padding:12px 12px 16px}.category-item{border-radius:10px;gap:10px;padding:12px 14px}.category-image-icon{border-radius:8px;width:40px;height:40px}.category-img{width:22px;height:22px}.category-name{font-size:14px}.category-desc{font-size:11px}.category-arrow{font-size:16px}}.category-name-input-container{margin-bottom:20px;padding:0 5px}.category-name-input-container label{color:#333;margin-bottom:8px;font-size:14px;font-weight:600;display:block}.category-name-input{box-sizing:border-box;background:#f8f9fa;border:2px solid #e0e0e0;border-radius:8px;width:100%;padding:10px 14px;font-size:14px;transition:all .3s}.category-name-input:focus{background:#fff;border-color:#6c63ff;outline:none;box-shadow:0 0 0 3px #6c63ff1a}.category-name-input::placeholder{color:#999}.category-divider{text-align:center;color:#888;margin:20px 0 15px;font-size:13px;position:relative}.category-divider:before,.category-divider:after{content:"";background:#ddd;width:35%;height:1px;position:absolute;top:50%}.category-divider:before{left:0}.category-divider:after{right:0}.category-popup{background:#fff;border-radius:16px;width:90%;max-width:400px;max-height:90vh;padding:25px 20px 20px;animation:.3s slideUp;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.category-popup-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.popup-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.popup-header h3{color:#333;margin:0;font-size:18px}.popup-close{cursor:pointer;color:#666;background:0 0;border:none;padding:0 5px;font-size:20px;transition:color .2s}.popup-close:hover{color:#333}.ruleset-management-container{color:#0f172a;background:#f8fafc;width:98%;height:90vh;margin-top:40px;margin-left:60px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;display:flex;overflow:hidden}.ruleset-left-panel{background:#fff;border-right:1px solid #e2e8f0;flex-direction:column;flex-shrink:0;width:288px;min-width:288px;display:flex}.ruleset-left-header{border-bottom:1px solid #f1f5f9;padding:16px 20px}.back-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;margin-bottom:12px;padding:0;font-size:12px;transition:color .2s;display:flex}.back-btn:hover{color:#475569}.ruleset-manager-title{align-items:center;gap:8px;display:flex}.manager-icon{background:#6366f1;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.icon-white{color:#fff}.manager-heading{color:#0f172a;margin:0;font-size:14px;font-weight:700;line-height:1.2}.manager-sub{color:#94a3b8;margin:0;font-size:11px}.search-container{border-bottom:1px solid #f1f5f9;padding:12px 20px;position:relative}.search-icon{color:#94a3b8;position:absolute;top:50%;left:32px;transform:translateY(-50%)}.search-input{background:#fff;border:1px solid #e2e8f0;border-radius:8px;outline:none;width:100%;padding:8px 12px 8px 32px;font-size:12px;transition:border-color .2s,box-shadow .2s}.search-input:focus{border-color:#6366f1;box-shadow:0 0 0 3px #6366f11a}.pipeline-summary{flex:1;padding:16px 20px;overflow-y:auto}.pipeline-title{text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin:0 0 8px;font-size:11px;font-weight:600}.stage-list{margin:0 0 16px;padding:0;list-style:none}.stage-list-btn{cursor:pointer;color:#475569;background:0 0;border:none;border-radius:6px;justify-content:space-between;align-items:center;width:100%;padding:6px 8px;font-size:12px;transition:background .15s;display:flex}.stage-list-btn:hover,.stage-list-btn.active{background:#f8fafc}.stage-list-left{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:8px;display:flex;overflow:hidden}.stage-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px}.stage-count{color:#94a3b8;flex-shrink:0;font-weight:500}.total-rulesets{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding-top:16px;display:flex}.total-label{color:#64748b;font-size:12px}.total-value{color:#0f172a;font-size:14px;font-weight:700}.refresh-container{border-top:1px solid #f1f5f9;padding:16px 20px}.refresh-btn{color:#fff;cursor:pointer;background:#6366f1;border:none;border-radius:8px;justify-content:center;align-items:center;gap:8px;width:100%;padding:10px 0;font-size:12px;font-weight:600;transition:background .2s;display:flex}.refresh-btn:hover{background:#4f46e5}.spinning{animation:1s linear infinite spin}.ruleset-main-board{flex-direction:column;flex:1;width:0;min-width:0;margin-top:20px;display:flex;overflow:hidden}.board-header{background:#fff;border-bottom:1px solid #e2e8f0;flex-shrink:0;justify-content:space-between;align-items:center;width:95%;padding:16px 24px;display:flex}.board-title{align-items:center;gap:8px;display:flex}.board-icon{color:#6366f1}.board-title h2{color:#0f172a;margin:0;font-size:16px;font-weight:700}.board-refresh-btn{color:#fff;cursor:pointer;background:#f43f5e;border:none;border-radius:8px;flex-shrink:0;align-items:center;gap:8px;padding:8px 14px;font-size:12px;font-weight:600;transition:background .2s;display:flex}.board-refresh-btn:hover{background:#e11d48}.board-content{flex:1;min-height:0;padding:24px;overflow:auto}.loading-state{color:#94a3b8;justify-content:center;align-items:center;gap:8px;height:100%;font-size:14px;display:flex}.kanban-columns{gap:16px;height:100%;padding-bottom:8px;display:flex;overflow-x:auto}.kanban-column{flex-direction:column;flex-shrink:0;width:288px;min-width:288px;max-width:288px;height:100%;display:flex}.column-header{flex-shrink:0;justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.column-header-left{align-items:center;gap:8px;min-width:0;display:flex}.column-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.column-folder{color:#94a3b8;flex-shrink:0}.column-title{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:14px;font-weight:600;overflow:hidden}.column-count{border:1px solid #0000;border-radius:12px;flex-shrink:0;padding:2px 10px;font-size:11px;font-weight:700}.column-bar{opacity:.7;border-radius:4px;flex-shrink:0;height:4px;margin-bottom:12px}.column-cards{flex-direction:column;flex:1;gap:12px;min-height:0;padding-right:4px;display:flex;overflow-y:auto}.empty-rulesets{color:#94a3b8;text-align:center;background:#f1f5f999;border:1px dashed #e2e8f0;border-radius:8px;padding:32px 0;font-size:12px;font-style:italic}.ruleset-card{text-align:left;cursor:pointer;background:#c7cad0;border:1px solid #e2e8f0;border-radius:12px;flex-shrink:0;width:100%;padding:14px 16px;transition:all .2s;box-shadow:0 1px 2px #0000000d}.ruleset-card:hover{border-color:#cbd5e1;box-shadow:0 4px 6px -1px #0000001a}.ruleset-card.selected{border-color:#6366f1;box-shadow:0 0 0 2px #6366f133}.ruleset-card-header{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.ruleset-card-left{align-items:flex-start;gap:8px;min-width:0;display:flex}.ruleset-card-icon{border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:24px;height:24px;margin-top:2px;display:flex}.ruleset-card-info{min-width:0}.ruleset-card-name{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:14px;font-weight:600;overflow:hidden}.ruleset-card-desc{color:#94a3b8;text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:12px;overflow:hidden}.ruleset-status-badge{border:1px solid;border-radius:12px;flex-shrink:0;padding:2px 8px;font-size:10px;font-weight:600}.ruleset-status-badge.active{color:#16a34a;background:#dcfce7;border-color:#bbf7d0}.ruleset-status-badge.inactive{color:#94a3b8;background:#f1f5f9;border-color:#e2e8f0}.ruleset-card-footer{border-top:1px solid #f1f5f9;align-items:center;gap:12px;margin-top:12px;padding-top:12px;display:flex}.ruleset-card-stat{color:#64748b;align-items:center;gap:4px;font-size:12px;display:flex}.ruleset-card-view{color:#6366f1;align-items:center;gap:4px;margin-left:auto;font-size:12px;font-weight:500;display:flex}.rule-item{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:12px;overflow:hidden}.rule-header-btn{cursor:pointer;text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;transition:background .15s;display:flex}.rule-header-btn:hover{background:#f8fafc}.rule-header-left{align-items:center;gap:8px;min-width:0;display:flex}.rule-icon{color:#94a3b8;flex-shrink:0}.rule-name-text{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;overflow:hidden}.rule-status-badge{border:1px solid;border-radius:12px;flex-shrink:0;padding:2px 8px;font-size:10px;font-weight:600}.rule-status-badge.active{color:#16a34a;background:#dcfce7;border-color:#bbf7d0}.rule-status-badge.inactive{color:#94a3b8;background:#f1f5f9;border-color:#e2e8f0}.rule-var-count{color:#94a3b8;flex-shrink:0;font-size:12px}.rule-expanded{border-top:1px solid #f1f5f9;padding:0 12px 12px}.rule-description-text{color:#64748b;margin:8px 0 12px;font-size:12px}.variables-header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.variables-title{text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin:0;font-size:12px;font-weight:600}.add-var-btn{color:#6366f1;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;font-weight:500;transition:background .2s;display:flex}.add-var-btn:hover{background:#eef2ff}.empty-variables{color:#94a3b8;text-align:center;background:#f8fafc;border-radius:6px;padding:12px;font-size:12px;font-style:italic}.variables-table-wrap{border:1px solid #e2e8f0;border-radius:6px;overflow-x:auto}.variables-table{border-collapse:collapse;width:100%;font-size:12px}.variables-table thead{background:#f8fafc}.variables-table th{color:#64748b;text-align:left;text-transform:uppercase;letter-spacing:.3px;border-bottom:2px solid #e2e8f0;padding:6px 8px;font-size:11px;font-weight:600}.variables-table td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:6px 8px}.text-center{text-align:center}.var-input{background:0 0;border:1px solid #e2e8f0;border-radius:4px;outline:none;width:100%;padding:4px 6px;font-size:12px;transition:border-color .2s,box-shadow .2s}.var-input:focus{border-color:#6366f1;box-shadow:0 0 0 2px #6366f11a}.var-select{background:#fff;border:1px solid #e2e8f0;border-radius:4px;outline:none;width:100%;padding:4px 6px;font-size:12px}.var-select:focus{border-color:#6366f1;box-shadow:0 0 0 2px #6366f11a}.var-checkbox{accent-color:#6366f1;cursor:pointer}.remove-var-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:4px;transition:color .2s,background .2s}.remove-var-btn:hover{color:#f43f5e;background:#ffe4e6}.drawer-overlay{z-index:40;justify-content:flex-end;margin-top:60px;display:flex;position:fixed;inset:0}.drawer-backdrop{cursor:pointer;background:#0f172a4d;position:absolute;inset:0}.drawer-content{background:#fff;flex-direction:column;width:100%;max-width:448px;height:100%;animation:.15s ease-out slideIn;display:flex;position:relative;box-shadow:-8px 0 24px #0000001a}.drawer-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:flex-start;padding:4px;display:flex}.drawer-header-info{min-width:0}.drawer-title{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;margin:0 0 2px;font-size:16px;font-weight:700;overflow:hidden}.drawer-desc{color:#94a3b8;margin:0 0 8px;font-size:12px}.drawer-meta{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.drawer-status{border:1px solid;border-radius:12px;padding:2px 8px;font-size:10px;font-weight:600}.drawer-status.active{color:#16a34a;background:#dcfce7;border-color:#bbf7d0}.drawer-status.inactive{color:#94a3b8;background:#f1f5f9;border-color:#e2e8f0}.drawer-meta-item{color:#64748b;font-size:10px;font-weight:500}.drawer-close{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;padding:4px;transition:color .2s,background .2s}.drawer-close:hover{color:#475569;background:#f1f5f9}.drawer-body{flex:1;padding:20px;overflow-y:auto}.drawer-empty{text-align:center;padding:48px 0}.drawer-empty-icon{margin-bottom:8px;font-size:32px}.drawer-empty h4{color:#475569;margin:0 0 4px;font-size:14px;font-weight:600}.drawer-empty p{color:#94a3b8;margin:0;font-size:12px}.pipeline-summary::-webkit-scrollbar{width:4px;height:4px}.column-cards::-webkit-scrollbar{width:4px;height:4px}.drawer-body::-webkit-scrollbar{width:4px;height:4px}.board-content::-webkit-scrollbar{width:4px;height:4px}.pipeline-summary::-webkit-scrollbar-track{background:0 0}.column-cards::-webkit-scrollbar-track{background:0 0}.drawer-body::-webkit-scrollbar-track{background:0 0}.board-content::-webkit-scrollbar-track{background:0 0}.pipeline-summary::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.column-cards::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.drawer-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.board-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.pipeline-summary::-webkit-scrollbar-thumb:hover{background:#94a3b8}.column-cards::-webkit-scrollbar-thumb:hover{background:#94a3b8}.drawer-body::-webkit-scrollbar-thumb:hover{background:#94a3b8}.board-content::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (width<=768px){.ruleset-left-panel,.kanban-column{width:240px;min-width:240px}.drawer-content{max-width:100%}.board-header{padding:12px 16px}.board-content{padding:16px}}:root{--canvas-bg:#eef1f5;--panel-bg:#fff;--border:#e3e6ea;--border-soft:#edeff2;--text-primary:#1f2430;--text-secondary:#7a8194;--text-muted:#a7adba;--accent-orange:#ff5a1f;--accent-teal:#14b8a6;--accent-purple:#7c5cff;--accent-purple-bg:#f1edff;--accent-teal-bg:#e6faf7;--accent-whatsapp:#1090d9;--accent-whatsapp-bg:#eaf6fd;--accent-sms:#2f80ed;--accent-sms-bg:#eaf2ff;--accent-yellow:#f5c518;--accent-yellow-bg:#fff8e0;--handle-dot:#c7cbd4;--row-desc-color:#efe9ff;--row-option-color:#eaf3ff;--shadow-card:0 1px 2px #1018280a, 0 1px 3px #1018280f;--shadow-panel:0 4px 12px #10182814;--radius-card:8px;--radius-sm:8px}.wf-builder-page *{box-sizing:border-box}.wf-builder-page{color:var(--text-primary);background:var(--canvas-bg);-webkit-font-smoothing:antialiased;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;position:fixed;inset:70px 0 0 70px;overflow:hidden}.app-shell{background:var(--canvas-bg);flex-direction:column;height:100%;display:flex}.topbar{background:var(--panel-bg);border-bottom:1px solid var(--border);z-index:20;justify-content:space-between;align-items:center;height:56px;min-height:56px;padding:0 16px;display:flex}.topbar-left{align-items:center;gap:12px;display:flex}.wfb-icon-btn{width:32px;height:32px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;transition:background .15s;display:flex}.wfb-icon-btn:hover{background:var(--border-soft)}.wfb-icon-btn.active{background:var(--accent-purple-bg);color:var(--accent-purple)}.rules-btn{cursor:pointer;color:#000;background:#fff;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;margin-right:10px;padding:0;transition:filter .15s,transform .1s;display:flex;box-shadow:0 1px 2px #9a67002e}.rules-btn:hover{filter:brightness(1.03)}.rules-btn:active{transform:translateY(1px)}.workflow-title{color:var(--text-primary);background:0 0;border:none;outline:none;min-width:120px;font-size:16px;font-weight:600}.workflow-title::placeholder{color:var(--text-muted);font-weight:500}.import-json-btn,.save-json-btn{cursor:pointer;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;transition:filter .15s,transform .1s;display:flex}.import-json-btn{color:#000;background:#fff;margin-right:10px;box-shadow:0 1px 2px #7c3aed33}.save-json-btn{color:#000;background:#fff;margin-right:10px;box-shadow:0 1px 2px #2563eb33}.save-db-btn{cursor:pointer;color:#000;background:#fff;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;transition:filter .15s,transform .1s;display:flex;box-shadow:0 1px 2px #04785733}.import-json-btn:hover,.save-json-btn:hover,.save-db-btn:hover{filter:brightness(1.03)}.import-json-btn:active,.save-json-btn:active,.save-db-btn:active{transform:translateY(1px)}.save-status{color:var(--text-muted);margin-right:8px;font-size:14px}.body-row{flex:1;min-height:0;display:flex;position:relative}.wfb-sidebar{background:var(--panel-bg);border-right:1px solid var(--border);flex-direction:column;width:260px;min-width:260px;transition:margin-left .2s;display:flex;overflow:hidden}.wfb-sidebar.collapsed{margin-left:-260px}.wfb-sidebar-search{border-bottom:1px solid var(--border-soft);padding:12px}.search-input-wrap{background:#f4f5f7;border-radius:8px;align-items:center;gap:8px;padding:7px 10px;display:flex}.search-input-wrap input{width:100%;color:var(--text-primary);background:0 0;border:none;outline:none;font-size:15px}.search-input-wrap input::placeholder{color:var(--text-muted)}.wfb-sidebar-scroll{flex:1;padding-bottom:12px;overflow-y:auto}.node-category{border-bottom:1px solid var(--border-soft)}.category-header{cursor:pointer;letter-spacing:.02em;color:var(--text-primary);-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:12px 14px;font-size:14px;font-weight:700;display:flex}.category-header:hover{background:#fafbfc}.category-chevron{color:var(--text-muted);transition:transform .15s;display:flex}.category-chevron.open{transform:rotate(180deg)}.category-items{padding:0 8px 8px}.node-item{cursor:grab;border-radius:8px;align-items:flex-start;gap:10px;padding:8px;display:flex}.node-item:hover{background:#f5f6f8}.node-item:active{cursor:grabbing}.node-item-icon{border-radius:7px;justify-content:center;align-items:center;width:28px;min-width:28px;height:28px;display:flex}.node-item-text .node-item-title{color:var(--text-primary);font-size:14.5px;font-weight:600;line-height:1.3}.node-item-text .node-item-desc{color:var(--text-muted);margin-top:1px;font-size:13.5px;line-height:1.35}.wfb-sidebar-toggle-strip{cursor:pointer;color:#fff;background:#2563eb;border-radius:0 8px 8px 0;justify-content:center;align-items:center;width:14px;height:46px;display:flex;position:absolute;top:50%;right:-14px;transform:translateY(-50%)}.canvas-wrap{background:var(--canvas-bg);flex:1;position:relative}.react-flow__attribution{display:none}.canvas-loading-overlay{z-index:15;color:var(--text-muted);background:var(--canvas-bg);justify-content:center;align-items:center;font-size:16px;font-weight:500;display:flex;position:absolute;inset:0}.canvas-empty-state{z-index:15;text-align:center;pointer-events:none;flex-direction:column;align-items:center;gap:6px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.canvas-empty-state span{color:var(--text-secondary);font-size:17px;font-weight:600}.canvas-empty-state-sub{max-width:320px;color:var(--text-muted)!important;font-size:15px!important;font-weight:400!important}.wf-node{background:var(--panel-bg);border-radius:var(--radius-card);border:1px solid var(--border);width:260px;box-shadow:var(--shadow-card);font-size:14px;position:relative;overflow:visible}.wf-node.selected{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.wf-node-header{background:var(--panel-bg);border-bottom:1px solid var(--border-soft);border-radius:var(--radius-card) var(--radius-card) 0 0;align-items:center;gap:10px;padding:12px 16px;display:flex}.wf-node-icon{border-radius:7px;justify-content:center;align-items:center;width:28px;min-width:28px;height:28px;display:flex}.wf-node-title{color:var(--text-primary);white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;overflow:hidden}.wf-node-desc-row{color:var(--text-primary);border-bottom:1px solid var(--border-soft);background:var(--row-desc-color);justify-content:space-between;align-items:center;padding:12px 16px;font-weight:600;display:flex;position:relative}.wf-node-row{border-bottom:1px solid var(--border-soft);color:var(--text-primary);background:var(--row-option-color);justify-content:space-between;align-items:center;padding:11px 16px;display:flex;position:relative}.wf-node-row:last-child{border-radius:0 0 var(--radius-card) var(--radius-card);border-bottom:none}.wf-node-desc-row:last-child{border-radius:0 0 var(--radius-card) var(--radius-card)}.wf-node-row-duration{background:var(--panel-bg);color:var(--text-secondary);font-weight:500}.wf-node-row-label{align-items:center;gap:6px;display:flex}.wf-node-row-icon{color:var(--text-muted);align-items:center;display:flex}.wf-handle-dot{display:none}.rf-handle{background:#1f2430!important;border:1.6px solid #1f2430!important;width:9px!important;height:9px!important;right:-5px!important;box-shadow:0 0 0 3px #1f243014!important}.rf-handle-target{width:8px!important;height:8px!important;box-shadow:none!important;background:0 0!important;border:none!important}.wf-end-node{border:7px solid var(--accent-yellow);width:68px;height:68px;color:var(--text-secondary);background:#fff;border-radius:50%;justify-content:center;align-items:center;font-size:14px;font-weight:600;display:flex;box-shadow:0 1px 3px #10182814}.wf-node-delete{border:1px solid var(--border);cursor:pointer;width:26px;height:26px;color:var(--text-secondary);box-shadow:var(--shadow-card);background:#fff;border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;top:-11px;right:-11px}.wf-node:hover .wf-node-delete{display:flex}.react-flow__edge-path{transition:stroke .15s,stroke-width .15s}.react-flow__edge:hover .react-flow__edge-path{stroke:#8b93a3!important}.react-flow__edge.selected .react-flow__edge-path{stroke:#2563eb!important;stroke-width:2px!important}.react-flow__connection-path{stroke:#b7bfcc!important;stroke-width:1.6px!important}.rules-panel-backdrop{z-index:30;background:#0f172a47;animation:.15s ease-out rules-fade-in;position:absolute;inset:0}@keyframes rules-fade-in{0%{opacity:0}to{opacity:1}}.rules-panel{z-index:31;background:var(--panel-bg);flex-direction:column;transition:width .2s;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:hidden;box-shadow:-8px 0 24px #10182824}.rules-panel-peek{width:480px;max-width:92%;animation:.18s ease-out rules-slide-in}@keyframes rules-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.rules-panel-full{width:100%}.rules-panel-header{border-bottom:1px solid var(--border);background:var(--panel-bg);justify-content:space-between;align-items:center;height:52px;min-height:52px;padding:0 16px;display:flex}.rules-panel-title{color:var(--text-primary);align-items:center;gap:8px;font-size:15px;font-weight:700;display:flex}.rules-panel-actions{align-items:center;gap:4px;display:flex}.rules-panel-icon-btn{width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:7px;justify-content:center;align-items:center;transition:background .15s;display:flex}.rules-panel-icon-btn:hover{background:var(--border-soft);color:var(--text-primary)}.rules-panel-body{background:#f8fafc;flex:1;overflow:auto}.rules-panel-embedded{width:100%;height:100%;overflow:auto}.rules-panel-embedded .campaign-rules-wrapper{width:100%!important;min-height:100%!important;padding:16px 20px!important;position:static!important;top:auto!important;left:auto!important;right:auto!important}:root{--primary-color:#2563eb;--border-color:#e2e8f0;--panel-margin:32px}.content-wrapper{box-sizing:border-box;background:#f1f5f9;width:100%;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex}.main-content{box-sizing:border-box;background:#f1f5f9;flex:1;width:100%;min-width:0;padding:24px}.main-header{width:calc(100% - (var(--panel-margin) * 2));box-sizing:border-box;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;margin-right:50px;padding-bottom:15px;display:flex}.header-left{color:#111827;align-items:center;gap:6px;font-size:18px;font-weight:700;display:flex}.path-sub{color:#6b7280}.header-right{align-items:center;gap:12px;display:flex}.im-search-box{background:#fff;border:1px solid #d1d5db;border-radius:6px;align-items:center;gap:8px;height:34px;padding:0 12px;display:flex}.im-search-box input{color:#1e293b;background:0 0;border:none;outline:none;width:260px;font-size:13px}.im-search-icon{color:#9ca3af;flex-shrink:0}.action-btn,.icon-btn{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;justify-content:center;align-items:center;min-width:34px;height:34px;padding:0;font-size:14px;font-weight:600;transition:all .2s;display:inline-flex}.action-btn:hover,.icon-btn:hover{background:#f9fafb}.table-container{margin:var(--panel-margin);width:calc(100% - (var(--panel-margin) * 2));box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:auto hidden}table{border-collapse:collapse;table-layout:auto;background:#fff;width:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:13px}thead th{text-align:left;color:#475569;white-space:nowrap;z-index:1;background:#fff;border-bottom:1px solid #e2e8f0;padding:10px 14px;font-size:13px;font-weight:700;position:sticky;top:0}tbody tr{background:#fff;border-bottom:1px solid #f1f5f9}tbody td{color:#1e293b;white-space:nowrap;padding:10px 14px;font-size:13px;font-weight:500}tbody tr:hover{background:#f1f5f9}.im-status-badge{border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;line-height:1.4;display:inline-block}.im-status-success{color:#15803d;background:#dcfce7}.im-status-failed{color:#b91c1c;background:#fee2e2}.no-results{text-align:center;color:#a0aec0;padding:40px 20px;font-size:14px}.no-results p{margin:0}.pagination-bar{background:#fff;border-top:1px solid #e5e7eb;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.pagination-info{color:#6b7280;font-size:13px}.pagination-controls{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.pagination-btn{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:6px;min-width:32px;height:32px;padding:0 10px;font-size:13px;transition:background .15s,color .15s,border-color .15s}.pagination-btn:hover:not(:disabled){background:#f3f4f6;border-color:#9ca3af}.pagination-btn:disabled{opacity:.5;cursor:not-allowed}.pagination-btn.page-number.active{color:#fff;background:#2563eb;border-color:#2563eb}@media (width<=768px){.im-search-box input{width:160px}}@media (width<=480px){.pagination-bar{flex-direction:column;align-items:flex-start}}.im-modal-overlay{z-index:1000;background:#0f172a80;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.im-modal-content{background:#fff;border-radius:10px;width:520px;max-width:calc(100% - 32px);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow:hidden;box-shadow:0 10px 30px #0003}.im-modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:16px 20px;display:flex}.im-modal-header h3{color:#111827;margin:0;font-size:16px;font-weight:700}.im-modal-close{color:#6b7280;cursor:pointer;background:0 0;border:none;padding:4px;font-size:20px;line-height:1}.im-modal-close:hover{color:#111827}.im-modal-body{padding:20px}.im-modal-label{color:#374151;margin-bottom:8px;font-size:13px;font-weight:600;display:block}.im-json-textarea{box-sizing:border-box;color:#1e293b;resize:vertical;border:1px solid #d1d5db;border-radius:6px;outline:none;width:100%;min-height:220px;padding:10px 12px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:13px}.im-json-textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.im-modal-error{color:#b91c1c;background:#fee2e2;border-radius:6px;margin-top:10px;padding:8px 12px;font-size:13px}.im-modal-footer{border-top:1px solid #e2e8f0;justify-content:flex-end;gap:10px;padding:16px 20px;display:flex}.im-btn{cursor:pointer;border:1px solid #0000;border-radius:6px;padding:8px 18px;font-size:13px;font-weight:600;transition:all .2s}.im-btn:disabled{opacity:.6;cursor:not-allowed}.im-btn-secondary{color:#374151;background:#fff;border-color:#d1d5db}.im-btn-secondary:hover:not(:disabled){background:#f9fafb}.im-btn-primary{color:#fff;background:#2563eb}.im-btn-primary:hover:not(:disabled){background:#1d4ed8}.im-create-btn{color:#fff;cursor:pointer;background:#2563eb;border:1px solid #2563eb;border-radius:6px;align-items:center;gap:6px;height:34px;padding:0 14px;font-size:13px;font-weight:600;transition:all .2s;display:inline-flex}.im-create-btn:hover{background:#1d4ed8}:root{--ui-font:"Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--ui-text:#1e293b;--ui-text-strong:#0f172a;--ui-text-muted:#64748b;--ui-bg-page:#e5e7eb;--ui-bg-card:#fff;--ui-bg-header:#e5e7eb;--ui-bg-row-alt:#eff6ff;--ui-accent:#2563eb;--ui-accent-dark:#1d4ed8;--ui-border:#e2e8f0;--ui-border-soft:#eef2f7;--ui-success:#16a34a;--ui-warning:#d97706;--ui-danger:#dc2626;--fs-body:13px;--fs-small:12px;--fs-title:18px;--fs-section:15px}body{font-family:var(--ui-font);color:var(--ui-text);background:var(--ui-bg-page);font-size:var(--fs-body)}.main-content{padding:10px 20px!important}.main-header,.campaign-header,.page-header{background:var(--ui-bg-header);border:1px solid var(--ui-border)!important;border-bottom:none!important;border-radius:10px 10px 0 0!important;margin-bottom:8px!important;padding:12px 20px!important}.main-header .header-left,.campaign-header .header-left,.page-header .header-left{font-size:var(--fs-title);color:var(--ui-text-strong);font-weight:700}.path-main{color:var(--ui-text-strong)}.path-sub{color:var(--ui-text-muted);font-weight:500}.table-container,.campaign-table-container,.segmentation-table-container,.data-table-container{overflow:auto;box-shadow:0 1px 3px #0000000a;background:var(--ui-bg-card)!important;border:1px solid var(--ui-border)!important;border-top:none!important;border-radius:0 0 10px 10px!important;margin:0!important;padding:0!important}.table-container.standalone{border-top:1px solid var(--ui-border);border-radius:10px;margin-top:20px}table{border-collapse:collapse;width:100%;font-family:var(--ui-font);font-size:var(--fs-body);background:var(--ui-bg-card);border:1px solid var(--ui-border)!important}thead th{text-align:left;white-space:nowrap;z-index:1;position:sticky;top:0;background:var(--ui-bg-header)!important;color:var(--ui-text-strong)!important;font-weight:700!important;font-size:var(--fs-body)!important;border-bottom:1px solid var(--ui-border)!important;border:1px solid var(--ui-border)!important;padding:12px 14px!important}tbody tr{transition:background .15s;background:var(--ui-bg-card)!important;border-bottom:1px solid var(--ui-border)!important;border:1px solid var(--ui-border)!important}tbody tr:nth-child(2n){background:var(--ui-bg-row-alt)!important}tbody tr:hover{cursor:pointer;background:#dbeafe!important}tbody td{font-size:var(--fs-body);color:var(--ui-text);vertical-align:middle;white-space:nowrap;border-bottom:1px solid var(--ui-border-soft)!important;border:1px solid var(--ui-border)!important;padding:11px 14px!important;font-weight:400!important}tbody td:first-child{color:var(--ui-text-strong);font-weight:400!important}table{counter-reset:row-counter}thead tr:before{content:"#";background:var(--ui-bg-header);color:var(--ui-text-strong);font-weight:700;font-size:var(--fs-body);border-bottom:1px solid var(--ui-border);text-align:left;width:48px;padding:12px 14px;display:table-cell}tbody tr{counter-increment:row-counter}tbody tr:before{content:counter(row-counter);color:var(--ui-text-muted);font-variant-numeric:tabular-nums;border-bottom:1px solid var(--ui-border-soft);text-align:left;width:48px;padding:11px 14px;font-weight:500;display:table-cell}tbody tr:nth-child(2n):before{background:var(--ui-bg-row-alt)}tbody tr:hover:before{background:#dbeafe}td.numeric,th.numeric{text-align:right;font-variant-numeric:tabular-nums}.action-btn,.icon-btn,.sidebar-btn{border:1px solid var(--ui-border);color:var(--ui-text);background:#fff}.action-btn:hover,.icon-btn:hover,.sidebar-btn:hover{background:#f9fafb}.create-btn{background:var(--ui-accent)!important;color:#fff!important;border:none!important;font-weight:600!important}.create-btn:hover{background:var(--ui-accent-dark)!important}.section-card,.panel-card{background:var(--ui-bg-card);border:1px solid var(--ui-border);border-radius:10px;margin-bottom:16px;overflow:hidden;box-shadow:0 1px 3px #0000000a}.section-card>.section-title,.panel-card>.panel-title{background:var(--ui-bg-header);font-size:var(--fs-section);color:var(--ui-text-strong);border-bottom:1px solid var(--ui-border);padding:12px 18px;font-weight:700}.section-card>.section-body,.panel-card>.panel-body{padding:16px 18px}.drawer-title{background:var(--ui-bg-header);color:var(--ui-text-strong);font-weight:700}.drawer-label{color:var(--ui-text);font-size:var(--fs-body)}.drawer-input{font-size:var(--fs-body);color:var(--ui-text-strong)}.drawer-input:focus{border-bottom:1px solid var(--ui-accent)}.drawer-submit{background:var(--ui-accent)!important}.drawer-submit:hover{background:var(--ui-accent-dark)!important}.tab.active button{border:1px solid var(--ui-accent);color:var(--ui-accent);background:var(--ui-bg-card)}.score-chip{font-weight:700;font-size:var(--fs-small);letter-spacing:.2px;border-radius:999px;padding:2px 10px;display:inline-block}.score-high{color:#065f46;background:#d1fae5}.score-medium{color:#92400e;background:#fef3c7}.score-low{color:#991b1b;background:#fee2e2}table thead th:first-child,table thead th:last-child,table tbody td:first-child,table tbody td:last-child{box-shadow:none!important;left:auto!important;right:auto!important}table tbody td:first-child,table tbody td:last-child{z-index:auto!important;background:0 0!important;position:static!important}table thead th:first-child,table thead th:last-child{background:var(--ui-bg-header)!important}table thead th{position:sticky;top:0}table tbody tr:nth-child(2n) td,table tbody tr:nth-child(2n) td:first-child,table tbody tr:nth-child(2n) td:last-child{background:var(--ui-bg-row-alt)!important}table tbody tr:nth-child(odd) td,table tbody tr:nth-child(odd) td:first-child,table tbody tr:nth-child(odd) td:last-child{background:var(--ui-bg-card)!important}table tbody tr:hover td,table tbody tr:hover td:first-child,table tbody tr:hover td:last-child{background:#dbeafe!important}
