#vm-chatcenter-root {
    --vmcc-bg: #f3f5f8;
    --vmcc-panel: #ffffff;
    --vmcc-border: #dfe4ea;
    --vmcc-text: #1f2a37;
    --vmcc-muted: #7b8794;
    --vmcc-primary: #2f66e0;
    --vmcc-primary-dark: #1f56d2;
    --vmcc-orange: #f97316;
    --vmcc-green: #22c55e;
    --vmcc-yellow: #f59e0b;
    --vmcc-red: #ef4444;
    --vmcc-gray-badge: #eef2f7;
    --vmcc-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
    font-family: Arial, Helvetica, sans-serif;
    color: var(--vmcc-text);
    height: calc(100vh - 50px);
    height: calc(100dvh - 50px);
    max-height: calc(100dvh - 50px);
    min-height: 0;
    overflow: hidden;
}

#vm-chatcenter-root * {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(104, 119, 140, 0.34) transparent;
}

#vm-chatcenter-root *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

#vm-chatcenter-root *::-webkit-scrollbar-track {
    background: transparent;
}

#vm-chatcenter-root *::-webkit-scrollbar-thumb {
    background: rgba(104, 119, 140, 0.28);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

#vm-chatcenter-root *::-webkit-scrollbar-thumb:hover {
    background: rgba(104, 119, 140, 0.46);
    border: 2px solid transparent;
    background-clip: padding-box;
}

#vm-chatcenter-root *::-webkit-scrollbar-corner {
    background: transparent;
}

#vm-chatcenter-root .vmcc-app {
    width: 100%;
    background: #f7f8fb;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#vm-chatcenter-root .vmcc-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background: #eceff3;
    border-bottom: 1px solid #d4dbe5;
}

#vm-chatcenter-root .vmcc-topbar-left,
#vm-chatcenter-root .vmcc-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-theme-toggle {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid #cfd7e3;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

#vm-chatcenter-root .vmcc-theme-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#vm-chatcenter-root .vmcc-theme-toggle-track {
    width: 30px;
    height: 16px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    flex: 0 0 auto;
    transition: background 0.2s ease;
}

#vm-chatcenter-root .vmcc-theme-toggle-track::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 2px;
    top: 2px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.2s ease;
}

#vm-chatcenter-root .vmcc-theme-toggle input:checked + .vmcc-theme-toggle-track {
    background: var(--vmcc-primary);
}

#vm-chatcenter-root .vmcc-theme-toggle input:checked + .vmcc-theme-toggle-track::after {
    transform: translateX(14px);
}

#vm-chatcenter-root .vmcc-company-btn {
    border: 1px solid #cfd7e3;
    background: #fff;
    color: #334155;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

#vm-chatcenter-root .vmcc-company-btn.active {
    background: var(--vmcc-orange);
    color: #fff;
    border-color: var(--vmcc-orange);
}

#vm-chatcenter-root .vmcc-action-btn {
    border: 0;
    background: #1691d0;
    color: #fff;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-notification-btn.active {
    color: #176b3a;
    border-color: #9ad5b3;
    background: #eaf8f0;
}

#vm-chatcenter-root .vmcc-notification-btn[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-layout {
    display: grid;
    grid-template-columns: 190px 300px 1fr 245px;
    gap: 10px;
    padding: 10px;
    background: #f4f6fa;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

#vm-chatcenter-root .vmcc-sidebar,
#vm-chatcenter-root .vmcc-chatlist-panel,
#vm-chatcenter-root .vmcc-conversation-panel,
#vm-chatcenter-root .vmcc-details-panel {
    background: var(--vmcc-panel);
    border: 1px solid var(--vmcc-border);
    border-radius: 12px;
    box-shadow: var(--vmcc-shadow);
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
}

#vm-chatcenter-root .vmcc-sidebar {
    padding: 10px;
    overflow-y: auto;
}

#vm-chatcenter-root .vmcc-refresh-btn {
    width: 100%;
    border: 0;
    background: var(--vmcc-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    padding: 11px 12px;
    cursor: pointer;
    margin-bottom: 14px;
}

#vm-chatcenter-root .vmcc-api-notice {
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.35;
    background: #eef4ff;
    color: #2451a6;
    border: 1px solid #cfe0ff;
}

#vm-chatcenter-root .vmcc-api-notice.error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

#vm-chatcenter-root .vmcc-filter-group {
    margin-bottom: 20px;
}

#vm-chatcenter-root .vmcc-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
    font-weight: 800;
    color: #8a94a6;
    margin-bottom: 8px;
    letter-spacing: 0.8px;
    text-align: left;
    font-family: inherit;
}

#vm-chatcenter-root .vmcc-filter-title i {
    font-size: 10px;
    transition: transform 0.18s ease;
}

#vm-chatcenter-root .vmcc-filter-group.is-collapsed {
    margin-bottom: 12px;
}

#vm-chatcenter-root .vmcc-filter-group.is-collapsed .vmcc-filter-title i {
    transform: rotate(-90deg);
}

#vm-chatcenter-root .vmcc-filter-group.is-collapsed .vmcc-agent-filter-search,
#vm-chatcenter-root .vmcc-filter-group.is-collapsed .vmcc-filter-list,
#vm-chatcenter-root .vmcc-filter-group.is-collapsed .vmcc-filter-combo-notice {
    display: none;
}

#vm-chatcenter-root .vmcc-filter-combo-notice {
    margin: 0 0 8px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fdba74;
}

#vm-chatcenter-root .vmcc-topbar-filter-notice {
    height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0 10px;
    line-height: 1;
    white-space: nowrap;
}

#vm-chatcenter-root .vmcc-topbar-filter-notice[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-topbar-api-notice {
    height: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    max-width: 450px;
    margin: 0;
    padding: 0 10px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#vm-chatcenter-root .vmcc-topbar-api-notice[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#vm-chatcenter-root .vmcc-agent-filter-search {
    position: relative;
    margin-bottom: 8px;
}

#vm-chatcenter-root .vmcc-agent-filter-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a94a6;
    font-size: 12px;
    pointer-events: none;
}

#vm-chatcenter-root .vmcc-agent-search-input {
    width: 100%;
    height: 32px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 0 10px 0 30px;
    background: #ffffff;
    color: #243041;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

#vm-chatcenter-root .vmcc-agent-search-input:focus {
    border-color: var(--vmcc-primary);
    box-shadow: 0 0 0 3px rgba(47, 102, 224, 0.12);
}

#vm-chatcenter-root .vmcc-agent-search-input::placeholder {
    color: #9aa6b8;
}

#vm-chatcenter-root .vmcc-filter-empty {
    color: #8a94a6;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 2px;
}

#vm-chatcenter-root .vmcc-filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #243041;
    transition: 0.2s ease;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font-family: inherit;
}

#vm-chatcenter-root .vmcc-filter-item:hover {
    background: #f3f6fb;
}

