@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.bundle.scp.css';

/* /Components/Common/MddButton.razor.rz.scp.css */
.spinner-button[b-4wwfr0nheg] {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* /Components/Common/MddNavMenu.razor.rz.scp.css */
.mdd-nav-menu[b-htvn73t6w0] {
    display: contents;
}

/* v5 FluentNav exposes --nav-bg-color, which the nav items read for their own background, so
   setting it here colours the whole rail consistently (item hover keeps the library's tint). */
[b-htvn73t6w0] .navigation-menu {
    height: 100%;
    padding: 0;
    --nav-bg-color: var(--colorSubtleBackgroundHover); /* todo: tab background, define on theme */
    background-color: var(--nav-bg-color);
}

/* Icon-only rail: square edge-to-edge items with the icon centered. */
[b-htvn73t6w0] .fluent-navitem {
    margin: 0;
    border-radius: 0;
    justify-content: center;
}
/* /Components/Common/MddTabs.razor.rz.scp.css */
.mdd-tabs[b-7394deckg6] {
    display: contents;
}

/* v5 renders <div class="fluent-tabs"> containing a <fluent-tablist> web component followed by one
   <div class="fluent-tab-panel"> per tab; with vertical orientation the container is a flex row
   with the tablist first (left in LTR). */
[b-7394deckg6] .fluent-tabs {
    height: 100%;
}

/* Dock the tab strip on the right: RTL on the container reverses the flex row, and the transform
   makes this element the containing block for the web component's fixed-position active indicator,
   so the indicator's over-constrained insets resolve against this RTL box instead of the LTR
   viewport (otherwise the bar paints detached at the far left of the pane). */
.reverse-layout[b-7394deckg6]  .fluent-tabs {
    direction: rtl;
    transform: translate(0);
}

/* Panel content itself stays left-to-right. */
.reverse-layout[b-7394deckg6]  .fluent-tab-panel {
    direction: ltr;
}

/* The strip: a 44px full-height rail with a subtle background. */
[b-7394deckg6] fluent-tablist[orientation="vertical"] {
    background-color: var(--colorSubtleBackgroundHover); /* todo: tab background, define on theme */
    height: 100%;
    width: 44px;
    min-width: 44px;
}

/* Icon-only square tabs (the tab label is shown as a tooltip instead); the web component's own
   align-items handles cross-axis centering. */
[b-7394deckg6] fluent-tab {
    height: 44px;
    width: 44px;
    justify-content: center;
}

/* Panels fill the remaining space edge-to-edge (v5 adds default padding). */
[b-7394deckg6] .fluent-tab-panel {
    padding: 0;
    height: 100%;
    min-width: 0;
}

/* The web component has two active-indicator variants. The anchor-positioned one (a fixed bar
   attached to the tablist) resolves its insets against the viewport in this docked-right layout
   and paints detached from the strip, so it stays hidden. The built-in per-tab bar keeps its own
   geometry and animation and only gets the brand colour it lacks in that rendering branch
   (document styles win over the shadow ::slotted rules, so no !important is needed). */
[b-7394deckg6] fluent-tablist[orientation="vertical"]::after {
    display: none;
}

[b-7394deckg6] fluent-tab[aria-selected="true"]::before {
    background-color: var(--colorCompoundBrandStroke);
}
/* /Components/Common/MddTreeView.razor.rz.scp.css */
.mdd-tree[b-57me0269ss] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    gap: 8px;
    padding: 5px 10px;
}

.mdd-tree-search-note[b-57me0269ss] {
    font-size: var(--fontSizeBase200);
    color: var(--colorNeutralForeground3);
}

.mdd-tree-scroll[b-57me0269ss] {
    flex: 1;
    min-height: 0;
    overflow: auto;
}
/* /Pages/Index.razor.rz.scp.css */
.main-layout[b-q6y3f52m0b] {
    display: flex;
    height: 100%;
}
/* /Pages/Login/Login.razor.rz.scp.css */
.loading-container[b-2vwvrv5lh4] {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 10px;
    place-items: anchor-center;
    height: 100%;
    align-content: center;
    place-items: center;
}

