@import '_content/NeuronLibraryUI/NeuronLibraryUI.bundle.scp.css';

/* _content/Neuron_ERP/Pages/TessaChat.razor.rz.scp.css */
.tessa-full-container[b-ggdyh3zxi3] {
    display: flex;
    height: calc(100vh - 80px);
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tessa-sidebar[b-ggdyh3zxi3] {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 16px;
}

.tessa-brand[b-ggdyh3zxi3] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #1e293b;
}

.btn-new-conv[b-ggdyh3zxi3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-new-conv:hover[b-ggdyh3zxi3] {
    background: #dbeafe;
}

.search-container[b-ggdyh3zxi3] {
    position: relative;
}

.search-input[b-ggdyh3zxi3] {
    width: 100%;
    padding: 8px 12px 8px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.search-icon[b-ggdyh3zxi3] {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}

.recents-header[b-ggdyh3zxi3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.recents-title[b-ggdyh3zxi3] {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0;
}

.btn-clear-recents[b-ggdyh3zxi3] {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-clear-recents:hover[b-ggdyh3zxi3] {
    background: #fef2f2;
    color: #dc2626;
}

.recent-list[b-ggdyh3zxi3] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-item[b-ggdyh3zxi3] {
    padding: 8px 12px;
    font-size: 13px;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recent-item-title[b-ggdyh3zxi3] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 500;
}

.recent-item-time[b-ggdyh3zxi3] {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.recent-item:hover[b-ggdyh3zxi3] {
    background: #f1f5f9;
    color: #1e293b;
}

.recent-item.active[b-ggdyh3zxi3] {
    background: #eff6ff;
    color: #2878B8;
    font-weight: 600;
}

.recent-item.active .recent-item-time[b-ggdyh3zxi3] {
    color: #7ab8e0;
}

.recent-empty[b-ggdyh3zxi3] {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
    font-style: italic;
}

.btn-go-back[b-ggdyh3zxi3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-go-back:hover[b-ggdyh3zxi3] {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

.tessa-main-chat[b-ggdyh3zxi3] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.tessa-main-chat.welcome-bg[b-ggdyh3zxi3] {
    background-image: url('/images/menu-icons/Ellipse%2012.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 150% 150%;
}

.tessa-chat-body[b-ggdyh3zxi3] {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-section[b-ggdyh3zxi3] {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.welcome-title[b-ggdyh3zxi3] {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.welcome-subtitle[b-ggdyh3zxi3] {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
}

.suggestion-grid[b-ggdyh3zxi3] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.suggestion-column[b-ggdyh3zxi3] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-header[b-ggdyh3zxi3] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    justify-content: center;
    margin-bottom: 4px;
}

.suggestion-card[b-ggdyh3zxi3] {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.suggestion-card:hover[b-ggdyh3zxi3] {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
    transform: translateY(-2px);
}

.tessa-chat-footer[b-ggdyh3zxi3] {
    padding: 20px 24px;
    background: transparent;
    border-top: none;
}

.tessa-input-box[b-ggdyh3zxi3] {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tessa-textarea[b-ggdyh3zxi3] {
    width: 100%;
    border: none;
    resize: none;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    height: 48px;
}

.tessa-input-toolbar[b-ggdyh3zxi3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toolbar-left[b-ggdyh3zxi3] {
    display: flex;
    gap: 14px;
    color: #64748b;
    font-size: 16px;
}

.toolbar-left i[b-ggdyh3zxi3] {
    cursor: pointer;
    transition: color 0.2s ease;
}

.toolbar-left i:hover[b-ggdyh3zxi3] {
    color: #1e293b;
}

.tessa-big-send-btn[b-ggdyh3zxi3] {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tessa-big-send-btn:hover[b-ggdyh3zxi3] {
    background: #2563eb;
}

/* Markdown body styling for bot responses */
[b-ggdyh3zxi3] .markdown-body {
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
}

[b-ggdyh3zxi3] .markdown-body p {
    margin: 0 0 12px 0;
}

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

[b-ggdyh3zxi3] .markdown-body h1,
[b-ggdyh3zxi3] .markdown-body h2,
[b-ggdyh3zxi3] .markdown-body h3 {
    font-weight: 700;
    color: #0f172a;
    margin: 16px 0 8px 0;
}

[b-ggdyh3zxi3] .markdown-body h1 { font-size: 20px; }
[b-ggdyh3zxi3] .markdown-body h2 { font-size: 17px; }
[b-ggdyh3zxi3] .markdown-body h3 { font-size: 15px; }

[b-ggdyh3zxi3] .markdown-body strong {
    font-weight: 700;
    color: #0f172a;
}

[b-ggdyh3zxi3] .markdown-body em {
    font-style: italic;
}

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

[b-ggdyh3zxi3] .markdown-body li {
    margin-bottom: 6px;
}

[b-ggdyh3zxi3] .markdown-body li ul,
[b-ggdyh3zxi3] .markdown-body li ol {
    margin-top: 4px;
    margin-bottom: 4px;
}

[b-ggdyh3zxi3] .markdown-body code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

[b-ggdyh3zxi3] .markdown-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
}

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

[b-ggdyh3zxi3] .markdown-body blockquote {
    border-left: 3px solid #3b82f6;
    margin: 10px 0;
    padding: 4px 12px;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
}

[b-ggdyh3zxi3] .markdown-body a {
    color: #2563eb;
    text-decoration: underline;
}

[b-ggdyh3zxi3] .markdown-body hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0;
}

/* Centered Messages Layout & Bubble Styles */
.chat-messages-container[b-ggdyh3zxi3] {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tessa-message[b-ggdyh3zxi3] {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.tessa-message.bot[b-ggdyh3zxi3] {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.tessa-message.user[b-ggdyh3zxi3] {
    background: #2878B8;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.tessa-message.typing[b-ggdyh3zxi3] {
    font-style: italic;
    color: #64748b;
    background: #f1f5f9;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

/* Attachments Preview in Input Box */
.tessa-attachments-preview[b-ggdyh3zxi3] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.tessa-attachment-item[b-ggdyh3zxi3] {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #475569;
    max-width: 200px;
    border: 1px solid #e2e8f0;
}

.tessa-attachment-item.uploading[b-ggdyh3zxi3] {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.tessa-attachment-item .attachment-name[b-ggdyh3zxi3] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.btn-remove-attachment[b-ggdyh3zxi3] {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-remove-attachment:hover[b-ggdyh3zxi3] {
    color: #ef4444;
}

/* Spinner border animation */
@keyframes spinner-border-b-ggdyh3zxi3 {
    to { transform: rotate(360deg); }
}

.spinner-border-sm[b-ggdyh3zxi3] {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Message attachments rendering in Chat history */
.message-attachments[b-ggdyh3zxi3] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.message-attachment-card[b-ggdyh3zxi3] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 220px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.tessa-message.bot .message-attachment-card[b-ggdyh3zxi3] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.tessa-message.bot .message-attachment-card:hover[b-ggdyh3zxi3] {
    background: #f8fafc;
}

.tessa-message.user .message-attachment-card:hover[b-ggdyh3zxi3] {
    background: rgba(255, 255, 255, 0.25);
}

.message-attachment-card.image-attachment[b-ggdyh3zxi3] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.message-attachment-card.image-attachment:hover[b-ggdyh3zxi3] {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.message-attachment-card i[b-ggdyh3zxi3] {
    font-size: 14px;
    flex-shrink: 0;
}

.message-attachment-card span[b-ggdyh3zxi3] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Image Popup Modal */
.tessa-image-popup-overlay[b-ggdyh3zxi3] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn-b-ggdyh3zxi3 0.2s ease-out;
}

.tessa-image-popup-container[b-ggdyh3zxi3] {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleIn-b-ggdyh3zxi3 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tessa-image-popup-header[b-ggdyh3zxi3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
}

.btn-close-popup[b-ggdyh3zxi3] {
    background: none;
    border: none;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.btn-close-popup:hover[b-ggdyh3zxi3] {
    color: #0f172a;
}

.tessa-image-popup-body[b-ggdyh3zxi3] {
    padding: 16px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f5f9;
}

.tessa-image-popup-body img[b-ggdyh3zxi3] {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn-b-ggdyh3zxi3 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn-b-ggdyh3zxi3 {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Thumbnail Preview in Input Box */
.tessa-attachment-thumbnail[b-ggdyh3zxi3] {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.tessa-attachment-thumbnail img[b-ggdyh3zxi3] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.tessa-attachment-thumbnail.uploading[b-ggdyh3zxi3] {
    border-style: dashed;
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}

.btn-remove-thumbnail[b-ggdyh3zxi3] {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    z-index: 10;
}

.btn-remove-thumbnail:hover[b-ggdyh3zxi3] {
    background: #dc2626;
    transform: scale(1.1);
}

/* Inline message images */
.message-inline-image-container[b-ggdyh3zxi3] {
    margin-top: 8px;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tessa-message.bot .message-inline-image-container[b-ggdyh3zxi3] {
    border-color: #cbd5e1;
}

.message-inline-image-container:hover[b-ggdyh3zxi3] {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-inline-image[b-ggdyh3zxi3] {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    display: block;
}
/* _content/Neuron_ERP/Shared/Header.razor.rz.scp.css */
.navbar.header-navbar[b-2siyquhcp3] {
    flex-grow: 0;
    flex-wrap: nowrap;
    border: none;
    background-color: inherit;
    border-radius: 0;
    height: 3.5rem;
    min-height: 3.5rem;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.12);
    justify-content: flex-start;
}

.header-navbar .navbar-toggler[b-2siyquhcp3] {
    outline: none;
    border-radius: 0;
    padding-left: .75rem;
    padding-right: .75rem;
    box-shadow: none;
    align-self: stretch;
}

.header-navbar .navbar-toggler .navbar-toggler-icon[b-2siyquhcp3] {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
    background-color: transparent !important;
    height: 2rem;
    width: 2rem;
}

.title[b-2siyquhcp3] {
    font-size: 1.1rem;
    text-overflow: ellipsis;
    overflow: hidden;
}

.header-logo[b-2siyquhcp3] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 1rem;
    padding-right: 1rem;
    min-width: fit-content;
}

.header-logo img[b-2siyquhcp3] {
    height: 40px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

@media (max-width: 350px) {
    .title[b-2siyquhcp3] {
        font-size: inherit;
    }
}
/* _content/Neuron_ERP/Shared/MainLayout.razor.rz.scp.css */
.page[b-nt0s6cc7m2] {
    height: 100%; 
    background-color: inherit;
}

[b-nt0s6cc7m2] .page-layout,
[b-nt0s6cc7m2] .page-layout > .dx-gridlayout-root,
[b-nt0s6cc7m2] .layout-item {
    background-color: inherit;
}

[b-nt0s6cc7m2] .content {
    padding: 1.1rem 2rem 0 2rem;
    overflow: auto;
}

@media (max-width: 1199.98px) {
    [b-nt0s6cc7m2] .page-layout > .dx-gridlayout-root {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

[b-nt0s6cc7m2] .fit-width {
    max-width: 100%;
}

[b-nt0s6cc7m2] .mw-1100 {
    max-width: 1100px;
}
/* _content/Neuron_ERP/Shared/NavMenu.razor.rz.scp.css */
.sidebar[b-o9xkpsk5mk] {
    min-width: clamp(236px, 16vw, 264px);
    max-width: clamp(236px, 16vw, 264px);
    height: calc(100vh - 5.5rem);
    max-height: 100%;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border-radius: 0 !important;
    transition: transform 0.18s ease-out;
}

.sidebar.collapse[b-o9xkpsk5mk] {
    display: none;
}

.sidebar.expand[b-o9xkpsk5mk] {
    display: block;
}

.sidebar-shell[b-o9xkpsk5mk] {
    height: 100%;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0 !important;
    background: #ffffff;
    box-shadow: 0 22px 45px -32px rgba(15, 23, 42, 0.55);
    padding: 1rem 0.75rem 0.9rem;
}

.sidebar-search[b-o9xkpsk5mk] {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
    padding: 0.62rem 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #ffffff;
    box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.6);
}

.sidebar-search-icon[b-o9xkpsk5mk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #6b7280;
}

.sidebar-search-icon svg[b-o9xkpsk5mk] {
    width: 1.3rem;
    height: 1.3rem;
}

.sidebar-search-input[b-o9xkpsk5mk] {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
}

.sidebar-search-input[b-o9xkpsk5mk]::placeholder {
    color: #6b7280;
}

.menu-level[b-o9xkpsk5mk] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-root[b-o9xkpsk5mk] {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.menu-child[b-o9xkpsk5mk] {
    margin-top: 0.25rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.menu-item[b-o9xkpsk5mk] {
    position: relative;
}

.menu-item-root[b-o9xkpsk5mk] {
    margin-bottom: 0.2rem;
}

.menu-row[b-o9xkpsk5mk] {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
}

.menu-link[b-o9xkpsk5mk],
.menu-toggle[b-o9xkpsk5mk] {
    border: 0;
    background: transparent;
    color: inherit;
}

.menu-link[b-o9xkpsk5mk] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 2.4rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0;
    text-align: left;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-link:hover[b-o9xkpsk5mk] {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.menu-item.active > .menu-row > .menu-link[b-o9xkpsk5mk] {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(59, 130, 246, 0.08));
    color: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.12);
}

.menu-item.active > .menu-row > .menu-link .menu-text[b-o9xkpsk5mk] {
    color: #0f172a;
}

.menu-item.expanded > .menu-row > .menu-link[b-o9xkpsk5mk] {
    background: rgba(255, 255, 255, 0.78);
}

.menu-icon[b-o9xkpsk5mk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.82);
    color: #334155;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.menu-item.active > .menu-row > .menu-link .menu-icon[b-o9xkpsk5mk] {
    background: rgba(13, 148, 136, 0.14);
    color: #0f172a;
}

.menu-icon i[b-o9xkpsk5mk] {
    font-size: 0.75rem;
    line-height: 1;
}

.menu-icon-svg[b-o9xkpsk5mk] {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    display: block;
}

.menu-text-wrap[b-o9xkpsk5mk] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.03rem;
}

.menu-text[b-o9xkpsk5mk] {
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.25;
    color: #1e293b;
    word-break: break-word;
}

.menu-caption[b-o9xkpsk5mk] {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.menu-badge[b-o9xkpsk5mk] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    box-shadow: 0 10px 18px -12px rgba(220, 38, 38, 0.9);
}

.menu-toggle[b-o9xkpsk5mk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2rem;
    width: 2rem;
    min-height: 2.4rem;
    border-radius: 0;
    color: #64748b;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.menu-toggle:hover[b-o9xkpsk5mk] {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.menu-chevron[b-o9xkpsk5mk] {
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.18s ease;
}

.menu-item.expanded > .menu-row > .menu-toggle .menu-chevron[b-o9xkpsk5mk] {
    transform: rotate(45deg);
}

.submenu-shell[b-o9xkpsk5mk] {
    display: none;
    padding-top: 0.25rem;
    padding-left: 0.2rem;
}

.submenu-shell.expanded[b-o9xkpsk5mk] {
    display: block;
}

.menu-child .menu-link[b-o9xkpsk5mk] {
    min-height: 2.1rem;
    padding: 0.42rem 0.55rem;
    border-radius: 0;
    gap: 0.48rem;
}

.menu-child .menu-toggle[b-o9xkpsk5mk] {
    min-height: 2.1rem;
    width: 1.9rem;
    flex-basis: 1.9rem;
    border-radius: 0;
}

.menu-child .menu-icon[b-o9xkpsk5mk] {
    width: 1.3rem;
    height: 1.3rem;
    flex-basis: 1.3rem;
    border-radius: 0;
}

.menu-child .menu-icon-svg[b-o9xkpsk5mk] {
    width: 0.92rem;
    height: 0.92rem;
}

.menu-child .menu-text[b-o9xkpsk5mk] {
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .sidebar[b-o9xkpsk5mk] {
        display: none;
    }

    .sidebar.expand[b-o9xkpsk5mk] {
        position: fixed;
        top: 3.5rem;
        left: 0;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        height: calc(100vh - 3.5rem);
        padding: 0;
        z-index: 1050;
        backdrop-filter: blur(6px);
        background: rgba(15, 23, 42, 0.08);
    }

    .sidebar-shell[b-o9xkpsk5mk] {
        border-radius: 0 !important;
    }
}
/* _content/Neuron_ERP/Shared/TessaChatWidget.razor.rz.scp.css */
.tessa-launcher[b-sonhmkf7s4] {
    position: fixed;
    bottom: 80px;
    right: 0;
    background: linear-gradient(135deg, #3F9AE0, #2878B8);
    color: white;
    padding: 0 0 0 14px;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 4px 20px rgba(40, 120, 184, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    font-weight: 600;
    font-size: 15px;
    z-index: 9999;
    border: none;
    width: 52px;
    height: 52px;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                gap 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    white-space: nowrap;
}

.tessa-launcher .tessa-launcher-icon[b-sonhmkf7s4] {
    flex-shrink: 0;
    display: block;
}

.tessa-launcher span[b-sonhmkf7s4] {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
}

.tessa-launcher:hover[b-sonhmkf7s4] {
    width: auto;
    padding: 0 20px 0 14px;
    gap: 10px;
    background: #1E5C8E;
    box-shadow: -6px 6px 28px rgba(30, 92, 142, 0.5);
}

.tessa-launcher:hover span[b-sonhmkf7s4] {
    max-width: 120px;
    opacity: 1;
}

.tessa-widget-container[b-sonhmkf7s4] {
    position: fixed;
    bottom: 100px;
    right: 16px;
    width: 380px;
    height: 520px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    animation: slideUp-b-sonhmkf7s4 0.3s ease;
}

@keyframes slideUp-b-sonhmkf7s4 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tessa-widget-header[b-sonhmkf7s4] {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tessa-header-title[b-sonhmkf7s4] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e293b;
    font-size: 16px;
}

.tessa-header-actions[b-sonhmkf7s4] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tessa-action-btn[b-sonhmkf7s4] {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tessa-action-btn:hover[b-sonhmkf7s4] {
    color: #1e293b;
    background: #f1f5f9;
}

.tessa-widget-body[b-sonhmkf7s4] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
}

.tessa-disclaimer[b-sonhmkf7s4] {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.tessa-message[b-sonhmkf7s4] {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.tessa-message.bot[b-sonhmkf7s4] {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-top-left-radius: 2px;
}

.tessa-message.user[b-sonhmkf7s4] {
    background: #3b82f6;
    color: white;
    align-self: flex-end;
    border-top-right-radius: 2px;
}

.tessa-widget-footer[b-sonhmkf7s4] {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tessa-input-area[b-sonhmkf7s4] {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 13px;
    background: white;
    outline: none;
    transition: border 0.2s ease;
}

.tessa-input-area:focus[b-sonhmkf7s4] {
    border-color: #3b82f6;
}

.tessa-send-btn[b-sonhmkf7s4] {
    background: #3b82f6;
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tessa-send-btn:hover[b-sonhmkf7s4] {
    background: #2563eb;
}

/* Markdown body styling for bot responses in widget */
[b-sonhmkf7s4] .markdown-body {
    font-size: 13px;
    line-height: 1.6;
    color: #1e293b;
}

[b-sonhmkf7s4] .markdown-body p {
    margin: 0 0 8px 0;
}

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

[b-sonhmkf7s4] .markdown-body h1,
[b-sonhmkf7s4] .markdown-body h2,
[b-sonhmkf7s4] .markdown-body h3 {
    font-weight: 700;
    color: #0f172a;
    margin: 10px 0 6px 0;
}

[b-sonhmkf7s4] .markdown-body h1 { font-size: 17px; }
[b-sonhmkf7s4] .markdown-body h2 { font-size: 15px; }
[b-sonhmkf7s4] .markdown-body h3 { font-size: 14px; }

[b-sonhmkf7s4] .markdown-body strong {
    font-weight: 700;
    color: #0f172a;
}

[b-sonhmkf7s4] .markdown-body ul,
[b-sonhmkf7s4] .markdown-body ol {
    margin: 6px 0;
    padding-left: 20px;
}

[b-sonhmkf7s4] .markdown-body li {
    margin-bottom: 4px;
}

[b-sonhmkf7s4] .markdown-body code {
    background: #e2e8f0;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 12px;
}

[b-sonhmkf7s4] .markdown-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
}

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