/* /Components/Chat/ChatHistory.razor.rz.scp.css */
.chat-sidebar[b-mvc8628cns] {
    width: 280px;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

[b-mvc8628cns] .sidebar-title {
    color: #4CAF50 !important;
    font-weight: 600 !important;
    text-align: center;
    margin-bottom: 20px !important;
}

.chat-history-list[b-mvc8628cns] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loading-history[b-mvc8628cns], .empty-history[b-mvc8628cns] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #999;
}

.chat-history-item[b-mvc8628cns] {
    background-color: #e8f5e9;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-history-item:hover[b-mvc8628cns] {
    background-color: #c8e6c9;
}

.chat-history-item.selected[b-mvc8628cns] {
    background-color: #1565C0;
}

.chat-history-item.selected[b-mvc8628cns]  .chat-item-title,
.chat-history-item.selected[b-mvc8628cns]  .chat-item-code,
.chat-history-item.selected[b-mvc8628cns]  .chat-item-date {
    color: #fff !important;
}

.chat-item-header[b-mvc8628cns] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

[b-mvc8628cns] .chat-item-title {
    color: #1B5E20 !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.unread-badge[b-mvc8628cns] {
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 4px;
}

.chat-item-meta[b-mvc8628cns] {
    display: flex;
    justify-content: space-between;
}

