/* _content/InvPro/Components/Account/Shared/ManageLayout.razor.rz.scp.css */
.account-shell[b-0uqr7o7q5w] {
    min-height: 100vh;
    background: var(--invpro-paper);
}

.account-nav-toggle[b-0uqr7o7q5w] {
    display: none;
}

/* ── Appbar (flat ink, mirrors .app-appbar) ── */
.account-appbar[b-0uqr7o7q5w] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    background: var(--invpro-ink);
    color: #FFFFFF;
    z-index: 1300;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.account-hamburger[b-0uqr7o7q5w] {
    display: none; /* shown < 960px */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
}

.account-hamburger:hover[b-0uqr7o7q5w] {
    background: rgba(255, 255, 255, 0.08);
}

.account-hamburger[b-0uqr7o7q5w]  svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.account-brand[b-0uqr7o7q5w] {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-left: 4px;
}

.account-brand-icon[b-0uqr7o7q5w] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.account-brand-wordmark[b-0uqr7o7q5w] {
    font-family: var(--invpro-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.account-brand-inv[b-0uqr7o7q5w] {
    color: #FFFFFF;
}

.account-brand-pro[b-0uqr7o7q5w] {
    color: var(--invpro-emerald);
}

.account-appbar-spacer[b-0uqr7o7q5w] {
    flex: 1;
}

.account-back-btn[b-0uqr7o7q5w] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--invpro-radius-sm);
    transition: background-color 0.2s ease;
}

.account-back-btn:hover[b-0uqr7o7q5w] {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.account-back-btn[b-0uqr7o7q5w]  svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Drawer (flat ink, mirrors .app-drawer) ── */
.account-drawer[b-0uqr7o7q5w] {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    width: 240px;
    background: var(--invpro-ink);
    overflow-y: auto;
    z-index: 1200;
}

.account-drawer[b-0uqr7o7q5w]::-webkit-scrollbar { width: 6px; }
.account-drawer[b-0uqr7o7q5w]::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
.account-drawer[b-0uqr7o7q5w]::-webkit-scrollbar-thumb { background: rgba(18, 133, 92, 0.5); border-radius: 3px; }
.account-drawer[b-0uqr7o7q5w]::-webkit-scrollbar-thumb:hover { background: rgba(18, 133, 92, 0.7); }

.account-scrim[b-0uqr7o7q5w] {
    display: none;
}

/* ── Main content ── */
.account-main[b-0uqr7o7q5w] {
    padding-top: 64px;
    margin-left: 240px;
}

.account-container[b-0uqr7o7q5w] {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.account-title[b-0uqr7o7q5w] {
    font-family: var(--invpro-font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--invpro-ink);
    margin: 4px 0 20px;
}

.account-content[b-0uqr7o7q5w] {
    background: var(--invpro-white);
    border: 1px solid var(--invpro-line);
    border-radius: var(--invpro-radius-lg);
    padding: 24px;
}

/* ── Mobile / tablet (< 960px): overlay drawer driven by the checkbox ── */
@media (max-width: 959.98px) {
    .account-hamburger[b-0uqr7o7q5w] {
        display: inline-flex;
    }

    .account-main[b-0uqr7o7q5w] {
        margin-left: 0;
    }

    .account-container[b-0uqr7o7q5w] {
        padding: 16px;
    }

    .account-content[b-0uqr7o7q5w] {
        padding: 16px;
    }

    .account-drawer[b-0uqr7o7q5w] {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.3);
    }

    .account-nav-toggle:checked ~ .account-drawer[b-0uqr7o7q5w] {
        transform: none;
    }

    .account-scrim[b-0uqr7o7q5w] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1100;
    }

    .account-nav-toggle:checked ~ .account-scrim[b-0uqr7o7q5w] {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 599.98px) {
    .account-back-btn span[b-0uqr7o7q5w] {
        display: none;
    }

    .account-back-btn[b-0uqr7o7q5w] {
        padding: 6px 8px;
        border: none;
    }
}

#blazor-error-ui[b-0uqr7o7q5w] {
    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-0uqr7o7q5w] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* _content/InvPro/Components/Layout/AppLayout.razor.rz.scp.css */
