/* /Components/Layout/Drawer.razor.rz.scp.css */
[b-xmlrn1a2l3] .navigation-drawer {
    --dxbl-drawer-panel-footer-justify-content: center;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

[b-xmlrn1a2l3] .panel-open:not(.mobile) .menu-button {
    display: none;
}

@media (max-width: 768px) {
    [b-xmlrn1a2l3] .panel-open:not(.mobile) .menu-button {
        display: inline-flex;
    }

    .mobile-drawer-closed .shading-copy[b-xmlrn1a2l3] {
        display: none;
        visibility: hidden;
    }

    [b-xmlrn1a2l3] .shading-copy {
        background-color: var(--dxbl-drawer-content-shading-bg);
        height: 100%;
        position: absolute;
        transition: opacity ease var(--dxbl-drawer-animation-duration);
        visibility: visible;
        width: 100%;
        z-index: 99;
        opacity: var(--dxbl-drawer-content-shading-opacity);
    }

    [b-xmlrn1a2l3] .panel-open .shading-copy {
        opacity: 0;
        visibility: unset;
        height: unset;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-bi5wx24gon] {
    height: 100vh;
    font-family: var(--bs-font-sans-serif);
}

/* Main drawer panel background - keep orange theme */
[b-bi5wx24gon] .navigation-drawer > .dxbl-drawer-panel {
    background-color: var(--bs-primary);
}

[b-bi5wx24gon] .dxbl-drawer .dxbl-drawer-content {
    height: 100vh;
    overflow: auto;  /* Changed from hidden to auto to allow scrolling */
}

/* Top header area - part of target content */
[b-bi5wx24gon] .header-content {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
}

[b-bi5wx24gon] .top-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;  /* Reduced from 0.75rem to 0.5rem */
    gap: 0.5rem;  /* Reduced gap for tighter spacing */
    background-color: #f8f9fa;
}

[b-bi5wx24gon] .menu-toggle-link {
    text-decoration: none;
}

/* Logo container - left aligned, no flex grow */
[b-bi5wx24gon] .logo-container-left {
    display: flex;
    align-items: center;
}

[b-bi5wx24gon] .header-logo {
    height: 40px; 
    width: auto;
}

/* Logo container - right aligned */
[b-bi5wx24gon] .logo-container-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.75rem;
}

[b-bi5wx24gon] .header-logo-right {
    height: 36px;
    width: auto;
}

/* Logged-in user label in header */
[b-bi5wx24gon] .logged-in-label {
    font-size: 0.8rem;
    color: #555;
    white-space: nowrap;
}

/* Hide logged-in label on mobile to prevent header overflow */
@media (max-width: 576px) {
    [b-bi5wx24gon] .logged-in-label {
        display: none;
    }

    [b-bi5wx24gon] .top-header {
        padding: 0.35rem 0.5rem;
        gap: 0.35rem;
    }

    [b-bi5wx24gon] .header-logo {
        height: 32px;
    }

    [b-bi5wx24gon] .header-logo-right {
        height: 28px;
    }
}

/* Back button - positioned at far left */
[b-bi5wx24gon] .back-button {
    margin-right: auto;  /* Push other elements to the right */
}

[b-bi5wx24gon] .main-target-content {
    height: calc(100vh - 57px);  /* Exact height calculation: viewport height minus header */
    overflow: auto;
}

/* Drawer panel header and footer */
[b-bi5wx24gon] .dxbl-drawer > .dxbl-drawer-panel .dxbl-drawer-header {
    border-bottom: none;
    padding: 0;
}

[b-bi5wx24gon] .dxbl-drawer > .dxbl-drawer-panel > .dxbl-drawer-body {
    --dxbl-drawer-panel-body-padding-x: 0;
    --dxbl-drawer-panel-body-padding-y: 1rem;
}

[b-bi5wx24gon] .dxbl-drawer > .dxbl-drawer-panel .dxbl-drawer-footer {
    --dxbl-drawer-panel-footer-justify-content: center;
    border-top: none;
    padding-bottom: 1.5rem;
}

[b-bi5wx24gon] .drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

[b-bi5wx24gon] .content {
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* MINI MODE (panel-closed / default) - Hide text, show icons only */
[b-bi5wx24gon] .navigation-drawer.panel-closed .dxbl-menu-item-text,
[b-bi5wx24gon] .navigation-drawer-mini .dxbl-menu-item-text {
    visibility: hidden;
    transition: visibility linear var(--dxbl-drawer-animation-duration);
}

[b-bi5wx24gon] .navigation-drawer.panel-closed .logout-text,
[b-bi5wx24gon] .navigation-drawer-mini .logout-text {
    display: none;
}

[b-bi5wx24gon] .navigation-drawer.panel-closed .footer-button .dxbl-btn-text,
[b-bi5wx24gon] .navigation-drawer-mini .footer-button .dxbl-btn-text {
    display: none;
}

[b-bi5wx24gon] .navigation-drawer.panel-closed .drawer-footer,
[b-bi5wx24gon] .navigation-drawer-mini .drawer-footer {
    align-items: center;
}

/* EXPANDED STATE (panel-open) - Show all text */
[b-bi5wx24gon] .navigation-drawer.panel-open .dxbl-menu-item-text {
    visibility: visible !important;
}

[b-bi5wx24gon] .navigation-drawer.panel-open .logout-text {
    display: inline !important;
}

[b-bi5wx24gon] .navigation-drawer.panel-open .footer-button .dxbl-btn-text {
    display: inline !important;
}

[b-bi5wx24gon] .navigation-drawer.panel-open .drawer-footer {
    align-items: stretch;
}

/* Icon styles - Dark color for visibility by default */
[b-bi5wx24gon] .icon {
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center center;
    -webkit-mask-mask-position: center center;
    width: 1rem;
    height: 1rem;
    background-repeat: no-repeat;
    background-color: var(--dxbl-btn-color);  /* Will be dark gray by default with Dark button style */
}

[b-bi5wx24gon] .icon-back {
    -webkit-mask-image: url("images/back.svg");
    mask-image: url("images/back.svg");
}

[b-bi5wx24gon] .icon-close {
    -webkit-mask-image: url("images/close.svg");
    mask-image: url("images/close.svg");
}

[b-bi5wx24gon] .icon-menu {
    -webkit-mask-image: url("images/menu.svg");
    mask-image: url("images/menu.svg");
}

[b-bi5wx24gon] .icon-log-in {
    -webkit-mask-image: url("images/account/log-in.svg");
    mask-image: url("images/account/log-in.svg");
}

[b-bi5wx24gon] .icon-log-out {
    -webkit-mask-image: url("images/account/log-out.svg");
    mask-image: url("images/account/log-out.svg");
}

[b-bi5wx24gon] .icon-user {
    -webkit-mask-image: url("images/account/user.svg");
    mask-image: url("images/account/user.svg");
}

[b-bi5wx24gon] .docs-icon {
    mask-image: url("images/doc.svg");
    -webkit-mask-image: url("images/doc.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--dxbl-btn-color);
}

[b-bi5wx24gon] .demos-icon {
    mask-image: url("images/demos.svg");
    -webkit-mask-image: url("images/demos.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--dxbl-btn-color);
}

[b-bi5wx24gon] .footer-button:hover .demos-icon {
    background-color: var(--dxbl-btn-hover-color);
}

[b-bi5wx24gon] .footer-button:hover .docs-icon {
    background-color: var(--dxbl-btn-hover-color);
}

[b-bi5wx24gon] .menu-button:hover .icon {
    background-color: var(--dxbl-btn-hover-color);
}

[b-bi5wx24gon] .menu-button-nav:hover .icon {
    background-color: var(--dxbl-btn-hover-color);
}

.panel-open .menu-button[b-bi5wx24gon] {
    display: inline-flex;
}

.menu-button-nav[b-bi5wx24gon] {
    width: 1.875rem;
    height: 1.875rem;
}

@media (max-width: 768px) {
    [b-bi5wx24gon] .top-header {
        padding: 0.5rem 1rem;
    }

    [b-bi5wx24gon] .header-logo {
        height: 32px;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
#sidebar[b-eqmfegehcn] {
    min-width: 15rem;
    max-width: 15rem;
    transition: transform 0.1s ease-out;
    height: 100%;
    max-height: 100%;
    display: block;
    background: inherit;
}

/*.logo {
    text-align: center;
   
}
*/

[b-eqmfegehcn] .menu.display-mobile {
    margin-bottom: 2rem;
}

[b-eqmfegehcn] .menu.display-iam {
    margin-bottom: 2rem;
}

[b-eqmfegehcn] .menu {
    background-color: inherit;
}

    [b-eqmfegehcn] .menu .dxbl-menu-item-list {
        gap: 0.5rem;
    }

[b-eqmfegehcn] .menu-item {
    color: var(--bs-white);
}

/* Hide location-gated nav items by default; revealed when #sidebar gets .location-selected */
[b-eqmfegehcn] .nav-location-item {
    display: none !important;
}
#sidebar.location-selected[b-eqmfegehcn]  .nav-location-item {
    display: flex !important;
}


[b-eqmfegehcn] .icon {
    width: 1.5rem; /* was 1rem */
    height: 1.5rem; /* was 1rem */
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 0.25rem; /* reduced from 0.5rem */
}

[b-eqmfegehcn] .dxbl-menu-item-text {
    font-size: 1.1rem; /* bump up from default */
}

[b-eqmfegehcn] .home-icon {
    background-image: url("images/home.svg");
}
[b-eqmfegehcn] .Mic-icon {
    background-image: url("images/Mic-White.svg");
}
[b-eqmfegehcn] .upload-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16h6v-6h4l-7-7-7 7h4v6zm-4 2h14v2H5v-2z'/%3E%3C/svg%3E");
}
[b-eqmfegehcn] .edit-icon {
    background-image: url("images/Edit-White.svg");
}
[b-eqmfegehcn] .MyScribes-icon {
    background-image: url("images/MyScribes.svg");
}

[b-eqmfegehcn] .MyScribes2-icon {
    background-image: url("images/MyScribes2.svg");
}
[b-eqmfegehcn] .Phone-White {
    background-image: url("images/Phone-White.svg");
}
[b-eqmfegehcn] .ai-button-icon {
    background-image: url("images/AI-Button-128.svg");
}
[b-eqmfegehcn] .docs-icon {
    background-image: url("images/doc.svg");
}

[b-eqmfegehcn] .close-drawer-icon {
    background-image: url("images/CloseDrawer.svg");
}

[b-eqmfegehcn] .logout-icon {
    background-image: url("images/Lock-White.svg");
}

[b-eqmfegehcn] .avatars-icon {
    background-image: url("images/Advatars-White-Icon.svg");
}

[b-eqmfegehcn] .help-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E");
}

.menu-separator[b-eqmfegehcn] {
    height: 0.5rem;
}

[b-eqmfegehcn] .weather-icon {
    background-image: url("images/weather.svg");
}

[b-eqmfegehcn] .counter-icon {
    background-image: url("images/counter.svg");
}

[b-eqmfegehcn] .settings-icon {
    background-image: url("images/account/settings.svg");
}

[b-eqmfegehcn] .log-in-icon {
    background-image: url("images/account/log-in.svg");
}

[b-eqmfegehcn] .log-out-icon {
    background-image: url("images/account/log-out.svg");
}

[b-eqmfegehcn] .user-icon {
    background-image: url("images/account/user.svg");
}


/* Hide the close drawer item when in mini mode (only show when expanded) */
[b-eqmfegehcn] .navigation-drawer.panel-closed .close-drawer-item,
[b-eqmfegehcn] .navigation-drawer-mini .close-drawer-item {
    display: none;
}


@media (max-width: 768px) {
    #sidebar[b-eqmfegehcn] {
        min-width: inherit;
        max-width: inherit;
        display: block;
    }

    .logo[b-eqmfegehcn] {
        text-align: inherit;

    }
}

@media (max-width: 576px) {
    [b-eqmfegehcn] .menu .dxbl-menu-item-list {
        gap: 0.25rem;
    }

    [b-eqmfegehcn] .dxbl-menu-item-text {
        font-size: 1rem;
    }

    [b-eqmfegehcn] .icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}