.loading-container p[b-2vwvrv5lh4] {
    margin: 0;
}
/* /Pages/Preview/Preview.razor.rz.scp.css */
.preview-container[b-88kr9pqqis] {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.preview-header[b-88kr9pqqis] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-bottom-width: 1px;
    padding-top: 8px;
    padding-right: 16px;
    padding-bottom: 8px;
    padding-left: 16px;
    background: var(--Color-BG-surface-secondary, #FCFCFD);
    border-bottom: 1px solid var(--Color-Border-border-light, #EEF0F2)
}

.preview-result[b-88kr9pqqis] {
    max-width: 100%;
}

.action-bar[b-88kr9pqqis] {
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
    gap: 8px;
    overflow: hidden;
}

.action-bar[b-88kr9pqqis]  fluent-dropdown{
    min-width: 0;
    overflow: hidden;
}

.action-bar[b-88kr9pqqis]  fluent-dropdown > button[slot="control"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Pages/Preview/PreviewFrame.razor.rz.scp.css */
.preview-result-frame[b-65qj6nxofq] {
    border: 1px solid var(--Color-Border-border-default, #DFE1E4);
    margin: 0px 16px 8px 16px;
    height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.--dialog[b-65qj6nxofq] {
    margin: 0px;
    overflow: hidden;
    overflow-y: auto;
}

.preview-result-frame__empty[b-65qj6nxofq] {
    text-align: center;
    align-content: center;
    height: 100%;
}

.preview-result-frame__header[b-65qj6nxofq] {
    background-color: var(--Color-BG-background, #EEF0F2);
    padding: 4px 8px 4px 8px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--Color-Border-border-default, #DFE1E4);
}

.preview-result-frame__content[b-65qj6nxofq] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background: var(--Color-Border-border-default, #DFE1E4);
    overflow-y: hidden;
}

    .preview-result-frame__content img[b-65qj6nxofq] {
        max-width: 100%;
    }

.preview-result-frame__content-wrapper[b-65qj6nxofq] {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 4px;
    overflow-y: auto;
    gap: 4px;
}
    .preview-result-frame__content-wrapper p[b-65qj6nxofq] {
        color: var(--Color-Text-text-secondary, #58687E);
    }

.header-buttons[b-65qj6nxofq] {
    flex-grow: 1;
    text-align: right;
}

.dialog-open-overlay[b-65qj6nxofq] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.9;
    background-color: var(--Color-BG-background, #EEF0F2);
    display: flex;
    flex-grow: 1;
    z-index: 1;
}

    .dialog-open-overlay p[b-65qj6nxofq] {
        position: sticky;
        place-self: anchor-center;
        width: 100%;
        text-align: center;
        color: var(--Color-Text-text-default, #141B29);
    }

.loading-preview[b-65qj6nxofq] {
    display: grid;
    gap: 10px;
    place-items: anchor-center;
    height: 100%;
    align-content: center;
}
/* /Pages/TextParts/TextParts.razor.rz.scp.css */
.text-parts[b-7tzud735pm] {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 10px;
}

.text-parts[b-7tzud735pm]  .text-parts__list {
    align-content: start;
    overflow-y: auto;
}


.text-parts[b-7tzud735pm]  .text-parts__list td {
    min-height: 40px;
}

.text-parts[b-7tzud735pm]  fluent-menu-list {
    inset-inline-start: auto;
    inset-inline-end: anchor(end);
}

.text-part-input[b-7tzud735pm] {
    display: flex;
    flex-direction: column;
}
/* /Pages/XBRL/Xbrl.razor.rz.scp.css */
.xbrl-container[b-pkubo2do65] {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* padding: 5px 10px; */
    background-color: var(--Color-Neutral-BG);
}

.xbrl-toolbar[b-pkubo2do65] {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
    margin: 10px 5px;
    container-type: inline-size; /* lets the @container rule below react to the toolbar's own width */
}

.xbrl-toolbar[b-pkubo2do65]  .xbrl-toolbar-left-icons {
    flex-grow: 1;
}

.xbrl-toolbar[b-pkubo2do65]  .xbrl-toolbar-validate .spinner-button {
    white-space: nowrap;
}

@container (max-width: 340px) {
    .xbrl-toolbar[b-pkubo2do65]  .xbrl-toolbar-validate {
        min-width: 32px;
        max-width: 32px;
        padding: 0;
    }

    .xbrl-toolbar[b-pkubo2do65]  .xbrl-toolbar-validate .spinner-button {
        display: none;
    }

    .xbrl-toolbar[b-pkubo2do65]  .xbrl-toolbar-validate > [slot="end"] {
        margin-inline-start: 0;
    }
}

/* FLUENT BUG WORKAROUNDS - TODO: change if fluent fixes issues --------------------------------*/

/* Right-align the popover to its trigger. fluent-menu's shadow CSS anchors the list's LEFT edge to the trigger
   (inset-inline-start: anchor(self-start)) and, since rc.5, adds a flip-inline fallback; a document rule on the
   slotted element wins over the shadow ::slotted rule. Pinning the right edge (and dropping flip-inline) keeps the
   list under its own button instead of relying on overflow-triggered flipping. */
.xbrl-toolbar[b-pkubo2do65]  fluent-menu-list.open-to-left {
    inset-inline-start: auto;
    inset-inline-end: anchor(self-end);
    position-try-fallbacks: flip-block;
}

/* Validation split button: fluent-menu anchors the popover to the chevron trigger (right-aligned in split mode), which
   runs off the task pane's left edge at narrow widths. Anchor it to the primary button's left edge instead, cap it to
   the pane, and let the long labels wrap (fluent-menu-list caps itself at 300px). flip-* fallbacks mirror Fluent's own. */
.xbrl-toolbar[b-pkubo2do65]  fluent-menu[split] > [slot="primary-action"] {
    anchor-name: --xbrl-split-primary;
}

.xbrl-toolbar[b-pkubo2do65]  fluent-menu-list.xbrl-validation-menu {
    inset-inline-start: anchor(--xbrl-split-primary self-start);
    inset-inline-end: auto;
    max-inline-size: calc(100vw - 20px);
    position-try-fallbacks:
        flip-block,
        flip-inline,
        flip-block flip-inline;
}

/* fluent-menu-item's shadow CSS pins the host to height: 32px and sets white-space: nowrap on its .content span
   (exposed as part="content"); both must be relaxed for the labels to wrap. */
.xbrl-toolbar[b-pkubo2do65]  fluent-menu-list.xbrl-validation-menu fluent-menu-item {
    height: auto;
    min-height: 32px;
    padding-block: 6px;
    text-align: start;
}

.xbrl-toolbar[b-pkubo2do65]  fluent-menu-list.xbrl-validation-menu fluent-menu-item::part(content) {
    white-space: normal;
}
/* FLUENT BUG WORKAROUNDS END -----------------------------------------------*/

.xbrl-toolbar[b-pkubo2do65]  fluent-menu-list fluent-menu-item {
    display: flex; /* TODO: the component renders as a grid with 4 cols and gets cut off. Solve when blazor fluent fixes it  */
}

/* View-option row: icon | label (fills the middle) | switch, so every switch right-aligns regardless of
   how long the label is. */
.xbrl-view-option[b-pkubo2do65] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.xbrl-view-option-label[b-pkubo2do65] {
    flex: 1 1 auto;
    white-space: nowrap;
}

.xbrl-body[b-pkubo2do65] {
    display: grid;
    grid-template-columns: 1fr; /* tree alone: full width */
    grid-template-rows: auto;
    gap: 16px;
    min-height: 0;
    flex: 1;
}

/* Split tree/panel only while the link panel is actually rendered (it's an @if block). */
.xbrl-body:has(> .xbrl-link-panel)[b-pkubo2do65] {
    grid-template-columns: 1.5fr minmax(260px, 1fr);
}

.xbrl-tree[b-pkubo2do65] {
    /* MddTreeView manages its own scroll region; this is just the grid cell. auto (not scroll)
       so Office's classic scrollbar tracks don't render permanently. */
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.xbrl-link-panel[b-pkubo2do65] {
    display: grid;
    gap: 8px;
    align-content: start;
    /* border: 1px solid var(--colorNeutralStroke1); */
    /* border-radius: 6px; */
    padding: 12px;
    overflow: hidden;
    min-width: 260px; /* prevents the panel from making the catalog selector break - fluent ui bug not allowing selectors' control in shadow root to be less than 160px */
    border-left: 1px solid var(--Color-Border-border-light);
}

.xbrl-link-panel-form[b-pkubo2do65] {
    display: flex;
    flex-wrap: balance;
    gap: 0 10px;
    overflow: auto;
    align-items: end;
    gap: 5px 10px;
}

.xbrl-link-panel-form[b-pkubo2do65] >  * {
    flex: 1 1 40%;
    margin: 0;
}

.xbrl-link-panel-actions[b-pkubo2do65] {
    display: flex;
    align-items: center;
    flex-wrap: balance;
    gap: 8px;
    margin-top: 4px;
}

/* Catalog switcher: prev/next buttons flanking the catalog dropdown, which fills the middle. */
.xbrl-catalog-switcher[b-pkubo2do65] {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* The select is rendered by a child component, so scoped CSS can't reach it directly — pierce with
   ::deep and target it by class (positional selectors are fragile: the Label adds a sibling element). */
.xbrl-catalog-switcher[b-pkubo2do65]  .xbrl-catalog-select {
    flex: 1 1;
    min-width: 0;
    margin-top: -5px; /* align with the prev/next buttons */
}

.xbrl-link-panel-header[b-pkubo2do65] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.xbrl-link-panel-header[b-pkubo2do65]  p {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Applied to a FluentLabel (child component), so it must be pierced with ::deep. */
.xbrl-link-panel[b-pkubo2do65]  .xbrl-link-panel-concept-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-color: var(--colorNeutralBackground2Hover);
    border-radius: 4px;
    padding: 2px 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}
.xbrl-link-panel[b-pkubo2do65]  .xbrl-link-panel-concept-name p {
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 0;
}

.panel-close-icon[b-pkubo2do65] {
    align-self: flex-start;
}

.xbrl-node[b-pkubo2do65] {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    min-width: 0;
    overflow: hidden;
}

/* Pills keep their size; only the label shrinks. */
.xbrl-node[b-pkubo2do65]  fluent-badge {
    flex: none;
}

/* Right-click "expand/collapse all" menu for a branch node. Fixed at the cursor, above everything, with a
   full-viewport overlay behind it to catch outside clicks. */
.xbrl-context-menu-overlay[b-pkubo2do65] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.xbrl-context-menu[b-pkubo2do65] {
    position: fixed;
    z-index: 1001;
    min-width: 140px;
    padding: 4px;
    background: var(--colorNeutralBackground1);
    border: 1px solid var(--colorNeutralStroke1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}

.xbrl-context-menu-item[b-pkubo2do65] {
    appearance: none;
    background: none;
    border: none;
    text-align: left;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    color: var(--colorNeutralForeground1);
}

.xbrl-context-menu-item:hover[b-pkubo2do65] {
    background: var(--colorNeutralBackground1Hover);
}

/* Long concept names: one line with an ellipsis; the tooltip (or title attribute) shows the full name. */
.xbrl-node-text[b-pkubo2do65] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    pointer-events: auto; /* hover target for the tooltip (and the expand/collapse click) */
}

.xbrl-node[b-pkubo2do65]  .xbrl-node-tooltip {
    flex-direction: column;
}

.xbrl-label-line[b-pkubo2do65] {
    white-space: normal;
    overflow-wrap: anywhere;
    color: var(--Color-Text-text-secondary);
}

.xbrl-label-line.default[b-pkubo2do65] {
    font-weight: 700;
    color: var(--Color-Text-text-default);
}

.xbrl-label-kind[b-pkubo2do65] {
    opacity: 0.8;
}

/* Prohibited concepts are de-emphasised (greys the type pill and the text via the container opacity),
   with no strikethrough. Applied to .xbrl-node so it fades the inline-coloured pill too. */
.xbrl-node.prohibited[b-pkubo2do65] {
    opacity: 0.5;
}

/* Status/concept-type pill colours live in wwwroot/css/app.css (global) — styling the FluentBadge
   child component through page-scoped ::deep was fragile across filtered-tree re-renders. */

.xbrl-empty-message[b-pkubo2do65] {
    text-align: center;
    margin: auto 10px;
}

@media (max-width: 600px) {
    /* Also match the :has() split rule, whose higher specificity would otherwise win here. */
    .xbrl-body[b-pkubo2do65],
    .xbrl-body:has(> .xbrl-link-panel)[b-pkubo2do65] {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .xbrl-link-panel[b-pkubo2do65] {
        border-left: none;
        border-top: 1px solid var(--Color-Border-border-light);
    }
}

.xbrl-catalog-select[b-pkubo2do65]  .control {
    min-width: 0; /* allow the select to shrink in a flex row */
}

.xbrl-validation-panel[b-pkubo2do65] {
    display: grid;
    gap: 8px;
    align-content: start;
    border-top: 1px solid var(--Color-Border-border-light);
    border-bottom: 1px solid var(--Color-Border-border-light);
    padding: 12px;
    max-height: 40vh;
    min-height: 0;
    overflow: hidden;
}

.xbrl-validation-list[b-pkubo2do65] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    overflow: auto;
}

.xbrl-validation-row[b-pkubo2do65] {
    appearance: none;
    background: none;
    border: none;
    text-align: left;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    color: var(--colorNeutralForeground1);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.xbrl-validation-row:hover[b-pkubo2do65] {
    background: var(--colorNeutralBackground1Hover);
}

.xbrl-validation-row-main[b-pkubo2do65] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.xbrl-validation-row-main[b-pkubo2do65]  fluent-badge {
    flex: none;
}

.xbrl-validation-row-concept[b-pkubo2do65] {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xbrl-validation-row-context[b-pkubo2do65] {
    color: var(--colorNeutralForeground3);
    white-space: nowrap;
}

.xbrl-validation-row-reason[b-pkubo2do65] {
    color: var(--colorNeutralForeground3);
    font-size: 0.9em;
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-ir6sapkiss] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-ir6sapkiss] {
    flex: 1;
}

.sidebar[b-ir6sapkiss] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-ir6sapkiss] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-ir6sapkiss]  a, .top-row[b-ir6sapkiss]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-ir6sapkiss]  a:hover, .top-row[b-ir6sapkiss]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-ir6sapkiss]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-row:not(.auth)[b-ir6sapkiss] {
        display: none;
    }

    .top-row.auth[b-ir6sapkiss] {
        justify-content: space-between;
    }

    .top-row[b-ir6sapkiss]  a, .top-row[b-ir6sapkiss]  .btn-link {
        margin-left: 0;
    }
/*
@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth ::deep a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
*/
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-fejbh5mlcg] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-fejbh5mlcg] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-fejbh5mlcg] {
    font-size: 1.1rem;
}

.oi[b-fejbh5mlcg] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-fejbh5mlcg] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-fejbh5mlcg] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-fejbh5mlcg] {
        padding-bottom: 1rem;
    }

    .nav-item[b-fejbh5mlcg]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-fejbh5mlcg]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-fejbh5mlcg]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/*@media (min-width: 641px) {
    .navbar-toggler {
        display: none;
    }

    .collapse {*/
        /* Never collapse the sidebar for wide screens */
        /*display: block;
    }
}*/
