@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';

/* /Components/Dialogs/CreateForecastDialog.razor.rz.scp.css */
/* The create-forecast dialog (issue #58). Scoped to this component rather than added to the shared
   token sheets, the way LinkQuoteDialog.razor.css is: this is one dialog's grid and summary strip
   and no other screen has asked for either. Every value is a token from issue 15's layer - no
   hard-coded colours (CLAUDE.md section 6). */

/* The mockup's two-up header row: forecast set beside quantity basis. */
.vis-fc-fields[b-7jbhzsgll0] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
    width: 100%;
}

.vis-fc-field[b-7jbhzsgll0] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

/* The rule that keeps a Fluent control inside this grid's cells is NOT here, and cannot be:
   Blazor's CSS isolation appends the scope attribute to the LAST compound selector, so
   `.vis-fc-field fluent-select` compiles to `.vis-fc-field fluent-select[b-...]` and never
   matches - FluentSelect renders the element, so it carries Fluent's scope and not ours. That is
   why the identical `.dialog-field fluent-select` rule lives in the shared sheet, and why
   `.vis-fc-field` joins it there rather than being repeated here (issue #291). */

.vis-fc-field-label[b-7jbhzsgll0] {
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    color: var(--text-muted);
}

.vis-fc-field-help[b-7jbhzsgll0] {
    font-size: var(--fs-12);
    color: var(--text-muted);
}

.vis-fc-grid[b-7jbhzsgll0] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-13);
}

.vis-fc-grid thead th[b-7jbhzsgll0] {
    padding: 0 8px 8px 8px;
    border-bottom: 1px solid var(--border-default);
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.vis-fc-grid tbody td[b-7jbhzsgll0] {
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-body);
    vertical-align: baseline;
}

/* The tick box is the control, and the only one: a whole-row click would fire beside the
   checkbox's own change event and toggle twice. */
.vis-fc-grid .vis-fc-pick[b-7jbhzsgll0] {
    width: 32px;
    padding-right: 0;
}

.vis-fc-grid tbody tr.selected td[b-7jbhzsgll0] {
    background: var(--surface-selected);
    color: var(--text-primary);
}

/* "In <set>" - context, not data the rep is choosing on. */
.vis-fc-grid .vis-fc-already[b-7jbhzsgll0] {
    color: var(--text-muted);
    white-space: nowrap;
}

/* The live summary the mockup puts under the grid: four figures on one tinted strip.

   box-sizing and flex-wrap here are CONTAINMENT, not decoration (issue #291). This strip is
   `width: 100%` with 12px of padding and a 1px border a side, and these sheets carry no
   box-sizing reset (#276's global one is still deferred), so its border box was exactly 26px
   wider than the dialog AT EVERY WIDTH - measured 1201.91px inside a 1175.91px sheet, which
   put the right-hand tile on the overlay outside the white sheet. Once the strip itself fits,
   its four tiles still add up to more than a phone-width sheet, so they wrap onto a second
   line rather than running out of one. */
.vis-fc-summary[b-7jbhzsgll0] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    gap: var(--space-6);
    width: 100%;
    padding: 10px 12px;
    background: var(--brand-faint);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
}

.vis-fc-summary-tile[b-7jbhzsgll0] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vis-fc-summary-label[b-7jbhzsgll0] {
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    font-weight: var(--fw-semibold);
    color: var(--text-muted);
}

.vis-fc-summary-value[b-7jbhzsgll0] {
    font-size: var(--fs-16);
    color: var(--text-primary);
}
/* /Components/Dialogs/LinkQuoteDialog.razor.rz.scp.css */
/* The linkable-quote grid (issue #49). Scoped to this component rather than added to the shared
   token sheets, the way AnonymousLayout.razor.css is: this is one screen's table and no other screen has
   asked for one yet. Every value is a token from issue #15's layer - no hard-coded colours
   (CLAUDE.md section 6). */

.vis-quote-grid[b-84re6j6wob] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-13);
}

.vis-quote-grid thead th[b-84re6j6wob] {
    padding: 0 8px 8px 8px;
    border-bottom: 1px solid var(--border-default);
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.vis-quote-grid tbody td[b-84re6j6wob] {
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--grey-800);
    vertical-align: baseline;
}

/* The whole row is the control - the mockup has no radio column, and a 640px-wide dialog has no
   room to spend on one. */
.vis-quote-grid tbody tr[b-84re6j6wob] {
    cursor: pointer;
}

.vis-quote-grid tbody tr:hover td[b-84re6j6wob] {
    background: var(--navy-50);
}

.vis-quote-grid tbody tr.selected td[b-84re6j6wob] {
    background: var(--navy-100);
    color: var(--grey-900);
}
/* /Components/Layout/AnonymousLayout.razor.rz.scp.css */
/* The anonymous shell (#239): the portal's NoAuthLayout shape in VisCRM's tokens — the chrome
   band on top (the Header component paints itself via components.css), and a light page below,
   full height. Scoped, so nothing here can leak onto the authenticated shell. */

