/* /Components/PageHeader.razor.rz.scp.css */
.page-header[b-r00x5th4o5] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.page-header-content[b-r00x5th4o5] {
    min-width: 0;
}

.page-header-eyebrow[b-r00x5th4o5] {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: var(--tdl-primary-soft);
    color: var(--tdl-primary-hover);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-header-title[b-r00x5th4o5] {
    margin: 0;
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    line-height: 1.08;
    font-weight: 900;
    color: var(--tdl-text-primary);
    letter-spacing: -0.035em;
}

.page-header-description[b-r00x5th4o5] {
    margin: 0.65rem 0 0 0;
    max-width: 780px;
    color: var(--tdl-text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.page-header-actions[b-r00x5th4o5] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .page-header[b-r00x5th4o5] {
        flex-direction: column;
        align-items: stretch;
    }

    .page-header-actions[b-r00x5th4o5] {
        justify-content: flex-start;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-c7yqbxz1vs] {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    background: var(--tdl-page-gradient);
}

.sidebar[b-c7yqbxz1vs] {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96) 0%, rgba(244, 247, 252, 0.94) 100%);
    border-right: 1px solid rgba(217, 226, 238, 0.95);
    padding: 1.15rem 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    backdrop-filter: blur(18px);
    box-shadow: 16px 0 42px rgba(15, 23, 42, 0.04);
}

.brand-panel[b-c7yqbxz1vs] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 0.35rem 1.15rem 0.35rem;
    border-bottom: 1px solid rgba(219, 227, 238, 0.9);
    margin-bottom: 1.15rem;
    text-decoration: none;
    color: inherit;
}

.brand-panel:hover[b-c7yqbxz1vs] {
    color: inherit;
}

.brand-logo[b-c7yqbxz1vs] {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0f172a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.brand-title[b-c7yqbxz1vs] {
    font-size: 1.05rem;
    font-weight: 850;
    color: var(--tdl-text-primary);
    line-height: 1.1;
}

.brand-subtitle[b-c7yqbxz1vs] {
    margin-top: 0.25rem;
    font-size: 0.84rem;
    color: var(--tdl-text-muted);
    line-height: 1.3;
}

.sidebar-help[b-c7yqbxz1vs] {
    margin-top: 1.1rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(250, 252, 255, 0.92) 100%);
}

.sidebar-help-title[b-c7yqbxz1vs] {
    font-size: 0.82rem;
    font-weight: 850;
    color: var(--tdl-primary-hover);
    margin-bottom: 0.3rem;
}

.sidebar-help-text[b-c7yqbxz1vs] {
    font-size: 0.84rem;
    color: var(--tdl-text-secondary);
    line-height: 1.45;
}

.workspace[b-c7yqbxz1vs] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 18rem);
}

.topbar[b-c7yqbxz1vs] {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(219, 227, 238, 0.82);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(244, 247, 251, 0.84) 100%);
    backdrop-filter: blur(14px);
}

.topbar-meta[b-c7yqbxz1vs] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.topbar-kicker[b-c7yqbxz1vs] {
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    color: var(--tdl-text-muted);
    text-transform: uppercase;
}

.topbar-date[b-c7yqbxz1vs] {
    color: var(--tdl-text-secondary);
    font-size: 0.92rem;
    font-weight: 650;
    text-transform: capitalize;
}

.topbar-actions[b-c7yqbxz1vs] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.topbar-action[b-c7yqbxz1vs] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tdl-primary) 0%, var(--tdl-primary-hover) 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.topbar-action:hover[b-c7yqbxz1vs] {
    background: linear-gradient(135deg, var(--tdl-primary-hover) 0%, #1e40af 100%);
    color: #ffffff;
}

.topbar-status[b-c7yqbxz1vs] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--tdl-text-secondary);
    border: 1px solid rgba(217, 226, 238, 0.95);
    box-shadow: var(--tdl-shadow-sm);
    white-space: nowrap;
    font-weight: 700;
}

.status-dot[b-c7yqbxz1vs] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.page-body[b-c7yqbxz1vs] {
    width: 100%;
    max-width: 1480px;
    padding: 1.75rem 2rem 2.5rem 2rem;
}

@media (max-width: 1100px) {
    .app-shell[b-c7yqbxz1vs] {
        grid-template-columns: 1fr;
    }

    .sidebar[b-c7yqbxz1vs] {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--tdl-border);
        box-shadow: none;
    }

    .sidebar-help[b-c7yqbxz1vs] {
        display: none;
    }

    .topbar[b-c7yqbxz1vs] {
        padding: 0.9rem 1rem;
    }

    .page-body[b-c7yqbxz1vs] {
        padding: 1.25rem 1rem 2rem 1rem;
    }
}

