/* === Inter (self-hosted, same files as the bsk.swiss website) === */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-400-latin.woff2") format("woff2");
    unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-400-latin-ext.woff2") format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113, u+2c60-2c7f, u+a720-a7ff;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/inter-500-latin.woff2") format("woff2");
    unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/inter-500-latin-ext.woff2") format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113, u+2c60-2c7f, u+a720-a7ff;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-600-latin.woff2") format("woff2");
    unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-600-latin-ext.woff2") format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113, u+2c60-2c7f, u+a720-a7ff;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/inter-700-latin.woff2") format("woff2");
    unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/inter-700-latin-ext.woff2") format("woff2");
    unicode-range: u+0100-02ba, u+02bd-02c5, u+02c7-02cc, u+02ce-02d7, u+02dd-02ff, u+0304, u+0308, u+0329, u+1d00-1dbf, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20c0, u+2113, u+2c60-2c7f, u+a720-a7ff;
}

/* === Light Sidebar Overrides für MudNavMenu im MudDrawer ===
   MudBlazor MudNavLink/MudNavGroup rendern eigene DOM-Elemente.
   CSS Isolation (.razor.css) funktioniert NICHT für MudBlazor-Interna.
   Alle Sidebar-Styles MÜSSEN hier im globalen CSS sein.
   Aktiver Eintrag trägt das Hero-Border-Motiv der Website (roter Linksbalken). */

.mud-drawer .mud-nav-link,
.mud-drawer .mud-nav-group .mud-nav-link {
    color: #44474B !important;
    border-left: 3px solid transparent;
}

.mud-drawer .mud-nav-link:hover,
.mud-drawer .mud-nav-group .mud-nav-link:hover {
    background: #F4F6F8 !important;
    color: #191C1D !important;
}

.mud-drawer .mud-nav-link.active {
    color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent) !important;
    border-left: 3px solid var(--mud-palette-primary);
    font-weight: 600;
    border-radius: 0;
}

.mud-drawer .mud-nav-link-icon-wrapper,
.mud-drawer .mud-nav-link-icon-wrapper .mud-icon-root,
.mud-drawer .mud-icon-root {
    color: #5C6470 !important;
}

.mud-drawer .mud-nav-link.active .mud-nav-link-icon-wrapper .mud-icon-root,
.mud-drawer .mud-nav-link.active .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

/* MudDivider in light drawer */
.mud-drawer .mud-divider {
    border-color: var(--mud-palette-lines-default);
}

/* === Section Labels in Sidebar === */
.bsk-sidebar-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #878D96;
    padding: 4px 20px;
    margin-top: 12px;
    display: block;
}

/* === Shared Card Style === */
.bsk-card {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
}

:root {
    --bsk-page-max-list: 1560px;
    --bsk-page-max-detail: 1480px;
    --bsk-page-max-form: 1240px;
    --bsk-page-gutter: 20px;
    --bsk-section-gap: 24px;
    --bsk-card-padding: 24px;
    --bsk-muted: var(--mud-palette-text-secondary);
    --bsk-accent-wash: rgba(62, 95, 122, 0.05);
    --bsk-accent-wash-strong: rgba(62, 95, 122, 0.09);
}

.bsk-shell-appbar {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    background: rgba(250, 251, 252, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(29, 38, 48, 0.03);
}

/* Full-width white header band so the logo's transparent house interior
   reads as white instead of revealing the dark sidebar behind it. */
.mud-drawer .bsk-shell-drawer-header,
.bsk-shell-drawer-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mud-drawer .bsk-shell-drawer-header .bsk-shell-logo-link,
.bsk-shell-logo-link {
    display: inline-flex !important;
    align-items: center;
    line-height: 0;
    max-width: 100%;
}

.mud-drawer .bsk-shell-drawer-header .bsk-shell-logo,
.bsk-shell-logo {
    height: 30px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block;
}

.bsk-shell-drawer {
    border-right: 1px solid var(--mud-palette-lines-default);
    box-shadow: none !important;
}

.bsk-shell-brand {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.bsk-shell-main {
    padding: 20px;
}

.bsk-page {
    margin: 0 auto;
    width: 100%;
}

.bsk-page-list {
    max-width: var(--bsk-page-max-list);
}

.bsk-page-detail {
    max-width: var(--bsk-page-max-detail);
}

.bsk-page-form {
    max-width: var(--bsk-page-max-form);
}

.bsk-page-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

/* Hero-Border-Motiv der Website: roter 4px-Linksbalken am Seitenkopf */
.bsk-page-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-left: 4px solid var(--mud-palette-primary);
    padding-left: 18px;
}

.bsk-page-header-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.bsk-page-header-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bsk-page-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mud-palette-primary);
}

