:root {
    --gds-orange: #f39200;
    --gds-orange-dark: #d97f00;
    --gds-ink: #202428;
    --gds-muted: #6c757d;
    --gds-bg: #f4f6f8;
    --gds-border: #dfe3e7;
    --gds-soft: #f8f9fa;
}

body {
    background: var(--gds-bg);
    color: var(--gds-ink);
}

.app-container { max-width: 1600px; }

/* Branding */
.navbar { box-shadow: 0 2px 12px rgba(0,0,0,.16); }
.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin-right: 1.25rem;
}
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 42px;
    padding: 3px 5px;
    background: #fff;
    border-radius: .5rem;
    overflow: hidden;
}
.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.brand-title { white-space: nowrap; }

/* Page rhythm */
.page-header {
    min-height: 54px;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--gds-border);
}
.page-header h1 { font-weight: 700; letter-spacing: -.02em; }
.page-header p { max-width: 850px; }

/* Cards and forms */
.app-card,
.card.shadow-sm {
    border: 1px solid var(--gds-border);
    border-radius: .85rem;
    box-shadow: 0 .2rem .8rem rgba(22, 29, 37, .055) !important;
    overflow: hidden;
}
.app-card-header,
.app-card > .card-header,
.card.shadow-sm > .card-header {
    background: #fff;
    border-bottom: 1px solid var(--gds-border);
    padding: 1rem 1.25rem;
}
.form-card > .card-body { background: #fff; }
.form-card .card-header h2 { font-weight: 700; }
.form-section-hint { color: var(--gds-muted); font-size: .875rem; }

.app-form .form-label,
.form-label {
    font-weight: 600;
    margin-bottom: .4rem;
    color: #343a40;
}
.required-mark { color: #b42318; font-weight: 700; }
.form-control,
.form-select {
    border-color: #cfd5da;
    border-radius: .55rem;
    min-height: 42px;
    background-color: #fff;
}
textarea.form-control { min-height: auto; }
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--gds-orange);
    box-shadow: 0 0 0 .2rem rgba(243,146,0,.16);
}
.form-check-input:checked {
    background-color: var(--gds-orange);
    border-color: var(--gds-orange);
}
.form-text { color: #737c84; }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding-top: .55rem;
    margin-top: .2rem;
    border-top: 1px solid #edf0f2;
}
.form-inline-panel {
    background: var(--gds-soft);
    border: 1px solid var(--gds-border);
    border-radius: .7rem;
    padding: 1rem;
}

/* Corporate primary actions */
.btn-primary {
    --bs-btn-bg: var(--gds-orange);
    --bs-btn-border-color: var(--gds-orange);
    --bs-btn-hover-bg: var(--gds-orange-dark);
    --bs-btn-hover-border-color: var(--gds-orange-dark);
    --bs-btn-active-bg: var(--gds-orange-dark);
    --bs-btn-active-border-color: var(--gds-orange-dark);
    --bs-btn-color: #171717;
    --bs-btn-hover-color: #171717;
    --bs-btn-active-color: #171717;
    font-weight: 600;
}
.btn-outline-primary {
    --bs-btn-color: #b86d00;
    --bs-btn-border-color: var(--gds-orange);
    --bs-btn-hover-bg: var(--gds-orange);
    --bs-btn-hover-border-color: var(--gds-orange);
    --bs-btn-hover-color: #171717;
    --bs-btn-active-bg: var(--gds-orange-dark);
    --bs-btn-active-border-color: var(--gds-orange-dark);
}

/* Tables */
.app-table thead th,
.card .table thead th {
    background: #f7f8f9;
    color: #505860;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .035em;
    font-weight: 700;
    border-bottom-width: 1px;
    white-space: nowrap;
}
.app-table tbody td,
.card .table tbody td { vertical-align: middle; }
.table-actions { white-space: nowrap; }
.table-description { max-width: 420px; }