/* Brand lockup in the appbar (reversed variant for dark surfaces) */
.app-brand-icon[b-l96d21qq11] {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.app-brand-wordmark[b-l96d21qq11] {
    font-family: var(--invpro-font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.app-brand-inv[b-l96d21qq11] {
    color: #FFFFFF;
}

.app-brand-pro[b-l96d21qq11] {
    color: var(--invpro-emerald);
}

/* Logout entry inside the account menu (rendered via popover, but scope
   attributes are stamped at compile time so isolation still applies). */
.logout-form[b-l96d21qq11] {
    width: 100%;
    margin: 0;
    padding: 0;
}

.logout-menu-btn[b-l96d21qq11] {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: rgba(199, 68, 46, 0.9);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.logout-menu-btn:hover[b-l96d21qq11] {
    background: rgba(199, 68, 46, 0.1);
    color: #C7442E;
}

#blazor-error-ui[b-l96d21qq11] {
    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-l96d21qq11] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* _content/InvPro/Components/Layout/AuthLayout.razor.rz.scp.css */
.auth-layout[b-4qt0zss36z] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--invpro-mist);
    padding: 1.5rem;
}

.auth-card[b-4qt0zss36z] {
    background: var(--invpro-white);
    border: 1px solid var(--invpro-line);
    border-radius: var(--invpro-radius-lg);
    box-shadow: var(--invpro-shadow-card);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
}

.auth-brand[b-4qt0zss36z] {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand a[b-4qt0zss36z] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.auth-brand-icon[b-4qt0zss36z] {
    width: 36px;
    height: 36px;
}

.auth-brand-wordmark[b-4qt0zss36z] {
    font-family: var(--invpro-font-display);
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.04em;
    line-height: 1;
}

.auth-brand-inv[b-4qt0zss36z] {
    color: var(--invpro-ink);
}

.auth-brand-pro[b-4qt0zss36z] {
    color: var(--invpro-emerald);
}

#blazor-error-ui[b-4qt0zss36z] {
    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-4qt0zss36z] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/InvPro/Components/Pages/Documents/DocumentForm.razor.rz.scp.css */
/* ── Breakpoint switch: table >= 960px, stacked cards below ── */
.lines-mobile[b-1sckvcze44] {
    display: none;
}

@media (max-width: 959.98px) {
    .lines-desktop[b-1sckvcze44] {
        display: none;
    }

    .lines-mobile[b-1sckvcze44] {
        display: block;
    }
}

/* ── Desktop editing table ── */
.lines-scroll[b-1sckvcze44] {
    overflow-x: auto;
}

.lines-table[b-1sckvcze44] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.lines-table th[b-1sckvcze44] {
    text-align: left;
    padding: 8px;
    white-space: nowrap;
    border-bottom: 2px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-secondary);
    font-weight: 600;
}

.lines-table td[b-1sckvcze44] {
    padding: 6px 8px;
    border-bottom: 1px solid var(--mud-palette-divider);
    vertical-align: middle;
}

.lines-table tfoot td[b-1sckvcze44] {
    font-weight: 600;
    border-bottom: none;
    border-top: 2px solid var(--mud-palette-divider);
}

.cell-right[b-1sckvcze44] {
    text-align: right !important;
}

.cell-amount[b-1sckvcze44] {
    white-space: nowrap;
}

.cell-total[b-1sckvcze44] {
    font-weight: 600;
}

/* ── Mobile line cards ── */
.line-card-footer[b-1sckvcze44] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--mud-palette-divider);
}

/* Sticky totals + add-line bar while scrolling through line cards */
.lines-totals[b-1sckvcze44] {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    margin: 8px -12px -12px -12px;
    background: var(--mud-palette-surface);
    border-top: 1px solid var(--mud-palette-divider);
}

.lines-totals-values[b-1sckvcze44] {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

/* Full-width primary actions on phones */
@media (max-width: 599.98px) {
    .form-actions[b-1sckvcze44] {
        flex-direction: column;
    }

    .form-actions[b-1sckvcze44]  .mud-button-root {
        width: 100%;
        min-height: 44px;
    }
}
/* _content/InvPro/Components/Pages/Documents/View.razor.rz.scp.css */
/* Centered reading column: the document sheet plus its app chrome (alerts, email, payments) */
.doc-page[b-50mju4rhoy] {
    max-width: 880px;
    margin: 0 auto;
}

/* ── The sheet: the document itself, everything else on the page is app UI ── */
.doc-sheet[b-50mju4rhoy] {
    background: var(--invpro-white);
    border: 1px solid var(--invpro-line);
    border-radius: var(--invpro-radius-lg);
    box-shadow: var(--invpro-shadow-card);
    padding: 48px;
    margin-bottom: 24px;
}

/* Small-caps field label used across the sheet */
.sheet-label[b-50mju4rhoy] {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--invpro-muted);
    margin-bottom: 4px;
}

.sheet-address[b-50mju4rhoy] {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--invpro-body);
}

/* ── Letterhead ── */
.sheet-head[b-50mju4rhoy] {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.sheet-company-name[b-50mju4rhoy] {
    font-family: var(--invpro-font-display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--invpro-ink);
}

.sheet-doc-id[b-50mju4rhoy] {
    text-align: right;
    flex-shrink: 0;
}

.sheet-doc-type[b-50mju4rhoy] {
    font-family: var(--invpro-font-display);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--invpro-ink);
}

.sheet-doc-number[b-50mju4rhoy] {
    font-size: 15px;
    margin-top: 4px;
    color: var(--invpro-body);
}