/* /Components/Pages/Admin/SimPatientEdit.razor.rz.scp.css */
.sim-patient-edit-container[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Header */
.edit-header[b-dma3zknmhs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--dx-color-bg-card, #fff);
    border-bottom: 1px solid var(--dx-color-border, #e0e0e0);
    flex-shrink: 0;
}

.header-left[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.patient-title[b-dma3zknmhs] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.header-right[b-dma3zknmhs] {
    display: flex;
    gap: 0.5rem;
}

/* Back Button */
.back-btn[b-dma3zknmhs] {
    padding: 0.5rem;
    min-width: auto;
}

.back-icon[b-dma3zknmhs] {
    width: 20px;
    height: 20px;
    display: block;
}

/* Loading */
.loading-container[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    flex: 1;
}

/* Main Content */
.edit-content[b-dma3zknmhs] {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Avatar Panel (Left) */
.avatar-panel[b-dma3zknmhs] {
    width: 40%;
    max-width: 400px;
    min-width: 280px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background: var(--dx-color-bg-secondary, #f5f5f5);
    border-right: 1px solid var(--dx-color-border, #e0e0e0);
}

.avatar-preview[b-dma3zknmhs] {
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 50%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-image[b-dma3zknmhs] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 1rem;
}

.avatar-placeholder i[b-dma3zknmhs] {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.test-avatar-btn[b-dma3zknmhs] {
    width: 100%;
    max-width: 200px;
}

.status-toggle[b-dma3zknmhs] {
    padding: 1rem;
    background: var(--dx-color-bg-card, #fff);
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

/* Tabs Panel (Right) */
.tabs-panel[b-dma3zknmhs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tabs-panel[b-dma3zknmhs]  .dxbl-tabs {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tabs-panel[b-dma3zknmhs]  .dxbl-tabs-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* Tab Content */
.tab-content[b-dma3zknmhs] {
    padding: 1.5rem;
}

.form-group[b-dma3zknmhs] {
    margin-bottom: 1.25rem;
}

.form-group label[b-dma3zknmhs] {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dx-color-text);
}

.form-group .required[b-dma3zknmhs] {
    color: var(--dx-color-danger, #dc3545);
}

.form-row[b-dma3zknmhs] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-text[b-dma3zknmhs] {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

/* System Prompt Editor */
.system-prompt-group[b-dma3zknmhs] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.richedit-container[b-dma3zknmhs] {
    flex: 1;
    min-height: 300px;
    border: 1px solid var(--dx-color-border, #e0e0e0);
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.system-prompt-editor[b-dma3zknmhs] {
    height: 100%;
    width: 100%;
    min-height: 300px;
}

[b-dma3zknmhs] .system-prompt-editor {
    width: 100% !important;
}

[b-dma3zknmhs] .system-prompt-editor .dxbl-richedit {
    width: 100% !important;
}

/* Avatar Item Template (legacy - can be removed if not used elsewhere) */
.avatar-item[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem;
}

.avatar-item-img[b-dma3zknmhs] {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.avatar-item-info[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
}

.avatar-item-name[b-dma3zknmhs] {
    font-weight: 500;
}

.avatar-item-meta[b-dma3zknmhs] {
    font-size: 0.8rem;
    color: var(--dx-color-text-secondary);
}

/* Avatar Grid Selector */
.avatar-search-box[b-dma3zknmhs] {
    margin-bottom: 1rem;
}

.avatar-grid[b-dma3zknmhs] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--dx-color-border, #e0e0e0);
    border-radius: 8px;
    background: var(--dx-color-bg-secondary, #f9f9f9);
}

.avatar-card[b-dma3zknmhs] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--dx-color-bg-card, #fff);
    cursor: pointer;
    transition: all 0.2s ease;
}

.avatar-card:hover[b-dma3zknmhs] {
    border-color: var(--dx-color-primary-light, #b3d4fc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar-card.selected[b-dma3zknmhs] {
    border-color: var(--dx-color-primary, #1976d2);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}

.avatar-card-img[b-dma3zknmhs] {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.avatar-card-placeholder[b-dma3zknmhs] {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
}

.avatar-card-name[b-dma3zknmhs] {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: var(--dx-color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.avatar-checkmark[b-dma3zknmhs] {
    position: absolute;
    bottom: 38px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: url('/images/Check-Blue.svg') no-repeat center center;
    background-size: contain;
}

/* Voice Item Template */
.voice-item[b-dma3zknmhs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.voice-name[b-dma3zknmhs] {
    font-weight: 500;
}

.voice-meta[b-dma3zknmhs] {
    display: flex;
    gap: 0.25rem;
}

/* LLM Item Template */
.llm-item[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
}

.llm-name[b-dma3zknmhs] {
    font-weight: 500;
}

.llm-model[b-dma3zknmhs] {
    font-size: 0.8rem;
    color: var(--dx-color-text-secondary);
}

.llm-description[b-dma3zknmhs] {
    color: var(--dx-color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 1rem;
    background: var(--dx-color-bg-secondary, #f5f5f5);
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 992px) {
    .edit-content[b-dma3zknmhs] {
        flex-direction: column;
    }

    .avatar-panel[b-dma3zknmhs] {
        width: 100%;
        max-width: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid var(--dx-color-border, #e0e0e0);
        padding: 1rem;
    }

    .avatar-preview[b-dma3zknmhs] {
        width: 200px;
        max-height: 270px;
    }

    .test-avatar-btn[b-dma3zknmhs] {
        max-width: none;
    }

    .status-toggle[b-dma3zknmhs] {
        width: auto;
    }
}

@media (max-width: 576px) {
    .edit-header[b-dma3zknmhs] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .header-right[b-dma3zknmhs] {
        width: 100%;
        justify-content: flex-end;
    }

    .patient-title[b-dma3zknmhs] {
        font-size: 1.05rem;
    }

    .form-row[b-dma3zknmhs] {
        grid-template-columns: 1fr;
    }

    .avatar-panel[b-dma3zknmhs] {
        flex-direction: column;
        padding: 0.75rem;
        gap: 1rem;
    }

    .avatar-preview[b-dma3zknmhs] {
        width: 100%;
        max-width: 200px;
        max-height: 250px;
    }

    .tab-content[b-dma3zknmhs] {
        padding: 0.75rem;
    }

    .file-upload-area[b-dma3zknmhs] {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }

    .file-list-item[b-dma3zknmhs] {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .file-name[b-dma3zknmhs] {
        font-size: 0.85rem;
    }

    .file-meta[b-dma3zknmhs] {
        font-size: 0.75rem;
    }

    .ai-generate-btn[b-dma3zknmhs] {
        min-width: 140px;
    }
}

/* ========================================
   VOICE SELECTOR STYLES (ANAM-style)
   ======================================== */

.voice-selector-content[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.75rem;
}

/* Search Row */
.voice-search-row[b-dma3zknmhs] {
    width: 100%;
}

.voice-search-box[b-dma3zknmhs] {
    width: 100%;
}

/* Filter Row (ANAM-style: all 4 filters in one horizontal row) */
.voice-filter-row[b-dma3zknmhs] {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    width: 100%;
}

.voice-filter[b-dma3zknmhs] {
    flex: 1;
    min-width: 0;
}

/* Voice List Header */
.voice-list-header[b-dma3zknmhs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dx-color-border, #e0e0e0);
}

.voice-count[b-dma3zknmhs] {
    font-size: 0.9rem;
    color: var(--dx-color-text-secondary, #666);
    font-weight: 500;
}

.clear-filters-btn[b-dma3zknmhs] {
    font-size: 0.85rem;
}

/* Voice List */
.voice-list[b-dma3zknmhs] {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--dx-color-border, #e0e0e0);
    border-radius: 8px;
    background: var(--dx-color-bg-secondary, #f9f9f9);
    max-height: 450px;
}

/* Voice List Item */
.voice-list-item[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--dx-color-bg-card, #fff);
    border-bottom: 1px solid var(--dx-color-border, #e9ecef);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.voice-list-item:first-child[b-dma3zknmhs] {
    border-radius: 8px 8px 0 0;
}

.voice-list-item:last-child[b-dma3zknmhs] {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.voice-list-item:only-child[b-dma3zknmhs] {
    border-radius: 8px;
}

.voice-list-item:hover[b-dma3zknmhs] {
    background: var(--dx-color-bg-hover, #f0f4f8);
}

.voice-list-item.selected[b-dma3zknmhs] {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
    border-left: 3px solid var(--dx-color-warning, #ff9800);
}

/* Play Button */
.voice-play-btn[b-dma3zknmhs] {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 2px solid var(--dx-color-border, #ddd);
    background: var(--dx-color-bg-card, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dx-color-text-secondary, #666);
}

.voice-play-btn:hover:not(:disabled)[b-dma3zknmhs] {
    border-color: var(--dx-color-primary, #1976d2);
    color: var(--dx-color-primary, #1976d2);
    background: rgba(25, 118, 210, 0.05);
}

.voice-play-btn:disabled[b-dma3zknmhs] {
    opacity: 0.4;
    cursor: not-allowed;
}

.voice-play-btn.playing[b-dma3zknmhs] {
    border-color: var(--dx-color-primary, #1976d2);
    background: var(--dx-color-primary, #1976d2);
    color: #fff;
}

.voice-play-btn i[b-dma3zknmhs] {
    font-size: 1.1rem;
}

.voice-play-btn .play-icon[b-dma3zknmhs] {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Voice Info */
.voice-info[b-dma3zknmhs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.voice-info-top[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.voice-lang-badge[b-dma3zknmhs] {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--dx-color-text-secondary, #666);
    background: var(--dx-color-bg-secondary, #e9ecef);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.voice-display-name[b-dma3zknmhs] {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dx-color-text, #333);
}

.voice-type-badge[b-dma3zknmhs] {
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    background: var(--dx-color-success, #28a745);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.voice-description[b-dma3zknmhs] {
    font-size: 0.85rem;
    color: var(--dx-color-text-secondary, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Voice Meta (Right Side) */
.voice-meta-right[b-dma3zknmhs] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.voice-gender-badge[b-dma3zknmhs] {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dx-color-text-secondary, #666);
    background: var(--dx-color-bg-secondary, #f0f0f0);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.voice-provider-badge[b-dma3zknmhs] {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    background: var(--dx-color-secondary, #6c757d);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

/* Selected Indicator */
.voice-selected-indicator[b-dma3zknmhs] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dx-color-warning, #ff9800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.voice-selected-indicator i[b-dma3zknmhs] {
    font-size: 1rem;
}

/* Responsive adjustments for voice selector */
@media (max-width: 992px) {
    .voice-filter-row[b-dma3zknmhs] {
        flex-wrap: wrap;
    }

    .voice-filter[b-dma3zknmhs] {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }
}

@media (max-width: 576px) {
    .voice-filter-row[b-dma3zknmhs] {
        flex-direction: column;
    }

    .voice-filter[b-dma3zknmhs] {
        flex: 1 1 100%;
        width: 100%;
    }

    .voice-list-item[b-dma3zknmhs] {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .voice-meta-right[b-dma3zknmhs] {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-left: 56px;
    }

    .voice-description[b-dma3zknmhs] {
        white-space: normal;
    }
}

/* ==========================================
   LLM Selector Styles (Anam Lab Style)
   ========================================== */

.llm-selector-content[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.llm-list-header[b-dma3zknmhs] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dx-color-border, #e0e0e0);
}

/* ==========================================
   Delete Confirmation Popup Styles
   ========================================== */

.delete-popup-body[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.5rem;
    gap: 1rem;
}

.delete-icon-container[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-warning-icon[b-dma3zknmhs] {
    width: 64px;
    height: 64px;
}

.delete-message[b-dma3zknmhs] {
    font-size: 1rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.delete-message strong[b-dma3zknmhs] {
    color: #000;
}

.delete-warning[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
    margin: 0;
    padding: 0.75rem 1rem;
    background-color: #fff5f5;
    border-radius: 6px;
    border: 1px solid #ffcdd2;
}

.delete-warning i[b-dma3zknmhs] {
    font-size: 1rem;
}

.delete-popup-footer[b-dma3zknmhs] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    width: 100%;
}

.llm-count[b-dma3zknmhs] {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dx-color-text-secondary, #666);
}

.llm-list[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--dx-color-border, #e0e0e0);
    border-radius: 8px;
    background: var(--dx-color-bg-card, #fff);
}

.llm-list-item[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--dx-color-border, #e9ecef);
}

.llm-list-item:last-child[b-dma3zknmhs] {
    border-bottom: none;
}

.llm-list-item:hover[b-dma3zknmhs] {
    background: var(--dx-color-bg-hover, #f5f5f5);
}

.llm-list-item.selected[b-dma3zknmhs] {
    background: var(--dx-color-bg-selected, #fff8e6);
    border-color: var(--dx-color-warning, #ff9800);
    box-shadow: inset 3px 0 0 var(--dx-color-warning, #ff9800);
}

/* Selection Indicator (radio style) */
.llm-selection-indicator[b-dma3zknmhs] {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.llm-selection-indicator svg[b-dma3zknmhs] {
    width: 20px;
    height: 20px;
}

.llm-list-item.selected .llm-selection-indicator[b-dma3zknmhs] {
    color: var(--dx-color-warning, #ff9800);
}

/* LLM Info */
.llm-info[b-dma3zknmhs] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.llm-info-top[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.llm-display-name[b-dma3zknmhs] {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dx-color-text, #333);
}

.llm-beta-badge[b-dma3zknmhs] {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--dx-color-text-secondary, #666);
    background: var(--dx-color-bg-secondary, #e9ecef);
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    text-transform: lowercase;
    border: 1px solid var(--dx-color-border, #ddd);
}

.llm-description[b-dma3zknmhs] {
    font-size: 0.85rem;
    color: var(--dx-color-text-secondary, #666);
    line-height: 1.4;
}

/* Responsive adjustments for LLM selector */
@media (max-width: 576px) {
    .llm-list-item[b-dma3zknmhs] {
        padding: 0.875rem 1rem;
    }

    .llm-display-name[b-dma3zknmhs] {
        font-size: 0.9rem;
    }

    .llm-description[b-dma3zknmhs] {
        font-size: 0.8rem;
    }
}

/* ── AI Prompt Builder ── */
.ai-prompt-builder[b-dma3zknmhs] {
    margin-bottom: 1rem;
}

.ai-builder-group[b-dma3zknmhs] {
    border: 1px solid #f0d6b8;
    border-radius: 8px;
    overflow: hidden;
}

[b-dma3zknmhs] .ai-builder-header {
    background: linear-gradient(90deg, #fff4e8 0%, #fff0de 100%);
    transition: background 0.2s;
}

[b-dma3zknmhs] .ai-builder-header:hover {
    background: linear-gradient(90deg, #ffead2 0%, #ffe4c8 100%);
}

.ai-builder-title-text[b-dma3zknmhs] {
    font-weight: 600;
}

.ai-builder-actions[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.generating-indicator[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.ai-generate-btn[b-dma3zknmhs] {
    min-width: 200px;
}

/* ── Prompt Sub-Tabs (System Prompt / Patient Files) ── */
[b-dma3zknmhs] .prompt-sub-tabs {
    margin-top: 0.5rem;
}

/* ── Patient Files Tab ── */
.patient-files-tab[b-dma3zknmhs] {
    padding: 1rem 0;
}

/* Upload Area (DxUpload external drop zone) */
.file-upload-area[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    margin-bottom: 1.25rem;
    border: 2px dashed var(--dx-color-border, #ccc);
    border-radius: 8px;
    background: var(--dx-color-bg-card, #fafafa);
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-area:hover[b-dma3zknmhs] {
    border-color: var(--dx-color-primary, #1976d2);
    background: #f0f7ff;
}

.file-upload-area.drag-over[b-dma3zknmhs] {
    border-color: var(--dx-color-primary, #1976d2);
    background: #e3f0ff;
    box-shadow: inset 0 0 0 2px rgba(25, 118, 210, 0.15);
}

.file-upload-area > i[b-dma3zknmhs] {
    font-size: 2rem;
    color: var(--dx-color-text-secondary, #888);
}

.file-upload-area > span[b-dma3zknmhs] {
    color: var(--dx-color-text-secondary, #666);
    font-size: 0.95rem;
}

/* Prompt wrapper — stays in DOM so DxUpload keeps its JS binding to the select button */
.file-upload-prompt[b-dma3zknmhs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-prompt > i[b-dma3zknmhs] {
    font-size: 2rem;
    color: var(--dx-color-text-secondary, #888);
}

.file-upload-prompt > span[b-dma3zknmhs] {
    color: var(--dx-color-text-secondary, #666);
    font-size: 0.95rem;
}

.file-upload-hint[b-dma3zknmhs] {
    font-size: 0.8rem !important;
    color: var(--dx-color-text-tertiary, #999) !important;
}

/* Selected file preview inside drop zone */
.selected-file-info[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.25rem;
}

.selected-file-info .file-details[b-dma3zknmhs] {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.file-upload-progress[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: var(--dx-color-primary, #1976d2);
    font-size: 0.9rem;
}

.file-upload-error[b-dma3zknmhs] {
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    color: var(--dx-color-danger, #dc3545);
    background: #fff0f0;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Empty State */
.files-empty-state[b-dma3zknmhs] {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--dx-color-text-secondary, #888);
}

.files-empty-state i[b-dma3zknmhs] {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.files-empty-state p[b-dma3zknmhs] {
    margin: 0;
    font-size: 0.95rem;
}

/* File List */
.file-list[b-dma3zknmhs] {
    border: 1px solid var(--dx-color-border, #e0e0e0);
    border-radius: 8px;
    overflow: hidden;
}

.file-list-item[b-dma3zknmhs] {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--dx-color-border, #eee);
    transition: background 0.15s ease;
}

.file-list-item:last-child[b-dma3zknmhs] {
    border-bottom: none;
}

.file-list-item:hover[b-dma3zknmhs] {
    background: var(--dx-color-bg-hover, #f8f9fa);
}

.file-list-item.editing[b-dma3zknmhs] {
    background: #fffef5;
    padding: 1rem;
}

/* File Icon */
.file-icon[b-dma3zknmhs] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dx-color-bg-secondary, #f0f0f0);
    border-radius: 6px;
}

.file-icon i[b-dma3zknmhs] {
    font-size: 1.2rem;
    color: var(--dx-color-text-secondary, #666);
}

/* File Info */
.file-info[b-dma3zknmhs] {
    flex: 1;
    min-width: 0;
}

.file-name[b-dma3zknmhs] {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dx-color-text, #333);
    font-family: 'Cascadia Code', 'Consolas', monospace;
}

.file-meta[b-dma3zknmhs] {
    font-size: 0.8rem;
    color: var(--dx-color-text-secondary, #888);
    margin-top: 0.15rem;
}

.file-description[b-dma3zknmhs] {
    font-style: italic;
}

/* File Actions */
.file-actions[b-dma3zknmhs] {
    flex-shrink: 0;
    display: flex;
    gap: 0.25rem;
}

/* Inline Edit Form */
.file-edit-form[b-dma3zknmhs] {
    width: 100%;
}

.file-edit-actions[b-dma3zknmhs] {
    display: flex;
    gap: 0.5rem;
    padding-top: 1.1rem;
}

.file-edit-original[b-dma3zknmhs] {
    font-size: 0.8rem;
    color: var(--dx-color-text-secondary, #888);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--dx-color-border, #eee);
}
/* /Components/Pages/AnamCall.razor.rz.scp.css */
/* Call Layout - Responsive Grid */
.call-layout-wrapper[b-eu94sc1h8k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-height: 500px;
}

/* Call Controls - Centered buttons */
.call-controls[b-eu94sc1h8k] {
    margin-bottom: 0.5rem;
}

.call-controls .btn-toolbar[b-eu94sc1h8k] {
    padding: 0.5rem 0;
}

/* Video Section */
.video-section[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
}

.video-wrapper[b-eu94sc1h8k] {
    position: relative;
    flex: 1;
    min-height: 400px;
    background: #2d2d2d;  /* ? Darker gray background */
    border-radius: 8px;
    overflow: hidden;
    /* ? Add centered user icon as background */
    background-image: url('/images/User-Icon-Grey.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 180px 180px;  /* Icon size - adjust as needed */
}

/* ? Hide background icon when video is playing */
.video-wrapper video:not([src=""]):not([src])[b-eu94sc1h8k] {
    background: transparent;
}

.video-wrapper video[b-eu94sc1h8k] {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* ✅ Visit Timer Overlay - Floating countdown timer at top-right of video */
.visit-timer-overlay[b-eu94sc1h8k] {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5; /* Above video, below floating toolbar */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none; /* Don't block clicks */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: timerFadeIn-b-eu94sc1h8k 0.3s ease-in;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* ✅ Warning state - Red text when under 1 minute remaining */
.visit-timer-overlay.timer-warning[b-eu94sc1h8k] {
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.5);
}

.visit-timer-overlay.timer-warning i[b-eu94sc1h8k] {
    color: #ff4d4d;
}

.visit-timer-overlay i[b-eu94sc1h8k] {
    font-size: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.visit-timer-overlay .timer-text[b-eu94sc1h8k] {
    font-variant-numeric: tabular-nums; /* Prevent width jitter on number changes */
    display: flex;
    align-items: center;
    line-height: 1;
}

@keyframes timerFadeIn-b-eu94sc1h8k {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ✅ Floating Toolbar Container - positioned at bottom of video */
.floating-toolbar-container[b-eu94sc1h8k] {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

/* ? Floating Toolbar - No background, just flex container */
[b-eu94sc1h8k] .video-floating-toolbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    padding: 0 !important;
}

/* ? Force toolbar content to be compact and centered with proper gap */
[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    padding: 0 !important;
}

[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-items-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    padding: 0 !important;
}

/* ? Apply additional spacing to direct children */
[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-items-container > * {
    margin-left: 16px !important;
    margin-right: 16px !important;
}

[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-items-container > *:first-child {
    margin-left: 0 !important;
}

[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-items-container > *:last-child {
    margin-right: 0 !important;
}

/* ? Hide text labels */
[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-item-text {
    display: none !important;
}

/* ? Hide the overflow menu button (triple dots) */
[b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-submenu-button {
    display: none !important;
}

/* ? Toolbar Item Base Styling - Circular icon buttons */
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item.dxbl-btn,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call.dxbl-btn,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active.dxbl-btn {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    padding: 0 !important;
    margin: 0 12px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

/* ? Most specific hover selector to override ALL DevExpress defaults - DARK GRAY */
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item:hover,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item.dxbl-btn:hover,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item:focus,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item.dxbl-btn:focus,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item:active,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item.dxbl-btn:active {
    background: #2d2d2d !important;
    border-color: rgba(88, 200, 194, 0.8) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

/* ? Call Button (Green - Ready to start) - Hover Effect */
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call:hover,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call.dxbl-btn:hover,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call:focus,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call.dxbl-btn:focus,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call:active,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call.dxbl-btn:active {
    background: #155724 !important;
    border-color: rgba(40, 167, 69, 0.8) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

/* ? Call Button (Red - Active call) - Hover Effect */
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call-active:hover,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call-active.dxbl-btn:hover,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call-active:focus,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call-active.dxbl-btn:focus,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call-active:active,
[b-eu94sc1h8k] .video-wrapper .floating-toolbar-container .video-floating-toolbar .toolbar-item-call-active.dxbl-btn:active {
    background: #8b0000 !important;
    border-color: rgba(220, 53, 69, 0.8) !important;
    transform: scale(1.1) !important;
    color: white !important;
}

/* ? CRITICAL: Style the DevExpress icon container */
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item .dxbl-toolbar-item-icon,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call .dxbl-toolbar-item-icon,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active .dxbl-toolbar-item-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
}

/* ? Custom Icon Styles - Call, Mic, and Settings icons */
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-call-green,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-call-red,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-mic-green,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-mic-red,
[b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-settings {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    margin: 0 auto !important;
}

/* ? NEW: Call Icon States */
[b-eu94sc1h8k] .toolbar-icon-call-green {
    background-image: url('/images/Call-Green.svg') !important;
}

[b-eu94sc1h8k] .toolbar-icon-call-red {
    background-image: url('/images/Call-Red.svg') !important;
}

/* ? NEW: Mic Icon States */
[b-eu94sc1h8k] .toolbar-icon-mic-red {
    background-image: url('/images/Mic-Red.svg') !important;
}

[b-eu94sc1h8k] .toolbar-icon-mic-green {
    background-image: url('/images/Mic-Green.svg') !important;
}

/* Settings Icon */
[b-eu94sc1h8k] .toolbar-icon-settings {
    background-image: url('/images/Settings-White.svg') !important;
}

/* ? RESPONSIVE: Mobile optimization */
@media (max-width: 576px) {
    .floating-toolbar-container[b-eu94sc1h8k] {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        gap: 16px;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar {
        gap: 16px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-content {
        gap: 16px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-items-container {
        gap: 16px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item .dxbl-toolbar-item-icon,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call .dxbl-toolbar-item-icon,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active .dxbl-toolbar-item-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-call-green,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-call-red,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-mic-green,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-mic-red,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-settings {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
    
    /* ✅ Adjust user icon size for mobile */
    .video-wrapper[b-eu94sc1h8k] {
        background-size: 120px 120px;
    }
    
    /* ✅ Timer overlay mobile optimization */
    .visit-timer-overlay[b-eu94sc1h8k] {
        top: 8px;
        right: 8px;
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .visit-timer-overlay i[b-eu94sc1h8k] {
        font-size: 0.9rem;
    }
}

/* ✅ RESPONSIVE: Tablet optimization */
@media (min-width: 577px) and (max-width: 992px) {
    .floating-toolbar-container[b-eu94sc1h8k] {
        bottom: 15px;
        gap: 20px;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar {
        gap: 20px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-content {
        gap: 20px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .dxbl-toolbar-items-container {
        gap: 20px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item .dxbl-toolbar-item-icon,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call .dxbl-toolbar-item-icon,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-item-call-active .dxbl-toolbar-item-icon {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
    }
    
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-call-green,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-call-red,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-mic-green,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-mic-red,
    [b-eu94sc1h8k] .video-floating-toolbar .toolbar-icon-settings {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }
    
    /* ✅ Adjust user icon size for tablet */
    .video-wrapper[b-eu94sc1h8k] {
        background-size: 150px 150px;
    }
    
    /* ✅ Timer overlay tablet optimization */
    .visit-timer-overlay[b-eu94sc1h8k] {
        top: 10px;
        right: 10px;
        padding: 0.35rem 0.65rem;
        font-size: 0.9rem;
    }
}

/* Chat Section */
.chat-section[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* Important for flex children */
}

/* ? NEW: DXTabs styling to fill chat section and match video height */
[b-eu94sc1h8k] .chat-section .anam-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0; /* Important for flex children */
}

[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tabs-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* Important for flex children */
}

[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* Important for flex children */
    overflow: hidden;
}

/* ? Ensure tab panel content fills available space */
[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tabs-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ? Style tab headers with icons */
[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab-text i {
    margin-right: 0.5rem;
}

[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tabs-nav {
    border-bottom: 2px solid #dee2e6;
}

[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab {
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

[b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab.dxbl-active {
    color: #007bff;
    border-bottom: 3px solid #007bff;
}

/* ? Consult AI Placeholder styling */
.consult-ai-placeholder[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    padding: 2rem;
}

/* ? UPDATED: Consult AI Container - Fill remaining height */
.consult-ai-container[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0; /* Important for flex children to shrink properly */
    max-height: 500px; /* Match chat-messages max-height to prevent layout shift */
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow-y: auto;
    padding: 1rem;
}

/* ? UPDATED: Consult AI Sections - Fill available space and scroll */
.consult-ai-sections[b-eu94sc1h8k] {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Important for flex children to shrink properly */
}

/* ? UPDATED: Smart Chart Container - Fill remaining height like Consult AI */
.smart-chart-container[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
    min-height: 0; /* Important for flex children to shrink properly */
    max-height: 500px; /* Match chat-messages max-height to prevent layout shift */
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    padding: 1rem;
    position: relative;
}

/* Smart Chart content scrollable area */
.smart-chart-content[b-eu94sc1h8k] {
    flex: 1;
    overflow-y: auto;
    min-height: 0; /* Important for flex children to shrink properly */
    padding-right: 0.5rem;
}

/* Smart Chart timestamp bar */
.smart-chart-timestamp[b-eu94sc1h8k] {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Chart summary body styling */
.chart-summary-body[b-eu94sc1h8k] {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Scrollbar styling for smart chart */
.smart-chart-content[b-eu94sc1h8k]::-webkit-scrollbar {
    width: 8px;
}

.smart-chart-content[b-eu94sc1h8k]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.smart-chart-content[b-eu94sc1h8k]::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}

.smart-chart-content[b-eu94sc1h8k]::-webkit-scrollbar-thumb:hover {
    background: #218838;
}

/* ? UPDATED: AI Processing Indicator */
.ai-processing-indicator[b-eu94sc1h8k] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 0.75rem;
    animation: pulse-b-eu94sc1h8k 2s ease-in-out infinite;
}

.ai-processing-indicator i[b-eu94sc1h8k] {
    font-size: 1.2rem;
    animation: spin-b-eu94sc1h8k 1s linear infinite;
}

@keyframes spin-b-eu94sc1h8k {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-b-eu94sc1h8k {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ? UPDATED: Empty State Inline */
.empty-state-inline[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
}

.empty-state-inline i[b-eu94sc1h8k] {
    font-size: 2rem;
    color: #6c757d;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* ? REMOVED: Old insight card styles (no longer needed) */

/* ? UPDATED: Scrollbar styling for Consult AI container */
.consult-ai-container[b-eu94sc1h8k]::-webkit-scrollbar {
    width: 8px;
}

.consult-ai-container[b-eu94sc1h8k]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.consult-ai-container[b-eu94sc1h8k]::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.consult-ai-container[b-eu94sc1h8k]::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ? RESPONSIVE: Mobile adjustments for Consult AI */
@media (max-width: 576px) {
    [b-eu94sc1h8k] .section-accordion .dxbl-accordion-item-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    [b-eu94sc1h8k] .section-accordion .dxbl-accordion-item-content {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .section-list[b-eu94sc1h8k] {
        padding-left: 1.25rem;
    }
    
    .sections-timestamp[b-eu94sc1h8k] {
        font-size: 0.8rem;
    }
}

.chat-container[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 500px; /* Match other tab containers to prevent layout shift */
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

/* Chat Header (same style as CustomChatAI) */
.chat-header[b-eu94sc1h8k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-header-content[b-eu94sc1h8k] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.chat-header-content i[b-eu94sc1h8k] {
    font-size: 1.2rem;
}

.chat-header-badge .badge[b-eu94sc1h8k] {
    font-size: 0.75rem;
    font-weight: normal;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Chat Messages Area - Tightened padding */
.chat-messages[b-eu94sc1h8k] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    background: #f8f9fa;
    max-height: 450px;
}

/* Empty State */
.empty-state[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1.5rem;
    color: #6c757d;
}

.empty-icon[b-eu94sc1h8k] {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h6[b-eu94sc1h8k] {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Chat Message Bubbles (similar to CustomChatAI) - Tightened spacing */
.chat-message[b-eu94sc1h8k] {
    display: flex;
    margin-bottom: 0.75rem;
    animation: messageSlideIn-b-eu94sc1h8k 0.3s ease-out;
}

.message-right[b-eu94sc1h8k] {
    justify-content: flex-end;
}

.message-left[b-eu94sc1h8k] {
    justify-content: flex-start;
}

.message-bubble[b-eu94sc1h8k] {
    max-width: 80%;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-doctor[b-eu94sc1h8k] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-patient[b-eu94sc1h8k] {
    background: white;
    color: #212529;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 4px;
}

.message-header[b-eu94sc1h8k] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    gap: 1rem; /* Ensures minimum spacing between speaker and time */
}

.message-speaker[b-eu94sc1h8k] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.message-doctor .message-speaker[b-eu94sc1h8k] {
    color: rgba(255, 255, 255, 0.9);
}

.message-patient .message-speaker[b-eu94sc1h8k] {
    color: #495057;
}

.message-time[b-eu94sc1h8k] {
    opacity: 0.7;
    font-size: 0.7rem;
}

.message-content[b-eu94sc1h8k] {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

/* Scrollbar Styling */
.chat-messages[b-eu94sc1h8k]::-webkit-scrollbar {
    width: 8px;
}

.chat-messages[b-eu94sc1h8k]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-messages[b-eu94sc1h8k]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.chat-messages[b-eu94sc1h8k]::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation */
@keyframes messageSlideIn-b-eu94sc1h8k {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE: Mobile/Tablet - Stack vertically */
@media (max-width: 992px) {
    .call-layout-wrapper[b-eu94sc1h8k] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Prevent grid children from overflowing parent — CSS Grid spec requires min-width:0 */
    .video-section[b-eu94sc1h8k],
    .chat-section[b-eu94sc1h8k] {
        min-width: 0;
        overflow: hidden;
    }

    /* Compress page header on mobile */
    .page-header[b-eu94sc1h8k] {
        margin-bottom: 0.25rem !important;
    }

    .page-header p[b-eu94sc1h8k] {
        display: none;
    }

    .video-wrapper[b-eu94sc1h8k] {
        min-height: 300px;
    }

    .chat-messages[b-eu94sc1h8k] {
        max-height: 300px;
    }

    /* Constrain tab content containers for stacked layout */
    .chat-container[b-eu94sc1h8k] {
        max-height: 350px;
    }

    .consult-ai-container[b-eu94sc1h8k] {
        max-height: 350px;
    }

    .smart-chart-container[b-eu94sc1h8k] {
        max-height: 350px;
    }

    /* Patient Files: reduce fixed heights for stacked layout */
    .patient-file-pdf-frame[b-eu94sc1h8k] {
        min-height: 300px;
    }

    .patient-file-richedit-wrapper[b-eu94sc1h8k] {
        min-height: 300px;
    }

    .patient-file-document-wrapper[b-eu94sc1h8k] {
        min-height: 200px;
    }
}

/* RESPONSIVE: Small Mobile - Reduce padding */
@media (max-width: 576px) {
    /* Tighter grid gap */
    .call-layout-wrapper[b-eu94sc1h8k] {
        min-height: auto;
        gap: 2px;
    }

    /* Reduce page header spacing */
    .page-header[b-eu94sc1h8k] {
        margin-bottom: 0 !important;
    }

    .page-header h3[b-eu94sc1h8k] {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .video-wrapper[b-eu94sc1h8k] {
        min-height: 250px;
    }

    .chat-header[b-eu94sc1h8k] {
        padding: 0.4rem;
        font-size: 0.9rem;
    }

    .chat-messages[b-eu94sc1h8k] {
        padding: 0.5rem;
        max-height: 250px;
    }

    .message-bubble[b-eu94sc1h8k] {
        max-width: 90%;
        padding: 0.4rem 0.6rem;
    }

    /* DxTabs: compact tab headers so 4 tabs fit on narrow screens */
    [b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab {
        padding: 0.5rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Reduce icon spacing in tab headers */
    [b-eu94sc1h8k] .chat-section .anam-tabs .dxbl-tab-text i {
        margin-right: 0.25rem;
        font-size: 0.8rem;
    }

    /* Further constrain tab content for small mobile */
    .chat-container[b-eu94sc1h8k] {
        max-height: 280px;
    }

    .consult-ai-container[b-eu94sc1h8k] {
        max-height: 280px;
    }

    .smart-chart-container[b-eu94sc1h8k] {
        max-height: 280px;
    }

    /* Patient Files: tighter mobile layout */
    .patient-files-container[b-eu94sc1h8k] {
        padding: 0.5rem;
    }

    .patient-file-pdf-frame[b-eu94sc1h8k] {
        min-height: 250px;
    }

    .patient-file-richedit-wrapper[b-eu94sc1h8k] {
        min-height: 250px;
    }

    .patient-file-document-wrapper[b-eu94sc1h8k] {
        min-height: 150px;
    }

    .patient-file-image[b-eu94sc1h8k] {
        max-height: 280px;
    }

    .patient-file-loading[b-eu94sc1h8k] {
        padding: 1.5rem 0.75rem;
    }

    /* Compact nested file tabs on mobile */
    .file-tab-label[b-eu94sc1h8k] {
        font-size: 0.7rem;
        gap: 0.2rem;
    }
}

/* ========================================
   Patient Files Tab Styles
   ======================================== */

.patient-files-container[b-eu94sc1h8k] {
    padding: 0.75rem;
    height: 100%;
    overflow-y: auto;
}

.patient-files-tab-label[b-eu94sc1h8k] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.patient-files-badge[b-eu94sc1h8k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    background-color: #dc3545;
    border-radius: 9px;
    margin-left: 4px;
}

.patient-file-display[b-eu94sc1h8k] {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.patient-file-header[b-eu94sc1h8k] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.patient-file-name[b-eu94sc1h8k] {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.patient-file-image-wrapper[b-eu94sc1h8k] {
    padding: 0.75rem;
    text-align: center;
    background: #fafafa;
}

.patient-file-image[b-eu94sc1h8k] {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Loading spinner for patient file transfer */
.patient-file-loading[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.patient-file-spinner[b-eu94sc1h8k] {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: patient-file-spin-b-eu94sc1h8k 0.8s linear infinite;
}

@keyframes patient-file-spin-b-eu94sc1h8k {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.patient-file-loading-text[b-eu94sc1h8k] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

/* Multi-file nested tabs */
[b-eu94sc1h8k] .patient-file-tabs {
    height: 100%;
    display: flex;
    flex-direction: column;
}

[b-eu94sc1h8k] .patient-file-tabs .dxbl-tabs-panel {
    flex: 1;
    overflow-y: auto;
}

.file-tab-label[b-eu94sc1h8k] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.file-tab-close-btn[b-eu94sc1h8k] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    margin-left: 4px;
    border: none;
    background: transparent;
    color: #6c757d;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
}

.file-tab-close-btn:hover[b-eu94sc1h8k] {
    background-color: #dc3545;
    color: #fff;
}

.file-tab-close-btn .dx-icon[b-eu94sc1h8k] {
    font-size: 10px;
}

/* PDF iframe viewer */
.patient-file-pdf-frame[b-eu94sc1h8k] {
    width: 100%;
    min-height: 500px;
    border: none;
}

/* Document wrapper for PDFs and other file types */
.patient-file-document-wrapper[b-eu94sc1h8k] {
    padding: 0.75rem;
    text-align: center;
    background: #fafafa;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DxRichEdit wrapper for Word/RTF/TXT documents */
.patient-file-richedit-wrapper[b-eu94sc1h8k] {
    width: 100%;
    min-height: 450px;
    height: 100%;
    background: #fff;
}

[b-eu94sc1h8k] .patient-file-richedit-wrapper .dxre-control {
    border: none;
}

.document-download-prompt[b-eu94sc1h8k] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}
/* /Components/Pages/ConsultAI.razor.rz.scp.css */
/* ===================================================================
   ConsultAI Page Styles
   - Follows styling conventions from Record.razor.css and Index.razor.css
   - Responsive design with mobile-first approach
   - Uses DevExpress Blazor component styling patterns
   =================================================================== */

/* Main container for ConsultAI page */
[b-anhm5hr1vd] .consult-ai-container {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
}

/* Welcome section styling */
[b-anhm5hr1vd] .consult-ai-welcome {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    margin-bottom: 1.5rem;
}

    [b-anhm5hr1vd] .consult-ai-welcome::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bs-body-color);
        opacity: 0.05;
        border-radius: 1rem;
        z-index: -1;
    }

    [b-anhm5hr1vd] .consult-ai-welcome h5 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--bs-body-color);
    }

    [b-anhm5hr1vd] .consult-ai-welcome p {
        font-size: 1rem;
        font-weight: 400;
        color: var(--bs-secondary-color);
        margin-bottom: 0;
    }

/* User info card styling */
[b-anhm5hr1vd] .user-info {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 4px solid var(--bs-primary);
    font-size: 1rem;
}

    [b-anhm5hr1vd] .user-info strong {
        color: var(--bs-body-color);
        font-weight: 600;
        margin-right: 0.5rem;
    }

/* ===================================================================
   Diagnostics Panel Styling
   =================================================================== */
[b-anhm5hr1vd] .alert-secondary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

    [b-anhm5hr1vd] .alert-secondary strong {
        color: #495057;
        font-weight: 600;
        margin-right: 0.5rem;
    }

    [b-anhm5hr1vd] .alert-secondary ul {
        list-style: none;
        padding-left: 0;
        margin-top: 0.5rem;
    }

    [b-anhm5hr1vd] .alert-secondary li {
        padding: 0.25rem 0;
        font-size: 0.875rem;
        color: #6c757d;
    }

    [b-anhm5hr1vd] .alert-secondary li::before {
        content: "�";
        color: var(--bs-primary);
        font-weight: bold;
        display: inline-block;
        width: 1em;
        margin-left: -1em;
        margin-right: 0.5rem;
    }

/* Feature cards grid (for future AI feature cards) */
[b-anhm5hr1vd] .consult-ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Individual feature card */
[b-anhm5hr1vd] .feature-card {
    padding: 1.5rem;
    border-radius: 1rem;
    position: relative;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

    [b-anhm5hr1vd] .feature-card:hover {
        box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

    [b-anhm5hr1vd] .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bs-body-color);
        opacity: 0.05;
        border-radius: 1rem;
        z-index: -1;
    }

    [b-anhm5hr1vd] .feature-card .feature-icon {
        width: 4rem;
        height: 4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        color: var(--bs-primary);
    }

    [b-anhm5hr1vd] .feature-card .feature-title {
        font-size: 1.25rem;
        font-weight: 600;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    [b-anhm5hr1vd] .feature-card .feature-description {
        font-size: 0.875rem;
        color: var(--bs-secondary-color);
        text-align: center;
        line-height: 1.5;
    }

/* Alert styling overrides for better consistency */
[b-anhm5hr1vd] .consult-ai-container .alert {
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

    [b-anhm5hr1vd] .consult-ai-container .alert h6 {
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    [b-anhm5hr1vd] .consult-ai-container .alert p {
        margin-bottom: 0;
    }

/* Button spacing and alignment */
[b-anhm5hr1vd] .consult-ai-container .text-end {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

[b-anhm5hr1vd] .consult-ai-container .dxbl-btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ===================================================================
   AI Chat Section - Ensure proper height
   =================================================================== */
[b-anhm5hr1vd] .ai-chat-section {
    min-height: 500px;
    height: calc(100vh - 500px);
    display: flex;
    flex-direction: column;
}

[b-anhm5hr1vd] .medical-ai-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===================================================================
   Responsive Design - Tablet
   =================================================================== */
@media (max-width: 768px) {
    [b-anhm5hr1vd] .consult-ai-container {
        padding: 0.75rem;
    }

    [b-anhm5hr1vd] .consult-ai-welcome {
        padding: 1.5rem 1rem;
    }

        [b-anhm5hr1vd] .consult-ai-welcome h5 {
            font-size: 1.5rem;
        }

        [b-anhm5hr1vd] .consult-ai-welcome p {
            font-size: 0.9375rem;
        }

    [b-anhm5hr1vd] .consult-ai-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    [b-anhm5hr1vd] .feature-card {
        padding: 1.25rem;
    }

    [b-anhm5hr1vd] .user-info {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    [b-anhm5hr1vd] .ai-chat-section {
        min-height: 400px;
        height: calc(100vh - 450px);
    }
}

/* ===================================================================
   Responsive Design - Mobile
   =================================================================== */
@media (max-width: 576px) {
    [b-anhm5hr1vd] .consult-ai-container {
        padding: 0.5rem;
    }

    [b-anhm5hr1vd] .consult-ai-welcome {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1rem;
    }

        [b-anhm5hr1vd] .consult-ai-welcome h5 {
            font-size: 1.25rem;
        }

        [b-anhm5hr1vd] .consult-ai-welcome p {
            font-size: 0.875rem;
        }

    [b-anhm5hr1vd] .feature-card {
        padding: 1rem;
    }

        [b-anhm5hr1vd] .feature-card .feature-icon {
            width: 3rem;
            height: 3rem;
            font-size: 1.5rem;
        }

        [b-anhm5hr1vd] .feature-card .feature-title {
            font-size: 1.125rem;
        }

        [b-anhm5hr1vd] .feature-card .feature-description {
            font-size: 0.8125rem;
        }

    [b-anhm5hr1vd] .user-info {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    /* Stack buttons vertically on small screens */
    [b-anhm5hr1vd] .consult-ai-container .text-end {
        flex-direction: column;
        width: 100%;
    }

    [b-anhm5hr1vd] .consult-ai-container .dxbl-btn {
        width: 100%;
        padding: 0.625rem 1rem;
    }

    /* Reduce alert padding on mobile */
    [b-anhm5hr1vd] .consult-ai-container .alert {
        padding: 0.875rem 1rem;
    }
    
    [b-anhm5hr1vd] .ai-chat-section {
        min-height: 350px;
        height: calc(100vh - 400px);
    }
}

/* ===================================================================
   Loading States
   =================================================================== */
[b-anhm5hr1vd] .consult-ai-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

    [b-anhm5hr1vd] .consult-ai-loading .spinner-border {
        width: 3rem;
        height: 3rem;
        color: var(--bs-primary);
    }

/* ===================================================================
   Error States
   =================================================================== */
[b-anhm5hr1vd] .consult-ai-error {
    padding: 2rem;
    text-align: center;
}

    [b-anhm5hr1vd] .consult-ai-error .error-icon {
        font-size: 3rem;
        color: var(--bs-danger);
        margin-bottom: 1rem;
    }

    [b-anhm5hr1vd] .consult-ai-error h5 {
        color: var(--bs-danger);
        margin-bottom: 0.75rem;
    }

    [b-anhm5hr1vd] .consult-ai-error p {
        color: var(--bs-secondary-color);
        margin-bottom: 1.5rem;
    }

/* ===================================================================
   Animation Utilities
   =================================================================== */
@keyframes fadeIn-b-anhm5hr1vd {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[b-anhm5hr1vd] .consult-ai-container .animate-in {
    animation: fadeIn-b-anhm5hr1vd 0.3s ease-out;
}

/* ===================================================================
   Accessibility Enhancements
   =================================================================== */
[b-anhm5hr1vd] .consult-ai-container .feature-card:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

[b-anhm5hr1vd] .consult-ai-container .dxbl-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    [b-anhm5hr1vd] .consult-ai-welcome,
    [b-anhm5hr1vd] .feature-card {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    [b-anhm5hr1vd] .feature-card {
        transition: none;
    }

    [b-anhm5hr1vd] .consult-ai-container .animate-in {
        animation: none;
    }
}
/* /Components/Pages/CustomChatAI.razor.rz.scp.css */
/* Main Layout Container */
[b-55h2dqvfga] .chat-layout-container {
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

[b-55h2dqvfga] .chat-layout-group {
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

[b-55h2dqvfga] .chat-layout-group .dxbl-form-layout-root {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Item */
[b-55h2dqvfga] .chat-header-item {
    flex-shrink: 0;
}

[b-55h2dqvfga] .chat-header-item .dxbl-form-layout-item-content {
    padding: 0 !important;
}

.chat-header[b-55h2dqvfga] {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header h4[b-55h2dqvfga] {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.chat-header p[b-55h2dqvfga] {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.95;
}

[b-55h2dqvfga] .new-conversation-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

[b-55h2dqvfga] .new-conversation-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Messages Item - Scrollable Area */
[b-55h2dqvfga] .chat-messages-item {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

[b-55h2dqvfga] .chat-messages-item .dxbl-form-layout-item-content {
    padding: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages-scroll-wrapper[b-55h2dqvfga] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.chat-messages-content[b-55h2dqvfga] {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

/* Empty State */
.empty-state[b-55h2dqvfga] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: #6C757D;
    padding: 40px 20px;
}

.empty-icon[b-55h2dqvfga] {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h5[b-55h2dqvfga] {
    margin-bottom: 10px;
    color: #495057;
    font-size: 1.2rem;
}

.empty-state p[b-55h2dqvfga] {
    max-width: 500px;
    color: #6C757D;
    font-size: 0.95rem;
}

/* Messages */
.message[b-55h2dqvfga] {
    padding: 14px 16px;
    border-radius: 12px;
    max-width: 85%;
    animation: fadeIn-b-55h2dqvfga 0.3s ease-in;
}

@keyframes fadeIn-b-55h2dqvfga {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user[b-55h2dqvfga] {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    align-self: flex-end;
    margin-left: auto;
}

.message.assistant[b-55h2dqvfga] {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    align-self: flex-start;
}

.message-header[b-55h2dqvfga] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.message-header strong[b-55h2dqvfga] {
    color: #495057;
    font-weight: 600;
}

.message-header .timestamp[b-55h2dqvfga] {
    color: #6C757D;
    font-size: 0.75rem;
}

.message-content[b-55h2dqvfga] {
    color: #212529;
    line-height: 1.6;
    font-size: 0.95rem;
    word-wrap: break-word;
}

/* Markdown Rendering Styles */
.message-content h1[b-55h2dqvfga],
.message-content h2[b-55h2dqvfga],
.message-content h3[b-55h2dqvfga],
.message-content h4[b-55h2dqvfga],
.message-content h5[b-55h2dqvfga],
.message-content h6[b-55h2dqvfga] {
    margin-top: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #212529;
}

.message-content h1[b-55h2dqvfga] { font-size: 1.4rem; }
.message-content h2[b-55h2dqvfga] { font-size: 1.2rem; }
.message-content h3[b-55h2dqvfga] { font-size: 1.05rem; }
.message-content h4[b-55h2dqvfga] { font-size: 0.95rem; }

.message-content ul[b-55h2dqvfga],
.message-content ol[b-55h2dqvfga] {
    margin: 10px 0;
    padding-left: 24px;
}

.message-content li[b-55h2dqvfga] {
    margin: 5px 0;
}

.message-content p[b-55h2dqvfga] {
    margin: 8px 0;
}

.message-content code[b-55h2dqvfga] {
    background: #F8F9FA;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #E83E8C;
}

.message-content pre[b-55h2dqvfga] {
    background: #F8F9FA;
    border: 1px solid #DEE2E6;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    margin: 12px 0;
}

.message-content pre code[b-55h2dqvfga] {
    background: none;
    padding: 0;
    color: #212529;
}

.message-content blockquote[b-55h2dqvfga] {
    border-left: 4px solid #4A90E2;
    padding-left: 16px;
    margin: 12px 0;
    color: #495057;
    font-style: italic;
}

.message-content table[b-55h2dqvfga] {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.9rem;
}

.message-content th[b-55h2dqvfga],
.message-content td[b-55h2dqvfga] {
    border: 1px solid #DEE2E6;
    padding: 6px 10px;
    text-align: left;
}

.message-content th[b-55h2dqvfga] {
    background: #F8F9FA;
    font-weight: 600;
}

.streaming-cursor[b-55h2dqvfga] {
    display: inline-block;
    animation: blink-b-55h2dqvfga 1s infinite;
    color: #4A90E2;
    font-weight: bold;
}

@keyframes blink-b-55h2dqvfga {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Input Item */
[b-55h2dqvfga] .chat-input-item {
    flex-shrink: 0;
}

[b-55h2dqvfga] .chat-input-item .dxbl-form-layout-item-content {
    padding: 0 !important;
}

.chat-input-area[b-55h2dqvfga] {
    border-top: 1px solid #E9ECEF;
    padding: 16px 20px;
    background: #F8F9FA;
    flex-shrink: 0;
}

[b-55h2dqvfga] .chat-input-memo {
    margin-bottom: 12px;
}

[b-55h2dqvfga] .chat-input-memo .dxbl-edit-area {
    border: 1px solid #CED4DA;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.95rem;
}

[b-55h2dqvfga] .chat-input-memo .dxbl-edit-area:focus-within {
    border-color: #4A90E2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.input-actions[b-55h2dqvfga] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

[b-55h2dqvfga] .input-actions .dxbl-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 500;
}

/* Send Button Icon Styling */
[b-55h2dqvfga] .send-button {
    min-width: 48px !important;
    min-height: 48px !important;
    padding: 10px !important;
}

[b-55h2dqvfga] .send-icon {
    width: 24px !important;
    height: 24px !important;
    background-image: url("/images/Send-White.svg") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: brightness(0) invert(1) !important;
    display: inline-block !important;
}

[b-55h2dqvfga] .send-button .dxbl-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

[b-55h2dqvfga] .send-button:disabled ::deep .send-icon {
    opacity: 0.5;
}

/* Scrollbar Styling */
.chat-messages-scroll-wrapper[b-55h2dqvfga]::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-scroll-wrapper[b-55h2dqvfga]::-webkit-scrollbar-track {
    background: #F1F1F1;
}

.chat-messages-scroll-wrapper[b-55h2dqvfga]::-webkit-scrollbar-thumb {
    background: #C1C1C1;
    border-radius: 4px;
}

.chat-messages-scroll-wrapper[b-55h2dqvfga]::-webkit-scrollbar-thumb:hover {
    background: #A0A0A0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    [b-55h2dqvfga] .chat-layout-container {
        height: calc(100vh - 60px);
    }

    .chat-header[b-55h2dqvfga] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    .chat-header h4[b-55h2dqvfga] {
        font-size: 1.1rem;
    }

    .chat-header p[b-55h2dqvfga] {
        font-size: 0.8rem;
    }

    [b-55h2dqvfga] .new-conversation-btn {
        width: 100%;
        margin-top: 8px;
    }

    .chat-messages-content[b-55h2dqvfga] {
        padding: 12px;
        gap: 12px;
    }

    .message[b-55h2dqvfga] {
        max-width: 95%;
        padding: 12px 14px;
    }

    .message-content[b-55h2dqvfga] {
        font-size: 0.9rem;
    }

    .message-content h1[b-55h2dqvfga] { font-size: 1.2rem; }
    .message-content h2[b-55h2dqvfga] { font-size: 1.1rem; }
    .message-content h3[b-55h2dqvfga] { font-size: 1rem; }
    .message-content h4[b-55h2dqvfga] { font-size: 0.9rem; }

    .message-content table[b-55h2dqvfga] {
        font-size: 0.8rem;
    }

    .message-content th[b-55h2dqvfga],
    .message-content td[b-55h2dqvfga] {
        padding: 4px 6px;
    }

    .chat-input-area[b-55h2dqvfga] {
        padding: 12px 16px;
    }

    .input-actions[b-55h2dqvfga] {
        flex-direction: row;
        gap: 8px;
    }

    [b-55h2dqvfga] .input-actions .dxbl-btn:not(.send-button) {
        flex: 1;
    }

    [b-55h2dqvfga] .send-button {
        min-width: 56px;
        min-height: 56px;
        flex-shrink: 0;
    }

    .empty-state[b-55h2dqvfga] {
        padding: 20px 16px;
        min-height: 200px;
    }

    .empty-icon[b-55h2dqvfga] {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .empty-state h5[b-55h2dqvfga] {
        font-size: 1rem;
    }

    .empty-state p[b-55h2dqvfga] {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 576px) {
    [b-55h2dqvfga] .chat-layout-container {
        height: calc(100vh - 50px);
    }

    .chat-header[b-55h2dqvfga] {
        padding: 10px 12px;
    }

    .chat-header h4[b-55h2dqvfga] {
        font-size: 1rem;
    }

    .chat-messages-content[b-55h2dqvfga] {
        padding: 10px;
        gap: 10px;
    }

    .message[b-55h2dqvfga] {
        padding: 10px 12px;
    }

    .message-content[b-55h2dqvfga] {
        font-size: 0.85rem;
    }

    .chat-input-area[b-55h2dqvfga] {
        padding: 10px 12px;
    }

    [b-55h2dqvfga] .chat-input-memo .dxbl-edit-area {
        padding: 8px;
        font-size: 0.9rem;
    }

    [b-55h2dqvfga] .send-button {
        min-width: 52px;
        min-height: 52px;
    }
}

/* Loading Spinner */
.spinner-border-sm[b-55h2dqvfga] {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}
/* /Components/Pages/Help.razor.rz.scp.css */
/* Help page layout */
.help-container[b-1ra7y7v39y] {
    display: flex;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 120px);
}

/* Sidebar */
.help-sidebar[b-1ra7y7v39y] {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid var(--bs-border-color, #dee2e6);
    padding-right: 1rem;
}

.help-sidebar-title[b-1ra7y7v39y] {
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--bs-body-color);
}

/* Content area */
.help-content[b-1ra7y7v39y] {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
}

.help-article[b-1ra7y7v39y] {
    padding: 0.5rem 1rem 2rem 1rem;
    line-height: 1.7;
    color: var(--bs-body-color);
}

/* Markdown rendered content styling */
[b-1ra7y7v39y] .help-article h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-border-color, #dee2e6);
}

[b-1ra7y7v39y] .help-article h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--bs-primary, #0d6efd);
}

[b-1ra7y7v39y] .help-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

[b-1ra7y7v39y] .help-article p {
    margin-bottom: 0.75rem;
}

[b-1ra7y7v39y] .help-article ul,
[b-1ra7y7v39y] .help-article ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

[b-1ra7y7v39y] .help-article li {
    margin-bottom: 0.35rem;
}

[b-1ra7y7v39y] .help-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

[b-1ra7y7v39y] .help-article th,
[b-1ra7y7v39y] .help-article td {
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: 0.6rem 0.85rem;
    text-align: left;
}

[b-1ra7y7v39y] .help-article th {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    font-weight: 600;
}

[b-1ra7y7v39y] .help-article tr:nth-child(even) {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
}

[b-1ra7y7v39y] .help-article blockquote {
    border-left: 4px solid var(--bs-primary, #0d6efd);
    background-color: var(--bs-primary-bg-subtle, #cfe2ff);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}

[b-1ra7y7v39y] .help-article blockquote p:last-child {
    margin-bottom: 0;
}

[b-1ra7y7v39y] .help-article code {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

[b-1ra7y7v39y] .help-article pre {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

[b-1ra7y7v39y] .help-article pre code {
    background: none;
    padding: 0;
}

[b-1ra7y7v39y] .help-article hr {
    border: none;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    margin: 1.5rem 0;
}

[b-1ra7y7v39y] .help-article strong {
    font-weight: 600;
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
    .help-container[b-1ra7y7v39y] {
        flex-direction: column;
        padding: 0.5rem;
    }

    .help-sidebar[b-1ra7y7v39y] {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--bs-border-color, #dee2e6);
        padding-right: 0;
        padding-bottom: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .help-article[b-1ra7y7v39y] {
        padding: 0.5rem;
    }

    [b-1ra7y7v39y] .help-article h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .help-container[b-1ra7y7v39y] {
        padding: 0.25rem;
        gap: 0.75rem;
        min-height: auto;
    }

    .help-sidebar[b-1ra7y7v39y] {
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .help-sidebar-title[b-1ra7y7v39y] {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding: 0.25rem 0.5rem;
    }

    .help-article[b-1ra7y7v39y] {
        padding: 0.25rem;
    }

    [b-1ra7y7v39y] .help-article h1 {
        font-size: 1.25rem;
    }

    [b-1ra7y7v39y] .help-article h2 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }

    [b-1ra7y7v39y] .help-article h3 {
        font-size: 1rem;
    }

    [b-1ra7y7v39y] .help-article table {
        font-size: 0.85rem;
    }

    [b-1ra7y7v39y] .help-article th,
    [b-1ra7y7v39y] .help-article td {
        padding: 0.4rem 0.5rem;
    }

    [b-1ra7y7v39y] .help-article pre {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
/* /Components/Pages/Index.razor.rz.scp.css */
[b-obwopcbr6j] .welcome-gridlayout {
    margin: auto;
    width: auto;
    height: auto;
}

[b-obwopcbr6j] .welcome-gridlayout .dxbl-gridlayout-root {
    align-content: center;
    justify-content: center;
}

[b-obwopcbr6j] .title-header-text {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.20rem;
}

[b-obwopcbr6j] .title-content-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.20rem;
}

[b-obwopcbr6j] .welcome-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

[b-obwopcbr6j] .welcome-card {
    width: 26.25rem;
    height: 15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
    border-radius: 1rem;
    color: var(--bs-link-color-rgb);
    gap: 1.5rem;
    text-decoration: none;
    position: relative;
}

    [b-obwopcbr6j] .welcome-card:hover {
        box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-img {
        width: 6.5rem;
        height: 6.5rem;
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-text {
        font-size: 1.75rem;
        font-weight: 600;
        letter-spacing: 0em;
        text-align: center;
        text-decoration: unset;
    }

    [b-obwopcbr6j] .icon-fill {
        fill: var(--bs-primary);
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-back {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bs-body-color);
        opacity: 0.05;
        border-radius: 1rem;
        z-index: -2;
    }

/* Responsive - tablet */
@media (max-width: 992px) {
    [b-obwopcbr6j] .welcome-cards {
        gap: 1rem;
    }

    [b-obwopcbr6j] .welcome-card {
        width: 20rem;
        height: 12rem;
        gap: 1rem;
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-img {
        width: 5rem;
        height: 5rem;
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-text {
        font-size: 1.35rem;
    }
}

/* Responsive - small mobile */
@media (max-width: 576px) {
    [b-obwopcbr6j] .welcome-cards {
        gap: 0.75rem;
        flex-direction: column;
        align-items: center;
    }

    [b-obwopcbr6j] .welcome-card {
        width: 100%;
        height: 5.5rem;
        flex-direction: row;
        border-radius: 0.75rem;
        gap: 1rem;
        padding: 0 1.25rem;
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-img {
        width: 3rem;
        height: 3rem;
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-text {
        font-size: 1.1rem;
    }

    [b-obwopcbr6j] .welcome-card .welcome-card-back {
        border-radius: 0.75rem;
    }

    [b-obwopcbr6j] .title-header-text {
        font-size: 1.5rem;
    }

    [b-obwopcbr6j] .title-content-text {
        font-size: 0.9rem;
    }

    [b-obwopcbr6j] .welcome-gridlayout {
        padding: 0;
    }
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Login page container - centers the form vertically and horizontally */
.login-container[b-eciizz265e] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 1rem;
}

/* Login form card - white card with shadow */
.login-form-card[b-eciizz265e] {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 540px;
}

/* Login title - centered and prominent */
.login-title[b-eciizz265e] {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Form labels - consistent styling */
.form-label[b-eciizz265e] {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

/* Login button - full width and prominent */
.login-button[b-eciizz265e] {
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s ease;
}

.login-button:hover:not(:disabled)[b-eciizz265e] {
    opacity: 0.9;
}

.login-button:disabled[b-eciizz265e] {
    cursor: not-allowed;
    opacity: 0.65;
}

/* Login button loading state — default: spinner hidden, text visible */
.login-button .login-spinner[b-eciizz265e],
.login-button .login-loading-text[b-eciizz265e] {
    display: none;
}

.login-button .login-default-text[b-eciizz265e] {
    display: inline;
}

/* When JS adds .is-loading: show spinner + "Signing in...", hide "Login" */
.login-button.is-loading .login-spinner[b-eciizz265e] {
    display: inline-flex;
}

.login-button.is-loading .login-loading-text[b-eciizz265e] {
    display: inline;
}

.login-button.is-loading .login-default-text[b-eciizz265e] {
    display: none;
}

/* Input fields - consistent styling */
[b-eciizz265e] .dxbl-textbox input {
    height: 44px;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}

/* Error alert styling */
.alert-danger[b-eciizz265e] {
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Validation summary styling */
[b-eciizz265e] .validation-summary-errors {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

[b-eciizz265e] .validation-summary-errors ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

/* Form groups */
.form-group[b-eciizz265e] {
    margin-bottom: 1rem;
}

.form-group.mb-3[b-eciizz265e] {
    margin-bottom: 1rem !important;
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .login-form-card[b-eciizz265e] {
        padding: 2rem 1.5rem;
        max-width: 480px;
    }

    .login-title[b-eciizz265e] {
        font-size: 1.85rem;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .login-container[b-eciizz265e] {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .login-form-card[b-eciizz265e] {
        padding: 1.5rem 1rem;
    }

    .login-title[b-eciizz265e] {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .login-button[b-eciizz265e] {
        height: 44px;
        font-size: 0.95rem;
    }

    [b-eciizz265e] .dxbl-textbox input {
        height: 42px;
        font-size: 0.95rem;
    }
}
/* /Components/Pages/LogoutButton.razor.rz.scp.css */
[b-47nyv5y7dv] .icon-log-out {
    -webkit-mask-image: url("images/account/log-out.svg");
    mask-image: url("images/account/log-out.svg");
}

.logout-menu-item[b-47nyv5y7dv] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    padding-left: 0.5rem;
    cursor: pointer;
    color: var(--bs-white);
    transition: background-color 0.2s;
}

.logout-menu-item:hover[b-47nyv5y7dv] {
    background-color: rgba(255, 255, 255, 0.1);
}

.logout-menu-item .icon[b-47nyv5y7dv] {
    width: 1.5rem;
    height: 1.5rem;
    background-position: center;
    background-repeat: no-repeat;
}

.logout-menu-item .logout-icon[b-47nyv5y7dv] {
    background-image: url("images/Lock-White.svg");
}

.logout-menu-item .logout-text[b-47nyv5y7dv] {
    font-size: 1.1rem;
}
/* /Components/Pages/Record.razor.rz.scp.css */
/* Force toast to show and be visible on screen */
.dxbl-toast[b-pi7x5f54jf] {
    z-index: 9999 !important;
    position: fixed !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background-color: #323232 !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 6px;
    display: block !important;
}

/* ADDED: Compact spacing for form sections */
.compact-spacing[b-pi7x5f54jf] {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.compact-spacing .mb-2[b-pi7x5f54jf] {
    margin-bottom: 0.5rem !important;
}

.compact-spacing .mb-3[b-pi7x5f54jf] {
    margin-bottom: 0.75rem !important;
}

/* ADDED: Zero-margin processing indicator */
.processing-indicator-compact[b-pi7x5f54jf] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0.25rem !important;
}

.processing-indicator-compact .dxbl-loading-panel[b-pi7x5f54jf] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ADDED: Ensure form container is scrollable */
.record-form-container[b-pi7x5f54jf] {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
}

/* ADDED: Reduce default DxFormLayoutItem margins on mobile */
@media (max-width: 768px) {
    .record-form-container[b-pi7x5f54jf] {
        padding: 0.5rem;
    }

    /* Tighter spacing for form items */
    .record-form-container .dxbl-form-layout-item[b-pi7x5f54jf] {
        margin-bottom: 0.5rem !important;
    }

    /* Processing indicator even tighter on mobile */
    .processing-indicator-compact[b-pi7x5f54jf] {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }

    .processing-indicator-compact .dxbl-loading-panel[b-pi7x5f54jf] {
        padding: 0.25rem !important;
    }

    .processing-indicator-compact div[style*="min-height"][b-pi7x5f54jf] {
        min-height: 80px !important;
    }

    /* Reduce heading margins */
    .record-form-container h3[b-pi7x5f54jf],
    .record-form-container h6[b-pi7x5f54jf] {
        margin-bottom: 0.75rem !important;
    }

    /* Compact button spacing */
    .record-form-container .btn-lg[b-pi7x5f54jf] {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    /* Reduce gap between buttons */
    .record-form-container .gap-2[b-pi7x5f54jf] {
        gap: 0.5rem !important;
    }

    /* Reduce spacing for validation messages */
    .record-form-container .text-danger.small[b-pi7x5f54jf],
    .record-form-container .text-muted.small[b-pi7x5f54jf] {
        font-size: 0.85rem;
        margin-top: 0.25rem !important;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .record-form-container[b-pi7x5f54jf] {
        padding: 0.25rem;
    }

    .record-form-container .dxbl-form-layout-item[b-pi7x5f54jf] {
        margin-bottom: 0.35rem !important;
    }

    /* Ultra-compact processing indicator */
    .processing-indicator-compact[b-pi7x5f54jf] {
        padding-top: 0 !important;
    }

    .processing-indicator-compact div[style*="min-height"][b-pi7x5f54jf] {
        min-height: 60px !important;
    }

    .record-form-container .btn-lg[b-pi7x5f54jf] {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Stack buttons vertically on very small screens */
    .record-form-container .d-flex.gap-2[b-pi7x5f54jf] {
        flex-direction: column;
        width: 100%;
    }

    .record-form-container .d-flex.gap-2 .dxbl-btn[b-pi7x5f54jf] {
        width: 100%;
    }
}

/* Ensure buttons are always visible and accessible */
.record-form-container .text-center[b-pi7x5f54jf] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Smart Chart full width styling */
.smart-chart-container[b-pi7x5f54jf],
.smart-chart-content[b-pi7x5f54jf],
.smart-chart-timestamp[b-pi7x5f54jf],
.chart-summary-body[b-pi7x5f54jf] {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure DxTabs content area takes full width */
[b-pi7x5f54jf] .dxbl-tabs-content,
[b-pi7x5f54jf] .dxbl-tab-page {
    width: 100% !important;
}

/* Ensure the Consult AI form group content area takes full width */
[b-pi7x5f54jf] .dxbl-form-layout-group-content {
    width: 100% !important;
}
/* /Components/Pages/Scribe.razor.rz.scp.css */
.custom-audio[b-z4m8jrsa5l] {
    width: 100%;
    height: 25px;
}

   /* .custom-audio::-internal-media-controls-download-button {
        display: none;
    }*/



.counter-block[b-z4m8jrsa5l] {
    display: flex;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    flex-direction: column;
    border-radius: 1rem;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    width: 16.875rem;
    height: 17rem;
    position: relative;
}

    .counter-block .counter-content[b-z4m8jrsa5l] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .counter-block .counter-count[b-z4m8jrsa5l] {
        font-size: 7.5rem;
        font-weight: 400;
        line-height: 7.75rem;
    }

    .counter-block .counter-block-back[b-z4m8jrsa5l] {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bs-body-color);
        opacity: 0.05;
        border-radius: 1rem;
        z-index: -2;
    }

/* Lock/Unlock icons for tab header */
[b-z4m8jrsa5l] .tab-icon-lock {
    width: 16px;
    height: 16px;
    background-image: url("/images/lock-note.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

[b-z4m8jrsa5l] .tab-icon-unlock {
    width: 16px;
    height: 16px;
    background-image: url("/images/unlock-note.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Container for AI Note tab - fills available space */
.ainote-container[b-z4m8jrsa5l] {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Wrapper for editor - creates positioning context */
.ainote-editor-wrapper[b-z4m8jrsa5l] {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Scribe page button toolbar */
.scribe-button-toolbar[b-z4m8jrsa5l] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

/* Ensure consistent spacing for DxDropDownButton within toolbar */
.scribe-button-toolbar[b-z4m8jrsa5l]  .dxbl-btn-dropdown {
    margin: 0;
}

/* Ensure all buttons in the toolbar have consistent margins */
.scribe-button-toolbar[b-z4m8jrsa5l]  .dxbl-btn {
    margin: 0;
}

/* ========================================
   Smart Chart - Mobile Responsive Styles
   ======================================== */

/* Smart Chart container - default styles for desktop */
.smart-chart-container[b-z4m8jrsa5l] {
    height: 100%;
    position: relative;
    padding: 1rem;
}

/* Smart Chart content area */
.smart-chart-content[b-z4m8jrsa5l] {
    padding-right: 0.5rem;
}

/* Chart summary body - the main content area */
.chart-summary-body[b-z4m8jrsa5l] {
    padding: 1rem;
}

/* Timestamp bar */
.smart-chart-timestamp[b-z4m8jrsa5l] {
    padding: 0.5rem;
}

/* Mobile styles - maximize width on small screens */
@media (max-width: 768px) {
    /* Reduce container padding to near-zero on mobile */
    .smart-chart-container[b-z4m8jrsa5l] {
        padding: 0.25rem !important;
    }
    
    /* Remove extra padding on content wrapper */
    .smart-chart-content[b-z4m8jrsa5l] {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    /* Reduce chart summary body padding on mobile */
    .chart-summary-body[b-z4m8jrsa5l] {
        padding: 0.5rem !important;
        border-radius: 4px !important;
        margin: 0 !important;
    }
    
    /* Reduce timestamp bar padding */
    .smart-chart-timestamp[b-z4m8jrsa5l] {
        padding: 0.35rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Empty state - reduce margins */
    .smart-chart-container .empty-state[b-z4m8jrsa5l] {
        padding: 0.5rem !important;
    }
    
    /* Alert messages - reduce margins */
    .smart-chart-container .alert[b-z4m8jrsa5l] {
        margin-bottom: 0.5rem !important;
        padding: 0.5rem !important;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    .smart-chart-container[b-z4m8jrsa5l] {
        padding: 0.15rem !important;
    }
    
    .chart-summary-body[b-z4m8jrsa5l] {
        padding: 0.35rem !important;
        font-size: 0.9em !important;
    }
    
    .smart-chart-timestamp[b-z4m8jrsa5l] {
        padding: 0.25rem !important;
        font-size: 0.85em;
    }
}

/* ========================================
   Mobile Responsive - Tablet
   ======================================== */
@media (max-width: 992px) {
    .scribe-button-toolbar[b-z4m8jrsa5l] {
        gap: 4px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .scribe-page-header[b-z4m8jrsa5l] {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .scribe-page-sub[b-z4m8jrsa5l] {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .counter-block[b-z4m8jrsa5l] {
        width: auto;
        height: auto;
        padding: 1.5rem 1rem;
    }

    .counter-block .counter-count[b-z4m8jrsa5l] {
        font-size: 4rem;
        line-height: 4.5rem;
    }
}

/* ========================================
   Mobile Responsive - Small Mobile (412px)
   ======================================== */
@media (max-width: 576px) {
    .scribe-button-toolbar[b-z4m8jrsa5l] {
        gap: 3px;
        margin-bottom: 6px;
    }

    .scribe-page-header[b-z4m8jrsa5l] {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }

    .scribe-page-sub[b-z4m8jrsa5l] {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .counter-block[b-z4m8jrsa5l] {
        width: auto;
        height: auto;
        padding: 1rem 0.75rem;
        gap: 0.75rem;
    }

    .counter-block .counter-count[b-z4m8jrsa5l] {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    .custom-audio[b-z4m8jrsa5l] {
        height: 20px;
    }
}
/* /Components/Pages/Scribes.razor.rz.scp.css */
/*------------------------------------------------------------------------------------------------------------------
  Layout: CSS Grid with three rows — button, search box, list
------------------------------------------------------------------------------------------------------------------*/
.scribes-container-grid[b-z1k9btf9kn] {
    display: grid;
    grid-template-rows: auto auto 1fr; /* row1=button, row2=search box, row3=list fills remaining */
    row-gap: 10px;
    height: calc(100vh - 80px);
    padding: 10px;
}

/*==================================================================================================
  “Record New Scribe” button (full‐width)
==================================================================================================*/
.record-button[b-z1k9btf9kn] {
    /* Because Width="100%" is set on the DxButton, this rule is mostly for added padding:
     DevExpress will render the button as full-width (100% of the container). */
    padding: 10px 20px;
    font-size: 1rem;
}

.open-button[b-z1k9btf9kn] {
    padding: 10px 20px;
    font-size: 1rem;
    /* let the button size itself naturally, or give it a fixed width */
    width: auto !important;
}

/*------------------------------------------------------------------------------------------------------------------
  Row 1: Full-width DevExpress button
------------------------------------------------------------------------------------------------------------------*/
.button-wrapper .dx-button[b-z1k9btf9kn] {
    width: 100%;
}

.button-wrapper2 .dx-button[b-z1k9btf9kn] {
    display: flex;
    justify-content: flex-end; /* push everything in here to the right */
    margin-bottom: 10px; /* optional spacing below */
}

/*------------------------------------------------------------------------------------------------------------------
  Row 2: Full-width search textbox
------------------------------------------------------------------------------------------------------------------*/
.search-box[b-z1k9btf9kn] {
    width: 100%;
}

/*------------------------------------------------------------------------------------------------------------------
  Row 3 wrapper: fill its grid-row and scroll if content overflows
------------------------------------------------------------------------------------------------------------------*/
.list-wrapper[b-z1k9btf9kn] {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    /* remove any overflow-y from here */
}
/*------------------------------------------------------------------------------------------------------------------
  The ListBox itself: stretch to fill its wrapper
------------------------------------------------------------------------------------------------------------------*/
.my-scribes-list[b-z1k9btf9kn] {
    width: 100%;
    height: 100%;
    overflow-y: auto; /* only this scrollbar remains */
}
/*------------------------------------------------------------------------------------------------------------------
  Styling for the date-group header (e.g. “April 5”, “May 30”)
------------------------------------------------------------------------------------------------------------------*/
.date-header[b-z1k9btf9kn] {
    font-weight: 600;
    margin: 10px 0 5px 0;
    color: #666666;
    padding-left: 5px;
}

/*------------------------------------------------------------------------------------------------------------------
  Each “row” of the ListBox: two columns (left + right)
------------------------------------------------------------------------------------------------------------------*/
.scribe-row[b-z1k9btf9kn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

/* Left column: Title (bold) and subtitle */
.scribe-left[b-z1k9btf9kn] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Title text (e.g. “John Doe H&P”) */
.scribe-title[b-z1k9btf9kn] {
    font-weight: 600;
    font-size: 1rem;
    color: #333333;
    margin-bottom: 2px;
}

/* Subtitle text (e.g. “H&P Note • 3m 5s”) */
.scribe-subtitle[b-z1k9btf9kn] {
    font-size: 0.875rem;
    color: #777777;
}

/* Right column: Status (green check + text) and time */
.scribe-right[b-z1k9btf9kn] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
}

/* Status line: green check icon + “Completed” */
.status-text[b-z1k9btf9kn] {
    font-size: 0.875rem;
    color: #28a745;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
}

.status-completed[b-z1k9btf9kn] {
    color: #28a745; /* green */
}

.status-inprogress[b-z1k9btf9kn] {
    color: #ffc107; /* yellow/orange */
}

.status-failed[b-z1k9btf9kn] {
    color: #dc3545; /* red */
}

.status-canceled[b-z1k9btf9kn] {
    color: #6c757d; /* gray */
}

.status-transferred[b-z1k9btf9kn] {
    color: #17a2b8; /* blue/teal */
}

.status-unknown[b-z1k9btf9kn] {
    color: #6c757d; /* gray */
}

    /* Space between check icon and status text */
    .status-text .dx-icon-check[b-z1k9btf9kn] {
        margin-right: 4px;
    }

/* Time label (e.g. "9:15 am") */
.time-label[b-z1k9btf9kn] {
    font-size: 0.75rem;
    color: #999999;
}

/* ========================================
   Note Type Popup - Responsive Styles
   ======================================== */

/* Default desktop width */
[b-z1k9btf9kn] .note-type-popup {
    width: 450px;
    max-width: 95vw;
}

.scribe-info-name[b-z1k9btf9kn] {
    font-size: 1.1rem;
    word-break: break-word;
}

/* Mobile styles */
@media (max-width: 576px) {
    [b-z1k9btf9kn] .note-type-popup {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 0 auto;
    }
    
    [b-z1k9btf9kn] .note-type-popup .dxbl-popup-body {
        padding: 0.5rem !important;
    }
    
    .scribe-info-name[b-z1k9btf9kn] {
        font-size: 1rem;
    }
    
    /* Make buttons full width on mobile */
    .w-sm-auto[b-z1k9btf9kn] {
        width: 100% !important;
    }
}

/* Tablet and up - buttons auto width */
@media (min-width: 577px) {
    .w-sm-auto[b-z1k9btf9kn] {
        width: auto !important;
    }
}

/* ========================================
   Mobile Responsive - Tablet
   ======================================== */
@media (max-width: 992px) {
    .scribes-container-grid[b-z1k9btf9kn] {
        padding: 4px;
        row-gap: 6px;
        height: calc(100vh - 60px);
    }

    .open-button[b-z1k9btf9kn] {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .scribe-row[b-z1k9btf9kn] {
        padding: 6px 0;
    }

    .scribe-title[b-z1k9btf9kn] {
        font-size: 0.95rem;
    }

    .scribe-subtitle[b-z1k9btf9kn] {
        font-size: 0.8rem;
    }

    .status-text[b-z1k9btf9kn] {
        font-size: 0.8rem;
    }

    .time-label[b-z1k9btf9kn] {
        font-size: 0.7rem;
    }
}

/* ========================================
   Mobile Responsive - Small Mobile (412px)
   ======================================== */
@media (max-width: 576px) {
    .scribes-container-grid[b-z1k9btf9kn] {
        padding: 2px;
        row-gap: 4px;
        height: calc(100vh - 50px);
    }

    .open-button[b-z1k9btf9kn] {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .scribe-row[b-z1k9btf9kn] {
        padding: 5px 0;
    }

    .scribe-title[b-z1k9btf9kn] {
        font-size: 0.9rem;
    }

    .scribe-subtitle[b-z1k9btf9kn] {
        font-size: 0.75rem;
    }

    .scribe-right[b-z1k9btf9kn] {
        max-width: 110px;
    }

    .status-text[b-z1k9btf9kn] {
        font-size: 0.75rem;
    }

    .time-label[b-z1k9btf9kn] {
        font-size: 0.65rem;
    }
}
/* /Components/Pages/SelectLocation.razor.rz.scp.css */
/* Location page container - centers the form vertically and horizontally */
.location-container[b-cfef4gmj9s] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 1rem;
}

/* Location form card - white card with shadow, matches login page */
.location-form-card[b-cfef4gmj9s] {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 540px;
}

/* Title - centered and prominent, same as login */
.location-title[b-cfef4gmj9s] {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

/* Form labels */
.form-label[b-cfef4gmj9s] {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

/* Open Location button - full width, matches login button */
.location-button[b-cfef4gmj9s] {
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s ease;
}

.location-button:hover:not(:disabled)[b-cfef4gmj9s] {
    opacity: 0.9;
}

.location-button:disabled[b-cfef4gmj9s] {
    cursor: not-allowed;
    opacity: 0.65;
}

/* DxComboBox sizing to match the login input fields */
[b-cfef4gmj9s] .dxbl-combobox {
    height: 44px;
    font-size: 1rem;
}

[b-cfef4gmj9s] .dxbl-combobox input {
    height: 44px;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
}

/* Error alert styling */
.alert-danger[b-cfef4gmj9s] {
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form groups */
.form-group[b-cfef4gmj9s] {
    margin-bottom: 1rem;
}

.form-group.mb-4[b-cfef4gmj9s] {
    margin-bottom: 1.5rem !important;
}

/* Responsive adjustments for tablets */
@media (max-width: 768px) {
    .location-form-card[b-cfef4gmj9s] {
        padding: 2rem 1.5rem;
        max-width: 480px;
    }

    .location-title[b-cfef4gmj9s] {
        font-size: 1.85rem;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 576px) {
    .location-container[b-cfef4gmj9s] {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }

    .location-form-card[b-cfef4gmj9s] {
        padding: 1.5rem 1rem;
    }

    .location-title[b-cfef4gmj9s] {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .location-button[b-cfef4gmj9s] {
        height: 44px;
        font-size: 0.95rem;
    }

    [b-cfef4gmj9s] .dxbl-combobox input {
        height: 42px;
        font-size: 0.95rem;
    }
}
/* /Components/Pages/TelehealthVisits.razor.rz.scp.css */
/* Telehealth Visits Page Styles */

.telehealth-visits-container[b-pb8o6xxtz0] {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Animation for fade-in effect */
.animate-in[b-pb8o6xxtz0] {
    animation: fadeIn-b-pb8o6xxtz0 0.5s ease-in;
}

@keyframes fadeIn-b-pb8o6xxtz0 {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Header */
.page-header[b-pb8o6xxtz0] {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h3[b-pb8o6xxtz0] {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-header p[b-pb8o6xxtz0] {
    margin-bottom: 0;
}

/* User Info Card */
.user-info-card[b-pb8o6xxtz0] {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #007bff;
}

.user-info-card .dx-icon-user[b-pb8o6xxtz0] {
    color: #007bff;
    margin-right: 0.5rem;
}

/* Quick Actions */
.quick-actions[b-pb8o6xxtz0] {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-button[b-pb8o6xxtz0] {
    min-width: 160px;
}

/* Content Section */
.content-section[b-pb8o6xxtz0] {
    margin-top: 1.5rem;
}

/* Visits Cards */
.visits-card[b-pb8o6xxtz0] {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.visits-card h5[b-pb8o6xxtz0] {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.visits-card h5 .dx-icon[b-pb8o6xxtz0] {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Visits List */
.visits-list[b-pb8o6xxtz0] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Visit Item */
.visit-item[b-pb8o6xxtz0] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007bff;
    transition: all 0.2s ease;
    gap: 1rem;
}

.visit-item:hover[b-pb8o6xxtz0] {
    background: #e9ecef;
    transform: translateX(4px);
}

.visit-item.completed[b-pb8o6xxtz0] {
    border-left-color: #28a745;
}

/* Visit Avatar */
.visit-avatar[b-pb8o6xxtz0] {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
}

.visit-avatar .avatar-img[b-pb8o6xxtz0] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visit-avatar .avatar-placeholder[b-pb8o6xxtz0] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dee2e6;
    color: #6c757d;
    font-size: 1.5rem;
}

.visit-info[b-pb8o6xxtz0] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}

.visit-info strong[b-pb8o6xxtz0] {
    color: #2c3e50;
    font-size: 1rem;
}

.visit-time[b-pb8o6xxtz0] {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Empty State */
.empty-state[b-pb8o6xxtz0] {
    text-align: center;
    padding: 2rem;
}

.empty-state p[b-pb8o6xxtz0] {
    margin: 0;
}

/* Navigation Footer */
.navigation-footer[b-pb8o6xxtz0] {
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .telehealth-visits-container[b-pb8o6xxtz0] {
        padding: 1rem;
    }

    .quick-actions[b-pb8o6xxtz0] {
        flex-direction: column;
    }

    .action-button[b-pb8o6xxtz0] {
        width: 100%;
    }

    .visit-item[b-pb8o6xxtz0] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .visit-avatar[b-pb8o6xxtz0] {
        width: 50px;
        height: 50px;
    }

    .visit-info[b-pb8o6xxtz0] {
        width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .telehealth-visits-container[b-pb8o6xxtz0] {
        padding: 0.5rem;
    }

    .page-header[b-pb8o6xxtz0] {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .page-header h3[b-pb8o6xxtz0] {
        font-size: 1.2rem;
    }

    .visits-card[b-pb8o6xxtz0] {
        padding: 0.75rem;
    }

    .visits-card h5[b-pb8o6xxtz0] {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .visit-item[b-pb8o6xxtz0] {
        padding: 0.75rem;
    }

    .visit-avatar[b-pb8o6xxtz0] {
        width: 40px;
        height: 40px;
    }

    .visit-info strong[b-pb8o6xxtz0] {
        font-size: 0.9rem;
    }

    .visit-time[b-pb8o6xxtz0] {
        font-size: 0.8rem;
    }

    .empty-state[b-pb8o6xxtz0] {
        padding: 1rem;
    }
}

/* Button Spacing */
.btn-sm[b-pb8o6xxtz0] {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.ms-2[b-pb8o6xxtz0] {
    margin-left: 0.5rem;
}

.mt-4[b-pb8o6xxtz0] {
    margin-top: 1.5rem;
}

.text-muted[b-pb8o6xxtz0] {
    color: #6c757d !important;
}
/* /Components/Pages/UploadFile.razor.rz.scp.css */
.custom-drop-zone[b-q3h3mp27ts] {
    padding: 20px;
    border: 2px dashed var(--bs-primary);
    border-radius: 12px;
    background-color: rgba(255, 138, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 125px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-drop-zone.drag-over[b-q3h3mp27ts] {
    border-color: var(--bs-success);
    background-color: rgba(255, 138, 0, 0.15);
    border-style: solid;
}

.drop-file-icon[b-q3h3mp27ts] {
    width: 48px;
    height: 48px;
    background-color: var(--bs-primary);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
}

.drop-file-text[b-q3h3mp27ts] {
    font-size: 1rem;
    color: var(--bs-primary);
    font-weight: 500;
    margin-top: 8px;
}

.selected-file-info[b-q3h3mp27ts] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.selected-file-info .dx-icon[b-q3h3mp27ts] {
    font-size: 36px;
    color: var(--bs-primary);
    flex-shrink: 0;
}

.file-details[b-q3h3mp27ts] {
    flex: 1;
    min-width: 0;
}

.file-name[b-q3h3mp27ts] {
    font-weight: 600;
    font-size: 1rem;
    color: var(--bs-dark);
    word-break: break-word;
}

.file-size[b-q3h3mp27ts] {
    color: var(--bs-secondary);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Badge styles for file types */
.badge[b-q3h3mp27ts] {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary[b-q3h3mp27ts] {
    background-color: #0d6efd;
    color: white;
}

.badge-info[b-q3h3mp27ts] {
    background-color: #0dcaf0;
    color: #000;
}

.badge-success[b-q3h3mp27ts] {
    background-color: #198754;
    color: white;
}

.badge-danger[b-q3h3mp27ts] {
    background-color: #dc3545;
    color: white;
}

.badge-secondary[b-q3h3mp27ts] {
    background-color: #6c757d;
    color: white;
}

/* ADDED: Compact spacing for upload confirmation area */
.compact-spacing[b-q3h3mp27ts] {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.compact-spacing .mb-2[b-q3h3mp27ts] {
    margin-bottom: 0.5rem !important;
}

.compact-spacing .mb-3[b-q3h3mp27ts] {
    margin-bottom: 0.75rem !important;
}

/* ADDED: Zero-margin processing indicator */
.processing-indicator-compact[b-q3h3mp27ts] {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0.25rem !important;
}

.processing-indicator-compact .dxbl-loading-panel[b-q3h3mp27ts] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove card wrapper padding for processing */
.processing-indicator-compact .card-body[b-q3h3mp27ts],
.processing-indicator-compact .card-header[b-q3h3mp27ts] {
    margin: 0 !important;
    padding: 0.25rem !important;
}

/* ADDED: Ensure form container is scrollable */
.upload-form-container[b-q3h3mp27ts] {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
}

/* ADDED: Reduce default DxFormLayoutItem margins on mobile */
@media (max-width: 768px) {
    .upload-form-container[b-q3h3mp27ts] {
        padding: 0.5rem;
    }

    /* Tighter spacing for form items */
    .upload-form-container .dxbl-form-layout-item[b-q3h3mp27ts] {
        margin-bottom: 0.5rem !important;
    }

    /* Processing indicator even tighter on mobile */
    .processing-indicator-compact[b-q3h3mp27ts] {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
    }

    .processing-indicator-compact .dxbl-loading-panel[b-q3h3mp27ts] {
        padding: 0.25rem !important;
    }

    .processing-indicator-compact div[style*="min-height"][b-q3h3mp27ts] {
        min-height: 80px !important;
    }

    /* Reduce heading margins */
    .upload-form-container h3[b-q3h3mp27ts],
    .upload-form-container h6[b-q3h3mp27ts] {
        margin-bottom: 0.75rem !important;
    }

    /* Compact button spacing */
    .upload-form-container .btn-lg[b-q3h3mp27ts] {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    /* Reduce gap between buttons */
    .upload-form-container .gap-2[b-q3h3mp27ts] {
        gap: 0.5rem !important;
    }

    /* Ensure drop zone is compact */
    .custom-drop-zone[b-q3h3mp27ts] {
        padding: 12px;
        min-height: 90px;
        margin-bottom: 0.5rem;
    }

    .drop-file-icon[b-q3h3mp27ts] {
        width: 36px;
        height: 36px;
        margin-bottom: 0.25rem;
    }

    .drop-file-text[b-q3h3mp27ts] {
        font-size: 0.85rem;
        margin-top: 4px;
    }

    /* Compact selected file info */
    .selected-file-info[b-q3h3mp27ts] {
        padding: 10px;
        gap: 8px;
    }

    .selected-file-info .dx-icon[b-q3h3mp27ts] {
        font-size: 24px;
    }

    .file-name[b-q3h3mp27ts] {
        font-size: 0.85rem;
    }

    .file-size[b-q3h3mp27ts] {
        font-size: 0.75rem;
    }

    .badge[b-q3h3mp27ts] {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    /* Compact alert styling */
    .upload-form-container .alert[b-q3h3mp27ts] {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    /* Reduce spacing for "Ready to start" section */
    .compact-spacing p[b-q3h3mp27ts] {
        margin-bottom: 0.5rem !important;
        font-size: 0.95rem;
    }

    /* Allow text to wrap on small screens */
    .upload-form-container .text-muted.small[b-q3h3mp27ts] {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .upload-form-container[b-q3h3mp27ts] {
        padding: 0.25rem;
    }

    .upload-form-container .dxbl-form-layout-item[b-q3h3mp27ts] {
        margin-bottom: 0.35rem !important;
    }

    /* Ultra-compact processing indicator */
    .processing-indicator-compact[b-q3h3mp27ts] {
        padding-top: 0 !important;
    }

    .processing-indicator-compact div[style*="min-height"][b-q3h3mp27ts] {
        min-height: 60px !important;
    }

    .custom-drop-zone[b-q3h3mp27ts] {
        padding: 10px;
        min-height: 80px;
    }

    .drop-file-icon[b-q3h3mp27ts] {
        width: 32px;
        height: 32px;
    }

    .drop-file-text[b-q3h3mp27ts] {
        font-size: 0.8rem;
    }

    .upload-form-container .btn-lg[b-q3h3mp27ts] {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Stack buttons vertically on very small screens */
    .upload-form-container .d-flex.gap-2[b-q3h3mp27ts] {
        flex-direction: column;
        width: 100%;
    }

    .upload-form-container .d-flex.gap-2 .dxbl-btn[b-q3h3mp27ts] {
        width: 100%;
    }
}

/* Ensure buttons are always visible and accessible */
.upload-form-container .text-center[b-q3h3mp27ts] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Prevent layout shift during loading */
.upload-form-container .card-body[b-q3h3mp27ts],
.upload-form-container .card-header[b-q3h3mp27ts] {
    margin: 0;
    padding: 0.5rem;
}
/* /Components/Pages/WriteNote.razor.rz.scp.css */
/* Tighten page header spacing */
[b-ij6k8tx10a] h3.animate-in {
    margin-bottom: 0.25rem;
}

[b-ij6k8tx10a] p.animate-in {
    margin-bottom: 0.5rem;
}

.write-note-container[b-ij6k8tx10a] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0;
    height: calc(100vh - 180px);
    min-height: 0;
}

/* Button toolbar - matches Scribe.razor style */
.write-note-button-toolbar[b-ij6k8tx10a] {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: 0.5rem;
    overflow-x: auto;
}

/* Ensure buttons maintain consistent size */
.write-note-button-toolbar[b-ij6k8tx10a]  .dxbl-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dropdown row - side by side layout */
.dropdown-row[b-ij6k8tx10a] {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.dropdown-item[b-ij6k8tx10a] {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.dropdown-label[b-ij6k8tx10a] {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

/* Tabs container - fill remaining space */
.tabs-container[b-ij6k8tx10a] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* Ensure DxTabs fills available space */
.tabs-container[b-ij6k8tx10a]  .dxbl-tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.tabs-container[b-ij6k8tx10a]  .dxbl-tabs-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tabs-container[b-ij6k8tx10a]  .dxbl-tabs-content > .dxbl-tab-pane {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

/* Smart Chart pane: allow inner container to size correctly */
.tabs-container[b-ij6k8tx10a]  .dxbl-tab-pane {
    min-height: 0;
    overflow: auto;
}

/* Note container matching Scribe.razor */
.note-container[b-ij6k8tx10a] {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.note-editor-wrapper[b-ij6k8tx10a] {
    height: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Ensure RichEdit fills available space */
.note-editor-wrapper[b-ij6k8tx10a]  .dxbl-richedit {
    flex: 1;
    min-height: 0;
}

.tab-content-area[b-ij6k8tx10a] {
    padding: 0.75rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.placeholder-text[b-ij6k8tx10a] {
    color: var(--bs-secondary);
    font-style: italic;
}

/* Empty state styling */
.empty-state[b-ij6k8tx10a] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 1rem;
}

.empty-icon[b-ij6k8tx10a] {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Tab icon for lock */
[b-ij6k8tx10a] .tab-icon-lock {
    background-image: url("images/Lock-Note.svg");
    width: 1rem;
    height: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

[b-ij6k8tx10a] .tab-icon-unlock {
    background-image: url("images/UnLock-Note.svg");
    width: 1rem;
    height: 1rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Ensure the Smart Chart container can actually scroll within DevExpress tab pane */
.smart-chart-container[b-ij6k8tx10a] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
}

.smart-chart-content[b-ij6k8tx10a] {
    /* Content flows naturally, container handles scrolling */
}

.chart-summary-body[b-ij6k8tx10a] {
    /* Body styles only - no scroll here, container scrolls */
    padding: 1rem;
}

/* Responsive adjustments - mobile */
@media (max-width: 576px) {
    .dropdown-row[b-ij6k8tx10a] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-item[b-ij6k8tx10a] {
        max-width: 100%;
        min-width: 100%;
    }

    /* Keep buttons in a single row on mobile - horizontal scroll if needed */
    .write-note-button-toolbar[b-ij6k8tx10a] {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    /* Prevent button text from wrapping */
    .write-note-button-toolbar[b-ij6k8tx10a]  .dxbl-btn {
        flex-shrink: 0;
        min-width: auto;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .write-note-container[b-ij6k8tx10a] {
        height: calc(100vh - 160px);
        min-height: 0;
    }

    .tabs-container[b-ij6k8tx10a] {
        min-height: 0;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .write-note-container[b-ij6k8tx10a] {
        height: calc(100vh - 170px);
    }

    .write-note-button-toolbar[b-ij6k8tx10a] {
        flex-wrap: nowrap;
    }
}

/* Tablet breakpoint for p-3 counteraction */
@media (max-width: 992px) {
    .dropdown-row[b-ij6k8tx10a] {
        gap: 0.5rem;
    }

    .dropdown-item[b-ij6k8tx10a] {
        min-width: 180px;
    }

    .write-note-button-toolbar[b-ij6k8tx10a] {
        gap: 4px;
        margin-bottom: 0.35rem;
    }

    .custom-audio[b-ij6k8tx10a] {
        height: 22px;
    }
}
