* {
    box-sizing: border-box;
}

:root {
    --navy: #0c1f3d;
    --navy-2: #10294f;
    --navy-3: #173761;
    --blue: #1769d2;
    --blue-soft: #eaf2fc;
    --bg: #f4f7fb;
    --panel: #ffffff;
    --text: #18263a;
    --muted: #748096;
    --line: #e6ebf2;
    --green: #1d9b67;
    --orange: #d88721;
    --red: #cf4d4d;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(24, 38, 58, 0.06);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--bg);
}

button,
input {
    font: inherit;
}


/* ============================================================
   APP SHELL
   ============================================================ */

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #0b1e3c 0%,
            #0e274b 100%
        );

    color: white;
}

.brand {
    height: 88px;
    padding: 20px 26px;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.brand-main {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}

.brand-sub {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 3px;
    opacity: .65;
}

.navigation {
    padding: 20px 14px;
    flex: 1;
}

.nav-item {
    height: 44px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 0 14px;
    margin: 3px 0;

    border-radius: 9px;

    color: rgba(255,255,255,.76);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition: .15s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

.nav-item.active {
    background: #1769d2;
    color: white;
}

.nav-item.disabled {
    cursor: default;
}

.nav-icon {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.nav-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 14px 10px;
}

.sidebar-footer {
    padding: 18px 24px 22px;

    border-top:
        1px solid rgba(255,255,255,.08);

    display: flex;
    flex-direction: column;
    gap: 3px;

    font-size: 11px;
    color: rgba(255,255,255,.55);
}

.sidebar-footer small {
    opacity: .65;
}

.main-column {
    grid-column: 2;
    min-width: 0;
}

.topbar {
    height: 76px;

    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
}

.global-search {
    width: min(440px, 45vw);
    height: 42px;

    display: flex;
    align-items: center;

    padding: 0 12px;

    background: #f6f8fb;
    border: 1px solid #e6eaf0;
    border-radius: 9px;
}

.global-search input {
    flex: 1;

    border: 0;
    outline: 0;
    background: transparent;

    padding: 0 10px;

    color: var(--text);
}

.search-symbol {
    color: #8994a8;
}

.shortcut {
    padding: 4px 7px;

    border: 1px solid #dfe4ec;
    border-radius: 5px;

    background: white;

    color: #7b8799;
    font-size: 11px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.notification {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid var(--line);
    border-radius: 9px;
}

.avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--navy);
    color: white;

    font-size: 12px;
    font-weight: 700;
}

.user-data {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.user-data strong {
    font-size: 13px;
}

.user-data span {
    margin-top: 2px;
    font-size: 11px;
    color: var(--muted);
}

.logout-button {
    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    cursor: pointer;

    color: #68758b;

    font-size: 18px;
}

.logout-button:hover {
    background: #f1f4f8;
}


/* ============================================================
   CONTENT
   ============================================================ */

.content {
    padding: 32px;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 26px;
}

.page-heading h1 {
    margin: 0;
    font-size: 27px;
    letter-spacing: -.5px;
}

.page-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.primary-button {
    height: 42px;

    padding: 0 17px;

    border: 0;
    border-radius: 9px;

    background: var(--blue);
    color: white;

    font-weight: 600;
}

.primary-button:disabled {
    opacity: .85;
}


/* ============================================================
   KPI
   ============================================================ */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;

    margin-bottom: 22px;
}

.kpi-card {
    min-height: 118px;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 21px;

    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.kpi-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: var(--blue-soft);
    color: var(--blue);

    font-size: 22px;
}

.kpi-card > div:last-child {
    display: grid;
    grid-template-columns: auto auto;
    align-items: end;
    column-gap: 7px;
}

.kpi-label {
    grid-column: 1 / -1;

    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.kpi-card strong {
    margin-top: 5px;
    font-size: 28px;
    line-height: 1;
}

.kpi-card small {
    padding-bottom: 2px;
    color: var(--muted);
}


/* ============================================================
   PANELS
   ============================================================ */

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-header {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 21px;

    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    margin: 0;
    font-size: 15px;
}

.panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.text-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 12px;
}

.dashboard-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;

    margin-bottom: 22px;
}

.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* ============================================================
   TABLE
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
}

.workorder-table {
    width: 100%;
    border-collapse: collapse;
}

.workorder-table th {
    padding: 13px 17px;

    text-align: left;

    background: #fafbfd;
    border-bottom: 1px solid var(--line);

    color: #7b8799;

    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.workorder-table td {
    padding: 15px 17px;

    border-bottom: 1px solid #edf0f5;

    font-size: 12px;
    white-space: nowrap;
}

.workorder-table tbody tr:last-child td {
    border-bottom: 0;
}

.workorder-table tbody tr:hover {
    background: #fafcff;
}

.template-cell {
    display: flex;
    flex-direction: column;
}

.template-cell small {
    margin-top: 3px;
    color: var(--muted);
}

.progress-cell {
    min-width: 125px;

    display: flex;
    align-items: center;
    gap: 9px;
}

.progress-track {
    width: 75px;
    height: 6px;

    overflow: hidden;

    background: #e9edf3;
    border-radius: 20px;
}

.progress-value {
    height: 100%;
    background: var(--blue);
    border-radius: inherit;
}

.progress-cell span {
    color: #637087;
    font-size: 11px;
}

.status-badge {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}

.status--offen {
    background: #fff4df;
    color: #a76a12;
}

.status--in_bearbeitung {
    background: #e8f1ff;
    color: #2465bd;
}

.status--abgeschlossen {
    background: #e6f6ef;
    color: #188257;
}

.status--archiviert {
    background: #edf0f4;
    color: #697486;
}


/* ============================================================
   DONUT
   ============================================================ */

.progress-panel {
    padding-bottom: 22px;
}

.donut {
    --size: 150px;

    width: var(--size);
    height: var(--size);

    margin: 28px auto 12px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--blue)
            calc(var(--progress) * 1%),
            #e9edf4 0
        );
}

.donut::before {
    content: "";

    position: absolute;
}

.donut-inner {
    width: 112px;
    height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: white;
}

.donut-inner strong {
    font-size: 27px;
}

.donut-inner span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}


/* ============================================================
   ACTIVITY
   ============================================================ */

.activity-list {
    padding: 5px 20px 18px;
}

.activity-item {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 11px;

    padding: 13px 0;

    border-bottom: 1px solid #edf0f5;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;

    margin-top: 4px;

    background: var(--blue);
    border-radius: 50%;
}

.activity-item strong {
    font-size: 11px;
}

.activity-item p {
    margin: 4px 0;
    color: #536076;
    font-size: 11px;
    line-height: 1.4;
}

.activity-item small {
    color: #939dae;
    font-size: 10px;
}

.empty-mini {
    padding: 25px 20px;
    color: var(--muted);
    font-size: 12px;
}


/* ============================================================
   CATEGORIES
   ============================================================ */

.categories-panel {
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    padding: 18px 20px 22px;
}

.category-card {
    min-height: 84px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    border: 1px solid var(--line);
    border-radius: 11px;

    background: #fff;
}

.category-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #eef4fd;
    color: var(--blue);

    font-size: 19px;
}

.category-card > div:last-child {
    display: flex;
    flex-direction: column;
}

.category-card strong {
    font-size: 12px;
}

.category-card span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.empty-state {
    padding: 45px 20px;
    text-align: center;
    color: var(--muted);
}

.empty-state strong {
    color: var(--text);
}

.empty-state p {
    margin-bottom: 0;
}


/* ============================================================
   LOGIN
   ============================================================ */

.login-body {
    background: var(--navy);
}

.login-shell {
    min-height: 100vh;

    display: grid;
    grid-template-columns: 1.05fr .95fr;
}

.login-brand {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 54px 70px 70px;

    overflow: hidden;

    color: white;

    background:
        radial-gradient(
            circle at 30% 80%,
            rgba(23,105,210,.32),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #08182f 0%,
            #102c54 100%
        );
}

.login-logo {
    position: relative;
    z-index: 1;
}

.login-copy {
    position: relative;
    z-index: 1;

    max-width: 620px;
}

.eyebrow {
    color: #5fa1f1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-copy h1 {
    margin: 18px 0;

    font-size: clamp(35px, 4.2vw, 62px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.login-copy p {
    max-width: 520px;

    color: rgba(255,255,255,.68);

    font-size: 16px;
    line-height: 1.6;
}

.login-panel {
    display: grid;
    place-items: center;

    padding: 40px;

    background: #f4f7fb;
}

.login-card {
    width: min(420px, 100%);

    padding: 38px;

    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;

    box-shadow:
        0 24px 70px rgba(14,35,65,.14);
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-header h2 {
    margin: 10px 0 8px;
    font-size: 28px;
}

.login-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.form-field {
    margin-bottom: 17px;
}

.form-field label {
    display: block;

    margin-bottom: 7px;

    color: #46536a;
    font-size: 12px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    height: 44px;

    padding: 0 12px;

    border: 1px solid #dce2eb;
    border-radius: 8px;

    outline: 0;

    background: #fbfcfe;
}

.form-field input:focus {
    border-color: #5893dc;

    box-shadow:
        0 0 0 3px rgba(23,105,210,.09);
}

.login-button {
    width: 100%;
    height: 46px;

    margin-top: 8px;

    border: 0;
    border-radius: 8px;

    background: var(--blue);
    color: white;

    cursor: pointer;

    font-weight: 700;
}

.login-button:hover {
    background: #125ebd;
}

.form-error {
    margin-bottom: 18px;
    padding: 10px 12px;

    border-radius: 7px;

    background: #fff0f0;
    color: #a63737;

    font-size: 12px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .main-column {
        width: 100%;
    }

    .topbar {
        padding: 0 18px;
    }

    .global-search {
        display: none;
    }

    .content {
        padding: 20px;
    }

    .page-heading {
        align-items: flex-start;
        gap: 20px;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-side {
        display: flex;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }
}


/* ============================================================
   FUNCTIONAL PORTAL ELEMENTS
   ============================================================ */

a.primary-button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
}

.secondary-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border: 1px solid #d8e0ea;
    border-radius: 9px;

    background: #fff;
    color: #34445c;

    text-decoration: none;
    cursor: pointer;

    font-weight: 600;
}

.secondary-button:hover {
    background: #f5f7fa;
}

.notification {
    color: #32445d;
    text-decoration: none;
}

.search-submit {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8994a8;
    cursor: pointer;
}

.table-link {
    color: #143a67;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

.portal-messages {
    margin-bottom: 18px;
}

.portal-message {
    padding: 12px 15px;

    border: 1px solid #cfe0f6;
    border-radius: 9px;

    background: #eef5fd;
    color: #174f92;

    font-size: 13px;
}

.form-panel {
    padding: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.portal-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.portal-field label {
    font-size: 12px;
    font-weight: 700;
    color: #46546a;
}

.portal-input {
    width: 100%;
    min-height: 42px;

    padding: 8px 11px;

    border: 1px solid #d8e0ea;
    border-radius: 8px;

    background: #fff;
    color: var(--text);

    outline: 0;
}

.portal-input:focus {
    border-color: #5f9be6;

    box-shadow:
        0 0 0 3px rgba(23,105,210,.08);
}

.portal-textarea {
    min-height: 100px;
    resize: vertical;
}

.field-error {
    color: #b23e3e;
    font-size: 11px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 28px;
}

.list-filter {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 220px auto;
    gap: 10px;

    padding: 17px;

    border-bottom: 1px solid var(--line);
}

.detail-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

    margin-bottom: 20px;
}

.summary-card {
    padding: 17px 19px;

    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-card span {
    color: var(--muted);
    font-size: 11px;
}

.summary-card strong {
    font-size: 17px;
}

.checklist-section {
    margin-bottom: 18px;
}

.checklist-items {
    padding: 0 20px;
}

.checklist-item {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(350px, 1.2fr);
    gap: 25px;

    padding: 20px 0;

    border-bottom: 1px solid #edf0f5;
}

.checklist-item:last-child {
    border-bottom: 0;
}

.checklist-label strong {
    font-size: 13px;
}

.checklist-label p {
    margin: 7px 0 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
}

.required-mark {
    display: inline-block;

    margin-left: 8px;
    padding: 3px 6px;

    border-radius: 20px;

    background: #fff1e4;
    color: #b66b19;

    font-size: 9px;
    font-weight: 700;
}

.checklist-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.completed-control {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #516076;

    font-size: 11px;
    font-weight: 600;
}

.info-box {
    padding: 12px 14px;

    border-radius: 8px;

    background: #eef5fd;
    color: #265d9c;

    font-size: 12px;
}

.sticky-actions {
    position: sticky;
    bottom: 0;

    z-index: 8;

    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 15px 0;

    background: rgba(244,247,251,.95);
}

.knowledge-panel {
    padding: 28px;
}

.knowledge-panel h2 {
    margin-top: 0;
}

.knowledge-panel p {
    max-width: 750px;

    color: var(--muted);
    line-height: 1.6;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}

.search-result {
    display: flex;
    flex-direction: column;
    gap: 4px;

    padding: 15px 18px;

    border-bottom: 1px solid #edf0f5;

    color: var(--text);
    text-decoration: none;
}

.search-result strong {
    font-size: 12px;
}

.search-result span {
    color: var(--muted);
    font-size: 11px;
}

.search-result:hover {
    background: #fafcff;
}

@media (max-width: 900px) {
    .form-grid,
    .detail-summary,
    .search-results {
        grid-template-columns: 1fr;
    }

    .checklist-item {
        grid-template-columns: 1fr;
    }

    .list-filter {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   TEMPLATE / FORM BUILDER
   ============================================================ */

.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heading-actions form,
.builder-actions form {
    margin: 0;
}

.builder-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    margin-bottom: 20px;
}

.builder-list {
    padding: 14px;
}

.builder-item {
    display: grid;
    grid-template-columns:
        34px
        55px
        minmax(0, 1fr)
        auto;

    gap: 12px;

    align-items: center;

    min-height: 92px;

    margin-bottom: 9px;
    padding: 13px;

    border: 1px solid #e2e8f0;
    border-radius: 11px;

    background: white;

    transition:
        box-shadow .15s ease,
        transform .15s ease,
        opacity .15s ease;
}

.builder-item:last-child {
    margin-bottom: 0;
}

.builder-item[draggable="true"] {
    cursor: grab;
}

.builder-item.dragging {
    opacity: .45;
    transform: scale(.995);

    box-shadow:
        0 12px 30px
        rgba(20, 40, 70, .15);
}

.drag-handle {
    color: #8c98aa;

    font-size: 22px;

    text-align: center;

    user-select: none;
}

.builder-position {
    color: #8b96a8;

    font-size: 11px;
    font-weight: 700;

    text-align: center;
}

.builder-content {
    min-width: 0;
}

.builder-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.builder-title-row strong {
    font-size: 13px;
}

.builder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 7px;

    color: var(--muted);

    font-size: 10px;
}

.builder-content p {
    margin: 7px 0 0;

    color: #657188;

    font-size: 11px;
    line-height: 1.45;
}

.field-type-badge {
    padding: 3px 7px;

    border-radius: 20px;

    background: #edf4fd;
    color: #2865ac;

    font-size: 9px;
    font-weight: 700;
}

.builder-actions {
    display: flex;
    gap: 7px;
}

.small-button {
    min-height: 32px;
    height: 32px;

    padding: 0 10px;

    font-size: 10px;
}

.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;

    border: 1px solid #f1cccc;
    border-radius: 8px;

    background: #fff5f5;
    color: #b43d3d;

    cursor: pointer;

    font-weight: 600;
}

.danger-button:hover {
    background: #ffecec;
}

@media (max-width: 1000px) {
    .builder-item {
        grid-template-columns:
            30px
            minmax(0, 1fr);
    }

    .builder-position {
        display: none;
    }

    .builder-actions {
        grid-column: 2;

        justify-content: flex-start;
    }

    .builder-summary {
        grid-template-columns: 1fr;
    }

    .heading-actions {
        flex-wrap: wrap;
    }
}


/* ============================================================
   WISSENSDATENBANK / ANYTHINGLLM
   ============================================================ */

.knowledge-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;

    width: 100%;
}


/* ------------------------------------------------------------
   GEMEINSAME KARTENSTRUKTUR
   ------------------------------------------------------------ */

.knowledge-query-panel,
.knowledge-answer,
.knowledge-sources,
.knowledge-error {
    width: 100%;
    max-width: none;

    overflow: hidden;
}

.knowledge-query-panel .panel-header,
.knowledge-answer .panel-header,
.knowledge-sources .panel-header {
    padding: 18px 22px;

    border-bottom: 1px solid #e5eaf1;
}

.knowledge-query-panel .panel-header h2,
.knowledge-answer .panel-header h2,
.knowledge-sources .panel-header h2 {
    margin: 0 0 3px;

    font-size: 15px;
    font-weight: 700;
}

.knowledge-query-panel .panel-header p,
.knowledge-answer .panel-header p,
.knowledge-sources .panel-header p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.45;
}


/* ------------------------------------------------------------
   SUCHE
   ------------------------------------------------------------ */

.knowledge-query-panel form {
    padding: 18px 22px 20px;
}

.knowledge-query-panel .portal-field {
    margin: 0;
}

.knowledge-query-panel .portal-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 700;
}