.sheet-doc-series[b-50mju4rhoy] {
    font-size: 12px;
    margin-top: 2px;
    color: var(--invpro-muted);
}

/* ── Bill To + stamp ── */
.sheet-parties[b-50mju4rhoy] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.sheet-billto-name[b-50mju4rhoy] {
    font-weight: 600;
    font-size: 15px;
    color: var(--invpro-ink);
}

.sheet-stamp[b-50mju4rhoy] {
    border: 2px solid currentColor;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: var(--invpro-font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(-6deg);
    opacity: 0.6;
    margin-right: 16px;
}

.sheet-stamp--success[b-50mju4rhoy] { color: var(--invpro-emerald); }
.sheet-stamp--warning[b-50mju4rhoy] { color: var(--invpro-amber); }
.sheet-stamp--error[b-50mju4rhoy]   { color: #C7442E; }
.sheet-stamp--muted[b-50mju4rhoy]   { color: var(--invpro-muted); }

/* ── Meta strip (date, due, currency, method, project) ── */
.sheet-meta[b-50mju4rhoy] {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 36px;
    background: var(--invpro-mist);
    border-radius: var(--invpro-radius-sm);
    padding: 14px 18px;
    margin-bottom: 28px;
}

.sheet-meta-value[b-50mju4rhoy] {
    font-size: 13px;
    color: var(--invpro-ink);
}

/* ── Line items: print-style rules instead of a card table ── */
.sheet-lines[b-50mju4rhoy]  .mud-table {
    background: transparent;
    box-shadow: none;
}

.sheet-lines[b-50mju4rhoy]  th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--invpro-muted);
    background: transparent;
    border-bottom: 2px solid var(--invpro-ink);
}

.sheet-lines[b-50mju4rhoy]  td {
    font-size: 13.5px;
    border-bottom: 1px solid var(--invpro-line);
}

/* ── Totals ── */
.sheet-totals[b-50mju4rhoy] {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.sheet-totals-inner[b-50mju4rhoy] {
    min-width: 280px;
}

.sheet-totals-row[b-50mju4rhoy] {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 3px 0;
    font-size: 13px;
    color: var(--invpro-body);
}

.sheet-totals-total[b-50mju4rhoy] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 2px solid var(--invpro-ink);
}

.sheet-total-label[b-50mju4rhoy] {
    font-family: var(--invpro-font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--invpro-ink);
}

.sheet-total-amount[b-50mju4rhoy] {
    font-family: var(--invpro-font-display);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: -0.03em;
    color: var(--invpro-ink);
    white-space: nowrap;
}

.sheet-total-currency[b-50mju4rhoy] {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--invpro-muted);
}

/* ── Footer: payment instructions + note, like a printed invoice ── */
.sheet-footer[b-50mju4rhoy] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--invpro-line);
    font-size: 13px;
    color: var(--invpro-body);
}

/* ── Phones ── */
@media (max-width: 599.98px) {
    .doc-sheet[b-50mju4rhoy] {
        padding: 24px 18px;
    }

    .sheet-head[b-50mju4rhoy] {
        flex-direction: column;
    }

    .sheet-doc-id[b-50mju4rhoy] {
        text-align: left;
    }

    .sheet-parties[b-50mju4rhoy] {
        flex-direction: column;
        align-items: flex-start;
    }

    .sheet-stamp[b-50mju4rhoy] {
        transform: rotate(-4deg);
        margin: 4px 0 0;
    }
}
/* _content/InvPro/Components/Shared/ListFilterBar.razor.rz.scp.css */
.filter-bar-top[b-eipl0a76l5] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-bar-search[b-eipl0a76l5] {
    flex: 1 1 auto;
    min-width: 0;
}

.filter-bar-search:empty[b-eipl0a76l5] {
    display: none;
}

/* Desktop / tablet: filters always expanded, no toggle */
.filter-toggle-wrap[b-eipl0a76l5] {
    display: none;
}

.filter-bar-fields[b-eipl0a76l5] {
    margin-top: 4px;
}

/* Phone: search stays, filter fields collapse behind the toggle */
@media (max-width: 599.98px) {
    .filter-toggle-wrap[b-eipl0a76l5] {
        display: block;
        width: 100%;
    }

    .filter-bar-fields[b-eipl0a76l5] {
        display: none;
    }

    .filter-bar-fields.open[b-eipl0a76l5] {
        display: block;
    }
}
/* _content/InvPro/Components/Shared/PageHeader.razor.rz.scp.css */
.page-header[b-1ovw24wgtt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.page-header-title[b-1ovw24wgtt] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.page-header-actions[b-1ovw24wgtt] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Phone: actions drop to their own full-width row with thumb-sized targets */
@media (max-width: 599.98px) {
    .page-header-actions[b-1ovw24wgtt] {
        width: 100%;
    }

    .page-header-actions[b-1ovw24wgtt]  > .mud-button-root {
        flex: 1 1 auto;
        min-height: 44px;
    }
}