/* Existing functional components */
.card-stat { min-height: 145px; }
.multi-select { min-height: 150px; }
.assessment-meta dt { color: #6c757d; font-weight: 600; }
.hazard-card { border-left: 4px solid #6c757d; }
.hazard-card .card-header { border-bottom-color: #eef0f2; }
.text-bg-orange { color: #111 !important; background-color: #fd7e14 !important; }
details.measure-form > summary { list-style: none; display: inline-block; cursor: pointer; }
details.measure-form > summary::-webkit-details-marker { display: none; }
.update-step { height: 100%; padding: 1rem; border: 1px solid var(--gds-border); border-radius: .75rem; background: #fafbfc; }

.assignment-section { border: 1px solid var(--gds-border); border-radius: .75rem; padding: 1rem; background: #fbfcfd; }
.employee-assignment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.employee-assignment-card { border: 1px solid var(--gds-border); border-radius: .65rem; background: #fff; padding: .85rem; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.employee-assignment-card.is-selected { border-color: var(--gds-orange); box-shadow: 0 0 0 .15rem rgba(243,146,0,.08); background: #fffaf2; }
.employee-assignment-card[hidden] { display: none !important; }
.assignment-checks { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.assignment-toolbar { align-items: center; }

/* Login */
.login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #f4f6f8 0%, #ffffff 55%, #fff6e8 100%);
}
.login-shell { max-width: 500px; padding-top: 7vh; padding-bottom: 3rem; }
.login-card { background: rgba(255,255,255,.98); }
.login-logo { display: block; max-width: 185px; max-height: 120px; object-fit: contain; margin: 0 auto 1rem; }

@media (max-width: 1199.98px) {
    .brand-title { font-size: 1rem; }
}
@media (max-width: 767.98px) {
    .table-actions .btn, .table-actions form { margin-top: .2rem; }
    .page-header { align-items: flex-start !important; }
}
@media (max-width: 575.98px) {
    .employee-assignment-grid { grid-template-columns: 1fr; }
    .assignment-checks { display: block; }
    .brand-logo-wrap { width: 42px; height: 36px; }
    .brand-title { font-size: .95rem; }
    .form-actions .btn { width: 100%; }
}


/* Machine AI research */
.ai-research-empty {
    border: 1px dashed #cfd5da;
    border-radius: .75rem;
    padding: 1rem 1.1rem;
    background: #fafbfc;
}
.ai-research-list {
    display: grid;
    gap: .85rem;
}
.ai-finding {
    border: 1px solid var(--gds-border);
    border-left: 4px solid #adb5bd;
    border-radius: .7rem;
    padding: 1rem;
    background: #fff;
}
.ai-finding.is-confirmed {
    border-left-color: #0d6efd;
    background: #f8fbff;
}
.research-value {
    font-weight: 600;
    line-height: 1.45;
}
.research-badge {
    border: 1px solid transparent;
    font-weight: 700;
}
.research-badge-researched {
    color: #146c43;
    background: #d1e7dd;
    border-color: #a3cfbb;
}
.research-badge-review {
    color: #664d03;
    background: #fff3cd;
    border-color: #ffecb5;
}
.research-badge-open {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}
.research-source-link {
    display: inline-block;
    margin-left: .4rem;
}


/* Visible state while a machine AI web research request is running */
body.ai-research-running { cursor: progress; }
body.ai-research-running [data-ai-research-button] { cursor: wait; }
[data-ai-research-status] { border-left: 4px solid #0dcaf0; }


/* Unterweisungen */
.instruction-mini-card{border-left:4px solid #ef6c00;background:#f6f7f8;padding:.7rem .85rem;border-radius:.25rem;height:100%}.instruction-mini-card span{display:block;font-size:.72rem;text-transform:uppercase;color:#6c757d;font-weight:700;letter-spacing:.03em}.instruction-preview{border:1px solid #e1e4e8;border-radius:.5rem;padding:1rem;background:#fff}.instruction-topic{padding:.75rem 0;border-bottom:1px solid #eceff1}.instruction-topic:first-of-type{padding-top:.25rem}.instruction-topic:last-of-type{border-bottom:0}.instruction-topic ul{padding-left:1.15rem}.instruction-topic li{margin:.25rem 0}.instruction-emergency{margin-top:.75rem;border-left:4px solid #ef6c00;background:#fff7e6;padding:.65rem .8rem}
.instruction-employee-grid{grid-template-columns:repeat(auto-fit,minmax(285px,1fr));gap:.75rem}
.instruction-person{display:flex;align-items:flex-start;gap:.8rem;min-height:112px;width:100%;height:100%;padding:.9rem 1rem;cursor:pointer;border:1px solid #dfe3e7;border-radius:.65rem;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.instruction-person:hover{border-color:#b9c0c7;box-shadow:0 .12rem .35rem rgba(0,0,0,.05)}
.instruction-person:has(input:checked),.instruction-person.is-selected{border-color:#ef6c00;background:#fff8f1;box-shadow:0 0 0 .12rem rgba(239,108,0,.08)}
.instruction-person-check{flex:0 0 auto;margin-top:.15rem}
.instruction-person-content{display:flex;min-width:0;flex:1;flex-direction:column;gap:.45rem}
.instruction-person-name{display:block;font-weight:700;font-size:1rem;line-height:1.2;color:#14181c;white-space:normal;overflow-wrap:anywhere}
.instruction-person-departments{display:flex;flex-wrap:wrap;gap:.3rem}
.instruction-person-departments .badge{font-weight:500;color:#4f5963!important;background:#f7f8f9!important}
.instruction-person-note{font-size:.78rem;color:#6c757d;line-height:1.2}
.instruction-person-note.is-default{color:#8a5700}
@media (min-width:1400px){.instruction-employee-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:991.98px){.instruction-employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:575.98px){.instruction-employee-grid{grid-template-columns:1fr}.instruction-person{min-height:0}}


/* Aufgaben 2.14 */
.task-summary-card {
    display: flex;
    min-height: 92px;
    padding: 1rem 1.1rem;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    background: #fff;
    color: var(--bs-body-color);
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.04);
}
.task-summary-card:hover { border-color: #f28c00; box-shadow: 0 0.4rem 1rem rgba(0,0,0,.07); }
.task-summary-card span { font-size: .82rem; color: var(--bs-secondary-color); font-weight: 600; }
.task-summary-card strong { font-size: 1.8rem; line-height: 1; }
.task-list { display: flex; flex-direction: column; }
.task-row {
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.1rem 1rem .75rem;
}
.task-row:last-child { border-bottom: 0; }
.task-status-line { border-radius: 999px; min-height: 100%; }
.task-main { min-width: 0; }
.task-title { overflow-wrap: anywhere; }
.task-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.task-actions form { margin: 0; }
@media (max-width: 767.98px) {
    .task-row { grid-template-columns: 4px minmax(0, 1fr); }
    .task-actions { grid-column: 2; justify-content: flex-start; margin-top: .25rem; }
}

/* Maschinenpruefungen 2.16 */
.inspection-result-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.inspection-result-option{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border:1px solid var(--gds-border);border-radius:.7rem;background:#fff;cursor:pointer}.inspection-result-option:has(input:checked){border-color:var(--gds-orange);background:#fff8f1;box-shadow:0 0 0 .12rem rgba(239,108,0,.08)}.inspection-result-option span{display:flex;flex-direction:column;gap:.15rem}.inspection-result-option small{color:var(--gds-muted)}.inspection-result-option .form-check-input{margin-top:.18rem;flex:0 0 auto}@media(max-width:575.98px){.inspection-result-options{grid-template-columns:1fr}}

/* Gefahrstoffe & Sicherheitsdatenblaetter 2.17 */
.compact-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.55rem}
.compact-check{display:flex;align-items:flex-start;gap:.55rem;margin:0;padding:.7rem .8rem;border:1px solid var(--bs-border-color);border-radius:.6rem;background:#fff}
.compact-check:has(input:checked){border-color:#ef6c00;background:#fff8f1}
.compact-check .form-check-input{flex:0 0 auto;margin:.2rem 0 0}
.compact-check .form-check-label{display:flex;min-width:0;flex-direction:column;line-height:1.2}
.compact-check .form-check-label strong{overflow-wrap:anywhere}
.compact-check .form-check-label small{margin-top:.25rem;color:var(--bs-secondary-color)}
.sds-ai-preview{max-height:320px;overflow:auto;border:1px solid var(--bs-border-color);border-radius:.6rem;background:#f8f9fa;padding:.85rem}
.sds-ai-preview dl{margin-bottom:0}
.sds-ai-preview dt{font-size:.75rem;text-transform:uppercase;color:var(--bs-secondary-color)}
.sds-ai-preview dd{margin-bottom:.7rem;white-space:pre-wrap}
@media(max-width:575.98px){.compact-check-grid{grid-template-columns:1fr}}

/* 2.18.0 Dokumentenablage */
.document-table .document-main-cell{min-width:280px}.document-table td:nth-child(2){min-width:260px}.document-context{max-width:520px;white-space:normal}.document-table .form-select-sm{min-width:118px}@media(max-width:767.98px){.document-table .document-main-cell{min-width:230px}.document-table td:nth-child(2){min-width:220px}}

/* Mitarbeiter-Cockpit 2.19 */
.employee-stat-card{height:100%;background:#fff;border:1px solid #dfe4ea;border-radius:14px;padding:16px 17px;box-shadow:0 5px 18px rgba(18,32,47,.05);display:flex;flex-direction:column;gap:2px}
.employee-stat-card span{font-size:.76rem;text-transform:uppercase;letter-spacing:.035em;color:#66717d;font-weight:700}
.employee-stat-card strong{font-size:1.8rem;line-height:1.15;color:#17212b}
.employee-stat-card small{color:#6b7580}
.employee-stat-card.has-open{border-color:#f1b84a;background:#fffaf0}
.employee-stat-card.has-open strong{color:#9a5a00}
.employee-stat-word{font-size:1.35rem!important;margin-top:.2rem}
.employee-cockpit-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 16px}
.employee-cockpit-row .min-w-0{min-width:0}
.employee-task-mini{padding:13px 16px}
.employee-task-mini a{text-decoration:none;font-weight:600}
.employee-all-clear{padding:28px 20px;text-align:center;display:flex;flex-direction:column;gap:3px;color:#287145}
.employee-all-clear span{font-size:.88rem;color:#6b7580;font-weight:400}
@media (max-width:767.98px){.employee-cockpit-row{flex-direction:column}.employee-cockpit-row>div:last-child{justify-content:flex-start!important}.employee-stat-card{padding:13px}.employee-stat-card strong{font-size:1.55rem}}

/* 2.20.0: linke Navigation, globale Suche und mobile Bedienung */
.app-body { min-height: 100vh; overflow-x: hidden; }
.app-layout { min-height: 100vh; }
.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 268px;
    background: #202428;
    color: #fff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 24px rgba(20,24,28,.10);
}
.sidebar-brand {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.sidebar-brand .app-brand { color: #fff; text-decoration: none; margin: 0; min-width: 0; }
.sidebar-brand .brand-title { color: #fff; font-size: 1.04rem; }
.sidebar-brand .brand-logo-wrap { width: 46px; height: 40px; flex: 0 0 auto; }
.sidebar-close { color: #fff; font-size: 1.7rem; line-height: 1; padding: .1rem .35rem; border: 0; }
.sidebar-close:hover { color: var(--gds-orange); }
.sidebar-nav { flex: 1 1 auto; overflow-y: auto; padding: .7rem .65rem 1.25rem; scrollbar-width: thin; }
.sidebar-group { padding: .55rem 0 .35rem; }
.sidebar-group + .sidebar-group { border-top: 1px solid rgba(255,255,255,.07); margin-top: .45rem; padding-top: .85rem; }
.sidebar-group-title {
    padding: 0 .7rem .4rem;
    color: rgba(255,255,255,.43);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .72rem;
    min-height: 40px;
    padding: .55rem .72rem;
    border-radius: .58rem;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .91rem;
    font-weight: 600;
    transition: background-color .14s ease, color .14s ease, transform .14s ease;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #171717; background: var(--gds-orange); }
.sidebar-link.active:hover { background: var(--gds-orange-dark); }
.sidebar-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; flex: 0 0 auto; }
.sidebar-update-button {
    width: calc(100% - 1.4rem);
    margin: .55rem .7rem 0;
    padding: .55rem .7rem;
    border: 1px solid rgba(243,146,0,.75);
    border-radius: .58rem;
    background: rgba(243,146,0,.08);
    color: #ffc66f;
    font-weight: 700;
    text-align: left;
}
.sidebar-update-button:hover { background: var(--gds-orange); color: #171717; border-color: var(--gds-orange); }
.sidebar-footer { flex: 0 0 auto; padding: .85rem 1.35rem 1rem; border-top: 1px solid rgba(255,255,255,.08); }

.app-main-shell { min-height: 100vh; margin-left: 268px; }
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1025;
    min-height: 70px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gds-border);
    box-shadow: 0 2px 12px rgba(22,29,37,.045);
}
.topbar-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1650px;
    margin: 0 auto;
    padding: .72rem 1.5rem;
}
.topbar-menu-button { width: 42px; height: 42px; border: 1px solid var(--gds-border); padding: .55rem .65rem; }
.topbar-menu-button span { display: block; height: 2px; background: #343a40; margin: 4px 0; border-radius: 2px; }
.topbar-mobile-brand { color: var(--gds-ink); text-decoration: none; font-weight: 800; white-space: nowrap; }
.global-search { flex: 1 1 620px; max-width: 760px; margin-right: auto; }
.global-search-box { position: relative; }
.global-search .form-control {
    height: 44px;
    padding-left: 2.55rem;
    padding-right: 4.6rem;
    border-color: #d9dde1;
    background: #f8f9fa;
    box-shadow: none;
}
.global-search .form-control:focus { background: #fff; border-color: var(--gds-orange); box-shadow: 0 0 0 .18rem rgba(243,146,0,.12); }
.global-search-symbol { position: absolute; left: .92rem; top: 50%; transform: translateY(-50%); z-index: 2; font-size: 1.35rem; color: #6c757d; line-height: 1; }
.global-search-shortcut { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); padding: .15rem .42rem; border: 1px solid #d9dde1; border-radius: .38rem; color: #7a8288; background: #fff; font-size: .69rem; font-weight: 700; }
.topbar-user { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.topbar-user-meta { text-align: right; line-height: 1.15; }
.topbar-user-meta strong { display: block; font-size: .86rem; }
.topbar-user-meta span { display: block; color: var(--gds-muted); font-size: .72rem; margin-top: .18rem; }
.app-main-shell .app-container { max-width: 1650px; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.sidebar-backdrop { display: none; }

/* Globale Suchergebnisse */
.search-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; align-items: start; }
.search-result-group { min-width: 0; }
.search-result-item { padding: .9rem 1.1rem; }
.search-result-item:hover { background: #fffaf2; }
.search-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-empty-state { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; color: var(--gds-muted); }
.search-empty-state strong { color: var(--gds-ink); font-size: 1.05rem; }
.min-w-0 { min-width: 0; }

/* Einheitlichere Listen-Aktionen */
.table-actions .btn { margin: .12rem 0 .12rem .18rem; }
.table-actions form.d-inline { margin-left: .18rem; }
.card-header .btn, .page-header .btn { white-space: nowrap; }
.table-responsive { scrollbar-width: thin; }

@media (max-width: 1199.98px) {
    .app-sidebar { width: 248px; }
    .app-main-shell { margin-left: 248px; }
    .sidebar-brand .brand-title { font-size: .96rem; }
    .global-search { max-width: none; }
}

@media (max-width: 991.98px) {
    .app-sidebar { width: min(86vw, 300px); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.2); }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 1035; background: rgba(17,20,23,.48); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    body.sidebar-open { overflow: hidden; }
    .app-main-shell { margin-left: 0; }
    .topbar-inner { padding-left: 1rem; padding-right: 1rem; }
    .app-main-shell .app-container { padding-left: 1rem; padding-right: 1rem; }
    .search-results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .app-topbar, .topbar-inner { min-height: 64px; }
    .topbar-inner { gap: .65rem; }
    .topbar-mobile-brand { display: none !important; }
    .global-search .form-control { height: 42px; padding-right: .8rem; font-size: .9rem; }
    .global-search-shortcut { display: none !important; }
    .topbar-user .btn { padding-left: .55rem; padding-right: .55rem; }
    .app-main-shell .app-container { padding-top: 1rem !important; }
    .page-header { min-height: auto; margin-bottom: 1rem !important; }
    .page-header h1 { font-size: 1.55rem; }
}

@media (max-width: 575.98px) {
    .topbar-inner { padding-left: .75rem; padding-right: .75rem; }
    .topbar-user { gap: .35rem; }
    .topbar-user .btn { font-size: .75rem; }
    .global-search .form-control { padding-left: 2.25rem; }
    .global-search-symbol { left: .75rem; }
    .app-main-shell .app-container { padding-left: .75rem; padding-right: .75rem; }
    .card-header .d-flex, .page-header.d-flex { align-items: stretch !important; }
    .page-header > .btn, .page-header > form, .page-header > div:last-child:not(:first-child) { max-width: 100%; }
}

/* 2.21 Backup / Archiv */
.archive-link-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.1rem;border:1px solid var(--bs-border-color);border-radius:.8rem;text-decoration:none;color:inherit;background:#fff;transition:.15s ease}
.archive-link-card:hover{border-color:#f07d00;box-shadow:0 .25rem .8rem rgba(0,0,0,.06);transform:translateY(-1px)}
.archive-link-card span{color:var(--bs-secondary-color);font-size:.9rem}