#vm-chatcenter-root .vmcc-filter-item.active {
    background: #eaf1ff;
    color: var(--vmcc-primary);
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-filter-badge {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #eef2f7;
    color: #718096;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

#vm-chatcenter-root .vmcc-chatlist-panel {
    display: flex;
    flex-direction: column;
    position: relative;
}

#vm-chatcenter-root .vmcc-panel-header {
    padding: 10px;
    border-bottom: 1px solid var(--vmcc-border);
}

#vm-chatcenter-root .vmcc-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#vm-chatcenter-root .vmcc-bulk-assign-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    margin-top: 8px;
    padding: 6px 8px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

#vm-chatcenter-root .vmcc-bulk-assign-bar[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-bulk-link {
    border: 0;
    background: transparent;
    color: var(--vmcc-primary);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

#vm-chatcenter-root .vmcc-bulk-link.muted {
    color: #64748b;
}

#vm-chatcenter-root .vmcc-search-input {
    width: 100%;
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

#vm-chatcenter-root .vmcc-filter-open-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-filter-open-btn.active {
    background: #eaf1ff;
    color: var(--vmcc-primary);
    border-color: #9cbcf7;
}

#vm-chatcenter-root .vmcc-chatlist {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    overscroll-behavior: contain;
    scroll-behavior: auto;
    transform: translateZ(0);
    will-change: scroll-position;
}

#vm-chatcenter-root .vmcc-new-chats-btn {
    position: absolute;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    min-width: 44px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0 12px;
    background: var(--vmcc-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(47, 102, 224, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-new-chats-btn[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-new-chats-btn i {
    font-size: 12px;
}

#vm-chatcenter-root .vmcc-chat-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 10px;
    padding: 12px 12px;
    position: relative;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #f0f3f7;
    cursor: pointer;
    transition: none;
    width: 100%;
    background: #ffffff;
    text-align: left;
    font-family: inherit;
    color: inherit;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 84px;
}

#vm-chatcenter-root .vmcc-chat-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    align-self: flex-end;
}

#vm-chatcenter-root .vmcc-chat-select-input {
    width: 13px;
    height: 13px;
    margin: 0;
    accent-color: var(--vmcc-primary);
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-chat-item:hover {
    background: #f8fbff;
}

#vm-chatcenter-root .vmcc-chat-item.selected {
    background: #f8fbff;
}

#vm-chatcenter-root .vmcc-chat-item.active {
    background: #eef4ff;
    border-left-color: var(--vmcc-primary);
}

#vm-chatcenter-root .vmcc-chat-blocked-flag {
    position: absolute;
    left: 8px;
    bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

#vm-chatcenter-root .vmcc-chat-blocked-flag i {
    font-size: 7px;
}

#vm-chatcenter-root .vmcc-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

#vm-chatcenter-root .vmcc-chat-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-block;
}

#vm-chatcenter-root .vmcc-chat-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#vm-chatcenter-root .vmcc-chat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0;
}

#vm-chatcenter-root .vmcc-chat-top,
#vm-chatcenter-root .vmcc-chat-badges {
    width: 100%;
}

#vm-chatcenter-root .vmcc-chat-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #162033;
}

#vm-chatcenter-root .vmcc-chat-time {
    flex: 0 0 auto;
    font-size: 11px;
    color: var(--vmcc-muted);
    white-space: nowrap;
    line-height: 1.2;
}

#vm-chatcenter-root .vmcc-chat-preview {
    font-size: 14px;
    color: #546173;
    line-height: 1.35;
    display: block;
    max-height: calc(1.35em * 2);
    overflow: hidden;
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

#vm-chatcenter-root .vmcc-chat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1px;
}

#vm-chatcenter-root .vmcc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

#vm-chatcenter-root .vmcc-badge.status-en-curso { background: #dbeafe; color: #2563eb; }
#vm-chatcenter-root .vmcc-badge.status-finalizado { background: #dcfce7; color: #15803d; }
#vm-chatcenter-root .vmcc-badge.status-por-abrir { background: #fee2e2; color: #b91c1c; }
#vm-chatcenter-root .vmcc-badge.status-sin-asignar { background: #fef3c7; color: #a16207; }

#vm-chatcenter-root .vmcc-badge.tag-vendido { background: #dcfce7; color: #15803d; }
#vm-chatcenter-root .vmcc-badge.tag-soporte { background: #dbeafe; color: #1d4ed8; }
#vm-chatcenter-root .vmcc-badge.tag-cotizacion { background: #fef3c7; color: #a16207; }
#vm-chatcenter-root .vmcc-badge.tag-importante { background: #fee2e2; color: #b91c1c; }
#vm-chatcenter-root .vmcc-badge.tag-no-deseado { background: #e5e7eb; color: #4b5563; }

#vm-chatcenter-root .vmcc-badge[class*="status-"],
#vm-chatcenter-root .vmcc-badge[class*="tag-"] {
    background-color: #eef2f7;
    color: #475569;
}

#vm-chatcenter-root .vmcc-badge.status-en-curso { background: #dbeafe; color: #2563eb; }
#vm-chatcenter-root .vmcc-badge.status-finalizado { background: #dcfce7; color: #15803d; }
#vm-chatcenter-root .vmcc-badge.status-por-abrir { background: #fee2e2; color: #b91c1c; }
#vm-chatcenter-root .vmcc-badge.status-sin-asignar { background: #fef3c7; color: #a16207; }
#vm-chatcenter-root .vmcc-badge.status-sin-estado { background: #e5e7eb; color: #4b5563; }

#vm-chatcenter-root .vmcc-badge.tag-vendido { background: #dcfce7; color: #15803d; }
#vm-chatcenter-root .vmcc-badge.tag-soporte { background: #dbeafe; color: #1d4ed8; }
#vm-chatcenter-root .vmcc-badge.tag-cotizacion { background: #fef3c7; color: #a16207; }
#vm-chatcenter-root .vmcc-badge.tag-importante { background: #fee2e2; color: #b91c1c; }
#vm-chatcenter-root .vmcc-badge.tag-no-deseado { background: #e5e7eb; color: #4b5563; }

#vm-chatcenter-root .vmcc-window-open {
    background: #dcfce7;
    color: #15803d;
}

#vm-chatcenter-root .vmcc-window-closed {
    background: #fee2e2;
    color: #b91c1c;
}

#vm-chatcenter-root .vmcc-chat-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-agent-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

#vm-chatcenter-root .vmcc-agent-avatar-overlay {
    position: absolute;
    left: -7px;
    bottom: -7px;
    background: #fff;
}

#vm-chatcenter-root .vmcc-unread {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--vmcc-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#vm-chatcenter-root .vmcc-channel-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    color: #475569;
    flex: 0 0 auto;
}

#vm-chatcenter-root .vmcc-channel-icon i {
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-channel-icon.whatsapp {
    background: #dcfce7;
    color: #16a34a;
}