[b-mvc8628cns] .chat-item-code {
    color: #2E7D32 !important;
    font-size: 11px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

[b-mvc8628cns] .chat-item-date {
    color: #2E7D32 !important;
}

.new-chat-button[b-mvc8628cns] {
    margin-top: 16px;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

/* Responsive - Mobile */
@media (max-width: 599.98px) {
    .chat-sidebar[b-mvc8628cns] {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        max-height: 200px;
        padding: 12px;
    }

    [b-mvc8628cns] .sidebar-title {
        margin-bottom: 8px !important;
        font-size: 0.9rem !important;
    }

    .chat-history-list[b-mvc8628cns] {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .chat-history-item[b-mvc8628cns] {
        min-width: 160px;
        flex-shrink: 0;
        padding: 8px 10px;
    }

    .new-chat-button[b-mvc8628cns] {
        margin-top: 8px;
    }
}
/* /Components/Shared/FileDropZone.razor.rz.scp.css */
.file-drop-zone-container[b-xjgdht9ves] {
    position: relative;
    width: 100%;
}

.file-drop-zone-input[b-xjgdht9ves] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.file-drop-zone[b-xjgdht9ves] {
    border: 2px dashed #ccc !important;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    pointer-events: none;
}

.file-drop-zone:hover[b-xjgdht9ves] {
    border-color: #4CAF50 !important;
}

.file-drop-zone-active[b-xjgdht9ves] {
    border-color: #4CAF50 !important;
    background-color: #E8F5E9 !important;
}

.file-drop-zone-error[b-xjgdht9ves] {
    border-color: #f44336 !important;
    background-color: #FFEBEE !important;
}

.text-muted[b-xjgdht9ves] {
    color: #666;
}

.text-error[b-xjgdht9ves] {
    color: #f44336;
}

[b-xjgdht9ves] .file-list-table {
    background-color: #fff;
}

[b-xjgdht9ves] .file-list-table th {
    background-color: #f5f5f5 !important;
    font-size: 0.8rem !important;
    color: #666 !important;
}
/* /Components/Shared/PdfViewer.razor.rz.scp.css */
.pdf-viewer-container[b-e7horq4itv] {
    display: flex;
    flex-direction: column;
    height: 70vh;
    background-color: #525659;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-toolbar[b-e7horq4itv] {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #323639;
    border-bottom: 1px solid #404040;
}

.toolbar-group[b-e7horq4itv] {
    display: flex;
    align-items: center;
    gap: 4px;
}

[b-e7horq4itv] .toolbar-btn {
    color: #fff !important;
}

[b-e7horq4itv] .toolbar-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

[b-e7horq4itv] .toolbar-btn:disabled {
    color: #666 !important;
}

.zoom-text[b-e7horq4itv] {
    color: #fff;
    min-width: 50px;
    text-align: center;
}

.pdf-content[b-e7horq4itv] {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.pdf-page-placeholder[b-e7horq4itv] {
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

.pdf-page-placeholder.error[b-e7horq4itv] {
    background-color: #fff5f5;
}

.pdf-iframe[b-e7horq4itv] {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}

.text-muted[b-e7horq4itv] {
    color: #999 !important;
}

.gap-2[b-e7horq4itv] {
    gap: 8px;
}

.w-100[b-e7horq4itv] {
    width: 100%;
}
/* /Layout/MainLayout.razor.rz.scp.css */
/* Header - Sin sombra para unirse con sidebar */
.app-header[b-ei24u21spw] {
    background-color: #FFFFFF !important;
    color: #424242 !important;
    box-shadow: none !important;
}

[b-ei24u21spw] .app-header .mud-toolbar {
    background-color: #FFFFFF;
}

.drawer-toggle-btn[b-ei24u21spw] {
    color: #424242 !important;
}

/* Sidebar Drawer - Altura completa, sin sombra */
[b-ei24u21spw] .sidebar-drawer {
    background-color: #FFFFFF;
    border-right: 1px solid #E0E0E0;
    height: 100vh !important;
    top: 0 !important;
    box-shadow: none !important;
}

[b-ei24u21spw] .sidebar-drawer .mud-drawer-content {
    background-color: #FFFFFF;
    height: 100%;
}

[b-ei24u21spw] .mud-drawer {
    height: 100vh !important;
}

.sidebar-content[b-ei24u21spw] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 8px;
}

/* Sección Usuario - Layout horizontal compacto */
.user-section[b-ei24u21spw] {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 0;
    gap: 10px;
}

.icon-container[b-ei24u21spw] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info[b-ei24u21spw] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.user-name[b-ei24u21spw] {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role[b-ei24u21spw] {
    color: #9E9E9E;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Contenedor del Menú de Navegación */
.nav-menu-container[b-ei24u21spw] {
    margin-top: 16px;
}

/* Menú de Navegación */
.nav-menu[b-ei24u21spw] {
    padding: 0;
}

[b-ei24u21spw] .nav-menu .mud-nav-link {
    padding: 8px 12px;
    margin: 1px 4px;
    border-radius: 6px;
    color: #424242;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

[b-ei24u21spw] .nav-menu .mud-nav-link:hover {
    background-color: #E8F5E9;
}

[b-ei24u21spw] .nav-menu .mud-nav-link.active {
    background-color: #E8F5E9;
    color: #4CAF50;
}

[b-ei24u21spw] .nav-menu .mud-nav-link .mud-nav-link-text {
    font-size: 0.85rem;
}

/* Espaciador */
.spacer[b-ei24u21spw] {
    flex: 1;
}

/* Sección Logout */
.logout-section[b-ei24u21spw] {
    padding: 12px 8px;
    border-top: 1px solid #E0E0E0;
}

.logout-button[b-ei24u21spw] {
    justify-content: flex-start;
    text-transform: none;
    font-weight: 500;
}

[b-ei24u21spw] .logout-button .mud-button-label {
    color: #F44336;
}

/* Contenido Principal */
.main-content[b-ei24u21spw] {
    background-color: #F5F5F5;
    min-height: 100vh;
    padding-top: 64px;
}

/* Layout ajustes */
[b-ei24u21spw] .mud-layout {
    min-height: 100vh;
}

[b-ei24u21spw] .mud-main-content {
    min-height: 100vh;
}

/* Responsive - Tablet */
@media (max-width: 959.98px) {
    [b-ei24u21spw] .sidebar-drawer {
        position: fixed;
        z-index: 1200;
    }

    .user-section[b-ei24u21spw] {
        padding: 6px;
    }

    .user-name[b-ei24u21spw] {
        font-size: 0.8rem;
    }

    .main-content[b-ei24u21spw] {
        padding-top: 56px;
    }
}

/* Responsive - Mobile */
@media (max-width: 599.98px) {
    .sidebar-content[b-ei24u21spw] {
        padding: 4px;
    }

    .user-section[b-ei24u21spw] {
        padding: 4px 6px;
        gap: 8px;
    }

    .user-name[b-ei24u21spw] {
        font-size: 0.75rem;
    }

    .user-role[b-ei24u21spw] {
        font-size: 0.6rem;
    }

    [b-ei24u21spw] .nav-menu .mud-nav-link {
        padding: 6px 10px;
        margin: 1px 2px;
    }

    [b-ei24u21spw] .nav-menu .mud-nav-link .mud-nav-link-text {
        font-size: 0.8rem;
    }

    .logout-section[b-ei24u21spw] {
        padding: 8px 4px;
    }

    .main-content[b-ei24u21spw] {
        padding-top: 48px;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-pscr3g9tpo] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-pscr3g9tpo] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-pscr3g9tpo] {
    font-size: 1.1rem;
}

.bi[b-pscr3g9tpo] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-pscr3g9tpo] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-pscr3g9tpo] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-pscr3g9tpo] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-pscr3g9tpo] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-pscr3g9tpo] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-pscr3g9tpo] {
        padding-bottom: 1rem;
    }

    .nav-item[b-pscr3g9tpo]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-pscr3g9tpo]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-pscr3g9tpo]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-pscr3g9tpo] {
        display: none;
    }

    .collapse[b-pscr3g9tpo] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-pscr3g9tpo] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Pages/Chat.razor.rz.scp.css */
.chat-container[b-pmm0lk3k3c] {
    display: flex;
    height: calc(100vh - 64px);
    background-color: #fff;
}

