:root{--ink:#1e2a38;--muted:#748092;--line:#e7ebf0;--canvas:#f4f6f9;--blue:#3176e8;--blue-dark:#245fc2;--green:#20a464;--sidebar:#1c2735}*{box-sizing:border-box}html,body{min-height:100%}body{background:var(--canvas);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font-family:Arial,Helvetica,sans-serif}button,select{font:inherit}button{cursor:pointer}.crm-shell{background:var(--canvas);min-height:100vh;display:flex}.sidebar{background:var(--sidebar);z-index:10;flex-direction:column;align-items:center;width:72px;padding:18px 0 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand-mark{color:#fff;letter-spacing:.04em;background:#347cf1;border-radius:10px;place-items:center;width:40px;height:40px;font-size:13px;font-weight:800;display:grid;box-shadow:0 7px 20px #347cf14d}.side-nav{flex-direction:column;gap:8px;margin-top:31px;display:flex}.nav-settings{margin-top:auto}.nav-item{color:#97a3b2;background:0 0;border:0;border-radius:10px;place-items:center;width:44px;height:44px;font-size:22px;display:grid;position:relative}.nav-item:hover{color:#fff;background:#ffffff0f}.nav-item.active{color:#fff;background:#314154}.nav-item b{color:#fff;background:#ff5a63;border-radius:8px;place-items:center;min-width:15px;height:15px;font-size:9px;display:grid;position:absolute;top:4px;right:4px}.workspace{width:calc(100% - 72px);min-width:0;margin-left:72px}.topbar{z-index:5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffffff0;border-bottom:1px solid #e5e9ee;justify-content:space-between;align-items:center;height:64px;padding:0 32px;display:flex;position:sticky;top:0}.breadcrumbs{align-items:center;gap:11px;font-size:13px;display:flex}.breadcrumbs span{color:#9099a6}.breadcrumbs i{color:#c5cbd3;font-style:normal}.breadcrumbs strong{font-weight:600}.top-actions{align-items:center;gap:7px;display:flex}.search-button,.notification-button,.dots-button{color:#677487;background:0 0;border:0;border-radius:8px}.search-button,.notification-button{width:38px;height:38px;font-size:22px;position:relative}.search-button:hover,.notification-button:hover,.dots-button:hover{background:#f1f4f8}.notification-button b{color:#fff;background:#fb5b66;border-radius:8px;place-items:center;min-width:15px;height:15px;font-size:9px;display:grid;position:absolute;top:3px;right:1px}.profile-avatar{color:#2c65bd;background:#dce8ff;border-radius:50%;place-items:center;width:34px;height:34px;margin-left:6px;font-size:11px;font-weight:700;display:grid}.content{max-width:1540px;margin:0 auto;padding:27px 32px 44px}.title-row{justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px;display:flex}.title-row h1{letter-spacing:-.025em;margin:0 0 6px;font-size:26px;line-height:1.2}.title-row p{color:#8a95a4;margin:0;font-size:13px}.title-actions{align-items:center;gap:12px;display:flex}.work-status{color:#31815a;background:#eaf8f1;border:1px solid #cfeddd;border-radius:8px;align-items:center;gap:8px;height:38px;padding:0 13px;font-size:12px;font-weight:600;display:flex}.pulse-dot{background:var(--green);border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #20a4641f}.secondary-button,.channel-settings-link{color:#344152;background:#fff;border:1px solid #d7dde5;border-radius:8px;height:38px;padding:0 15px;font-size:12px;font-weight:600;box-shadow:0 1px 2px #1724330a}.channel-settings-link{color:#2f6dcc;background:#f3f7fd;border-color:#cbdcf6;align-items:center;text-decoration:none;display:inline-flex}.secondary-button span{margin-right:5px;font-size:16px}.secondary-button:hover{background:#fbfcfd;border-color:#b9c6d6}.channel-settings-link:hover{background:#eaf2fd;border-color:#9ebdea}.metric-grid{grid-template-columns:.75fr .85fr .9fr 1.5fr;gap:14px;margin-bottom:15px;display:grid}.metric-card{border:1px solid var(--line);background:#fff;border-radius:11px;flex-direction:column;justify-content:center;min-height:112px;padding:17px 18px;display:flex;box-shadow:0 2px 9px #1c273509}.metric-card>span,.next-card span{color:#85909f;text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:600}.metric-card>strong{letter-spacing:-.03em;margin:8px 0 6px;font-size:27px;line-height:1;display:block}.metric-card strong em{color:#a4adb8;font-size:16px;font-style:normal;font-weight:500}.metric-card small{color:#939daa;font-size:11px}.metric-primary{border-left:3px solid var(--blue);padding-left:16px}.metric-primary>strong{color:var(--blue)}.next-card{flex-direction:row;justify-content:space-between;align-items:center;gap:20px;padding:17px 20px}.next-card strong{margin-top:10px;font-size:16px;line-height:1.25;display:block}.next-card small{margin-top:6px;display:block}.mini-avatar{color:#415165;border-radius:50%;flex:none;place-items:center;width:45px;height:45px;font-size:12px;font-weight:700;display:grid}.main-grid{grid-template-columns:minmax(390px,.86fr) minmax(540px,1.14fr);align-items:stretch;gap:15px;display:grid}.panel{border:1px solid var(--line);background:#fff;border-radius:11px;overflow:hidden;box-shadow:0 2px 9px #1c273509}.panel-header{border-bottom:1px solid #eef1f4;justify-content:space-between;align-items:center;gap:18px;min-height:68px;padding:15px 18px;display:flex}.panel-header h2{letter-spacing:-.01em;margin:0 0 4px;font-size:15px}.panel-header div>span{color:#929ca9;font-size:11px;display:block}.dots-button{letter-spacing:2px;width:34px;height:34px;font-size:14px}.queue-list{flex-direction:column;gap:10px;min-height:384px;padding:13px;display:flex}.lead-card{background:#fff;border:1px solid #e8ecf1;border-radius:9px;padding:14px;transition:all .18s}.lead-card-active{border-color:#a9c8fa;box-shadow:0 0 0 3px #3176e812}.lead-topline{align-items:center;gap:10px;display:flex}.customer-avatar{color:#506176;background:#edf2f8;border-radius:9px;place-items:center;width:35px;height:35px;font-size:12px;font-weight:700;display:grid}.lead-identity{flex:1;align-items:center;gap:7px;min-width:0;display:flex}.lead-identity strong{font-size:13px}.lead-topline time{color:#99a2ae;font-size:10px}.lead-card p{color:#596678;margin:11px 0 13px 45px;font-size:12px;line-height:1.45}.lead-footer{justify-content:space-between;align-items:center;gap:12px;margin-left:45px;display:flex}.wait-alert,.wait-normal{color:#ef6b6e;align-items:center;gap:6px;font-size:10px;display:flex}.wait-normal{color:#9aa3af}.wait-alert i,.wait-normal i{background:currentColor;border-radius:50%;width:5px;height:5px}.assign-button{color:#fff;background:var(--blue);border:0;border-radius:7px;height:31px;padding:0 12px;font-size:10px;font-weight:600;box-shadow:0 4px 10px #3176e82e}.assign-button span{margin-left:7px}.assign-button:hover{background:var(--blue-dark)}.assign-button:disabled{box-shadow:none;cursor:not-allowed;background:#aab4c1}.empty-state{color:#98a3b0;flex-direction:column;justify-content:center;align-items:center;min-height:350px;display:flex}.empty-state div{width:46px;height:46px;color:var(--green);background:#eaf8f1;border-radius:50%;place-items:center;margin-bottom:13px;font-size:20px;display:grid}.empty-state strong{color:#4b596a;margin-bottom:5px;font-size:13px}.empty-state span{font-size:11px}.channel{white-space:nowrap;border-radius:5px;align-items:center;width:fit-content;height:21px;padding:0 7px;font-size:9px;font-weight:700;display:inline-flex}.channel-telegram{color:#3186b8;background:#e7f4fc}.channel-whatsapp{color:#278454;background:#e5f8ec}.channel-instagram{color:#b85178;background:#fbe9f0}.channel-max{color:#6559bd;background:#ecebff}.live-label{align-items:center;gap:6px;color:#7b8898!important;font-size:10px!important;display:flex!important}.live-label i{background:var(--green);border-radius:50%;width:6px;height:6px}.manager-head{color:#9aa3af;text-transform:uppercase;letter-spacing:.05em;background:#fafbfc;border-bottom:1px solid #eef1f4;grid-template-columns:1fr 70px 133px;align-items:center;min-height:34px;padding:0 17px;font-size:9px;font-weight:700;display:grid}.manager-head span:nth-child(2){text-align:center}.manager-list{flex-direction:column;display:flex}.manager-row{border-bottom:1px solid #f0f2f5;grid-template-columns:1fr 70px 133px;align-items:center;min-height:69px;padding:10px 17px;transition:background .2s;display:grid}.manager-row:last-child{border-bottom:0}.manager-row:hover{background:#fbfcfe}.manager-fresh{animation:.9s freshRow}@keyframes freshRow{0%,55%{background:#eaf8f1}to{background:#fff}}.manager-main{align-items:center;gap:11px;min-width:0;display:flex}.manager-avatar{color:#48576a;border-radius:50%;flex:none;place-items:center;width:38px;height:38px;font-size:11px;font-weight:700;display:grid;position:relative}.manager-avatar i{border:2px solid #fff;border-radius:50%;width:10px;height:10px;position:absolute;bottom:0;right:-1px}.online-dot{background:#27ae6b}.offline-dot{background:#aeb6c0}.manager-main>div:last-child{min-width:0}.manager-main strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;display:block;overflow:hidden}.manager-main span{color:#96a0ac;margin-top:4px;font-size:10px;display:block}.today-count{text-align:center;font-size:14px}.status-select{border:1px solid #0000;border-radius:7px;align-items:center;gap:6px;height:31px;padding:0 8px;display:flex;position:relative}.status-select i{background:currentColor;border-radius:50%;flex:none;width:6px;height:6px}.status-select select{appearance:none;width:100%;color:inherit;cursor:pointer;background:0 0;border:0;outline:0;font-size:10px;font-weight:600}.status-select:after{content:"⌄";pointer-events:none;font-size:11px;position:absolute;top:7px;right:8px}.status-free{color:#288254;background:#eaf8f1;border-color:#d5efe2}.status-lunch{color:#a66b1b;background:#fff4df;border-color:#f4e2c2}.status-break{color:#8261bd;background:#f2ecfb;border-color:#e5d9f5}.status-offline{color:#7c8794;background:#f0f2f4;border-color:#e1e5e9}.channel-routing-panel{margin-top:15px;scroll-margin-top:82px}.channel-routing-header{min-height:72px}.rule-state{background:#edf8f2;border:1px solid #d6eadf;border-radius:7px;align-items:center;min-height:28px;padding:0 10px;font-weight:700;color:#2f7d56!important;font-size:10px!important;display:flex!important}.channel-routing-body{padding:20px}.rule-group+.rule-group{border-top:1px solid #edf0f3;margin-top:22px;padding-top:20px}.rule-label{color:#909aa7;letter-spacing:.09em;text-transform:uppercase;margin-bottom:10px;font-size:9px;font-weight:800;display:block}.channel-chip-list,.manager-chip-list{flex-wrap:wrap;gap:8px;display:flex}.channel-rule-chip{color:#3c4858;text-align:left;background:#fff;border:1px solid #dfe4ea;border-radius:10px;min-height:46px;padding:7px 14px;transition:border-color .16s,background .16s,color .16s,transform .16s}.channel-rule-chip:hover{background:#fafbfd;border-color:#bdc8d6}.channel-rule-chip:active{transform:translateY(1px)}.channel-rule-chip>span{align-items:baseline;gap:8px;display:flex}.channel-rule-chip strong{font-size:12px}.channel-rule-chip small{color:#939daa;font-size:9px}.channel-rule-chip-active{color:#fff;background:#1f2b3a;border-color:#1f2b3a;box-shadow:0 5px 14px #1f2b3a26}.channel-rule-chip-active:hover{background:#17212d;border-color:#17212d}.channel-rule-chip-active small{color:#b8c3d0}.manager-picker-heading{justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:12px;display:flex}.manager-picker-heading .rule-label{margin-bottom:5px}.manager-picker-heading strong{font-size:15px;display:block}.selected-count{color:#647184;background:#eff3f7;border-radius:13px;align-items:center;min-height:25px;padding:0 9px;font-size:10px;font-weight:700;display:inline-flex}.manager-rule-chip{color:#344153;background:#fff;border:1px solid #dfe4e9;border-radius:8px;align-items:center;gap:9px;min-height:42px;padding:7px 9px 7px 13px;transition:border-color .16s,background .16s,color .16s,transform .16s;display:inline-flex}.manager-rule-chip:hover{background:#f5fbf8;border-color:#9fcfbd}.manager-rule-chip:active{transform:translateY(1px)}.manager-rule-chip-selected{color:#fff;background:#168a66;border-color:#168a66;box-shadow:0 4px 10px #168a6624}.manager-rule-chip-selected:hover{background:#107b5a;border-color:#107b5a}.manager-chip-name{white-space:nowrap;font-size:11px;font-weight:700}.manager-chip-status{color:#7b8693;white-space:nowrap;background:#f0f2f5;border-radius:10px;align-items:center;min-height:20px;padding:0 7px;font-size:8px;font-weight:800;display:inline-flex}.manager-rule-chip-selected .chip-status-free{color:#277858;background:#dff5ec}.manager-rule-chip-selected .chip-status-lunch{color:#9a681d;background:#fff0cf}.manager-rule-chip-selected .chip-status-break{color:#7652ad;background:#eee6fa}.manager-rule-chip-selected .chip-status-offline{color:#ae5764;background:#fbe8eb}.channel-rule-note{background:#f8fafc;border:1px solid #e3e8ee;border-radius:8px;flex-wrap:wrap;align-items:flex-start;gap:8px 14px;margin-top:15px;padding:12px 14px;display:flex}.channel-rule-note strong{color:#445165;font-size:10px}.channel-rule-note span{color:#7e8998;font-size:10px;line-height:1.45}.channel-rule-chip:focus-visible,.manager-rule-chip:focus-visible,.channel-settings-link:focus-visible{outline-offset:2px;outline:3px solid #3176e847}.history-panel{margin-top:15px}.text-button{color:#4f79b7;background:0 0;border:0;font-size:10px;font-weight:600}.text-button span{margin-left:5px}.history-table{overflow-x:auto}.history-head,.history-row{grid-template-columns:1.2fr .85fr 1.35fr .5fr .7fr;align-items:center;gap:15px;min-width:710px;padding:0 18px;display:grid}.history-head{color:#9aa3af;text-transform:uppercase;letter-spacing:.05em;background:#fafbfc;border-bottom:1px solid #eef1f4;min-height:35px;font-size:9px;font-weight:700}.history-row{border-bottom:1px solid #f0f2f5;min-height:48px;font-size:11px}.history-row:last-child{border-bottom:0}.history-row strong{font-size:11px}.history-row time{color:#8f99a6}.history-new{animation:1s freshHistory}@keyframes freshHistory{0%,55%{background:#eef5ff}to{background:#fff}}.assigned-status{color:#41805e;align-items:center;gap:6px;font-size:10px;display:flex}.assigned-status i{background:#27ae6b;border-radius:50%;width:6px;height:6px}@media (width<=1100px){.metric-grid{grid-template-columns:repeat(2,1fr)}.main-grid{grid-template-columns:1fr}.queue-list{min-height:0}}@media (width<=720px){.sidebar{width:58px}.workspace{width:calc(100% - 58px);margin-left:58px}.topbar{padding:0 16px}.breadcrumbs span,.breadcrumbs i{display:none}.content{padding:20px 14px 32px}.title-row{flex-direction:column;align-items:flex-start}.title-actions{flex-wrap:wrap;justify-content:flex-start;width:100%}.metric-grid{grid-template-columns:1fr}.metric-card{min-height:96px}.main-grid{display:block}.managers-panel,.history-panel{margin-top:14px}.manager-head{display:none}.manager-row{grid-template-columns:1fr 42px 116px;padding:10px 12px}.panel-header{padding:14px}.lead-card p,.lead-footer{margin-left:0}.lead-footer{margin-top:12px}.assign-button{white-space:nowrap;text-overflow:ellipsis;max-width:190px;overflow:hidden}.channel-routing-header{align-items:flex-start}.rule-state{display:none!important}.channel-routing-body{padding:16px 14px}.channel-chip-list{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.channel-rule-chip{width:100%}.manager-rule-chip{justify-content:space-between;width:100%}.manager-picker-heading{align-items:center}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
