/* ========================================
   Chat en Vivo - Widget del visitante
   ======================================== */

/* --- Burbuja flotante --- */
.chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary, #006699);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}
.chat-bubble.chat-offline {
    background: var(--gray, #666);
}
.chat-bubble .chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    display: none;
}
.chat-bubble .chat-badge.show {
    display: flex;
}

/* Pulso cuando hay operador online */
.chat-bubble.chat-online::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #28a745;
    border-radius: 50%;
    top: 2px;
    right: 2px;
    border: 2px solid #fff;
}

/* --- Ventana de chat --- */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 520px;
    background: #004571;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Open Sans', Calibri, sans-serif;
}
.chat-window.open {
    display: flex;
    animation: chatSlideUp 0.3s ease;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary, #006699) 0%, #004571 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Roboto', 'Open Sans', Calibri, sans-serif;
    color: #fff;
}
.chat-header-info p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.85;
    color: #fff;
}
.chat-header-actions {
    display: flex;
    gap: 8px;
}
.chat-header-actions button {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
}
.chat-header-actions button:hover {
    background: rgba(255,255,255,0.3);
}

/* Zona de mensajes */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
}
.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Burbujas de mensajes */
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.45;
    word-break: break-word;
}
.chat-msg-visitante {
    align-self: flex-end;
    background: var(--primary, #006699);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-operador {
    align-self: flex-start;
    background: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 4px;
}
.chat-msg-sistema {
    align-self: center;
    background: transparent;
    color: #6c757d;
    font-size: 0.75rem;
    text-align: center;
    padding: 4px 12px;
    max-width: 100%;
}
.chat-msg-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 3px;
    display: block;
}
.chat-msg-visitante .chat-msg-time {
    text-align: right;
}

/* Indicador de escritura */
.chat-typing {
    font-size: 0.75rem;
    color: #6c757d;
    padding: 4px 16px;
    font-style: italic;
    display: none;
    flex-shrink: 0;
}
.chat-typing.show {
    display: block;
}

/* Input de mensaje */
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
    background: #fff;
}
.chat-input-area textarea {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: 'Open Sans', Calibri, sans-serif;
    resize: none;
    max-height: 100px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s;
}
.chat-input-area textarea:focus {
    border-color: var(--primary, #006699);
}
.chat-input-area textarea::placeholder {
    color: #adb5bd;
}
/* Boton adjuntar */
.chat-attach-btn {
    background: transparent;
    color: #6c757d;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.chat-attach-btn:hover {
    color: var(--primary, #006699);
    background: rgba(0,102,153,0.08);
}
.chat-send-btn {
    background: var(--primary, #006699);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.chat-send-btn:hover {
    background: #004571;
    transform: scale(1.05);
}
.chat-send-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Adjuntos en mensajes */
.chat-msg-adjunto {
    margin-top: 6px;
}
.chat-msg-adjunto img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}
.chat-msg-adjunto a.chat-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}
.chat-msg-adjunto a.chat-doc-link:hover {
    opacity: 0.8;
}
.chat-msg-visitante .chat-doc-link {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.chat-msg-operador .chat-doc-link {
    background: rgba(0,0,0,0.06);
    color: #333;
}

/* Preview de archivo seleccionado */
.chat-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin: 0 16px;
    background: #e9ecef;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #333;
    flex-shrink: 0;
}
.chat-file-preview .file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-file-preview .file-remove {
    cursor: pointer;
    color: #dc3545;
    font-size: 1rem;
    line-height: 1;
}
.chat-file-preview .file-remove:hover {
    color: #a71d2a;
}

/* Pantalla offline con formulario de contacto */
.chat-offline-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    text-align: center;
    color: #6c757d;
    background: #f8f9fa;
    overflow-y: auto;
}