.chat-main[b-pmm0lk3k3c] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    overflow: hidden;
}

.chat-header[b-pmm0lk3k3c] {
    text-align: center;
    margin-bottom: 30px;
}

[b-pmm0lk3k3c] .greeting-text {
    color: #4CAF50 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

[b-pmm0lk3k3c] .subtitle-text {
    color: #666 !important;
}

.selectors-row[b-pmm0lk3k3c] {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

[b-pmm0lk3k3c] .new-chat-selector-button {
    height: 48px;
    border-radius: 12px;
    text-transform: none;
    font-weight: 600;
    white-space: nowrap;
}

.selector-card[b-pmm0lk3k3c] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-width: 200px;
    transition: all 0.2s ease;
}

.selector-card.selector-disabled[b-pmm0lk3k3c] {
    opacity: 0.6;
    background-color: #f5f5f5;
}

[b-pmm0lk3k3c] .pdf-viewer-button {
    align-self: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
}

[b-pmm0lk3k3c] .selector-icon {
    color: #4CAF50 !important;
    font-size: 28px !important;
}

.selector-content[b-pmm0lk3k3c] {
    flex: 1;
}

[b-pmm0lk3k3c] .selector-label {
    color: #999 !important;
    font-size: 11px !important;
    text-transform: uppercase;
}

.selector-input[b-pmm0lk3k3c] {
    margin-top: -8px !important;
}

[b-pmm0lk3k3c] .selector-input .mud-input-slot {
    font-size: 14px !important;
    color: #333 !important;
}

.chat-messages[b-pmm0lk3k3c] {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.messages-wrapper[b-pmm0lk3k3c] {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-state[b-pmm0lk3k3c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-icon[b-pmm0lk3k3c] {
    font-size: 64px !important;
    color: #e0e0e0 !important;
    margin-bottom: 16px;
}

.empty-title[b-pmm0lk3k3c] {
    color: #666 !important;
    margin-bottom: 8px !important;
}

.empty-subtitle[b-pmm0lk3k3c] {
    color: #999 !important;
    text-align: center;
}

.message-row[b-pmm0lk3k3c] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 85%;
}

.message-row-user[b-pmm0lk3k3c] {
    align-self: flex-end;
    flex-direction: row;
}

.message-row-assistant[b-pmm0lk3k3c] {
    align-self: flex-start;
    flex-direction: row;
}

.message-avatar[b-pmm0lk3k3c] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assistant-avatar[b-pmm0lk3k3c] {
    background-color: #4CAF50;
    color: white;
}

.user-avatar[b-pmm0lk3k3c] {
    background-color: #1976D2;
    color: white;
}

.agent-avatar[b-pmm0lk3k3c] {
    background-color: #FF9800;
    color: white;
}

.message-content[b-pmm0lk3k3c] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.message-bubble[b-pmm0lk3k3c] {
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-bubble[b-pmm0lk3k3c] {
    background-color: #1976D2;
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.assistant-bubble[b-pmm0lk3k3c] {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 16px 16px 16px 4px;
}

.agent-bubble[b-pmm0lk3k3c] {
    background-color: #FFF3E0;
    border: 1px solid #FFE0B2;
    color: #E65100;
    border-radius: 16px 16px 16px 4px;
}

.agent-bubble .markdown-content[b-pmm0lk3k3c],
.agent-bubble .markdown-content p[b-pmm0lk3k3c],
.agent-bubble .markdown-content li[b-pmm0lk3k3c],
.agent-bubble .markdown-content h1[b-pmm0lk3k3c],
.agent-bubble .markdown-content h2[b-pmm0lk3k3c],
.agent-bubble .markdown-content h3[b-pmm0lk3k3c],
.agent-bubble .markdown-content h4[b-pmm0lk3k3c],
.agent-bubble .markdown-content h5[b-pmm0lk3k3c],
.agent-bubble .markdown-content h6[b-pmm0lk3k3c] {
    color: #E65100;
}

.typing-indicator[b-pmm0lk3k3c] {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.message-meta[b-pmm0lk3k3c] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0 4px;
}

.meta-left[b-pmm0lk3k3c] {
    justify-content: flex-start;
}

.meta-right[b-pmm0lk3k3c] {
    justify-content: flex-end;
}

[b-pmm0lk3k3c] .message-meta .mud-typography {
    color: #999 !important;
    font-size: 11px !important;
}

.chat-input-container[b-pmm0lk3k3c] {
    padding: 20px 0;
}

.chat-input-wrapper[b-pmm0lk3k3c] {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 8px 8px 8px 24px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.chat-input-wrapper.input-disabled[b-pmm0lk3k3c] {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.chat-input[b-pmm0lk3k3c] {
    flex: 1;
}

[b-pmm0lk3k3c] .chat-input .mud-input-slot {
    font-size: 16px !important;
}

[b-pmm0lk3k3c] .chat-input .mud-input-underline:before,
[b-pmm0lk3k3c] .chat-input .mud-input-underline:after {
    display: none !important;
}

[b-pmm0lk3k3c] .send-button {
    background-color: #4CAF50 !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
}

[b-pmm0lk3k3c] .send-button:hover {
    background-color: #43A047 !important;
}

[b-pmm0lk3k3c] .send-button:disabled {
    background-color: #c8e6c9 !important;
}

/* Markdown Content Styles */
.markdown-content[b-pmm0lk3k3c] {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.markdown-content p[b-pmm0lk3k3c] {
    margin: 0 0 12px 0;
}

.markdown-content p:last-child[b-pmm0lk3k3c] {
    margin-bottom: 0;
}

.markdown-content strong[b-pmm0lk3k3c] {
    font-weight: 600;
}

.markdown-content em[b-pmm0lk3k3c] {
    font-style: italic;
}

.markdown-content ul[b-pmm0lk3k3c], .markdown-content ol[b-pmm0lk3k3c] {
    margin: 8px 0;
    padding-left: 24px;
}

.markdown-content li[b-pmm0lk3k3c] {
    margin: 4px 0;
}

.markdown-content code[b-pmm0lk3k3c] {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.markdown-content pre[b-pmm0lk3k3c] {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.markdown-content pre code[b-pmm0lk3k3c] {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.markdown-content h1[b-pmm0lk3k3c], .markdown-content h2[b-pmm0lk3k3c], .markdown-content h3[b-pmm0lk3k3c],
.markdown-content h4[b-pmm0lk3k3c], .markdown-content h5[b-pmm0lk3k3c], .markdown-content h6[b-pmm0lk3k3c] {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: #333;
}

.markdown-content h1[b-pmm0lk3k3c] { font-size: 1.5em; }
.markdown-content h2[b-pmm0lk3k3c] { font-size: 1.3em; }
.markdown-content h3[b-pmm0lk3k3c] { font-size: 1.1em; }

.markdown-content blockquote[b-pmm0lk3k3c] {
    border-left: 4px solid #4CAF50;
    margin: 12px 0;
    padding: 8px 16px;
    background-color: rgba(76, 175, 80, 0.1);
}

.markdown-content a[b-pmm0lk3k3c] {
    color: #1976D2;
    text-decoration: none;
}

.markdown-content a:hover[b-pmm0lk3k3c] {
    text-decoration: underline;
}

.markdown-content table[b-pmm0lk3k3c] {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

.markdown-content th[b-pmm0lk3k3c], .markdown-content td[b-pmm0lk3k3c] {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.markdown-content th[b-pmm0lk3k3c] {
    background-color: #f5f5f5;
    font-weight: 600;
}

.markdown-content hr[b-pmm0lk3k3c] {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}

/* Escalate Button */
[b-pmm0lk3k3c] .escalate-button {
    color: #FF9800 !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 4px;
}

[b-pmm0lk3k3c] .escalate-button:hover {
    background-color: rgba(255, 152, 0, 0.1) !important;
}

[b-pmm0lk3k3c] .escalate-button:disabled {
    color: #ccc !important;
}

/* Escalated Banner */
.escalated-banner[b-pmm0lk3k3c] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 8px;
}

.escalated-banner.waiting-agent[b-pmm0lk3k3c] {
    background-color: #FFF3E0;
    border: 1px solid #FFE0B2;
    color: #E65100;
}

.escalated-banner.agent-joined[b-pmm0lk3k3c] {
    background-color: #E8F5E9;
    border: 1px solid #C8E6C9;
    color: #2E7D32;
}

[b-pmm0lk3k3c] .escalated-banner.waiting-agent .mud-icon-root {
    color: #FF9800 !important;
}

[b-pmm0lk3k3c] .escalated-banner.agent-joined .mud-icon-root {
    color: #4CAF50 !important;
}

/* Responsive - Tablet */
@media (max-width: 959.98px) {
    .chat-main[b-pmm0lk3k3c] {
        padding: 16px 20px;
    }

    .selectors-row[b-pmm0lk3k3c] {
        flex-wrap: wrap;
        gap: 12px;
    }

    .selector-card[b-pmm0lk3k3c] {
        min-width: 180px;
        flex: 1 1 auto;
    }

    .chat-messages[b-pmm0lk3k3c] {
        padding: 16px 20px;
    }

    .chat-header[b-pmm0lk3k3c] {
        margin-bottom: 20px;
    }

    .message-row[b-pmm0lk3k3c] {
        max-width: 90%;
    }
}

/* Responsive - Mobile */
@media (max-width: 599.98px) {
    .chat-container[b-pmm0lk3k3c] {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 48px);
    }

    .chat-main[b-pmm0lk3k3c] {
        padding: 12px;
    }

    .chat-header[b-pmm0lk3k3c] {
        margin-bottom: 16px;
    }

    [b-pmm0lk3k3c] .greeting-text {
        font-size: 1.5rem !important;
    }

    .selectors-row[b-pmm0lk3k3c] {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .selector-card[b-pmm0lk3k3c] {
        min-width: unset;
        width: 100%;
        padding: 10px 14px;
        gap: 8px;
    }

    .chat-messages[b-pmm0lk3k3c] {
        padding: 10px 8px;
    }

    .message-row[b-pmm0lk3k3c] {
        max-width: 95%;
        gap: 8px;
    }

    .message-avatar[b-pmm0lk3k3c] {
        width: 30px;
        height: 30px;
    }

    .message-bubble[b-pmm0lk3k3c] {
        padding: 10px 14px;
    }

    .chat-input-wrapper[b-pmm0lk3k3c] {
        padding: 6px 6px 6px 16px;
    }

    [b-pmm0lk3k3c] .send-button {
        width: 40px !important;
        height: 40px !important;
    }

    .markdown-content[b-pmm0lk3k3c] {
        font-size: 13px;
    }
}
/* /Pages/ChatBH.razor.rz.scp.css */
.chat-container[b-o43l8hp1s4] {
    display: flex;
    height: calc(100vh - 64px);
    background-color: #fff;
}

.chat-main[b-o43l8hp1s4] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    overflow: hidden;
}

.chat-header[b-o43l8hp1s4] {
    text-align: center;
    margin-bottom: 30px;
}

[b-o43l8hp1s4] .greeting-text {
    color: #4CAF50 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

[b-o43l8hp1s4] .subtitle-text {
    color: #666 !important;
}

.chat-messages[b-o43l8hp1s4] {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.messages-wrapper[b-o43l8hp1s4] {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.empty-state[b-o43l8hp1s4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
}

.empty-icon[b-o43l8hp1s4] {
    font-size: 64px !important;
    color: #e0e0e0 !important;
    margin-bottom: 16px;
}

.empty-title[b-o43l8hp1s4] {
    color: #666 !important;
    margin-bottom: 8px !important;
}

.empty-subtitle[b-o43l8hp1s4] {
    color: #999 !important;
    text-align: center;
}

.message-row[b-o43l8hp1s4] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 85%;
}

.message-row-user[b-o43l8hp1s4] {
    align-self: flex-end;
    flex-direction: row;
}

.message-row-assistant[b-o43l8hp1s4] {
    align-self: flex-start;
    flex-direction: row;
}

.message-avatar[b-o43l8hp1s4] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.assistant-avatar[b-o43l8hp1s4] {
    background-color: #4CAF50;
    color: white;
}

.user-avatar[b-o43l8hp1s4] {
    background-color: #1976D2;
    color: white;
}

.message-content[b-o43l8hp1s4] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.message-bubble[b-o43l8hp1s4] {
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-bubble[b-o43l8hp1s4] {
    background-color: #1976D2;
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.assistant-bubble[b-o43l8hp1s4] {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 16px 16px 16px 4px;
}

.typing-indicator[b-o43l8hp1s4] {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.message-meta[b-o43l8hp1s4] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0 4px;
}

.meta-left[b-o43l8hp1s4] {
    justify-content: flex-start;
}

.meta-right[b-o43l8hp1s4] {
    justify-content: flex-end;
}

[b-o43l8hp1s4] .message-meta .mud-typography {
    color: #999 !important;
    font-size: 11px !important;
}

/* Input Area */
.chat-input-container[b-o43l8hp1s4] {
    padding: 20px 0;
}

.file-chips-container[b-o43l8hp1s4] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
}

[b-o43l8hp1s4] .file-chip {
    font-size: 12px !important;
}

.chat-input-wrapper[b-o43l8hp1s4] {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 8px 8px 8px 24px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.chat-input[b-o43l8hp1s4] {
    flex: 1;
}

[b-o43l8hp1s4] .chat-input .mud-input-slot {
    font-size: 16px !important;
}

[b-o43l8hp1s4] .chat-input .mud-input-underline:before,
[b-o43l8hp1s4] .chat-input .mud-input-underline:after {
    display: none !important;
}

[b-o43l8hp1s4] .attach-button {
    color: #666 !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 4px;
}

[b-o43l8hp1s4] .attach-button:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

[b-o43l8hp1s4] .file-upload-wrapper {
    display: flex;
    align-items: center;
}

[b-o43l8hp1s4] .file-upload-input {
    display: none;
}

[b-o43l8hp1s4] .send-button {
    background-color: #4CAF50 !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
}

[b-o43l8hp1s4] .send-button:hover {
    background-color: #43A047 !important;
}

[b-o43l8hp1s4] .send-button:disabled {
    background-color: #c8e6c9 !important;
}

/* Markdown Content Styles */
.markdown-content[b-o43l8hp1s4] {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.markdown-content p[b-o43l8hp1s4] {
    margin: 0 0 12px 0;
}

.markdown-content p:last-child[b-o43l8hp1s4] {
    margin-bottom: 0;
}

.markdown-content strong[b-o43l8hp1s4] {
    font-weight: 600;
}

.markdown-content em[b-o43l8hp1s4] {
    font-style: italic;
}

.markdown-content ul[b-o43l8hp1s4], .markdown-content ol[b-o43l8hp1s4] {
    margin: 8px 0;
    padding-left: 24px;
}

.markdown-content li[b-o43l8hp1s4] {
    margin: 4px 0;
}

.markdown-content code[b-o43l8hp1s4] {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.markdown-content pre[b-o43l8hp1s4] {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.markdown-content pre code[b-o43l8hp1s4] {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.markdown-content h1[b-o43l8hp1s4], .markdown-content h2[b-o43l8hp1s4], .markdown-content h3[b-o43l8hp1s4],
.markdown-content h4[b-o43l8hp1s4], .markdown-content h5[b-o43l8hp1s4], .markdown-content h6[b-o43l8hp1s4] {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: #333;
}

.markdown-content h1[b-o43l8hp1s4] { font-size: 1.5em; }
.markdown-content h2[b-o43l8hp1s4] { font-size: 1.3em; }
.markdown-content h3[b-o43l8hp1s4] { font-size: 1.1em; }

.markdown-content blockquote[b-o43l8hp1s4] {
    border-left: 4px solid #4CAF50;
    margin: 12px 0;
    padding: 8px 16px;
    background-color: rgba(76, 175, 80, 0.1);
}

.markdown-content a[b-o43l8hp1s4] {
    color: #1976D2;
    text-decoration: none;
}

.markdown-content a:hover[b-o43l8hp1s4] {
    text-decoration: underline;
}

.markdown-content table[b-o43l8hp1s4] {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

.markdown-content th[b-o43l8hp1s4], .markdown-content td[b-o43l8hp1s4] {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.markdown-content th[b-o43l8hp1s4] {
    background-color: #f5f5f5;
    font-weight: 600;
}

.markdown-content hr[b-o43l8hp1s4] {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}

/* Sidebar - Chat History */
.chat-sidebar[b-o43l8hp1s4] {
    width: 280px;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

[b-o43l8hp1s4] .sidebar-title {
    color: #4CAF50 !important;
    font-weight: 600 !important;
    text-align: center;
    margin-bottom: 20px !important;
}

.chat-history-list[b-o43l8hp1s4] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loading-history[b-o43l8hp1s4], .empty-history[b-o43l8hp1s4] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #999;
}

.chat-history-item[b-o43l8hp1s4] {
    background-color: #e8f5e9;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-history-item:hover[b-o43l8hp1s4] {
    background-color: #c8e6c9;
}

.chat-history-item.selected[b-o43l8hp1s4] {
    background-color: #1565C0;
}

.chat-history-item.selected[b-o43l8hp1s4]  .chat-item-title,
.chat-history-item.selected[b-o43l8hp1s4]  .chat-item-date {
    color: #fff !important;
}

.chat-item-header[b-o43l8hp1s4] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

[b-o43l8hp1s4] .chat-item-title {
    color: #1B5E20 !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.chat-item-meta[b-o43l8hp1s4] {
    display: flex;
    justify-content: flex-end;
}

[b-o43l8hp1s4] .chat-item-date {
    color: #2E7D32 !important;
}

.new-chat-button[b-o43l8hp1s4] {
    margin-top: 16px;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

/* Responsive - Tablet */
@media (max-width: 959.98px) {
    .chat-main[b-o43l8hp1s4] {
        padding: 16px 20px;
    }

    .chat-messages[b-o43l8hp1s4] {
        padding: 16px 20px;
    }

    .chat-header[b-o43l8hp1s4] {
        margin-bottom: 20px;
    }

    .message-row[b-o43l8hp1s4] {
        max-width: 90%;
    }
}

/* Responsive - Mobile */
@media (max-width: 599.98px) {
    .chat-container[b-o43l8hp1s4] {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 48px);
    }

    .chat-main[b-o43l8hp1s4] {
        padding: 12px;
    }

    .chat-header[b-o43l8hp1s4] {
        margin-bottom: 16px;
    }

    [b-o43l8hp1s4] .greeting-text {
        font-size: 1.5rem !important;
    }

    .chat-messages[b-o43l8hp1s4] {
        padding: 10px 8px;
    }

    .message-row[b-o43l8hp1s4] {
        max-width: 95%;
        gap: 8px;
    }

    .message-avatar[b-o43l8hp1s4] {
        width: 30px;
        height: 30px;
    }

    .message-bubble[b-o43l8hp1s4] {
        padding: 10px 14px;
    }

    .chat-input-wrapper[b-o43l8hp1s4] {
        padding: 6px 6px 6px 16px;
    }

    [b-o43l8hp1s4] .send-button {
        width: 40px !important;
        height: 40px !important;
    }

    .markdown-content[b-o43l8hp1s4] {
        font-size: 13px;
    }

    .chat-sidebar[b-o43l8hp1s4] {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        max-height: 200px;
        padding: 12px;
    }

    [b-o43l8hp1s4] .sidebar-title {
        margin-bottom: 8px !important;
        font-size: 0.9rem !important;
    }

    .chat-history-list[b-o43l8hp1s4] {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
    }

    .chat-history-item[b-o43l8hp1s4] {
        min-width: 160px;
        flex-shrink: 0;
        padding: 8px 10px;
    }

    .new-chat-button[b-o43l8hp1s4] {
        margin-top: 8px;
    }
}
/* /Pages/Quality/QualityChat.razor.rz.scp.css */
.quality-chat-container[b-p99fvk23wy] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    background-color: #fff;
}

.chat-header[b-p99fvk23wy] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fafafa;
}

.header-left[b-p99fvk23wy] {
    display: flex;
    align-items: center;
    gap: 12px;
}

[b-p99fvk23wy] .back-button {
    color: #666 !important;
}

.header-info[b-p99fvk23wy] {
    display: flex;
    flex-direction: column;
}

[b-p99fvk23wy] .header-info .mud-typography-h6 {
    color: #333 !important;
    font-weight: 600 !important;
}

[b-p99fvk23wy] .header-subtitle {
    color: #666 !important;
}

.header-actions[b-p99fvk23wy] {
    display: flex;
    gap: 12px;
}

.messages-area[b-p99fvk23wy] {
    flex: 1;
    overflow-y: auto;
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

.loading-state[b-p99fvk23wy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    color: #666;
}

.messages-wrapper[b-p99fvk23wy] {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-row[b-p99fvk23wy] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 80%;
}

.message-row-user[b-p99fvk23wy],
.message-row-assistant[b-p99fvk23wy],
.message-row-system[b-p99fvk23wy] {
    align-self: flex-start;
}

.message-row-agent[b-p99fvk23wy] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar[b-p99fvk23wy] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.user-avatar[b-p99fvk23wy] {
    background-color: #1976D2;
}

.assistant-avatar[b-p99fvk23wy] {
    background-color: #4CAF50;
}

.agent-avatar[b-p99fvk23wy] {
    background-color: #FF9800;
}

.system-avatar[b-p99fvk23wy] {
    background-color: #9E9E9E;
}

.message-content[b-p99fvk23wy] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.message-bubble[b-p99fvk23wy] {
    padding: 14px 18px;
    border-radius: 16px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-bubble[b-p99fvk23wy] {
    background-color: #1976D2;
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.assistant-bubble[b-p99fvk23wy] {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 16px 16px 16px 4px;
}

.agent-bubble[b-p99fvk23wy] {
    background-color: #FF9800;
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.system-bubble[b-p99fvk23wy] {
    background-color: #ECEFF1;
    border: 1px solid #CFD8DC;
    color: #546E7A;
    border-radius: 8px;
    font-style: italic;
}

.typing-indicator[b-p99fvk23wy] {
    display: flex;
    align-items: center;
    padding: 12px 16px;
}

.message-meta[b-p99fvk23wy] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 0 4px;
}

[b-p99fvk23wy] .message-meta .mud-typography {
    color: #999 !important;
    font-size: 11px !important;
}

.input-area[b-p99fvk23wy] {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
}

.input-wrapper[b-p99fvk23wy] {
    display: flex;
    align-items: center;
    border: 2px solid #FF9800;
    border-radius: 30px;
    padding: 8px 8px 8px 24px;
    background-color: #fff;
}

.message-input[b-p99fvk23wy] {
    flex: 1;
}

[b-p99fvk23wy] .message-input .mud-input-slot {
    font-size: 16px !important;
}

[b-p99fvk23wy] .message-input .mud-input-underline:before,
[b-p99fvk23wy] .message-input .mud-input-underline:after {
    display: none !important;
}

[b-p99fvk23wy] .send-button {
    background-color: #FF9800 !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
}

[b-p99fvk23wy] .send-button:hover {
    background-color: #F57C00 !important;
}

[b-p99fvk23wy] .send-button:disabled {
    background-color: #FFE0B2 !important;
}

.resolved-banner[b-p99fvk23wy] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background-color: #E8F5E9;
    border-top: 1px solid #C8E6C9;
}

/* Markdown Content Styles */
.markdown-content[b-p99fvk23wy] {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.markdown-content p[b-p99fvk23wy] {
    margin: 0 0 12px 0;
}

.markdown-content p:last-child[b-p99fvk23wy] {
    margin-bottom: 0;
}

.markdown-content strong[b-p99fvk23wy] {
    font-weight: 600;
}

.markdown-content em[b-p99fvk23wy] {
    font-style: italic;
}

.markdown-content ul[b-p99fvk23wy], .markdown-content ol[b-p99fvk23wy] {
    margin: 8px 0;
    padding-left: 24px;
}

.markdown-content li[b-p99fvk23wy] {
    margin: 4px 0;
}

.markdown-content code[b-p99fvk23wy] {
    background-color: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.markdown-content pre[b-p99fvk23wy] {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.markdown-content pre code[b-p99fvk23wy] {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Responsive - Tablet */
@media (max-width: 959.98px) {
    .messages-area[b-p99fvk23wy] {
        padding: 20px 24px;
    }

    .message-row[b-p99fvk23wy] {
        max-width: 90%;
    }

    .chat-header[b-p99fvk23wy] {
        padding: 12px 16px;
    }

    .input-area[b-p99fvk23wy] {
        padding: 12px 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 599.98px) {
    .quality-chat-container[b-p99fvk23wy] {
        height: calc(100vh - 48px);
    }

    .chat-header[b-p99fvk23wy] {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }

    .header-actions[b-p99fvk23wy] {
        gap: 8px;
    }

    .messages-area[b-p99fvk23wy] {
        padding: 12px;
    }

    .message-row[b-p99fvk23wy] {
        max-width: 95%;
        gap: 8px;
    }

    .message-avatar[b-p99fvk23wy] {
        width: 30px;
        height: 30px;
    }

    .message-bubble[b-p99fvk23wy] {
        padding: 10px 14px;
    }

    .input-area[b-p99fvk23wy] {
        padding: 10px;
    }

    .input-wrapper[b-p99fvk23wy] {
        padding: 6px 6px 6px 16px;
    }

    [b-p99fvk23wy] .send-button {
        width: 40px !important;
        height: 40px !important;
    }

    .markdown-content[b-p99fvk23wy] {
        font-size: 13px;
    }
}
/* /Pages/Quality/QualityInbox.razor.rz.scp.css */
.quality-container[b-wjcsbjwm8e] {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.quality-header[b-wjcsbjwm8e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-content[b-wjcsbjwm8e] {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[b-wjcsbjwm8e] .header-title {
    color: #4CAF50 !important;
    font-weight: 600 !important;
}

[b-wjcsbjwm8e] .header-subtitle {
    color: #666 !important;
}

.header-stats[b-wjcsbjwm8e] {
    display: flex;
    gap: 12px;
}

.quality-tabs[b-wjcsbjwm8e] {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.tab-content[b-wjcsbjwm8e] {
    padding: 24px;
    min-height: 500px;
}

.loading-state[b-wjcsbjwm8e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 0;
    color: #666;
}

.empty-state[b-wjcsbjwm8e] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 80px 0;
    color: #999;
}

[b-wjcsbjwm8e] .empty-state .mud-icon-root {
    font-size: 64px !important;
    opacity: 0.5;
}

.chats-grid[b-wjcsbjwm8e] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.chat-card[b-wjcsbjwm8e] {
    border-radius: 12px !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.chat-card:hover[b-wjcsbjwm8e] {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.pending-card[b-wjcsbjwm8e] {
    border-left: 4px solid #FF9800;
}

.assigned-card[b-wjcsbjwm8e] {
    border-left: 4px solid #2196F3;
}

.resolved-card[b-wjcsbjwm8e] {
    border-left: 4px solid #4CAF50;
    opacity: 0.9;
}

.chat-card-header[b-wjcsbjwm8e] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

[b-wjcsbjwm8e] .chat-title {
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
}

[b-wjcsbjwm8e] .chat-protocol {
    color: #4CAF50 !important;
    margin-bottom: 4px !important;
}

[b-wjcsbjwm8e] .chat-user {
    color: #666 !important;
    margin-bottom: 8px !important;
}

[b-wjcsbjwm8e] .chat-preview {
    color: #888 !important;
    font-style: italic;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-top: 8px;
}

[b-wjcsbjwm8e] .mud-card-actions {
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 16px 16px;
}

/* Responsive - Tablet */
@media (max-width: 959.98px) {
    .quality-container[b-wjcsbjwm8e] {
        padding: 16px;
    }

    .tab-content[b-wjcsbjwm8e] {
        padding: 16px;
    }

    .chats-grid[b-wjcsbjwm8e] {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 599.98px) {
    .quality-container[b-wjcsbjwm8e] {
        padding: 12px;
    }

    .quality-header[b-wjcsbjwm8e] {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-stats[b-wjcsbjwm8e] {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-content[b-wjcsbjwm8e] {
        padding: 12px;
        min-height: 300px;
    }

    .chats-grid[b-wjcsbjwm8e] {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
