/* /Pages/Admin/Partners.razor.rz.scp.css */
.admin-partners-page[b-tc3sxk7zh9] {
    max-width: 1100px;
    margin-inline: auto;
}

.admin-partners-sections[b-tc3sxk7zh9] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-partners-page .card[b-tc3sxk7zh9] {
    width: 100%;
}
/* /Pages/Admin/Users.razor.rz.scp.css */
.admin-users-scroll[b-ftly5r6en9] {
    overflow-x: auto;
}

.admin-users-table[b-ftly5r6en9] {
    /* Ensures the table can scroll horizontally on smaller viewports */
    min-width: 1400px;
}

.admin-users-sticky-left[b-ftly5r6en9] {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.08);
}

.admin-users-sticky-right[b-ftly5r6en9] {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: var(--bs-body-bg);
    background-clip: padding-box;
    box-shadow: -1px 0 0 rgba(0, 0, 0, 0.08);
}

/* Keep header cells above body cells */
th.admin-users-sticky-left[b-ftly5r6en9],
th.admin-users-sticky-right[b-ftly5r6en9] {
    z-index: 3;
}

.admin-users-filters .btn[b-ftly5r6en9] {
    white-space: nowrap;
}
/* /Pages/BudgetYear.razor.rz.scp.css */
.by-year-title[b-lvwa8mfxtc] {
  font-size: 1.25rem; /* ensartet h4-størrelse */
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
}

.table.table-sm.table-bordered th[b-lvwa8mfxtc],
.table.table-sm.table-bordered td[b-lvwa8mfxtc] {
  vertical-align: middle;
}

.table.table-sm.table-bordered thead th[b-lvwa8mfxtc] {
  font-weight: 600;
}

/* Ensartning af inputfelter i tabeller */
.table input.form-control.form-control-sm[b-lvwa8mfxtc] {
  min-width: 90px;
  padding: 0.15rem 0.35rem;
}

/* Reducér padding i celler for tættere layout */
.table.table-sm > :not(caption) > * > *[b-lvwa8mfxtc] {
  padding: 0.3rem 0.5rem;
}
/* /Pages/Dashboard.razor.rz.scp.css */
.dashboard-page[b-h7tkgvb8ng] {
    /* Alias so we can use the spec token name without touching global tokens */
    --lb-surface: var(--lb-bg-card);
    --lb-surface-alt: color-mix(in srgb, var(--lb-bg-light) 55%, var(--lb-bg-card));
}

.dashboard-sticky-header[b-h7tkgvb8ng] {
    background: var(--lb-bg-light);
    border-bottom: 1px solid var(--lb-border);
    z-index: 1020;
}

/* Reduce small-print areas on Dashboard */
.dashboard-important-info[b-h7tkgvb8ng] {
    font-size: 0.7em;
}

.dashboard-calculation-version[b-h7tkgvb8ng] {
    font-size: 0.7em;
}

.dashboard-important-info .card[b-h7tkgvb8ng],
.dashboard-details[b-h7tkgvb8ng] {
    border: 1px solid var(--lb-border);
    background: var(--lb-surface);
    box-shadow: none;
}

.dashboard-important-info .card-body[b-h7tkgvb8ng] {
    padding: 1.5rem;
}

.dashboard-top-charts[b-h7tkgvb8ng] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .dashboard-top-charts[b-h7tkgvb8ng] {
        grid-template-columns: 1fr;
    }
}

.dashboard-chart-card[b-h7tkgvb8ng] {
    background: var(--lb-surface);
    border: 1px solid var(--lb-border);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: none;
}

.dashboard-chart-card .e-chart[b-h7tkgvb8ng] {
    height: 260px;
}

/* Details affordance (scoped to Dashboard) */
.dashboard-details[b-h7tkgvb8ng] {
    margin-top: 2rem !important;
}

