/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-waygxlchcw],
.components-reconnect-repeated-attempt-visible[b-waygxlchcw],
.components-reconnect-failed-visible[b-waygxlchcw],
.components-pause-visible[b-waygxlchcw],
.components-resume-failed-visible[b-waygxlchcw],
.components-rejoining-animation[b-waygxlchcw] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-retrying[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-failed[b-waygxlchcw],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-waygxlchcw] {
    display: block;
}


#components-reconnect-modal[b-waygxlchcw] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-waygxlchcw 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-waygxlchcw 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-waygxlchcw 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-waygxlchcw]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-waygxlchcw 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-waygxlchcw {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-waygxlchcw {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-waygxlchcw {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-waygxlchcw] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-waygxlchcw] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-waygxlchcw] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-waygxlchcw] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-waygxlchcw] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-waygxlchcw] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-waygxlchcw] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-waygxlchcw 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-waygxlchcw] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-waygxlchcw {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Demand/DemandTab.razor.rz.scp.css */
/* Demand tab layout. BlazorKit components bring their own styles; these only place them. */

.dm-root[b-4smsxh7fxf] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dm-scopebar[b-4smsxh7fxf] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dm-scope[b-4smsxh7fxf] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.dm-scope-path[b-4smsxh7fxf] {
    font-size: 13px;
    font-weight: 600;
    color: var(--uuc-color-text, #0f172a);
}

.dm-scope-range[b-4smsxh7fxf] {
    font-size: 12px;
    color: var(--uuc-color-text-secondary, #64748b);
}

.dm-loading[b-4smsxh7fxf] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    font-size: 12px;
    color: #64748b;
}

.dm-muted[b-4smsxh7fxf] {
    color: var(--uuc-color-text-secondary, #64748b);
    font-size: 12px;
}

/* ---------- KPI tiles: 5 per row (BlazorKit's KpiCardGroup has no 5-column style) ----------
   Steps down by the width of the Demand area itself (container query), not the browser window,
   so the tree, menu and browser zoom don't drop it to fewer columns too early. */
.dm-root[b-4smsxh7fxf] {
    container-type: inline-size;
}

.dm-root[b-4smsxh7fxf]  .dm-kpis-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Title, value and sub-line stacked from the top, as on the sample page. BlazorKit spreads them over the card
   (space-between), so in a row stretched to its tallest tile the value of a tile without a sub-line sank down. */
.dm-root[b-4smsxh7fxf]  .dm-kpis-5 .uuc-kpi-card {
    justify-content: flex-start;
}

.dm-root[b-4smsxh7fxf]  .dm-kpis-5 .uuc-kpi-header {
    margin-bottom: 6px;
}

.dm-root[b-4smsxh7fxf]  .dm-kpis-5 .uuc-kpi-body {
    margin-bottom: 4px;
}

.dm-root[b-4smsxh7fxf]  .dm-kpis-5 .uuc-kpi-meta {
    margin-top: 0;
}

.dm-root[b-4smsxh7fxf]  .dm-kpis-5 .uuc-kpi-subtitle {
    font-size: 12px;
}

@container (max-width: 760px) {
    .dm-root[b-4smsxh7fxf]  .dm-kpis-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 520px) {
    .dm-root[b-4smsxh7fxf]  .dm-kpis-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 340px) {
    .dm-root[b-4smsxh7fxf]  .dm-kpis-5 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dm-row[b-4smsxh7fxf] {
    display: grid;
    gap: 12px;
    min-width: 0;
}

    /* the cards are BlazorKit elements, so ::deep reaches them; grid items stretch, so cards in one row share a height */
    .dm-row[b-4smsxh7fxf]  > * {
        min-width: 0;
        height: 100%;
    }

.dm-row-wide[b-4smsxh7fxf] {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.dm-row-half[b-4smsxh7fxf] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .dm-row-wide[b-4smsxh7fxf],
    .dm-row-half[b-4smsxh7fxf] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- What stands out ---------- */
.dm-insights[b-4smsxh7fxf] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* as on the sample page: the kind runs inline before the text, every finding shown (no inner scroll) */
.dm-insight[b-4smsxh7fxf] {
    font-size: 12.5px;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8fafc;
}

    .dm-insight.dm-click[b-4smsxh7fxf] {
        cursor: pointer;
    }

        .dm-insight.dm-click:hover[b-4smsxh7fxf] {
            background: #eef4ff;
        }

.dm-insight-kind[b-4smsxh7fxf] {
    font-family: var(--uuc-font-code, Consolas, monospace);
    font-size: 11px;
    color: #64748b;
    margin-right: 6px;
}

/* ---------- Bars inside table cells (By weekday, Meters by daily use) ---------- */
.dm-bar[b-4smsxh7fxf] {
    display: inline-block;
    vertical-align: middle;
    height: 10px;
    min-width: 0;
    border-radius: 3px;
    background: #1783FF;
}

.dm-bar-2[b-4smsxh7fxf] {
    background: #00C9C9;
}

/* bar + percentage on one line: the bar gives way, the number never wraps under it */
.dm-share[b-4smsxh7fxf] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .dm-share .dm-bar[b-4smsxh7fxf] {
        flex: 0 1 auto;
    }

    .dm-share > span:last-child[b-4smsxh7fxf] {
        flex: none;
    }

/* ---------- Heatmap ---------- */
.dm-facts[b-4smsxh7fxf] {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 10px;
}

.dm-heat[b-4smsxh7fxf] {
    display: grid;
    grid-template-columns: 56px repeat(24, minmax(0, 1fr));
    gap: 2px;
    font-size: 10px;
}

.dm-heat-hour[b-4smsxh7fxf] {
    text-align: center;
    color: #94a3b8;
}

.dm-heat-day[b-4smsxh7fxf] {
    color: #64748b;
    white-space: nowrap;
    line-height: 14px;
}

.dm-heat-cell[b-4smsxh7fxf] {
    height: 14px;
    border-radius: 2px;
}

.dm-heat-peak[b-4smsxh7fxf] {
    outline: 2px solid #F0884D;
    outline-offset: -1px;
}

/* ---------- Tables ---------- */
[b-4smsxh7fxf] .dm-row-click {
    cursor: pointer;
}

/* ---------- Table pagination (BlazorKit) ----------
   Smaller than BlazorKit's default (32px, 13px) to suit the cards, and it wraps instead of overlapping when a card
   is narrow: BlazorKit only stacks it below a 768px window, which a half-width card never reaches. */
.dm-root[b-4smsxh7fxf]  .uuc-table-pagination {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 2px 2px;
    font-size: 12px;
}

.dm-root[b-4smsxh7fxf]  .uuc-pagination-zone {
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 6px;
}

.dm-root[b-4smsxh7fxf]  .uuc-pagination-zone:empty {
    display: none;
}

.dm-root[b-4smsxh7fxf]  .uuc-table-pagination-total,
.dm-root[b-4smsxh7fxf]  .uuc-table-pagesize-label {
    font-size: 12px;
}

.dm-root[b-4smsxh7fxf]  .uuc-table-pagination-controls {
    flex-wrap: wrap;
    gap: 4px;
}

.dm-root[b-4smsxh7fxf]  .uuc-pagination-btn,
.dm-root[b-4smsxh7fxf]  .uuc-pagination-item {
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    font-size: 12px;
    border-radius: 5px;
}

.dm-root[b-4smsxh7fxf]  .uuc-table-pagesize-select {
    height: 26px;
    min-width: 52px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 5px;
}

/* each table is its own container, so the rule below goes by the table's width (half or full row), not the page's */
.dm-root[b-4smsxh7fxf]  .uuc-table-wrapper {
    container-type: inline-size;
}

/* narrow tables: "Showing …" on its own line, pages and page size centred under it */
@container (max-width: 760px) {
    .dm-root[b-4smsxh7fxf]  .uuc-table-pagination {
        justify-content: center;
    }

    .dm-root[b-4smsxh7fxf]  .uuc-pagination-zone {
        justify-content: center !important;
    }
}

/* /Components/Pages/Demand/DemandTabPro.razor.rz.scp.css */
/* Demand tab layout. BlazorKit components bring their own styles; these only place them. */

.dm-root[b-l4m5eld27r] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.dm-scopebar[b-l4m5eld27r] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.dm-scope[b-l4m5eld27r] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.dm-scope-path[b-l4m5eld27r] {
    font-size: 13px;
    font-weight: 600;
    color: var(--uuc-color-text, #0f172a);
}

.dm-scope-range[b-l4m5eld27r] {
    font-size: 12px;
    color: var(--uuc-color-text-secondary, #64748b);
}

.dm-loading[b-l4m5eld27r] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    font-size: 12px;
    color: #64748b;
}

.dm-muted[b-l4m5eld27r] {
    color: var(--uuc-color-text-secondary, #64748b);
    font-size: 12px;
}

/* ---------- KPI tiles: 5 per row (BlazorKit's KpiCardGroup has no 5-column style) ----------
   Steps down by the width of the Demand area itself (container query), not the browser window,
   so the tree, menu and browser zoom don't drop it to fewer columns too early. */
.dm-root[b-l4m5eld27r] {
    container-type: inline-size;
}

.dm-root[b-l4m5eld27r]  .dm-kpis-5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Title, value and sub-line stacked from the top, as on the sample page. BlazorKit spreads them over the card
   (space-between), so in a row stretched to its tallest tile the value of a tile without a sub-line sank down. */
.dm-root[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-card {
    justify-content: flex-start;
}

.dm-root[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-header {
    margin-bottom: 6px;
}

.dm-root[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-body {
    margin-bottom: 4px;
}

.dm-root[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-meta {
    margin-top: 0;
}

.dm-root[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-subtitle {
    font-size: 12px;
}

@container (max-width: 760px) {
    .dm-root[b-l4m5eld27r]  .dm-kpis-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 520px) {
    .dm-root[b-l4m5eld27r]  .dm-kpis-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 340px) {
    .dm-root[b-l4m5eld27r]  .dm-kpis-5 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dm-row[b-l4m5eld27r] {
    display: grid;
    gap: 12px;
    min-width: 0;
}

    /* the cards are BlazorKit elements, so ::deep reaches them; grid items stretch, so cards in one row share a height */
    .dm-row[b-l4m5eld27r]  > * {
        min-width: 0;
        height: 100%;
    }

.dm-row-wide[b-l4m5eld27r] {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.dm-row-half[b-l4m5eld27r] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .dm-row-wide[b-l4m5eld27r],
    .dm-row-half[b-l4m5eld27r] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- What stands out ---------- */
.dm-insights[b-l4m5eld27r] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* as on the sample page: the kind runs inline before the text, every finding shown (no inner scroll) */
.dm-insight[b-l4m5eld27r] {
    font-size: 12.5px;
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8fafc;
}

    .dm-insight.dm-click[b-l4m5eld27r] {
        cursor: pointer;
    }

        .dm-insight.dm-click:hover[b-l4m5eld27r] {
            background: #eef4ff;
        }

.dm-insight-kind[b-l4m5eld27r] {
    font-family: var(--uuc-font-code, Consolas, monospace);
    font-size: 11px;
    color: #64748b;
    margin-right: 6px;
}

/* ---------- Bars inside table cells (By weekday, Meters by daily use) ---------- */
.dm-bar[b-l4m5eld27r] {
    display: inline-block;
    vertical-align: middle;
    height: 10px;
    min-width: 0;
    border-radius: 3px;
    background: #6366F1;
}

.dm-bar-2[b-l4m5eld27r] {
    background: #14B8A6;
}

/* bar + percentage on one line: the bar gives way, the number never wraps under it */
.dm-share[b-l4m5eld27r] {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .dm-share .dm-bar[b-l4m5eld27r] {
        flex: 0 1 auto;
    }

    .dm-share > span:last-child[b-l4m5eld27r] {
        flex: none;
    }

/* ---------- Heatmap ---------- */
.dm-facts[b-l4m5eld27r] {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 10px;
}

.dm-heat[b-l4m5eld27r] {
    display: grid;
    grid-template-columns: 56px repeat(24, minmax(0, 1fr));
    gap: 2px;
    font-size: 10px;
}

.dm-heat-hour[b-l4m5eld27r] {
    text-align: center;
    color: #94a3b8;
}

.dm-heat-day[b-l4m5eld27r] {
    color: #64748b;
    white-space: nowrap;
    line-height: 14px;
}

.dm-heat-day small[b-l4m5eld27r] {
    font-size: 9px;
    opacity: .8;
}

/* day total at the end of each row */
.dm-heat-total[b-l4m5eld27r] {
    text-align: right;
    white-space: nowrap;
    line-height: 14px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    color: #475569;
}

/* four fact cards above the heatmap */
.dm-factgrid[b-l4m5eld27r] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.dm-fact[b-l4m5eld27r] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    background: #fff;
}

    .dm-fact span[b-l4m5eld27r] {
        font-size: 11px;
        color: #64748b;
    }

    .dm-fact b[b-l4m5eld27r] {
        font-size: 13.5px;
        font-weight: 700;
        color: #1e1b4b;
    }

.dm-heat-cell[b-l4m5eld27r] {
    height: 14px;
    border-radius: 2px;
}

.dm-heat-peak[b-l4m5eld27r] {
    outline: 2px solid #F59E0B;
    outline-offset: -1px;
}

/* ---------- Tables ---------- */
[b-l4m5eld27r] .dm-row-click {
    cursor: pointer;
}

/* ---------- Table pagination (BlazorKit) ----------
   Smaller than BlazorKit's default (32px, 13px) to suit the cards, and it wraps instead of overlapping when a card
   is narrow: BlazorKit only stacks it below a 768px window, which a half-width card never reaches. */
.dm-root[b-l4m5eld27r]  .uuc-table-pagination {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 2px 2px;
    font-size: 12px;
}

.dm-root[b-l4m5eld27r]  .uuc-pagination-zone {
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 6px;
}

.dm-root[b-l4m5eld27r]  .uuc-pagination-zone:empty {
    display: none;
}

.dm-root[b-l4m5eld27r]  .uuc-table-pagination-total,
.dm-root[b-l4m5eld27r]  .uuc-table-pagesize-label {
    font-size: 12px;
}

.dm-root[b-l4m5eld27r]  .uuc-table-pagination-controls {
    flex-wrap: wrap;
    gap: 4px;
}

.dm-root[b-l4m5eld27r]  .uuc-pagination-btn,
.dm-root[b-l4m5eld27r]  .uuc-pagination-item {
    min-width: 26px;
    height: 26px;
    padding: 0 5px;
    font-size: 12px;
    border-radius: 5px;
}

.dm-root[b-l4m5eld27r]  .uuc-table-pagesize-select {
    height: 26px;
    min-width: 52px;
    padding: 0 6px;
    font-size: 12px;
    border-radius: 5px;
}

/* each table is its own container, so the rule below goes by the table's width (half or full row), not the page's */
.dm-root[b-l4m5eld27r]  .uuc-table-wrapper {
    container-type: inline-size;
}

/* narrow tables: "Showing …" on its own line, pages and page size centred under it */
@container (max-width: 760px) {
    .dm-root[b-l4m5eld27r]  .uuc-table-pagination {
        justify-content: center;
    }

    .dm-root[b-l4m5eld27r]  .uuc-pagination-zone {
        justify-content: center !important;
    }
}


/* =====================================================================
   PRO LOOK: colour and polish only; layout, data and behaviour are as in DemandTab
   ===================================================================== */
.dm-pro[b-l4m5eld27r] {
    --pro-indigo: #5b5fc7;
    --pro-teal: #14b8a6;
    --pro-amber: #f59e0b;
    --pro-pink: #ec4899;
    --pro-sky: #0ea5e9;
    --pro-ink: #1e1b4b;
    --pro-line: #e0e7ff;
}

/* scope bar: light tinted banner */
.dm-pro .dm-scopebar[b-l4m5eld27r] {
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 60%, #ecfeff 100%);
    border: 1px solid var(--pro-line);
}

.dm-pro .dm-scope-path[b-l4m5eld27r] {
    color: #3730a3;
    font-size: 14px;
    font-weight: 700;
}

.dm-pro .dm-scope-range[b-l4m5eld27r] {
    color: #64748b;
}

.dm-pro .dm-loading[b-l4m5eld27r] {
    color: var(--pro-indigo);
}

/* KPI tiles: a different accent per tile (top edge + soft tint) */
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 > :nth-child(5n+1) { --tile-accent: #6366f1; }
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 > :nth-child(5n+2) { --tile-accent: #14b8a6; }
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 > :nth-child(5n+3) { --tile-accent: #f59e0b; }
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 > :nth-child(5n+4) { --tile-accent: #ec4899; }
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 > :nth-child(5n+5) { --tile-accent: #0ea5e9; }

.dm-pro[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-card,
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 > .uuc-kpi-card {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tile-accent, #6366f1) 25%, #ffffff);
    border-top: 3px solid var(--tile-accent, #6366f1);
    border-radius: 10px;
    background: color-mix(in srgb, var(--tile-accent, #6366f1) 6%, #ffffff);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}

.dm-pro[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-header,
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-title {
    color: color-mix(in srgb, var(--tile-accent, #6366f1) 70%, #334155);
    font-weight: 600;
}

.dm-pro[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-body,
.dm-pro[b-l4m5eld27r]  .dm-kpis-5 .uuc-kpi-value {
    color: var(--pro-ink);
    font-weight: 700;
}

/* cards */
.dm-pro[b-l4m5eld27r]  .uuc-card {
    border: 1px solid var(--pro-line);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.dm-pro[b-l4m5eld27r]  .uuc-card-header {
    background: #f5f6ff;
    border-bottom: 1px solid var(--pro-line);
}

.dm-pro[b-l4m5eld27r]  .uuc-card-title {
    color: var(--pro-ink);
    font-weight: 700;
}

/* what stands out: coloured rail per finding */
.dm-pro .dm-insight[b-l4m5eld27r] {
    background: #fff;
    border: 1px solid var(--pro-line);
    border-left: 4px solid #6366f1;
    border-radius: 8px;
}

    .dm-pro .dm-insight:nth-child(4n+2)[b-l4m5eld27r] { border-left-color: #14b8a6; }
    .dm-pro .dm-insight:nth-child(4n+3)[b-l4m5eld27r] { border-left-color: #f59e0b; }
    .dm-pro .dm-insight:nth-child(4n+4)[b-l4m5eld27r] { border-left-color: #ec4899; }

    .dm-pro .dm-insight.dm-click:hover[b-l4m5eld27r] {
        background: #eef2ff;
    }

.dm-pro .dm-insight-kind[b-l4m5eld27r] {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-weight: 600;
}

/* tables */
.dm-pro[b-l4m5eld27r]  .uuc-table thead th {
    background: #eef2ff;
    color: #3730a3;
    font-weight: 700;
    border-bottom: 2px solid #c7d2fe;
}

.dm-pro[b-l4m5eld27r]  .uuc-table tbody tr:nth-child(even) td {
    background: #fafaff;
}

.dm-pro[b-l4m5eld27r]  .uuc-table tbody tr:hover td,
.dm-pro[b-l4m5eld27r]  .dm-row-click:hover td {
    background: #eef2ff;
}

/* bars, heatmap, pagination */
.dm-pro .dm-bar[b-l4m5eld27r] {
    background: #6366f1;
    border-radius: 999px;
}

.dm-pro .dm-bar-2[b-l4m5eld27r] {
    background: #14b8a6;
}

.dm-pro .dm-heat-peak[b-l4m5eld27r] {
    outline-color: var(--pro-amber);
}

.dm-pro .dm-heat-hour[b-l4m5eld27r],
.dm-pro .dm-heat-day[b-l4m5eld27r] {
    color: #6366f1;
}

.dm-pro[b-l4m5eld27r]  .uuc-pagination-item.active,
.dm-pro[b-l4m5eld27r]  .uuc-pagination-item.uuc-active {
    background: var(--pro-indigo);
    border-color: var(--pro-indigo);
    color: #fff;
}
/* /Components/Pages/SSO/UploadHelpDocument.razor.rz.scp.css */
/* ── Layout Container ── */
.hdoc-container[b-ccf6gvoqa0] {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Common Card Style ── */
.hdoc-card[b-ccf6gvoqa0] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ── Card 1: Upload Form Card ── */
.hdoc-card-header[b-ccf6gvoqa0] {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hdoc-header-title-group[b-ccf6gvoqa0] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hdoc-card-badge[b-ccf6gvoqa0] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #EFF1F4;
    border: 1px solid #C3CBD6;
    color: #3E5470;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.hdoc-card-title[b-ccf6gvoqa0] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.hdoc-required-hint[b-ccf6gvoqa0] {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
}

.req[b-ccf6gvoqa0] {
    color: #ef4444;
    font-weight: 600;
    margin-left: 2px;
}

/* Form Body */
.hdoc-form-body[b-ccf6gvoqa0] {
    padding: 1.5rem;
}

.hdoc-form-grid[b-ccf6gvoqa0] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 992px) {
    .hdoc-form-grid[b-ccf6gvoqa0] {
        grid-template-columns: 1fr;
    }
}

.hdoc-field-group[b-ccf6gvoqa0] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
}

.hdoc-label[b-ccf6gvoqa0] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.1rem;
}

.hdoc-input[b-ccf6gvoqa0] {
    width: 100%;
    height: 44px;
    padding: 0 0.875rem;
    font-size: 0.85rem;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
}

.hdoc-input:hover[b-ccf6gvoqa0] {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.hdoc-input:focus[b-ccf6gvoqa0] {
    background-color: #ffffff;
    border-color: #3E5470;
    box-shadow: 0 0 0 3px rgba(62, 84, 112, 0.15);
}

.hdoc-input[b-ccf6gvoqa0]::placeholder {
    color: #94a3b8;
}

.hdoc-field-hint[b-ccf6gvoqa0] {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
}

.hdoc-error[b-ccf6gvoqa0] {
    font-size: 0.74rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

/* Autocomplete Role Dropdown (Stitch Theme Match) */
.hdoc-autocomplete-wrapper[b-ccf6gvoqa0] {
    position: relative;
    width: 100%;
    height: 44px;
}

/* BlazorKit Autocomplete - styled through its design tokens */
[b-ccf6gvoqa0] .hdoc-autocomplete-wrapper .uuc-autocomplete {
    --uuc-autocomplete-height: 44px;
    --uuc-autocomplete-radius: 0.75rem;
    --uuc-autocomplete-border: #e2e8f0;
    --uuc-autocomplete-border-hover: #cbd5e1;
    --uuc-autocomplete-border-focus: #3E5470;
    --uuc-autocomplete-focus-shadow: 0 0 0 3px rgba(62, 84, 112, 0.15);
    --uuc-input-bg: #f8fafc;
    --uuc-input-color: #0f172a;
    --uuc-input-placeholder: #94a3b8;
    --uuc-input-font-size-md: 0.85rem;
    width: 100%;
}

[b-ccf6gvoqa0] .hdoc-autocomplete-wrapper .uuc-autocomplete-selector {
    transition: all 0.2s ease;
}

[b-ccf6gvoqa0] .hdoc-autocomplete-wrapper .uuc-autocomplete-selector:hover,
[b-ccf6gvoqa0] .hdoc-autocomplete-wrapper .uuc-autocomplete--focused {
    --uuc-input-bg: #ffffff;
}

[b-ccf6gvoqa0] .hdoc-autocomplete-wrapper .uuc-autocomplete-selector svg {
    color: #94a3b8;
}


/* Custom PDF File Picker Zone */
.hdoc-file-zone[b-ccf6gvoqa0] {
    position: relative;
    height: 44px;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.65rem;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
}

.hdoc-file-zone:hover[b-ccf6gvoqa0] {
    border-color: #3E5470;
    background-color: #EFF1F4;
}

.hdoc-file-zone.has-file[b-ccf6gvoqa0] {
    border-style: solid;
    border-color: #C3CBD6;
    background-color: #F6F7F9;
}

[b-ccf6gvoqa0] .hdoc-file-zone input[type="file"],
[b-ccf6gvoqa0] input.hdoc-file-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hdoc-file-content[b-ccf6gvoqa0] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
    pointer-events: none;
    z-index: 1;
}

.hdoc-pdf-badge[b-ccf6gvoqa0] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.hdoc-file-name[b-ccf6gvoqa0] {
    font-size: 0.78rem;
    font-weight: 500;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hdoc-browse-btn[b-ccf6gvoqa0] {
    font-size: 0.68rem;
    font-weight: 700;
    color: #3E5470;
    background: #EFF1F4;
    border: 1px solid #C3CBD6;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0.02em;
}

/* Form Actions Toolbar */
.hdoc-form-footer[b-ccf6gvoqa0] {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hdoc-notice-badge[b-ccf6gvoqa0] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 500;
    color: #92400e;
    background-color: #fefce8;
    border: 1px solid #fde68a;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
}

.hdoc-notice-badge i[b-ccf6gvoqa0] {
    color: #d97706;
    font-size: 0.85rem;
}

.hdoc-action-buttons[b-ccf6gvoqa0] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.hdoc-btn[b-ccf6gvoqa0] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.65rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    height: 38px;
}

.hdoc-btn:active:not(:disabled)[b-ccf6gvoqa0] {
    transform: scale(0.98);
}

.hdoc-btn-clear[b-ccf6gvoqa0] {
    background: #ffffff;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.hdoc-btn-clear:hover[b-ccf6gvoqa0] {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.hdoc-btn-upload[b-ccf6gvoqa0] {
    background-color: #3E5470;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(62, 84, 112, 0.25);
}

.hdoc-btn-upload:hover:not(:disabled)[b-ccf6gvoqa0] {
    background-color: #3E5470;
    box-shadow: 0 2px 4px 0 rgba(62, 84, 112, 0.35);
}

.hdoc-btn-upload:disabled[b-ccf6gvoqa0] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Card 2: Document Listing Card ── */
.hdoc-directory-card[b-ccf6gvoqa0] {
    display: flex;
    flex-direction: column;
}

/* Table Controls Toolbar */
.hdoc-table-controls[b-ccf6gvoqa0] {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hdoc-search-wrapper[b-ccf6gvoqa0] {
    position: relative;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
}

.hdoc-search-icon[b-ccf6gvoqa0] {
    position: absolute;
    left: 0.85rem;
    color: #94a3b8;
    font-size: 0.82rem;
    pointer-events: none;
}

.hdoc-search-input[b-ccf6gvoqa0] {
    width: 100%;
    height: 38px;
    padding: 0.45rem 2rem 0.45rem 2.3rem;
    font-size: 0.8rem;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    outline: none;
    transition: all 0.2s ease;
}

.hdoc-search-input:focus[b-ccf6gvoqa0] {
    background-color: #ffffff;
    border-color: #265A96;
    box-shadow: 0 0 0 3px rgba(38, 90, 150, 0.15);
}

.hdoc-search-input[b-ccf6gvoqa0]::placeholder {
    color: #94a3b8;
}

.hdoc-search-clear[b-ccf6gvoqa0] {
    position: absolute;
    right: 0.65rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

.hdoc-search-clear:hover[b-ccf6gvoqa0] {
    color: #64748b;
}

.hdoc-total-counter[b-ccf6gvoqa0] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.hdoc-total-counter strong[b-ccf6gvoqa0] {
    color: #0f172a;
    font-weight: 700;
}

/* Modern Data Table */
.hdoc-table-wrapper[b-ccf6gvoqa0] {
    overflow-x: auto;
    width: 100%;
    background: #ffffff;
}

.hdoc-table[b-ccf6gvoqa0] {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.hdoc-table thead th[b-ccf6gvoqa0] {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    background-color: #f8fafc;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.hdoc-table tbody tr[b-ccf6gvoqa0] {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.hdoc-table tbody tr:last-child[b-ccf6gvoqa0] {
    border-bottom: none;
}

.hdoc-table tbody tr:hover[b-ccf6gvoqa0] {
    background-color: #f8fafc;
}

.col-doc-name[b-ccf6gvoqa0] {
    text-align: left;
}

.col-actions[b-ccf6gvoqa0] {
    text-align: right;
    width: 150px;
    padding-right: 1.5rem !important;
}

/* Document Row Content */
.hdoc-doc-cell[b-ccf6gvoqa0] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}

.hdoc-row-pdf-badge[b-ccf6gvoqa0] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #e11d48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.hdoc-table tbody tr:hover .hdoc-row-pdf-badge[b-ccf6gvoqa0] {
    transform: scale(1.05);
}

.hdoc-doc-title[b-ccf6gvoqa0] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.15s ease;
}

.hdoc-table tbody tr:hover .hdoc-doc-title[b-ccf6gvoqa0] {
    color: #3E5470;
}

.hdoc-doc-view-hint[b-ccf6gvoqa0] {
    font-size: 0.72rem;
    color: #94a3b8;
    opacity: 0;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    margin-left: 0.2rem;
}

.hdoc-table tbody tr:hover .hdoc-doc-view-hint[b-ccf6gvoqa0] {
    opacity: 0.8;
    color: #3E5470;
}

/* Row Action Buttons */
.hdoc-actions[b-ccf6gvoqa0] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.hdoc-row-btn[b-ccf6gvoqa0] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.hdoc-row-btn-view:hover[b-ccf6gvoqa0] {
    background-color: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.hdoc-row-btn-download:hover[b-ccf6gvoqa0] {
    background-color: #EFF1F4;
    color: #3E5470;
    border-color: #C3CBD6;
}

.hdoc-row-btn-delete:hover[b-ccf6gvoqa0] {
    background-color: #fee2e2;
    color: #e11d48;
    border-color: #fecaca;
}

/* Empty State */
.hdoc-empty-cell[b-ccf6gvoqa0] {
    padding: 3.5rem 1.5rem !important;
    text-align: center;
}

.hdoc-empty-state[b-ccf6gvoqa0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.hdoc-empty-icon[b-ccf6gvoqa0] {
    font-size: 2.5rem;
    color: #cbd5e1;
}

.hdoc-empty-title[b-ccf6gvoqa0] {
    font-size: 0.88rem;
    font-weight: 500;
    color: #64748b;
    margin: 0;
}

.hdoc-clear-search-btn[b-ccf6gvoqa0] {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.3rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hdoc-clear-search-btn:hover[b-ccf6gvoqa0] {
    background: #e2e8f0;
    color: #1e293b;
}

/* Table Footer / Summary & Pagination */
.hdoc-table-footer[b-ccf6gvoqa0] {
    padding: 0.75rem 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hdoc-footer-summary[b-ccf6gvoqa0] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hdoc-footer-summary strong[b-ccf6gvoqa0] {
    color: #1e293b;
    font-weight: 600;
}

.hdoc-footer-divider[b-ccf6gvoqa0] {
    color: #cbd5e1;
    font-weight: 300;
}

.hdoc-rows-selector[b-ccf6gvoqa0] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    margin: 0;
    font-size: 0.75rem;
}

.hdoc-rows-select[b-ccf6gvoqa0] {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #ffffff;
    color: #334155;
    height: 28px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hdoc-rows-select:focus[b-ccf6gvoqa0] {
    border-color: #3E5470;
    box-shadow: 0 0 0 2px rgba(62, 84, 112, 0.15);
}

/* Page Numbers Navigation */
.hdoc-pagination[b-ccf6gvoqa0] {
    display: inline-flex;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.hdoc-page-btn[b-ccf6gvoqa0] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    background: #ffffff;
    border: none;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    user-select: none;
}

.hdoc-page-btn:last-child[b-ccf6gvoqa0] {
    border-right: none;
}

.hdoc-page-btn:hover:not(:disabled):not(.active)[b-ccf6gvoqa0] {
    background: #f8fafc;
    color: #0f172a;
}

.hdoc-page-btn.active[b-ccf6gvoqa0] {
    background: #3E5470;
    color: #ffffff;
    font-weight: 600;
    border-color: #3E5470;
    z-index: 2;
}

.hdoc-page-btn:disabled[b-ccf6gvoqa0] {
    opacity: 0.45;
    cursor: not-allowed;
    color: #94a3b8;
}

.hdoc-page-arrow[b-ccf6gvoqa0] {
    font-size: 0.72rem;
    color: #64748b;
}

@media (max-width: 640px) {
    .hdoc-table-footer[b-ccf6gvoqa0] {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* ── Custom Scrollbar ── */
.custom-scrollbar[b-ccf6gvoqa0]::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.custom-scrollbar[b-ccf6gvoqa0]::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 9999px;
}

.custom-scrollbar[b-ccf6gvoqa0]::-webkit-scrollbar-track {
    background-color: transparent;
}

/* ── Dark Mode Overrides ── */
body.dark-mode .hdoc-card[b-ccf6gvoqa0] {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .hdoc-card-header[b-ccf6gvoqa0] {
    background: #252525;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .hdoc-card-title[b-ccf6gvoqa0] {
    color: #f8fafc;
}

body.dark-mode .hdoc-required-hint[b-ccf6gvoqa0] {
    color: #94a3b8;
}

body.dark-mode .hdoc-card-badge[b-ccf6gvoqa0] {
    background: rgba(62, 84, 112, 0.2);
    border-color: rgba(62, 84, 112, 0.4);
    color: #265A96;
}

body.dark-mode .hdoc-label[b-ccf6gvoqa0] {
    color: #cbd5e1;
}

body.dark-mode .hdoc-input[b-ccf6gvoqa0] {
    background-color: #272727;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .hdoc-input:hover[b-ccf6gvoqa0] {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: #2c2c2c;
}

body.dark-mode .hdoc-input:focus[b-ccf6gvoqa0] {
    border-color: #265A96;
    background-color: #2c2c2c;
}

body.dark-mode .hdoc-input[b-ccf6gvoqa0]::placeholder {
    color: #64748b;
}

body.dark-mode .hdoc-field-hint[b-ccf6gvoqa0] {
    color: #94a3b8;
}




body.dark-mode .hdoc-file-zone[b-ccf6gvoqa0] {
    background-color: #272727;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .hdoc-file-zone:hover[b-ccf6gvoqa0] {
    background-color: rgba(62, 84, 112, 0.15);
    border-color: #265A96;
}

body.dark-mode .hdoc-file-zone.has-file[b-ccf6gvoqa0] {
    background-color: #2c2c2c;
    border-color: rgba(38, 90, 150, 0.4);
}

body.dark-mode .hdoc-file-name[b-ccf6gvoqa0] {
    color: #e2e8f0;
}

body.dark-mode .hdoc-form-footer[b-ccf6gvoqa0] {
    border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .hdoc-notice-badge[b-ccf6gvoqa0] {
    background-color: rgba(217, 119, 6, 0.15);
    border-color: rgba(217, 119, 6, 0.3);
    color: #fde68a;
}

body.dark-mode .hdoc-btn-clear[b-ccf6gvoqa0] {
    background: #272727;
    color: #cbd5e1;
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .hdoc-btn-clear:hover[b-ccf6gvoqa0] {
    background: #333333;
    color: #ffffff;
}

body.dark-mode .hdoc-table-controls[b-ccf6gvoqa0] {
    background: #1e1e1e;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .hdoc-search-input[b-ccf6gvoqa0] {
    background-color: #272727;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

body.dark-mode .hdoc-search-input:focus[b-ccf6gvoqa0] {
    background-color: #2c2c2c;
    border-color: #265A96;
}

body.dark-mode .hdoc-total-counter[b-ccf6gvoqa0] {
    color: #94a3b8;
}

body.dark-mode .hdoc-total-counter strong[b-ccf6gvoqa0] {
    color: #f1f5f9;
}

body.dark-mode .hdoc-table-wrapper[b-ccf6gvoqa0] {
    background: #1e1e1e;
}

body.dark-mode .hdoc-table thead th[b-ccf6gvoqa0] {
    background-color: #252525;
    color: #94a3b8;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .hdoc-table tbody tr[b-ccf6gvoqa0] {
    background-color: #1e1e1e;
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

body.dark-mode .hdoc-table tbody tr:hover[b-ccf6gvoqa0] {
    background-color: #272727;
}

body.dark-mode .hdoc-doc-title[b-ccf6gvoqa0] {
    color: #e2e8f0;
}

body.dark-mode .hdoc-doc-view-hint[b-ccf6gvoqa0] {
    color: #64748b;
}

body.dark-mode .hdoc-table tbody tr:hover .hdoc-doc-view-hint[b-ccf6gvoqa0] {
    color: #265A96;
}

body.dark-mode .hdoc-row-btn-view:hover[b-ccf6gvoqa0] {
    background-color: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

body.dark-mode .hdoc-table-footer[b-ccf6gvoqa0] {
    background-color: #252525;
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

body.dark-mode .hdoc-footer-summary strong[b-ccf6gvoqa0] {
    color: #f1f5f9;
}

body.dark-mode .hdoc-footer-divider[b-ccf6gvoqa0] {
    color: #475569;
}

body.dark-mode .hdoc-rows-selector[b-ccf6gvoqa0] {
    color: #94a3b8;
}

body.dark-mode .hdoc-rows-select[b-ccf6gvoqa0] {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

body.dark-mode .hdoc-rows-select:focus[b-ccf6gvoqa0] {
    border-color: #265A96;
    box-shadow: 0 0 0 2px rgba(38, 90, 150, 0.25);
}

body.dark-mode .hdoc-pagination[b-ccf6gvoqa0] {
    background: #222222;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .hdoc-page-btn[b-ccf6gvoqa0] {
    background: #222222;
    border-right-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

body.dark-mode .hdoc-page-btn:hover:not(:disabled):not(.active)[b-ccf6gvoqa0] {
    background: #2d2d2d;
    color: #ffffff;
}

body.dark-mode .hdoc-page-btn.active[b-ccf6gvoqa0] {
    background: #3E5470;
    color: #ffffff;
}

body.dark-mode .hdoc-page-btn:disabled[b-ccf6gvoqa0] {
    color: #525252;
    opacity: 0.4;
}

body.dark-mode .hdoc-page-arrow[b-ccf6gvoqa0] {
    color: #94a3b8;
}