.knowledge-question {
    display: block;

    width: 100%;
    min-height: 105px;
    max-height: 260px;

    padding: 13px 14px;

    resize: vertical;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
}

.knowledge-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 14px;
}

.knowledge-actions button:disabled {
    opacity: .65;
    cursor: wait;
}


/* ------------------------------------------------------------
   ANTWORT
   ------------------------------------------------------------ */

.knowledge-answer {
    position: relative;

    border-left: 3px solid #1769d2;
}

.knowledge-answer .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-left: 20px;
}

.knowledge-answer-text {
    padding: 18px 22px 20px;

    color: #293548;

    font-size: 13px;
    line-height: 1.7;
}

.knowledge-answer-text p {
    margin: 0 0 12px;
}

.knowledge-answer-text p:last-child {
    margin-bottom: 0;
}

.knowledge-source-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 4px 9px;

    border-radius: 20px;

    background: #edf4fd;
    color: #2865ac;

    white-space: nowrap;

    font-size: 10px;
    font-weight: 700;
}


/* ------------------------------------------------------------
   QUELLEN
   ------------------------------------------------------------ */

.knowledge-sources {
    padding-bottom: 20px;
}

.source-list {
    display: grid;
    gap: 10px;

    padding: 18px 22px 0;
}

.source-card {
    padding: 14px 16px;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background: #fbfcfe;
}

.source-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.source-card-header strong {
    color: #17243a;

    font-size: 12px;
}

.source-snippet {
    margin-top: 10px;

    color: #637086;

    font-size: 11px;
    line-height: 1.55;
}


/* ------------------------------------------------------------
   KEINE QUELLE
   ------------------------------------------------------------ */

.knowledge-no-sources {
    margin: 18px 22px 0;
    padding: 15px 16px;

    border: 1px dashed #d7dee9;
    border-radius: 9px;

    background: #fafbfd;
}

.knowledge-no-sources strong {
    display: block;

    margin-bottom: 4px;

    color: #223047;

    font-size: 12px;
}

.knowledge-no-sources p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;
}


/* ------------------------------------------------------------
   FEHLER
   ------------------------------------------------------------ */

.knowledge-error {
    padding: 18px 22px;

    border-left: 3px solid #c95454;

    background: #fffafa;
}

.knowledge-error h2 {
    margin: 0 0 5px;

    font-size: 14px;
}

.knowledge-error p {
    margin: 0;

    color: #704646;

    font-size: 12px;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 800px) {

    .knowledge-query-panel .panel-header,
    .knowledge-answer .panel-header,
    .knowledge-sources .panel-header,
    .knowledge-query-panel form,
    .knowledge-answer-text {
        padding-left: 16px;
        padding-right: 16px;
    }

    .knowledge-no-sources,
    .source-list {
        margin-left: 0;
        margin-right: 0;

        padding-left: 16px;
        padding-right: 16px;
    }

    .knowledge-no-sources {
        margin-left: 16px;
        margin-right: 16px;
    }

    .knowledge-actions,
    .source-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .knowledge-answer .panel-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ============================================================
   CHECKLISTEN-BUILDER – ABSCHNITTE
   ============================================================ */

.section-builder {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.builder-summary {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.builder-section {
    overflow: hidden;

    border: 1px solid #dfe5ee;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 2px 8px
        rgba(30, 50, 80, .04);

    transition:
        opacity .15s ease,
        box-shadow .15s ease;
}


.builder-section.section-dragging {
    opacity: .55;

    box-shadow:
        0 14px 35px
        rgba(20, 45, 80, .16);
}


.builder-section-header {
    display: grid;

    grid-template-columns:
        28px
        32px
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 11px;

    min-height: 66px;

    padding: 12px 15px;

    border-bottom:
        1px solid #e7ecf2;

    background: #f8fafc;
}


.section-drag-handle,
.point-drag-handle {
    display: flex;

    align-items: center;
    justify-content: center;

    color: #8996a8;

    font-size: 18px;

    cursor: grab;

    user-select: none;
}


.section-drag-handle:active,
.point-drag-handle:active {
    cursor: grabbing;
}


.builder-section-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 7px;

    background: #e9f2fd;
    color: #1769d2;

    font-size: 11px;
    font-weight: 800;
}


.builder-section-heading {
    min-width: 0;
}


.builder-section-heading h2 {
    margin: 0;

    color: #1c2a40;

    font-size: 13px;
    font-weight: 750;
}


.builder-section-heading p {
    margin: 4px 0 0;

    color: #778397;

    font-size: 10px;
    line-height: 1.4;
}


.builder-section-meta {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #778397;

    white-space: nowrap;

    font-size: 10px;
}


.builder-section-actions {
    display: flex;

    align-items: center;

    gap: 6px;
}


.builder-section-actions form,
.builder-actions form {
    margin: 0;
}


.section-point-list {
    min-height: 55px;

    padding: 10px 12px;

    background: #ffffff;
}


.section-point-list .builder-item {
    grid-template-columns:
        28px
        46px
        minmax(0, 1fr)
        auto;

    min-height: 74px;

    margin-bottom: 8px;

    padding: 11px 12px;
}


.section-point-list .builder-item:last-of-type {
    margin-bottom: 0;
}


.section-point-list .builder-item.dragging {
    opacity: .45;

    box-shadow:
        0 10px 28px
        rgba(20, 45, 80, .14);
}


.section-empty {
    padding: 17px;

    border: 1px dashed #d7dee8;
    border-radius: 8px;

    background: #fafbfd;

    color: #8b96a6;

    text-align: center;

    font-size: 10px;
}


.section-empty[hidden] {
    display: none;
}


.builder-section-footer {
    padding: 9px 14px 11px;

    border-top:
        1px solid #edf0f4;

    background: #fbfcfe;
}


.section-add-element {
    display: inline-flex;

    align-items: center;

    color: #1769d2;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}


.section-add-element:hover {
    text-decoration: underline;
}


.builder-bottom-action {
    margin-top: 18px;

    text-align: center;
}


@media (max-width: 1000px) {

    .builder-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .builder-section-header {
        grid-template-columns:
            28px
            32px
            minmax(0, 1fr);
    }


    .builder-section-meta,
    .builder-section-actions {
        grid-column: 3;
    }


    .section-point-list .builder-item {
        grid-template-columns:
            28px
            minmax(0, 1fr);
    }


    .section-point-list .builder-position {
        display: none;
    }


    .section-point-list .builder-actions {
        grid-column: 2;
    }
}


@media (max-width: 650px) {

    .builder-summary {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   VORGANG – STRUKTURBAUSTEINE
   ============================================================ */

.checklist-item:has(.checklist-layout-heading),
.checklist-item:has(.checklist-layout-divider),
.checklist-item:has(.checklist-layout-warning) {
    grid-template-columns: 1fr;
}

.checklist-item:has(.checklist-layout-heading)
.checklist-label,
.checklist-item:has(.checklist-layout-divider)
.checklist-label,
.checklist-item:has(.checklist-layout-warning)
.checklist-label {
    display: none;
}

.checklist-item:has(.checklist-layout-heading)
.checklist-control,
.checklist-item:has(.checklist-layout-divider)
.checklist-control,
.checklist-item:has(.checklist-layout-warning)
.checklist-control {
    width: 100%;
}


.checklist-layout-heading {
    padding: 8px 0 2px;
}

.checklist-layout-heading h3 {
    margin: 0;

    color: #14253d;

    font-size: 17px;
    font-weight: 750;
}

.checklist-layout-heading p {
    margin: 5px 0 0;

    color: #68778c;

    font-size: 12px;
    line-height: 1.5;
}


.checklist-layout-divider {
    width: 100%;
    height: 1px;

    margin: 9px 0;

    background: #dce4ee;
}


.checklist-layout-warning {
    display: grid;

    grid-template-columns: 30px minmax(0, 1fr);

    gap: 10px;

    padding: 12px 13px;

    border: 1px solid #efd49a;
    border-radius: 8px;

    background: #fff9eb;
    color: #624b1c;
}

.checklist-layout-warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: #ffe7ad;
    color: #a56600;

    font-weight: 800;
}

.checklist-layout-warning strong {
    color: #634715;
}

.checklist-layout-warning p {
    margin: 4px 0 0;

    color: #735b2c;

    font-size: 12px;
    line-height: 1.5;
}


/* ============================================================
   VORGANG – KONFIGURIERTE EINGABEFELDER
   ============================================================ */

.runtime-checkbox {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    min-height: 38px;

    padding: 0 11px;

    border: 1px solid #d9e2ed;
    border-radius: 7px;

    background: #fff;

    color: #33455d;

    font-size: 12px;

    cursor: pointer;
}

.runtime-checkbox input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: #1769d2;
}


.runtime-number-field {
    display: flex;
    align-items: stretch;

    width: 100%;
}

.runtime-number-field .portal-input {
    min-width: 0;

    flex: 1;

    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.runtime-number-unit {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;

    padding: 0 11px;

    border: 1px solid #d9e2ed;
    border-left: 0;

    border-radius:
        0
        7px
        7px
        0;

    background: #f4f7fa;
    color: #58697f;

    font-size: 11px;
    font-weight: 650;
}


.runtime-field-hint {
    display: block;

    margin-top: 5px;

    color: #77869a;

    font-size: 10px;
}


/* ============================================================
   WISSENSBAUSTEINE – DETAIL
   ============================================================ */

.knowledge-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 7px;

    color: #748298;

    font-size: 11px;
}

.knowledge-heading-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.knowledge-content {
    color: #2f4056;

    font-size: 14px;
    line-height: 1.7;
}

.knowledge-content p:first-child {
    margin-top: 0;
}

.knowledge-content p:last-child {
    margin-bottom: 0;
}

.knowledge-state-form {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 14px;

    align-items: end;

    padding: 14px 0;

    border-bottom: 1px solid #e6ebf1;
}

.knowledge-state-form:last-child {
    border-bottom: 0;
}

.knowledge-state-action {
    padding-bottom: 1px;
}

.knowledge-document-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 20px;

    margin-top: 14px;

    color: #748298;

    font-size: 11px;
}

.knowledge-empty {
    padding: 20px;

    color: #68798e;

    text-align: center;
}

.knowledge-empty p {
    margin-bottom: 0;
}

.knowledge-archive-notice {
    padding: 16px;

    border: 1px solid #d8dee8;
    border-radius: 8px;

    background: #f6f8fa;
}

.knowledge-archive-notice p {
    margin-bottom: 0;

    color: #68798e;
}


@media (max-width: 800px) {

    .knowledge-state-form {
        grid-template-columns: 1fr;
    }

    .knowledge-state-action {
        padding-bottom: 0;
    }
}


/* ============================================================
   WISSENSBAUSTEINE – VERSIONEN
   ============================================================ */

.knowledge-version-info {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.knowledge-version-info > div {
    display: flex;
    flex-direction: column;

    gap: 5px;

    min-width: 0;
}

.knowledge-version-info strong {
    color: #69798d;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;
}

.knowledge-version-info span {
    color: #2f4056;

    font-size: 13px;
}


@media (max-width: 900px) {

    .knowledge-version-info {
        grid-template-columns:
            1fr;
    }

}


/* NETSTYLE WISSENSBAUSTEINE LISTE START */

.knowledge-page-heading {
    margin-bottom: 20px;
}

.knowledge-toolbar-panel {
    margin-bottom: 18px;
    padding: 14px;

    border: 1px solid #e3e9f0;
    border-radius: 11px;

    background: #ffffff;

    box-shadow:
        0 4px 16px rgba(26, 45, 71, .035);
}

.knowledge-toolbar {
    display: flex;
    align-items: center;

    gap: 10px;

    width: 100%;
}

.knowledge-search {
    position: relative;

    flex: 1 1 460px;

    min-width: 280px;
}

.knowledge-search-icon {
    position: absolute;
    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: #8190a3;

    font-size: 17px;

    pointer-events: none;
}

.knowledge-search input {
    width: 100%;
    height: 42px;

    padding: 0 14px 0 39px;

    border: 1px solid #dbe3ec;
    border-radius: 8px;

    background: #f9fbfd;

    color: #20354e;

    font: inherit;

    outline: none;
}

.knowledge-search input:focus {
    border-color: #176fd1;
    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(23, 111, 209, .08);
}

.knowledge-filter-select {
    flex: 0 0 200px;

    height: 42px;

    padding: 0 34px 0 12px;

    border: 1px solid #dbe3ec;
    border-radius: 8px;

    background: #ffffff;

    color: #34485f;

    font: inherit;

    outline: none;
}

.knowledge-filter-select:focus {
    border-color: #176fd1;
}

.knowledge-filter-button {
    height: 42px;
}

.knowledge-results-panel {
    padding-top: 4px;
    padding-bottom: 4px;
}

.knowledge-card {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 24px;

    align-items: center;

    padding: 19px 3px;

    border-bottom: 1px solid #e9edf3;
}

.knowledge-card:last-child {
    border-bottom: 0;
}

.knowledge-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 7px;
}

.knowledge-category,
.knowledge-status,
.knowledge-version {
    display: inline-flex;
    align-items: center;

    min-height: 22px;

    padding: 3px 8px;

    border-radius: 5px;

    font-size: 10px;
    font-weight: 700;

    line-height: 1;
}

.knowledge-category {
    background: #edf4fc;
    color: #35658f;
}

.knowledge-version {
    background: #f2f4f7;
    color: #6d7988;
}

.knowledge-status-entwurf {
    background: #fff5dc;
    color: #936b13;
}

.knowledge-status-veroeffentlicht {
    background: #e9f6ed;
    color: #357249;
}

.knowledge-status-archiviert {
    background: #f0f1f3;
    color: #747b84;
}

.knowledge-card h2 {
    margin: 0 0 6px;

    font-size: 17px;
    line-height: 1.3;
}

.knowledge-card h2 a {
    color: #132a46;
    text-decoration: none;
}

.knowledge-card h2 a:hover {
    color: #176fd1;
}

.knowledge-card p {
    max-width: 900px;

    margin: 0;

    color: #69798c;

    font-size: 13px;
    line-height: 1.55;
}

.knowledge-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 10px;

    min-width: 150px;
}

.knowledge-card-actions > span {
    color: #8592a2;

    font-size: 11px;

    white-space: nowrap;
}

.knowledge-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 330px;

    padding: 50px 30px;

    border: 1px solid #e3e9f0;
    border-radius: 11px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 4px 18px rgba(26, 45, 71, .035);
}