.dashboard-details > summary[b-h7tkgvb8ng] {
    cursor: pointer;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: var(--lb-surface-alt);
    border: 1px solid var(--lb-border);
    border-radius: 6px;
    position: relative;
    list-style: none;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-details > summary:hover[b-h7tkgvb8ng] {
    background: color-mix(in srgb, var(--lb-primary) 10%, var(--lb-surface-alt));
    border-color: color-mix(in srgb, var(--lb-primary) 45%, var(--lb-border));
}

.dashboard-details > summary[b-h7tkgvb8ng]::-webkit-details-marker {
    display: none;
}

.dashboard-details > summary[b-h7tkgvb8ng]::after {
    content: "▾";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    color: var(--lb-text-muted);
}

.dashboard-details[open] > summary[b-h7tkgvb8ng]::after {
    transform: translateY(-50%) rotate(180deg);
}

.dashboard-details[open] > summary[b-h7tkgvb8ng] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dashboard-details-title[b-h7tkgvb8ng] {
    font-weight: 700;
    color: var(--lb-text);
}

.dashboard-details > .dashboard-details-body[b-h7tkgvb8ng] {
    border: 1px solid var(--lb-border);
    border-top: none;
    padding: 1.5rem;
    background: var(--lb-surface);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.dashboard-note[b-h7tkgvb8ng] {
    border: 1px solid var(--lb-border);
    background: var(--lb-surface);
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.dashboard-note-warning[b-h7tkgvb8ng] {
    border-color: color-mix(in srgb, var(--lb-warning) 45%, var(--lb-border));
}

/* Chart cards inside details: consistent padding/border and no visual noise */
.dashboard-details .card[b-h7tkgvb8ng] {
    border: 1px solid var(--lb-border);
    background: var(--lb-surface);
    box-shadow: none;
}

.dashboard-details .card-body[b-h7tkgvb8ng] {
    padding: 1.5rem;
}

.kpi-card[b-h7tkgvb8ng] {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.kpi-label[b-h7tkgvb8ng] {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kpi-value[b-h7tkgvb8ng] {
    margin-top: 0.25rem;
    font-weight: 800;
    font-size: 1.55rem;
    letter-spacing: 0.2px;
    color: var(--text);
}

/* Subtle trend indicators (no backgrounds, no flashes) */
.kpi-value.kpi-trend-up[b-h7tkgvb8ng] {
    color: color-mix(in srgb, var(--success) 65%, var(--text));
}

.kpi-value.kpi-trend-down[b-h7tkgvb8ng] {
    color: color-mix(in srgb, var(--danger) 65%, var(--text));
}

.kpi-card.kpi-income[b-h7tkgvb8ng] { border-left: 5px solid var(--lb-success); }
.kpi-card.kpi-expense[b-h7tkgvb8ng] { border-left: 5px solid var(--lb-danger); }
.kpi-card.kpi-neutral[b-h7tkgvb8ng] { border-left: 5px solid var(--lb-text-muted); }
/* /Pages/IncomeTaxDeductions.razor.rz.scp.css */
.deduction-selections[b-dgnilvozq6] {
    /* Shared 5-column layout used by table + aligned button rows */
    --ded-col-1: 56px;  /* Medtag */
    --ded-col-2: 200px; /* Budgetpost (fixed requirement) */
    --ded-col-3: 110px; /* Beløb/år */
    --ded-col-4: 90px;  /* Person (header-sized) */
    --ded-col-5: 140px; /* Fradragstype (header-sized) */
}

.deduction-selections-table[b-dgnilvozq6] {
    table-layout: fixed;
}

.deduction-selections-table th:nth-child(1)[b-dgnilvozq6],
.deduction-selections-table td:nth-child(1)[b-dgnilvozq6] {
    width: var(--ded-col-1);
}

.deduction-selections-table th:nth-child(2)[b-dgnilvozq6],
.deduction-selections-table td:nth-child(2)[b-dgnilvozq6] {
    width: var(--ded-col-2);
    min-width: var(--ded-col-2);
    max-width: var(--ded-col-2);
}

.deduction-selections-table th:nth-child(3)[b-dgnilvozq6],
.deduction-selections-table td:nth-child(3)[b-dgnilvozq6] {
    width: var(--ded-col-3);
}

.deduction-selections-table th:nth-child(4)[b-dgnilvozq6],
.deduction-selections-table td:nth-child(4)[b-dgnilvozq6] {
    width: var(--ded-col-4);
}

.deduction-selections-table th:nth-child(5)[b-dgnilvozq6],
.deduction-selections-table td:nth-child(5)[b-dgnilvozq6] {
    width: var(--ded-col-5);
}

.deduction-selections-table thead th[b-dgnilvozq6] {
    white-space: nowrap;
}

.deduction-selections-table td:nth-child(4) .form-select[b-dgnilvozq6],
.deduction-selections-table td:nth-child(5) .form-select[b-dgnilvozq6] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Income forecasts: keep year/amount/inflation columns as narrow as the header */
.income-forecasts-table thead th[b-dgnilvozq6] {
    white-space: nowrap;
}

.income-forecasts-col-year[b-dgnilvozq6] {
    width: 10ch;
    min-width: 10ch;
}

.income-forecasts-col-amount[b-dgnilvozq6] {
    width: 14ch;
    min-width: 14ch;
}

.income-forecasts-col-inflation[b-dgnilvozq6] {
    width: 12ch;
    min-width: 12ch;
}

/* Make this table as tight as practical */
.deduction-selections .table-sm > :not(caption) > * > *[b-dgnilvozq6] {
    padding: 0.25rem 0.35rem;
}

.deduction-selections-actions[b-dgnilvozq6] {
    display: grid;
    grid-template-columns: var(--ded-col-1) var(--ded-col-2) var(--ded-col-3) var(--ded-col-4) var(--ded-col-5);
    align-items: end;
    column-gap: 0.5rem;
}

.deduction-selections-actions-span4[b-dgnilvozq6] {
    grid-column: 1 / span 4;
}

.deduction-selections-actions-col5[b-dgnilvozq6] {
    grid-column: 5;
    justify-self: start; /* left aligned within the 5th column */
}
/* /Pages/Priser.razor.rz.scp.css */
.billing-toggle[b-nkjzqe4huj] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.billing-label[b-nkjzqe4huj] {
    font-size: 14px;
    color: var(--lb-text-muted);
}

.switch[b-nkjzqe4huj] {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch input[b-nkjzqe4huj] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider[b-nkjzqe4huj] {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--lb-bg-card);
    border: 1px solid var(--lb-border);
    transition: 0.2s;
    border-radius: 999px;
}

.slider[b-nkjzqe4huj]:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lb-bg-card);
    border: 1px solid var(--lb-border);
    transition: 0.2s;
    border-radius: 999px;
}

.switch input:checked + .slider[b-nkjzqe4huj] {
    background: color-mix(in srgb, var(--lb-primary) 20%, var(--lb-bg-card));
    border-color: var(--lb-primary);
}

.switch input:checked + .slider[b-nkjzqe4huj]:before {
    transform: translate(24px, -50%);
    border-color: var(--lb-primary);
}
/* /Pages/Scenarios.razor.rz.scp.css */
.scenario-details-summary[b-peexcppd9d] {
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.scenario-details-summary:hover[b-peexcppd9d] {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-emphasis-color);
}
/* /Shared/AppSidebar.razor.rz.scp.css */
.sidebar-inner[b-7ev2b5rboq] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-brand[b-7ev2b5rboq] {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-text[b-7ev2b5rboq] {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.sidebar-nav[b-7ev2b5rboq] {
    padding: 0.75rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

:global(.app-shell .sidebar-link)[b-7ev2b5rboq] {
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-weight: 600;
    transition: background-color 120ms ease, color 120ms ease;
}

:global(.app-shell .sidebar-link .nav-label)[b-7ev2b5rboq] {
    color: inherit;
}

:global(.app-shell .sidebar-link:hover)[b-7ev2b5rboq] {
    background-color: rgba(255,255,255,0.12);
    color: #fff !important;
}

:global(.app-shell .sidebar-link.active)[b-7ev2b5rboq] {
    background-color: rgba(255,255,255,0.18);
    color: #fff !important;
}

:global(.app-shell .sidebar-link .oi)[b-7ev2b5rboq] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    color: inherit;
}

.sidebar-section[b-7ev2b5rboq] {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-section-title[b-7ev2b5rboq] {
    color: rgba(255,255,255,0.78);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 0.75rem;
    margin-bottom: 0.4rem;
}

/* Budget selector (Syncfusion dropdown) */
[b-7ev2b5rboq](.sidebar-ddl) {
    margin: 0 0.75rem 0.5rem 0.75rem;
    max-width: 100%;
    width: auto;
}

[b-7ev2b5rboq](.sidebar-ddl .e-input-group),
[b-7ev2b5rboq](.sidebar-ddl .e-input-group.e-control-wrapper) {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    border-radius: 10px;
}

[b-7ev2b5rboq](.sidebar-ddl input.e-input),
[b-7ev2b5rboq](.sidebar-ddl .e-input) {
    color: rgba(255,255,255,0.92);
}

[b-7ev2b5rboq](.sidebar-ddl .e-input-group-icon),
[b-7ev2b5rboq](.sidebar-ddl .e-ddl-icon) {
    color: rgba(255,255,255,0.9);
}

/* When the sidebar is docked (collapsed), hide labels but keep icons. */
:global(.sidebar-collapsed .nav-label)[b-7ev2b5rboq] {
    display: none;
}

:global(.sidebar-collapsed .sidebar-brand-text)[b-7ev2b5rboq] {
    display: none;
}

:global(.sidebar-collapsed .sidebar-link)[b-7ev2b5rboq] {
    justify-content: center;
    padding: 0;
}

:global(.sidebar-collapsed .sidebar-section-title)[b-7ev2b5rboq],
:global(.sidebar-collapsed .sidebar-ddl)[b-7ev2b5rboq] {
    display: none;
}
/* /Shared/MainLayout.razor.rz.scp.css */
.app-shell[b-3sfgr50m0q] {
    min-height: 100vh;
    display: flex;
    background-color: var(--bg);
}

/* Sidebar container is rendered by SfSidebar; keep it visually clean. */
.app-shell[b-3sfgr50m0q]  .e-sidebar {
    background-color: var(--primary-dark);
    border-right: 1px solid rgba(255,255,255,0.06);
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    z-index: 1000;
}

/* Prevent Syncfusion backdrops/overlays from blocking sidebar clicks.
   These overlays are often appended to <body>, so this must be global. */
:global(.e-sidebar-overlay)[b-3sfgr50m0q],
:global(.e-overlay)[b-3sfgr50m0q],
:global(.e-dlg-overlay)[b-3sfgr50m0q],
:global(.e-popup-overlay)[b-3sfgr50m0q] {
    pointer-events: none;
}

.app-main[b-3sfgr50m0q] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-content[b-3sfgr50m0q] {
    padding: 1rem;
}

@media (min-width: 992px) {
    .app-content[b-3sfgr50m0q] {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 640.98px) {
    .app-content[b-3sfgr50m0q] {
        padding: 0.75rem;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-9slnqke1hy] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-9slnqke1hy] {
    height: 3.5rem;
    background-color: var(--primary-dark);
}

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

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

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

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

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

    .nav-item[b-9slnqke1hy]  a {
        color: #eef6ff;
        border-radius: 8px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        font-weight: 600;
        letter-spacing: 0.2px;
        transition: background-color 120ms ease, color 120ms ease;
    }

    .nav-item[b-9slnqke1hy]  a.active { background-color: rgba(255,255,255,0.18); color: #fff; }

.nav-item[b-9slnqke1hy]  a:hover { background-color: rgba(255,255,255,0.14); color: #fff; }

/* Section title (e.g., Administration) — lighter than default text, darker than links */
.nav-section-title[b-9slnqke1hy] {
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* Muted label (e.g., "Aktivt budget") — slightly lighter for readability */
.nav-muted-label[b-9slnqke1hy] {
    color: rgba(255, 255, 255, 0.78);
}

@media (min-width: 641px) {
    .navbar-toggler[b-9slnqke1hy] {
        display: none;
    }

    .collapse[b-9slnqke1hy] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-9slnqke1hy] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        background-color: var(--primary-dark);
        box-shadow: inset -1px 0 0 rgba(255,255,255,0.06);
    }
}
/* /Shared/TopBar.razor.rz.scp.css */
.app-topbar[b-egzlp9rxm7] {
    border-bottom: 1px solid var(--border);
    background-color: var(--card-bg) !important;
}

.topbar-title[b-egzlp9rxm7] {
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.2px;
    margin-left: 0.25rem;
}

/* Keep Syncfusion buttons visually aligned with Bootstrap buttons. */
:deep(.app-topbar .e-btn)[b-egzlp9rxm7] {
    border-radius: 10px;
}