.bsk-page-header-subtitle,
.bsk-section-card-subtitle,
.bsk-form-section-description {
    color: var(--bsk-muted);
    line-height: 1.45;
}

.bsk-page-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bsk-page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.bsk-page-header-tabs {
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding-bottom: 2px;
}

.bsk-page-header-compact {
    margin-bottom: 16px;
}

.bsk-section-card {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
    background: #ffffff;
}

.bsk-section-card-header,
.bsk-section-card-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
}

.bsk-section-card-header {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.bsk-section-card-footer {
    border-top: 1px solid var(--mud-palette-lines-default);
}

.bsk-section-card-body {
    padding: 22px 24px;
}

.bsk-section-card-copy > .mud-typography-subtitle1 {
    letter-spacing: -0.01em;
}

.bsk-form-section + .bsk-form-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.bsk-form-section-header {
    margin-bottom: 16px;
}

.bsk-form-section .mud-grid {
    row-gap: 4px;
}

.bsk-form-section .mud-input-control {
    margin-top: 4px;
}

.bsk-form-section .mud-input-label {
    font-weight: 500;
}

.bsk-form-section .mud-input-helper-text {
    margin-top: 4px;
}

.bsk-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.bsk-dialog-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.bsk-status-badge {
    font-weight: 600;
    border-radius: 0;
    padding-inline: 2px;
}

.bsk-pill {
    min-height: 28px;
    border-radius: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-inline: 4px;
}

.bsk-pill.mud-chip-outlined {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(62, 95, 122, 0.18);
}

.bsk-pill.mud-chip-filled {
    box-shadow: none;
}

.bsk-status-badge.mud-chip-color-error {
    background: rgba(181, 93, 90, 0.12) !important;
    color: #8f4744 !important;
}

.bsk-status-badge.mud-chip-color-success {
    background: rgba(95, 125, 114, 0.14) !important;
    color: #49645a !important;
}

.bsk-status-badge.mud-chip-color-warning {
    background: rgba(168, 132, 73, 0.15) !important;
    color: #7d6232 !important;
}

.bsk-status-badge.mud-chip-color-info {
    background: rgba(90, 126, 154, 0.14) !important;
    color: #496a83 !important;
}

.bsk-status-badge.mud-chip-outlined {
    background: rgba(255, 255, 255, 0.97);
    border-color: rgba(62, 95, 122, 0.16);
}

.mud-dialog {
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(29, 38, 48, 0.1);
}

.mud-dialog-content {
    padding-top: 0;
}

.bsk-underline-tabs .mud-tabs-toolbar {
    min-height: 40px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.bsk-underline-tabs .mud-tab {
    min-height: 40px;
    padding: 0 14px;
    text-transform: none;
    font-weight: 500;
    opacity: 0.72;
}

.bsk-underline-tabs .mud-tab.mud-tab-active {
    color: var(--mud-palette-primary);
    opacity: 1;
    font-weight: 600;
}

.bsk-underline-tabs .mud-tabs-slider {
    height: 2px;
    border-radius: 0;
}

.bsk-underline-tabs .mud-tab:hover {
    opacity: 0.92;
}

.bsk-underline-tabs .mud-tabs-panels {
    padding-top: 20px;
}

.bsk-table-surface .mud-table-container,
.bsk-table-surface .mud-data-grid {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
}

.bsk-table-surface .mud-table-head .mud-table-cell,
.bsk-table-surface .mud-table-cell,
.bsk-table-surface .column-header {
    padding-top: 10px;
    padding-bottom: 10px;
}

.bsk-table-surface .mud-table-row:hover,
.bsk-table-surface .mud-data-grid-row:hover {
    background: var(--bsk-accent-wash);
}

.bsk-compact-field {
    max-width: 280px;
}

.bsk-defect-dialog {
    max-width: 1280px;
}

.bsk-defect-grid {
    display: grid;
    gap: 14px;
}

.bsk-defect-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, rgba(62, 95, 122, 0.015));
    box-shadow: 0 10px 24px rgba(29, 38, 48, 0.035);
}