.knowledge-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 18px;

    border-radius: 14px;

    background: #edf4fc;

    color: #176fd1;

    font-size: 25px;
}

.knowledge-empty-state h2 {
    margin: 0 0 8px;

    color: #1b304a;

    font-size: 19px;
}

.knowledge-empty-state p {
    max-width: 520px;

    margin: 0 0 22px;

    color: #748397;

    font-size: 13px;
    line-height: 1.6;
}

.knowledge-pagination {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-top: 18px;
}


@media (max-width: 1050px) {

    .knowledge-toolbar {
        flex-wrap: wrap;
    }

    .knowledge-search {
        flex-basis: 100%;
    }

    .knowledge-filter-select {
        flex: 1 1 180px;
    }

}


@media (max-width: 700px) {

    .knowledge-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .knowledge-search {
        min-width: 0;
    }

    .knowledge-filter-select {
        flex: none;
        width: 100%;
    }

    .knowledge-card {
        grid-template-columns: 1fr;
    }

    .knowledge-card-actions {
        align-items: flex-start;
    }

}

/* NETSTYLE WISSENSBAUSTEINE LISTE ENDE */



/* ============================================================
   VORGANG – EINGEFRORENE ANLEITUNG
   ============================================================ */

.snapshot-knowledge-page {
    max-width: 980px;
    margin: 0 auto;
}

.snapshot-knowledge-back {
    margin-bottom: 18px;
}

.snapshot-knowledge-back a {
    color: #44617f;
    text-decoration: none;
    font-size: 13px;
}

.snapshot-knowledge-back a:hover {
    text-decoration: underline;
}

.snapshot-knowledge-header {
    padding: 25px 28px;

    border: 1px solid #dde6ef;
    border-radius: 12px;

    background: #ffffff;
}

.snapshot-knowledge-eyebrow {
    margin-bottom: 7px;

    color: #2872ba;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.snapshot-knowledge-header h1 {
    margin: 0;

    color: #17314f;

    font-size: 25px;
    line-height: 1.25;
}

.snapshot-knowledge-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-top: 11px;

    color: #718196;

    font-size: 12px;
}

.snapshot-knowledge-summary {
    margin-top: 14px;
    padding: 16px 20px;

    border-left: 3px solid #4e8dcc;
    border-radius: 7px;

    background: #f5f9fd;

    color: #40566e;

    font-size: 14px;
    line-height: 1.55;
}

.snapshot-knowledge-content {
    margin-top: 14px;
    padding: 26px 28px;

    border: 1px solid #e1e7ee;
    border-radius: 12px;

    background: #ffffff;

    color: #273b51;

    font-size: 14px;
    line-height: 1.7;
}

.snapshot-knowledge-footer {
    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-top: 14px;
    padding: 13px 17px;

    border: 1px solid #e1e7ee;
    border-radius: 8px;

    background: #f8fafc;

    color: #728196;

    font-size: 11px;
}

.snapshot-knowledge-footer strong {
    color: #40566e;
}


/* ============================================================
   VORGANG – EINGEFRORENE ANLEITUNG
   ============================================================ */

.snapshot-knowledge-page {
    max-width: 980px;
    margin: 0 auto;
}

.snapshot-knowledge-back {
    margin-bottom: 18px;
}

.snapshot-knowledge-back a {
    color: #44617f;
    text-decoration: none;
    font-size: 13px;
}

.snapshot-knowledge-back a:hover {
    text-decoration: underline;
}

.snapshot-knowledge-header {
    padding: 25px 28px;

    border: 1px solid #dde6ef;
    border-radius: 12px;

    background: #ffffff;
}

.snapshot-knowledge-eyebrow {
    margin-bottom: 7px;

    color: #2872ba;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.snapshot-knowledge-header h1 {
    margin: 0;

    color: #17314f;

    font-size: 25px;
    line-height: 1.25;
}

.snapshot-knowledge-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-top: 11px;

    color: #718196;

    font-size: 12px;
}

.snapshot-knowledge-summary {
    margin-top: 14px;
    padding: 16px 20px;

    border-left: 3px solid #4e8dcc;
    border-radius: 7px;

    background: #f5f9fd;

    color: #40566e;

    font-size: 14px;
    line-height: 1.55;
}

.snapshot-knowledge-content {
    margin-top: 14px;
    padding: 26px 28px;

    border: 1px solid #e1e7ee;
    border-radius: 12px;

    background: #ffffff;

    color: #273b51;

    font-size: 14px;
    line-height: 1.7;
}

.snapshot-knowledge-footer {
    display: flex;
    flex-direction: column;

    gap: 3px;

    margin-top: 14px;
    padding: 13px 17px;

    border: 1px solid #e1e7ee;
    border-radius: 8px;

    background: #f8fafc;

    color: #728196;

    font-size: 11px;
}

.snapshot-knowledge-footer strong {
    color: #40566e;
}


/* ============================================================
   NETSTYLE RUNTIME ANLEITUNG START
   ============================================================ */

.checklist-item--anleitung .checklist-label {
    display: none;
}

.checklist-item--anleitung .checklist-control {
    grid-column: 1 / -1;
    width: 100%;
}

.runtime-knowledge-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;

    width: 100%;
    box-sizing: border-box;

    padding: 17px 18px;

    border: 1px solid #d7e3ef;
    border-radius: 10px;

    background: #f8fbfe;
}

.runtime-knowledge-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 9px;

    background: #e7f1fb;
    color: #176bb8;

    font-size: 21px;
    font-weight: 700;
}

.runtime-knowledge-card-body {
    min-width: 0;
}

.runtime-knowledge-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;

    margin-bottom: 5px;

    color: #657b92;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .035em;
    text-transform: uppercase;
}

.runtime-knowledge-card h3 {
    margin: 0;

    color: #18334f;

    font-size: 15px;
    line-height: 1.35;
}

.runtime-knowledge-source-title {
    margin-top: 4px;

    color: #45627f;

    font-size: 12px;
    font-weight: 600;
}

.runtime-knowledge-help {
    margin: 7px 0 0;

    color: #6e7f91;

    font-size: 12px;
    line-height: 1.45;
}

.runtime-knowledge-summary {
    margin: 8px 0 0;

    color: #40566e;

    font-size: 12px;
    line-height: 1.5;
}

.runtime-knowledge-actions {
    display: flex;

    margin-top: 12px;
}

.runtime-knowledge-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    text-decoration: none;
}

@media (max-width: 650px) {

    .runtime-knowledge-card {
        grid-template-columns: 1fr;
    }

}

/* NETSTYLE RUNTIME ANLEITUNG ENDE */


/* ============================================================
   Runtime – geschützte Bildvorschau
   ============================================================ */

.runtime-image-preview {
    margin-top: 0.85rem;
}

.runtime-image-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px;
}

.runtime-image-preview-actions {
    margin-top: 0.45rem;
    font-size: 0.875rem;
}


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2
   ============================================================ */


/* ------------------------------------------------------------
   Einzelner Prüfpunkt
   ------------------------------------------------------------ */

.checklist-item {
    display: grid;
    grid-template-columns:
        minmax(220px, 300px)
        minmax(0, 1fr);

    column-gap: 32px;
    row-gap: 10px;

    align-items: start;

    padding: 20px 18px;

    border-bottom: 1px solid #e7edf3;

    transition:
        background-color .15s ease,
        border-color .15s ease;
}

.checklist-item:last-child {
    border-bottom: 0;
}

.checklist-item:hover {
    background: #fbfdff;
}


/* ------------------------------------------------------------
   Linke Seite – Bezeichnung
   ------------------------------------------------------------ */

.checklist-label {
    min-width: 0;
    padding-top: 5px;
}

.checklist-label strong {
    display: inline;

    color: #18334f;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.checklist-label p {
    margin: 6px 0 0;

    color: #718196;

    font-size: 12px;
    line-height: 1.5;
}


/* Pflicht-Badge */

.required-mark {
    display: inline-flex;
    align-items: center;

    min-height: 20px;

    margin-left: 7px;
    padding: 2px 7px;

    border: 1px solid #f2d5ad;
    border-radius: 999px;

    background: #fff8ed;

    color: #a45c08;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;
    letter-spacing: .025em;
    text-transform: uppercase;

    vertical-align: 1px;
}


/* ------------------------------------------------------------
   Rechte Seite – Eingabe
   ------------------------------------------------------------ */

.checklist-control {
    width: 100%;
    max-width: 820px;
    min-width: 0;
}


/* ------------------------------------------------------------
   Allgemeine Eingabefelder
   ------------------------------------------------------------ */

.checklist-control .portal-input {
    width: 100%;
    box-sizing: border-box;

    min-height: 42px;

    padding: 9px 12px;

    border: 1px solid #d7e0e9;
    border-radius: 8px;

    background: #ffffff;

    color: #233a54;

    font: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}

.checklist-control .portal-input:hover {
    border-color: #bdcbd9;
}

.checklist-control .portal-input:focus {
    border-color: #176fd1;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(23, 111, 209, .08);
}

.checklist-control .portal-input::placeholder {
    color: #98a5b4;
}


/* Textarea */

.checklist-control .portal-textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.5;
}


/* ------------------------------------------------------------
   Checkbox / Bestätigung
   ------------------------------------------------------------ */

.runtime-checkbox {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 42px;
    box-sizing: border-box;

    padding: 9px 12px;

    border: 1px solid #d7e0e9;
    border-radius: 8px;

    background: #f9fbfd;

    color: #334b65;

    font-size: 13px;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}

.runtime-checkbox:hover {
    border-color: #bdd0e2;
    background: #f5f9fd;
}

.runtime-checkbox:focus-within {
    border-color: #176fd1;

    box-shadow:
        0 0 0 3px rgba(23, 111, 209, .08);
}

.runtime-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;

    margin: 0 9px 0 0;

    accent-color: #176fd1;
}


/* ------------------------------------------------------------
   Zahl + Einheit
   ------------------------------------------------------------ */

.runtime-number-field {
    display: flex;
    align-items: stretch;

    width: 100%;
}

.runtime-number-field .portal-input {
    flex: 1 1 auto;
}

.runtime-number-unit {
    display: inline-flex;
    align-items: center;

    margin-left: 8px;
    padding: 0 12px;

    border: 1px solid #d7e0e9;
    border-radius: 8px;

    background: #f5f8fb;

    color: #65788e;

    font-size: 12px;
    font-weight: 600;
}


/* ------------------------------------------------------------
   Auswahlfelder
   ------------------------------------------------------------ */

.checklist-control select.portal-input:not([multiple]) {
    cursor: pointer;
}


/* Mehrfachauswahl */

.checklist-control select.portal-input[multiple] {
    min-height: 112px;

    padding: 5px;

    background: #ffffff;
}

.checklist-control select.portal-input[multiple] option {
    margin: 2px 0;
    padding: 8px 10px;

    border-radius: 5px;

    color: #324960;
}


/* ------------------------------------------------------------
   DATEI / BILD Upload
   ------------------------------------------------------------ */

.checklist-control input[type="file"].portal-input {
    min-height: 58px;

    padding: 8px;

    border: 1px dashed #bdcddd;
    border-radius: 9px;

    background: #f8fbfe;

    color: #62758a;

    cursor: pointer;
}

.checklist-control input[type="file"].portal-input:hover {
    border-color: #7eadd9;
    background: #f4f9fd;
}

.checklist-control input[type="file"]::file-selector-button {
    min-height: 38px;

    margin-right: 12px;
    padding: 0 14px;

    border: 1px solid #cbd8e5;
    border-radius: 7px;

    background: #ffffff;

    color: #24415f;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease;
}

.checklist-control input[type="file"]::file-selector-button:hover {
    border-color: #9fbedb;
    background: #edf5fc;
}

