@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.olwso25aue.bundle.scp.css';

/* /Components/Layout/AuthLayout.razor.rz.scp.css */
/* AuthLayout is styled via global auth classes in app.css */
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ── App Container ── */
.app-container[b-ve1a1xrjf8] {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.app-sidebar[b-ve1a1xrjf8] {
    width: var(--sidebar-width, 240px);
    background: var(--gray-900, #141414);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    overflow: hidden;
    transition: width 0.2s ease;
}

.sidebar-header[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-700, #374151);
}

.brand[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.brand-icon[b-ve1a1xrjf8] {
    font-size: 1.5rem;
    color: var(--primary-color, #CC9933);
}

.brand-text[b-ve1a1xrjf8] {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.sidebar-content[b-ve1a1xrjf8] {
    flex: 1;
    overflow-y: auto;
}

/* ── Sidebar User Card ── */
.sidebar-user-card[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem;
    padding: 0.75rem;
    background: var(--gray-800, #1f1f1f);
    border-radius: 0.75rem;
    color: white;
    transition: background 0.15s ease;
}

.sidebar-user-card-link[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: white;
    transition: transform 0.15s ease;
}

.sidebar-user-card-link:hover[b-ve1a1xrjf8] {
    transform: translateY(-1px);
}

.sidebar-user-actions[b-ve1a1xrjf8] {
    flex-shrink: 0;
}

.sidebar-signout-button[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gray-400, #9ca3af);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-signout-button:hover[b-ve1a1xrjf8] {
    background: var(--gray-700, #374151);
    color: #ef4444;
}

.sidebar-user-avatar[b-ve1a1xrjf8] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #CC9933), var(--primary-hover, #B8862E));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(204, 153, 51, 0.3);
}

.sidebar-user-initials[b-ve1a1xrjf8] {
    letter-spacing: 0.02em;
}

.sidebar-user-info[b-ve1a1xrjf8] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.sidebar-user-name[b-ve1a1xrjf8] {
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email[b-ve1a1xrjf8] {
    font-size: 0.75rem;
    color: var(--gray-400, #9ca3af);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Main Content Area ── */
.app-main[b-ve1a1xrjf8] {
    flex: 1;
    margin-left: var(--sidebar-width, 240px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.2s ease;
}

/* ── Header ── */
.app-header[b-ve1a1xrjf8] {
    height: var(--header-height, 60px);
    background: white;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    display: grid;
    grid-template-columns: minmax(100px, auto) minmax(200px, 1.2fr) minmax(100px, auto);
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.header-center[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

.hamburger-btn[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    color: var(--gray-700, #374151);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hamburger-btn:hover[b-ve1a1xrjf8] {
    background: var(--gray-100, #f3f4f6);
}

/* ── Search ── */
.global-search[b-ve1a1xrjf8] {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
    max-width: 520px;
    width: 100%;
}

.global-search-box[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: white;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.8rem;
    padding: 0.25rem 0.55rem 0.25rem 0.7rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.global-search-box:focus-within[b-ve1a1xrjf8] {
    border-color: var(--primary-color, #CC9933);
    box-shadow: 0 0 0 4px rgba(204, 153, 51, 0.15);
}

.global-search-icon[b-ve1a1xrjf8] {
    color: var(--gray-500, #6b7280);
    font-size: 1rem;
}

.global-search-input[b-ve1a1xrjf8] {
    border: none;
    box-shadow: none;
    background: transparent;
    width: 100%;
    min-width: 120px;
    font-size: 0.82rem;
    color: var(--gray-800, #1f1f1f);
    padding: 0.35rem 0;
}

.global-search-input[b-ve1a1xrjf8]::placeholder {
    color: var(--gray-500, #6b7280);
}

.global-search-input:focus[b-ve1a1xrjf8] {
    box-shadow: none;
    outline: none;
}

.global-search-overlay[b-ve1a1xrjf8] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 199;
}

.global-search-results[b-ve1a1xrjf8] {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 200;
    background: white;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: 400px;
    overflow-y: auto;
    padding: 6px 0;
    animation: searchDropdownFadeIn-b-ve1a1xrjf8 0.12s ease-out;
}

@keyframes searchDropdownFadeIn-b-ve1a1xrjf8 {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.global-search-result-item[b-ve1a1xrjf8] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease;
}

.global-search-result-item:hover[b-ve1a1xrjf8] {
    background: #f7fafc;
}

.global-search-result-icon[b-ve1a1xrjf8] {
    color: var(--primary-color, #CC9933);
    font-size: 1rem;
    flex-shrink: 0;
}

.global-search-result-text[b-ve1a1xrjf8] {
    min-width: 0;
    flex: 1;
}

.global-search-result-name[b-ve1a1xrjf8] {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-result-date[b-ve1a1xrjf8] {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1px;
}

/* ── Header Icon Buttons ── */
.header-icon-button[b-ve1a1xrjf8] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #374151);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease;
}

.header-icon-button:hover[b-ve1a1xrjf8] {
    background: var(--gray-200, #e5e7eb);
}

/* ── Content ── */
.app-content[b-ve1a1xrjf8] {
    flex: 1;
    padding: 1.5rem;
    background: var(--gray-50, #f9fafb);
}

/* ── Footer ── */
.app-footer[b-ve1a1xrjf8] {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    color: var(--gray-600, #4b5563);
    font-size: 0.8125rem;
    background: white;
    text-align: center;
}

/* ── Mobile overlay ── */
.menu-overlay[b-ve1a1xrjf8] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 99;
    animation: fadeIn-b-ve1a1xrjf8 0.2s ease-in-out;
    display: none;
}

@keyframes fadeIn-b-ve1a1xrjf8 {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ── Desktop layout ── */
@media (min-width: 641px) {
    .app-sidebar[b-ve1a1xrjf8] {
        left: 0;
    }

    .hamburger-btn[b-ve1a1xrjf8] {
        display: none;
    }

    .menu-overlay[b-ve1a1xrjf8] {
        display: none !important;
    }
}

/* ── Mobile layout ── */
@media (max-width: 640.98px) {
    .app-sidebar[b-ve1a1xrjf8] {
        position: fixed;
        left: -260px;
        transition: left 0.3s ease-in-out;
        z-index: 200;
    }

    .app-sidebar.open[b-ve1a1xrjf8] {
        left: 0;
    }

    .app-main[b-ve1a1xrjf8] {
        margin-left: 0;
    }

    .menu-overlay[b-ve1a1xrjf8] {
        display: block;
    }

    .app-content[b-ve1a1xrjf8] {
        padding: 1rem;
    }

    .app-header[b-ve1a1xrjf8] {
        padding: 0 1rem;
        grid-template-columns: auto 1fr auto;
    }
}

/* ── Error UI ── */
#blazor-error-ui[b-ve1a1xrjf8] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-ve1a1xrjf8] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.sidebar-nav[b-u6jljc7o1h] {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.5rem;
    flex: 1;
}

.nav-section[b-u6jljc7o1h] {
    display: grid;
    gap: 0.35rem;
}

.nav-section-title[b-u6jljc7o1h] {
    padding: 0 0.75rem 0.25rem;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-500, #6b7280);
    font-weight: 600;
}

.nav-divider[b-u6jljc7o1h] {
    height: 1px;
    background: var(--gray-700, #374151);
    margin: 0.75rem 0;
}

.nav-item[b-u6jljc7o1h] {
    font-size: 0.9375rem;
}

.nav-item[b-u6jljc7o1h]  .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--gray-300, #d1d5db);
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    gap: 0.75rem;
}

.nav-item[b-u6jljc7o1h]  .nav-link:hover {
    background: var(--gray-800, #1f1f1f);
    color: white;
}

.nav-item[b-u6jljc7o1h]  a.active {
    background: var(--primary-color, #CC9933);
    color: white;
}

.nav-icon[b-u6jljc7o1h] {
    font-size: 1.125rem;
    min-width: 1.25rem;
}

.nav-text[b-u6jljc7o1h] {
    display: inline-block;
}
/* /Components/Pages/AiPages/AiAgents.razor.rz.scp.css */
/* ── Detail SQL block (matches ChatBotWindow) ── */
.detail-sql-block[b-m4ssnye8lg] {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #1a202c;
    white-space: pre-wrap;
    word-break: break-word;
}

    .detail-sql-block code[b-m4ssnye8lg] {
        white-space: pre-wrap;
        display: block;
    }

.sql-copy-btn[b-m4ssnye8lg] {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
    padding: 2px 6px;
    font-size: 0.8rem;
    line-height: 1;
}

    .sql-copy-btn:hover[b-m4ssnye8lg] {
        opacity: 1;
    }

/* ── Detail data table (matches ChatBotWindow) ── */
.detail-table[b-m4ssnye8lg] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .detail-table thead th[b-m4ssnye8lg] {
        position: sticky;
        top: 0;
        background: #f7fafc;
        border-bottom: 2px solid #e2e8f0;
        padding: 8px 12px;
        text-align: left;
        font-weight: 600;
        color: #4a5568;
        white-space: nowrap;
    }

    .detail-table tbody td[b-m4ssnye8lg] {
        padding: 6px 12px;
        border-bottom: 1px solid #edf2f7;
        color: #2d3748;
        white-space: nowrap;
        max-width: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .detail-table tbody tr:hover td[b-m4ssnye8lg] {
        background: #f7fafc;
    }

/* ── Formatted summary (matches ChatBotWindow) ── */
.formatted-summary[b-m4ssnye8lg] {
    white-space: normal;
}

    .formatted-summary[b-m4ssnye8lg]  p.summary-line {
        margin: 0 0 4px 0;
        line-height: 1.5;
    }

    .formatted-summary[b-m4ssnye8lg]  p.summary-line:last-child {
        margin-bottom: 0;
    }

    .formatted-summary[b-m4ssnye8lg]  strong {
        color: #1a202c;
        font-weight: 600;
    }

    .formatted-summary[b-m4ssnye8lg]  .insight-callout {
        margin-top: 8px;
        padding: 8px 12px;
        background: #fffbea;
        border-left: 3px solid #d69e2e;
        border-radius: 4px;
        font-size: 0.88rem;
        line-height: 1.45;
        color: #744210;
    }

        .formatted-summary[b-m4ssnye8lg]  .insight-callout i {
            margin-right: 6px;
            color: #d69e2e;
        }

        .formatted-summary[b-m4ssnye8lg]  .insight-callout strong {
            color: #744210;
        }
/* /Components/Pages/AiPages/ChatBotErrorReports.razor.rz.scp.css */
.chatbot-errorreport-pre[b-5abkfadgwn] {
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow: auto;
    background: var(--bs-body-bg);
}

.chatbot-errorreport-pre--short[b-5abkfadgwn] {
    max-height: 180px;
}

.chatbot-errorreport-pre--tall[b-5abkfadgwn] {
    max-height: 420px;
}

.chatbot-transcript-bubble[b-5abkfadgwn] {
    max-width: 85%;
}

.chatbot-errorreport-window__footer[b-5abkfadgwn] {
    position: sticky;
    bottom: 0;
}




/* /Components/Pages/AiPages/ChatBotWindow.razor.rz.scp.css */
.chat-layout[b-m48bsvpbg2] {
    height: calc(100dvh - var(--header-height, 60px) - 3.5rem - 4rem);
    min-height: calc(100dvh - var(--header-height, 60px) - 3.5rem - 4rem);
    gap: 0;
}

.chat-layout:has(.chat-history-resizer:not(.collapsed))[b-m48bsvpbg2] {
    gap: 1rem;
}

.chat-history-resizer[b-m48bsvpbg2] {
    width: 220px;
    min-width: 220px;
    max-width: 480px;
    flex: 0 0 auto;
    resize: horizontal;
    overflow: visible;
    position: relative;
    height: 100%;
    transition: all 0.3s ease;
}

.chat-history-resizer.collapsed[b-m48bsvpbg2] {
    width: 0;
    min-width: 0;
    max-width: 0;
    resize: none;
    overflow: hidden;
    margin-right: 0;
}

.chat-history-resize-handle[b-m48bsvpbg2] {
    position: absolute;
    top: 0;
    right: -4px;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
}

.chat-history-resize-handle:hover[b-m48bsvpbg2] {
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.chat-history-resizer.collapsed .chat-history-resize-handle[b-m48bsvpbg2] {
    display: none;
}

.chat-history-panel[b-m48bsvpbg2] {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chat-history-panel.collapsed[b-m48bsvpbg2] {
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.chat-history-header[b-m48bsvpbg2] {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.chat-history-actions[b-m48bsvpbg2] {
    padding-top: 0.25rem;
}

.chat-history-list[b-m48bsvpbg2] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-history-item[b-m48bsvpbg2] {
    padding: 0.5rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    background: var(--bs-light);
}

.chat-history-item > .btn[b-m48bsvpbg2] {
    min-width: 0;
}

.chat-history-item .fw-semibold[b-m48bsvpbg2],
.chat-history-item .small[b-m48bsvpbg2] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-history-item.active[b-m48bsvpbg2] {
    border-color: rgba(var(--bs-primary-rgb), 0.35);
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.chat-history-rename-input[b-m48bsvpbg2] {
    font-size: 0.95rem;
}

.chat-history-icon-btn[b-m48bsvpbg2] {
    width: 100%;
}

.chat-page[b-m48bsvpbg2] {
    height: calc(100dvh - var(--header-height, 60px) - 3.5rem - 4rem);
    min-height: calc(100dvh - var(--header-height, 60px) - 3.5rem - 4rem);
    background-color: transparent;
}

.chat-page-header[b-m48bsvpbg2] {
    padding-bottom: 2rem;
}

.chat-page-title[b-m48bsvpbg2] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.chat-page-subtitle[b-m48bsvpbg2] {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.history-toggle-btn[b-m48bsvpbg2] {
    color: #64748b !important;
    padding: 0.5rem !important;
}

    .history-toggle-btn:hover[b-m48bsvpbg2] {
        color: #1e293b !important;
        background: #f8fafc !important;
    }

.clear-chat-btn[b-m48bsvpbg2] {
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    color: #64748b !important;
}

    .clear-chat-btn:hover[b-m48bsvpbg2] {
        background: #f8fafc !important;
        border-color: #94a3b8 !important;
    }

.chat-shell[b-m48bsvpbg2] {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.chat-transcript[b-m48bsvpbg2] {
    flex: 0 0 80%;
    min-height: 200px;
    overflow-y: auto;
    padding: 2rem;
    background: white;
}

.chat-transcript-resize-handle[b-m48bsvpbg2] {
    height: 8px;
    cursor: row-resize;
    background: transparent;
    border-top: 1px solid var(--bs-border-color);
    position: relative;
    flex: 0 0 auto;
}

.chat-transcript-resize-handle:hover[b-m48bsvpbg2] {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-top-color: rgba(var(--bs-primary-rgb), 0.35);
}

.chat-transcript-resize-handle[b-m48bsvpbg2]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 4px;
    background: var(--bs-border-color);
    border-radius: 2px;
}

.chat-suggestions[b-m48bsvpbg2] {
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.suggestions-title[b-m48bsvpbg2] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.suggestions-categories[b-m48bsvpbg2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
    width: 100%;
}

.suggestion-category-card[b-m48bsvpbg2] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    transition: border-color 0.2s;
}

.suggestion-category-card:hover[b-m48bsvpbg2] {
    border-color: #cbd5e1;
}

.suggestion-category-header[b-m48bsvpbg2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-category-icon[b-m48bsvpbg2] {
    font-size: 1.1rem;
    color: var(--primary-color, #CC9933);
}

.suggestion-category-name[b-m48bsvpbg2] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.suggestion-category-prompts[b-m48bsvpbg2] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
}

.prompt-chip[b-m48bsvpbg2] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e293b;
    text-align: left;
    line-height: 1.4;
}

.prompt-chip:hover[b-m48bsvpbg2] {
    border-color: var(--primary-color, #CC9933);
    color: var(--primary-color, #CC9933);
    background: rgba(204, 153, 51, 0.06);
}

.show-more-link[b-m48bsvpbg2] {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary-color, #CC9933);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 0.25rem;
    text-align: left;
}

    .show-more-link:hover[b-m48bsvpbg2] {
        text-decoration: underline;
        color: var(--primary-hover, #B8862E);
    }

.show-more-prompts-list[b-m48bsvpbg2] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 60vh;
    overflow-y: auto;
}

.unable-to-generate[b-m48bsvpbg2] {
    white-space: normal;
    background: #fffbea;
    border: 1px solid #fbd38d;
    border-radius: 8px;
    padding: 16px;
}

.unable-to-generate-header[b-m48bsvpbg2] {
    font-weight: 600;
    color: #975a16;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.unable-to-generate-reason[b-m48bsvpbg2] {
    color: #744210;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.unable-to-generate-hint[b-m48bsvpbg2] {
    color: #97742e;
    font-size: 0.82rem;
    font-style: italic;
}

.chat-bubble[b-m48bsvpbg2] {
    max-width: 900px;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: var(--bs-white);
}

.chat-bubble-user[b-m48bsvpbg2] {
    background: rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.25);
}

/* ── Edit message button & form ── */
.edit-msg-btn[b-m48bsvpbg2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 3px 6px;
    cursor: pointer;
    color: #a0aec0;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    opacity: 0;
}

.chat-bubble-user:hover .edit-msg-btn[b-m48bsvpbg2] {
    opacity: 1;
}

.edit-msg-btn:hover[b-m48bsvpbg2] {
    opacity: 1;
    color: #4a5568;
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

.chat-bubble-user:has(.edit-message-form)[b-m48bsvpbg2] {
    min-width: min(600px, 100%);
}

.edit-message-form[b-m48bsvpbg2] {
    width: 100%;
}

.edit-input-box[b-m48bsvpbg2] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    transition: border-color 0.3s;
}

.edit-input-box:focus-within[b-m48bsvpbg2] {
    border-color: var(--primary-color, #CC9933);
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.15);
}

.edit-message-input[b-m48bsvpbg2] {
    width: 100%;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    resize: vertical;
    min-height: 100px;
    padding: 10px;
    outline: none;
    color: #1e293b;
    line-height: 1.5;
}

.edit-message-input[b-m48bsvpbg2]::placeholder {
    color: #94a3b8;
}

.edit-save-btn[b-m48bsvpbg2] {
    background: var(--primary-color, #CC9933);
    border-color: var(--primary-color, #CC9933);
    color: #fff;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
}

.edit-save-btn:hover[b-m48bsvpbg2] {
    background: var(--primary-hover, #B8862E);
    border-color: var(--primary-hover, #B8862E);
    color: #fff;
}

.chat-bubble-error[b-m48bsvpbg2] {
    background: rgba(var(--bs-danger-rgb), 0.06);
    border-color: rgba(var(--bs-danger-rgb), 0.45);
}

.chat-message-content[b-m48bsvpbg2] {
    white-space: pre-wrap;
    word-break: break-word;
}

.formatted-summary[b-m48bsvpbg2] {
    white-space: normal;
}

    .formatted-summary[b-m48bsvpbg2]  p.summary-line {
        margin: 0 0 4px 0;
        line-height: 1.5;
    }

    .formatted-summary[b-m48bsvpbg2]  p.summary-line:last-child {
        margin-bottom: 0;
    }

    .formatted-summary[b-m48bsvpbg2]  strong {
        color: #1a202c;
        font-weight: 600;
    }

    .formatted-summary[b-m48bsvpbg2]  .insight-callout {
        margin-top: 8px;
        padding: 8px 12px;
        background: #fffbea;
        border-left: 3px solid #d69e2e;
        border-radius: 4px;
        font-size: 0.88rem;
        line-height: 1.45;
        color: #744210;
    }

        .formatted-summary[b-m48bsvpbg2]  .insight-callout i {
            margin-right: 6px;
            color: #d69e2e;
        }

        .formatted-summary[b-m48bsvpbg2]  .insight-callout strong {
            color: #744210;
        }

.suggested-prompts[b-m48bsvpbg2] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.suggested-prompt-chip[b-m48bsvpbg2] {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.82rem;
    line-height: 1.3;
    color: #4a5568;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}

    .suggested-prompt-chip:hover[b-m48bsvpbg2] {
        background: #edf2f7;
        border-color: #cbd5e0;
        color: #2d3748;
    }

    .suggested-prompt-chip:active[b-m48bsvpbg2] {
        background: #e2e8f0;
    }

.pending-indicator[b-m48bsvpbg2] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
}

.chat-composer[b-m48bsvpbg2] {
    background: white;
    flex: 1 1 auto;
    min-height: 90px;
    overflow-y: auto;
    border-top: 1px solid #f1f5f9;
}

.input-wrapper[b-m48bsvpbg2] {
    padding: 1.5rem;
}

.input-box[b-m48bsvpbg2] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
    padding: 8px;
    transition: border-color 0.3s;
}

.input-box:focus-within[b-m48bsvpbg2] {
    border-color: var(--primary-color, #CC9933);
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.15);
}

.chat-textarea[b-m48bsvpbg2] {
    width: 100%;
    border: none !important;
    background: transparent !important;
    resize: none;
    max-height: 160px;
}

    .chat-textarea[b-m48bsvpbg2]  .k-input,
    .chat-textarea[b-m48bsvpbg2]  .k-input-inner,
    .chat-textarea[b-m48bsvpbg2]  .k-textarea,
    .chat-textarea[b-m48bsvpbg2]  textarea {
        border: none !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 10px !important;
        padding-right: 96px !important;
        padding-bottom: 12px !important;
    }

    .chat-textarea[b-m48bsvpbg2]  .k-input:focus,
    .chat-textarea[b-m48bsvpbg2]  .k-input-inner:focus,
    .chat-textarea[b-m48bsvpbg2]  .k-textarea:focus,
    .chat-textarea[b-m48bsvpbg2]  textarea:focus {
        border: none !important;
        background: transparent !important;
        outline: none !important;
        box-shadow: none !important;
    }

.send-btn-wrapper[b-m48bsvpbg2] {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.send-btn[b-m48bsvpbg2] {
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    background: var(--primary-color, #CC9933) !important;
    border-color: var(--primary-color, #CC9933) !important;
    min-height: 40px !important;
}

    .send-btn:hover[b-m48bsvpbg2] {
        background: var(--primary-hover, #B8862E) !important;
        border-color: var(--primary-hover, #B8862E) !important;
    }

    .send-btn:active[b-m48bsvpbg2] {
        transform: scale(0.95);
    }

.db-status[b-m48bsvpbg2] {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.db-status #all-dbs-switch.form-check-input:checked[b-m48bsvpbg2] {
    background-color: var(--primary-color, #CC9933) !important;
    border-color: var(--primary-color, #CC9933) !important;
}

.db-status #all-dbs-switch.form-check-input:focus[b-m48bsvpbg2] {
    border-color: var(--primary-color, #CC9933) !important;
    box-shadow: 0 0 0 3px rgba(204, 153, 51, 0.18) !important;
}

.db-status .form-switch #all-dbs-switch.form-check-input:focus[b-m48bsvpbg2] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23CC9933'/%3e%3c/svg%3e") !important;
}

.db-status #all-dbs-switch.form-check-input:disabled[b-m48bsvpbg2] {
    opacity: 0.55;
}

.db-status-text[b-m48bsvpbg2] {
    color: #94a3b8;
}

    .db-status-text strong[b-m48bsvpbg2] {
        color: #1e293b;
    }

.db-name-btn[b-m48bsvpbg2] {
    font-size: 0.75rem;
}

    .db-name-btn[b-m48bsvpbg2]  button,
    .db-name-btn[b-m48bsvpbg2]  .k-button {
        color: var(--primary-color, #CC9933) !important;
        text-decoration: none !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        min-height: auto !important;
    }

    .db-name-btn[b-m48bsvpbg2]  button:hover,
    .db-name-btn[b-m48bsvpbg2]  .k-button:hover {
        text-decoration: underline !important;
        background: transparent !important;
    }

.db-name-link[b-m48bsvpbg2] {
    color: #1e293b;
    font-weight: 600;
}

    .db-name-btn[b-m48bsvpbg2]  .k-menu-popup,
    .db-name-btn[b-m48bsvpbg2]  .k-popup {
        border-radius: 12px;
        overflow: hidden;
    }

    .db-name-btn[b-m48bsvpbg2]  .k-menu,
    .db-name-btn[b-m48bsvpbg2]  .k-menu-group {
        border-radius: 12px;
    }

@media (max-width: 576px) {
    .chat-layout[b-m48bsvpbg2] {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .chat-history-panel[b-m48bsvpbg2] {
        width: 100%;
        min-width: 100%;
        max-width: none;
    }

    .chat-history-resizer[b-m48bsvpbg2] {
        width: 100%;
        min-width: 100%;
        max-width: none;
        resize: none;
        overflow: hidden;
    }

    .chat-history-resizer.collapsed[b-m48bsvpbg2] {
        width: 100%;
        min-width: 100%;
        max-width: none;
        resize: none;
        overflow: hidden;
    }

    .chat-transcript[b-m48bsvpbg2] {
        padding: 0.75rem;
    }
}

/* Text2SQL specific styling */
.text2sql-reasoning-bubble[b-m48bsvpbg2] {
    background: #f0f4f8;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.reasoning-toggle-btn[b-m48bsvpbg2] {
    text-decoration: none !important;
    color: #2d3748;
    font-size: 0.95rem;
    font-weight: 600;
}

    .reasoning-toggle-btn:hover[b-m48bsvpbg2] {
        color: #0056b3;
    }

.reasoning-content[b-m48bsvpbg2] {
    padding: 8px 0;
    color: #2d3748;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.text2sql-query-bubble[b-m48bsvpbg2] {
    background: #f0f4f8;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    padding: 12px;
}

.text2sql-results-bubble[b-m48bsvpbg2] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.text2sql-results-grid[b-m48bsvpbg2] {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: auto;
    max-width: 100%;
}

    .text2sql-results-grid[b-m48bsvpbg2]  .k-grid,
    .text2sql-results-grid[b-m48bsvpbg2]  .k-grid-content,
    .text2sql-results-grid[b-m48bsvpbg2]  .k-grid-container {
        max-width: 100%;
    }

.results-download-btn[b-m48bsvpbg2] {
    font-size: 0.75rem !important;
    padding: 0.2rem 0.5rem !important;
    min-height: 24px !important;
}

.sql-toggle-btn[b-m48bsvpbg2] {
    text-decoration: none !important;
    color: #0056b3;
    font-size: 0.9rem;
    font-weight: 600;
}

    .sql-toggle-btn:hover[b-m48bsvpbg2] {
        color: #003d80;
    }

.sql-action-buttons .sql-toggle-btn[b-m48bsvpbg2] {
    line-height: 1.2;
}

.results-toggle-btn[b-m48bsvpbg2] {
    text-decoration: none !important;
    color: #2d3748;
    font-size: 0.95rem;
    background: none;
    border: none;
    cursor: pointer;
}

    .results-toggle-btn:hover[b-m48bsvpbg2] {
        color: #0056b3;
    }

.sql-code-block[b-m48bsvpbg2] {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1a202c;
}

    .sql-code-block code[b-m48bsvpbg2] {
        white-space: pre;
        display: block;
    }

.results-code-block[b-m48bsvpbg2] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1a202c;
}

    .results-code-block code[b-m48bsvpbg2] {
        white-space: pre;
        display: block;
    }

/* Dark mode support for SQL bubbles - disabled for better readability */
/* If you need dark mode, uncomment and adjust these styles */
/*
@media (prefers-color-scheme: dark) {
    .text2sql-reasoning-bubble,
    .text2sql-query-bubble {
        background: #e8eef5;
        border-color: #b8c5d6;
    }

    .reasoning-toggle-btn {
        color: #1a202c;
    }

        .reasoning-toggle-btn:hover {
            color: #0056b3;
        }

    .reasoning-content {
        color: #2d3748;
    }

    .sql-code-block {
        background: #ffffff;
        border-color: #cbd5e0;
        color: #1a202c;
    }
}
*/

/* ── Actions overflow menu ── */
.actions-dropdown[b-m48bsvpbg2] {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.actions-dots-btn[b-m48bsvpbg2] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

    .actions-dots-btn:hover[b-m48bsvpbg2] {
        background: rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .actions-dots-btn .dot[b-m48bsvpbg2] {
        display: block;
        width: 3.5px;
        height: 3.5px;
        border-radius: 50%;
        background: #718096;
    }

    .actions-dots-btn:hover .dot[b-m48bsvpbg2] {
        background: #2d3748;
    }

.actions-menu[b-m48bsvpbg2] {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 100;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 6px 0;
    animation: actionsMenuFadeIn-b-m48bsvpbg2 0.12s ease-out;
}

@keyframes actionsMenuFadeIn-b-m48bsvpbg2 {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.actions-menu-item[b-m48bsvpbg2] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: none;
    font-size: 0.85rem;
    color: #2d3748;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease;
    white-space: nowrap;
}

    .actions-menu-item:hover[b-m48bsvpbg2] {
        background: #f7fafc;
        color: #1a202c;
    }

    .actions-menu-item i[b-m48bsvpbg2] {
        font-size: 0.9rem;
        color: #a0aec0;
        width: 16px;
        text-align: center;
    }

    .actions-menu-item:hover i[b-m48bsvpbg2] {
        color: #4a5568;
    }

.actions-menu-divider[b-m48bsvpbg2] {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 12px;
}

/* ── Detail popup styles ── */
.detail-sql-block[b-m48bsvpbg2] {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
    max-height: 250px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #1a202c;
    white-space: pre-wrap;
    word-break: break-word;
}

    .detail-sql-block code[b-m48bsvpbg2] {
        white-space: pre-wrap;
        display: block;
    }

.sql-copy-btn[b-m48bsvpbg2] {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
    padding: 2px 6px;
    font-size: 0.8rem;
    line-height: 1;
}

    .sql-copy-btn:hover[b-m48bsvpbg2] {
        opacity: 1;
    }

.detail-reasoning-block[b-m48bsvpbg2] {
    background: #fffbea;
    border: 1px solid #fbd38d;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #744210;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

/* ── Detail table ── */
.detail-table[b-m48bsvpbg2] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .detail-table thead th[b-m48bsvpbg2] {
        position: sticky;
        top: 0;
        background: #f7fafc;
        border-bottom: 2px solid #e2e8f0;
        padding: 8px 12px;
        text-align: left;
        font-weight: 600;
        color: #4a5568;
        white-space: nowrap;
    }

    .detail-table tbody td[b-m48bsvpbg2] {
        padding: 6px 12px;
        border-bottom: 1px solid #edf2f7;
        color: #2d3748;
        white-space: nowrap;
        max-width: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .detail-table tbody tr:hover td[b-m48bsvpbg2] {
        background: #f7fafc;
    }
/* /Components/Pages/AiPages/DatabaseSchema.razor.rz.scp.css */
.database-schema-window__footer[b-30rj25fqqj] {
    position: sticky;
    bottom: 0;
}

.database-schema-window .k-window-content[b-30rj25fqqj] {
    height: 100%;
}


/* /Components/Pages/AiPages/SourceConnections.razor.rz.scp.css */
/* Prevent copying obfuscated connection details */
[b-rua1wdp8p3] .k-textbox[type="password"],
[b-rua1wdp8p3] input[type="password"] {
    -webkit-user-select: none;
    user-select: none;
}
/* /Components/Pages/SavedQueries.razor.rz.scp.css */
.saved-queries-list[b-q93vz2qy22] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-query-card[b-q93vz2qy22] {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

    .saved-query-card:hover[b-q93vz2qy22] {
        border-color: #cbd5e0;
    }

.saved-query-header[b-q93vz2qy22] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
}

.saved-query-info[b-q93vz2qy22] {
    flex: 1;
    min-width: 0;
}

.saved-query-name[b-q93vz2qy22] {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a202c;
    margin-bottom: 4px;
}

.saved-query-question[b-q93vz2qy22] {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-query-meta[b-q93vz2qy22] {
    font-size: 0.78rem;
    color: #a0aec0;
}

.saved-query-actions[b-q93vz2qy22] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.results-window-content[b-q93vz2qy22] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.results-toolbar[b-q93vz2qy22] {
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.results-table-container[b-q93vz2qy22] {
    flex: 1;
    overflow: auto;
    background: #fff;
}

/* Reuse the detail-table styles from the chat */
.detail-table[b-q93vz2qy22] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .detail-table thead th[b-q93vz2qy22] {
        position: sticky;
        top: 0;
        background: #f7fafc;
        border-bottom: 2px solid #e2e8f0;
        padding: 8px 12px;
        text-align: left;
        font-weight: 600;
        color: #4a5568;
        white-space: nowrap;
    }

    .detail-table tbody td[b-q93vz2qy22] {
        padding: 6px 12px;
        border-bottom: 1px solid #edf2f7;
        color: #2d3748;
        white-space: nowrap;
        max-width: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .detail-table tbody tr:hover td[b-q93vz2qy22] {
        background: #f7fafc;
    }