#vm-chatcenter-root .vmcc-channel-icon.instagram {
    background: #fce7f3;
    color: #db2777;
}

#vm-chatcenter-root .vmcc-channel-icon.facebook {
    background: #dbeafe;
    color: #2563eb;
}

#vm-chatcenter-root .vmcc-channel-icon.tiktok {
    background: #e2e8f0;
    color: #0f172a;
}

#vm-chatcenter-root .vmcc-channel-icon.web_widget {
    background: #e0f2fe;
    color: #0284c7;
}

#vm-chatcenter-root .vmcc-channel-icon.default {
    background: #eef2f7;
    color: #475569;
}

#vm-chatcenter-root .vmcc-conversation-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

#vm-chatcenter-root .vmcc-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--vmcc-border);
    min-height: 62px;
}

#vm-chatcenter-root .vmcc-chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

#vm-chatcenter-root .vmcc-chat-header-user img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

#vm-chatcenter-root .vmcc-chat-user-name {
    font-size: 16px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-chat-user-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

#vm-chatcenter-root .vmcc-chat-header-actions,
#vm-chatcenter-root .vmcc-details-top-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-header-agent-btn {
    padding: 0;
    overflow: hidden;
}

#vm-chatcenter-root .vmcc-header-meta-btn {
    color: #2f66e0;
    background: #eef4ff;
}

#vm-chatcenter-root .vmcc-header-meta-btn:hover {
    background: #dfeaff;
}

#vm-chatcenter-root #vmccHeaderAgentAvatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#vm-chatcenter-root .vmcc-icon-btn,
#vm-chatcenter-root .vmcc-tool-btn {
    border: 0;
    background: transparent;
    color: #667085;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

#vm-chatcenter-root .vmcc-icon-btn:hover,
#vm-chatcenter-root .vmcc-tool-btn:hover {
    background: #f3f6fb;
}

#vm-chatcenter-root .vmcc-chat-body {
    flex: 1;
    min-height: 0;
    padding: 16px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #fafbfc, #f8fafc);
    overscroll-behavior: contain;
    scroll-behavior: auto;
    transform: translateZ(0);
    will-change: scroll-position;
}

#vm-chatcenter-root .vmcc-day-label {
    text-align: center;
    color: #98a2b3;
    font-size: 13px;
    margin: 4px 0 16px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-empty-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    color: #98a2b3;
    font-size: 15px;
    text-align: center;
    padding: 20px;
}

#vm-chatcenter-root .vmcc-loading-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

#vm-chatcenter-root .vmcc-loading-spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #dbe4f3;
    border-top-color: #2f66e0;
    animation: vmcc-spin 0.9s linear infinite;
}

#vm-chatcenter-root .vmcc-details-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    margin: 10px 12px 14px;
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    background: #f8fbff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-details-empty {
    padding: 12px;
    margin: 10px 12px 14px;
    border: 1px solid #dbe4f3;
    border-radius: 10px;
    background: #f8fbff;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

@keyframes vmcc-spin {
    to {
        transform: rotate(360deg);
    }
}

#vm-chatcenter-root .vmcc-list-state {
    padding: 20px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
}

#vm-chatcenter-root .vmcc-message-row {
    display: flex;
    margin-bottom: 12px;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 92px;
}

#vm-chatcenter-root .vmcc-message-stack {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: calc(72% + 34px);
}

#vm-chatcenter-root .vmcc-message-row.incoming {
    justify-content: flex-start;
}

#vm-chatcenter-root .vmcc-message-row.incoming .vmcc-message-stack {
    flex-direction: row;
}

#vm-chatcenter-root .vmcc-message-row.outgoing {
    justify-content: flex-end;
}

#vm-chatcenter-root .vmcc-message-row.outgoing .vmcc-message-stack {
    flex-direction: row-reverse;
}

#vm-chatcenter-root .vmcc-message-bubble {
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    overflow: hidden;
    contain: paint;
}

#vm-chatcenter-root .vmcc-message-sender {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    margin-bottom: 4px;
}

#vm-chatcenter-root .vmcc-message-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-message-media,
#vm-chatcenter-root .vmcc-message-video {
    display: block;
    width: 100%;
    max-width: 280px;
    min-height: 120px;
    max-height: 260px;
    aspect-ratio: 14 / 13;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 8px;
    background: #eef2f7;
}

#vm-chatcenter-root .vmcc-message-audio {
    display: block;
    width: 260px;
    max-width: 100%;
    margin-bottom: 8px;
}

#vm-chatcenter-root .vmcc-message-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 10px;
    background: #eef2f7;
    color: #2451a6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

#vm-chatcenter-root .vmcc-shared-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #eef4ff;
    color: #2451a6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

#vm-chatcenter-root .vmcc-shared-link:hover {
    background: #dfeaff;
}

#vm-chatcenter-root .vmcc-instagram-embed {
    width: min(320px, 100%);
    aspect-ratio: 9 / 16;
    max-height: 540px;
    margin-bottom: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

#vm-chatcenter-root .vmcc-instagram-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#vm-chatcenter-root .vmcc-story-preview {
    width: min(280px, 100%);
    aspect-ratio: 9 / 16;
    max-height: 460px;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}

#vm-chatcenter-root .vmcc-shared-preview {
    width: min(320px, 100%);
    aspect-ratio: 1 / 1;
    max-height: 420px;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}

#vm-chatcenter-root .vmcc-story-preview-img,
#vm-chatcenter-root .vmcc-story-preview-video,
#vm-chatcenter-root .vmcc-shared-preview-img,
#vm-chatcenter-root .vmcc-shared-preview-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0f172a;
}

#vm-chatcenter-root .vmcc-story-unavailable {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    color: #e2e8f0;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

#vm-chatcenter-root .vmcc-story-id {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    margin: -2px 0 8px;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-media-unavailable {
    width: min(320px, 100%);
    min-height: 190px;
    margin-bottom: 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

#vm-chatcenter-root .vmcc-media-unavailable i {
    font-size: 22px;
    color: #94a3b8;
}

#vm-chatcenter-root .vmcc-ad-video-preview {
    width: min(320px, 100%);
    aspect-ratio: 16 / 9;
    min-height: 180px;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
}

#vm-chatcenter-root .vmcc-ad-video-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

#vm-chatcenter-root .vmcc-ad-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#vm-chatcenter-root .vmcc-ad-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.24);
    color: rgba(255, 255, 255, 0.92);
    font-size: 44px;
    pointer-events: none;
}

#vm-chatcenter-root .vmcc-payload-card {
    width: min(320px, 100%);
    border: 1px solid #dbe3ee;
    background: #f8fbff;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
}

#vm-chatcenter-root .vmcc-message-row.outgoing .vmcc-payload-card {
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(86, 130, 202, 0.28);
}