.anonymous-page[b-iink0ua9l6] {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background: var(--surface-page);
}

/* Every anonymous page gets breathing room — the error and not-found diagnostics render plain
   prose straight into this element. The login card compensates in its own sheet so its gap
   below the header stays the portal's 3rem. */
.anonymous-shell[b-iink0ua9l6] {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--gutter-page);
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-9worwec53u] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-9worwec53u] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-fxoxvkfris],
.components-reconnect-repeated-attempt-visible[b-fxoxvkfris],
.components-reconnect-failed-visible[b-fxoxvkfris],
.components-pause-visible[b-fxoxvkfris],
.components-resume-failed-visible[b-fxoxvkfris],
.components-rejoining-animation[b-fxoxvkfris] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-retrying[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-failed[b-fxoxvkfris],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-fxoxvkfris] {
    display: block;
}


#components-reconnect-modal[b-fxoxvkfris] {
    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-fxoxvkfris 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-fxoxvkfris 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-fxoxvkfris 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-fxoxvkfris]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-fxoxvkfris 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-fxoxvkfris {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-fxoxvkfris {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-fxoxvkfris {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-fxoxvkfris] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-fxoxvkfris] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-fxoxvkfris] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-fxoxvkfris] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-fxoxvkfris] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-fxoxvkfris] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-fxoxvkfris] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-fxoxvkfris 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-fxoxvkfris] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-fxoxvkfris {
    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/QuoteMaintenance.razor.rz.scp.css */
/* Quote Maintenance's Add screen (issues #50 and #51). Scoped to this page rather than added to the
   shared token sheets, the way AnonymousLayout.razor.css is: nothing else in the app has asked for a
   header-field grid or an editable line table yet, and when a second screen does these move to
   components.css rather than being copied. Every value is a token from issue #15's layer - no
   hard-coded colours (CLAUDE.md section 6). */

.vis-qm-eyebrow[b-5yjxzl1v7g] {
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
}

.vis-qm-reference-chip[b-5yjxzl1v7g] {
    font-size: var(--fs-12);
    color: var(--text-muted);
}

.vis-qm-card[b-5yjxzl1v7g] {
    display: block;
    margin-bottom: 16px;
    padding: 16px;
}

/* Who the quote is for, in the mockup's tinted panel. */
.vis-qm-account[b-5yjxzl1v7g] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background: var(--navy-50);
    border: 1px solid var(--navy-100);
    border-radius: var(--radius-card);
}

.vis-qm-row[b-5yjxzl1v7g] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vis-qm-field[b-5yjxzl1v7g] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.vis-qm-label[b-5yjxzl1v7g] {
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
}

.vis-qm-value[b-5yjxzl1v7g] {
    font-size: var(--fs-14);
    color: var(--grey-900);
}

.vis-qm-subvalue[b-5yjxzl1v7g] {
    font-size: var(--fs-13);
    color: var(--text-secondary);
}

/* ---- the line grid ---- */

.vis-qm-lines[b-5yjxzl1v7g] {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-13);
    margin-top: 12px;
}

.vis-qm-lines thead th[b-5yjxzl1v7g] {
    padding: 0 8px 8px 8px;
    border-bottom: 1px solid var(--border-default);
    text-align: left;
    font-family: var(--font-display);
    font-size: var(--fs-11);
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
}

.vis-qm-lines tbody td[b-5yjxzl1v7g] {
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--grey-800);
    vertical-align: middle;
}

/* The part cell anchors the suggestion panel, so it establishes the positioning context. */
.vis-qm-lines tbody td:first-child[b-5yjxzl1v7g] {
    position: relative;
}

.vis-qm-suggestions[b-5yjxzl1v7g] {
    position: absolute;
    z-index: 80;
    top: 100%;
    left: 0;
    width: 330px;
    max-height: 230px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-lg);
}

.vis-qm-suggestion[b-5yjxzl1v7g] {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 74px;
    gap: 8px;
    align-items: baseline;
    padding: 7px 9px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    font-size: var(--fs-12);
    color: var(--grey-900);
}

.vis-qm-suggestion:hover[b-5yjxzl1v7g] {
    background: var(--navy-50);
}

.vis-qm-suggestion-desc[b-5yjxzl1v7g] {
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The two things an open panel with no rows can say (#264). One treatment, because they are the
   same kind of line - a state, not a row the rep can pick. */
.vis-qm-suggestion-empty[b-5yjxzl1v7g],
.vis-qm-suggestion-searching[b-5yjxzl1v7g] {
    padding: 7px 9px;
    font-size: var(--fs-12);
    color: var(--text-muted);
}

/* ---- the running total and the page footer ---- */

.vis-qm-total-row[b-5yjxzl1v7g] {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-default);
}

.vis-qm-total[b-5yjxzl1v7g] {
    font-size: var(--fs-16);
    color: var(--grey-900);
}

.vis-qm-footer[b-5yjxzl1v7g] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