/* Aus einer Aufgabe heraus angesprungener Mangel — sonst sucht man ihn in der Liste. */
.bsk-defect-card.is-focused {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 2px rgba(var(--mud-palette-primary-rgb), 0.2), 0 10px 24px rgba(29, 38, 48, 0.035);
    scroll-margin-top: 16px;
}

.bsk-defect-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bsk-defect-thumb {
    width: 180px;
    min-width: 180px;
    aspect-ratio: 16 / 11;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid var(--mud-palette-lines-default);
    background: #f3f6fa;
}

.bsk-defect-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bsk-defect-thumb-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--bsk-muted);
}

.bsk-defect-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.bsk-defect-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.bsk-defect-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 2px 0;
}

.bsk-defect-meta span {
    display: block;
    font-size: 0.75rem;
    color: var(--bsk-muted);
    margin-bottom: 3px;
}

.bsk-defect-meta strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.bsk-defect-notes {
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 14px;
}

.bsk-defect-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Nachweisfoto der Behebung — steht beim Erledigt-Datum, nicht im Streifen
   der Befundfotos, damit Befund und Nachweis unterscheidbar bleiben. */
.bsk-defect-remediation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.bsk-defect-thumb.is-remediation {
    width: 96px;
    min-width: 96px;
    aspect-ratio: 1 / 1;
    border-color: var(--mud-palette-success);
}

/* Spaltentitel als Uppercase-Micro-Labels (label-sm der Website),
   keine Füllflächen — nur eine Hairline unter dem Tabellenkopf. */
.bsk-table-surface .mud-table-head .mud-table-cell,
.bsk-table-surface .column-header {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bsk-muted);
    background: transparent;
}

.bsk-table-surface .mud-table-head .mud-table-cell {
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.bsk-table-surface .mud-table-head .mud-button-root,
.bsk-table-surface .column-header .mud-button-root {
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
}

.bsk-table-surface .mud-table-cell,
.bsk-table-surface .mud-data-grid-cell {
    vertical-align: middle;
}

.bsk-table-surface .mud-table-row,
.bsk-table-surface .mud-data-grid-row {
    min-height: 46px;
}

.bsk-table-surface .mud-icon-button {
    opacity: 0.82;
}

.bsk-table-surface .mud-table-row:hover .mud-icon-button,
.bsk-table-surface .mud-data-grid-row:hover .mud-icon-button {
    opacity: 1;
}

.bsk-density-premium .bsk-section-card {
    border-color: rgba(62, 95, 122, 0.12);
}

.bsk-density-premium .bsk-section-card,
.bsk-density-premium .bsk-table-surface .mud-table-container,
.bsk-density-premium .bsk-table-surface .mud-data-grid {
    box-shadow: 0 8px 22px rgba(29, 38, 48, 0.03);
}

.bsk-density-premium {
    --bsk-page-max-list: 1620px;
    --bsk-page-max-detail: 1620px;
    --bsk-page-max-form: 1280px;
}

.bsk-density-premium .bsk-page-header {
    gap: 14px;
    margin-bottom: 20px;
}

.bsk-density-premium .bsk-section-card-header,
.bsk-density-premium .bsk-section-card-footer {
    padding: 20px 26px;
}

.bsk-density-premium .bsk-section-card-body {
    padding: 24px 26px;
}

.bsk-density-premium .bsk-form-section + .bsk-form-section {
    margin-top: 28px;
    padding-top: 24px;
}

.bsk-density-premium .bsk-underline-tabs .mud-tab {
    padding: 0 16px;
}

.bsk-density-premium .bsk-underline-tabs .mud-tabs-panels {
    padding-top: 22px;
}

.bsk-density-premium .bsk-defect-dialog {
    max-width: 1340px;
}

.bsk-density-premium .bsk-defect-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.bsk-density-premium .bsk-page-header-title {
    font-size: 1.42rem;
}

/* Home: Hauptmenü als Kacheln */
.bsk-tile-section + .bsk-tile-section {
    margin-top: var(--bsk-section-gap);
}

.bsk-tile-section-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bsk-muted);
}

.bsk-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.bsk-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--mud-palette-lines-default);
    color: inherit;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease;
}