#vm-chatcenter-root .vmcc-payload-kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2f66e0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#vm-chatcenter-root .vmcc-payload-media .vmcc-message-media,
#vm-chatcenter-root .vmcc-payload-media .vmcc-message-video {
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    margin-bottom: 7px;
}

#vm-chatcenter-root .vmcc-payload-media .vmcc-message-audio,
#vm-chatcenter-root .vmcc-payload-media .vmcc-message-file {
    margin-bottom: 7px;
}

#vm-chatcenter-root .vmcc-payload-title {
    color: #1e293b;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-payload-description {
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-payload-fields {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px dashed #cbd5e1;
}

#vm-chatcenter-root .vmcc-payload-field {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
    align-items: baseline;
    font-size: 11px;
}

#vm-chatcenter-root .vmcc-payload-field span {
    color: #64748b;
    font-weight: 800;
}

#vm-chatcenter-root .vmcc-payload-field strong {
    color: #0f172a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-payload-muted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

#vm-chatcenter-root .vmcc-message-row.incoming .vmcc-message-bubble {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    border-top-left-radius: 4px;
}

#vm-chatcenter-root .vmcc-message-row.outgoing .vmcc-message-bubble {
    background: #dce9ff;
    color: #173462;
    border-top-right-radius: 4px;
}

#vm-chatcenter-root .vmcc-message-time {
    font-size: 11px;
    color: #7b8794;
    margin-top: 5px;
    text-align: right;
}

#vm-chatcenter-root .vmcc-message-meta {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

#vm-chatcenter-root .vmcc-message-side {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-message-payload-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    font-size: 12px;
    gap: 0;
}

#vm-chatcenter-root .vmcc-message-sivertur-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    font-size: 12px;
    gap: 0;
}

#vm-chatcenter-root .vmcc-message-icon-btn,
#vm-chatcenter-root .vmcc-phone-chip {
    border: 1px solid #d6dce5;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-message-icon-btn:hover,
#vm-chatcenter-root .vmcc-phone-chip:hover {
    background: #eef2f7;
}

#vm-chatcenter-root .vmcc-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

#vm-chatcenter-root .vmcc-modal[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-modal-dialog {
    width: min(820px, 100%);
    max-height: min(78vh, 780px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d6dce5;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

#vm-chatcenter-root .vmcc-modal-dialog-form {
    width: min(700px, 100%);
}

#vm-chatcenter-root .vmcc-modal-dialog-assign {
    width: min(420px, 100%);
}

#vm-chatcenter-root .vmcc-modal-dialog-quick-replies {
    width: min(920px, 100%);
    height: min(86vh, 820px);
    max-height: min(86vh, 820px);
}

#vm-chatcenter-root .vmcc-quick-admin {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
    padding: 12px;
}

#vm-chatcenter-root .vmcc-quick-alert {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 11px;
}

#vm-chatcenter-root .vmcc-quick-alert.success {
    background: #dcfce7;
    color: #166534;
}

#vm-chatcenter-root .vmcc-quick-alert.error {
    background: #fee2e2;
    color: #991b1b;
}

#vm-chatcenter-root .vmcc-quick-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: 0 0 auto;
}

#vm-chatcenter-root .vmcc-quick-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #f8fafc;
    color: #344054;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

#vm-chatcenter-root .vmcc-quick-tab:hover {
    background: #eef4ff;
    color: #1d4ed8;
}

#vm-chatcenter-root .vmcc-quick-tab.active {
    background: #2f66e0;
    border-color: #2f66e0;
    color: #fff;
}

#vm-chatcenter-root .vmcc-quick-panel {
    min-height: 0;
}

#vm-chatcenter-root .vmcc-quick-panel[hidden] {
    display: none !important;
}

#vm-chatcenter-root .vmcc-quick-create-panel:not([hidden]) {
    flex: 1 1 auto;
    overflow-y: auto;
}

#vm-chatcenter-root .vmcc-quick-list-panel:not([hidden]) {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

#vm-chatcenter-root .vmcc-quick-create {
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    overflow: visible;
}

#vm-chatcenter-root .vmcc-quick-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f5f7fb;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

#vm-chatcenter-root .vmcc-quick-form {
    display: grid;
    grid-template-columns: minmax(180px, 240px) 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
}

#vm-chatcenter-root .vmcc-quick-form .vmcc-quick-save-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 46px;
    padding: 2px 0 0;
    overflow: visible;
}

#vm-chatcenter-root #vmccQuickSaveBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 40px;
    line-height: 1;
    padding: 0 20px;
    flex: 0 0 auto;
    overflow: visible;
}

#vm-chatcenter-root .vmcc-quick-counter {
    display: block;
    margin-top: 4px;
    color: #8a94a6;
    font-size: 12px;
    text-align: right;
}

#vm-chatcenter-root .vmcc-quick-emoji-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #f8fafc;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

#vm-chatcenter-root .vmcc-quick-emoji-item {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

#vm-chatcenter-root .vmcc-quick-emoji-item:hover {
    background: #eef2f7;
}

#vm-chatcenter-root .vmcc-quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 10px;
}

#vm-chatcenter-root .vmcc-quick-search i {
    color: #667085;
}

#vm-chatcenter-root .vmcc-quick-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
    outline: none;
}

#vm-chatcenter-root .vmcc-quick-table {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

#vm-chatcenter-root .vmcc-quick-head,
#vm-chatcenter-root .vmcc-quick-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(240px, 2fr) 96px;
    gap: 10px;
    align-items: center;
}

#vm-chatcenter-root .vmcc-quick-head {
    flex: 0 0 auto;
    background: #f5f7fb;
    border-bottom: 1px solid #e4e9f1;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 12px;
    text-transform: uppercase;
}

#vm-chatcenter-root .vmcc-quick-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#vm-chatcenter-root .vmcc-quick-row {
    border-bottom: 1px solid #f1f4f8;
    min-height: 58px;
    padding: 9px 12px;
}

#vm-chatcenter-root .vmcc-quick-row:last-child {
    border-bottom: 0;
}

#vm-chatcenter-root .vmcc-quick-command {
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-quick-message {
    color: #344054;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-quick-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-quick-icon {
    width: 30px;
    height: 30px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #fff;
    color: #2f66e0;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-quick-icon:hover {
    background: #eef4ff;
}

#vm-chatcenter-root .vmcc-quick-icon.danger {
    color: #dc2626;
}

#vm-chatcenter-root .vmcc-quick-icon.danger:hover {
    background: #fee2e2;
}

#vm-chatcenter-root .vmcc-quick-edit-input,
#vm-chatcenter-root .vmcc-quick-edit-textarea {
    width: 100%;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    color: #1f2937;
    font-size: 13px;
    outline: none;
    padding: 7px 8px;
}

#vm-chatcenter-root .vmcc-quick-edit-textarea {
    resize: vertical;
}

#vm-chatcenter-root .vmcc-quick-empty {
    color: #8a94a6;
    padding: 16px;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-assign-form {
    padding: 12px;
    display: grid;
    gap: 12px;
}

