@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';
@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';

/* /Components/Layout/AIAssistantPanel.razor.rz.scp.css */
/* AI assistant launcher (floating robot + speech bubble). */
.chat-assistant-launcher[b-gykmnb6cqt] {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10010;
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-assistant-bubble[b-gykmnb6cqt] {
    position: relative;
    max-width: 240px;
    background: #ffffff;
    color: #333;
    border: 1px solid #d6dbe1;
    border-radius: 14px;
    padding: 10px 30px 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: chat-bubble-pop-b-gykmnb6cqt 0.35s ease-out;
}

.chat-assistant-bubble[b-gykmnb6cqt]::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: 22px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #ffffff;
}

.chat-assistant-bubble-close[b-gykmnb6cqt] {
    position: absolute;
    top: 4px;
    right: 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.chat-assistant-bubble-close:hover[b-gykmnb6cqt] {
    color: #333;
}

@keyframes chat-bubble-pop-b-gykmnb6cqt {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-assistant-fab[b-gykmnb6cqt] {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #7f70d8 0%, #5f50c5 55%, #4c409e 100%);
    box-shadow: 0 10px 20px rgba(76, 64, 158, 0.45),
        inset 0 3px 5px rgba(255, 255, 255, 0.45),
        inset 0 -6px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    touch-action: none;
}

.chat-assistant-fab:hover[b-gykmnb6cqt] {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 26px rgba(76, 64, 158, 0.5),
        inset 0 3px 5px rgba(255, 255, 255, 0.45),
        inset 0 -6px 10px rgba(0, 0, 0, 0.3);
}

.chat-assistant-fab:active[b-gykmnb6cqt] {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(76, 64, 158, 0.4),
        inset 0 3px 8px rgba(0, 0, 0, 0.35);
}

/* Persistent non-modal dock panel. Its top stays below the FluentHeader
   (50px by default); the JS module re-measures the live header when it
   applies saved positions and drags. */
.ai-assistant-panel[b-gykmnb6cqt] {
    position: fixed;
    top: 50px;
    right: 0;
    bottom: 0;
    width: min(480px, 100vw);
    height: calc(100dvh - 50px);
    z-index: 10020;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-left: 1px solid #d6dbe1;
    box-shadow: -12px 0 32px rgba(60, 69, 77, 0.25);
}

.ai-assistant-panel-header[b-gykmnb6cqt] {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 14px;
    color: #ffffff;
    background: linear-gradient(120deg, #4c409e 0%, #5648b2 55%, #5f50c5 100%);
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.ai-assistant-panel-title[b-gykmnb6cqt] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ai-assistant-panel-actions[b-gykmnb6cqt] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-assistant-panel-body[b-gykmnb6cqt] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ai-assistant-panel-body[b-gykmnb6cqt]  .chat-card {
    width: 100%;
    height: 100%;
}

.ai-assistant-window-btn[b-gykmnb6cqt] {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ai-assistant-window-btn:hover[b-gykmnb6cqt] {
    background: rgba(255, 255, 255, 0.18);
}

.ai-assistant-window-btn svg[b-gykmnb6cqt] {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ai-hidden[b-gykmnb6cqt] {
    display: none !important;
}

@media print {
    .chat-assistant-launcher[b-gykmnb6cqt],
    .ai-assistant-panel[b-gykmnb6cqt] {
        display: none !important;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-hc6r7xzey3] {
    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-hc6r7xzey3] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
[b-sgc8oaahyv] .fluent-nav-icon {
    /*padding-top: 5px;*/
}
[b-sgc8oaahyv] .report-link .fluent-nav-text {
    white-space: pre-wrap !important;
    width: calc(100% - 30px);
}
/* /Components/Pages/AI/AIAssistantChat.razor.rz.scp.css */
/* CMS AI Assistant chat — commercial bubble style matching the CMS nav-menu purple
   theme (menu purple #5f50c5, expanded-item purple #4c409e, page gray #d5d8da). */

.chat-card[b-pbfiyiesbi] {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(60, 69, 77, 0.12);
}

/* ---- Header bar ---- */
.chat-header[b-pbfiyiesbi] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(120deg, #4c409e 0%, #5648b2 55%, #5f50c5 100%);
}

.chat-header-avatar[b-pbfiyiesbi] {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.chat-header-avatar svg[b-pbfiyiesbi] {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.chat-header-title[b-pbfiyiesbi] {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.chat-header-subtitle[b-pbfiyiesbi] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem;
    opacity: 0.85;
}

.chat-status-dot[b-pbfiyiesbi] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* Compact header used inside the embedded side panel, which already
   carries its own dialog title bar. */
.chat-header.compact[b-pbfiyiesbi] {
    padding: 10px 14px;
    gap: 10px;
}

.chat-header.compact .chat-header-avatar[b-pbfiyiesbi] {
    width: 30px;
    height: 30px;
}

.chat-header.compact .chat-header-avatar svg[b-pbfiyiesbi] {
    width: 18px;
    height: 18px;
}

.chat-header.compact .chat-header-title[b-pbfiyiesbi] {
    font-size: 1.3rem;
}

.chat-header.compact .chat-header-subtitle[b-pbfiyiesbi] {
    font-size: 1.05rem;
}

/* ---- Message list ---- */
.chat-messages[b-pbfiyiesbi] {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
    min-height: 0;
    background: #f4f6f8;
}

.chat-messages[b-pbfiyiesbi]::-webkit-scrollbar {
    width: 8px;
}

.chat-messages[b-pbfiyiesbi]::-webkit-scrollbar-thumb {
    background: #c4ccd2;
    border-radius: 4px;
}

.chat-messages[b-pbfiyiesbi]::-webkit-scrollbar-track {
    background: transparent;
}

.chat-message[b-pbfiyiesbi] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.chat-message.assistant[b-pbfiyiesbi] {
    align-self: flex-start;
}

.chat-message.user[b-pbfiyiesbi] {
    align-self: flex-end;
    justify-content: flex-end;
}

/* ---- Avatars ---- */
.chat-avatar[b-pbfiyiesbi] {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 18px;
}

.chat-avatar.ai[b-pbfiyiesbi] {
    background: linear-gradient(145deg, #7f70d8, #4c409e);
    box-shadow: 0 2px 5px rgba(95, 80, 197, 0.4);
}

.chat-avatar.ai svg[b-pbfiyiesbi] {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.chat-avatar.user[b-pbfiyiesbi] {
    background: linear-gradient(145deg, #5a6770, #3C454D);
    color: #fff;
}

/* ---- Bubbles ---- */
.chat-bubble-wrap[b-pbfiyiesbi] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 78%;
}

.chat-message-author[b-pbfiyiesbi] {
    font-size: 1.15rem;
    font-weight: 600;
    color: #7a858d;
    margin-bottom: 4px;
}

.chat-message.user .chat-message-author[b-pbfiyiesbi] {
    text-align: right;
}

.chat-bubble[b-pbfiyiesbi] {
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 1.2rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message.assistant .chat-bubble[b-pbfiyiesbi] {
    background: #fff;
    color: #2f3a41;
    border: 1px solid #e3e8eb;
    border-top-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(60, 69, 77, 0.08);
}

.chat-message.user .chat-bubble[b-pbfiyiesbi] {
    background: linear-gradient(145deg, #7f70d8, #5648b2);
    color: #fff;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(95, 80, 197, 0.35);
}

/* ---- Typing indicator ---- */
.chat-typing[b-pbfiyiesbi] {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
}

.chat-typing span[b-pbfiyiesbi] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5f50c5;
    opacity: 0.4;
    animation: chat-typing-bounce-b-pbfiyiesbi 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2)[b-pbfiyiesbi] {
    animation-delay: 0.15s;
}

.chat-typing span:nth-child(3)[b-pbfiyiesbi] {
    animation-delay: 0.3s;
}

@keyframes chat-typing-bounce-b-pbfiyiesbi {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

/* ---- Input row ---- */
.chat-input-row[b-pbfiyiesbi] {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #e3e8eb;
}

.chat-input textarea[b-pbfiyiesbi] {
    border-radius: 10px !important;
    background: #f4f6f8 !important;
    font-size: 1.2rem !important;
}

.chat-input textarea:focus[b-pbfiyiesbi] {
    background: #fff !important;
}

.chat-round-btn[b-pbfiyiesbi] {
    flex: 0 0 auto;
    position: relative;
    top: -2px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #7f70d8, #4c409e);
    box-shadow: 0 3px 6px rgba(95, 80, 197, 0.4),
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 -3px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.chat-round-btn:hover:not(:disabled)[b-pbfiyiesbi] {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(95, 80, 197, 0.45),
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 -3px 5px rgba(0, 0, 0, 0.15);
}

.chat-round-btn:active:not(:disabled)[b-pbfiyiesbi] {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(0, 0, 0, 0.25);
}

.chat-round-btn:disabled[b-pbfiyiesbi] {
    opacity: 0.45;
    cursor: not-allowed;
}

.chat-round-btn svg[b-pbfiyiesbi] {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.chat-round-btn.stop[b-pbfiyiesbi] {
    background: linear-gradient(145deg, #f2706b, #c73e39);
    box-shadow: 0 3px 6px rgba(199, 62, 57, 0.4),
        inset 0 2px 3px rgba(255, 255, 255, 0.3),
        inset 0 -3px 5px rgba(0, 0, 0, 0.15);
}

/* Links rendered from markdown sit inside MarkupString content, so they do
   not carry the CSS-isolation scope attribute and must be matched via ::deep. */
.chat-messages[b-pbfiyiesbi]  .chat-link {
    color: #5648b2;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.chat-message.user[b-pbfiyiesbi]  .chat-link {
    color: inherit;
}
/* /Components/Pages/Care/CreateECAccount.razor.rz.scp.css */
/* Highlight the currently selected TPEC candidate row.
   NOTE: FluentUI runtime tokens like --neutral-fill-active live inside each web
   component's shadow DOM (registered by lib.module.js) and are NOT defined at
   document level — a bare <table> cannot resolve them. Always pair a token with
   a concrete fallback so light-DOM elements still get a visible color. */
[b-modqm59xs1] table tbody tr.tpec-selected {
    background-color: var(--neutral-fill-active, #d5e3f7);
    font-weight: 600;
}
/* /Components/Pages/Care/Detail.razor.rz.scp.css */
[b-6i2dx68it4] .header-cell {
    border-top: 1px solid var(--neutral-stroke-rest);
    border-left: 1px solid var(--neutral-stroke-rest);
    border-right: 1px solid var(--neutral-stroke-rest);
    border-bottom: 1px solid var(--neutral-stroke-rest);
    min-height: 32px !important;
}
/* /Components/Pages/Care/ECServiceCharge.razor.rz.scp.css */
.ecsc-cardhead[b-6xe776kece] {
    background: #56c271;
    color: #fff;
    padding: 16px 24px;
}

.ecsc-cardhead-title[b-6xe776kece] {
    font-size: 1.1rem;
    font-weight: 700;
}

.ecsc-cardbody[b-6xe776kece] {
    padding: 20px 24px;
}

.ecsc-cardfoot[b-6xe776kece] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f3f3f3;
    padding: 12px 24px;
    border-top: 1px solid #e0e0e0;
}
/* /Components/Pages/Home.razor.rz.scp.css */
.nine-grid-container[b-uojo478q7z] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: auto;
}

.grid-item[b-uojo478q7z] {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

    .grid-item img[b-uojo478q7z] {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .grid-item:hover[b-uojo478q7z] {
        transform: scale(1.03);
        z-index: 10;
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

        .grid-item:hover img[b-uojo478q7z] {
            transform: scale(1.05);
        }

.bg-primary-dark[b-uojo478q7z] {
    background: #1e77c5 !important;
}

.widget[b-uojo478q7z] {
    border-radius: 5px;
    padding: 15px;
    min-height: 90px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.widget-stat[b-uojo478q7z] {
    text-align: center;
}

.widget-stat-number[b-uojo478q7z] {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
}

    .widget-stat-number a[b-uojo478q7z] {
        text-decoration: none;
    }

.widget-stat-text[b-uojo478q7z] {
    font-size: 13px;
    margin-top: 4px;
    opacity: 0.85;
}

.widget-stat-content[b-uojo478q7z] {
    position: relative;
    text-align: left;
}

/* SC/EC Inspection Progress bars — ported from mh2025 Home.razor.css.
   Without these, the bars fall back to Bootstrap's default blue (invisible on
   the blue card) and lose the rounded/striped/orange styling. */
.progress[b-uojo478q7z] {
    height: 20px !important;
    overflow: hidden;
    display: block; /* Bootstrap 5.3 sets display:flex, which breaks the float layout below */
    background: #EAEDEF !important;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress.progress-rounded[b-uojo478q7z] {
    border-radius: 40px !important;
}

.progress .progress-bar[b-uojo478q7z] {
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background: #2184DA;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    transition: width .6s ease;
}

    .progress .progress-bar.progress-bar-warning[b-uojo478q7z] {
        background: #fcaf41 !important;
    }