.runtime-field-hint {
    display: block;

    margin-top: 6px;

    color: #7b8b9d;

    font-size: 11px;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   Vorhandene Datei
   ------------------------------------------------------------ */

.checklist-control > a {
    display: inline-flex;
    align-items: center;

    margin-top: 8px;

    color: #176bb8;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.checklist-control > a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------
   Bildvorschau
   ------------------------------------------------------------ */

.runtime-image-preview {
    width: fit-content;
    max-width: 100%;

    margin-top: 12px;
    padding: 9px;

    border: 1px solid #dce5ee;
    border-radius: 10px;

    background: #f8fafc;

    box-shadow:
        0 2px 8px rgba(26, 45, 71, .035);
}

.runtime-image-preview > a {
    display: block;
}

.runtime-image-preview img {
    display: block;

    width: auto;
    max-width: 100%;
    max-height: 340px;

    border-radius: 7px;

    object-fit: contain;

    background: #eef2f6;
}

.runtime-image-preview-actions {
    display: flex;
    align-items: center;

    min-height: 28px;

    margin-top: 7px;
    padding: 0 3px;

    font-size: 11px;
}

.runtime-image-preview-actions a {
    color: #176bb8;
    font-weight: 600;
    text-decoration: none;
}

.runtime-image-preview-actions a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------
   Anleitung bleibt Full-Width
   ------------------------------------------------------------ */

.checklist-item--anleitung {
    grid-template-columns: 1fr;
}

.checklist-item--anleitung .checklist-control {
    grid-column: 1 / -1;

    max-width: none;
}


/* ------------------------------------------------------------
   Mobile / Tablet
   ------------------------------------------------------------ */

@media (max-width: 1000px) {

    .checklist-item {
        grid-template-columns:
            minmax(190px, 250px)
            minmax(0, 1fr);

        column-gap: 22px;

        padding:
            18px 14px;
    }

}


@media (max-width: 760px) {

    .checklist-item {
        grid-template-columns: 1fr;

        gap: 10px;

        padding:
            16px 12px;
    }

    .checklist-label {
        padding-top: 0;
    }

    .checklist-control {
        max-width: none;
    }

    .runtime-number-field {
        flex-wrap: wrap;
        gap: 7px;
    }

    .runtime-number-unit {
        margin-left: 0;
        min-height: 36px;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2 ENDE */


/* NETSTYLE CHECKLISTEN-RUNTIME V2.1 START */


/* ============================================================
   Mehrfachauswahl
   ============================================================ */

.runtime-multiselect {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 8px;

    width: 100%;
}


.runtime-multiselect-option {
    display: flex;
    align-items: center;

    min-height: 42px;
    box-sizing: border-box;

    padding: 9px 12px;

    border: 1px solid #d7e0e9;
    border-radius: 8px;

    background: #ffffff;

    color: #334b65;

    font-size: 13px;
    line-height: 1.35;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}


.runtime-multiselect-option:hover {
    border-color: #abc6df;
    background: #f7fbff;
}


.runtime-multiselect-option:focus-within {
    border-color: #176fd1;

    box-shadow:
        0 0 0 3px
        rgba(23, 111, 209, .08);
}


.runtime-multiselect-option:has(
    input:checked
) {
    border-color: #8bb9e3;

    background: #eef6fd;

    box-shadow:
        inset 0 0 0 1px
        rgba(23, 111, 209, .05);
}


.runtime-multiselect-option input[type="checkbox"] {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 0 9px 0 0;

    accent-color: #176fd1;
}


.runtime-multiselect-option span {
    min-width: 0;
}


/* ============================================================
   Erledigt-Schalter
   ============================================================ */

.checklist-control > .completed-control {
    display: flex;
    align-items: center;

    width: fit-content;

    margin-top: 11px;
    margin-left: auto;

    color: #65788d;

    font-size: 11px;
    font-weight: 600;

    cursor: pointer;
    user-select: none;
}


.checklist-control > .completed-control input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.completed-control-switch {
    position: relative;

    display: inline-block;
    flex: 0 0 auto;

    width: 34px;
    height: 19px;

    margin-right: 7px;

    border: 1px solid #c6d2dd;
    border-radius: 999px;

    background: #e7edf3;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


.completed-control-switch::after {
    content: "";

    position: absolute;

    top: 2px;
    left: 2px;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 1px 3px
        rgba(24, 51, 79, .24);

    transition:
        transform .15s ease;
}


.checklist-control > .completed-control input:checked
+ .completed-control-switch {
    border-color: #176fd1;
    background: #176fd1;
}


.checklist-control > .completed-control input:checked
+ .completed-control-switch::after {
    transform: translateX(15px);
}


.checklist-control > .completed-control input:focus-visible
+ .completed-control-switch {
    box-shadow:
        0 0 0 3px
        rgba(23, 111, 209, .13);
}


.checklist-control > .completed-control:hover
.completed-control-text {
    color: #25486a;
}


/* ============================================================
   Erledigter Prüfpunkt
   ============================================================ */

.checklist-item--done {
    background: #fafcfd;
}


.checklist-item--done:hover {
    background: #f7fafc;
}


.checklist-item--done
.checklist-label strong {
    color: #607489;
}


.checklist-item--done
.completed-control-text {
    color: #176bb8;

    font-weight: 700;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {

    .runtime-multiselect {
        grid-template-columns: 1fr;
    }

    .checklist-control > .completed-control {
        margin-left: 0;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.1 ENDE */


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2.2
   Finale Spaltenaufteilung
   ============================================================ */


/*
 * Gesamte Zeile:
 *
 * Beschreibung        Eingabebereich             Erledigt
 * ca. 36 %            ca. 48–50 %                ca. 14 %
 */

.checklist-item {
    grid-template-columns:
        minmax(340px, 36%)
        minmax(0, 1fr);

    column-gap: 24px;
}


/* Beschreibung erhält bewusst mehr Raum */

.checklist-label {
    padding-right: 14px;
}


/*
 * Der bisherige rechte Bereich wird intern noch einmal geteilt:
 *
 * Eingabe | Punkt erledigt
 */

.checklist-control {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px;

    column-gap: 20px;

    align-items: start;

    width: 100%;
    max-width: none;
}


/*
 * Alle normalen Feldinhalte stehen in der Eingabespalte.
 */

.checklist-control > * {
    grid-column: 1;
}


/*
 * "Punkt erledigt" steht auf derselben Höhe
 * ganz rechts.
 */

.checklist-control > .completed-control {
    grid-column: 2;
    grid-row: 1;

    align-self: center;
    justify-self: stretch;

    width: 100%;
    min-height: 42px;
    box-sizing: border-box;

    margin: 0;

    padding-left: 18px;

    border-left: 1px solid #e7edf3;

    white-space: nowrap;
}


/*
 * Mehrfachauswahl nutzt die Eingabespalte sinnvoll,
 * ohne übergroße Einzeloptionen.
 */

.runtime-multiselect {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    max-width: 100%;
}


/*
 * Zahl + Einheit ebenfalls nur innerhalb
 * des eigentlichen Eingabebereichs.
 */

.runtime-number-field {
    max-width: 100%;
}


/*
 * DATEI und BILD dürfen die verfügbare
 * Eingabespalte komplett nutzen.
 */

.checklist-item--datei
.checklist-control > input[type="file"],

.checklist-item--bild
.checklist-control > input[type="file"] {
    width: 100%;
}


/* ------------------------------------------------------------
   Elemente ohne "Punkt erledigt"
   ------------------------------------------------------------ */

.checklist-item--anleitung {
    grid-template-columns: 1fr;
}

.checklist-item--anleitung
.checklist-control {
    display: block;

    grid-column: 1 / -1;

    max-width: none;
}


.checklist-item--ueberschrift,
.checklist-item--trennlinie,
.checklist-item--warnung {
    grid-template-columns: 1fr;
}


.checklist-item--ueberschrift
.checklist-control,

.checklist-item--trennlinie
.checklist-control,

.checklist-item--warnung
.checklist-control {
    display: block;

    grid-column: 1 / -1;

    max-width: none;
}


/*
 * INFO besitzt eine Beschreibung, aber keinen
 * Erledigt-Schalter. Deshalb kein leerer
 * rechter Statusbereich.
 */

.checklist-item--info
.checklist-control {
    grid-template-columns: 1fr;
}


/* ------------------------------------------------------------
   Mittlere Bildschirmbreite
   ------------------------------------------------------------ */

@media (max-width: 1150px) {

    .checklist-item {
        grid-template-columns:
            minmax(280px, 34%)
            minmax(0, 1fr);

        column-gap: 20px;
    }

    .checklist-control {
        grid-template-columns:
            minmax(0, 1fr)
            160px;

        column-gap: 16px;
    }

}


/* ------------------------------------------------------------
   Tablet / Smartphone
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .checklist-item {
        grid-template-columns: 1fr;
    }

    .checklist-control {
        grid-template-columns: 1fr;

        row-gap: 10px;
    }

    .checklist-control > .completed-control {
        grid-column: 1;
        grid-row: auto;

        width: fit-content;

        padding-left: 0;

        border-left: 0;
    }

    .runtime-multiselect {
        grid-template-columns: 1fr;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.2 ENDE */


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2.3
   Vorgangskopf / Fortschritt
   ============================================================ */

.page-heading {
    margin-bottom: 18px;
}

.page-heading h1 {
    margin-bottom: 4px;
}

.page-heading p {
    margin: 0;

    color: #728198;

    font-size: 12px;
}


/* Drei kompakte Informationskarten */

.detail-summary {
    gap: 14px;

    margin-bottom: 18px;
}

.summary-card {
    min-height: 76px;
    box-sizing: border-box;

    padding: 14px 16px;

    border: 1px solid #e0e7ef;
    border-radius: 10px;

    background: #ffffff;
}

.summary-card > span,
.summary-card-topline > span {
    color: #74859a;

    font-size: 10px;
    font-weight: 600;
}

.summary-card > strong {
    display: block;

    margin-top: 3px;

    color: #102b49;

    font-size: 15px;
    line-height: 1.25;
}


/* Fortschrittskarte */

.summary-card--progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-card-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 12px;
}

.summary-card-topline strong {
    color: #102b49;

    font-size: 15px;
    line-height: 1;
}


/* Fortschrittsbalken */

.runtime-progress {
    overflow: hidden;

    width: 100%;
    height: 6px;

    margin-top: 10px;

    border-radius: 999px;

    background: #eaf0f6;
}

.runtime-progress-fill {
    height: 100%;

    border-radius: inherit;

    background: #176fd1;

    transition: width .25s ease;
}


/* Abschnittskopf etwas kompakter und klarer */

.checklist-section > .panel-header {
    min-height: 56px;
    box-sizing: border-box;

    padding: 15px 18px;

    border-bottom: 1px solid #e3eaf1;
}

.checklist-section > .panel-header h2 {
    margin: 0;

    color: #102b49;

    font-size: 14px;
    font-weight: 700;
}


/* Mobil */

@media (max-width: 760px) {

    .detail-summary {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 68px;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.3 ENDE */


/* NETSTYLE CHECKLISTEN-RUNTIME V2.4 START */


/* ============================================================
   Sticky Aktionsleiste
   ============================================================ */

.sticky-actions {
    position: sticky;

    bottom: 0;
    z-index: 30;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    min-height: 68px;
    box-sizing: border-box;

    margin-top: 18px;
    padding: 12px 0;

    border-top: 1px solid #dfe7ef;

    background:
        linear-gradient(
            to bottom,
            rgba(245, 248, 252, .90),
            rgba(245, 248, 252, .99) 32%
        );

    backdrop-filter: blur(8px);

    box-shadow:
        0 -8px 22px
        rgba(24, 51, 79, .035);
}


/* ============================================================
   Buttons innerhalb der Aktionsleiste
   ============================================================ */

.sticky-actions
.secondary-button,

.sticky-actions
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 96px;
    min-height: 42px;
    box-sizing: border-box;

    padding: 0 17px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease,
        transform .08s ease;
}


/* Zurück / Speichern */

.sticky-actions
.secondary-button {
    border: 1px solid #d5dfe9;

    background: #ffffff;

    color: #29435e;
}


.sticky-actions
.secondary-button:hover {
    border-color: #aec3d8;

    background: #f8fbfe;
}


.sticky-actions
.secondary-button:active {
    transform: translateY(1px);
}


/* Vorgang abschließen */

.sticky-actions
.primary-button {
    min-width: 168px;

    border: 1px solid #176fd1;

    background: #176fd1;

    color: #ffffff;

    box-shadow:
        0 3px 9px
        rgba(23, 111, 209, .14);
}


.sticky-actions
.primary-button:hover {
    border-color: #1262bc;

    background: #1262bc;

    box-shadow:
        0 4px 12px
        rgba(23, 111, 209, .19);
}


.sticky-actions
.primary-button:active {
    transform: translateY(1px);
}


/* Tastaturfokus */

.sticky-actions
.secondary-button:focus-visible,

.sticky-actions
.primary-button:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(23, 111, 209, .13);
}


/* ============================================================
   Kleine Bildschirme
   ============================================================ */

@media (max-width: 760px) {

    .sticky-actions {
        flex-wrap: wrap;

        gap: 8px;

        min-height: auto;

        padding: 10px 0;
    }

    .sticky-actions
    .secondary-button {
        flex: 1 1 100px;
    }

    .sticky-actions
    .primary-button {
        flex: 1 1 100%;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.4 ENDE */


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2.5
   Statusspalte + große BILD-Uploadfläche
   ============================================================ */


/* ------------------------------------------------------------
   Rechte Statusspalte
   ------------------------------------------------------------ */

.checklist-control {
    --runtime-status-width: 165px;
    --runtime-status-gap: 20px;

    position: relative;

    grid-template-columns:
        minmax(0, 1fr)
        var(--runtime-status-width);

    column-gap:
        var(--runtime-status-gap);
}


/*
 * Die Trennlinie gehört zur gesamten Statusspalte
 * und nicht mehr nur zum Schalter.
 */

.checklist-control:has(> .completed-control)::after {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    right: calc(
        var(--runtime-status-width)
        + 10px
    );

    width: 1px;

    background: #e4ebf2;

    pointer-events: none;
}


/*
 * Status bleibt immer in der ersten Eingabezeile.
 *
 * Auch bei Langtext, Upload und Bildvorschau
 * wandert der Schalter nicht nach unten.
 */

.checklist-control > .completed-control {
    grid-column: 2;
    grid-row: 1;

    align-self: center;
    justify-self: stretch;

    width: 100%;
    min-height: 42px;

    margin: 0;

    padding: 0 0 0 14px;

    border-left: 0;

    box-sizing: border-box;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   BILD Upload – äußerer Block
   ------------------------------------------------------------ */

.runtime-upload-block {
    grid-column: 1;

    width: 100%;
    min-width: 0;
}


/* ------------------------------------------------------------
   Große Uploadfläche
   ------------------------------------------------------------ */

.runtime-upload-zone {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 128px;

    box-sizing: border-box;

    padding: 20px 24px;

    overflow: hidden;

    border: 1px dashed #a9c8e6;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #fbfdff 0%,
            #f7fbff 100%
        );

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}


.runtime-upload-zone:hover {
    border-color: #5f9fd9;

    background:
        linear-gradient(
            180deg,
            #f9fcff 0%,
            #f1f7fd 100%
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(23, 111, 209, .035);
}


.runtime-upload-zone:focus-within {
    border-color: #176fd1;

    box-shadow:
        0 0 0 3px
        rgba(23, 111, 209, .09);
}


/*
 * Das echte File-Input liegt unsichtbar über der
 * gesamten Fläche.
 *
 * Dadurch funktionieren Klick und natives
 * Drag-and-Drop weiterhin direkt im Browser.
 */

.runtime-upload-input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    opacity: 0;

    cursor: pointer;
}


/* ------------------------------------------------------------
   Upload-Symbol
   ------------------------------------------------------------ */

.runtime-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    margin-right: 14px;

    border: 1px solid #cfe0f0;
    border-radius: 10px;

    background: #edf6fe;

    color: #176fd1;

    font-size: 25px;
    font-weight: 500;

    line-height: 1;
}


/* ------------------------------------------------------------
   Upload-Texte
   ------------------------------------------------------------ */

.runtime-upload-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}


.runtime-upload-content strong {
    color: #163654;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.35;
}


.runtime-upload-action {
    margin-top: 2px;

    color: #176fd1;

    font-size: 12px;
    font-weight: 600;
}


.runtime-upload-content small {
    margin-top: 5px;

    color: #798a9d;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.35;
}


/* ------------------------------------------------------------
   Vorhandenes Bild unter der Uploadfläche
   ------------------------------------------------------------ */

.runtime-upload-block
.runtime-image-preview {
    margin-top: 12px;
}


/*
 * Vorschau bewusst kompakt.
 * Das Original bleibt unverändert.
 */

.runtime-upload-block
.runtime-image-preview img {
    max-height: 320px;
}


/* ------------------------------------------------------------
   BILD-Zeile
   ------------------------------------------------------------ */

.checklist-item--bild
.checklist-control {
    align-items: start;
}


/*
 * Bei der großen Uploadfläche sitzt "Punkt erledigt"
 * auf Höhe des Uploadfeldes, aber nicht auf Höhe
 * einer darunter liegenden Vorschau.
 */

.checklist-item--bild
.completed-control {
    align-self: center;
}


/* ------------------------------------------------------------
   Mittlere Bildschirmbreite
   ------------------------------------------------------------ */

@media (max-width: 1150px) {

    .checklist-control {
        --runtime-status-width: 150px;
        --runtime-status-gap: 16px;
    }

    .checklist-control:has(> .completed-control)::after {
        right: calc(
            var(--runtime-status-width)
            + 8px
        );
    }

}


/* ------------------------------------------------------------
   Mobil: wieder untereinander
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .checklist-control {
        grid-template-columns: 1fr;

        row-gap: 10px;
    }

    .checklist-control:has(> .completed-control)::after {
        display: none;
    }

    .checklist-control > .completed-control {
        grid-column: 1;
        grid-row: auto;

        width: fit-content;

        padding-left: 0;
    }

    .runtime-upload-zone {
        min-height: 110px;

        padding: 16px;
    }

    .runtime-upload-icon {
        width: 38px;
        height: 38px;

        margin-right: 11px;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.5 ENDE */


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2.6
   DATEI-Dropzone / Statusausrichtung
   ============================================================ */


/* ------------------------------------------------------------
   Status immer oben am eigentlichen Eingabebereich
   ------------------------------------------------------------ */

.checklist-control > .completed-control {
    align-self: start;

    display: flex;
    align-items: center;

    min-height: 42px;

    padding-top: 0;
}


/*
 * Bei BILD und DATEI etwas Abstand nach oben,
 * damit der Status optisch auf Höhe des
 * Uploadbereichs sitzt.
 */

.checklist-item--bild
.checklist-control > .completed-control,

.checklist-item--datei
.checklist-control > .completed-control {
    padding-top: 14px;
}


/* ------------------------------------------------------------
   DATEI – kompakte Dropzone
   ------------------------------------------------------------ */

.runtime-upload-zone--file {
    justify-content: flex-start;

    min-height: 86px;

    padding: 14px 18px;
}


/* etwas kleineres Symbol als beim Bild */

.runtime-upload-zone--file
.runtime-upload-icon {
    width: 38px;
    height: 38px;

    margin-right: 12px;

    font-size: 22px;
}


/* ------------------------------------------------------------
   Bereits hochgeladene Datei
   ------------------------------------------------------------ */

.runtime-file-existing {
    display: flex;
    align-items: center;

    gap: 8px;

    width: fit-content;
    max-width: 100%;

    margin-top: 9px;
    padding: 7px 10px;

    border: 1px solid #dce5ee;
    border-radius: 7px;

    background: #f8fafc;

    font-size: 11px;
}


.runtime-file-existing-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 5px;

    background: #eaf3fb;

    color: #176fd1;

    font-weight: 700;
}


.runtime-file-existing a {
    color: #176bb8;

    font-weight: 600;

    text-decoration: none;
}


.runtime-file-existing a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .checklist-item--bild
    .checklist-control > .completed-control,

    .checklist-item--datei
    .checklist-control > .completed-control {
        padding-top: 0;
    }

    .runtime-upload-zone--file {
        min-height: 78px;

        padding: 12px 14px;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.6 ENDE */


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2.7
   Echte DATEI-/BILD-Dropzones
   ============================================================ */

.runtime-upload-block {
    width: 100%;
    min-width: 0;
}


/* Basis */

.runtime-upload-zone {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    box-sizing: border-box;

    padding: 18px 22px;

    border: 1px dashed #a8c7e5;
    border-radius: 10px;

    background: #f9fcff;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease,
        transform .1s ease;
}


/* DATEI bewusst kompakter */

.runtime-upload-zone--file {
    min-height: 90px;
}


/* BILD größer wie freigegebene Visualisierung */

.runtime-upload-zone--image {
    min-height: 132px;
}


/* Hover */

.runtime-upload-zone:hover {
    border-color: #6da7da;

    background: #f4f9fe;
}


/* Tatsächliches Drag&Drop */

.runtime-upload-zone.is-dragover {
    border-color: #176fd1;

    background: #eaf4fe;

    box-shadow:
        inset 0 0 0 2px
        rgba(23, 111, 209, .08),
        0 0 0 3px
        rgba(23, 111, 209, .08);

    transform: translateY(-1px);
}


/* Datei gewählt */

.runtime-upload-zone.has-file {
    border-style: solid;
    border-color: #8bb9e3;

    background: #f4f9fe;
}


/*
 * Echtes File-Input bleibt technisch vorhanden,
 * ist aber über die gesamte Dropzone unsichtbar.
 */

.runtime-upload-input {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    opacity: 0;

    cursor: pointer;
}


/* Symbol */

.runtime-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    margin-right: 14px;

    border: 1px solid #cee0f1;
    border-radius: 10px;

    background: #eaf4fe;

    color: #176fd1;

    font-size: 25px;
    font-weight: 600;
}


/* Texte */

.runtime-upload-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}


.runtime-upload-content strong {
    color: #173650;

    font-size: 13px;
    font-weight: 700;
}


.runtime-upload-action {
    margin-top: 2px;

    color: #176fd1;

    font-size: 12px;
    font-weight: 600;
}


.runtime-upload-content small {
    margin-top: 5px;

    color: #788a9d;

    font-size: 10px;
}


/* Gewählte Datei */

.runtime-upload-selected {
    display: block;

    max-width: 100%;

    margin-top: 8px;

    overflow: hidden;

    color: #244b70;

    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.runtime-upload-selected[hidden] {
    display: none;
}


/* bestehende Datei */

.runtime-file-existing {
    display: flex;
    align-items: center;

    gap: 8px;

    width: fit-content;

    margin-top: 9px;
    padding: 7px 10px;

    border: 1px solid #dce5ee;
    border-radius: 7px;

    background: #f8fafc;

    font-size: 11px;
}


.runtime-file-existing a {
    color: #176bb8;

    font-weight: 600;
    text-decoration: none;
}


/* Mobil */

@media (max-width: 760px) {

    .runtime-upload-zone--file,
    .runtime-upload-zone--image {
        min-height: 105px;

        padding: 15px;
    }

    .runtime-upload-icon {
        width: 38px;
        height: 38px;

        margin-right: 11px;
    }

}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.7 ENDE */


/* ============================================================
   NETSTYLE CHECKLISTEN-RUNTIME V2.8
   Anhänge – Vorschau / Öffnen / Löschen
   ============================================================ */

.runtime-upload-pending {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-top: 10px;
    padding: 10px;

    border: 1px solid #d9e4ee;
    border-radius: 9px;

    background: #f8fbfe;
}

.runtime-upload-pending[hidden] {
    display: none;
}


/* Bild vor dem Speichern */

.runtime-upload-local-image-link {
    flex: 0 0 auto;

    display: block;
}

.runtime-upload-local-image {
    display: block;

    width: 150px;
    height: 100px;

    object-fit: contain;

    border: 1px solid #dce5ee;
    border-radius: 7px;

    background: #fff;
}


/* Datei-/Bildinformationen */

.runtime-upload-pending-info {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding-top: 2px;
}

.runtime-upload-pending-info strong {
    max-width: 100%;

    overflow: hidden;

    color: #173650;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.runtime-upload-pending-info > span {
    margin-top: 3px;

    color: #75879a;

    font-size: 10px;
}


/* Aktionen */

.runtime-upload-pending-actions,
.runtime-image-preview-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 13px;

    margin-top: 8px;
}

.runtime-upload-pending-actions a,
.runtime-image-preview-actions a,
.runtime-file-existing a {
    color: #176bb8;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.runtime-upload-pending-actions a:hover,
.runtime-image-preview-actions a:hover,
.runtime-file-existing a:hover {
    text-decoration: underline;
}


/* Löschen bewusst als sekundäre rote Textaktion */

.runtime-upload-clear,
.runtime-attachment-delete {
    padding: 0;

    border: 0;

    background: transparent;

    color: #b23b3b;

    font: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.runtime-upload-clear:hover,
.runtime-attachment-delete:hover {
    text-decoration: underline;
}


/* Gespeicherte Datei */

.runtime-file-existing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    width: fit-content;

    margin-top: 10px;
    padding: 8px 11px;

    border: 1px solid #dce5ee;
    border-radius: 8px;

    background: #f8fafc;
}


/* NETSTYLE CHECKLISTEN-RUNTIME V2.8 ENDE */


/* ============================================================
   CHECKLISTEN-RUNTIME V2.9
   Mehrfach-Anhänge
   ============================================================ */

.runtime-upload-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 8px;

    color: #6b7e90;

    font-size: 11px;
}

.runtime-upload-status strong {
    color: #314b63;
    font-size: 11px;
}


.runtime-attachment-list {
    display: grid;
    grid-template-columns: 1fr;

    gap: 8px;

    margin-top: 10px;
}

.runtime-attachment-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-width: 0;

    padding: 10px 12px;

    border: 1px solid #dce5ee;
    border-radius: 8px;

    background: #f8fafc;
}

.runtime-attachment-card-main {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;
}

.runtime-attachment-icon {
    flex: 0 0 auto;

    color: #176bb8;

    font-size: 15px;
}

.runtime-attachment-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.runtime-attachment-info strong {
    overflow: hidden;

    color: #173650;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.runtime-attachment-info span {
    margin-top: 2px;

    color: #77899a;

    font-size: 10px;
}

.runtime-attachment-actions {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 13px;
}

.runtime-attachment-actions a {
    color: #176bb8;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.runtime-attachment-actions a:hover {
    text-decoration: underline;
}


/* Gespeicherte Bilder */

.runtime-image-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(165px, 1fr)
        );

    gap: 12px;

    margin-top: 10px;
}

.runtime-image-card {
    min-width: 0;

    padding: 8px;

    border: 1px solid #dce5ee;
    border-radius: 9px;

    background: #f8fafc;
}

.runtime-image-card-preview {
    display: block;

    overflow: hidden;

    width: 100%;
    height: 115px;

    border: 1px solid #e2e8ef;
    border-radius: 7px;

    background: #fff;
}

.runtime-image-card-preview img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.runtime-image-card-info {
    display: flex;
    flex-direction: column;

    min-width: 0;

    margin-top: 7px;
}

.runtime-image-card-info strong {
    overflow: hidden;

    color: #173650;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.runtime-image-card-info span {
    margin-top: 2px;

    color: #788a9b;

    font-size: 10px;
}


/* Noch nicht gespeicherte Mehrfachauswahl */

.runtime-upload-pending-list {
    display: grid;
    grid-template-columns: 1fr;

    gap: 8px;

    margin-top: 10px;
}

.runtime-upload-pending-card {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;

    padding: 9px 10px;

    border: 1px dashed #b9ccdc;
    border-radius: 8px;

    background: #f8fbfe;
}

.runtime-upload-pending-card--image {
    align-items: flex-start;
}

.runtime-upload-pending-card
.runtime-upload-local-image {
    width: 110px;
    height: 75px;
}


/* Kleine Displays */

@media (max-width: 760px) {

    .runtime-attachment-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .runtime-attachment-actions {
        width: 100%;
    }

    .runtime-image-grid {
        grid-template-columns: 1fr;
    }
}

/* CHECKLISTEN-RUNTIME V2.9 ENDE */


/* ============================================================
   BENUTZER / PROFILBILD
   ============================================================ */

.avatar {
    overflow: hidden;
    flex: 0 0 auto;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.profile-image-editor {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 24px;
    align-items: center;

    margin-bottom: 28px;
    padding-bottom: 24px;

    border-bottom: 1px solid var(--line);
}


.profile-image-preview {
    width: 96px;
    height: 96px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 50%;

    background: var(--navy);
    color: #fff;

    font-size: 25px;
    font-weight: 700;
}


.profile-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.profile-image-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.profile-image-fields input[type="file"] {
    min-height: auto;
    padding: 9px;
}


.profile-delete-control {
    width: fit-content;
}


.user-active-field {
    justify-content: end;
    min-height: 64px;
}


.user-password-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--line);
}


.user-password-field {
    width: 100%;
}


.user-list-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}