#vm-chatcenter-root .vmcc-assign-search-input {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 8px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    padding: 10px 11px;
    outline: none;
}

#vm-chatcenter-root .vmcc-assign-search-input:focus {
    border-color: #9cbcf7;
    box-shadow: 0 0 0 3px rgba(47, 102, 224, 0.14);
}

#vm-chatcenter-root .vmcc-assign-agent-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    display: grid;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-assign-agent-option {
    width: 100%;
    border: 1px solid transparent;
    background: #f8fafc;
    border-radius: 10px;
    min-height: 40px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-assign-agent-option.active {
    border-color: #9cbcf7;
    background: #eaf1ff;
}

#vm-chatcenter-root .vmcc-assign-agent-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

#vm-chatcenter-root .vmcc-assign-empty {
    padding: 8px 10px;
    color: #94a3b8;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-modal-dialog-filter {
    width: min(520px, 100%);
}

#vm-chatcenter-root .vmcc-modal-dialog-report {
    width: min(900px, 100%);
    max-height: min(86vh, 860px);
}

#vm-chatcenter-root .vmcc-report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

#vm-chatcenter-root .vmcc-report-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#vm-chatcenter-root .vmcc-report-select {
    min-width: 132px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

#vm-chatcenter-root #vmccReportEmpresaSelect {
    margin-right: auto;
}

#vm-chatcenter-root .vmcc-report-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px;
}

#vm-chatcenter-root .vmcc-report-card {
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: grid;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-report-card span {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-report-card strong {
    font-size: 34px;
    line-height: 1;
    color: #0f172a;
}

#vm-chatcenter-root .vmcc-report-card-ok {
    border-left: 5px solid #22c55e;
}

#vm-chatcenter-root .vmcc-report-card-pending {
    border-left: 5px solid #ef4444;
}

#vm-chatcenter-root .vmcc-report-table-wrap {
    border-top: 1px solid #e5e7eb;
    padding: 10px 12px 12px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

#vm-chatcenter-root .vmcc-report-head,
#vm-chatcenter-root .vmcc-report-row {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 0.9fr 1.6fr;
    gap: 10px;
    align-items: center;
}

#vm-chatcenter-root .vmcc-report-head {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    color: #334155;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-report-body {
    margin-top: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: auto;
    flex: 1;
}

#vm-chatcenter-root .vmcc-report-row {
    padding: 12px 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

#vm-chatcenter-root .vmcc-report-user {
    display: grid;
    gap: 2px;
}

#vm-chatcenter-root .vmcc-report-user strong {
    color: #0f172a;
}

#vm-chatcenter-root .vmcc-report-user small {
    color: #64748b;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-report-action {
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-report-action.assigns {
    color: #16a34a;
}

#vm-chatcenter-root .vmcc-report-action.assigned-by {
    color: #2563eb;
}

#vm-chatcenter-root .vmcc-report-total-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#vm-chatcenter-root .vmcc-report-channel {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #334155;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-report-channel img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

#vm-chatcenter-root .vmcc-report-empty {
    padding: 14px;
    color: #64748b;
    font-size: 14px;
}

#vm-chatcenter-root .vmcc-filter-modal-list {
    padding: 8px 0 10px;
}

#vm-chatcenter-root .vmcc-filter-modal-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 16px;
    font-size: 17px;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

#vm-chatcenter-root .vmcc-filter-modal-option:hover {
    background: #f8fafc;
}

#vm-chatcenter-root .vmcc-filter-modal-option.active {
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

#vm-chatcenter-root .vmcc-modal-code {
    margin: 0;
    padding: 12px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.45;
    color: #1e293b;
    background: #f8fafc;
}

#vm-chatcenter-root .vmcc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}

#vm-chatcenter-root .vmcc-field {
    display: grid;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-field span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

#vm-chatcenter-root .vmcc-field input,
#vm-chatcenter-root .vmcc-field select,
#vm-chatcenter-root .vmcc-field textarea {
    width: 100%;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    padding: 10px 11px;
    outline: none;
    font-family: inherit;
}

#vm-chatcenter-root .vmcc-field textarea {
    resize: vertical;
    min-height: 86px;
}

#vm-chatcenter-root .vmcc-field input:focus,
#vm-chatcenter-root .vmcc-field select:focus,
#vm-chatcenter-root .vmcc-field textarea:focus {
    border-color: #9cbcf7;
    box-shadow: 0 0 0 3px rgba(47, 102, 224, 0.14);
}

#vm-chatcenter-root .vmcc-field-full {
    grid-column: 1 / -1;
}

#vm-chatcenter-root .vmcc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

#vm-chatcenter-root .vmcc-btn-primary,
#vm-chatcenter-root .vmcc-btn-secondary {
    height: 36px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

#vm-chatcenter-root .vmcc-btn-primary {
    background: var(--vmcc-primary);
    color: #fff;
}

#vm-chatcenter-root .vmcc-btn-primary:hover {
    background: var(--vmcc-primary-dark);
}

#vm-chatcenter-root .vmcc-btn-secondary {
    background: #f8fafc;
    color: #334155;
    border-color: #d6dce5;
}

#vm-chatcenter-root .vmcc-btn-secondary:hover {
    background: #f1f5f9;
}

#vm-chatcenter-root .vmcc-btn-primary:disabled,
#vm-chatcenter-root .vmcc-btn-secondary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#vm-chatcenter-root .vmcc-composer-tools {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid var(--vmcc-border);
    background: #fff;
}

#vm-chatcenter-root .vmcc-emoji-panel {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid var(--vmcc-border);
    background: #fff;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

#vm-chatcenter-root .vmcc-emoji-item {
    width: 30px;
    height: 30px;
    border: 1px solid #d6dce5;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

#vm-chatcenter-root .vmcc-emoji-item:hover {
    background: #eef2f7;
}

#vm-chatcenter-root .vmcc-quick-replies-popup {
    flex: 0 0 auto;
    max-height: 240px;
    overflow-y: auto;
    border-top: 1px solid var(--vmcc-border);
    background: #fff;
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
}

#vm-chatcenter-root .vmcc-quick-popup-item {
    display: grid;
    gap: 3px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #f1f4f8;
    background: transparent;
    color: #344054;
    cursor: pointer;
    padding: 9px 12px;
    text-align: left;
}

#vm-chatcenter-root .vmcc-quick-popup-item strong {
    color: #1d4ed8;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-quick-popup-item span {
    color: #667085;
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#vm-chatcenter-root .vmcc-quick-popup-item:hover,
#vm-chatcenter-root .vmcc-quick-popup-item.active {
    background: #eef4ff;
}

#vm-chatcenter-root .vmcc-quick-popup-empty {
    color: #8a94a6;
    font-size: 13px;
    padding: 10px 12px;
}