/* Formulario de lead */
.chat-lead-form {
    width: 100%;
    max-width: 300px;
}
.chat-lead-form > i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary, #006699);
}
.chat-lead-form > p {
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 16px;
    color: #555;
}
.chat-lead-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-lead-form input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-family: 'Open Sans', Calibri, sans-serif;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.chat-lead-form input:focus {
    border-color: var(--primary, #006699);
}
.chat-lead-form input::placeholder {
    color: #adb5bd;
}
/* Adjuntar archivo en lead form */
.chat-lead-file-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-lead-file-btn {
    background: #f0f2f5;
    color: #555;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: 'Open Sans', Calibri, sans-serif;
}
.chat-lead-file-btn:hover {
    border-color: var(--primary, #006699);
    color: var(--primary, #006699);
}
.chat-lead-file-name {
    font-size: 0.72rem;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chat-lead-btn {
    background: var(--primary, #006699);
    color: #fff;
    border: none;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: 'Open Sans', Calibri, sans-serif;
}
.chat-lead-btn:hover {
    background: #004571;
    transform: translateY(-1px);
}
.chat-lead-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

/* Confirmacion de lead enviado */
.chat-lead-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.chat-lead-success > i {
    font-size: 3rem;
    color: #28a745;
}
.chat-lead-success h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    font-family: 'Roboto', 'Open Sans', Calibri, sans-serif;
}
.chat-lead-success p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #555;
    margin: 0;
}

/* Pantalla de inicio (antes de abrir chat) */
.chat-start-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
}
.chat-start-screen i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary, #006699);
}
.chat-start-screen p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.chat-start-btn {
    background: var(--primary, #006699);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.chat-start-btn:hover {
    background: #004571;
    transform: translateY(-1px);
}

/* --- Responsive: fullscreen en movil --- */
@media (max-width: 575.98px) {
    .chat-window {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .chat-bubble {
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   Panel de Operadores
   ======================================== */

/* Layout principal */
.chat-panel {
    display: flex;
    min-height: 100vh;
    font-family: 'Open Sans', Calibri, sans-serif;
}

/* Sidebar */
.chat-panel-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #002F59 0%, #004571 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.chat-panel-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.chat-panel-sidebar-header img {
    max-height: 40px;
    margin-bottom: 12px;
}
.chat-panel-sidebar-header h6 {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}
.chat-panel-operador-info {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-panel-operador-info .nombre {
    font-weight: 600;
    font-size: 0.95rem;
}
.chat-panel-toggle {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-panel-toggle label {
    font-size: 0.8rem;
    cursor: pointer;
}

/* Switch de online/offline */
.switch-online {
    position: relative;
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: #6c757d;
    border-radius: 12px;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}
.switch-online:checked {
    background: #28a745;
}
.switch-online::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s;
}
.switch-online:checked::after {
    left: 23px;
}

/* Sidebar nav */
.chat-panel-sidebar-nav {
    flex: 1;
    padding: 16px 0;
}
.chat-panel-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s;
}
.chat-panel-sidebar-nav a:hover,
.chat-panel-sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.chat-panel-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.chat-panel-sidebar-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-panel-sidebar-footer a:hover {
    color: #fff;
}

/* Contenido principal */
.chat-panel-content {
    flex: 1;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel-topbar {
    background: #fff;
    padding: 14px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-panel-topbar h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    font-family: 'Roboto', 'Open Sans', Calibri, sans-serif;
}
.chat-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    gap: 24px;
}

/* Cola de espera */
.chat-panel-queue {
    width: 320px;
    flex-shrink: 0;
}
.chat-panel-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Tarjeta de conversacion en cola */
.chat-queue-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid var(--secondary, #FF9900);
    transition: box-shadow 0.2s;
}
.chat-queue-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.chat-queue-card .pagina {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
}
.chat-queue-card .preview {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-queue-card .meta {
    font-size: 0.7rem;
    color: #adb5bd;
}
.chat-queue-card .btn-atender {
    margin-top: 8px;
    background: var(--primary, #006699);
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-queue-card .btn-atender:hover {
    background: #004571;
}

/* Area de chats activos */
.chat-panel-chats {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Tabs de chats activos */
.chat-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.chat-tab {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    font-size: 0.8rem;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    position: relative;
}
.chat-tab.active {
    background: #fff;
    border-color: var(--primary, #006699);
    color: var(--primary, #006699);
    font-weight: 600;
}
.chat-tab .tab-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -4px;
}
.chat-tab .tab-badge.show {
    display: flex;
}
.chat-tab .tab-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.chat-tab .tab-label .tab-icon {
    font-size: 0.7rem;
}
.chat-tab .tab-close {
    margin-left: 8px;
    opacity: 0.5;
    cursor: pointer;
}
.chat-tab .tab-close:hover {
    opacity: 1;
}

/* Tab con mensajes nuevos sin leer - pulso */
.chat-tab.tab-unread {
    animation: tabPulse 1.5s ease-in-out infinite;
    border-color: var(--secondary, #FF9900);
    color: var(--secondary, #FF9900);
    font-weight: 600;
}
.chat-tab.tab-unread.active {
    animation: none;
}
@keyframes tabPulse {
    0%, 100% { background: #fff; }
    50% { background: rgba(255, 153, 0, 0.12); }
}

/* Indicador de typing en tab */
.chat-tab .tab-typing-dot {
    display: none;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-left: 4px;
    animation: typingDotPulse 1s ease-in-out infinite;
}
.chat-tab .tab-typing-dot.show {
    display: inline-block;
}
@keyframes typingDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* Tab cerrado/abandonado */
.chat-tab.tab-closed {
    opacity: 0.6;
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
    animation: none;
}
.chat-tab.tab-closed.active {
    border-color: #dc3545;
    color: #dc3545;
}

/* Input deshabilitado cuando chat esta cerrado */
.chat-panel-chatwindow.chat-cerrado .chat-input-area {
    pointer-events: none;
    opacity: 0.5;
}
.chat-panel-chatwindow.chat-cerrado .chat-input-area textarea {
    background: #f0f0f0;
}

/* Ventana de chat del operador */
.chat-panel-chatwindow {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-panel-chatwindow .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
}
.chat-panel-chatwindow .chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #fff;
}
.chat-panel-chatwindow .chat-input-area textarea {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.875rem;
    font-family: 'Open Sans', Calibri, sans-serif;
    resize: none;
    max-height: 100px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s;
}
.chat-panel-chatwindow .chat-input-area textarea:focus {
    border-color: var(--primary, #006699);
}

/* Chat info header en panel */
.chat-panel-chat-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-panel-chat-header .visitor-info {
    font-size: 0.8rem;
    color: #6c757d;
}
.chat-panel-chat-header .btn-cerrar-chat {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-panel-chat-header .btn-cerrar-chat:hover {
    background: #b02a37;
}

/* Estado vacio */
.chat-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #adb5bd;
    text-align: center;
}
.chat-panel-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
}
.chat-panel-empty p {
    font-size: 0.9rem;
}

/* Tarjetas de leads (solicitudes de contacto) */
.chat-lead-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-left: 4px solid var(--secondary, #FF9900);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
}
.chat-lead-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}
.chat-lead-card.llamado {
    border-left-color: #28a745;
    opacity: 0.7;
}
.chat-lead-card .lead-info {
    flex: 1;
    min-width: 0;
}
.chat-lead-card .lead-nombre {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 2px;
}
.chat-lead-card .lead-contacto {
    font-size: 0.8rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}
.chat-lead-card .lead-contacto a {
    color: var(--primary, #006699);
    text-decoration: none;
}
.chat-lead-card .lead-contacto a:hover {
    text-decoration: underline;
}
.chat-lead-card .lead-meta {
    font-size: 0.7rem;
    color: #adb5bd;
}
.chat-lead-card .lead-meta .lead-llamado-info {
    color: #28a745;
    font-weight: 600;
}
.chat-lead-card .lead-acciones {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.chat-lead-card .lead-acciones button {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.chat-lead-card .lead-acciones button:hover {
    transform: translateY(-1px);
}
.chat-lead-card .btn-llamado {
    background: #28a745;
    color: #fff;
}
.chat-lead-card .btn-llamado:hover {
    background: #218838;
}
.chat-lead-card .btn-no-llamado {
    background: var(--secondary, #FF9900);
    color: #fff;
}
.chat-lead-card .btn-no-llamado:hover {
    background: #e08800;
}
.chat-lead-card .btn-eliminar-lead {
    background: #f8f9fa;
    color: #dc3545;
}
.chat-lead-card .btn-eliminar-lead:hover {
    background: #dc3545;
    color: #fff;
}

/* Responsive panel operador */
@media (max-width: 991.98px) {
    .chat-panel-sidebar {
        width: 220px;
    }
    .chat-panel-body {
        flex-direction: column;
    }
    .chat-panel-queue {
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .chat-panel-sidebar {
        position: fixed;
        left: -280px;
        z-index: 1000;
        transition: left 0.3s;
        height: 100vh;
    }
    .chat-panel-sidebar.open {
        left: 0;
    }
}