.table-avatar {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 34px;

    overflow: hidden;

    border-radius: 50%;

    background: var(--navy);
    color: #fff;

    font-size: 10px;
    font-weight: 700;
}


.table-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media (max-width: 700px) {

    .profile-image-editor {
        grid-template-columns: 1fr;
    }

}


/* ============================================================
   BENUTZER PROFIL – FEINSCHLIFF
   ============================================================ */

.profile-image-preview span {
    line-height: 1;
}

.profile-image-fields input[type="file"] {
    width: 100%;

    border: 1px solid #d8e0ea;
    border-radius: 8px;

    background: #fff;

    color: var(--text);
}

.profile-image-fields input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;

    border: 0;
    border-right: 1px solid #d8e0ea;

    background: #f4f7fb;
    color: #203650;

    cursor: pointer;

    font-weight: 600;
}

.profile-image-fields input[type="file"]::file-selector-button:hover {
    background: #eaf1f9;
}


/* ============================================================
   PROFILBILD – DROPZONE
   ============================================================ */

.profile-upload-input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;
}


.profile-upload-dropzone {
    width: 100%;
    min-height: 126px;

    display: flex;
    align-items: center;
    gap: 18px;

    box-sizing: border-box;

    padding: 20px 24px;

    border: 2px dashed #c7d5e5;
    border-radius: 10px;

    background: #f8fafc;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        box-shadow .15s ease;
}


.profile-upload-dropzone:hover,
.profile-upload-dropzone:focus-visible {
    border-color: #176fd1;

    background: #f2f7fd;

    outline: none;

    box-shadow:
        0 0 0 3px rgba(23,111,209,.07);
}


.profile-upload-dropzone.is-dragover {
    border-color: #176fd1;

    background: #eaf3fc;

    box-shadow:
        inset 0 0 0 1px rgba(23,111,209,.15);
}