#vm-chatcenter-root .vmcc-recording-status {
    flex: 0 0 auto;
    margin: 8px 12px 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-attachment-tray {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 12px 0;
}

#vm-chatcenter-root .vmcc-attachment-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    background: #eef2ff;
    color: #1e3a8a;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

#vm-chatcenter-root .vmcc-attachment-item.has-preview {
    border-radius: 10px;
    padding: 5px 8px 5px 5px;
}

#vm-chatcenter-root .vmcc-attachment-preview {
    width: 64px;
    height: 48px;
    border-radius: 7px;
    object-fit: cover;
    background: #fff;
}

#vm-chatcenter-root .vmcc-attachment-name {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#vm-chatcenter-root .vmcc-attachment-item .vmcc-remove-attachment {
    border: 0;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #c7d2fe;
    color: #1e3a8a;
    cursor: pointer;
    line-height: 1;
    font-size: 12px;
}

#vm-chatcenter-root .vmcc-tool-btn.recording {
    background: #fee2e2;
    color: #b91c1c;
}

#vm-chatcenter-root.vmcc-composer-disabled .vmcc-composer-tools,
#vm-chatcenter-root.vmcc-composer-disabled .vmcc-composer {
    background: #f8fafc;
}

#vm-chatcenter-root.vmcc-composer-disabled .vmcc-tool-btn,
#vm-chatcenter-root.vmcc-composer-disabled .vmcc-send-btn,
#vm-chatcenter-root.vmcc-composer-disabled .vmcc-message-input {
    opacity: 0.55;
    cursor: not-allowed;
}

#vm-chatcenter-root .vmcc-composer {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--vmcc-border);
    background: #fff;
}

#vm-chatcenter-root .vmcc-web-widget-reply {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    border: 1px solid #bfdbfe;
    border-radius: 11px;
    padding: 8px 12px;
    background: #eff6ff;
    color: #475569;
    cursor: copy;
    text-align: left;
}

#vm-chatcenter-root .vmcc-web-widget-reply[hidden] {
    display: none;
}

#vm-chatcenter-root .vmcc-web-widget-reply strong {
    color: #1d4ed8;
    font-size: 15px;
    white-space: nowrap;
}

#vm-chatcenter-root .vmcc-web-widget-copy-label {
    margin-left: auto;
    border-radius: 999px;
    padding: 3px 8px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

#vm-chatcenter-root .vmcc-web-widget-reply:hover {
    border-color: #60a5fa;
    background: #dbeafe;
}

#vm-chatcenter-root .vmcc-web-widget-reply:hover .vmcc-web-widget-copy-label,
#vm-chatcenter-root .vmcc-web-widget-reply:focus-visible .vmcc-web-widget-copy-label {
    opacity: 1;
}

#vm-chatcenter-root .vmcc-message-input {
    flex: 1;
    min-height: 42px;
    max-height: 130px;
    border: 1px solid #d6dce5;
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
    font-size: 14px;
    line-height: 20px;
    resize: none;
    overflow-y: hidden;
    font-family: inherit;
}

#vm-chatcenter-root .vmcc-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 0;
    background: var(--vmcc-primary);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

#vm-chatcenter-root .vmcc-details-panel {
    display: flex;
    flex-direction: column;
}

#vm-chatcenter-root .vmcc-details-top-actions {
    padding: 8px 10px;
    border-bottom: 1px solid var(--vmcc-border);
    justify-content: center;
}

#vm-chatcenter-root .vmcc-details-top-actions #vmccOpenHistoryBtn.active {
    background: #eaf1ff;
    color: var(--vmcc-primary);
}

#vm-chatcenter-root .vmcc-details-top-actions #vmccOpenDetailsBtn.active {
    background: #eaf1ff;
    color: var(--vmcc-primary);
}

#vm-chatcenter-root .vmcc-details-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#vm-chatcenter-root .vmcc-contact-card {
    text-align: center;
    padding: 14px 12px 10px;
    border-bottom: 1px solid var(--vmcc-border);
}

#vm-chatcenter-root .vmcc-contact-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

#vm-chatcenter-root .vmcc-contact-channel {
    color: #16a34a;
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#vm-chatcenter-root .vmcc-contact-channel.loading {
    color: #64748b;
}

#vm-chatcenter-root .vmcc-contact-phone {
    color: #94a3b8;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-contact-fields {
    padding: 10px 12px 16px;
    overflow-y: auto;
}

#vm-chatcenter-root .vmcc-field-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f1f4f8;
    font-size: 13px;
}

#vm-chatcenter-root .vmcc-field-row span {
    color: #8a94a6;
}

#vm-chatcenter-root .vmcc-field-row strong {
    color: #1f2937;
    text-align: right;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

#vm-chatcenter-root .vmcc-field-row-control {
    align-items: center;
}

#vm-chatcenter-root .vmcc-meta-select {
    width: min(170px, 100%);
    min-height: 30px;
    border: 1px solid #d7dee9;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    padding: 5px 8px;
}

#vm-chatcenter-root .vmcc-meta-select:focus {
    border-color: #2f66e0;
    box-shadow: 0 0 0 3px rgba(47, 102, 224, 0.12);
}

#vm-chatcenter-root .vmcc-meta-select:disabled {
    cursor: wait;
    opacity: 0.65;
}

#vm-chatcenter-root .vmcc-meta-empty {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-status-pill {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-status-pill.status-por-abrir {
    background: #fee2e2;
    color: #b91c1c;
}

#vm-chatcenter-root .vmcc-status-pill.status-en-curso {
    background: #dbeafe;
    color: #1d4ed8;
}

#vm-chatcenter-root .vmcc-status-pill.status-finalizado {
    background: #dcfce7;
    color: #15803d;
}

#vm-chatcenter-root .vmcc-tag-pill {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: #f3f4f6;
    color: #4b5563;
}

#vm-chatcenter-root .vmcc-detail-section {
    border-top: 1px solid var(--vmcc-border);
}

#vm-chatcenter-root .vmcc-detail-section-history {
    border-top: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

#vm-chatcenter-root .vmcc-detail-title {
    padding: 10px 12px 0;
    font-size: 12px;
    font-weight: 800;
    color: #8a94a6;
    letter-spacing: 0.8px;
}

#vm-chatcenter-root .vmcc-extra-fields {
    padding-top: 4px;
}

#vm-chatcenter-root .vmcc-history-list {
    padding: 10px 12px 16px;
    overflow-y: auto;
}

#vm-chatcenter-root .vmcc-detail-section-history .vmcc-history-list {
    flex: 1;
}

#vm-chatcenter-root .vmcc-history-item {
    display: grid;
    gap: 5px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f4f8;
    font-size: 12px;
}

#vm-chatcenter-root .vmcc-history-item strong {
    color: #1f2937;
}

#vm-chatcenter-root .vmcc-history-item .vmcc-history-agent-current {
    color: #16a34a;
}