/* Greift das Hero-Border-Motiv des Seitenkopfs auf: der rote Linksbalken
   fährt beim Hover aus, statt die Kachel anzuheben. */
.bsk-tile::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--mud-palette-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 140ms ease;
}

.bsk-tile:hover,
.bsk-tile:focus-visible {
    background: var(--bsk-accent-wash);
    border-color: var(--mud-palette-primary);
}

.bsk-tile:hover::before,
.bsk-tile:focus-visible::before {
    transform: scaleY(1);
}

.bsk-tile-icon {
    display: inline-flex;
    color: var(--mud-palette-primary);
}

.bsk-tile-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.25;
}

.bsk-tile-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--bsk-muted);
}

.bsk-tile-count {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 22px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    color: #ffffff;
    background: var(--mud-palette-error);
}

@media (prefers-reduced-motion: reduce) {
    .bsk-tile,
    .bsk-tile::before {
        transition: none;
    }
}

@media (max-width: 900px) {
    .bsk-shell-main {
        padding: 16px;
    }

    .bsk-tile-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }

    .bsk-page-header-main,
    .bsk-section-card-header,
    .bsk-section-card-footer,
    .bsk-action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bsk-section-card-body,
    .bsk-section-card-header,
    .bsk-section-card-footer {
        padding: 18px;
    }

    .bsk-defect-card {
        grid-template-columns: 1fr;
    }

    .bsk-defect-header,
    .bsk-defect-meta,
    .bsk-defect-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

/* === Website-Geometrie: alles rechtwinklig === */
.mud-chip {
    border-radius: 0;
}

/* Buttons wie die Website-CTAs: Uppercase (Mud-Default) + Letter-Spacing */
.mud-button-root.mud-button {
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* === Listen-Werkzeugzeile: Suche links, Filter rechts, eine Zeile === */
.bsk-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.bsk-list-toolbar .bsk-compact-field {
    flex: 1 1 240px;
    max-width: 320px;
}

/* === Filter als eckige segmentierte Kontrolle === */
.bsk-filter-set {
    display: inline-flex;
    gap: 0;
    padding: 0;
}

.bsk-filter-set .mud-chip {
    margin: 0;
    border-radius: 0;
    min-height: 34px;
    padding-inline: 14px;
    background: #ffffff !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    color: #44474B !important;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    box-shadow: none !important;
}

.bsk-filter-set .mud-chip + .mud-chip {
    margin-left: -1px;
}

.bsk-filter-set .mud-chip:hover {
    background: #F4F6F8 !important;
}

.bsk-filter-set .mud-chip.mud-chip-selected {
    background: var(--mud-palette-primary) !important;
    border-color: var(--mud-palette-primary) !important;
    color: #ffffff !important;
    z-index: 1;
}

/* === Kompakte Tabellen-Werkzeugleiste: Suche + Filter in einer Zeile === */
.bsk-table-surface .mud-table-toolbar,
.bsk-table-surface .mud-toolbar {
    padding: 12px 16px;
    gap: 16px;
    min-height: 0;
}

.bsk-table-surface .mud-table-toolbar .mud-input-control,
.bsk-table-surface .mud-toolbar .mud-input-control {
    margin-top: 0;
}

/* === Auth-Seiten: heller Grund mit dezentem Swiss-Grid-Raster === */
.bsk-auth-surface {
    min-height: 100vh;
    background-color: var(--mud-palette-background);
    background-image:
        linear-gradient(rgba(234, 236, 240, 0.6) 1px, transparent 0),
        linear-gradient(90deg, rgba(234, 236, 240, 0.6) 1px, transparent 0);
    background-size: 32px 32px;
}

/* === Swiss-Grid-Raster der Website (32px) === */
.bsk-swiss-grid {
    background-image:
        linear-gradient(#EAECF0 1px, transparent 0),
        linear-gradient(90deg, #EAECF0 1px, transparent 0);
    background-size: 32px 32px;
}

.bsk-empty-state {
    border: 1px solid var(--mud-palette-lines-default);
    background-color: #ffffff;
    background-image:
        linear-gradient(rgba(234, 236, 240, 0.55) 1px, transparent 0),
        linear-gradient(90deg, rgba(234, 236, 240, 0.55) 1px, transparent 0);
    background-size: 32px 32px;
    padding: 48px 24px;
}