.profile-upload-dropzone-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 46px;

    border-radius: 50%;

    background: #e6f0fc;
    color: #176fd1;

    font-size: 24px;
    font-weight: 500;
}


.profile-upload-dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 0;
}


.profile-upload-dropzone-text strong {
    color: #203650;

    font-size: 13px;
}


.profile-upload-dropzone-text span {
    color: #63758a;

    font-size: 12px;
}


.profile-upload-dropzone-text small {
    margin-top: 3px;

    color: #8492a3;

    font-size: 11px;
}


.profile-upload-selected {
    min-width: 220px;
    max-width: 360px;

    margin-left: auto;
    padding: 11px 13px;

    box-sizing: border-box;

    border: 1px solid #d5e1ef;
    border-radius: 8px;

    background: #fff;
}


.profile-upload-selected strong,
.profile-upload-selected span {
    display: block;
}


.profile-upload-selected strong {
    overflow: hidden;

    color: #203650;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.profile-upload-selected span {
    margin-top: 3px;

    color: #7b8b9d;

    font-size: 11px;
}


.profile-upload-remove {
    margin-top: 7px;
    padding: 0;

    border: 0;

    background: transparent;
    color: #176fd1;

    cursor: pointer;

    font-size: 11px;
    font-weight: 600;
}


.profile-upload-remove:hover {
    text-decoration: underline;
}


@media (max-width: 800px) {

    .profile-upload-dropzone {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-upload-selected {
        width: 100%;
        min-width: 0;
        max-width: none;

        margin-left: 0;
    }

}


/* ============================================================
   VORGANG – NUR-LESEMODUS
   ============================================================ */

.runtime-readonly-notice {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 18px;
    padding: 13px 16px;

    border: 1px solid #cfe0f4;
    border-radius: 9px;

    background: #f2f7fd;
    color: #294d78;
}


.runtime-readonly-notice-icon {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    flex: 0 0 32px;

    border-radius: 50%;

    background: #dfeefa;
    color: #176fd1;

    font-size: 15px;
}


.runtime-readonly-notice strong,
.runtime-readonly-notice span {
    display: block;
}


.runtime-readonly-notice strong {
    margin-bottom: 2px;

    color: #1d426e;

    font-size: 13px;
}


.runtime-readonly-notice span {
    color: #607994;

    font-size: 12px;
}


.runtime-permission-fieldset {
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
}


.runtime-permission-fieldset:disabled {
    opacity: 1;
}


.runtime-permission-fieldset:disabled .portal-input {
    opacity: 1;

    background: #f7f9fc;
    color: #34485f;

    -webkit-text-fill-color: #34485f;

    cursor: default;
}


.runtime-permission-fieldset:disabled
.runtime-checkbox,
.runtime-permission-fieldset:disabled
.runtime-multiselect-option {
    cursor: default;
}


.runtime-readonly-completion {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    margin-top: 12px;
    padding: 0 10px;

    border: 1px solid #dce3eb;
    border-radius: 999px;

    background: #f6f8fa;
    color: #758395;

    font-size: 11px;
    font-weight: 700;
}


.runtime-readonly-completion--done {
    border-color: #cfe6d6;

    background: #eef8f1;
    color: #33734a;
}


/* ============================================================
   DASHBOARD – AKTIVITÄTEN / MANAGEMENT
   ============================================================ */

.activity-user {
    display: block;

    margin-top: 4px;

    color: #425a74;

    font-size: 11px;
    font-weight: 600;
}


.activity-user + small {
    display: block;

    margin-top: 3px;
}


/* ============================================================
   TABELLEN – AKTIONSBUTTON
   ============================================================ */

.table-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 0 12px;

    border: 1px solid #cbd9e9;
    border-radius: 7px;

    background: #ffffff;
    color: #176fd1;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


.table-action-button:hover {
    border-color: #176fd1;

    background: #f2f7fd;

    text-decoration: none;
}


.table-action-button:focus-visible {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(23,111,209,.10);
}


/* ============================================================
   DASHBOARD – AKTIVITÄTENKONTEXT
   ============================================================ */

.activity-context {
    display: block;

    margin-top: 5px;

    color: #718096;

    font-size: 10px;
    line-height: 1.45;
}


.activity-context-link {
    color: #315a87;

    font-weight: 700;

    text-decoration: none;
}


.activity-context-link:hover {
    text-decoration: underline;
}


.activity-user {
    display: block;

    margin-top: 4px;

    color: #425a74;

    font-size: 11px;
    font-weight: 600;
}


.activity-user + small {
    display: block;

    margin-top: 3px;
}


/* ============================================================
   VORGÄNGE – SORTIERBARE TABELLE
   ============================================================ */

.table-sort {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: inherit;

    text-decoration: none;
}


.table-sort span {
    color: #9aa8b8;

    font-size: 11px;
}


.table-sort:hover {
    color: var(--blue);

    text-decoration: none;
}


.table-sort:hover span,
.table-sort.is-active span {
    color: var(--blue);
}


.table-sort.is-active {
    color: #324d6b;
}


/* ============================================================
   VORGÄNGE – DIREKTE TABELLENFILTER
   ============================================================ */

.table-filter-link {
    color: inherit;

    text-decoration: none;

    border-bottom:
        1px dotted transparent;
}


.table-filter-link:hover {
    color: var(--blue);

    border-bottom-color:
        rgba(23, 111, 209, .45);
}


.status-filter-link {
    display: inline-flex;

    text-decoration: none;
}


.status-filter-link:hover {
    text-decoration: none;
}


.status-filter-link:hover .status-badge {
    box-shadow:
        0 0 0 2px rgba(23, 111, 209, .10);
}

/* ============================================================
   VORGÄNGE – KOMPAKTE FILTERLEISTE / RESET
   ============================================================ */

.list-filter--workorders {
    display: grid !important;

    grid-template-columns:
        minmax(320px, 1fr)
        minmax(170px, 220px)
        max-content
        max-content !important;

    align-items: center;

    gap: 10px;
}


.list-filter--workorders
.workorder-filter-search {
    min-width: 0;
}


.list-filter--workorders
.workorder-filter-select {
    min-width: 0;
}


.list-filter--workorders
.workorder-filter-reset {
    grid-column: auto !important;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    justify-self: start;

    width: auto !important;
    min-width: 0 !important;

    height: 40px;

    margin: 0 !important;

    padding: 0 12px !important;

    border: 1px solid #d8e0e9;

    border-radius: 8px;

    background: #ffffff;

    color: #66758a;

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    box-shadow: none;
}


.list-filter--workorders
.workorder-filter-reset:hover {
    border-color: var(--blue);

    color: var(--blue);

    background: #f7faff;

    text-decoration: none;
}


@media (max-width: 800px) {

    .list-filter--workorders {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(150px, 190px)
            max-content
            max-content !important;
    }

}


@media (max-width: 650px) {

    .list-filter--workorders {
        grid-template-columns:
            1fr
            1fr !important;
    }

    .list-filter--workorders
    .workorder-filter-search {
        grid-column: 1 / -1;
    }

}


@media (max-width: 480px) {

    .list-filter--workorders {
        grid-template-columns:
            1fr !important;
    }

    .list-filter--workorders
    .workorder-filter-search {
        grid-column: auto;
    }

    .list-filter--workorders
    .workorder-filter-reset {
        justify-self: start;
    }

}


/* ============================================================
   VORGANG – READONLY ERLEDIGT-SCHALTER
   ============================================================ */

.completed-control--readonly {
    cursor: default;
}

.completed-control--readonly
.completed-control-switch {
    cursor: default;
}

.completed-control--readonly
.completed-control-text {
    cursor: default;
}


/* ============================================================
   DASHBOARD – HEADER-AKTIONEN
   ============================================================ */

.dashboard-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    flex-wrap: wrap;
}


.dashboard-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-width: 0;

    min-height: 36px;

    margin: 0;

    padding: 0 13px;

    white-space: nowrap;
}


@media (max-width: 650px) {

    .dashboard-header-actions {
        width: 100%;

        justify-content: flex-start;

        margin-top: 10px;
    }

}


/* ============================================================
   DASHBOARD – HEADER-BUTTONS EINHEITLICH
   ============================================================ */

.dashboard-header-actions
.dashboard-header-button {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;

    min-height: 36px;
    height: 36px;

    padding: 0 10px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    font-size: 12px;
    line-height: 1;

    white-space: nowrap;
}


/* ============================================================
   GENERISCHE LISTEN – KOPFAKTIONEN
   ============================================================ */

.page-heading--with-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;
}


.list-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;
}


.list-header-button {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;

    height: 36px;
    min-height: 36px;

    padding: 0 10px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    font-size: 12px;
    line-height: 1;

    white-space: nowrap;
}