#vm-chatcenter-root .vmcc-history-item .vmcc-history-agent-previous {
    color: #dc2626;
}

#vm-chatcenter-root .vmcc-history-order {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-history-line {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

#vm-chatcenter-root .vmcc-history-line span {
    color: #8a94a6;
    font-size: 11px;
    font-weight: 700;
}

#vm-chatcenter-root .vmcc-history-line-date small {
    color: #64748b;
    font-size: 12px;
}

#vm-chatcenter-root .vmcc-history-item span,
#vm-chatcenter-root .vmcc-history-item small,
#vm-chatcenter-root .vmcc-history-empty {
    color: #8a94a6;
}

#vm-chatcenter-root .vmcc-history-empty {
    font-size: 13px;
    padding: 4px 0;
}

#vm-chatcenter-root .vmcc-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#vm-chatcenter-root .vmcc-online-pill {
    position: absolute;
    right: -26px;
    top: 55%;
    transform: rotate(-90deg);
    z-index: 6;
    pointer-events: none;
    background: #ffffff;
    border: 2px solid #68c282;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    font-weight: 700;
}

#vm-chatcenter-root.vmcc-dark-mode {
    --vmcc-bg: #101826;
    --vmcc-panel: #172033;
    --vmcc-border: #2a374d;
    --vmcc-text: #e5edf7;
    --vmcc-muted: #9aa8bd;
    --vmcc-gray-badge: #263246;
    --vmcc-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    color: var(--vmcc-text);
}

#vm-chatcenter-root.vmcc-dark-mode * {
    scrollbar-color: rgba(148, 163, 184, 0.32) transparent;
}

#vm-chatcenter-root.vmcc-dark-mode *::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.24);
    border: 2px solid transparent;
    background-clip: padding-box;
}

#vm-chatcenter-root.vmcc-dark-mode *::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.42);
    border: 2px solid transparent;
    background-clip: padding-box;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-app,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-layout {
    background: #0f1724;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-app,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-sidebar,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-chatlist-panel,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-conversation-panel,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-details-panel,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-modal-dialog {
    background: var(--vmcc-panel);
    border-color: var(--vmcc-border);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-topbar,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-panel-header,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-header,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-modal-header,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-composer-tools,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-composer,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-section-title,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-emoji-bar,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-search,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-head,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-replies-popup {
    background: #131d2d;
    border-color: var(--vmcc-border);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-theme-toggle,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-company-btn,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-open-btn,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-icon-btn,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-tool-btn,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-tab,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-btn-secondary {
    background: #1d283a;
    border-color: #33435b;
    color: var(--vmcc-text);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-company-btn.active {
    background: var(--vmcc-orange);
    border-color: var(--vmcc-orange);
    color: #fff;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-topbar-filter-notice {
    background: #3a2418;
    border-color: #9a5a25;
    color: #fed7aa;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-bulk-assign-bar {
    background: #17243a;
    border-color: #315b99;
    color: #bfdbfe;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-search-input,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-message-input,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-field input,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-field select,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-field textarea,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-select,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-assign-search-input,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-meta-select,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-search input,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-edit-input,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-edit-textarea {
    background: #0f1724;
    border-color: #33435b;
    color: var(--vmcc-text);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-search-input::placeholder,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-message-input::placeholder,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-field textarea::placeholder,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-assign-search-input::placeholder {
    color: #74839a;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-body {
    background: #0f1724;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item {
    color: var(--vmcc-text);
    border-bottom-color: #233149;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item:hover {
    background: #1b2639;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item.active,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-item.active,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-open-btn.active,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-tab.active {
    background: #1d3153;
    color: #dbeafe;
    border-color: #4169aa;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-preview,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-time,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-title,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-detail-title,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-field-row span,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-history-empty,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-history-item span,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-history-item small {
    color: var(--vmcc-muted);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-field-row,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-history-item,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-detail-section,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-head,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-row,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-contact-card,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-create,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-table,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-row,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-emoji-bar,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-popup-item {
    border-color: var(--vmcc-border);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-emoji-item {
    background: #1d283a;
    border-color: #33435b;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-emoji-item:hover {
    background: #26344a;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-field-row strong,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-history-item strong,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-user-name,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-name,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-contact-phone,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-modal-header strong,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-section-title,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-message,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-popup-item {
    color: var(--vmcc-text);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-popup-item:hover,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-popup-item.active,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-icon:hover {
    background: #1d3153;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-icon {
    background: #1d283a;
    border-color: #33435b;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-popup-item span,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-empty,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-popup-empty,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-quick-head {
    color: var(--vmcc-muted);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-item {
    color: #c8d3e3;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-agent-search-input {
    background: #111827;
    border-color: #33435b;
    color: var(--vmcc-text);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-agent-search-input:focus {
    border-color: #5b7fd1;
    box-shadow: 0 0 0 3px rgba(91, 127, 209, 0.16);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-agent-search-input::placeholder,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-agent-filter-search i {
    color: var(--vmcc-muted);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-item:hover {
    background: #1b2639;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-badge,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-tag-pill,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-badge {
    background: #263246;
    color: #c7d2e3;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-list-state,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-empty-chat,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-loading-state,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-details-empty {
    color: var(--vmcc-muted);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-details-empty {
    background: #172235;
    border-color: #33435b;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-api-notice {
    background: #162b4e;
    color: #bfdbfe;
    border-color: #315b99;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-online-pill {
    background: #172033;
    color: var(--vmcc-text);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-payload-card {
    background: #172033;
    border-color: #29364c;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-message-row.outgoing .vmcc-payload-card {
    background: rgba(15, 23, 42, 0.38);
    border-color: rgba(148, 163, 184, 0.28);
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-payload-title,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-payload-field strong {
    color: #e5edf8;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-payload-description,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-payload-muted {
    color: #aebbd0;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-payload-fields {
    border-top-color: #334155;
}

@media (max-width: 1400px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-columns: 180px 280px 1fr 230px;
    }
}

@media (max-width: 1200px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-columns: 180px 280px 1fr;
    }

    #vm-chatcenter-root .vmcc-details-panel {
        display: none;
    }
}

@media (max-width: 900px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(72px, 24%) minmax(0, 1fr);
    }

    #vm-chatcenter-root .vmcc-sidebar {
        display: none;
    }

    #vm-chatcenter-root .vmcc-sidebar,
    #vm-chatcenter-root .vmcc-chatlist-panel,
    #vm-chatcenter-root .vmcc-conversation-panel {
        min-height: 0;
    }

    #vm-chatcenter-root .vmcc-online-pill {
        display: none;
    }

    #vm-chatcenter-root .vmcc-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    #vm-chatcenter-root .vmcc-topbar-left,
    #vm-chatcenter-root .vmcc-topbar-right {
        flex-wrap: wrap;
    }

    #vm-chatcenter-root .vmcc-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (hover: none) and (pointer: coarse) and (max-width: 1100px) {
    #vm-chatcenter-root .vmcc-online-pill {
        display: none;
    }
}

@media (max-width: 900px) and (max-height: 480px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-rows: minmax(0, 1fr);
    }

    #vm-chatcenter-root .vmcc-chatlist-panel {
        display: none;
    }
}



/* ======================================================
   LISTA DE CHATS - LIMPIO / COMPACTO
   Mismo tamaño, mejor distribución visual
====================================================== */

/* Mantener layout original */
#vm-chatcenter-root .vmcc-layout {
    grid-template-columns: 190px 300px 1fr 245px !important;
}

/* Lista limpia */
#vm-chatcenter-root .vmcc-chatlist {
    background: #ffffff !important;
    padding: 0 !important;
    overscroll-behavior: contain !important;
    scroll-behavior: auto !important;
    transform: translateZ(0) !important;
    will-change: scroll-position !important;
}

/* Item compacto */
#vm-chatcenter-root .vmcc-chat-item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 30px !important;
    gap: 9px !important;
    align-items: flex-start !important;

    padding: 10px 9px !important;
    margin: 0 !important;
    min-height: 76px !important;

    background: #ffffff !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    border-bottom: 1px solid #edf1f5 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    contain: layout paint style !important;
    content-visibility: auto !important;
    contain-intrinsic-size: 76px !important;
}

