:root,[data-theme=dark]{--bg-primary: #0b0f19;--bg-secondary: #131b2e;--bg-glass: rgba(19, 27, 46, .85);--bg-card: rgba(255, 255, 255, .03);--border-color: rgba(255, 255, 255, .08);--border-active: rgba(0, 230, 153, .4);--accent-primary: #00e699;--accent-gradient: linear-gradient(135deg, #00e699 0%, #00b377 100%);--accent-glow: 0 0 20px rgba(0, 230, 153, .35);--text-main: #f0f4f8;--text-muted: #8a99ad;--text-dim: #5c6b7e;--chat-bg: #070c14;--bubble-incoming: #182234;--bubble-incoming-text: #f0f4f8;--bubble-incoming-border: rgba(255, 255, 255, .08);--bubble-outgoing: #064e3b;--bubble-outgoing-text: #ecfdf5;--bubble-outgoing-border: rgba(0, 230, 153, .3);--bubble-ai: #3b1d5a;--bubble-ai-text: #f3e8ff;--bubble-ai-border: rgba(168, 85, 247, .3);--input-bg: #131b2e;--status-ia: #a855f7;--status-humano: #3b82f6;--status-encerrada: #10b981;--status-expirada: #ef4444;--font-family: "Inter", sans-serif;--font-heading: "Outfit", sans-serif;--radius-sm: 8px;--radius-md: 14px;--radius-lg: 20px;--radius-full: 9999px;--transition-fast: .2s cubic-bezier(.4, 0, .2, 1);--transition-normal: .3s cubic-bezier(.4, 0, .2, 1)}[data-theme=light]{--bg-primary: #f0f2f5;--bg-secondary: #ffffff;--bg-glass: rgba(255, 255, 255, .95);--bg-card: #ffffff;--border-color: #e2e8f0;--border-active: #00b377;--accent-primary: #00a86b;--accent-gradient: linear-gradient(135deg, #00a86b 0%, #008554 100%);--accent-glow: 0 0 15px rgba(0, 168, 107, .25);--text-main: #0f172a;--text-muted: #475569;--text-dim: #64748b;--chat-bg: #eae6df;--bubble-incoming: #ffffff;--bubble-incoming-text: #111b21;--bubble-incoming-border: #e2e8f0;--bubble-outgoing: #d9fdd3;--bubble-outgoing-text: #111b21;--bubble-outgoing-border: #bbf7d0;--bubble-ai: #ede9fe;--bubble-ai-text: #4c1d95;--bubble-ai-border: #ddd6fe;--input-bg: #ffffff;--status-ia: #7e22ce;--status-humano: #1d4ed8;--status-encerrada: #047857;--status-expirada: #b91c1c}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-family);background-color:var(--bg-primary);color:var(--text-main);overflow:hidden;height:100vh;width:100vw;-webkit-font-smoothing:antialiased}#root{height:100%;width:100%;display:flex}.glass-panel{background:var(--bg-glass);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid var(--border-color);box-shadow:0 8px 32px #0000005e}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:#ffffff40}button{font-family:var(--font-family);cursor:pointer;border:none;outline:none;transition:var(--transition-fast)}.btn-primary{background:var(--accent-gradient);color:#051a12;font-weight:600;padding:10px 18px;border-radius:var(--radius-md);box-shadow:var(--accent-glow);display:inline-flex;align-items:center;gap:8px}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 0 25px #00e69980}.btn-secondary{background:var(--bg-card);color:var(--text-main);border:1px solid var(--border-color);padding:10px 18px;border-radius:var(--radius-md)}.btn-secondary:hover{background:#ffffff14;border-color:#fff3}.badge{padding:4px 10px;border-radius:var(--radius-full);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;display:inline-flex;align-items:center;gap:5px}.badge-com_ia{background:#a855f726;color:#c084fc;border:1px solid rgba(168,85,247,.3)}.badge-com_humano{background:#3b82f626;color:#60a5fa;border:1px solid rgba(59,130,246,.3)}.badge-encerrada{background:#10b98126;color:#34d399;border:1px solid rgba(16,185,129,.3)}.badge-expirada_por_inatividade{background:#ef444426;color:#f87171;border:1px solid rgba(239,68,68,.3)}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn .25s ease-out forwards}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}@keyframes tickerScroll{0%{transform:translate(0)}to{transform:translate(-50%)}}.animate-ticker{animation:tickerScroll linear infinite}@keyframes pulseGlow{0%{box-shadow:0 0 #00e69966}70%{box-shadow:0 0 0 10px #00e69900}to{box-shadow:0 0 #00e69900}}@keyframes leaderGlow{0%{box-shadow:0 0 #fbbf2473}70%{box-shadow:0 0 0 16px #fbbf2400}to{box-shadow:0 0 #fbbf2400}}.leader-glow-card{animation:leaderGlow 2.2s ease-out infinite}@keyframes trophyBounce{0%,to{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-4px) rotate(4deg)}}.trophy-bounce{display:inline-block;animation:trophyBounce 1.6s ease-in-out infinite}.pulse-online{width:8px;height:8px;background-color:var(--accent-primary);border-radius:50%;animation:pulseGlow 2s infinite}.dashboard-layout{display:flex!important;width:100vw!important;max-width:100vw!important;height:100vh!important;max-height:100vh!important;overflow:hidden!important;box-sizing:border-box!important}.chat-list-column{flex:0 0 360px;width:360px;min-width:360px;max-width:360px;height:100%;overflow:hidden;box-sizing:border-box}.chat-area-column{flex:1 1 0%;min-width:0;max-width:100%;height:100%;overflow:hidden;box-sizing:border-box}.contacts-back-btn-mobile{display:none}@media (max-width: 768px){html,body,#root{height:100vh!important;height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;width:100%!important;max-width:100vw!important;overflow:hidden!important;box-sizing:border-box!important}.dashboard-layout{flex-direction:column!important;width:100%!important;max-width:100vw!important;height:100vh!important;height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;overflow:hidden!important;position:relative!important;padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;box-sizing:border-box!important}.sidebar-container,.module-tab-bar{display:none!important}.mobile-bottom-nav{display:flex!important}.dashboard-layout>div:not(.sidebar-container):not(.mobile-bottom-nav):not(.dashboard-notification-banner){flex:1 1 0!important;min-height:0!important;overflow:hidden!important}.dashboard-layout>.dashboard-notification-banner{flex:0 0 auto!important}.dept-bar-outer{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;padding:6px 10px!important;height:48px!important;min-height:48px!important;max-height:48px!important;gap:6px!important}.dept-bar-btn{width:auto!important;height:34px!important;flex-direction:row!important;padding:0 12px!important;border-radius:17px!important;gap:6px!important}.dept-bar-btn span{max-width:90px!important}.chat-header-toolbar-trigger{display:flex!important}.chat-header-toolbar-backdrop{display:block!important}.chat-header-toolbar{display:none!important}.chat-header-toolbar.chat-header-toolbar-open{display:flex!important;position:absolute!important;top:calc(100% + 4px)!important;right:10px!important;left:10px!important;background-color:#0f172a!important;border:1px solid rgba(0,230,153,.3)!important;border-radius:var(--radius-md)!important;box-shadow:0 16px 36px #000000d9!important;padding:10px!important;z-index:1000!important;flex-wrap:wrap!important;justify-content:flex-start!important;max-width:none!important}.chat-area-header{padding:6px 10px!important;min-height:0!important}.chat-header-atendente{display:none!important}.chat-list-column{flex:1 1 0!important;width:100%!important;min-width:100%!important;max-width:100%!important;height:100%!important;border-right:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}.chat-list-column.mobile-hidden{display:none!important}.chat-area-column{width:100%!important;max-width:100%!important;height:100%!important;flex:1 1 0!important}.chat-area-column.mobile-hidden{display:none!important}.dept-bar-outer{padding:0 8px!important;height:44px!important;min-height:44px!important;max-height:44px!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;align-items:center!important}.dept-bar-outer::-webkit-scrollbar{display:none!important}.dept-bar-label{display:none!important}.mobile-only-app-badge{display:flex!important}.dept-bar-btn{width:auto!important;height:32px!important;min-width:72px!important;padding:0 12px!important;border-radius:16px!important;flex-direction:row!important;gap:5px!important;font-size:12px!important;white-space:nowrap!important;flex-shrink:0!important}.calendar-btn-text{display:none!important}.calendar-btn-mobile{height:32px!important;width:40px!important;padding:0!important;border-radius:20px!important;justify-content:center!important;flex-shrink:0!important}.chatlist-header{padding:8px 12px!important}.chatlist-search input{font-size:14px!important;padding:9px 12px 9px 36px!important;border-radius:20px!important}.conv-card-mobile{padding:10px 14px!important;min-height:70px!important}.conv-avatar-mobile{width:50px!important;height:50px!important;font-size:18px!important}.mobile-hide-badge{display:none!important}.status-filter-bar{overflow-x:auto!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;flex-wrap:nowrap!important;padding:6px 12px!important}.status-filter-bar::-webkit-scrollbar{display:none!important}.chat-message-bubble{font-size:13.5px!important;line-height:1.4!important;padding:8px 10px!important;max-width:88%!important}.chat-message-text{font-size:13.5px!important;line-height:1.4!important}.chat-input-form{padding:8px 10px!important;gap:8px!important;flex-wrap:wrap!important;align-items:center!important}.chat-input-wrapper{width:100%!important;min-width:100%!important;max-width:100%!important;flex:1 1 100%!important;order:1!important}.chat-input-textarea{width:100%!important;font-size:13.5px!important;min-height:42px!important;padding:8px 12px!important;border-radius:12px!important}.chat-emoji-btn{order:2!important}.chat-attach-btn{order:3!important}.chat-consultar-ia-btn{order:4!important}.chat-emoji-btn,.chat-attach-btn,.chat-consultar-ia-btn{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;background-color:#ffffff14!important;border:1px solid rgba(255,255,255,.12)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;color:var(--text-main)!important;flex-shrink:0!important}.chat-mic-btn{order:5!important;width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;background-color:#00e69926!important;border:1px solid rgba(0,230,153,.35)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;color:var(--accent-primary)!important;flex-shrink:0!important;margin-left:auto!important}.chat-btn-text{display:none!important}.chat-enviar-btn{order:6!important;width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;background:linear-gradient(135deg,#00e699,#059669)!important;color:#051a12!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;flex-shrink:0!important;box-shadow:0 3px 10px #00e6994d!important;margin-left:6px!important}.dashboard-layout>div.admin-panel-container,.dashboard-layout>div:not(.sidebar-container):not(.mobile-bottom-nav).admin-panel-container,.admin-panel-container{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;padding:16px 12px 120px!important;height:100%!important;max-height:100%!important;max-width:100vw!important;box-sizing:border-box!important}.admin-subtab-bar{display:flex!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;scrollbar-width:none!important;white-space:nowrap!important;padding-bottom:10px!important;gap:8px!important;width:100%!important;max-width:100%!important}.admin-subtab-bar::-webkit-scrollbar{display:none!important}.admin-subtab-btn{flex-shrink:0!important;white-space:nowrap!important;font-size:13px!important;padding:8px 12px!important;border-radius:var(--radius-md)!important}.admin-grid-2col{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;width:100%!important}.glass-panel{padding:14px!important;border-radius:12px!important}input,select,textarea{max-width:100%!important;box-sizing:border-box!important}.segmentation-panel-container{padding:16px 12px 120px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;box-sizing:border-box!important;height:100%!important;max-height:100%!important;width:100%!important;max-width:100vw!important}.contacts-container{width:100%!important;max-width:100vw!important;box-sizing:border-box!important;height:100%!important}.contacts-list-pane{width:100%!important;max-width:100%!important;flex:1 1 100%!important;box-sizing:border-box!important;height:100%!important}.contacts-detail-pane{width:100%!important;max-width:100%!important;flex:1 1 100%!important;padding:14px 12px 120px!important;box-sizing:border-box!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;height:100%!important}.contacts-list-pane.mobile-hidden,.contacts-detail-pane.mobile-hidden{display:none!important}.contacts-back-btn-mobile{display:inline-flex!important}.chat-attachment-backdrop{display:block!important;position:fixed!important;top:0!important;left:0!important;right:0!important;bottom:0!important;background:#000000a6!important;z-index:9999!important;-webkit-backdrop-filter:blur(4px)!important;backdrop-filter:blur(4px)!important}.chat-attachment-menu{position:fixed!important;bottom:0!important;left:0!important;right:0!important;width:100%!important;max-width:100%!important;border-radius:24px 24px 0 0!important;padding:24px 20px 32px!important;box-shadow:0 -10px 40px #000000d9!important;background:var(--bg-secondary)!important;border:1px solid var(--border-color)!important;border-bottom:none!important;z-index:10000!important;grid-template-columns:repeat(3,1fr)!important;gap:16px!important;animation:slideUp .25s cubic-bezier(.16,1,.3,1) forwards!important}}@keyframes slideUp{0%{transform:translateY(100%);opacity:0}to{transform:translateY(0);opacity:1}}@media (max-width: 1024px) and (min-width: 769px){.hide-on-tablet{display:none!important}.chat-list-column{flex:0 0 300px!important;min-width:300px!important;max-width:300px!important;width:300px!important}}