@media (max-width: 650px) {

    .page-heading--with-actions {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* === NETSTYLE PORTAL UI FINAL START === */

:root {
    --portal-row-button-width: 92px;
    --portal-row-button-height: 32px;

    --portal-toolbar-button-width: 92px;
    --portal-toolbar-height: 40px;

    --portal-button-gap: 8px;
    --portal-right-edge: 14px;
}


/* ------------------------------------------------------------
   ANLEGEN
   ------------------------------------------------------------ */

.portal-create-button {
    display: inline-flex !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 36px !important;
    min-height: 36px !important;

    padding: 0 14px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    white-space: nowrap !important;
}

.page-heading
.portal-create-button {
    margin-left: auto !important;
    margin-right:
        var(
            --portal-right-edge
        ) !important;
}


/* ------------------------------------------------------------
   LISTENFILTER
   ------------------------------------------------------------ */

.enterprise-list-toolbar {
    display: flex !important;
    align-items: center !important;

    gap:
        var(
            --portal-button-gap
        ) !important;

    padding:
        11px
        var(--portal-right-edge)
        11px
        14px !important;
}

.enterprise-list-search {
    position: relative;

    min-width: 0 !important;

    flex: 1 1 auto !important;
}

.enterprise-list-search > span {
    position: absolute;

    top: 50%;
    left: 13px;

    transform:
        translateY(-50%);

    color: #8390a2;

    pointer-events: none;
}

.enterprise-list-search input {
    box-sizing: border-box !important;

    width: 100% !important;

    height:
        var(
            --portal-toolbar-height
        ) !important;

    min-height:
        var(
            --portal-toolbar-height
        ) !important;

    padding-left: 37px !important;
}

.enterprise-list-toolbar select {
    height:
        var(
            --portal-toolbar-height
        ) !important;

    min-height:
        var(
            --portal-toolbar-height
        ) !important;
}

.enterprise-filter-button,
.enterprise-reset-button,
.knowledge-filter-button,
.knowledge-reset-button,
.workorder-filter-reset {
    display: inline-flex !important;

    width:
        var(
            --portal-toolbar-button-width
        ) !important;

    min-width:
        var(
            --portal-toolbar-button-width
        ) !important;

    max-width:
        var(
            --portal-toolbar-button-width
        ) !important;

    height:
        var(
            --portal-toolbar-height
        ) !important;

    min-height:
        var(
            --portal-toolbar-height
        ) !important;

    padding: 0 7px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    font-size: 11px !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}


/* ------------------------------------------------------------
   TABELLENAKTIONEN
   ------------------------------------------------------------ */

.enterprise-row-button,
.knowledge-action-button,
.table-action-button {
    display: inline-flex !important;

    width:
        var(
            --portal-row-button-width
        ) !important;

    min-width:
        var(
            --portal-row-button-width
        ) !important;

    max-width:
        var(
            --portal-row-button-width
        ) !important;

    height:
        var(
            --portal-row-button-height
        ) !important;

    min-height:
        var(
            --portal-row-button-height
        ) !important;

    padding: 0 7px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    font-size: 10px !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}

.enterprise-row-actions,
.knowledge-row-actions,
.action-buttons,
.table-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap:
        var(
            --portal-button-gap
        ) !important;

    flex-wrap: nowrap !important;

    margin: 0 !important;
}

.enterprise-row-actions form,
.knowledge-row-actions form,
.enterprise-actions-table
tbody td:last-child > form {
    display: inline-flex !important;

    margin: 0 !important;
}

.enterprise-actions-table
thead th:last-child {
    padding-right:
        var(
            --portal-right-edge
        ) !important;

    text-align: center !important;

    white-space: nowrap !important;
}

.enterprise-actions-table
tbody td:last-child {
    padding-right:
        var(
            --portal-right-edge
        ) !important;

    text-align: right !important;

    white-space: nowrap !important;
}

.enterprise-actions-table.action-count-1
thead th:last-child,
.enterprise-actions-table.action-count-1
tbody td:last-child {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.enterprise-actions-table.action-count-2
thead th:last-child,
.enterprise-actions-table.action-count-2
tbody td:last-child {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.enterprise-actions-table.action-count-3
thead th:last-child,
.enterprise-actions-table.action-count-3
tbody td:last-child {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .enterprise-list-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .enterprise-filter-button,
    .enterprise-reset-button {
        width: 100% !important;
        max-width: none !important;
    }

    .page-heading
    .portal-create-button {
        margin-right: 0 !important;
    }
}

/* === NETSTYLE PORTAL UI FINAL END === */


/* === NETSTYLE PORTAL UI FINAL START === */

:root {
    --portal-row-button-width: 92px;
    --portal-row-button-height: 32px;

    --portal-toolbar-button-width: 92px;
    --portal-toolbar-height: 40px;

    --portal-button-gap: 8px;
    --portal-right-edge: 14px;
}


/* ------------------------------------------------------------
   ANLEGEN
   ------------------------------------------------------------ */

.portal-create-button {
    display: inline-flex !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 36px !important;
    min-height: 36px !important;

    padding: 0 14px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    white-space: nowrap !important;
}

.page-heading
.portal-create-button {
    margin-left: auto !important;
    margin-right:
        var(
            --portal-right-edge
        ) !important;
}


/* ------------------------------------------------------------
   LISTENFILTER
   ------------------------------------------------------------ */

.enterprise-list-toolbar {
    display: flex !important;
    align-items: center !important;

    gap:
        var(
            --portal-button-gap
        ) !important;

    padding:
        11px
        var(--portal-right-edge)
        11px
        14px !important;
}

.enterprise-list-search {
    position: relative;

    min-width: 0 !important;

    flex: 1 1 auto !important;
}

.enterprise-list-search > span {
    position: absolute;

    top: 50%;
    left: 13px;

    transform:
        translateY(-50%);

    color: #8390a2;

    pointer-events: none;
}

.enterprise-list-search input {
    box-sizing: border-box !important;

    width: 100% !important;

    height:
        var(
            --portal-toolbar-height
        ) !important;

    min-height:
        var(
            --portal-toolbar-height
        ) !important;

    padding-left: 37px !important;
}

.enterprise-list-toolbar select {
    height:
        var(
            --portal-toolbar-height
        ) !important;

    min-height:
        var(
            --portal-toolbar-height
        ) !important;
}

.enterprise-filter-button,
.enterprise-reset-button,
.knowledge-filter-button,
.knowledge-reset-button,
.workorder-filter-reset {
    display: inline-flex !important;

    width:
        var(
            --portal-toolbar-button-width
        ) !important;

    min-width:
        var(
            --portal-toolbar-button-width
        ) !important;

    max-width:
        var(
            --portal-toolbar-button-width
        ) !important;

    height:
        var(
            --portal-toolbar-height
        ) !important;

    min-height:
        var(
            --portal-toolbar-height
        ) !important;

    padding: 0 7px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    font-size: 11px !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}


/* ------------------------------------------------------------
   TABELLENAKTIONEN
   ------------------------------------------------------------ */

.enterprise-row-button,
.knowledge-action-button,
.table-action-button {
    display: inline-flex !important;

    width:
        var(
            --portal-row-button-width
        ) !important;

    min-width:
        var(
            --portal-row-button-width
        ) !important;

    max-width:
        var(
            --portal-row-button-width
        ) !important;

    height:
        var(
            --portal-row-button-height
        ) !important;

    min-height:
        var(
            --portal-row-button-height
        ) !important;

    padding: 0 7px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    font-size: 10px !important;

    line-height: 1 !important;

    white-space: nowrap !important;
}

.enterprise-row-actions,
.knowledge-row-actions,
.action-buttons,
.table-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap:
        var(
            --portal-button-gap
        ) !important;

    flex-wrap: nowrap !important;

    margin: 0 !important;
}

.enterprise-row-actions form,
.knowledge-row-actions form,
.enterprise-actions-table
tbody td:last-child > form {
    display: inline-flex !important;

    margin: 0 !important;
}

.enterprise-actions-table
thead th:last-child {
    padding-right:
        var(
            --portal-right-edge
        ) !important;

    text-align: center !important;

    white-space: nowrap !important;
}

.enterprise-actions-table
tbody td:last-child {
    padding-right:
        var(
            --portal-right-edge
        ) !important;

    text-align: right !important;

    white-space: nowrap !important;
}

.enterprise-actions-table.action-count-1
thead th:last-child,
.enterprise-actions-table.action-count-1
tbody td:last-child {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.enterprise-actions-table.action-count-2
thead th:last-child,
.enterprise-actions-table.action-count-2
tbody td:last-child {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
}

.enterprise-actions-table.action-count-3
thead th:last-child,
.enterprise-actions-table.action-count-3
tbody td:last-child {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
}


/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .enterprise-list-toolbar {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    .enterprise-filter-button,
    .enterprise-reset-button {
        width: 100% !important;
        max-width: none !important;
    }

    .page-heading
    .portal-create-button {
        margin-right: 0 !important;
    }
}

/* === NETSTYLE PORTAL UI FINAL END === */

/* === NETSTYLE UI FINISH 20260911 CUSTOMERS START === */
.customer-overview-table {
    min-width: 1120px;
}

.customer-primary-cell,
.customer-contact-cell,
.customer-location-cell {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.customer-primary-cell strong,
.customer-contact-cell strong,
.customer-location-cell strong {
    color: #1f3450;
    font-size: 11px;
}

.customer-primary-cell span,
.customer-location-cell span {
    color: #7a8aa0;
    font-size: 10px;
}

.customer-contact-cell a {
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #4e6682;
    font-size: 10px;
    text-decoration: none;
}

.customer-contact-cell a:hover {
    color: #1769d2;
    text-decoration: underline;
}

.customer-count-badge {
    display: inline-flex;
    min-width: 30px;
    height: 26px;
    padding: 0 9px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf4ff;
    color: #1769d2;
    font-size: 11px;
    font-weight: 750;
}

.customer-action-column {
    width: 112px;
    min-width: 112px;
    text-align: right;
}

.customer-action-button {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    justify-content: center !important;
}
/* === NETSTYLE UI FINISH 20260911 CUSTOMERS END === */

/* === NETSTYLE FINAL DASHBOARD FUNCTION 20260911 START === */
.categories-panel .panel-header {
    align-items: center;
}

.dashboard-category-all-button {
    min-width: 118px;
}

.dashboard-category-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease,
        background .16s ease;
}

.dashboard-category-link:hover {
    border-color: #b8ccec;
    background: #fbfdff;
    box-shadow: 0 8px 22px rgba(24, 62, 112, .08);
    transform: translateY(-1px);
}

.dashboard-category-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.dashboard-category-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dashboard-category-copy > strong {
    color: var(--text);
}

.dashboard-category-copy > span {
    color: var(--muted);
}

.dashboard-category-copy > small {
    margin-top: 5px;
    color: var(--blue);
    font-weight: 700;
    font-size: 11px;
}

.dashboard-category-filter-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 18px;
    padding: 16px 18px;
}

.dashboard-category-filter-note > div {
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-width: 0;
}

.dashboard-category-filter-note strong {
    color: var(--text);
}

.dashboard-category-filter-note > div > span:last-child {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-category-filter-label,
.template-category-filter-status > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.template-category-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 14px;
}

.template-category-filter .enterprise-list-toolbar {
    flex: 1 1 auto;
}

.template-category-select {
    min-width: 260px;
    max-width: 420px;
}

.template-category-filter-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .categories-panel .panel-header,
    .dashboard-category-filter-note,
    .template-category-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-category-all-button {
        width: 100%;
    }

    .dashboard-category-filter-note > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .template-category-select {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .template-category-filter-status {
        align-items: flex-start;
    }
}
/* === NETSTYLE FINAL DASHBOARD FUNCTION 20260911 END === */

/* === NETSTYLE PAGEWISE DESIGN FIX 02B START === */
:root {
    /*
     * Verbindlicher Standard für Aktionen IN Tabellenzeilen.
     * Bewusst kompakter als primäre Seiten-/Toolbar-Buttons.
     */
    --portal-row-action-width: 88px;
    --portal-row-action-height: 32px;

    /*
     * Aktionsspaltenbreiten passend zu 1/2/3 kompakten Row-Actions.
     * Dadurch werden keine 196/376/556 px mehr für kleine Zeilenaktionen
     * reserviert.
     */
    --portal-action-count-1-width: 112px;
    --portal-action-count-2-width: 208px;
    --portal-action-count-3-width: 304px;
}


/* ------------------------------------------------------------
   Suchbare Kundenwahl
   ------------------------------------------------------------ */

.customer-combobox {
    position: relative;
    width: 100%;
    min-width: 0;
}

.customer-combobox-native {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.customer-combobox-input {
    width: 100%;
}

.customer-combobox-list {
    position: absolute;
    z-index: 80;
    top: calc(100% + 5px);
    left: 0;
    right: 0;

    max-height: 320px;
    overflow-y: auto;

    padding: 5px;

    border: 1px solid #d7e0ec;
    border-radius: 9px;

    background: #fff;

    box-shadow:
        0 12px 30px
        rgba(22, 48, 82, .14);
}

.customer-combobox-option {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 36px;

    padding: 8px 10px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #263a54;

    font: inherit;
    font-size: 12px;

    text-align: left;
    cursor: pointer;
}

.customer-combobox-option:hover,
.customer-combobox-option.is-active {
    background: #eef5ff;
    color: #145fb8;
}

.customer-combobox-empty {
    padding: 12px 10px;
    color: #72839a;
    font-size: 11px;
}


/* ------------------------------------------------------------
   Tabellenzeilen-Aktionen – EIN verbindlicher Standard
   ------------------------------------------------------------ */

.enterprise-row-button,

.enterprise-actions-table
tbody td:last-child
> a,

.enterprise-actions-table
tbody td:last-child
> button {
    width:
        var(
            --portal-row-action-width
        ) !important;

    min-width:
        var(
            --portal-row-action-width
        ) !important;

    max-width:
        var(
            --portal-row-action-width
        ) !important;

    height:
        var(
            --portal-row-action-height
        ) !important;

    min-height:
        var(
            --portal-row-action-height
        ) !important;

    padding: 0 8px !important;

    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    line-height: 1 !important;
    white-space: nowrap !important;
}


/* Vorgangslisten: explizite Aktion rechts */

.workorder-list-table
.workorder-action-cell {
    text-align: right !important;
}

.workorder-list-table
.workorder-open-button {
    width:
        var(
            --portal-row-action-width
        ) !important;

    min-width:
        var(
            --portal-row-action-width
        ) !important;

    max-width:
        var(
            --portal-row-action-width
        ) !important;

    height:
        var(
            --portal-row-action-height
        ) !important;

    min-height:
        var(
            --portal-row-action-height
        ) !important;

    justify-content: center !important;
}
/* === NETSTYLE PAGEWISE DESIGN FIX 02B END === */

/* ============================================================
   DASHBOARD PAGE-HEADING ACTIONS 1J
   ============================================================ */

.dashboard-page-heading-actions {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.dashboard-page-heading-button {
    min-height: 36px !important;
    height: 36px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

@media (max-width: 700px) {
    .dashboard-page-heading-actions {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
}

/* DASHBOARD PAGE-HEADING ACTIONS 1J ENDE */



/* NETSTYLE_SECURE_4B_CSS_START */
.customer-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 16px}.customer-tabs a{padding:9px 13px;border:1px solid #d9e1eb;border-radius:8px;text-decoration:none;color:inherit;background:#fff}.customer-tabs a.is-active{background:#1769d2;color:#fff;border-color:#1769d2}.customer-kpis{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.customer-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.customer-overview-grid a{padding:18px;border:1px solid #dce5ef;border-radius:10px;text-decoration:none;background:#fff}.runtime-credential-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid #d9e4f0;border-radius:10px;background:#f8fbff}.runtime-credential-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}.runtime-secret-warning{color:#6a7787}.enterprise-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.enterprise-row-actions form{margin:0}
/* NETSTYLE_SECURE_4B_CSS_END */

/* ============================================================
   NETSTYLE PORTAL COMPLETION – CUSTOMER / INVENTORY
   ============================================================ */
.eyebrow{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#6f8198;margin-bottom:4px}
.customer-cockpit-heading{align-items:flex-start}
.customer-tabs-main{margin-bottom:18px;padding:4px;background:#eef3f9;border:1px solid #dce5ef;border-radius:12px}
.customer-tabs-main a{display:flex;align-items:center;gap:7px;background:transparent;border-color:transparent;font-weight:650}
.customer-tabs-main a span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#e3ebf6;font-size:.72rem;color:#53657d}
.customer-tabs-main a.is-active span{background:rgba(255,255,255,.2);color:#fff}
.customer-kpis-primary{margin-bottom:18px}
.customer-overview-panels{margin-bottom:18px}
.customer-masterdata-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #e1e8f0;border-radius:10px;overflow:hidden}
.customer-masterdata-grid>div{padding:13px 15px;border-bottom:1px solid #e8eef5}
.customer-masterdata-grid>div:nth-child(odd){border-right:1px solid #e8eef5}
.customer-note{margin-top:16px;padding:14px;background:#f7f9fc;border:1px solid #e1e8f0;border-radius:10px}
.customer-overview-grid-large{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.customer-overview-grid-large a{display:flex;flex-direction:column;gap:5px;transition:.16s ease}
.customer-overview-grid-large a:hover{border-color:#1769d2;box-shadow:0 7px 20px rgba(23,105,210,.08);transform:translateY(-1px)}
.customer-overview-grid-large a span{font-size:.82rem;color:#718198;line-height:1.45}
.customer-name-link{text-decoration:none;color:inherit}
.customer-name-link:hover{color:#1769d2}
.inventar-kpis{margin-bottom:18px}
.inventar-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.inventar-launch-card{display:flex;gap:14px;align-items:flex-start;padding:20px;border:1px solid #dce5ef;border-radius:12px;background:#fff;text-decoration:none;color:inherit;box-shadow:0 4px 16px rgba(25,54,91,.04);transition:.16s ease}
.inventar-launch-card:hover{border-color:#1769d2;box-shadow:0 9px 24px rgba(23,105,210,.08);transform:translateY(-1px)}
.inventar-launch-card strong{display:block;font-size:1rem;margin-bottom:4px}
.inventar-launch-card p{margin:0;color:#718198;font-size:.84rem;line-height:1.45}
.inventar-launch-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:#eef5ff;color:#1769d2;font-size:1.2rem;flex:0 0 40px}
.portal-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}
.compact-list{display:flex;flex-direction:column;gap:7px}
.compact-list>a{display:flex;flex-direction:column;gap:2px;padding:10px 11px;border:1px solid #e3eaf2;border-radius:8px;text-decoration:none;color:inherit;background:#fff}
.compact-list>a:hover{border-color:#b9cce7;background:#f9fbfe}
.compact-list>a span{font-size:.78rem;color:#73849a}
.empty-state{margin:6px 0;color:#718198}
.asset-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:0;padding:0;overflow:hidden}
.asset-detail-grid>div{display:flex;flex-direction:column;gap:4px;padding:15px 17px;border-right:1px solid #e8eef5;border-bottom:1px solid #e8eef5;min-height:74px}
.asset-detail-grid>div span{font-size:.74rem;text-transform:uppercase;letter-spacing:.04em;color:#7d8da1;font-weight:700}
.asset-detail-grid>div strong{font-size:.92rem;overflow-wrap:anywhere}
.asset-credential-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f6}
.asset-credential-row:last-child{border-bottom:0}
.asset-credential-row>div:first-child{display:flex;flex-direction:column;gap:2px}
.asset-credential-row span{font-size:.78rem;color:#74849a}
.portal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.portal-form-grid>p{margin:0;display:flex;flex-direction:column;gap:6px}
.portal-form-grid>p:has(textarea){grid-column:1/-1}
.portal-form-grid .helptext{font-size:.76rem;color:#76879b}
.portal-form-grid ul.errorlist{margin:0;padding-left:18px;color:#b42318;font-size:.8rem}
.form-actions-full{grid-column:1/-1;justify-content:flex-end;margin-top:4px}
.preline{white-space:pre-line}
.search-result-grid{align-items:start}
.status-badge.status--wartung,.status-badge.status--test{background:#fff4d6;color:#845b00}
.status-badge.status--defekt,.status-badge.status--abgelaufen{background:#ffe6e5;color:#a3261f}
.status-badge.status--reserve,.status-badge.status--abgekuendigt{background:#edf1f6;color:#526176}
.status-badge.status--ausgemustert,.status-badge.status--archiviert{background:#edf1f6;color:#526176}
@media (max-width:1100px){.inventar-launch-grid{grid-template-columns:1fr}.portal-two-column{grid-template-columns:1fr}.portal-form-grid{grid-template-columns:1fr}.form-actions-full,.portal-form-grid>p:has(textarea){grid-column:auto}.customer-masterdata-grid{grid-template-columns:1fr}.customer-masterdata-grid>div:nth-child(odd){border-right:0}}

/* Portalweite KPI-Karten – bislang nur Auditseiten-spezifisch vorhanden */
.audit-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 18px}
.audit-kpi-card{display:flex;flex-direction:column;gap:5px;min-height:88px;padding:14px 16px;border:1px solid #dce5ef;border-radius:11px;background:#fff;box-shadow:0 3px 12px rgba(25,54,91,.035)}
.audit-kpi-card span{font-size:.76rem;font-weight:700;color:#718198;text-transform:uppercase;letter-spacing:.035em}
.audit-kpi-card strong{font-size:1.55rem;line-height:1;color:#102a4c}
.kpi-card-link{text-decoration:none;color:inherit;transition:.16s ease}
.kpi-card-link:hover{border-color:#1769d2;box-shadow:0 7px 20px rgba(23,105,210,.08);transform:translateY(-1px)}
.customer-overview-table .customer-action-column{width:190px;min-width:190px}
.customer-overview-table .enterprise-row-actions{justify-content:flex-end;flex-wrap:nowrap}

/* ============================================================
   NETSTYLE PORTAL UX FINAL – TABLES / LOOKUPS / SEARCH / FORMS
   ============================================================ */
.enterprise-list-toolbar--wrap{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px!important;align-items:center}.enterprise-list-toolbar--wrap>.primary-button,.enterprise-list-toolbar--wrap>.secondary-button{width:auto;min-width:112px;justify-self:start}.table-sort{display:inline-flex;align-items:center;gap:5px;color:inherit;text-decoration:none;font-weight:750;white-space:nowrap}.table-sort:hover,.table-sort.is-active{color:#1769d2}.table-empty-state{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:18px;color:#718198}.table-empty-state strong{color:#263b57}.pagination-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-top:1px solid #e6edf5;flex-wrap:wrap}.pagination-actions{display:flex;gap:6px;align-items:center}.pagination-current{font-size:.8rem;color:#6f8198}.customer-autocomplete{position:relative;min-width:0}.customer-autocomplete-list{position:absolute;z-index:60;top:calc(100% + 4px);left:0;right:0;max-height:310px;overflow:auto;background:#fff;border:1px solid #cfdbe9;border-radius:9px;box-shadow:0 12px 30px rgba(21,47,82,.16);padding:5px}.customer-autocomplete-option{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:6px;cursor:pointer;color:#152c4b}.customer-autocomplete-option:hover,.customer-autocomplete-option.is-active{background:#eef5ff;color:#1769d2}.customer-autocomplete-empty{padding:10px;color:#728299;font-size:.82rem}.portal-section-tabs{display:flex;gap:5px;flex-wrap:wrap;margin:-4px 0 16px;padding:4px;background:#eef3f9;border:1px solid #dce5ef;border-radius:11px}.portal-section-tabs a{padding:8px 12px;border-radius:7px;text-decoration:none;color:#18314f;font-weight:700}.portal-section-tabs a.is-active{background:#1769d2;color:#fff}.structured-form fieldset{border:1px solid #dce5ef;border-radius:11px;padding:18px;margin:0 0 16px;background:#fff}.structured-form legend{padding:0 8px;font-weight:800;color:#173150}.structured-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.form-field{display:flex;flex-direction:column;gap:6px;min-width:0}.form-field-full{grid-column:1/-1}.form-field label{font-weight:700;color:#263b57}.form-field small,.fieldset-help{font-size:.78rem;color:#75869c;line-height:1.45}.field-error,.form-error-summary{color:#a3261f;font-size:.8rem}.form-error-summary{padding:10px 12px;border:1px solid #f0beb9;background:#fff5f4;border-radius:8px;margin-bottom:14px}.checkbox-field{justify-content:flex-end}.checkbox-field label{display:flex;gap:8px;align-items:center}.sticky-form-actions{position:sticky;bottom:0;z-index:15;padding:12px 0;background:linear-gradient(to bottom,rgba(247,249,252,0),#f7f9fc 28%);justify-content:flex-end}.credential-scope-options{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px;margin-bottom:14px}.credential-scope-card{display:flex;gap:9px;align-items:center;border:1px solid #d8e2ed;border-radius:9px;padding:12px 14px;background:#f9fbfe;font-weight:750;cursor:pointer}.credential-scope-card:has(input:checked){border-color:#1769d2;background:#eef5ff;color:#1358ae}.advanced-vault-details,.technical-details{border:1px solid #dce5ef;border-radius:9px;background:#f8fafc;padding:10px 12px;margin:12px 0}.advanced-vault-details>summary,.technical-details>summary{cursor:pointer;font-weight:750;color:#334b68}.technical-details pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#101b2b;color:#e7eef8;padding:10px;border-radius:7px;font-size:.72rem}.toolbar-checkbox{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#435873;font-size:.82rem}.audit-human-detail{line-height:1.4;max-width:540px}.break-safe{overflow-wrap:anywhere;word-break:normal}.search-hero-panel{padding:14px}.search-hero-form{display:grid;grid-template-columns:auto minmax(260px,1fr) auto auto;align-items:center;gap:9px}.search-hero-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:9px;background:#eef5ff;color:#1769d2;font-size:1.15rem}.search-hero-input{min-height:44px;font-size:1rem}.search-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:14px 0;padding:12px 16px;border:1px solid #dce5ef;border-radius:10px;background:#fff}.search-summary>div{display:flex;align-items:baseline;gap:8px}.search-summary strong{font-size:1.45rem;color:#102a4c}.search-summary span,.search-summary p{color:#6f8198}.search-summary p{margin:0;font-size:.8rem}.search-result-grid--cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.search-result-card{min-height:210px}.search-result-card .panel-header{display:flex;justify-content:space-between;align-items:flex-start}.result-count{display:inline-flex;min-width:30px;height:26px;padding:0 8px;align-items:center;justify-content:center;border-radius:999px;background:#e8f1fd;color:#1769d2;font-weight:800}.search-empty-guide{text-align:center;padding:40px 20px;color:#6f8198}.search-empty-guide strong{display:block;color:#263b57;font-size:1.05rem;margin-bottom:6px}.mini-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;background:#edf3fb;color:#50657e;font-size:.7rem;font-weight:750}.compact-action{font-size:.78rem}.kpi-card-link{cursor:pointer}.audit-kpi-card.kpi-card-link:focus-visible,.inventar-launch-card:focus-visible{outline:3px solid rgba(23,105,210,.25);outline-offset:2px}
@media(max-width:900px){.structured-form-grid,.search-result-grid--cards{grid-template-columns:1fr}.form-field-full{grid-column:auto}.search-hero-form{grid-template-columns:auto 1fr}.search-hero-form>.primary-button,.search-hero-form>.secondary-button{grid-column:auto}.credential-scope-options{grid-template-columns:1fr}}

/* NETSTYLE UX FINAL – conditional license fields */
[data-license-details].is-secondary .license-contract-field { opacity: .62; }
[data-license-details] .license-contract-field.is-muted::after { content: "Optional bei diesem Lizenztyp"; display:block; font-size:.75rem; color:var(--muted, #6b7890); margin-top:.25rem; }

/* NETSTYLE UX FINAL – finishing corrections */
.mini-badge-muted{background:#f2f5f8;color:#718198}
.customer-tabs-main>a>span{display:inline-flex;min-width:22px;height:20px;margin-left:4px;padding:0 6px;align-items:center;justify-content:center;border-radius:999px;background:#e7eef7;color:#536981;font-size:.72rem;font-weight:800}
.customer-tabs-main>a.is-active>span{background:rgba(255,255,255,.18);color:#fff}
.customer-overview-grid-large>a{display:flex;flex-direction:column;gap:5px;min-height:105px}
.customer-overview-grid-large>a span{color:#718198;font-size:.79rem;line-height:1.4}
.customer-overview-grid-large>a em{margin-top:auto;color:#1769d2;font-size:.76rem;font-style:normal;font-weight:750}
.customer-masterdata-grid a{overflow-wrap:anywhere}
.portal-pagination-placeholder{display:none}

/* ============================================================
   NETSTYLE PORTAL R3.3.17 - BROWSER INTENSIV FIXPACK
   ============================================================ */
/* NETSTYLE_PORTAL_R3_3_17_BROWSER_INTENSIV_FIXPACK */

.dashboard-workorder-row {
    cursor: pointer;
}
.dashboard-workorder-row:hover {
    background: #f6f9fd;
}
.dashboard-workorder-row:focus-visible {
    outline: 2px solid #1769d2;
    outline-offset: -2px;
}

.dashboard-side .activity-item {
    display: grid !important;
    grid-template-columns:
        8px minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 10px !important;
}
.dashboard-side .activity-item > .activity-dot {
    grid-column: 1;
}
.dashboard-side
.activity-item
> div:not(.activity-dot) {
    grid-column: 2;
    min-width: 0;
}
.dashboard-side .activity-item .activity-open-link {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    margin: 0 0 0 auto !important;
    min-height: 32px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.dashboard-side .dashboard-activity-all-button {
    min-height: 32px !important;
    padding: 7px 11px !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.activity-table-fixed {
    table-layout: fixed !important;
    min-width: 1180px;
}
.activity-table-fixed
.activity-col-time {
    width: 140px;
}
.activity-table-fixed
.activity-col-workorder {
    width: 150px;
}
.activity-table-fixed
.activity-col-checklist {
    width: 250px;
}
.activity-table-fixed
.activity-col-type {
    width: 190px;
}
.activity-table-fixed
.activity-col-user {
    width: 165px;
}
.activity-table-fixed
.activity-col-description {
    width: auto;
}
.activity-table-fixed
.activity-col-action {
    width: 90px;
}
.activity-table-fixed th:last-child,
.activity-table-fixed td:last-child {
    text-align: right;
    white-space: nowrap;
}

[data-vorgang-abschliessen]:disabled {
    cursor: not-allowed !important;
    opacity: .48 !important;
}

.pruefplan-error-panel {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: 1px solid #f0c7b8 !important;
    border-radius: 10px !important;
    background: #fff8f5 !important;
    color: #6f2d1d !important;
}
.pruefplan-error-panel::before {
    content: "!";
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0e9;
    color: #b23c18;
    font-weight: 800;
}
.pruefplan-error-panel strong,
.pruefplan-error-panel p {
    margin: 0 !important;
}
.pruefplan-error-panel p {
    margin-top: 3px !important;
}

.pruefplan-preview-list {
    align-items: stretch !important;
}
.pruefplan-preview-row {
    min-height: 118px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.pruefplan-preview-row
.pruefplan-weekend-shift,
.pruefplan-preview-row
.school-holiday-note {
    margin-top: 6px !important;
}

.pruefplan-form .portal-input,
.pruefplan-form select,
.pruefplan-form input,
.pruefplan-form textarea {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.pruefplan-form select {
    min-height: 38px !important;
}

.category-template-stack {
    display: grid;
    gap: 5px;
    margin-top: 6px;
}
.category-template-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    color: #1769d2;
    text-decoration: none;
    font-weight: 600;
}
.category-template-link:hover,
.category-template-link:focus-visible {
    text-decoration: underline;
}
.category-template-meta {
    color: #7a899b;
    font-size: 11px;
}
.category-template-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef5fd;
    color: #1769d2;
    font-weight: 800;
}
.category-template-panel
.enterprise-list-toolbar {
    margin: 0;
}
.category-template-panel
.category-template-table {
    margin-top: 12px;
}
.category-template-row[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .dashboard-side .activity-item {
        grid-template-columns:
            8px minmax(0, 1fr) !important;
    }

    .dashboard-side
    .activity-item
    .activity-open-link {
        grid-column: 2;
        grid-row: auto;
        justify-self: end;
        margin-top: 7px !important;
    }
}

/* ============================================================
   NETSTYLE PORTAL R3.3.20 - BROWSER VISUAL HARDENING
   ============================================================ */
/* NETSTYLE_PORTAL_R3_3_20_BROWSER_VISUAL_HARDENING */

.dashboard-workorder-row {
    cursor: pointer;
}
.dashboard-workorder-row:hover {
    background: #f6f9fd;
}
.dashboard-workorder-row:focus-visible {
    outline: 2px solid #1769d2;
    outline-offset: -2px;
}

/* Aktivitaeten: "Öffnen" rechtsbuendig und exakt dieselbe
   Button-Geometrie wie "Alle". */
.dashboard-side .activity-item,
.dashboard-side-column .activity-item {
    display: grid !important;
    grid-template-columns: 8px minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 10px !important;
}
.dashboard-side .activity-item > .activity-dot,
.dashboard-side-column .activity-item > .activity-dot {
    grid-column: 1;
}
.dashboard-side .activity-item > div:not(.activity-dot),
.dashboard-side-column .activity-item > div:not(.activity-dot) {
    grid-column: 2;
    min-width: 0;
}
.dashboard-side .activity-item .activity-open-link,
.dashboard-side-column .activity-item .activity-open-link {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    margin: 0 !important;
}
.dashboard-side .activity-item .activity-open-link,
.dashboard-side-column .activity-item .activity-open-link,
.dashboard-side .dashboard-activity-all-button,
.dashboard-side-column .dashboard-activity-all-button {
    min-height: 32px !important;
    padding: 7px 11px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

/* Abschluss ist optisch und technisch gesperrt, solange das Gate false ist. */
[data-vorgang-abschliessen]:disabled {
    cursor: not-allowed !important;
    opacity: .48 !important;
}

/* Prüfplan: Hinweis als Portal-Panel statt rohem Fehlerstreifen. */
.pruefplan-error-panel {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border: 1px solid #f0c7b8 !important;
    border-radius: 10px !important;
    background: #fff8f5 !important;
    color: #6f2d1d !important;
}
.pruefplan-error-panel::before {
    content: "!";
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0e9;
    color: #b23c18;
    font-weight: 800;
}
.pruefplan-error-panel strong,
.pruefplan-error-panel p {
    margin: 0 !important;
}
.pruefplan-error-panel p {
    margin-top: 3px !important;
}

/* Prüfplan-Vorschau: Karten immer gleichartig/gleichhoch. */
.pruefplan-preview-list {
    align-items: stretch !important;
}
.pruefplan-preview-row {
    min-height: 118px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.pruefplan-preview-row .pruefplan-weekend-shift,
.pruefplan-preview-row .school-holiday-note {
    margin-top: 6px !important;
}

/* Bearbeiten: Select/Input/Textarea ohne optische Brüche. */
.pruefplan-form .portal-input,
.pruefplan-form select,
.pruefplan-form input,
.pruefplan-form textarea {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.pruefplan-form select {
    min-height: 38px !important;
}

@media (max-width: 900px) {
    .dashboard-side .activity-item,
    .dashboard-side-column .activity-item {
        grid-template-columns: 8px minmax(0, 1fr) !important;
    }
    .dashboard-side .activity-item .activity-open-link,
    .dashboard-side-column .activity-item .activity-open-link {
        grid-column: 2;
        grid-row: auto;
        justify-self: end;
        margin-top: 7px !important;
    }
}