#vm-chatcenter-root .vmcc-chat-select {
    width: 13px !important;
    height: 13px !important;
    padding: 0 !important;
    align-self: flex-end !important;
}

#vm-chatcenter-root .vmcc-chat-select-input {
    width: 12px !important;
    height: 12px !important;
}

#vm-chatcenter-root .vmcc-chat-item:hover {
    background: #f8fafc !important;
}

#vm-chatcenter-root .vmcc-chat-item.selected {
    background: #f8fbff !important;
}

#vm-chatcenter-root .vmcc-chat-item.active {
    background: #eef4ff !important;
    border-left-color: var(--vmcc-primary) !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chatlist {
    background: var(--vmcc-panel) !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item {
    background: var(--vmcc-panel) !important;
    border-bottom-color: #233149 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item:hover {
    background: #1b2639 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item.selected {
    background: #17243a !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-item.active {
    background: #1d3153 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-preview {
    color: #cbd5e1 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-chat-time {
    color: #aebbd0 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-user strong,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-row strong {
    color: #e2e8f0 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-user small,
#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-channel {
    color: #aebbd0 !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-report-row {
    color: #d8e1ee !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-modal-option {
    color: #d8e1ee !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-modal-option:hover {
    background: #1b2639 !important;
    color: #f8fafc !important;
}

#vm-chatcenter-root.vmcc-dark-mode .vmcc-filter-modal-option.active {
    background: #f5efe7 !important;
    color: #9a3412 !important;
}

/* Avatar normal */
#vm-chatcenter-root .vmcc-chat-avatar-wrap {
    width: 42px !important;
    height: 42px !important;
}

#vm-chatcenter-root .vmcc-chat-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Contenido principal */
#vm-chatcenter-root .vmcc-chat-main {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
        "top"
        "preview"
        "badges" !important;
    gap: 3px !important;
}

/* Nombre y hora juntos, pero ordenados */
#vm-chatcenter-root .vmcc-chat-top {
    grid-area: top !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    margin: 0 !important;
}

/* Nombre */
#vm-chatcenter-root .vmcc-chat-name {
    width: 100% !important;
    display: block !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #f97316 !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Fecha y hora debajo del nombre */
#vm-chatcenter-root .vmcc-chat-time {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #7b8794 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

/* Mensaje compacto en una línea */
#vm-chatcenter-root .vmcc-chat-preview {
    grid-area: preview !important;

    font-size: 13px !important;
    color: #334155 !important;
    line-height: 1.25 !important;

    display: block !important;
    max-height: none !important;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Badges compactos */
#vm-chatcenter-root .vmcc-chat-badges {
    grid-area: badges !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin-top: 1px !important;
    overflow: hidden !important;
}

#vm-chatcenter-root .vmcc-badge {
    padding: 2px 6px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

#vm-chatcenter-root .vmcc-company-badge {
    border: 1px solid transparent !important;
}

#vm-chatcenter-root .vmcc-company-badge.company-infoboletos {
    background: #e0f2fe !important;
    color: #075985 !important;
    border-color: #7dd3fc !important;
}

#vm-chatcenter-root .vmcc-company-badge.company-viajesmargarita {
    background: #ffedd5 !important;
    color: #9a3412 !important;
    border-color: #fdba74 !important;
}

/* Columna derecha */
#vm-chatcenter-root .vmcc-chat-meta {
    grid-column: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    min-width: 24px !important;
}

/* No leídos como el ejemplo */
#vm-chatcenter-root .vmcc-unread {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* Icono canal compacto */
#vm-chatcenter-root .vmcc-channel-icon {
    width: 18px !important;
    height: 18px !important;
    box-shadow: none !important;
}

#vm-chatcenter-root .vmcc-channel-icon i {
    font-size: 13px !important;
}

/* Agente asignado compacto */
#vm-chatcenter-root .vmcc-agent-avatar {
    width: 21px !important;
    height: 21px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

/* Si hay agente encima del avatar */
#vm-chatcenter-root .vmcc-agent-avatar-overlay {
    left: -5px !important;
    bottom: -5px !important;
}

/* Quitar bandera bloqueado de encima si estorba */
#vm-chatcenter-root .vmcc-chat-blocked-flag {
    left: 6px !important;
    bottom: 4px !important;
    font-size: 9px !important;
    padding: 1px 5px !important;
}

/* Responsive original */
@media (max-width: 1400px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-columns: 180px 280px 1fr 230px !important;
    }
}

@media (max-width: 1200px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-columns: 180px 280px 1fr !important;
    }
}

@media (max-width: 900px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(72px, 24%) minmax(0, 1fr) !important;
    }

    #vm-chatcenter-root .vmcc-chat-item {
        grid-template-columns: 42px minmax(0, 1fr) 28px !important;
    }

    #vm-chatcenter-root .vmcc-quick-form,
    #vm-chatcenter-root .vmcc-quick-head,
    #vm-chatcenter-root .vmcc-quick-row {
        grid-template-columns: 1fr !important;
    }

    #vm-chatcenter-root .vmcc-quick-actions {
        justify-content: flex-start !important;
    }
}

@media (max-width: 900px) and (max-height: 480px) {
    #vm-chatcenter-root .vmcc-layout {
        grid-template-rows: minmax(0, 1fr) !important;
    }

    #vm-chatcenter-root .vmcc-chatlist-panel {
        display: none !important;
    }
}

@media (hover: none) and (pointer: coarse) and (max-width: 576px) {
    #vm-chatcenter-root .vmcc-conversation-panel {
        padding-bottom: max(58px, env(safe-area-inset-bottom));
    }
}