@media (max-width: 700px) {
    .topbar[b-c7yqbxz1vs] {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions[b-c7yqbxz1vs] {
        width: 100%;
    }

    .topbar-action[b-c7yqbxz1vs],
    .topbar-status[b-c7yqbxz1vs] {
        flex: 1;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.nav-shell[b-cyp0ljt22v] {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.nav-section[b-cyp0ljt22v] {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.55rem;
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(247, 250, 252, 0.86) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.nav-caption[b-cyp0ljt22v] {
    padding: 0.1rem 0.65rem 0.4rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tdl-text-muted);
}

.nav-item[b-cyp0ljt22v],
.nav-item:hover[b-cyp0ljt22v],
.nav-item:focus[b-cyp0ljt22v],
.nav-item:visited[b-cyp0ljt22v] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.82rem 0.85rem;
    border-radius: 14px;
    text-decoration: none;
}

.nav-item[b-cyp0ljt22v] {
    position: relative;
    color: var(--tdl-text-secondary);
    font-weight: 750;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-item[b-cyp0ljt22v]::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 4px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.18s ease;
}

.nav-item:hover[b-cyp0ljt22v] {
    background: rgba(241, 245, 249, 0.92);
    color: var(--tdl-text-primary);
    transform: translateX(2px);
}

.nav-item.active[b-cyp0ljt22v] {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
    color: var(--tdl-primary-hover);
    box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.95);
}

.nav-item.active[b-cyp0ljt22v]::before {
    background: linear-gradient(180deg, var(--tdl-primary) 0%, #7c3aed 100%);
}

.nav-item-icon[b-cyp0ljt22v] {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.96);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav-item:hover .nav-item-icon[b-cyp0ljt22v] {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.nav-item.active .nav-item-icon[b-cyp0ljt22v] {
    background: linear-gradient(180deg, #dbeafe 0%, #eef4ff 100%);
    color: var(--tdl-primary-hover);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}

.nav-item-icon svg[b-cyp0ljt22v] {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item-text[b-cyp0ljt22v] {
    min-width: 0;
    text-decoration: none;
}

.nav-item-badge[b-cyp0ljt22v] {
    margin-left: auto;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--tdl-text-muted);
    font-size: 0.72rem;
    font-weight: 850;
}

.nav-item-muted[b-cyp0ljt22v] {
    opacity: 0.62;
    cursor: default;
}

.nav-item-muted:hover[b-cyp0ljt22v] {
    transform: none;
    background: transparent;
    color: var(--tdl-text-secondary);
}

.nav-item-muted:hover .nav-item-icon[b-cyp0ljt22v] {
    background: var(--tdl-surface-soft);
    color: #64748b;
    box-shadow: none;
}

@media (max-width: 1100px) {
    .nav-shell[b-cyp0ljt22v] {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .nav-section[b-cyp0ljt22v] {
        min-width: 190px;
        flex: 1 1 220px;
    }
}
/* /Pages/AlopDocumentDetails.razor.rz.scp.css */
.alop-page-shell[b-ep7xs48ekt] {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
}

.alop-page-hero[b-ep7xs48ekt] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 0 0.5rem;
}

.alop-page-heading[b-ep7xs48ekt] {
    min-width: 0;
}

.alop-breadcrumb[b-ep7xs48ekt] {
    color: var(--tdl-primary-hover);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.alop-page-title[b-ep7xs48ekt] {
    margin: 0.2rem 0 0;
    color: var(--tdl-text-primary);
    font-size: clamp(1.8rem, 2.1vw, 2.35rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.alop-page-title:focus[b-ep7xs48ekt] {
    outline: none;
}

.alop-page-subtitle[b-ep7xs48ekt] {
    margin: 0.45rem 0 0;
    color: var(--tdl-text-secondary);
    font-size: 0.98rem;
}

.alop-page-actions[b-ep7xs48ekt] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.alop-details-grid[b-ep7xs48ekt] {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.alop-details-grid > :first-child[b-ep7xs48ekt] {
    grid-row: span 2;
}

.alop-page-shell[b-ep7xs48ekt]  .section-card {
    border-radius: var(--tdl-radius-lg);
    box-shadow: var(--tdl-shadow-sm);
}

.alop-page-shell[b-ep7xs48ekt]  .section-card-header {
    padding: 1rem 1.1rem 0;
}

.alop-page-shell[b-ep7xs48ekt]  .section-card-title {
    font-size: 1rem;
}

.alop-page-shell[b-ep7xs48ekt]  .section-card-subtitle {
    margin-top: 0.3rem;
    font-size: 0.94rem;
}

.alop-page-shell[b-ep7xs48ekt]  .section-card-body {
    padding: 1rem 1.1rem 1.1rem;
}

.alop-detail-fields[b-ep7xs48ekt] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.alop-detail-field[b-ep7xs48ekt] {
    min-width: 0;
}

.alop-detail-field--wide[b-ep7xs48ekt] {
    grid-column: 1 / -1;
}

.alop-detail-label[b-ep7xs48ekt] {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--tdl-text-muted);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.alop-detail-value[b-ep7xs48ekt] {
    display: block;
    color: var(--tdl-text-primary);
    font-size: 0.94rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.alop-amount-value[b-ep7xs48ekt] {
    display: block;
    color: var(--tdl-text-primary);
    font-size: 1rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.alop-path-value[b-ep7xs48ekt] {
    display: block;
    color: var(--tdl-text-secondary);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.alop-status-pill[b-ep7xs48ekt] {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.25rem 0.58rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 850;
}

.alop-section-summary[b-ep7xs48ekt] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 1rem;
}

.alop-section-summary > div[b-ep7xs48ekt] {
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--tdl-border);
    border-radius: var(--tdl-radius-sm);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.alop-section-summary span[b-ep7xs48ekt] {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--tdl-text-muted);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.alop-section-summary strong[b-ep7xs48ekt] {
    display: block;
    color: var(--tdl-text-primary);
    font-size: 1.05rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.alop-validation-panel[b-ep7xs48ekt] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.alop-validation-status[b-ep7xs48ekt],
.alop-validation-actions[b-ep7xs48ekt] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.alop-validation-pill[b-ep7xs48ekt] {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.alop-validation-pill--neutral[b-ep7xs48ekt] {
    background: #eef2f7;
    color: #475569;
}

.alop-validation-pill--valid[b-ep7xs48ekt] {
    background: var(--tdl-success-soft);
    color: #166534;
}

.alop-validation-pill--warning[b-ep7xs48ekt] {
    background: #fef3c7;
    color: #92400e;
}

.alop-validation-pill--error[b-ep7xs48ekt] {
    background: var(--tdl-danger-soft);
    color: #991b1b;
}

.alop-validation-counts[b-ep7xs48ekt] {
    color: var(--tdl-text-secondary);
    font-size: 0.88rem;
    font-weight: 750;
}

.alop-validation-list[b-ep7xs48ekt] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.alop-validation-issue[b-ep7xs48ekt] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid var(--tdl-border);
    border-radius: var(--tdl-radius-sm);
    padding: 0.65rem 0.75rem;
    background: #ffffff;
}

.alop-validation-issue--error[b-ep7xs48ekt] {
    border-color: #fecaca;
    background: #fff7f7;
}

.alop-validation-issue--warning[b-ep7xs48ekt] {
    border-color: #fde68a;
    background: #fffaf0;
}

.alop-validation-issue-severity[b-ep7xs48ekt] {
    min-width: 5.5rem;
    color: var(--tdl-text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.alop-validation-issue-text[b-ep7xs48ekt] {
    min-width: 0;
    color: var(--tdl-text-primary);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.alop-section-card[b-ep7xs48ekt] {
    margin-top: 1rem;
    border: 1px solid var(--tdl-border);
    border-radius: var(--tdl-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: var(--tdl-shadow-sm);
    overflow: hidden;
}

.alop-section-card-header[b-ep7xs48ekt] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e8edf4;
}

.alop-section-card-header h2[b-ep7xs48ekt] {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.alop-section-card-header p[b-ep7xs48ekt] {
    margin: 0.25rem 0 0;
    color: var(--tdl-text-muted);
    font-size: 0.94rem;
}

.alop-section-title-row[b-ep7xs48ekt] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.alop-count-badge[b-ep7xs48ekt] {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: var(--tdl-primary-soft);
    color: var(--tdl-primary-hover);
    font-size: 0.72rem;
    font-weight: 850;
}

.alop-lines-section > .muted-text[b-ep7xs48ekt] {
    margin: 0;
    padding: 1rem 1.1rem;
}

.alop-lines-table-wrapper[b-ep7xs48ekt] {
    max-width: 100%;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
}

.alop-lines-table[b-ep7xs48ekt] {
    width: 100%;
    min-width: 1580px;
    table-layout: fixed;
    border-collapse: collapse;
}

.alop-lines-table--section-a[b-ep7xs48ekt] {
    min-width: 1280px;
}

.alop-lines-table thead th[b-ep7xs48ekt] {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid #dce5f0;
    background: #f3f7fb;
    color: var(--tdl-text-secondary);
    font-size: 0.74rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.alop-lines-table tbody td[b-ep7xs48ekt] {
    padding: 0.72rem 0.75rem;
    border-bottom: 1px solid #edf2f7;
    color: var(--tdl-text-primary);
    font-size: 0.86rem;
    line-height: 1.35;
    vertical-align: middle;
}

.alop-lines-table tbody tr:nth-child(even) td[b-ep7xs48ekt] {
    background: rgba(248, 250, 252, 0.65);
}

.alop-lines-table tbody tr:hover td[b-ep7xs48ekt] {
    background: #f8fbff;
}

.alop-col-row[b-ep7xs48ekt] {
    width: 58px;
}

.alop-col-context[b-ep7xs48ekt] {
    width: 120px;
}

.alop-col-code[b-ep7xs48ekt] {
    width: 135px;
}

.alop-col-party[b-ep7xs48ekt] {
    width: 190px;
}

.alop-col-iban[b-ep7xs48ekt] {
    width: 230px;
}

.alop-col-description[b-ep7xs48ekt] {
    width: 260px;
}

.alop-col-amount[b-ep7xs48ekt] {
    width: 132px;
    text-align: right !important;
}

.alop-col-actions[b-ep7xs48ekt] {
    width: 168px;
}

.alop-row-number[b-ep7xs48ekt] {
    color: var(--tdl-text-muted);
    font-weight: 750;
}

.alop-context-cell[b-ep7xs48ekt],
.alop-code-cell[b-ep7xs48ekt],
.alop-iban-cell[b-ep7xs48ekt],
.alop-party-cell[b-ep7xs48ekt],
.alop-line-description-cell[b-ep7xs48ekt] {
    overflow-wrap: anywhere;
    word-break: normal;
}

.alop-code-cell[b-ep7xs48ekt],
.alop-iban-cell[b-ep7xs48ekt] {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.alop-party-cell[b-ep7xs48ekt] {
    font-weight: 700;
}

.alop-line-description-cell[b-ep7xs48ekt] {
    color: var(--tdl-text-secondary);
}

.alop-amount-cell[b-ep7xs48ekt] {
    color: var(--tdl-text-primary);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.alop-line-row-actions[b-ep7xs48ekt] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.alop-edit-form[b-ep7xs48ekt],
.alop-line-editor-form[b-ep7xs48ekt] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alop-edit-grid[b-ep7xs48ekt] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.alop-edit-field[b-ep7xs48ekt],
.form-field[b-ep7xs48ekt] {
    min-width: 0;
}

.form-field[b-ep7xs48ekt] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field > span:first-child[b-ep7xs48ekt] {
    color: var(--tdl-text-secondary);
    font-size: 0.82rem;
    font-weight: 800;
}

.form-field input[b-ep7xs48ekt],
.form-field select[b-ep7xs48ekt],
.form-field textarea[b-ep7xs48ekt] {
    width: 100%;
    min-height: 2.45rem;
    border: 1px solid var(--tdl-border-strong);
    border-radius: var(--tdl-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    color: var(--tdl-text-primary);
    padding: 0.55rem 0.72rem;
}

.form-field textarea[b-ep7xs48ekt] {
    min-height: 5.5rem;
    resize: vertical;
}

.form-field input:focus[b-ep7xs48ekt],
.form-field select:focus[b-ep7xs48ekt],
.form-field textarea:focus[b-ep7xs48ekt] {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.alop-edit-field--wide[b-ep7xs48ekt],
.alop-line-editor-field--wide[b-ep7xs48ekt] {
    grid-column: 1 / -1;
}

.alop-edit-actions[b-ep7xs48ekt] {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.alop-helper-text[b-ep7xs48ekt] {
    margin-top: 0.05rem;
    color: var(--tdl-text-muted);
    font-size: 0.8rem;
}

.alop-line-editor-grid[b-ep7xs48ekt] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.alop-line-total-preview[b-ep7xs48ekt] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4.2rem;
    border: 1px dashed var(--tdl-border-strong);
    border-radius: var(--tdl-radius-sm);
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
}

.alop-line-total-preview span[b-ep7xs48ekt] {
    color: var(--tdl-text-muted);
    font-size: 0.74rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.alop-line-total-preview strong[b-ep7xs48ekt] {
    font-size: 1.02rem;
    white-space: nowrap;
}

.error-banner[b-ep7xs48ekt],
.alop-inline-note[b-ep7xs48ekt],
.success-banner[b-ep7xs48ekt],
.loading-card[b-ep7xs48ekt] {
    margin-bottom: 1rem;
    border-radius: var(--tdl-radius-sm);
    padding: 0.8rem 0.95rem;
    font-weight: 750;
}

.error-banner[b-ep7xs48ekt] {
    border: 1px solid #fecaca;
    background: var(--tdl-danger-soft);
    color: #991b1b;
}

.alop-inline-note[b-ep7xs48ekt] {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.success-banner[b-ep7xs48ekt] {
    border: 1px solid #bbf7d0;
    background: var(--tdl-success-soft);
    color: #166534;
}

.loading-card[b-ep7xs48ekt] {
    border: 1px solid var(--tdl-border);
    background: var(--tdl-surface);
    color: var(--tdl-text-secondary);
}

@media (max-width: 1100px) {
    .alop-details-grid[b-ep7xs48ekt] {
        grid-template-columns: 1fr;
    }

    .alop-details-grid > :first-child[b-ep7xs48ekt] {
        grid-row: auto;
    }
}

@media (max-width: 820px) {
    .alop-page-hero[b-ep7xs48ekt],
    .alop-section-card-header[b-ep7xs48ekt] {
        align-items: stretch;
        flex-direction: column;
    }

    .alop-page-actions[b-ep7xs48ekt],
    .alop-section-card-header .tdl-btn[b-ep7xs48ekt] {
        justify-content: flex-start;
    }

    .alop-section-card-header .tdl-btn[b-ep7xs48ekt],
    .alop-page-actions .tdl-btn[b-ep7xs48ekt] {
        width: 100%;
    }

    .alop-section-summary[b-ep7xs48ekt],
    .alop-detail-fields[b-ep7xs48ekt],
    .alop-edit-grid[b-ep7xs48ekt] {
        grid-template-columns: 1fr;
    }

    .alop-detail-field--wide[b-ep7xs48ekt],
    .alop-edit-field--wide[b-ep7xs48ekt],
    .alop-line-editor-field--wide[b-ep7xs48ekt] {
        grid-column: auto;
    }

    .alop-edit-actions[b-ep7xs48ekt] {
        flex-direction: column-reverse;
    }

    .alop-edit-actions .tdl-btn[b-ep7xs48ekt] {
        width: 100%;
    }

    .alop-validation-panel[b-ep7xs48ekt] {
        align-items: stretch;
        flex-direction: column;
    }

    .alop-validation-actions .tdl-btn[b-ep7xs48ekt] {
        width: 100%;
    }

    .alop-validation-issue[b-ep7xs48ekt] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/AlopDocuments.razor.rz.scp.css */
.alop-documents-table-wrapper[b-9ij0k40sg6] {
    border: 1px solid #e8edf4;
    border-radius: 8px;
}

.alop-documents-table[b-9ij0k40sg6] {
    min-width: 1180px;
}

.alop-documents-table thead th[b-9ij0k40sg6] {
    white-space: nowrap;
    font-size: 0.86rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.alop-documents-table tbody td[b-9ij0k40sg6] {
    font-size: 0.9rem;
}

.alop-document-number-cell[b-9ij0k40sg6] {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}

.alop-document-unique-cell[b-9ij0k40sg6] {
    color: #475569;
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 0.84rem;
    white-space: nowrap;
}

.alop-amount-cell[b-9ij0k40sg6] {
    color: #0f172a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.alop-status-pill[b-9ij0k40sg6] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.alop-modal-backdrop[b-9ij0k40sg6] {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    background: rgba(15, 23, 42, 0.48);
}

.alop-modal[b-9ij0k40sg6] {
    width: min(1120px, 100%);
    max-height: calc(100vh - 4rem);
    overflow: auto;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.24);
}

.alop-modal-header[b-9ij0k40sg6] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid #e8edf4;
}

.alop-modal-header h2[b-9ij0k40sg6] {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.alop-modal-eyebrow[b-9ij0k40sg6] {
    margin-bottom: 0.25rem;
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.alop-modal-description[b-9ij0k40sg6] {
    margin: 0;
    padding: 1rem 1.25rem;
    color: #475569;
}

.alop-create-options[b-9ij0k40sg6] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1.25rem 1.25rem;
}

.alop-create-option[b-9ij0k40sg6] {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f8fafc;
}

.alop-helper-text[b-9ij0k40sg6] {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.85rem;
}

.alop-modal-actions[b-9ij0k40sg6] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #e8edf4;
}

.alop-import-panel[b-9ij0k40sg6] {
    padding: 0 1.25rem 1rem;
}

.alop-loading-state[b-9ij0k40sg6] {
    margin: 0 1.25rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.alop-modal-alert[b-9ij0k40sg6] {
    margin: 0 1.25rem 1rem;
}

.alop-modal-alert ul[b-9ij0k40sg6] {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.alop-preview[b-9ij0k40sg6] {
    padding: 0 1.25rem 1.25rem;
}

.alop-preview-section[b-9ij0k40sg6] {
    margin-bottom: 1rem;
}

.alop-preview-section h3[b-9ij0k40sg6] {
    margin: 0 0 0.75rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.alop-preview-grid[b-9ij0k40sg6] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.alop-preview-grid div[b-9ij0k40sg6] {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f8fafc;
}

.alop-preview-grid dt[b-9ij0k40sg6] {
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.alop-preview-grid dd[b-9ij0k40sg6] {
    margin: 0;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.alop-opme-lines-wrapper[b-9ij0k40sg6] {
    border: 1px solid #e8edf4;
    border-radius: 8px;
}

.alop-opme-lines[b-9ij0k40sg6] {
    min-width: 1180px;
}

.alop-opme-lines thead th[b-9ij0k40sg6] {
    white-space: nowrap;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.alop-opme-lines tbody td[b-9ij0k40sg6] {
    font-size: 0.84rem;
    vertical-align: top;
}

.alop-confirm-placeholder[b-9ij0k40sg6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .alop-modal-backdrop[b-9ij0k40sg6] {
        padding: 1rem 0.75rem;
    }

    .alop-modal[b-9ij0k40sg6] {
        max-height: calc(100vh - 2rem);
    }

    .alop-create-options[b-9ij0k40sg6],
    .alop-preview-grid[b-9ij0k40sg6] {
        grid-template-columns: 1fr;
    }
}

.alop-row-actions[b-9ij0k40sg6] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.alop-manual-form[b-9ij0k40sg6] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alop-form-grid[b-9ij0k40sg6] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.alop-form-field[b-9ij0k40sg6] {
    min-width: 0;
}

.alop-form-field--wide[b-9ij0k40sg6] {
    grid-column: 1 / -1;
}

.alop-manual-section-title[b-9ij0k40sg6] {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

@media (max-width: 768px) {
    .alop-form-grid[b-9ij0k40sg6] {
        grid-template-columns: 1fr;
    }

    .alop-row-actions[b-9ij0k40sg6] {
        flex-direction: column;
    }
}
/* /Pages/AlopPdfTemplates.razor.rz.scp.css */
.alop-pdf-templates-table-wrapper[b-svgm0wlr4a],
.alop-sync-items-wrapper[b-svgm0wlr4a],
.alop-fields-table-wrapper[b-svgm0wlr4a] {
    border: 1px solid #e8edf4;
    border-radius: 8px;
}

.alop-pdf-templates-table[b-svgm0wlr4a] {
    min-width: 1320px;
}

.alop-template-header-actions[b-svgm0wlr4a] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alop-upload-grid[b-svgm0wlr4a] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.alop-upload-field[b-svgm0wlr4a] {
    min-width: 0;
}

.alop-upload-helper[b-svgm0wlr4a] {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.alop-upload-actions[b-svgm0wlr4a] {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.alop-template-active-downloads[b-svgm0wlr4a] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alop-pdf-templates-table thead th[b-svgm0wlr4a],
.alop-sync-items-table thead th[b-svgm0wlr4a] {
    white-space: nowrap;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.alop-pdf-templates-table tbody td[b-svgm0wlr4a],
.alop-sync-items-table tbody td[b-svgm0wlr4a] {
    font-size: 0.9rem;
    vertical-align: top;
}

.alop-template-kind-cell[b-svgm0wlr4a] {
    color: #0f172a;
    font-weight: 800;
    min-width: 220px;
}

.alop-template-status[b-svgm0wlr4a] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.alop-template-status--active[b-svgm0wlr4a] {
    background: #dcfce7;
    color: #166534;
}

.alop-template-status--inactive[b-svgm0wlr4a] {
    background: #f1f5f9;
    color: #475569;
}

.alop-template-size-cell[b-svgm0wlr4a] {
    color: #0f172a;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.alop-template-error-cell[b-svgm0wlr4a] {
    max-width: 340px;
}

.alop-template-error-text[b-svgm0wlr4a] {
    display: block;
    max-width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 0.84rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.alop-template-actions-cell[b-svgm0wlr4a] {
    white-space: nowrap;
}

.alop-template-row-actions[b-svgm0wlr4a] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alop-fields-section[b-svgm0wlr4a] {
    margin-top: 1rem;
}

.alop-fields-result[b-svgm0wlr4a] {
    display: grid;
    gap: 1rem;
}

.alop-fields-meta[b-svgm0wlr4a] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.alop-fields-meta div[b-svgm0wlr4a] {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f8fafc;
}

.alop-fields-meta dt[b-svgm0wlr4a] {
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.alop-fields-meta dd[b-svgm0wlr4a] {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.alop-fields-table[b-svgm0wlr4a] {
    min-width: 1120px;
}

.alop-fields-table thead th[b-svgm0wlr4a] {
    white-space: nowrap;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.alop-fields-table tbody td[b-svgm0wlr4a] {
    font-size: 0.9rem;
    vertical-align: top;
}

.alop-field-name-cell[b-svgm0wlr4a] {
    color: #0f172a;
    font-weight: 800;
}

.alop-field-options-cell[b-svgm0wlr4a] {
    max-width: 360px;
    overflow-wrap: anywhere;
}

.alop-sync-result[b-svgm0wlr4a] {
    display: grid;
    gap: 1rem;
}

.alop-sync-section[b-svgm0wlr4a] {
    margin-top: 1rem;
}

.alop-sync-status[b-svgm0wlr4a] {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-weight: 800;
}

.alop-sync-status--success[b-svgm0wlr4a] {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alop-sync-status--error[b-svgm0wlr4a] {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alop-sync-meta[b-svgm0wlr4a] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.alop-sync-meta div[b-svgm0wlr4a] {
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f8fafc;
}

.alop-sync-meta dt[b-svgm0wlr4a] {
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.alop-sync-meta dd[b-svgm0wlr4a] {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.alop-sync-list[b-svgm0wlr4a] {
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

.alop-sync-list h3[b-svgm0wlr4a] {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.alop-sync-list ul[b-svgm0wlr4a] {
    margin: 0;
    padding-left: 1.25rem;
}

.alop-sync-list--error[b-svgm0wlr4a] {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.alop-sync-list--warning[b-svgm0wlr4a] {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.alop-sync-items-table[b-svgm0wlr4a] {
    min-width: 940px;
}

.alop-sync-message-cell[b-svgm0wlr4a] {
    max-width: 420px;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .alop-sync-meta[b-svgm0wlr4a],
    .alop-fields-meta[b-svgm0wlr4a] {
        grid-template-columns: 1fr;
    }

    .alop-upload-grid[b-svgm0wlr4a] {
        grid-template-columns: 1fr;
    }

    .alop-upload-actions[b-svgm0wlr4a] {
        justify-content: flex-start;
    }

    .alop-upload-actions .btn[b-svgm0wlr4a] {
        width: 100%;
    }

    .alop-template-header-actions[b-svgm0wlr4a],
    .alop-template-active-downloads[b-svgm0wlr4a] {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .alop-template-header-actions .btn[b-svgm0wlr4a],
    .alop-template-active-downloads .btn[b-svgm0wlr4a] {
        width: 100%;
    }
}
/* /Pages/AlopTerti.razor.rz.scp.css */
.alop-modal-backdrop[b-spgt9sxhr8] {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(15, 23, 42, 0.48);
}

.alop-modal-shell[b-spgt9sxhr8] {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
}

.alop-modal-card[b-spgt9sxhr8] {
    width: min(760px, 100%);
    max-height: min(90vh, 780px);
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    pointer-events: auto;
}

.alop-modal-header[b-spgt9sxhr8] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid #e8edf4;
}

.alop-modal-header h2[b-spgt9sxhr8] {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 850;
}

.alop-modal-eyebrow[b-spgt9sxhr8] {
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.alop-modal-alert[b-spgt9sxhr8] {
    margin: 1rem 1.5rem 0;
}

.alop-form-grid[b-spgt9sxhr8] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.alop-form-field[b-spgt9sxhr8] {
    min-width: 0;
}

.alop-form-field--wide[b-spgt9sxhr8] {
    grid-column: 1 / -1;
}

.alop-helper-text[b-spgt9sxhr8] {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
}

.alop-modal-actions[b-spgt9sxhr8] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.35rem;
    border-top: 1px solid #e8edf4;
}

@media (max-width: 768px) {
    .alop-modal-shell[b-spgt9sxhr8] {
        align-items: flex-start;
        padding: 0.75rem;
        overflow: auto;
    }

    .alop-form-grid[b-spgt9sxhr8] {
        grid-template-columns: 1fr;
    }

    .alop-modal-actions[b-spgt9sxhr8] {
        flex-direction: column-reverse;
    }

    .alop-modal-actions .btn[b-spgt9sxhr8] {
        width: 100%;
    }
}
/* /Pages/Customers.razor.rz.scp.css */
.message-stack[b-siij6tmim9] {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-chip[b-siij6tmim9] {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* ── Stats ─────────────────────────────────── */

.customer-stats-grid[b-siij6tmim9] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile[b-siij6tmim9] {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.stat-label[b-siij6tmim9] {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.stat-value[b-siij6tmim9] {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-value--active[b-siij6tmim9]  { color: #166534; }
.stat-value--inactive[b-siij6tmim9] { color: #991b1b; }

/* ── Page grid ──────────────────────────────── */

.customer-page-grid[b-siij6tmim9] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ── Form ───────────────────────────────────── */

.form-section-label[b-siij6tmim9] {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e8edf4;
}

.form-grid[b-siij6tmim9] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.form-field[b-siij6tmim9] {
    min-width: 0;
}

.form-field--wide[b-siij6tmim9] {
    grid-column: 1 / -1;
}

.form-field--switch[b-siij6tmim9] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.15rem;
}

.required-star[b-siij6tmim9] {
    color: #dc2626;
    font-weight: 700;
}

.field-error[b-siij6tmim9] {
    display: block;
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 0.3rem;
}

.form-actions[b-siij6tmim9] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

/* ── List ───────────────────────────────────── */

.search-bar[b-siij6tmim9] {
    margin-bottom: 1rem;
}

.customer-list-table thead th[b-siij6tmim9] {
    white-space: nowrap;
    font-size: 0.86rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.customer-name-cell[b-siij6tmim9] {
    font-weight: 700;
    color: #0f172a;
}

.customer-row[b-siij6tmim9] {
    cursor: pointer;
    transition: background 0.1s;
}

.customer-row--selected[b-siij6tmim9] {
    background: #eff6ff !important;
}

.empty-state[b-siij6tmim9] {
    padding: 1rem 0;
    color: #64748b;
}

.list-footer[b-siij6tmim9] {
    padding-top: 0.75rem;
    font-size: 0.83rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ── Status pills ───────────────────────────── */

.status-pill[b-siij6tmim9] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill--active[b-siij6tmim9] {
    background: #dcfce7;
    color: #166534;
}

.status-pill--inactive[b-siij6tmim9] {
    background: #f1f5f9;
    color: #475569;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1200px) {
    .customer-page-grid[b-siij6tmim9] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .customer-stats-grid[b-siij6tmim9] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid[b-siij6tmim9] {
        grid-template-columns: 1fr;
    }

    .form-field--wide[b-siij6tmim9] {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .customer-stats-grid[b-siij6tmim9] {
        grid-template-columns: 1fr;
    }
}

.list-filter-pills[b-siij6tmim9] {
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.filter-pill[b-siij6tmim9] {
    padding: .25rem .7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.4;
}

    .filter-pill:hover[b-siij6tmim9] {
        background: var(--surface-raised);
        color: var(--text-primary);
    }

.filter-pill--active[b-siij6tmim9] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .filter-pill--active:hover[b-siij6tmim9] {
        background: var(--accent);
        color: #fff;
    }

/* ── Customer history panel ────────────────────────────────── */

.ch-kpi-row[b-siij6tmim9] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ch-kpi[b-siij6tmim9] {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
    text-align: center;
}

.ch-kpi-label[b-siij6tmim9] {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.ch-kpi-value[b-siij6tmim9] {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.ch-kpi-value--issued[b-siij6tmim9]   { color: #166534; }
.ch-kpi-value--paid[b-siij6tmim9]     { color: #1e40af; }
.ch-kpi-value--cancelled[b-siij6tmim9] { color: #991b1b; }

.ch-table-wrapper[b-siij6tmim9] {
    border: 1px solid #e8edf4;
    border-radius: 14px;
    overflow: hidden;
}

.ch-table thead th[b-siij6tmim9] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 800;
    border-bottom: 1px solid #e8edf4;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
}

.ch-table tbody td[b-siij6tmim9] {
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
}

.ch-number-cell[b-siij6tmim9] {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.ch-amount-cell[b-siij6tmim9] {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.status-pill[b-siij6tmim9] {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pill--draft[b-siij6tmim9]     { background: #f1f5f9; color: #475569; }
.status-pill--issued[b-siij6tmim9]    { background: #dcfce7; color: #166534; }
.status-pill--paid[b-siij6tmim9]      { background: #dbeafe; color: #1e40af; }
.status-pill--cancelled[b-siij6tmim9] { background: #fee2e2; color: #991b1b; }

@media (max-width: 700px) {
    .ch-kpi-row[b-siij6tmim9] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.fiscal-code-row[b-siij6tmim9] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.fiscal-code-btn[b-siij6tmim9] {
    min-height: 48px;
    white-space: nowrap;
}

.form-hint[b-siij6tmim9] {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.45;
}

.anaf-feedback[b-siij6tmim9] {
    margin-top: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
}

.anaf-feedback--success[b-siij6tmim9] {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.anaf-feedback--error[b-siij6tmim9] {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.status-switch[b-siij6tmim9] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: fit-content;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
}

.status-switch-input[b-siij6tmim9] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.status-switch-track[b-siij6tmim9] {
    position: relative;
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.18s ease;
    flex-shrink: 0;
}

.status-switch-thumb[b-siij6tmim9] {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 0.18s ease;
}

.status-switch-input:checked + .status-switch-track[b-siij6tmim9] {
    background: #2563eb;
}

.status-switch-input:checked + .status-switch-track .status-switch-thumb[b-siij6tmim9] {
    transform: translateX(20px);
}

.status-switch-input:focus + .status-switch-track[b-siij6tmim9] {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.status-switch-text[b-siij6tmim9] {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
}

@media (max-width: 900px) {
    .fiscal-code-row[b-siij6tmim9] {
        grid-template-columns: 1fr;
    }

    .fiscal-code-btn[b-siij6tmim9] {
        width: 100%;
    }
}


/* Switch fără checkbox vizibil - versiune button accesibil */
.status-switch[b-siij6tmim9] {
    appearance: none;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    cursor: pointer;
    font: inherit;
}

.status-switch-input[b-siij6tmim9] {
    display: none !important;
}

.status-switch[aria-checked="true"] .status-switch-track[b-siij6tmim9] {
    background: #2563eb;
}

.status-switch[aria-checked="true"] .status-switch-thumb[b-siij6tmim9] {
    transform: translateX(20px);
}

.status-switch:focus-visible[b-siij6tmim9] {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}


/* Fix switch state: Blazor can render aria booleans differently, so the visual state uses an explicit class. */
.status-switch.status-switch--active .status-switch-track[b-siij6tmim9] {
    background: #2563eb;
}

.status-switch.status-switch--active .status-switch-thumb[b-siij6tmim9] {
    transform: translateX(20px);
}

.status-switch.status-switch--active .status-switch-text[b-siij6tmim9] {
    color: #0f172a;
}
/* /Pages/Home.razor.rz.scp.css */
.action-hub[b-35no48bb6t] {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.action-card[b-35no48bb6t] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 176px;
    padding: 1.25rem;
    border: 1px solid var(--tdl-border);
    border-radius: var(--tdl-radius-xl);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 253, 0.96) 100%);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--tdl-shadow-sm);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.action-card[b-35no48bb6t]::after {
    content: "";
    position: absolute;
    inset: auto -2.25rem -2.5rem auto;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    filter: blur(8px);
    pointer-events: none;
}

.action-card:hover[b-35no48bb6t] {
    color: inherit;
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: var(--tdl-shadow);
}

.action-card-header[b-35no48bb6t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.action-card-icon[b-35no48bb6t] {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-card-icon svg[b-35no48bb6t] {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-card-kicker[b-35no48bb6t] {
    width: fit-content;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.action-card-title[b-35no48bb6t] {
    max-width: 16ch;
    font-size: clamp(1.15rem, 1.4vw, 1.48rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.action-card-text[b-35no48bb6t] {
    line-height: 1.55;
}

.action-card-cta[b-35no48bb6t] {
    margin-top: auto;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.action-card--primary[b-35no48bb6t] {
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
    color: #ffffff;
    border-color: transparent;
}

.action-card--primary .action-card-icon[b-35no48bb6t] {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.action-card--primary .action-card-kicker[b-35no48bb6t] {
    background: rgba(255, 255, 255, 0.16);
    color: #dbeafe;
}

.action-card--primary .action-card-text[b-35no48bb6t] {
    color: #dbeafe;
}

.action-card--primary .action-card-cta[b-35no48bb6t] {
    color: #ffffff;
}

.action-card--emerald[b-35no48bb6t] {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.action-card--emerald .action-card-icon[b-35no48bb6t] {
    background: #dcfce7;
    color: #166534;
}

.action-card--emerald .action-card-kicker[b-35no48bb6t] {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.action-card--emerald .action-card-cta[b-35no48bb6t] {
    color: #166534;
}

.action-card--violet[b-35no48bb6t] {
    background: linear-gradient(180deg, rgba(245, 243, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.action-card--violet .action-card-icon[b-35no48bb6t] {
    background: #ede9fe;
    color: #6d28d9;
}

.action-card--violet .action-card-kicker[b-35no48bb6t] {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.action-card--violet .action-card-cta[b-35no48bb6t] {
    color: #5b21b6;
}

.kpi-grid[b-35no48bb6t] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-tile[b-35no48bb6t] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(249, 251, 253, 0.96) 100%);
    border: 1px solid var(--tdl-border);
    border-radius: var(--tdl-radius-lg);
    padding: 1.05rem 1.1rem;
    box-shadow: var(--tdl-shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
}

.kpi-icon[b-35no48bb6t] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon--blue[b-35no48bb6t]   { background: var(--tdl-primary-soft); color: var(--tdl-primary-hover); }
.kpi-icon--green[b-35no48bb6t]  { background: var(--tdl-success-soft); color: #166534; }
.kpi-icon--violet[b-35no48bb6t] { background: var(--tdl-violet-soft); color: var(--tdl-violet); }
.kpi-icon--amber[b-35no48bb6t]  { background: var(--tdl-warning-soft); color: #92400e; }
.kpi-icon--red[b-35no48bb6t]    { background: var(--tdl-danger-soft); color: var(--tdl-danger); }

.kpi-tile--alert[b-35no48bb6t] {
    border-color: #fecaca;
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.98) 0%, rgba(255, 244, 244, 0.98) 100%);
}

.kpi-body[b-35no48bb6t] {
    min-width: 0;
}

.kpi-value[b-35no48bb6t] {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--tdl-text-primary);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-label[b-35no48bb6t] {
    font-size: 0.83rem;
    font-weight: 800;
    color: var(--tdl-text-secondary);
    margin-top: 0.2rem;
}

.kpi-sub[b-35no48bb6t] {
    font-size: 0.78rem;
    color: var(--tdl-text-muted);
    margin-top: 0.2rem;
    font-weight: 650;
}

.dashboard-bottom[b-35no48bb6t] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.recent-table thead th[b-35no48bb6t] {
    white-space: nowrap;
    background: rgba(241, 245, 249, 0.82);
}

.invoice-number-cell[b-35no48bb6t] {
    font-weight: 850;
    white-space: nowrap;
}

.invoice-link[b-35no48bb6t] {
    color: var(--tdl-primary);
    text-decoration: none;
    font-weight: 850;
}

.invoice-link:hover[b-35no48bb6t] {
    text-decoration: underline;
}

.recent-footer[b-35no48bb6t] {
    padding-top: 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.recent-footer a[b-35no48bb6t],
.empty-state a[b-35no48bb6t] {
    color: var(--tdl-primary);
    text-decoration: none;
    font-weight: 800;
}

.recent-footer a:hover[b-35no48bb6t],
.empty-state a:hover[b-35no48bb6t] {
    text-decoration: underline;
}

.empty-state[b-35no48bb6t] {
    padding: 1rem 0;
    color: var(--tdl-text-muted);
}

.quick-links-grid[b-35no48bb6t] {
    display: grid;
    gap: 0.75rem;
}

.quick-link-card[b-35no48bb6t] {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tdl-border);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: rgba(247, 250, 252, 0.88);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quick-link-card:hover[b-35no48bb6t] {
    color: inherit;
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--tdl-shadow-sm);
}

.quick-link-icon[b-35no48bb6t] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-link-icon--blue[b-35no48bb6t]   { background: var(--tdl-primary-soft); color: var(--tdl-primary-hover); }
.quick-link-icon--violet[b-35no48bb6t] { background: var(--tdl-violet-soft); color: var(--tdl-violet); }
.quick-link-icon--amber[b-35no48bb6t]  { background: var(--tdl-warning-soft); color: #92400e; }

.quick-link-title[b-35no48bb6t] {
    font-size: 0.96rem;
    font-weight: 850;
    color: var(--tdl-text-primary);
    margin-bottom: 0.1rem;
}

.quick-link-text[b-35no48bb6t] {
    font-size: 0.82rem;
    color: var(--tdl-text-muted);
    line-height: 1.4;
}

.status-pill[b-35no48bb6t] {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    white-space: nowrap;
    background: var(--tdl-primary-soft);
    color: var(--tdl-primary-hover);
}

.status-pill--draft[b-35no48bb6t]     { background: var(--tdl-surface-muted); color: var(--tdl-text-secondary); }
.status-pill--issued[b-35no48bb6t]    { background: var(--tdl-success-soft); color: #166534; }
.status-pill--paid[b-35no48bb6t]      { background: var(--tdl-primary-soft); color: #1e40af; }
.status-pill--cancelled[b-35no48bb6t] { background: var(--tdl-danger-soft); color: #991b1b; }

@media (max-width: 1250px) {
    .action-hub[b-35no48bb6t],
    .dashboard-bottom[b-35no48bb6t] {
        grid-template-columns: 1fr;
    }

    .action-card-title[b-35no48bb6t] {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .kpi-grid[b-35no48bb6t] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .kpi-grid[b-35no48bb6t] {
        grid-template-columns: 1fr;
    }

    .kpi-tile[b-35no48bb6t],
    .action-card[b-35no48bb6t] {
        min-height: unset;
    }

    .kpi-tile[b-35no48bb6t] {
        flex-direction: column;
        gap: 0.6rem;
    }
}


.action-card--primary:hover[b-35no48bb6t],
.action-card--primary:hover .action-card-title[b-35no48bb6t],
.action-card--primary:hover .action-card-cta[b-35no48bb6t] {
    color: #ffffff;
}

.action-card--primary:hover .action-card-text[b-35no48bb6t],
.action-card--primary:hover .action-card-kicker[b-35no48bb6t] {
    color: #dbeafe;
}
/* /Pages/InvoicePrint.razor.rz.scp.css */
/* ── Screen chrome ──────────────────────────────────────────── */
.print-loading[b-oy6yati42a] {
    padding: 3rem;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
}

.print-toolbar[b-oy6yati42a] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.print-toolbar-title[b-oy6yati42a] {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary);
}

.print-toolbar-actions[b-oy6yati42a] {
    display: flex;
    gap: .5rem;
}

/* ── Invoice document (shared screen + print) ───────────────── */
.invoice-doc[b-oy6yati42a] {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .875rem;
    color: #0f172a;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
}

/* ── Header row ─────────────────────────────────────────────── */
.inv-header[b-oy6yati42a] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.inv-issuer[b-oy6yati42a] {
    flex: 1;
}

.inv-company-name[b-oy6yati42a] {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .25rem;
}

.inv-company-placeholder[b-oy6yati42a] {
    color: #94a3b8;
    font-style: italic;
}

.inv-company-line[b-oy6yati42a] {
    font-size: .8rem;
    color: #475569;
    line-height: 1.6;
}

.inv-iban[b-oy6yati42a] {
    font-family: monospace;
    margin-top: .25rem;
}

.inv-meta[b-oy6yati42a] {
    text-align: right;
    flex-shrink: 0;
}

.inv-meta-number[b-oy6yati42a] {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: .06em;
}

.inv-meta-series[b-oy6yati42a] {
    font-size: 1rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: .75rem;
}

.inv-meta-table[b-oy6yati42a] {
    font-size: .8rem;
    border-collapse: collapse;
    margin-left: auto;
}

    .inv-meta-table td[b-oy6yati42a] {
        padding: .15rem .5rem;
        color: #475569;
    }

    .inv-meta-table td:first-child[b-oy6yati42a] {
        text-align: right;
        color: #94a3b8;
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .inv-meta-table td:last-child[b-oy6yati42a] {
        text-align: right;
        font-weight: 500;
        color: #0f172a;
    }

.inv-overdue-date[b-oy6yati42a] {
    color: #dc2626 !important;
    font-weight: 700;
}

/* ── Divider ────────────────────────────────────────────────── */
.inv-divider[b-oy6yati42a] {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 1.25rem 0;
}

/* ── Parties ────────────────────────────────────────────────── */
.inv-parties[b-oy6yati42a] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.inv-party-label[b-oy6yati42a] {
    font-size: .65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25rem;
}

.inv-party-name[b-oy6yati42a] {
    font-weight: 700;
    font-size: .95rem;
    color: #0f172a;
}

.inv-party-line[b-oy6yati42a] {
    font-size: .8rem;
    color: #475569;
}

/* ── Lines table ────────────────────────────────────────────── */
.inv-lines-table[b-oy6yati42a] {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: .8rem;
}

    .inv-lines-table thead tr[b-oy6yati42a] {
        background: #f8fafc;
        border-bottom: 2px solid #e2e8f0;
    }

    .inv-lines-table th[b-oy6yati42a] {
        padding: .5rem .6rem;
        font-size: .68rem;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: .05em;
        white-space: nowrap;
    }

    .inv-lines-table tbody tr[b-oy6yati42a] {
        border-bottom: 1px solid #f1f5f9;
    }

    .inv-lines-table tbody tr:last-child[b-oy6yati42a] {
        border-bottom: none;
    }

    .inv-lines-table td[b-oy6yati42a] {
        padding: .5rem .6rem;
        color: #0f172a;
        vertical-align: top;
    }

.inv-col-nr[b-oy6yati42a]    { width: 2rem;  text-align: center; color: #94a3b8 !important; }
.inv-col-um[b-oy6yati42a]    { width: 3.5rem; }
.inv-col-qty[b-oy6yati42a]   { width: 4rem; }
.inv-col-price[b-oy6yati42a] { width: 6rem; }
.inv-col-vat[b-oy6yati42a]   { width: 4rem; }
.inv-col-vat-amt[b-oy6yati42a] { width: 5.5rem; }
.inv-col-total[b-oy6yati42a] { width: 6rem; font-weight: 600; }
.inv-col-desc[b-oy6yati42a]  { min-width: 8rem; }

/* ── Totals ─────────────────────────────────────────────────── */
.inv-totals[b-oy6yati42a] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.inv-totals-table[b-oy6yati42a] {
    border-collapse: collapse;
    min-width: 260px;
}

    .inv-totals-table td[b-oy6yati42a] {
        padding: .3rem .6rem;
        font-size: .85rem;
        color: #475569;
    }

    .inv-totals-table td:last-child[b-oy6yati42a] {
        text-align: right;
        font-weight: 500;
        color: #0f172a;
    }

.inv-totals-grand td[b-oy6yati42a] {
    font-weight: 800 !important;
    font-size: 1rem !important;
    color: #0f172a !important;
    border-top: 2px solid #0f172a;
    padding-top: .5rem !important;
}

/* ── Notes block ────────────────────────────────────────────── */
.inv-notes[b-oy6yati42a] {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}

.inv-notes-label[b-oy6yati42a] {
    font-size: .68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .4rem;
}

.inv-notes-text[b-oy6yati42a] {
    font-size: .85rem;
    color: #334155;
    white-space: pre-wrap;
    line-height: 1.55;
}

/* ── Payments block ─────────────────────────────────────────── */
.inv-payments[b-oy6yati42a] {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.inv-payments-title[b-oy6yati42a] {
    font-size: .72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}

.inv-payments-table[b-oy6yati42a] {
    width: 100%;
    border-collapse: collapse;
    font-size: .8rem;
    margin-bottom: .75rem;
}

    .inv-payments-table th[b-oy6yati42a] {
        font-size: .68rem;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: .04em;
        padding: .25rem .5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .inv-payments-table td[b-oy6yati42a] {
        padding: .3rem .5rem;
        color: #475569;
    }

.inv-paid-stamp[b-oy6yati42a] {
    display: inline-block;
    border: 3px solid #16a34a;
    color: #16a34a;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: .15em;
    padding: .25rem .75rem;
    border-radius: 4px;
    transform: rotate(-4deg);
    opacity: .85;
}

.inv-remaining[b-oy6yati42a] {
    font-size: .85rem;
    color: #dc2626;
}

/* ── Footer ─────────────────────────────────────────────────── */
.inv-footer[b-oy6yati42a] {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    font-size: .75rem;
    color: #94a3b8;
}

/* ── Print media ────────────────────────────────────────────── */
@media print {
    .no-print[b-oy6yati42a] {
        display: none !important;
    }

    body[b-oy6yati42a] {
        background: #fff !important;
        margin: 0;
        padding: 0;
    }

    .invoice-doc[b-oy6yati42a] {
        max-width: 100%;
        margin: 0;
        padding: 1.5cm;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .inv-lines-table thead tr[b-oy6yati42a] {
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a[b-oy6yati42a] {
        color: inherit !important;
        text-decoration: none !important;
    }

    @page {
        margin: 1.5cm;
        size: A4;
    }
}
/* /Pages/Invoices.razor.rz.scp.css */
.message-stack[b-ufmeqc3odx] {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-chip[b-ufmeqc3odx] {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.invoice-stats-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile[b-ufmeqc3odx] {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.stat-label[b-ufmeqc3odx] {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.stat-value[b-ufmeqc3odx] {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.invoice-page-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.form-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.form-field[b-ufmeqc3odx] {
    min-width: 0;
}

.lines-toolbar[b-ufmeqc3odx] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lines-title[b-ufmeqc3odx] {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.lines-subtitle[b-ufmeqc3odx] {
    margin-top: 0.25rem;
    color: #64748b;
    line-height: 1.5;
}

.lines-table-wrapper[b-ufmeqc3odx] {
    border: 1px solid #e8edf4;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.lines-table thead th[b-ufmeqc3odx] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 800;
    border-bottom: 1px solid #e8edf4;
    white-space: nowrap;
}

.lines-table tbody td[b-ufmeqc3odx] {
    vertical-align: middle;
}

.lines-col-small[b-ufmeqc3odx] {
    width: 110px;
}

.lines-col-medium[b-ufmeqc3odx] {
    width: 150px;
}

.lines-col-action[b-ufmeqc3odx] {
    width: 100px;
}

.line-unit-cell[b-ufmeqc3odx] {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 0.83rem;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
    width: 60px;
}

.line-unit-input[b-ufmeqc3odx] {
    width: 72px;
    min-width: 60px;
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 0.83rem;
    padding: 0.3rem 0.5rem;
}

.product-picker-select[b-ufmeqc3odx] {
    font-size: 0.8rem;
    color: #475569;
    border-color: #c7d7ed;
    background: #f8fafc;
}

.line-total-cell[b-ufmeqc3odx] {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.totals-panel[b-ufmeqc3odx] {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 20px;
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.totals-row[b-ufmeqc3odx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #334155;
}

.totals-row-grand[b-ufmeqc3odx] {
    padding-top: 0.75rem;
    border-top: 1px solid #dbe3ee;
    font-size: 1.08rem;
    color: #0f172a;
}

.form-actions[b-ufmeqc3odx] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state[b-ufmeqc3odx] {
    padding: 1rem 0;
    color: #64748b;
}

.invoice-list-table thead th[b-ufmeqc3odx] {
    white-space: nowrap;
    font-size: 0.86rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.invoice-number-cell[b-ufmeqc3odx] {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.status-pill[b-ufmeqc3odx] {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 800;
}

.status-pill--draft[b-ufmeqc3odx] {
    background: #f1f5f9;
    color: #475569;
}

.status-pill--issued[b-ufmeqc3odx] {
    background: #dcfce7;
    color: #166534;
}

.status-pill--paid[b-ufmeqc3odx] {
    background: #dbeafe;
    color: #1e40af;
}

.status-pill--cancelled[b-ufmeqc3odx] {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Payments section ────────────────────────── */

.payments-section[b-ufmeqc3odx] {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e8edf4;
}

.payments-section-title[b-ufmeqc3odx] {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.9rem;
}

.payments-table-wrapper[b-ufmeqc3odx] {
    border: 1px solid #e8edf4;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.payments-table thead th[b-ufmeqc3odx] {
    background: #f8fafc;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 800;
    border-bottom: 1px solid #e8edf4;
    white-space: nowrap;
    padding: 0.55rem 0.75rem;
}

.payments-table tbody td[b-ufmeqc3odx] {
    font-size: 0.88rem;
    padding: 0.55rem 0.75rem;
}

.payment-amount-cell[b-ufmeqc3odx] {
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.payment-summary[b-ufmeqc3odx] {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.payment-summary-row[b-ufmeqc3odx] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #334155;
}

.payment-summary-balance[b-ufmeqc3odx] {
    padding-top: 0.5rem;
    border-top: 1px solid #dbe3ee;
    font-weight: 700;
}

.payment-paid-amount[b-ufmeqc3odx] {
    color: #166534;
}

.balance--zero[b-ufmeqc3odx] { color: #166534; }
.balance--due[b-ufmeqc3odx]  { color: #991b1b; }

.required-star[b-ufmeqc3odx] {
    color: #dc2626;
    font-weight: 700;
}

.payment-form[b-ufmeqc3odx] {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 1rem 1.1rem;
}

.payment-form-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.payment-form-actions[b-ufmeqc3odx] {
    display: flex;
    gap: 0.75rem;
}

.payment-paid-badge[b-ufmeqc3odx] {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    margin-top: 0.25rem;
}

.detail-actions[b-ufmeqc3odx] {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.detail-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.detail-field[b-ufmeqc3odx] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label[b-ufmeqc3odx] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.detail-value[b-ufmeqc3odx] {
    color: #0f172a;
    font-weight: 600;
}

.invoice-row[b-ufmeqc3odx] {
    cursor: pointer;
    transition: background 0.12s;
}

.invoice-row--selected[b-ufmeqc3odx] {
    background: #eff6ff !important;
}

@media (max-width: 1200px) {
    .invoice-page-grid[b-ufmeqc3odx] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .invoice-stats-grid[b-ufmeqc3odx] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid[b-ufmeqc3odx] {
        grid-template-columns: 1fr;
    }

    .lines-toolbar[b-ufmeqc3odx] {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .invoice-stats-grid[b-ufmeqc3odx] {
        grid-template-columns: 1fr;
    }
}

/* ── Invoice filter bar ─────────────────────────────────────── */
.invoice-filter-bar[b-ufmeqc3odx] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: .75rem;
}

.invoice-search[b-ufmeqc3odx] {
    max-width: 100%;
}

.invoice-filter-pills[b-ufmeqc3odx] {
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
}

.filter-pill[b-ufmeqc3odx] {
    padding: .25rem .7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.4;
}

    .filter-pill:hover[b-ufmeqc3odx] {
        background: var(--surface-raised);
        color: var(--text-primary);
    }

.filter-pill--active[b-ufmeqc3odx] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .filter-pill--active:hover[b-ufmeqc3odx] {
        background: var(--accent);
        color: #fff;
    }

/* ── Overdue ─────────────────────────────────────────────────── */

.overdue-badge[b-ufmeqc3odx] {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    vertical-align: middle;
}

.filter-pill--overdue[b-ufmeqc3odx] {
    background: #991b1b !important;
    border-color: #991b1b !important;
}

/* ── Notes ─────────────────────────────────────────────────── */

.form-field--full[b-ufmeqc3odx] {
    grid-column: 1 / -1;
}

.invoice-notes-input[b-ufmeqc3odx] {
    resize: vertical;
    min-height: 72px;
}

.detail-notes[b-ufmeqc3odx] {
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.detail-notes-label[b-ufmeqc3odx] {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.detail-notes-text[b-ufmeqc3odx] {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

/* ── Inline edit panel ──────────────────────────────────────── */

.invoice-edit-panel[b-ufmeqc3odx] {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.invoice-edit-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.invoice-edit-actions[b-ufmeqc3odx] {
    display: flex;
    gap: 0.5rem;
}

/* ── Next invoice number hint ───────────────────────────────── */

.next-number-hint[b-ufmeqc3odx] {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #475569;
}


/* ── Modern refinements for the simplified invoice workflow ─────────────── */
.form-section-heading[b-ufmeqc3odx] {
    margin: 1.15rem 0 0.75rem 0;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tdl-primary-hover);
}

.form-section-heading:first-of-type[b-ufmeqc3odx] {
    margin-top: 0;
}

.invoice-page-grid[b-ufmeqc3odx] {
    grid-template-columns: minmax(560px, 1.15fr) minmax(420px, 0.85fr);
}

.stat-tile[b-ufmeqc3odx],
.page-chip[b-ufmeqc3odx],
.lines-table-wrapper[b-ufmeqc3odx],
.payments-table-wrapper[b-ufmeqc3odx],
.totals-panel[b-ufmeqc3odx],
.payment-summary[b-ufmeqc3odx],
.detail-notes[b-ufmeqc3odx],
.invoice-edit-panel[b-ufmeqc3odx],
.payment-form[b-ufmeqc3odx] {
    border-color: var(--tdl-border);
}

.detail-actions[b-ufmeqc3odx],
.invoice-edit-actions[b-ufmeqc3odx],
.payment-form-actions[b-ufmeqc3odx],
.form-actions[b-ufmeqc3odx] {
    flex-wrap: wrap;
}

.form-actions .btn-primary[b-ufmeqc3odx] {
    min-width: 12rem;
}

.invoice-list-table tbody tr:hover[b-ufmeqc3odx] {
    background: var(--tdl-primary-soft);
}

.invoice-row--selected[b-ufmeqc3odx] {
    background: #dbeafe !important;
    box-shadow: inset 4px 0 0 var(--tdl-primary);
}

.filter-pill[b-ufmeqc3odx] {
    min-height: 2.05rem;
    padding: 0.32rem 0.72rem;
    font-weight: 750;
}

.invoice-lines-editor[b-ufmeqc3odx] {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.invoice-line-card[b-ufmeqc3odx] {
    border: 1px solid var(--tdl-border);
    border-radius: 18px;
    background: #ffffff;
    padding: 1rem 1rem 0.95rem;
    box-shadow: var(--tdl-shadow-sm);
}

.invoice-line-card-header[b-ufmeqc3odx] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.invoice-line-card-title[b-ufmeqc3odx] {
    font-size: 1rem;
    font-weight: 850;
    color: var(--tdl-text-primary);
}

.invoice-line-card-caption[b-ufmeqc3odx] {
    margin-top: 0.2rem;
    font-size: 0.83rem;
    color: var(--tdl-text-secondary);
    line-height: 1.45;
}

.invoice-line-card-grid[b-ufmeqc3odx] {
    display: grid;
    grid-template-columns: 1.1fr 0.75fr 0.9fr 0.9fr;
    gap: 0.85rem;
}

.product-picker-select[b-ufmeqc3odx] {
    min-height: 46px;
    background: #f8fafc;
    border-color: #d7e2ef;
    color: #334155;
}

.line-number-input[b-ufmeqc3odx] {
    min-height: 46px;
}

.invoice-line-card-total[b-ufmeqc3odx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e8edf4;
    color: #475569;
}

.invoice-line-card-total strong[b-ufmeqc3odx] {
    font-size: 1rem;
    color: #0f172a;
}

@media (max-width: 1200px) {
    .invoice-page-grid[b-ufmeqc3odx] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .invoice-line-card-grid[b-ufmeqc3odx] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .invoice-edit-grid[b-ufmeqc3odx],
    .payment-form-grid[b-ufmeqc3odx],
    .invoice-line-card-grid[b-ufmeqc3odx] {
        grid-template-columns: 1fr;
    }

    .invoice-line-card-header[b-ufmeqc3odx],
    .invoice-line-card-total[b-ufmeqc3odx] {
        flex-direction: column;
        align-items: stretch;
    }
}
/* /Pages/InvoiceSeries.razor.rz.scp.css */
.message-stack[b-3cmfhv6k16] {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-chip[b-3cmfhv6k16] {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* ── Stats ─────────────────────────────────── */

.series-stats-grid[b-3cmfhv6k16] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile[b-3cmfhv6k16] {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.stat-label[b-3cmfhv6k16] {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.stat-value[b-3cmfhv6k16] {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-value--active[b-3cmfhv6k16]   { color: #166534; }
.stat-value--inactive[b-3cmfhv6k16] { color: #991b1b; }
.stat-value--preview[b-3cmfhv6k16]  { color: #1d4ed8; font-size: 1.2rem; letter-spacing: 0.03em; }

/* ── Page grid ──────────────────────────────── */

.series-page-grid[b-3cmfhv6k16] {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ── Form ───────────────────────────────────── */

.form-grid[b-3cmfhv6k16] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.form-field[b-3cmfhv6k16] {
    min-width: 0;
}

.form-field--switch[b-3cmfhv6k16] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.15rem;
}

.required-star[b-3cmfhv6k16] {
    color: #dc2626;
    font-weight: 700;
}

.field-error[b-3cmfhv6k16] {
    display: block;
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 0.3rem;
}

.field-hint[b-3cmfhv6k16] {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.text-uppercase-input[b-3cmfhv6k16] {
    text-transform: uppercase;
}

.number-preview[b-3cmfhv6k16] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.preview-label[b-3cmfhv6k16] {
    font-size: 0.84rem;
    color: #0369a1;
    font-weight: 700;
}

.preview-value[b-3cmfhv6k16] {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0c4a6e;
    letter-spacing: 0.05em;
}

.form-actions[b-3cmfhv6k16] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── List ───────────────────────────────────── */

.series-list-table thead th[b-3cmfhv6k16] {
    white-space: nowrap;
    font-size: 0.86rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.series-code-cell[b-3cmfhv6k16] {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.04em;
}

.series-next-cell[b-3cmfhv6k16] {
    font-weight: 700;
    color: #1d4ed8;
    font-family: monospace;
    font-size: 0.95rem;
}

.series-row[b-3cmfhv6k16] {
    cursor: pointer;
    transition: background 0.1s;
}

.series-row--selected[b-3cmfhv6k16] {
    background: #eff6ff !important;
}

.empty-state[b-3cmfhv6k16] {
    padding: 1rem 0;
    color: #64748b;
}

.list-footer[b-3cmfhv6k16] {
    padding-top: 0.75rem;
    font-size: 0.83rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ── Status pills ───────────────────────────── */

.status-pill[b-3cmfhv6k16] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill--active[b-3cmfhv6k16] {
    background: #dcfce7;
    color: #166534;
}

.status-pill--inactive[b-3cmfhv6k16] {
    background: #f1f5f9;
    color: #475569;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1200px) {
    .series-page-grid[b-3cmfhv6k16] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .series-stats-grid[b-3cmfhv6k16] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid[b-3cmfhv6k16] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .series-stats-grid[b-3cmfhv6k16] {
        grid-template-columns: 1fr;
    }
}
/* /Pages/Payments.razor.rz.scp.css */
/* ── KPI grid (reuses stat-tile pattern from Reports) ──────── */
.collections-kpi-grid[b-vhcqhwmvr1] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .collections-kpi-grid[b-vhcqhwmvr1] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .collections-kpi-grid[b-vhcqhwmvr1] {
        grid-template-columns: 1fr;
    }
}

/* stat-tile, stat-label, stat-value, stat-sub come from Reports.razor.css
   which is scoped — so we redeclare them here for this component */
.stat-tile[b-vhcqhwmvr1] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.stat-label[b-vhcqhwmvr1] {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-value[b-vhcqhwmvr1] {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

.stat-value--revenue[b-vhcqhwmvr1] {
    color: #16a34a;
}

.stat-value--method[b-vhcqhwmvr1] {
    color: var(--accent);
    font-size: 1.25rem;
}

.stat-sub[b-vhcqhwmvr1] {
    font-size: .78rem;
    color: var(--text-secondary);
}

/* ── Payments table ────────────────────────────────────────── */
.collections-table[b-vhcqhwmvr1] {
    font-size: .8375rem;
}

    .collections-table thead th[b-vhcqhwmvr1] {
        font-size: .72rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid var(--border);
        padding: .5rem .75rem;
        white-space: nowrap;
    }

    .collections-table tbody td[b-vhcqhwmvr1] {
        padding: .45rem .75rem;
        border-bottom: 1px solid var(--border-subtle, var(--border));
        vertical-align: middle;
    }

    .collections-table tfoot td[b-vhcqhwmvr1] {
        padding: .55rem .75rem;
        border-top: 2px solid var(--border);
    }

.collections-date-cell[b-vhcqhwmvr1] {
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    white-space: nowrap;
}

.collections-invoice-link[b-vhcqhwmvr1] {
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    font-size: .8rem;
    color: var(--accent);
    text-decoration: none;
}

    .collections-invoice-link:hover[b-vhcqhwmvr1] {
        text-decoration: underline;
    }

.collections-ref-cell[b-vhcqhwmvr1] {
    color: var(--text-secondary);
    font-size: .8rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collections-amount-cell[b-vhcqhwmvr1] {
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}

.collections-summary-row td[b-vhcqhwmvr1] {
    background: var(--surface-raised);
    color: var(--text-primary);
}

/* ── Method badge ──────────────────────────────────────────── */
.collections-method-badge[b-vhcqhwmvr1] {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid transparent;
}

.collections-method-badge--banktransfer[b-vhcqhwmvr1] {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.collections-method-badge--cash[b-vhcqhwmvr1] {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.collections-method-badge--card[b-vhcqhwmvr1] {
    background: #fdf4ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

/* ── Empty state ───────────────────────────────────────────── */
.empty-state[b-vhcqhwmvr1] {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: .875rem;
}

    .empty-state a[b-vhcqhwmvr1] {
        color: var(--accent);
    }
/* /Pages/Products.razor.rz.scp.css */
.message-stack[b-iaozhcc5tk] {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.page-chip[b-iaozhcc5tk] {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    color: #334155;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

/* ── Stats ─────────────────────────────────── */

.product-stats-grid[b-iaozhcc5tk] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-tile[b-iaozhcc5tk] {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.stat-label[b-iaozhcc5tk] {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.stat-value[b-iaozhcc5tk] {
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-value--active[b-iaozhcc5tk]  { color: #166534; }
.stat-value--inactive[b-iaozhcc5tk] { color: #991b1b; }
.stat-value--zero[b-iaozhcc5tk]    { color: #92400e; }

/* ── Page grid ──────────────────────────────── */

.product-page-grid[b-iaozhcc5tk] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* ── Form ───────────────────────────────────── */

.form-section-label[b-iaozhcc5tk] {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e8edf4;
}

.form-grid[b-iaozhcc5tk] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.form-field[b-iaozhcc5tk] {
    min-width: 0;
}

.form-field--wide[b-iaozhcc5tk] {
    grid-column: 1 / -1;
}

.form-field--switch[b-iaozhcc5tk] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 0.15rem;
}

.required-star[b-iaozhcc5tk] {
    color: #dc2626;
    font-weight: 700;
}

.field-error[b-iaozhcc5tk] {
    display: block;
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: 0.3rem;
}

.field-hint[b-iaozhcc5tk] {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.form-actions[b-iaozhcc5tk] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.text-uppercase-input[b-iaozhcc5tk] {
    text-transform: uppercase;
}

/* ── List ───────────────────────────────────── */

.search-bar[b-iaozhcc5tk] {
    margin-bottom: 1rem;
}

.product-list-table thead th[b-iaozhcc5tk] {
    white-space: nowrap;
    font-size: 0.86rem;
    color: #475569;
    font-weight: 800;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.product-name-cell[b-iaozhcc5tk] {
    font-weight: 700;
    color: #0f172a;
}

.product-description-cell[b-iaozhcc5tk] {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.product-unit-cell[b-iaozhcc5tk] {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
}

.product-price-cell[b-iaozhcc5tk] {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.product-row[b-iaozhcc5tk] {
    cursor: pointer;
    transition: background 0.1s;
}

.product-row--selected[b-iaozhcc5tk] {
    background: #eff6ff !important;
}

.empty-state[b-iaozhcc5tk] {
    padding: 1rem 0;
    color: #64748b;
}

.list-footer[b-iaozhcc5tk] {
    padding-top: 0.75rem;
    font-size: 0.83rem;
    color: #94a3b8;
    font-weight: 600;
}

/* ── Status pills ───────────────────────────── */

.status-pill[b-iaozhcc5tk] {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill--active[b-iaozhcc5tk] {
    background: #dcfce7;
    color: #166534;
}

.status-pill--inactive[b-iaozhcc5tk] {
    background: #f1f5f9;
    color: #475569;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1200px) {
    .product-page-grid[b-iaozhcc5tk] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .product-stats-grid[b-iaozhcc5tk] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid[b-iaozhcc5tk] {
        grid-template-columns: 1fr;
    }

    .form-field--wide[b-iaozhcc5tk] {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .product-stats-grid[b-iaozhcc5tk] {
        grid-template-columns: 1fr;
    }
}

.list-filter-pills[b-iaozhcc5tk] {
    display: flex;
    gap: .375rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.filter-pill[b-iaozhcc5tk] {
    padding: .25rem .7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: .75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
    line-height: 1.4;
}

    .filter-pill:hover[b-iaozhcc5tk] {
        background: var(--surface-raised);
        color: var(--text-primary);
    }

.filter-pill--active[b-iaozhcc5tk] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .filter-pill--active:hover[b-iaozhcc5tk] {
        background: var(--accent);
        color: #fff;
    }
/* /Pages/Reports.razor.rz.scp.css */
/* ── Year selector ─────────────────────────────────────────── */
.year-selector[b-9qxldsfr2v] {
    display: flex;
    gap: .375rem;
}

.year-btn[b-9qxldsfr2v] {
    padding: .35rem .85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    font-size: .8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

    .year-btn:hover[b-9qxldsfr2v] {
        background: var(--surface-raised);
        color: var(--text-primary);
    }

.year-btn--active[b-9qxldsfr2v] {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .year-btn--active:hover[b-9qxldsfr2v] {
        background: var(--accent);
        color: #fff;
    }

/* ── KPI grid ──────────────────────────────────────────────── */
.report-kpi-grid[b-9qxldsfr2v] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .report-kpi-grid[b-9qxldsfr2v] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .report-kpi-grid[b-9qxldsfr2v] {
        grid-template-columns: 1fr;
    }
}

.stat-tile[b-9qxldsfr2v] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.stat-label[b-9qxldsfr2v] {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-value[b-9qxldsfr2v] {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
}

.stat-value--revenue[b-9qxldsfr2v] {
    color: #16a34a;
}

.stat-value--overdue[b-9qxldsfr2v] {
    color: #dc2626;
}

.stat-value--top[b-9qxldsfr2v] {
    color: var(--accent);
}

.stat-sub[b-9qxldsfr2v] {
    font-size: .78rem;
    color: var(--text-secondary);
}

/* ── Bar chart ─────────────────────────────────────────────── */
.bar-chart[b-9qxldsfr2v] {
    display: flex;
    align-items: flex-end;
    gap: .375rem;
    height: 130px;
    margin-bottom: .75rem;
    padding: 0 .25rem;
}

.bar-col[b-9qxldsfr2v] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .2rem;
    height: 100%;
}

.bar-col--empty .bar-bar[b-9qxldsfr2v] {
    background: var(--border);
}

.bar-val[b-9qxldsfr2v] {
    font-size: .6rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bar-bar[b-9qxldsfr2v] {
    width: 100%;
    min-height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
    transition: height .3s ease;
}

.bar-label[b-9qxldsfr2v] {
    font-size: .65rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* ── Report tables ─────────────────────────────────────────── */
.report-table[b-9qxldsfr2v] {
    font-size: .8375rem;
}

    .report-table thead th[b-9qxldsfr2v] {
        font-size: .72rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid var(--border);
        padding: .5rem .75rem;
        white-space: nowrap;
    }

    .report-table tbody td[b-9qxldsfr2v] {
        padding: .45rem .75rem;
        border-bottom: 1px solid var(--border-subtle, var(--border));
        color: var(--text-primary);
        vertical-align: middle;
    }

    .report-table tfoot td[b-9qxldsfr2v] {
        padding: .55rem .75rem;
        border-top: 2px solid var(--border);
    }

.report-month-cell[b-9qxldsfr2v] {
    font-weight: 500;
    color: var(--text-primary);
}

.report-total-cell[b-9qxldsfr2v] {
    font-weight: 600;
    color: var(--text-primary);
}

.report-row--empty td[b-9qxldsfr2v] {
    color: var(--text-secondary);
    font-style: italic;
}

.report-summary-row td[b-9qxldsfr2v] {
    background: var(--surface-raised);
    color: var(--text-primary);
}

/* ── Bottom two-column grid ────────────────────────────────── */
.report-bottom-grid[b-9qxldsfr2v] {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 960px) {
    .report-bottom-grid[b-9qxldsfr2v] {
        grid-template-columns: 1fr;
    }
}

.report-right-col[b-9qxldsfr2v] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Empty state ───────────────────────────────────────────── */
.report-empty[b-9qxldsfr2v] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: .875rem;
}

.report-empty-icon[b-9qxldsfr2v] {
    font-size: 1.75rem;
    color: #16a34a;
}

.empty-state[b-9qxldsfr2v] {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: .875rem;
}

/* ── Overdue table ─────────────────────────────────────────── */
.overdue-number-cell[b-9qxldsfr2v] {
    font-weight: 600;
    font-family: var(--font-mono, monospace);
    font-size: .8rem;
    color: var(--accent);
}

.overdue-days-badge[b-9qxldsfr2v] {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid #fecaca;
}

.overdue-amount-cell[b-9qxldsfr2v] {
    font-weight: 600;
    color: #dc2626;
}

/* ── VAT summary ───────────────────────────────────────────── */
.vat-rate-badge[b-9qxldsfr2v] {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.vat-amount-cell[b-9qxldsfr2v] {
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Top customers ─────────────────────────────────────────── */
.top-customers-list[b-9qxldsfr2v] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.top-customer-row[b-9qxldsfr2v] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .25rem;
    border-bottom: 1px solid var(--border-subtle, var(--border));
}

    .top-customer-row:last-child[b-9qxldsfr2v] {
        border-bottom: none;
    }

.top-customer-rank[b-9qxldsfr2v] {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.rank--gold[b-9qxldsfr2v] {
    background: #fef9c3;
    border-color: #fbbf24;
    color: #92400e;
}

.rank--silver[b-9qxldsfr2v] {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
}

.rank--bronze[b-9qxldsfr2v] {
    background: #fef3c7;
    border-color: #d97706;
    color: #78350f;
}

.top-customer-info[b-9qxldsfr2v] {
    flex: 1;
    min-width: 0;
}

.top-customer-name[b-9qxldsfr2v] {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-customer-meta[b-9qxldsfr2v] {
    font-size: .72rem;
    color: var(--text-secondary);
}

.top-customer-revenue[b-9qxldsfr2v] {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ── Aging report ──────────────────────────────────────────── */

.aging-grid[b-9qxldsfr2v] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 800px) {
    .aging-grid[b-9qxldsfr2v] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .aging-grid[b-9qxldsfr2v] {
        grid-template-columns: 1fr;
    }
}

.aging-bucket[b-9qxldsfr2v] {
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.aging-bucket--empty[b-9qxldsfr2v] {
    opacity: .45;
}

.aging-label[b-9qxldsfr2v] {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.aging-bar-track[b-9qxldsfr2v] {
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    overflow: hidden;
}

.aging-bar-fill[b-9qxldsfr2v] {
    height: 100%;
    border-radius: 3px;
    background: #dc2626;
    transition: width .4s ease;
    min-width: 0;
}

.aging-bucket--empty .aging-bar-fill[b-9qxldsfr2v] {
    background: var(--border);
}

.aging-stats[b-9qxldsfr2v] {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
}

.aging-count[b-9qxldsfr2v] {
    font-size: .78rem;
    color: var(--text-secondary);
}

.aging-amount[b-9qxldsfr2v] {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.aging-amount--due[b-9qxldsfr2v] {
    color: #dc2626;
}

.aging-total[b-9qxldsfr2v] {
    font-size: .8375rem;
    color: var(--text-secondary);
    text-align: right;
    padding-top: .25rem;
    border-top: 1px solid var(--border);
}
/* /Pages/Settings.razor.rz.scp.css */
/* ── Two-column card grid ───────────────────────────────────── */
.settings-grid[b-rnialchv1k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 860px) {
    .settings-grid[b-rnialchv1k] {
        grid-template-columns: 1fr;
    }
}

/* ── Form layout inside each card ───────────────────────────── */
.settings-form[b-rnialchv1k] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
}

.settings-field[b-rnialchv1k] {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.settings-field--full[b-rnialchv1k] {
    grid-column: 1 / -1;
}

.settings-label[b-rnialchv1k] {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.required-star[b-rnialchv1k] {
    color: #dc2626;
    margin-left: .1rem;
}

.settings-error[b-rnialchv1k] {
    font-size: .75rem;
    color: #dc2626;
}

.settings-input--mono[b-rnialchv1k] {
    font-family: var(--font-mono, monospace);
    letter-spacing: .04em;
}

/* ── Save bar ───────────────────────────────────────────────── */
.settings-save-bar[b-rnialchv1k] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: .875rem 0;
    border-top: 1px solid var(--border);
    margin-top: .25rem;
}

.settings-save-ok[b-rnialchv1k] {
    font-size: .85rem;
    font-weight: 500;
    color: #16a34a;
}

/* ── Empty state ───────────────────────────────────────────── */
.empty-state[b-rnialchv1k] {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: .875rem;
}
/* /Shared/SectionCard.razor.rz.scp.css */
.section-card[b-bz1upq3uie] {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.94) 100%);
    border: 1px solid var(--tdl-border);
    border-radius: var(--tdl-radius-xl);
    box-shadow: var(--tdl-shadow-sm);
    overflow: hidden;
}

.section-card-header[b-bz1upq3uie] {
    padding: 1.25rem 1.35rem 0 1.35rem;
}

.section-card-title[b-bz1upq3uie] {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 850;
    color: var(--tdl-text-primary);
    letter-spacing: -0.01em;
}

.section-card-subtitle[b-bz1upq3uie] {
    margin: 0.45rem 0 0 0;
    color: var(--tdl-text-muted);
    line-height: 1.55;
}

.section-card-body[b-bz1upq3uie] {
    padding: 1.35rem;
}
