:root{--bg: #f8fafc;--surface: #ffffff;--surface-2: #f1f5f9;--surface-glass: rgba(255, 255, 255, .95);--border: #e2e8f0;--border-focus: #25D366;--text: #1e293b;--muted: #64748b;--accent: #25D366;--accent-dim: #128C7E;--on-accent: #ffffff;--danger: #ef4444;--danger-bg: #fee2e2;--warn: #f59e0b;--warn-bg: #fef3c7;--success: #22c55e;--radius: 10px;--radius-lg: 14px;--shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--font: "Cairo", "Tajawal", system-ui, -apple-system, sans-serif;--sidebar-bg: #1b2038;--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, .15)}*,*:before,*:after{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:var(--font);font-size:15px;font-weight:500;color:var(--text);background-color:var(--bg);letter-spacing:.01em;-webkit-font-smoothing:antialiased}.shell{height:100dvh;display:grid;grid-template-columns:280px 1fr;grid-template-rows:1fr;background-color:var(--bg);color:var(--text);overflow:hidden}.sidebar{background:var(--sidebar-bg);border-right:1px solid rgba(255,255,255,.05);display:flex;flex-direction:column;padding:24px 16px;gap:32px;z-index:10;color:#fff}.brand{display:flex;align-items:center;gap:12px;padding:0 8px}.logo{width:40px;height:40px;background:var(--accent);color:var(--on-accent);border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;box-shadow:0 4px 12px #d4af374d}.brand-text h1{font-size:18px;margin:0;color:#fff;font-weight:700}.brand-text p{font-size:11px;margin:4px 0 0;color:#fff9}.nav-group{display:flex;flex-direction:column;gap:8px}.navTab{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:12px;color:var(--muted);font-weight:600;transition:all .2s ease;border:none;background:transparent;width:100%;text-align:right;font-family:inherit;cursor:pointer}.navTab:hover{background:#ffffff08;color:var(--text)}.navTab.active{background:#ffffff1a;color:var(--accent)}.content{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative}.top{padding:20px 32px;display:flex;align-items:center;justify-content:space-between;background:var(--surface-glass);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-bottom:1px solid var(--border);z-index:5}.sub{font-size:13px;font-weight:500;color:var(--muted);margin-top:4px;line-height:1.45}.main{flex:1;display:flex;gap:12px;min-height:0}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;box-shadow:var(--shadow)}.list{width:min(360px,100%);display:flex;flex-direction:column}.listHead{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;gap:10px;align-items:center}.search,.profileInput,.tplSelect{flex:1;padding:10px 12px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none;font-family:inherit;font-size:14px;font-weight:500}.search:focus,.profileInput:focus,.tplSelect:focus{border-color:var(--border-focus);box-shadow:0 0 0 2px #c9a22747}select.profileInput{min-width:200px;width:auto;max-width:280px;cursor:pointer}.tabs{display:flex;gap:6px;padding:0 12px 12px}.tab{flex:1;padding:9px 10px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;font-weight:600;font-size:13px;font-family:inherit}.tab.active{border-color:var(--accent);background:#c9a22729;color:var(--on-accent)}.items{flex:1;overflow:auto;padding:8px 10px 12px}.item{display:flex;gap:14px;align-items:center;padding:14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);cursor:pointer;margin-bottom:10px;transition:all .2s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}.item:after{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);opacity:0;transition:opacity .2s}.item:hover{border-color:var(--border-focus)}.item.active{background:#d4af3714;border-color:var(--accent);box-shadow:0 4px 12px #0003}.item.active:after{opacity:1}.item.breach{border-right:3px solid var(--danger)}.slaDot{display:inline-block;width:8px;height:8px;background:var(--danger);border-radius:50%;margin-right:8px;box-shadow:0 0 #ef444466;animation:pulse-red 2s infinite}@keyframes pulse-red{0%{transform:scale(.95);box-shadow:0 0 #ef4444b3}70%{transform:scale(1);box-shadow:0 0 0 10px #ef444400}to{transform:scale(.95);box-shadow:0 0 #ef444400}}.avatar{width:38px;height:38px;border-radius:50%;background:var(--border);flex-shrink:0}.meta{flex:1;min-width:0}.row1{display:flex;justify-content:space-between;gap:10px}.name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time{font-size:12px;color:var(--muted);font-weight:500}.preview{font-size:13px;color:var(--muted);margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.badge{min-width:20px;height:20px;padding:0 6px;border-radius:6px;background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}.chat{flex:1;display:flex;flex-direction:column;min-width:0}.chatHead{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.chatTitle{font-weight:700;font-size:1.1rem;display:flex;align-items:center;gap:12px}.presenceTag{background:#22c55e26;color:var(--success);font-size:11px;padding:4px 10px;border-radius:20px;font-weight:700;animation:fade-in .3s ease}@keyframes fade-in{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.msgs{flex:1;overflow:auto;padding:14px;display:flex;flex-direction:column;gap:10px}.bubble{max-width:min(720px,85%);padding:12px 16px;border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface-2);white-space:pre-wrap;word-break:break-word;font-weight:500;line-height:1.6;position:relative;box-shadow:0 2px 8px #0000000d;transition:transform .2s ease,box-shadow .2s ease}.bubble:hover{transform:translateY(-1px);box-shadow:0 4px 12px #0000001a}.bubble.pinned{border-color:var(--accent);background:#25d36608}.bubble-actions{position:absolute;top:-15px;left:10px;display:none;gap:4px;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:2px 6px;box-shadow:var(--shadow);z-index:5}.bubble:hover .bubble-actions{display:flex}.bubble-actions button{background:none;border:none;cursor:pointer;padding:4px;color:var(--muted);transition:color .2s;font-size:12px}.bubble-actions button:hover{color:var(--accent)}.bubble.out{align-self:flex-start;background:#fff;border-color:var(--border);color:var(--text);border-bottom-left-radius:4px}.bubble.in{align-self:flex-end;background:var(--accent);color:#fff;border:none;border-bottom-right-radius:4px}.compose{padding:12px 14px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;background:var(--surface)}.compose .chk{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}.compose .input{min-width:min(100%,240px)}.sendErr{width:100%;font-size:13px;font-weight:600;color:#f0b4b3;padding:10px 12px;border-radius:var(--radius);border:1px solid rgba(201,74,71,.45);background:var(--danger-bg)}.input{flex:1;min-height:44px;max-height:140px;resize:none;padding:10px 12px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none;font-family:inherit;font-size:14px;font-weight:500}.input:focus{border-color:var(--border-focus);box-shadow:0 0 0 2px #c9a22733}.btn{width:52px;height:44px;border:1px solid rgba(0,0,0,.2);border-radius:var(--radius);cursor:pointer;font-weight:700;font-family:inherit;background:var(--accent);color:var(--on-accent);font-size:14px}.btn:hover{background:var(--accent-dim)}.hint{padding:24px;color:var(--muted);text-align:center;font-weight:500}@media(max-width:980px){.main{flex-direction:column}.list{width:100%;max-height:42vh}}.topRight{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:flex-end}.userPill{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);font-size:13px;font-weight:600}.userPill.muted{font-weight:500;color:var(--muted)}.roleTag{font-weight:500;color:var(--muted);font-size:12px}.statusPill{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 11px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);font-size:12px;font-weight:600;color:var(--muted)}.profileRow{display:flex;align-items:center;gap:8px}.mutedTiny{font-size:12px;color:var(--muted);font-weight:600}.profileInput{width:72px}.loginPanel{max-width:400px;margin:48px auto;padding:28px 24px;border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}.loginTitle{font-weight:700;font-size:1.15rem;margin-bottom:18px;color:var(--text)}.loginForm{display:flex;flex-direction:column;gap:12px}.loginErr{color:#f0b4b3;font-size:13px;font-weight:600}.btnWide{padding:11px 16px;border-radius:var(--radius);border:1px solid rgba(0,0,0,.2);cursor:pointer;font-weight:700;font-family:inherit;font-size:15px;background:var(--accent);color:var(--on-accent)}.btnWide:hover{background:var(--accent-dim)}.btnWide.secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btnWide.secondary:hover{border-color:var(--border-focus)}.btnGhost{padding:6px 12px;border-radius:var(--radius);border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;font-weight:600;font-size:13px;font-family:inherit}.btnGhost:hover{color:var(--text);border-color:var(--border-focus)}.login-page-v2{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#f1f5f9;overflow:hidden;font-family:Cairo,sans-serif}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:40px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;text-align:center;color:#1e293b;width:100%;max-width:400px}.logo-wrap{width:70px;height:70px;background:var(--accent);border-radius:18px;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;font-size:32px;color:#fff}.login-card .title{font-family:Cairo,sans-serif;font-size:24px;font-weight:700;margin-bottom:8px;color:#1e293b}.subtitle{font-size:14px;color:#64748b;margin-bottom:32px;font-weight:500}.error-msg{background:#fee2e2;border:1px solid #fecaca;color:#b91c1c;border-radius:10px;padding:12px;font-size:13px;margin-bottom:24px;text-align:right}.input-group{position:relative;margin-bottom:20px;text-align:right}.input-group i{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:16px}.input-group input{width:100%;padding:14px 45px 14px 16px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;color:#1e293b;font-family:Cairo,sans-serif;font-size:15px;outline:none;direction:rtl}.input-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:#475569}.input-group input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #25d3661a}.btn-login{width:100%;padding:14px;background:var(--accent);color:#fff;border:none;border-radius:12px;font-family:Cairo,sans-serif;font-size:16px;font-weight:700;cursor:pointer;margin-top:8px;transition:all .2s}.btn-login:hover{background:var(--accent-dim)}.btn-login:disabled{opacity:.6}.footer-note{margin-top:24px;font-size:12px;color:#94a3b8}.toolbar{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:min(560px,58%)}.btnSm{padding:7px 11px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text);cursor:pointer;font-weight:600;font-size:12px;font-family:inherit}.btnSm:hover{border-color:var(--border-focus)}.btnSm.danger{border-color:#c94a4780;background:var(--danger-bg);color:#b91c1c}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.stat-card{background:#fff;padding:24px;border-radius:16px;border:1px solid var(--border);text-align:center;box-shadow:var(--shadow)}.stat-val{font-size:28px;font-weight:800;color:var(--text);margin-bottom:4px}.stat-lbl{font-size:13px;color:var(--muted);font-weight:600}.stat-card.success .stat-val{color:var(--success)}.stat-card.danger .stat-val{color:var(--danger)}.stat-card.warn .stat-val{color:var(--warn)}.data-table{width:100%;border-collapse:collapse;text-align:right}.data-table th{padding:16px;background:var(--surface-2);font-size:13px;font-weight:700;color:var(--muted);border-bottom:1px solid var(--border)}.data-table td{padding:16px;font-size:14px;border-bottom:1px solid var(--border)}.tag{display:inline-block;padding:4px 10px;border-radius:8px;font-size:11px;font-weight:700;text-transform:uppercase}.tag.new{background:#e0f2fe;color:#0369a1}.tag.active{background:#dcfce7;color:#15803d}.tag.resolved{background:#f1f5f9;color:#475569}.tag.vip{background:#fef9c3;color:#a16207}.tag.success{background:#dcfce7;color:#15803d}.tag.warn{background:#fef3c7;color:#b45309}.tag.danger{background:#fee2e2;color:#b91c1c}.page-fade{animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.btnSm.ghost{background:transparent;color:var(--muted)}.lblTag{font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;border:1px solid var(--border);color:var(--muted);text-transform:none}.templatesBar{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--border);background:var(--surface)}.tplSelect{max-width:400px}.bubble.internal{border-color:#c9a22773;background:var(--warn-bg)}.internalTag{font-size:11px;font-weight:700;color:var(--warn);margin-bottom:6px}.bubble.hasMedia .mediaBox{margin-bottom:8px}.mediaBox a{color:#e8d089;font-weight:600}.modalBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#06080ab8;display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}.modal{width:min(520px,100%);border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface);padding:18px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow)}.modalTitle{font-weight:700;font-size:1.05rem}.modalActions{display:flex;gap:10px;justify-content:flex-end}.mainNav{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.navTab{padding:8px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--muted);cursor:pointer;font-weight:600;font-size:13px;font-family:inherit}.navTab:hover{color:var(--text);border-color:var(--border-focus)}.navTab.active{border-color:var(--accent);background:#c9a22729;color:var(--on-accent)}.navQuickHint{margin-top:10px;font-size:12px;font-weight:500;line-height:1.6;color:var(--muted);max-width:min(900px,100%)}.shell.shellWa .navQuickHint{color:#ffffffe0}.shell.shellWa .navQuickHint strong{color:#fff}.supervisorPanel{padding:18px;overflow:auto;max-height:calc(100dvh - 112px)}.superHead{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.superActions{display:flex;flex-wrap:wrap;gap:8px}.superMsg{margin:0 0 14px;padding:11px 14px;border-radius:var(--radius);background:#c9a2271a;border:1px solid rgba(201,162,39,.35);font-size:13px;font-weight:600;color:#f0e4bc}.statGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;margin-bottom:16px}.statCard{padding:14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2)}.statCard.warn{border-left:3px solid var(--warn);background:var(--warn-bg)}.statCard.danger{border-left:3px solid var(--danger);background:var(--danger-bg)}.statVal{font-size:1.35rem;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums}.statLbl{font-size:12px;color:var(--muted);font-weight:600;margin-top:6px;line-height:1.35}.labelChips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.chip{font-size:12px;font-weight:600;padding:6px 10px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--muted)}.tableWrap{overflow:auto;border-radius:var(--radius);border:1px solid var(--border)}.dataTable{width:100%;border-collapse:collapse;font-size:14px}.dataTable th,.dataTable td{padding:10px 12px;text-align:right;border-bottom:1px solid var(--border)}.dataTable th{color:var(--muted);font-weight:700;font-size:12px;background:var(--surface)}.dataTable tr:last-child td{border-bottom:none}.hintCell{text-align:center;color:var(--muted);padding:20px;font-weight:500}.tplAdmin{margin-top:20px;padding-top:18px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:14px}.tplList{display:flex;flex-direction:column;gap:10px}.tplRow{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2)}.tplPreview{font-size:13px;color:var(--muted);margin-top:6px;white-space:pre-wrap;font-weight:500}.tplForm{display:flex;flex-direction:column;gap:10px;max-width:560px}.msgMeta{font-size:11px;font-weight:600;opacity:.75;margin-bottom:6px}.btnSm.logActive{border-color:#c9a2278c;background:#c9a2271f;color:#f0e4bc}.activityLogPanel{border-bottom:1px solid var(--border);background:#0003;max-height:220px;display:flex;flex-direction:column}.activityLogHead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px}.activityTableWrap{overflow:auto;flex:1;min-height:0}.miniTable{width:100%;border-collapse:collapse;font-size:12px}.miniTable th,.miniTable td{padding:7px 10px;text-align:right;border-top:1px solid var(--border);vertical-align:top}.miniTable th{color:var(--muted);font-weight:700;font-size:11px;position:sticky;top:0;background:var(--surface)}.miniTable .mono{white-space:nowrap;font-variant-numeric:tabular-nums}.noteCell{color:var(--muted);max-width:200px;word-break:break-word;font-weight:500}.mono{font-variant-numeric:tabular-nums}.authPage{min-height:100dvh;display:flex;flex-direction:column;padding:0;max-width:none;margin:0;background:var(--bg)}.authLayout{flex:1;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,440px);gap:0;min-height:100dvh;align-items:stretch}@media(max-width:900px){.authLayout{grid-template-columns:1fr}.authAside{padding:28px 20px 12px;text-align:center}.authAsideList{display:none}}.authAside{padding:48px 40px 40px;border-inline-end:1px solid var(--border);background:linear-gradient(165deg,rgba(201,162,39,.09) 0%,transparent 55%);display:flex;flex-direction:column;justify-content:center}.authAsideBrand{display:flex;align-items:center;gap:14px;margin-bottom:20px}.authAsideBrand .logo{width:52px;height:52px;font-size:17px}.authAsideTitle{font-weight:800;font-size:1.45rem;line-height:1.35;letter-spacing:0}.authAsideLead{font-size:15px;color:var(--muted);font-weight:500;line-height:1.65;max-width:420px}.authAsideList{margin-top:28px;padding:0;list-style:none;font-size:14px;color:var(--muted);font-weight:600;line-height:1.9}.authAsideList li:before{content:"✓ ";color:var(--accent);font-weight:800}.authMain{display:flex;align-items:center;justify-content:center;padding:32px 24px 40px}.authCard{width:min(100%,400px);padding:32px 28px;border-radius:var(--radius-lg);border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}.authCardTitle{font-weight:800;font-size:1.2rem;margin-bottom:6px}.authCardSub{font-size:13px;color:var(--muted);font-weight:500;line-height:1.5;margin-bottom:22px}.loginForm .fieldLbl{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:6px}.loginForm .loginField{margin-bottom:14px}.loginForm .search{width:100%}.loginErrBox{padding:10px 12px;border-radius:var(--radius);border:1px solid rgba(201,74,71,.45);background:var(--danger-bg);color:#f0b4b3;font-size:13px;font-weight:600;margin-bottom:12px}.loginPwdRow{display:flex;gap:8px;align-items:stretch}.loginPwdRow .search{flex:1}.btnWide:disabled{opacity:.55;cursor:not-allowed}.authApiHint{margin-top:18px;font-size:11px;color:var(--muted);line-height:1.45;font-weight:500;text-align:center}.setupSubNav{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 18px}.roleBadge{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;border:1px solid var(--border);background:var(--surface-2);color:var(--muted)}.roleBadge.admin{border-color:#c9a2278c;color:#f0e4bc;background:#c9a2271f}.roleBadge.wa_admin{border-color:#78a0dc73;color:#b8cce8}.roleBadge.wa_supervisor{border-color:#a0c8a066;color:#c8e4c8}.fieldLbl{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:6px}.staffCreateCard{padding:16px 18px;margin-bottom:16px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2)}.staffCreateTitle{font-weight:700;font-size:15px;margin-bottom:12px}.modal .chk,.supervisorPanel .chk{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer}.shell.shellWa{background:#dadbd4;background-image:none;padding:10px 12px 12px}.shell.shellWa .top{background:linear-gradient(180deg,#008069,#006b5a);border:1px solid #005a4a;border-inline-end:4px solid #25d366;box-shadow:0 2px 8px #0000001f}.shell.shellWa .title{color:#fff}.shell.shellWa .brand .sub{color:#ffffffe0}.shell.shellWa .logo{background:#fff;color:#008069;box-shadow:0 1px 3px #00000026}.shell.shellWa .navTab{background:#ffffff1f;border-color:#ffffff38;color:#ffffffeb}.shell.shellWa .navTab:hover{color:#fff;border-color:#fff6}.shell.shellWa .navTab.active{background:#ffffff38;border-color:#ffffff80;color:#fff}.shell.shellWa .userPill,.shell.shellWa .statusPill{background:#ffffff24;border-color:#ffffff47;color:#fffffff2}.shell.shellWa .userPill .roleBadge,.shell.shellWa .userPill .roleBadge.admin,.shell.shellWa .userPill .roleBadge.wa_admin,.shell.shellWa .userPill .roleBadge.wa_supervisor{background:#ffffff2e;border-color:#ffffff59;color:#fff}.shell.shellWa .userPill .roleTag{color:#ffffffbf}.shell.shellWa .btnGhost{color:#ffffffeb;border-color:#ffffff59}.shell.shellWa .btnGhost:hover{color:#fff;background:#ffffff1a}.shell.shellWa .top .btnSm{background:#ffffff29;border-color:#ffffff47;color:#fff}.shell.shellWa .top .btnSm:hover{background:#ffffff42;border-color:#ffffff73}.shell.shellWa .top .btnSm.danger{background:#dc505040;border-color:#ffb4b473;color:#ffe8e8}.shell.shellWa .top .btnSm.ghost{background:transparent;color:#ffffffd9}.shell.shellWa .mutedTiny{color:#ffffffc7}.shell.shellWa .profileInput,.shell.shellWa .topRight .search{background:#fffffff2;border-color:#ffffff80;color:#111b21}.shell.shellWa .main{gap:1px;box-shadow:0 1px 1px #0b141a29}.shell.shellWa .panel.list{background:#fff;border-color:#e9edef;border-radius:0;box-shadow:none}.shell.shellWa .listHead{background:#f0f2f5;border-bottom:1px solid #e9edef}.shell.shellWa .panel.list .search{background:#fff;border:1px solid #e9edef;color:#111b21}.shell.shellWa .panel.list .search:focus{border-color:#008069;box-shadow:0 0 0 1px #008069}.shell.shellWa .tabs{background:#fff;border-bottom:1px solid #e9edef}.shell.shellWa .tab{background:transparent;border-color:transparent;color:#54656f}.shell.shellWa .tab.active{background:#e7fce3;border-color:#cfe9c8;color:#008069}.shell.shellWa .items{background:#fff}.shell.shellWa .item{background:transparent;border:none;border-radius:0;border-bottom:1px solid #f0f2f5;margin-bottom:0;padding:12px 14px}.shell.shellWa .item:hover{background:#f5f6f6}.shell.shellWa .item.active{background:#f0f2f5;border:none;border-inline-start:3px solid #008069}.shell.shellWa .item .avatar{background:linear-gradient(145deg,#53bdeb,#069edb)}.shell.shellWa .item .name{color:#111b21}.shell.shellWa .item .time,.shell.shellWa .item .preview{color:#667781}.shell.shellWa .item .lblTag{background:#e9edef;border-color:#d1d7db;color:#54656f}.shell.shellWa .item .badge{background:#25d366;color:#fff;border-radius:999px;min-width:22px;height:22px}.shell.shellWa .items .hint{color:#667781}.shell.shellWa .panel.chat{background:#efeae2;border-color:#e9edef;border-radius:0;box-shadow:none}.shell.shellWa .chat>.hint{background:#efeae2;color:#667781;font-weight:600}.shell.shellWa .chatHead{background:#f0f2f5;border-bottom:1px solid #e9edef;padding:10px 16px}.shell.shellWa .chatHead .chatTitle{color:#111b21;font-size:1.05rem}.shell.shellWa .chatHead .sub{color:#667781}.shell.shellWa .chatHead .btnSm{background:#fff;border:1px solid #e9edef;color:#54656f}.shell.shellWa .chatHead .btnSm:hover{background:#f5f6f6;border-color:#d1d7db;color:#111b21}.shell.shellWa .chatHead .btnSm.danger{background:#fff5f5;border-color:#f5c4c4;color:#c94a47}.shell.shellWa .chatHead .btnSm.ghost{background:transparent;color:#667781}.shell.shellWa .chatHead .btnSm.logActive{border-color:#008069;background:#e7fce3;color:#008069}.shell.shellWa .templatesBar{background:#f0f2f5;border-bottom:1px solid #e9edef}.shell.shellWa .templatesBar .mutedTiny{color:#54656f}.shell.shellWa .tplSelect{background:#fff;border-color:#e9edef;color:#111b21}.shell.shellWa .activityLogPanel{background:#f8f9fa;border-bottom-color:#e9edef}.shell.shellWa .activityLogHead .mutedTiny{color:#667781}.shell.shellWa .activityLogPanel .btnSm{background:#fff;border:1px solid #e9edef;color:#54656f}.shell.shellWa .activityLogPanel .btnSm:hover{background:#f5f6f6;border-color:#d1d7db;color:#111b21}.shell.shellWa .activityLogPanel .btnSm.ghost{background:transparent;color:#667781}.shell.shellWa .miniTable th{background:#f0f2f5;color:#54656f}.shell.shellWa .msgs{background-color:#e5ddd5;background-image:repeating-linear-gradient(125deg,rgba(0,0,0,.018) 0 1px,transparent 1px 8px);padding:12px 16px 16px;gap:4px}.shell.shellWa .bubble{border:none;box-shadow:0 1px .5px #0b141a21;font-weight:400;color:#111b21;border-radius:8px}.shell.shellWa .bubble.in{align-self:flex-end;background:#fff;border-start-end-radius:2px}.shell.shellWa .bubble.out{align-self:flex-start;background:#d9fdd3;color:#111b21;border-start-start-radius:2px}.shell.shellWa .bubble .msgMeta{color:#667781;font-weight:500}.shell.shellWa .bubble.internal{background:#fff8e1;border:1px solid #f0d090;box-shadow:none}.shell.shellWa .bubble.internal .internalTag{color:#b4690e}.shell.shellWa .compose{background:#f0f2f5;border-top:1px solid #e9edef}.shell.shellWa .compose .chk{color:#54656f}.shell.shellWa .compose .input{background:#fff;border:1px solid #e9edef;border-radius:24px;color:#111b21}.shell.shellWa .compose .input:focus{border-color:#008069;box-shadow:0 0 0 1px #00806940}.shell.shellWa .compose .btn{width:48px;height:48px;border-radius:50%;background:#008069;color:#fff;border:none;font-size:13px;box-shadow:0 1px 2px #0b141a33}.shell.shellWa .compose .btn:hover{background:#006b5a}.shell.shellWa .sendErr{border-color:#f5c4c4;color:#b42318;background:#fff5f5}@media(max-width:980px){.shell.shellWa .main{border-radius:0}}.bubble.internal{background:#fef9c3!important;border:1px solid #fde047!important;color:#854d0e!important;font-style:italic;opacity:.9}.templates-popover{position:absolute;bottom:100%;left:10px;right:10px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 -5px 20px #0000001a;z-index:1000;margin-bottom:10px;max-height:300px;display:flex;flex-direction:column}.popover-head{padding:10px 14px;background:#f8fafc;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;border-radius:12px 12px 0 0}.popover-head span{font-weight:700;font-size:13px;color:var(--text)}.popover-body{overflow-y:auto;padding:8px}.template-item{padding:10px 12px;border-radius:8px;cursor:pointer;transition:all .2s;border-bottom:1px solid #f1f5f9}.template-item:last-child{border-bottom:none}.template-item:hover{background:#f1f5f9}.t-title{font-weight:700;font-size:12px;color:var(--accent);margin-bottom:2px}.t-body{font-size:11px;color:var(--muted);line-height:1.4}.btnSm.ghost{background:transparent;border:1px solid transparent;color:var(--muted)}.btnSm.ghost:hover{background:#0000000d;color:var(--text)}.info-sidebar{width:280px;border-right:1px solid var(--border);background:#fff;display:flex;flex-direction:column;padding:20px;overflow-y:auto}.sidebar-section{margin-bottom:24px}.sidebar-title{font-weight:800;font-size:14px;color:var(--text);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}.info-row{display:flex;justify-content:space-between;margin-bottom:8px;font-size:13px}.info-row strong{color:var(--muted)}.media-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.media-placeholder{grid-column:span 3;text-align:center;font-size:11px;color:var(--muted);padding:20px;border:1px dashed var(--border);border-radius:8px}.btn.outline{background:transparent;border:1px solid var(--accent);color:var(--accent)}.btn.outline:hover{background:var(--accent);color:#fff}.btn.full{width:100%}
