:root {
    --mamo-red: #c7342f;
    --mamo-red-dark: #a92b27;
    --mamo-ink: #222426;
    --mamo-text: #303235;
    --mamo-muted: #777b80;
    --mamo-border: #e4e4e1;
    --mamo-surface: #ffffff;
    --mamo-bg: #f4f3f0;
    --mamo-soft: #ebe9e5;
    --mamo-success: #287c5a;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 24px 70px rgba(27, 29, 31, 0.12);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.mamo-login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
}

.mamo-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 56px;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.10), transparent 35%),
        linear-gradient(145deg, #1f2123 0%, #292b2e 62%, #171819 100%);
}

.mamo-login-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -280px;
    bottom: -260px;
    border-radius: 50%;
    border: 90px solid rgba(199, 52, 47, .95);
}

.mamo-brandmark,
.mamo-brand-content,
.mamo-brand-footer {
    position: relative;
    z-index: 2;
}

.mamo-brandmark {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.mamo-brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--mamo-red);
    font-size: 18px;
    font-weight: 800;
}

.mamo-brand-content {
    max-width: 560px;
}

.mamo-eyebrow {
    margin-bottom: 18px;
    color: #d9d9d7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.mamo-brand-content h1 {
    margin: 0;
    max-width: 500px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: .98;
    letter-spacing: -.045em;
}

.mamo-brand-content h1 span {
    color: #ef5a54;
}

.mamo-brand-content p {
    max-width: 490px;
    margin: 28px 0 0;
    color: #c8c9c7;
    font-size: 17px;
    line-height: 1.65;
}

.mamo-brand-footer {
    color: #8e9193;
    font-size: 13px;
}

.mamo-login-panel {
    display: grid;
    place-items: center;
    padding: 48px;
    background:
        linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.80)),
        var(--mamo-bg);
}

.mamo-login-card {
    width: min(100%, 470px);
}

.mamo-login-card h2 {
    margin: 0;
    color: var(--mamo-ink);
    font-size: 34px;
    letter-spacing: -.035em;
}

.mamo-login-subtitle {
    margin: 12px 0 38px;
    color: var(--mamo-muted);
    line-height: 1.6;
}

.mamo-field {
    margin-bottom: 20px;
}

.mamo-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--mamo-ink);
    font-size: 13px;
    font-weight: 700;
}

.mamo-input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--mamo-border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--mamo-ink);
    background: var(--mamo-surface);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mamo-input:focus {
    border-color: var(--mamo-red);
    box-shadow: 0 0 0 4px rgba(199, 52, 47, .10);
}

.mamo-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 4px 0 26px;
    color: var(--mamo-muted);
    font-size: 14px;
}

.mamo-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--mamo-red);
}

.mamo-button {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--mamo-red);
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.mamo-button:hover {
    background: var(--mamo-red-dark);
}

.mamo-button:active {
    transform: translateY(1px);
}

.mamo-error {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(199,52,47,.20);
    border-radius: var(--radius-sm);
    color: #8e211e;
    background: rgba(199,52,47,.07);
    font-size: 14px;
}

.mamo-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 26px;
    color: #999b9d;
    font-size: 12px;
}

.mamo-center-placeholder {
    min-height: 100vh;
    padding: 48px;
    background: var(--mamo-bg);
}

.mamo-center-placeholder header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mamo-center-placeholder h1 {
    margin-top: 70px;
    color: var(--mamo-ink);
    font-size: 48px;
}

.mamo-logout {
    padding: 11px 18px;
    border: 1px solid var(--mamo-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mamo-login-page {
        grid-template-columns: 1fr;
    }

    .mamo-login-brand {
        display: none;
    }

    .mamo-login-panel {
        min-height: 100vh;
        padding: 32px 22px;
    }
}

/* =========================================================
   MAMO BMA OPERATIONS · APPLICATION SHELL
   ========================================================= */

.mamo-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 258px minmax(0, 1fr);
    background: #f4f3f0;
}

.mamo-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 20px 22px;
    color: #fff;
    background: #232527;
    border-right: 1px solid rgba(255,255,255,.05);
}

.mamo-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 32px;
}

.mamo-sidebar-brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--mamo-red);
    font-weight: 800;
}

.mamo-sidebar-brand-copy strong {
    display: block;
    font-size: 14px;
    letter-spacing: .04em;
}

.mamo-sidebar-brand-copy span {
    display: block;
    margin-top: 3px;
    color: #8e9295;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mamo-nav-label {
    margin: 10px 10px 8px;
    color: #696d70;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mamo-nav {
    display: grid;
    gap: 4px;
}

.mamo-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #b7b9ba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .16s ease, color .16s ease;
}

.mamo-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.055);
}

.mamo-nav a.active {
    color: #fff;
    background: rgba(199,52,47,.17);
}

.mamo-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .72;
}

.mamo-sidebar-spacer {
    flex: 1;
}

.mamo-sidebar-user {
    padding: 15px 12px 0;
    border-top: 1px solid rgba(255,255,255,.07);
}

.mamo-sidebar-user strong {
    display: block;
    font-size: 13px;
}

.mamo-sidebar-user span {
    display: block;
    margin-top: 4px;
    color: #7f8386;
    font-size: 11px;
}

.mamo-app-main {
    min-width: 0;
}

.mamo-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 38px;
    background: rgba(255,255,255,.78);
    border-bottom: 1px solid #e3e2de;
    backdrop-filter: blur(12px);
}

.mamo-topbar-context {
    min-width: 190px;
}

.mamo-topbar-context strong {
    display: block;
    color: #242628;
    font-size: 13px;
}

.mamo-topbar-context span {
    display: block;
    margin-top: 3px;
    color: #929598;
    font-size: 11px;
}

.mamo-global-search {
    flex: 1;
    max-width: 650px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid #e2e1de;
    border-radius: 12px;
    color: #a0a2a3;
    background: #f8f8f6;
}

.mamo-global-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #2a2c2e;
    background: transparent;
}

.mamo-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mamo-topbar-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dfdedb;
    border-radius: 10px;
    color: #45484a;
    background: #fff;
    cursor: pointer;
}

.mamo-content {
    padding: 38px;
}

.mamo-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.mamo-page-heading-eyebrow {
    margin-bottom: 8px;
    color: var(--mamo-red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.mamo-page-heading h1 {
    margin: 0;
    color: #242628;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.mamo-page-heading p {
    margin: 10px 0 0;
    color: #777b7e;
    line-height: 1.55;
}

.mamo-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--mamo-red);
    font-weight: 700;
    text-decoration: none;
}

.mamo-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.mamo-kpi {
    min-height: 140px;
    padding: 20px;
    border: 1px solid #e2e1dd;
    border-radius: 16px;
    background: #fff;
}

.mamo-kpi-label {
    color: #818487;
    font-size: 12px;
    font-weight: 700;
}

.mamo-kpi-value {
    margin-top: 19px;
    color: #252729;
    font-size: 34px;
    font-weight: 780;
    letter-spacing: -.035em;
}

.mamo-kpi-meta {
    margin-top: 7px;
    color: #9b9da0;
    font-size: 11px;
}

.mamo-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 18px;
}

.mamo-panel {
    border: 1px solid #e2e1dd;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.mamo-panel-header {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 20px;
    border-bottom: 1px solid #ecebe8;
}

.mamo-panel-header h2 {
    margin: 0;
    color: #27292b;
    font-size: 15px;
}

.mamo-panel-header span {
    color: #939699;
    font-size: 11px;
}

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

.mamo-table th,
.mamo-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #efeeeb;
}

.mamo-table th {
    color: #939598;
    background: #fafaf8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.mamo-table td {
    color: #4a4d50;
    font-size: 13px;
}

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

.mamo-table-primary {
    color: #292b2d;
    font-weight: 700;
}

.mamo-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #267051;
    background: #edf7f2;
    font-size: 10px;
    font-weight: 800;
}

.mamo-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #36996f;
}

.mamo-system-card {
    padding: 22px;
}

.mamo-system-card h3 {
    margin: 0 0 18px;
    color: #292b2d;
    font-size: 15px;
}

.mamo-system-list {
    display: grid;
    gap: 15px;
}

.mamo-system-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #efeeeb;
}

.mamo-system-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mamo-system-row span:first-child {
    color: #74777a;
    font-size: 12px;
}

.mamo-system-row strong {
    color: #292b2d;
    font-size: 12px;
}

.mamo-system-ok {
    color: #2b805d !important;
}

@media (max-width: 1100px) {
    .mamo-app {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .mamo-sidebar-brand-copy,
    .mamo-nav-label,
    .mamo-nav a span:not(.mamo-nav-dot),
    .mamo-sidebar-user {
        display: none;
    }

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

    .mamo-grid-2 {
        grid-template-columns: 1fr;
    }
}

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

    .mamo-sidebar {
        display: none;
    }

    .mamo-topbar {
        padding: 0 18px;
    }

    .mamo-topbar-context {
        display: none;
    }

    .mamo-content {
        padding: 22px 16px;
    }

    .mamo-kpis {
        grid-template-columns: 1fr;
    }

    .mamo-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   MAMO OPERATIONS UI
   Gemeinsame Designsprache für MAMO BMA / MAMO OPS
============================================================ */

.ops-ui {
    --ops-red: #e33a35;
    --ops-red-dark: #c92e2a;

    --ops-black: #17191b;
    --ops-dark: #222528;

    --ops-bg: #f5f2ee;
    --ops-card: #ffffff;
    --ops-soft: #faf8f5;

    --ops-border: #ddd8d1;
    --ops-text: #202326;
    --ops-muted: #7f8589;

    --ops-green: #23865d;
    --ops-green-soft: #edf7f2;

    --ops-yellow: #dc9419;
    --ops-yellow-soft: #fff5df;

    --ops-danger: #b3322d;
    --ops-danger-soft: #fbefee;
}


/* Karten */

.ops-ui .run-top,
.ops-ui .run-filter-panel,
.ops-ui .group-card,
.ops-ui .detector-panel,
.ops-ui .compact-item {
    border-color: var(--ops-border);
    background: var(--ops-card);
    box-shadow:
        0 1px 2px rgba(22,24,26,.02),
        0 10px 28px rgba(22,24,26,.035);
}

.ops-ui .run-top {
    border-top: 3px solid var(--ops-red);
}


/* Primäre Buttons */

.ops-ui .run-start,
.ops-ui .detector-button:not(.done),
.ops-ui .compact-ok:not(:disabled),
.ops-ui .issue-save {
    border: 0;
    color: #fff;
    background: var(--ops-red);
    box-shadow: 0 8px 18px rgba(227,58,53,.14);
    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.ops-ui .run-start:hover,
.ops-ui .detector-button:not(.done):hover,
.ops-ui .compact-ok:not(:disabled):hover,
.ops-ui .issue-save:hover {
    background: var(--ops-red-dark);
    box-shadow: 0 10px 24px rgba(227,58,53,.20);
}

.ops-ui .run-start:active,
.ops-ui .detector-button:not(.done):active,
.ops-ui .compact-ok:not(:disabled):active,
.ops-ui .issue-save:active {
    transform: translateY(1px);
}


/* MAMO-OPS Outline Buttons */

.ops-ui .run-filter-button,
.ops-ui .issue-cancel {
    border: 1px solid var(--ops-border);
    color: var(--ops-text);
    background: #fff;
    box-shadow: none;
}

.ops-ui .run-filter-button:hover,
.ops-ui .issue-cancel:hover {
    border-color: var(--ops-red);
    color: var(--ops-red);
}


/* Hauptnavigation / Segment Buttons */

.ops-ui .run-section {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--ops-border);
    border-radius: 10px;
    color: var(--ops-text);
    background: #fff;
}

.ops-ui .run-section.active {
    border-color: var(--ops-red);
    color: #fff;
    background: var(--ops-red);
    box-shadow: 0 7px 16px rgba(227,58,53,.12);
}


/* Statusfilter */

.ops-ui .run-status {
    border-color: var(--ops-border);
    color: #64696c;
    background: #fff;
}

.ops-ui .run-status.active {
    border-color: var(--ops-red);
    color: var(--ops-red);
    background: #fff7f6;
}


/* Gruppen */

.ops-ui .group-card {
    border-left: 3px solid transparent;
}

.ops-ui .group-card:hover {
    border-color: #cfc9c2;
    border-left-color: var(--ops-red);
}

.ops-ui .group-card.active {
    border-color: var(--ops-red);
    border-left-color: var(--ops-red);
    background: #fffafa;
    box-shadow: 0 8px 22px rgba(227,58,53,.07);
}

.ops-ui .group-progress {
    background: #ece9e5;
}

.ops-ui .group-progress > div {
    background: var(--ops-red);
}


/* OK / erledigt */

.ops-ui .detector-button.done,
.ops-ui .compact-ok:disabled {
    border-color: #cce3d6;
    color: var(--ops-green);
    background: var(--ops-green-soft);
}


/* Abweichung */

.ops-ui .detector-issue,
.ops-ui .compact-issue {
    border-color: #edcbc8;
    color: var(--ops-danger);
    background: var(--ops-danger-soft);
}

.ops-ui .detector-issue:hover,
.ops-ui .compact-issue:hover {
    border-color: var(--ops-danger);
}


/* Inputs wie MAMO OPS */

.ops-ui .run-input,
.ops-ui .run-select,
.ops-ui .issue-field select,
.ops-ui .issue-field textarea {
    border-color: var(--ops-border);
    background: #fff;
}

.ops-ui .run-input:focus,
.ops-ui .run-select:focus,
.ops-ui .issue-field select:focus,
.ops-ui .issue-field textarea:focus {
    border-color: var(--ops-red);
    box-shadow: 0 0 0 3px rgba(227,58,53,.08);
    outline: 0;
}


/* KPI Cards */

.ops-ui .run-stat {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ops-border);
    background: #fff;
}

.ops-ui .run-stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--ops-red),
        rgba(227,58,53,.08)
    );
}


/* Hintergrund */

.ops-ui {
    color: var(--ops-text);
    background: var(--ops-bg);
}



/* ============================================================
   MAMO BMA OPERATIONS UI V2
   Desktop + Tablet Operations Shell
============================================================ */

:root {
    --mamo-red: #e83b36;
    --mamo-red-dark: #ca302c;

    --mamo-dark: #15181b;
    --mamo-dark-2: #202429;
    --mamo-dark-3: #2c3137;

    --mamo-bg: #f3f0ec;
    --mamo-surface: #ffffff;
    --mamo-surface-soft: #f8f6f3;

    --mamo-border: #ddd7cf;

    --mamo-text: #202326;
    --mamo-muted: #7a8085;

    --mamo-green: #22865b;
    --mamo-green-dark: #196e49;
    --mamo-green-soft: #eaf6ef;

    --mamo-orange: #df9219;
    --mamo-orange-soft: #fff3dd;

    --mamo-sidebar-width: 272px;
    --mamo-sidebar-tablet: 78px;

    --mamo-radius: 14px;
}


/* ------------------------------------------------------------
   APP SHELL
------------------------------------------------------------ */

.mamo-app-body {
    margin: 0;
    min-height: 100vh;
    background: var(--mamo-bg);
}

.mamo-app-main {
    min-height: 100vh;
    margin-left: var(--mamo-sidebar-width);
    transition: margin-left .2s ease;
}


/* ------------------------------------------------------------
   SIDEBAR
------------------------------------------------------------ */

.mamo-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;

    display: flex;
    width: var(--mamo-sidebar-width);
    flex-direction: column;

    box-sizing: border-box;

    color: #fff;

    background:
        radial-gradient(
            circle at 20% 12%,
            rgba(232,59,54,.13),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #121518 0%,
            #171a1e 58%,
            #101316 100%
        );

    border-right: 1px solid rgba(255,255,255,.06);

    box-shadow:
        12px 0 40px rgba(14,16,18,.08);
}


.mamo-sidebar-brand {
    padding: 25px 20px 20px;

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


.mamo-brand-main {
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -.06em;
}


.mamo-brand-main span {
    color: #aeb3b7;
    font-weight: 500;
}


.mamo-brand-sub {
    margin-top: 8px;

    color: #777e84;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .13em;
}


.mamo-brand-badge {
    display: inline-flex;

    margin-top: 18px;

    padding: 8px 10px;

    border-radius: 5px;

    color: #fff;
    background: var(--mamo-red);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .08em;

    box-shadow:
        0 8px 22px rgba(232,59,54,.18);
}


.mamo-sidebar-nav {
    flex: 1;

    padding: 10px 9px 20px;

    overflow-y: auto;
}


.mamo-nav-section {
    margin:
        18px 10px
        8px;

    color: #687078;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .18em;
}


.mamo-nav-item {
    position: relative;

    display: flex;

    min-height: 46px;

    align-items: center;

    gap: 12px;

    padding: 0 13px;

    box-sizing: border-box;

    border:
        1px solid transparent;

    border-radius: 9px;

    color: #c7cbce;

    text-decoration: none;

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

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


.mamo-nav-item:hover {
    color: #fff;

    background:
        rgba(255,255,255,.045);

    transform:
        translateX(1px);
}


.mamo-nav-item.is-active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(232,59,54,.16),
            rgba(232,59,54,.04)
        );

    border-color:
        rgba(232,59,54,.38);

    box-shadow:
        inset 3px 0 0
        var(--mamo-red);
}


.mamo-nav-item.is-visited:not(.is-active) {
    border-color:
        rgba(34,134,91,.46);

    color: #d7eee2;
}


.mamo-nav-item.is-active.is-visited {
    border-color:
        rgba(34,134,91,.85);

    box-shadow:
        inset 3px 0 0
        var(--mamo-green);
}


.mamo-nav-icon {
    display: grid;

    width: 23px;
    height: 23px;

    flex: 0 0 23px;

    place-items: center;

    color: #757d84;

    font-size: 15px;
}


.mamo-nav-item.is-active
.mamo-nav-icon {
    color: #fff;
}


.mamo-nav-item.is-visited
.mamo-nav-icon {
    color: var(--mamo-green);
}


.mamo-nav-label {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.mamo-nav-soon {
    margin-left: auto;

    padding: 3px 5px;

    border-radius: 4px;

    color: #777d82;

    background:
        rgba(255,255,255,.05);

    font-size: 6px;

    letter-spacing: .08em;
}


.mamo-nav-item.is-disabled {
    opacity: .45;

    cursor: default;
}


.mamo-sidebar-footer {
    padding: 15px 18px 20px;

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


.mamo-sidebar-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #aab0b4;

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


.mamo-live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--mamo-green);

    box-shadow:
        0 0 0 4px
        rgba(34,134,91,.10);
}


.mamo-sidebar-version {
    margin-top: 9px;

    color: #555d63;

    font-size: 7px;
}


/* ------------------------------------------------------------
   BUTTONS / TOUCH UX
------------------------------------------------------------ */

.ops-ui button,
.ops-ui .run-section,
.ops-ui .run-status,
.ops-ui .group-card {
    -webkit-tap-highlight-color:
        transparent;
}


.ops-ui button:not(:disabled),
.ops-ui a {
    cursor: pointer;
}


.ops-ui button:not(:disabled):active,
.ops-ui .group-card:active,
.ops-ui .run-section:active {
    transform:
        scale(.985);
}


/* ------------------------------------------------------------
   ACTIVE WORKSPACE
------------------------------------------------------------ */

.ops-ui .run-section.active {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--mamo-dark-2),
            var(--mamo-dark)
        );

    border-color:
        var(--mamo-green);

    box-shadow:
        0 7px 18px
        rgba(20,24,27,.13);
}


.ops-ui .run-section.visited:not(.active) {
    color:
        var(--mamo-green-dark);

    border-color:
        var(--mamo-green);

    background:
        var(--mamo-green-soft);
}


/* ------------------------------------------------------------
   GROUP CARDS
------------------------------------------------------------ */

.ops-ui .group-card.active {
    color: #fff;

    background:
        linear-gradient(
            140deg,
            #252a2f,
            #181c20
        );

    border-color:
        var(--mamo-red);

    box-shadow:
        0 10px 24px
        rgba(19,22,25,.13);
}


.ops-ui .group-card.active
.group-number,
.ops-ui .group-card.active
.group-count {
    color: #fff;
}


.ops-ui .group-card.active
.group-place {
    color: #aeb4b8;
}


.ops-ui .group-card.done {
    opacity: 1;

    border-color:
        var(--mamo-green);

    background:
        var(--mamo-green-soft);
}


.ops-ui .group-card.done
.group-number,
.ops-ui .group-card.done
.group-count {
    color:
        var(--mamo-green-dark);
}


/* ------------------------------------------------------------
   PROGRESS BARS
------------------------------------------------------------ */

.ops-ui .group-progress,
.ops-ui .annual-progress-bar {
    background:
        #e8e5e0;
}


.ops-ui .group-progress > div,
.ops-ui .annual-progress-bar > div {
    background:
        linear-gradient(
            90deg,
            #e83b36 0%,
            #ee6931 35%,
            #dda01d 65%,
            #22865b 100%
        );

    box-shadow:
        0 2px 7px
        rgba(34,134,91,.10);
}


.ops-ui .group-card.done
.group-progress > div {
    background:
        linear-gradient(
            90deg,
            #2b9a68,
            #19764e
        );
}


/* ------------------------------------------------------------
   COMPLETED STATES
------------------------------------------------------------ */

.ops-ui .detector-button.done {
    color:
        var(--mamo-green-dark);

    border:
        2px solid
        var(--mamo-green);

    background:
        var(--mamo-green-soft);

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.65);
}


.ops-ui .annual-progress-stat:nth-child(3) {
    border-color:
        rgba(34,134,91,.34);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f1faf5
        );
}


.ops-ui .annual-progress-stat:nth-child(3)
strong {
    color:
        var(--mamo-green-dark);
}


/* ------------------------------------------------------------
   OPEN / ATTENTION
------------------------------------------------------------ */

.ops-ui .annual-progress-stat.warning {
    border-color:
        rgba(223,146,25,.34);

    background:
        var(--mamo-orange-soft);
}


.ops-ui .annual-progress-stat.danger {
    border-color:
        rgba(232,59,54,.28);

    background:
        #fff5f4;
}


/* ------------------------------------------------------------
   DETECTOR TOUCH BUTTONS
------------------------------------------------------------ */

.ops-ui .detector-button {
    min-height: 82px;

    transition:
        transform .12s ease,
        box-shadow .12s ease,
        border-color .12s ease;
}


.ops-ui .detector-button:not(.done):hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 22px
        rgba(232,59,54,.18);
}


.ops-ui .detector-issue {
    transition:
        background .12s ease,
        border-color .12s ease,
        transform .12s ease;
}


.ops-ui .detector-issue:hover {
    color: #fff;

    background:
        var(--mamo-dark-2);

    border-color:
        var(--mamo-dark-2);
}


/* ------------------------------------------------------------
   TABLET LANDSCAPE
------------------------------------------------------------ */

@media
(max-width: 1180px)
and (min-width: 821px) {

    .mamo-sidebar {
        width:
            var(--mamo-sidebar-tablet);
    }

    .mamo-app-main {
        margin-left:
            var(--mamo-sidebar-tablet);
    }

    .mamo-sidebar-brand {
        padding:
            20px 9px 16px;

        text-align: center;
    }

    .mamo-brand-main {
        font-size: 18px;
    }

    .mamo-brand-main span,
    .mamo-brand-sub,
    .mamo-brand-badge,
    .mamo-nav-label,
    .mamo-nav-section,
    .mamo-nav-soon,
    .mamo-sidebar-version {
        display: none;
    }

    .mamo-sidebar-nav {
        padding:
            16px 9px;
    }

    .mamo-nav-item {
        justify-content: center;

        min-height: 54px;

        padding: 0;

        margin-bottom: 5px;
    }

    .mamo-nav-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 18px;
    }

    .mamo-sidebar-footer {
        padding: 15px 0;

        text-align: center;
    }

    .mamo-sidebar-status {
        justify-content: center;
    }

}


/* ------------------------------------------------------------
   SMALL TABLET / MOBILE
------------------------------------------------------------ */

@media (max-width: 820px) {

    .mamo-sidebar {
        display: none;
    }

    .mamo-app-main {
        margin-left: 0;
    }

}



/* ============================================================
   MAMO BMA UI V3
   Sidebar / Contrast / Tablet Workspace Refinement
============================================================ */


/* ------------------------------------------------------------
   SIDEBAR BRAND FIX
------------------------------------------------------------ */

.mamo-sidebar {
    overflow: hidden;
}

.mamo-sidebar-brand {
    position: relative;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

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

    padding: 28px 22px 24px !important;

    gap: 0 !important;
}

.mamo-brand-main {
    display: block !important;

    width: 100%;

    color: #fff;

    font-size: 27px !important;
    font-weight: 950;

    line-height: 1;
    letter-spacing: -.045em;

    white-space: nowrap;
}

.mamo-brand-main span {
    display: inline !important;

    margin-left: 7px;

    color: #aeb4b9;

    font-weight: 500;
}

.mamo-brand-sub {
    display: block !important;

    margin-top: 10px !important;

    max-width: 190px;

    color: #92999f !important;

    font-size: 8px !important;
    line-height: 1.55;

    letter-spacing: .15em;
}

.mamo-brand-badge {
    position: static !important;

    display: inline-flex !important;

    width: auto !important;
    max-width: calc(100% - 4px);

    margin: 17px 0 0 !important;

    padding: 9px 11px;

    box-sizing: border-box;

    border-radius: 6px;

    white-space: nowrap;

    color: #fff;
    background: var(--mamo-red);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .09em;

    box-shadow:
        0 9px 24px
        rgba(232,59,54,.20);
}


/* ------------------------------------------------------------
   SIDEBAR STRONGER CONTRAST
------------------------------------------------------------ */

.mamo-sidebar {
    background:
        radial-gradient(
            circle at 20% 5%,
            rgba(232,59,54,.12),
            transparent 26%
        ),
        linear-gradient(
            180deg,
            #15181b 0%,
            #171b1f 50%,
            #101316 100%
        );
}

.mamo-nav-section {
    color: #8a9299 !important;
}

.mamo-nav-item {
    color: #c8cdd1 !important;

    font-weight: 750;
}

.mamo-nav-icon {
    color: #929aa1 !important;
}

.mamo-nav-item:hover {
    color: #fff !important;

    background:
        rgba(255,255,255,.06);
}

.mamo-nav-item.is-active {
    color: #fff !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );
}

.mamo-nav-item.is-active .mamo-nav-icon {
    color: #fff !important;
}


/*
   Aktuell geöffnet + bereits besucht
   = grüne Führungskante
*/

.mamo-nav-item.is-active.is-visited {
    border-color:
        rgba(42,154,103,.78) !important;

    background:
        linear-gradient(
            90deg,
            rgba(42,154,103,.12),
            rgba(255,255,255,.025)
        ) !important;

    box-shadow:
        inset 4px 0 0
        #26945f !important;
}

.mamo-nav-item.is-active.is-visited
.mamo-nav-icon {
    color: #35ad75 !important;
}

.mamo-nav-item.is-disabled {
    opacity: .58;
}


/* ------------------------------------------------------------
   MAIN WORKSPACE
------------------------------------------------------------ */

.mamo-app-main {
    background:
        linear-gradient(
            180deg,
            #f3f0ec 0%,
            #f0ede8 100%
        );
}


/* Hauptkarten stärker voneinander abheben */

.ops-ui .run-top,
.ops-ui .annual-progress-card,
.ops-ui .run-filter-panel,
.ops-ui .detector-panel,
.ops-ui .compact-item {
    border:
        1px solid #d8d2ca;

    box-shadow:
        0 1px 2px rgba(20,24,28,.025),
        0 10px 28px rgba(20,24,28,.055);
}


/* ------------------------------------------------------------
   MODULE SWITCHER
   Melder / Komponenten / Signale
------------------------------------------------------------ */

.ops-ui .run-sections {
    display: inline-flex;

    gap: 5px;

    padding: 6px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #292e33,
            #1e2226
        );

    box-shadow:
        0 8px 20px
        rgba(20,24,28,.08);
}

.ops-ui .run-section {
    min-height: 43px;

    border:
        1px solid
        rgba(255,255,255,.10);

    color: #d9dde0 !important;

    background:
        rgba(255,255,255,.025);

    box-shadow: none;
}

.ops-ui .run-section:hover {
    color: #fff !important;

    border-color:
        rgba(255,255,255,.24);

    background:
        rgba(255,255,255,.07);
}


/* aktuell geöffnet */

.ops-ui .run-section.active {
    color: #fff !important;

    border-color:
        #299664 !important;

    background:
        linear-gradient(
            145deg,
            #343a40,
            #24292e
        ) !important;

    box-shadow:
        inset 0 0 0 1px
        rgba(41,150,100,.10),
        0 5px 14px
        rgba(0,0,0,.15);
}


/* bereits besucht */

.ops-ui .run-section.visited:not(.active) {
    color: #bde2ce !important;

    border-color:
        rgba(41,150,100,.45);

    background:
        rgba(41,150,100,.08);
}


/* ------------------------------------------------------------
   FILTER AREA
------------------------------------------------------------ */

.ops-ui .run-filter-panel {
    padding: 13px;

    background:
        rgba(255,255,255,.92);
}

.ops-ui .run-input,
.ops-ui .run-select {
    border:
        1px solid #d4cec7;

    background:
        #fff;

    color:
        #25292d;
}

.ops-ui .run-input:focus,
.ops-ui .run-select:focus {
    border-color:
        #32383e;

    box-shadow:
        0 0 0 3px
        rgba(32,36,41,.07);
}


/* ------------------------------------------------------------
   STATUS FILTERS
------------------------------------------------------------ */

.ops-ui .run-status {
    min-height: 30px;

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

    padding:
        0 11px;

    font-weight: 850;
}


/* Offen */

.ops-ui .run-statuses
.run-status:nth-child(1) {
    color:
        #c8322e;

    border-color:
        rgba(232,59,54,.5);

    background:
        #fff8f7;
}


/* Mängel */

.ops-ui .run-statuses
.run-status:nth-child(2) {
    color:
        #9c302c;

    border-color:
        #dfc2bf;
}


/* Geprüft */

.ops-ui .run-statuses
.run-status:nth-child(3) {
    color:
        #207a51;

    border-color:
        #bcdcca;

    background:
        #f3faf6;
}


/* Alle */

.ops-ui .run-statuses
.run-status:nth-child(4) {
    color:
        #555b60;

    border-color:
        #d7d2cb;
}


/* ------------------------------------------------------------
   ACTIVE GROUP
------------------------------------------------------------ */

.ops-ui .group-card.active {
    border:
        2px solid
        var(--mamo-red) !important;

    background:
        linear-gradient(
            145deg,
            #252a2f 0%,
            #1b1f23 100%
        ) !important;

    box-shadow:
        0 9px 24px
        rgba(20,24,28,.13);
}


/* Fertige Gruppe */

.ops-ui .group-card.done {
    border:
        2px solid
        var(--mamo-green) !important;

    background:
        linear-gradient(
            180deg,
            #f8fdf9,
            #edf8f2
        ) !important;
}


/* ------------------------------------------------------------
   DETECTOR PANEL
------------------------------------------------------------ */

.ops-ui .detector-head {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #faf9f7
        );
}

.ops-ui .detector-head h2 {
    color:
        #202428;

    font-weight:
        900;
}


/* Offener Melder */

.ops-ui .detector-button:not(.done) {
    border:
        2px solid
        var(--mamo-red);

    background:
        linear-gradient(
            145deg,
            #ef403a,
            #db312c
        );

    color: #fff;

    box-shadow:
        0 6px 16px
        rgba(232,59,54,.15);
}


/* Fertiger Melder */

.ops-ui .detector-button.done {
    border:
        2px solid
        var(--mamo-green) !important;

    color:
        #176a44 !important;

    background:
        linear-gradient(
            180deg,
            #f6fcf8,
            #e6f5ed
        ) !important;

    box-shadow:
        0 5px 14px
        rgba(34,134,91,.10);
}


/* ------------------------------------------------------------
   KPI CARDS
------------------------------------------------------------ */

.ops-ui .run-stat {
    background:
        linear-gradient(
            180deg,
            #ffffff,
            #faf9f7
        );

    border-color:
        #dbd5ce;
}

.ops-ui .run-stat strong {
    color:
        #22262a;

    font-weight:
        950;
}


/* ------------------------------------------------------------
   ANNUAL KPI EMPHASIS
------------------------------------------------------------ */

.ops-ui .annual-progress-stat {
    background:
        #faf9f7;
}

.ops-ui .annual-progress-stat:nth-child(3) {
    border:
        1px solid
        rgba(34,134,91,.50);

    background:
        linear-gradient(
            180deg,
            #fafffc,
            #edf8f2
        );
}

.ops-ui .annual-progress-stat:nth-child(4) {
    border:
        1px solid
        rgba(223,146,25,.48);

    background:
        linear-gradient(
            180deg,
            #fffaf0,
            #fff1d7
        );
}

.ops-ui .annual-progress-stat:nth-child(5) {
    border:
        1px solid
        rgba(232,59,54,.38);

    background:
        linear-gradient(
            180deg,
            #fffafa,
            #fff0ef
        );
}


/* ------------------------------------------------------------
   DESKTOP SIDEBAR DIVIDER
------------------------------------------------------------ */

@media (min-width: 1181px) {

    .mamo-sidebar::after {
        content: "";

        position: absolute;

        top: 0;
        right: 0;

        width: 1px;
        height: 100%;

        background:
            linear-gradient(
                180deg,
                rgba(232,59,54,.16),
                rgba(255,255,255,.04),
                rgba(34,134,91,.13)
            );
    }

}



/* ============================================================
   MAMO BMA MASTER SHELL V4
============================================================ */

:root {
    --mamo-shell-sidebar: 286px;
    --mamo-shell-rail: 92px;

    --mamo-shell-dark: #15181b;
    --mamo-shell-dark-2: #1c2024;
    --mamo-shell-dark-3: #292e33;

    --mamo-shell-text: #e1e5e8;
    --mamo-shell-muted: #a3abb1;

    --mamo-shell-red: #e63b36;
    --mamo-shell-green: #2a9664;
    --mamo-shell-orange: #dc9419;
}


/* ------------------------------------------------------------
   BODY + LEGACY SHELL
------------------------------------------------------------ */

body.mamo-app-body {
    margin: 0 !important;

    min-height: 100vh;

    background:
        #f2efeb;
}


/*
   Alte seiteninterne Sidebar vorerst ausblenden.
   Die sichtbare Navigation kommt nur noch aus
   partials/bma-sidebar.blade.php.
*/

body.mamo-app-body
.mamo-app > .mamo-sidebar {
    display: none !important;
}


body.mamo-app-body
.mamo-app {
    display: block !important;

    min-height: 100vh;

    background:
        transparent !important;
}


body.mamo-app-body
.mamo-app > main {
    width: auto !important;

    min-width: 0 !important;

    margin-left:
        var(--mamo-shell-sidebar) !important;
}


body.mamo-app-body
.mamo-app-main {
    min-width: 0;

    margin-left:
        var(--mamo-shell-sidebar) !important;
}


/* ------------------------------------------------------------
   GLOBAL SIDEBAR
------------------------------------------------------------ */

.mamo-global-sidebar {
    position: fixed;

    inset:
        0 auto 0 0;

    z-index: 500;

    display: flex;

    width:
        var(--mamo-shell-sidebar);

    box-sizing:
        border-box;

    flex-direction:
        column;

    overflow: hidden;

    color:
        var(--mamo-shell-text);

    background:
        radial-gradient(
            circle at 18% 4%,
            rgba(230,59,54,.16),
            transparent 23%
        ),
        radial-gradient(
            circle at 90% 65%,
            rgba(42,150,100,.055),
            transparent 29%
        ),
        linear-gradient(
            180deg,
            #171a1e 0%,
            #121518 100%
        );

    border-right:
        1px solid rgba(255,255,255,.07);

    box-shadow:
        14px 0 42px
        rgba(17,20,22,.08);
}


/* ------------------------------------------------------------
   BRAND
------------------------------------------------------------ */

.mamo-global-brand {
    padding:
        27px 22px 22px;

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


.mamo-global-brand-line {
    display: flex;

    align-items: baseline;

    gap: 8px;

    white-space: nowrap;
}


.mamo-global-brand-line strong {
    color: #fff;

    font-size: 29px;
    font-weight: 950;

    line-height: 1;

    letter-spacing: -.055em;
}


.mamo-global-brand-line span {
    color: #c1c7cc;

    font-size: 22px;
    font-weight: 450;
}


.mamo-global-brand-sub {
    margin-top: 9px;

    color: #9da5ab;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .16em;
}


.mamo-global-product-badge {
    display: inline-flex;

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

    box-sizing: border-box;

    margin-top: 17px;

    padding:
        8px 11px;

    overflow: hidden;

    border-radius: 6px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #ea423d,
            #d62f2a
        );

    box-shadow:
        0 8px 22px
        rgba(230,59,54,.18);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .09em;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   CURRENT OBJECT
------------------------------------------------------------ */

.mamo-context-card {
    position: relative;

    margin:
        14px 12px 3px;

    padding:
        14px 14px 13px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.025)
        );
}


.mamo-context-card::before {
    content: "";

    position: absolute;

    inset:
        0 auto 0 0;

    width: 3px;

    background:
        linear-gradient(
            180deg,
            var(--mamo-shell-red),
            var(--mamo-shell-orange)
        );
}


.mamo-context-card.is-global::before {
    background:
        #596168;
}


.mamo-context-kicker {
    color:
        #9ca5ab;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;
}


.mamo-context-object {
    margin-top:
        8px;

    color:
        #ffffff;

    font-size:
        13px;

    font-weight:
        900;

    line-height:
        1.25;
}


.mamo-context-building {
    margin-top:
        3px;

    color:
        #d0d5d9;

    font-size:
        10px;

    font-weight:
        650;
}


.mamo-context-customer {
    margin-top:
        11px;

    padding-top:
        10px;

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

    color:
        #b9c0c5;

    font-size:
        9px;

    line-height:
        1.35;
}


.mamo-context-system {
    display: grid;

    gap: 3px;

    margin-top:
        9px;

    padding:
        8px 9px;

    border-radius:
        7px;

    background:
        rgba(0,0,0,.18);
}


.mamo-context-system strong {
    color:
        #ffffff;

    font-size:
        9px;
}


.mamo-context-system span {
    color:
        #afb7bd;

    font-size:
        8px;

    line-height:
        1.35;
}


.mamo-context-open {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top:
        10px;

    color:
        #e9edef;

    font-size:
        8px;

    font-weight:
        800;

    text-decoration:
        none;
}


.mamo-context-open:hover {
    color:
        #ffffff;
}


/* ------------------------------------------------------------
   NAVIGATION
------------------------------------------------------------ */

.mamo-global-nav {
    flex: 1;

    padding:
        4px 9px 18px;

    overflow-y:
        auto;

    overscroll-behavior:
        contain;
}


.mamo-global-nav-heading {
    margin:
        17px 11px 7px;

    color:
        #939ca3;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}


.mamo-global-nav-item {
    position:
        relative;

    display:
        flex;

    min-height:
        44px;

    box-sizing:
        border-box;

    align-items:
        center;

    gap:
        11px;

    margin:
        2px 0;

    padding:
        0 12px;

    border:
        1px solid transparent;

    border-radius:
        9px;

    color:
        #dde2e5;

    background:
        transparent;

    font-size:
        10px;

    font-weight:
        740;

    line-height:
        1.25;

    text-decoration:
        none;

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


.mamo-global-nav-item:hover {
    color:
        #ffffff;

    border-color:
        rgba(255,255,255,.08);

    background:
        rgba(255,255,255,.055);

    transform:
        translateX(1px);
}


.mamo-global-nav-item.is-active {
    color:
        #ffffff;

    border-color:
        rgba(255,255,255,.14);

    background:
        linear-gradient(
            90deg,
            #30363c,
            #24292e
        );

    box-shadow:
        inset 3px 0 0
        var(--mamo-shell-red);
}


.mamo-global-nav-item.is-disabled {
    color:
        #6e777e;

    cursor:
        default;

    opacity:
        1;
}


.mamo-global-nav-item.is-disabled:hover {
    border-color:
        transparent;

    background:
        transparent;

    transform:
        none;
}


.mamo-global-nav-item small {
    margin-left:
        auto;

    padding:
        3px 5px;

    border-radius:
        4px;

    color:
        #80888e;

    background:
        rgba(255,255,255,.055);

    font-size:
        6px;

    letter-spacing:
        .07em;
}


.mamo-global-nav-icon {
    display:
        grid;

    width:
        22px;

    height:
        22px;

    flex:
        0 0 22px;

    place-items:
        center;

    color:
        #aab2b8;
}


.mamo-global-nav-icon svg {
    width:
        17px;

    height:
        17px;

    fill:
        currentColor;
}


.mamo-global-nav-item.is-active
.mamo-global-nav-icon {
    color:
        #ffffff;
}


.mamo-global-nav-dot {
    width:
        7px;

    height:
        7px;

    flex:
        0 0 7px;

    margin-left:
        7px;

    border:
        1px solid #8e979e;

    border-radius:
        50%;
}


.mamo-global-nav-item.is-active
.mamo-global-nav-dot {
    border-color:
        #ffffff;

    background:
        #ffffff;
}


/* ------------------------------------------------------------
   SIDEBAR FOOTER
------------------------------------------------------------ */

.mamo-global-sidebar-footer {
    padding:
        15px 20px 19px;

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


.mamo-system-state {
    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    color:
        #b2bac0;

    font-size:
        8px;

    font-weight:
        700;
}


.mamo-system-state > span {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--mamo-shell-green);

    box-shadow:
        0 0 0 4px
        rgba(42,150,100,.11);
}


.mamo-global-sidebar-footer small {
    display:
        block;

    margin-top:
        8px;

    color:
        #687178;

    font-size:
        7px;
}


/* ------------------------------------------------------------
   GLOBAL CONTEXT BAR
------------------------------------------------------------ */

.mamo-contextbar {
    position:
        sticky;

    top:
        0;

    z-index:
        120;

    display:
        flex;

    min-height:
        52px;

    box-sizing:
        border-box;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        18px;

    padding:
        0 27px;

    border-bottom:
        1px solid #ddd7d0;

    background:
        rgba(250,249,247,.94);

    backdrop-filter:
        blur(14px);

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


.mamo-contextbar-path {
    display:
        flex;

    min-width:
        0;

    align-items:
        center;

    gap:
        8px;

    overflow:
        hidden;

    color:
        #757b80;

    font-size:
        10px;

    white-space:
        nowrap;
}


.mamo-contextbar-path strong {
    overflow:
        hidden;

    color:
        #24282c;

    font-weight:
        900;

    text-overflow:
        ellipsis;
}


.mamo-contextbar-area {
    color:
        #c7332f;

    font-weight:
        900;
}


.mamo-contextbar-separator {
    color:
        #c4bfba;
}


.mamo-contextbar-visit {
    color:
        #2e3439;

    font-weight:
        850;
}


.mamo-contextbar-object-status {
    display:
        flex;

    max-width:
        260px;

    align-items:
        center;

    gap:
        7px;

    overflow:
        hidden;

    color:
        #43494e;

    font-size:
        9px;

    font-weight:
        800;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.mamo-contextbar-live {
    width:
        7px;

    height:
        7px;

    flex:
        0 0 7px;

    border-radius:
        50%;

    background:
        var(--mamo-shell-green);
}


/* ------------------------------------------------------------
   TABLET LANDSCAPE
------------------------------------------------------------ */

@media
(max-width: 1180px)
and (min-width: 821px) {

    body.mamo-app-body
    .mamo-app > main,
    body.mamo-app-body
    .mamo-app-main {
        margin-left:
            var(--mamo-shell-rail) !important;
    }


    .mamo-global-sidebar {
        width:
            var(--mamo-shell-rail);
    }


    .mamo-global-brand {
        padding:
            20px 8px;
    }


    .mamo-global-brand-line {
        justify-content:
            center;
    }


    .mamo-global-brand-line strong {
        font-size:
            17px;
    }


    .mamo-global-brand-line span,
    .mamo-global-brand-sub,
    .mamo-global-product-badge,
    .mamo-context-card,
    .mamo-global-nav-heading,
    .mamo-global-nav-item > span:not(.mamo-global-nav-icon):not(.mamo-global-nav-dot),
    .mamo-global-nav-item small,
    .mamo-global-sidebar-footer small {
        display:
            none;
    }


    .mamo-global-nav {
        padding:
            17px 10px;
    }


    .mamo-global-nav-item {
        justify-content:
            center;

        min-height:
            54px;

        padding:
            0;
    }


    .mamo-global-nav-icon {
        width:
            34px;

        height:
            34px;

        flex-basis:
            34px;
    }


    .mamo-global-nav-icon svg {
        width:
            19px;

        height:
            19px;
    }


    .mamo-global-nav-dot {
        margin:
            0;
    }


    .mamo-global-sidebar-footer {
        padding:
            17px 0;
    }


    .mamo-system-state {
        justify-content:
            center;
    }


    .mamo-system-state {
        font-size:
            0;
    }

}


/* ------------------------------------------------------------
   MOBILE / SMALL TABLET
------------------------------------------------------------ */

@media (max-width: 820px) {

    .mamo-global-sidebar {
        display:
            none;
    }


    body.mamo-app-body
    .mamo-app > main,
    body.mamo-app-body
    .mamo-app-main {
        margin-left:
            0 !important;
    }


    .mamo-contextbar {
        padding:
            0 14px;
    }


    .mamo-contextbar-object-status {
        display:
            none;
    }

}



/* ============================================================
   MAINTENANCE REQUIREMENTS
============================================================ */

.visit-requirements {
    margin-bottom: 12px;

    padding: 16px;

    border: 1px solid #d6d0c9;
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #faf8f5
        );

    box-shadow:
        0 10px 28px
        rgba(20,24,28,.05);
}


.visit-requirements-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}


.visit-requirements-kicker {
    color: #e23a35;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.visit-requirements h2 {
    margin: 4px 0 0;

    color: #23272b;

    font-size: 18px;
}


.visit-requirements-head p {
    margin: 5px 0 0;

    color: #80858a;

    font-size: 10px;
}


.visit-requirements-summary {
    display: flex;

    gap: 6px;

    flex-wrap: wrap;
}


.req-summary {
    padding: 7px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;
}


.req-summary.open {
    color: #a8322e;

    background: #fff0ef;
}


.req-summary.requested {
    color: #a36b13;

    background: #fff3dc;
}


.req-summary.confirmed {
    color: #176d47;

    background: #eaf7ef;
}


.visit-requirements-grid {
    display: grid;

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

    gap: 10px;

    margin-top: 14px;
}


.visit-requirement-card {
    position: relative;

    overflow: hidden;

    padding: 14px;

    border: 1px solid #ddd7cf;
    border-left: 4px solid #e33a35;

    border-radius: 11px;

    background: #fff;
}


.visit-requirement-card.status-requested {
    border-left-color: #dc9419;
}


.visit-requirement-card.status-confirmed {
    border-left-color: #28885c;
}


.visit-requirement-card.status-completed {
    border-color: #a9d4bb;

    border-left-color: #28885c;

    background:
        linear-gradient(
            180deg,
            #fbfffc,
            #edf8f2
        );
}


.req-card-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}


.req-type {
    color: #858b90;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .1em;

    text-transform: uppercase;
}


.req-card-top h3 {
    margin: 4px 0 0;

    color: #25292d;

    font-size: 13px;
}


.req-status {
    flex: 0 0 auto;

    padding: 6px 8px;

    border-radius: 999px;

    color: #a8322e;

    background: #fff0ef;

    font-size: 7px;
    font-weight: 900;
}


.status-requested .req-status {
    color: #9a6718;

    background: #fff2d9;
}


.status-confirmed .req-status,
.status-completed .req-status {
    color: #196f49;

    background: #e9f6ee;
}


.req-instructions {
    margin: 11px 0 0;

    color: #656b70;

    font-size: 10px;

    line-height: 1.5;
}


.req-meta-grid {
    display: grid;

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

    gap: 7px;

    margin-top: 12px;
}


.req-meta-grid > div {
    padding: 9px;

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

    background: #faf9f7;
}


.req-meta-grid span,
.req-contact > span,
.req-date > span {
    display: block;

    color: #92979b;

    font-size: 7px;
    font-weight: 900;

    text-transform: uppercase;
}


.req-meta-grid strong {
    display: block;

    margin-top: 3px;

    color: #292d31;

    font-size: 10px;
}


.req-contact {
    display: grid;

    gap: 3px;

    margin-top: 10px;

    padding: 10px;

    border-radius: 8px;

    background: #f4f2ef;
}


.req-contact strong {
    color: #303438;

    font-size: 10px;
}


.req-contact small {
    color: #777d81;

    font-size: 8px;
}


.req-action-form {
    margin-top: 12px;
}


.req-date {
    display: grid;

    gap: 5px;
}


.req-date input {
    min-height: 40px;

    box-sizing: border-box;

    padding: 0 10px;

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

    color: #282c30;

    background: #fff;
}


.req-actions {
    display: flex;

    gap: 6px;

    margin-top: 8px;

    flex-wrap: wrap;
}


.req-btn {
    min-height: 39px;

    padding: 0 12px;

    border-radius: 8px;

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

    cursor: pointer;
}


.req-btn.requested {
    border: 1px solid #e0a747;

    color: #9a6718;

    background: #fff3de;
}


.req-btn.confirmed {
    border: 1px solid #28885c;

    color: #fff;

    background: #28885c;
}


.req-btn.completed {
    border: 1px solid #20784f;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #2b9664,
            #20784f
        );
}


@media (max-width: 700px) {

    .visit-requirements-head {
        display: block;
    }

    .visit-requirements-summary {
        margin-top: 10px;
    }

    .visit-requirements-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   STRUCTURED INSPECTION ASSISTANT
============================================================ */

.procedure-open {
    display: inline-flex;

    min-height: 44px;

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

    gap: 10px;

    padding: 0 14px;

    border: 1px solid #2c3137;
    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #32383e,
            #23282d
        );

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

    cursor: pointer;

    box-shadow:
        0 7px 18px
        rgba(20,24,28,.12);
}


.procedure-open span {
    padding: 4px 6px;

    border-radius: 999px;

    color: #dfe4e7;

    background:
        rgba(255,255,255,.08);

    font-size: 7px;
}


.procedure-open.is-complete {
    border-color: #27875b;

    color: #176c47;

    background: #eaf7ef;
}


.procedure-open.is-defect {
    border-color: #dd4741;

    color: #a02f2b;

    background: #fff0ef;
}


.procedure-dialog {
    width:
        min(
            760px,
            calc(100vw - 26px)
        );

    max-height:
        calc(100vh - 32px);

    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 16px;

    background: #f5f2ee;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.30);
}


.procedure-dialog::backdrop {
    background:
        rgba(14,17,19,.62);

    backdrop-filter:
        blur(4px);
}


.procedure-dialog-shell {
    display: flex;

    max-height:
        calc(100vh - 32px);

    flex-direction: column;
}


.procedure-dialog-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 22px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #2c3137,
            #1c2024
        );
}


.procedure-dialog-kicker {
    color: #e26762;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.procedure-dialog-head h2 {
    margin: 5px 0 0;

    font-size: 20px;
}


.procedure-dialog-head p {
    margin: 5px 0 0;

    color: #aeb5ba;

    font-size: 10px;
}


.procedure-close {
    width: 40px;
    height: 40px;

    border: 1px solid
        rgba(255,255,255,.12);

    border-radius: 9px;

    color: #fff;
    background:
        rgba(255,255,255,.05);

    font-size: 23px;

    cursor: pointer;
}


.procedure-steps {
    display: grid;

    gap: 9px;

    padding: 16px;

    overflow-y: auto;
}


.procedure-step {
    display: grid;

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

    gap: 11px;

    padding: 13px;

    border:
        1px solid #ddd7cf;

    border-radius: 11px;

    background: #fff;

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


.procedure-step.is-complete {
    border-color:
        rgba(42,150,100,.48);

    background:
        #f5fbf7;
}


.procedure-step.is-failed {
    border-color:
        #dc5b55;

    background:
        #fff4f3;
}


.procedure-step-number {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;

    background:
        #2b3035;

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


.procedure-step.is-complete
.procedure-step-number {
    background:
        #28885c;
}


.procedure-step.is-failed
.procedure-step-number {
    background:
        #d43b35;
}


.procedure-step-heading {
    display: flex;

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

    gap: 12px;
}


.procedure-step-heading strong {
    color: #24282c;

    font-size: 11px;
}


.procedure-step-heading span {
    color: #878d91;

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


.procedure-step-actions {
    display: grid;

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

    gap: 7px;

    margin-top: 10px;
}


.step-pass,
.step-fail {
    min-height: 45px;

    border-radius: 9px;

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

    cursor: pointer;
}


.step-pass {
    border:
        1px solid #27875b;

    color:
        #1d744e;

    background:
        #edf8f2;
}


.step-fail {
    border:
        1px solid #dc5b55;

    color:
        #a6312c;

    background:
        #fff1f0;
}


.procedure-select,
.procedure-text {
    width: 100%;

    box-sizing:
        border-box;

    margin-top: 10px;

    border:
        1px solid #d7d1ca;

    border-radius:
        9px;

    color:
        #292d31;

    background:
        #fff;

    font: inherit;
}


.procedure-select {
    min-height: 46px;

    padding: 0 11px;
}


.procedure-text {
    padding: 10px;
}


.procedure-text-save {
    min-height: 40px;

    margin-top: 6px;

    padding: 0 13px;

    border: 0;
    border-radius: 8px;

    color: #fff;

    background:
        #282d32;

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


.procedure-dialog-footer {
    display: flex;

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

    gap: 15px;

    padding: 13px 17px;

    border-top:
        1px solid #ddd7cf;

    background: #fff;
}


.procedure-result {
    color: #7e8488;

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


.procedure-result.success {
    color: #1d744e;
}


.procedure-result.defect {
    color: #aa332e;
}


.procedure-done {
    min-height: 42px;

    padding: 0 15px;

    border: 0;
    border-radius: 9px;

    color: #fff;

    background:
        #282d32;

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

    cursor: pointer;
}


@media (max-width: 620px) {

    .procedure-step-actions {
        grid-template-columns: 1fr;
    }

    .procedure-dialog-footer {
        align-items: stretch;

        flex-direction: column;
    }

    .procedure-done {
        width: 100%;
    }

}



/* ============================================================
   PROCEDURE REQUIREMENTS
============================================================ */

.procedure-entry {
    display: grid;
    gap: 6px;
}

.procedure-warning-badge,
.procedure-ready-badge {
    display: inline-flex;
    width: fit-content;

    align-items: center;
    gap: 6px;

    padding: 6px 8px;

    border-radius: 7px;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .02em;
}

.procedure-warning-badge {
    border: 1px solid #e2ad52;

    color: #98620f;

    background: #fff2d8;
}

.procedure-ready-badge {
    border: 1px solid #8bc4a3;

    color: #176b46;

    background: #edf8f2;
}

.procedure-requirement-warning {
    margin:
        14px 16px 0;

    padding: 12px 13px;

    border: 1px solid #e0ab4e;
    border-left: 4px solid #dc9419;

    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #fffaf0,
            #fff1d8
        );
}

.procedure-requirement-warning strong {
    display: block;

    color: #8c5b11;

    font-size: 10px;
}

.procedure-requirement-warning span {
    display: block;

    margin-top: 5px;

    color: #816f55;

    font-size: 9px;

    line-height: 1.45;
}



/* ============================================================
   INSPECTION WORKSPACE / PRÜFAKTE
============================================================ */

.inspection-workspace {
    margin-bottom: 18px;
}


.inspection-workspace-head {
    margin-bottom: 14px;
}


.inspection-workspace-kicker {
    color: var(--mamo-red);

    font-size: 8px;
    font-weight: 900;

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


.inspection-workspace-head h2 {
    margin: 5px 0 0;

    color: #25292d;

    font-size: 22px;
    letter-spacing: -.025em;
}


.inspection-workspace-head p {
    max-width: 700px;

    margin: 6px 0 0;

    color: #7c8286;

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


.inspection-workspace-grid {
    display: grid;

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

    gap: 12px;
}


.inspection-tile {
    position: relative;

    display: flex;

    min-height: 210px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 17px;

    overflow: hidden;

    border: 1px solid #d8d2cb;
    border-top: 3px solid #e33a35;

    border-radius: 14px;

    color: inherit;

    background:
        linear-gradient(
            155deg,
            #ffffff 0%,
            #faf8f5 100%
        );

    box-shadow:
        0 8px 24px rgba(20,24,28,.055);

    text-decoration: none;

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


.inspection-tile:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 30px rgba(20,24,28,.09);
}


.inspection-tile-top {
    display: flex;

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

    gap: 12px;
}


.inspection-tile-icon {
    display: grid;

    width: 36px;
    height: 36px;

    place-items: center;

    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #32383e,
            #20252a
        );

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


.inspection-tile-state {
    padding: 6px 8px;

    border-radius: 999px;

    color: #a6312c;
    background: #fff0ef;

    font-size: 7px;
    font-weight: 900;
}


.inspection-tile-label {
    margin-top: 17px;

    color: #25292d;

    font-size: 18px;
    font-weight: 950;

    letter-spacing: -.025em;
}


.inspection-tile-description {
    margin-top: 4px;

    color: #868c90;

    font-size: 9px;
}


.inspection-tile-numbers {
    display: grid;

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

    gap: 6px;

    margin-top: 17px;
}


.inspection-tile-numbers > div {
    padding: 8px 9px;

    border: 1px solid #e8e4de;

    border-radius: 8px;

    background:
        rgba(255,255,255,.72);
}


.inspection-tile-numbers strong {
    display: block;

    color: #25292d;

    font-size: 15px;
}


.inspection-tile-numbers span {
    display: block;

    margin-top: 2px;

    color: #969b9f;

    font-size: 7px;
    font-weight: 800;

    text-transform: uppercase;
}


.inspection-tile-action {
    display: flex;

    align-items: center;

    margin-top: auto;
    padding-top: 15px;

    color: #30353a;

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


/* teilweise */

.inspection-tile.state-progress {
    border-top-color:
        var(--mamo-orange);
}


.inspection-tile.state-progress
.inspection-tile-state {
    color: #98620f;

    background: #fff2d8;
}


/* komplett erledigt */

.inspection-tile.state-done {
    border:
        1px solid rgba(42,150,100,.55);

    border-top:
        3px solid var(--mamo-green);

    background:
        linear-gradient(
            155deg,
            #fbfffc,
            #edf8f2
        );
}


.inspection-tile.state-done
.inspection-tile-icon {
    background:
        linear-gradient(
            145deg,
            #309b69,
            #20784f
        );
}


.inspection-tile.state-done
.inspection-tile-state {
    color: #176b46;

    background: #e4f4eb;
}


.inspection-tile.state-done
.inspection-tile-action {
    color: #176b46;
}


/* Mangel */

.inspection-tile.state-danger {
    border-color:
        rgba(227,58,53,.48);

    border-top-color:
        var(--mamo-red);
}


.inspection-tile.state-danger
.inspection-tile-state {
    color: #a32f2a;

    background: #fde9e8;
}


/* strukturierte Sonderprüfung */

.inspection-tile-special {
    background:
        linear-gradient(
            145deg,
            #292e33 0%,
            #1d2125 100%
        );

    border-color: #343a40;
}


.inspection-tile-special
.inspection-tile-label {
    color: #fff;
}


.inspection-tile-special
.inspection-tile-description {
    color: #aeb5ba;
}


.inspection-tile-special
.inspection-tile-numbers > div {
    border-color:
        rgba(255,255,255,.09);

    background:
        rgba(255,255,255,.055);
}


.inspection-tile-special
.inspection-tile-numbers strong {
    color: #fff;
}


.inspection-tile-special
.inspection-tile-numbers span {
    color: #969ea4;
}


.inspection-tile-special
.inspection-tile-action {
    color: #fff;
}


.inspection-tile-special.state-done {
    border-color:
        var(--mamo-green);

    background:
        linear-gradient(
            145deg,
            #24342d,
            #17241e
        );
}


/* zurück zur Prüfakte */

.run-section-home {
    color: #fff !important;

    border-color:
        rgba(255,255,255,.14) !important;

    background:
        rgba(255,255,255,.06) !important;
}


@media (max-width: 1100px) {

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

}


@media (max-width: 650px) {

    .inspection-workspace-grid {
        grid-template-columns: 1fr;
    }

    .inspection-tile {
        min-height: 190px;
    }

}



/* ============================================================
   TILE-FIRST TABLET UX
============================================================ */

.run-quick-summary {
    display: flex;
    gap: 7px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.run-quick-summary span {
    display: inline-flex;
    min-height: 32px;

    align-items: center;
    gap: 5px;

    padding: 0 9px;

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

    color: #7b8185;
    background: #faf9f7;

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

.run-quick-summary strong {
    color: #292d31;
    font-size: 11px;
}


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


.inspection-tile {
    min-height: 190px;

    padding: 16px;

    touch-action: manipulation;
}


.inspection-tile-big-value,
.inspection-tile-progress-value {
    margin-top: 16px;

    color: #25292d;

    font-size: 30px;
    font-weight: 950;

    letter-spacing: -.045em;
}


.inspection-tile-special
.inspection-tile-big-value,
.inspection-tile-special
.inspection-tile-progress-value {
    color: #fff;
}


.inspection-mini-progress {
    height: 7px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e8e4de;
}


.inspection-mini-progress > div {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #e63b36,
            #dc9419,
            #2a9664
        );
}


.inspection-tile-icon.info {
    border: 1px solid #74818b;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #64717a,
            #40484f
        );

    font-family: Georgia, serif;

    font-size: 19px;
    font-style: italic;
}


.inspection-tile-state.info {
    color: #53616a;
    background: #edf0f2;
}


.inspection-info-tile {
    border-top-color: #68757e;
}


.inspection-detail-page {
    padding: 2px 0 20px;
}


.inspection-detail-head {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 14px;
}


.inspection-detail-head h2 {
    margin: 4px 0 0;

    color: #25292d;

    font-size: 21px;
}


.inspection-back-button {
    display: inline-flex;

    min-height: 48px;

    align-items: center;

    padding: 0 15px;

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

    color: #33383c;
    background: #fff;

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

    text-decoration: none;
}


.inspection-info-grid {
    display: grid;

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

    gap: 10px;
}


.inspection-info-card {
    display: grid;

    min-height: 100px;

    box-sizing: border-box;

    grid-template-columns: 42px 1fr;

    gap: 12px;

    padding: 14px;

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

    background: #fff;
}


.inspection-info-icon {
    display: grid;

    width: 38px;
    height: 38px;

    place-items: center;

    border-radius: 50%;

    color: #fff;

    background: #56616a;

    font-family: Georgia, serif;

    font-size: 18px;
    font-style: italic;
}


.inspection-info-card span {
    color: #292d31;

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


.inspection-info-card p {
    margin: 6px 0 0;

    color: #70767a;

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


.inspection-empty-info {
    padding: 30px;

    border: 1px dashed #d8d2cb;
    border-radius: 12px;

    color: #858b8f;
    background: #faf9f7;

    text-align: center;

    font-size: 10px;
}


/*
   Alles, was mit dem Finger bedient wird,
   bewusst größer halten.
*/

.inspection-tile,
.run-section,
.run-status,
.procedure-open,
.req-btn,
.inspection-back-button {
    -webkit-tap-highlight-color: transparent;
}


@media (max-width: 1450px) {

    .inspection-workspace-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

}


@media (max-width: 1050px) {

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

}


@media (max-width: 650px) {

    .inspection-workspace-grid,
    .inspection-info-grid {
        grid-template-columns: 1fr;
    }

    .inspection-tile {
        min-height: 175px;
    }

}



/* ============================================================
   MAMO BMA OPERATIONS UI V2
   Desktop + Tablet Operations Shell
============================================================ */

:root {
    --mamo-red: #e83b36;
    --mamo-red-dark: #ca302c;

    --mamo-dark: #15181b;
    --mamo-dark-2: #202429;
    --mamo-dark-3: #2c3137;

    --mamo-bg: #f3f0ec;
    --mamo-surface: #ffffff;
    --mamo-surface-soft: #f8f6f3;

    --mamo-border: #ddd7cf;

    --mamo-text: #202326;
    --mamo-muted: #7a8085;

    --mamo-green: #22865b;
    --mamo-green-dark: #196e49;
    --mamo-green-soft: #eaf6ef;

    --mamo-orange: #df9219;
    --mamo-orange-soft: #fff3dd;

    --mamo-sidebar-width: 272px;
    --mamo-sidebar-tablet: 78px;

    --mamo-radius: 14px;
}


/* ------------------------------------------------------------
   APP SHELL
------------------------------------------------------------ */

.mamo-app-body {
    margin: 0;
    min-height: 100vh;
    background: var(--mamo-bg);
}

.mamo-app-main {
    min-height: 100vh;
    margin-left: var(--mamo-sidebar-width);
    transition: margin-left .2s ease;
}


/* ------------------------------------------------------------
   SIDEBAR
------------------------------------------------------------ */

.mamo-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;

    display: flex;
    width: var(--mamo-sidebar-width);
    flex-direction: column;

    box-sizing: border-box;

    color: #fff;

    background:
        radial-gradient(
            circle at 20% 12%,
            rgba(232,59,54,.13),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #121518 0%,
            #171a1e 58%,
            #101316 100%
        );

    border-right: 1px solid rgba(255,255,255,.06);

    box-shadow:
        12px 0 40px rgba(14,16,18,.08);
}


.mamo-sidebar-brand {
    padding: 25px 20px 20px;

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


.mamo-brand-main {
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -.06em;
}


.mamo-brand-main span {
    color: #aeb3b7;
    font-weight: 500;
}


.mamo-brand-sub {
    margin-top: 8px;

    color: #777e84;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .13em;
}


.mamo-brand-badge {
    display: inline-flex;

    margin-top: 18px;

    padding: 8px 10px;

    border-radius: 5px;

    color: #fff;
    background: var(--mamo-red);

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .08em;

    box-shadow:
        0 8px 22px rgba(232,59,54,.18);
}


.mamo-sidebar-nav {
    flex: 1;

    padding: 10px 9px 20px;

    overflow-y: auto;
}


.mamo-nav-section {
    margin:
        18px 10px
        8px;

    color: #687078;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .18em;
}


.mamo-nav-item {
    position: relative;

    display: flex;

    min-height: 46px;

    align-items: center;

    gap: 12px;

    padding: 0 13px;

    box-sizing: border-box;

    border:
        1px solid transparent;

    border-radius: 9px;

    color: #c7cbce;

    text-decoration: none;

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

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


.mamo-nav-item:hover {
    color: #fff;

    background:
        rgba(255,255,255,.045);

    transform:
        translateX(1px);
}


.mamo-nav-item.is-active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(232,59,54,.16),
            rgba(232,59,54,.04)
        );

    border-color:
        rgba(232,59,54,.38);

    box-shadow:
        inset 3px 0 0
        var(--mamo-red);
}


.mamo-nav-item.is-visited:not(.is-active) {
    border-color:
        rgba(34,134,91,.46);

    color: #d7eee2;
}


.mamo-nav-item.is-active.is-visited {
    border-color:
        rgba(34,134,91,.85);

    box-shadow:
        inset 3px 0 0
        var(--mamo-green);
}


.mamo-nav-icon {
    display: grid;

    width: 23px;
    height: 23px;

    flex: 0 0 23px;

    place-items: center;

    color: #757d84;

    font-size: 15px;
}


.mamo-nav-item.is-active
.mamo-nav-icon {
    color: #fff;
}


.mamo-nav-item.is-visited
.mamo-nav-icon {
    color: var(--mamo-green);
}


.mamo-nav-label {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.mamo-nav-soon {
    margin-left: auto;

    padding: 3px 5px;

    border-radius: 4px;

    color: #777d82;

    background:
        rgba(255,255,255,.05);

    font-size: 6px;

    letter-spacing: .08em;
}


.mamo-nav-item.is-disabled {
    opacity: .45;

    cursor: default;
}


.mamo-sidebar-footer {
    padding: 15px 18px 20px;

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


.mamo-sidebar-status {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #aab0b4;

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


.mamo-live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--mamo-green);

    box-shadow:
        0 0 0 4px
        rgba(34,134,91,.10);
}


.mamo-sidebar-version {
    margin-top: 9px;

    color: #555d63;

    font-size: 7px;
}


/* ------------------------------------------------------------
   BUTTONS / TOUCH UX
------------------------------------------------------------ */

.ops-ui button,
.ops-ui .run-section,
.ops-ui .run-status,
.ops-ui .group-card {
    -webkit-tap-highlight-color:
        transparent;
}


.ops-ui button:not(:disabled),
.ops-ui a {
    cursor: pointer;
}


.ops-ui button:not(:disabled):active,
.ops-ui .group-card:active,
.ops-ui .run-section:active {
    transform:
        scale(.985);
}


/* ------------------------------------------------------------
   ACTIVE WORKSPACE
------------------------------------------------------------ */

.ops-ui .run-section.active {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--mamo-dark-2),
            var(--mamo-dark)
        );

    border-color:
        var(--mamo-green);

    box-shadow:
        0 7px 18px
        rgba(20,24,27,.13);
}


.ops-ui .run-section.visited:not(.active) {
    color:
        var(--mamo-green-dark);

    border-color:
        var(--mamo-green);

    background:
        var(--mamo-green-soft);
}


/* ------------------------------------------------------------
   GROUP CARDS
------------------------------------------------------------ */

.ops-ui .group-card.active {
    color: #fff;

    background:
        linear-gradient(
            140deg,
            #252a2f,
            #181c20
        );

    border-color:
        var(--mamo-red);

    box-shadow:
        0 10px 24px
        rgba(19,22,25,.13);
}


.ops-ui .group-card.active
.group-number,
.ops-ui .group-card.active
.group-count {
    color: #fff;
}


.ops-ui .group-card.active
.group-place {
    color: #aeb4b8;
}


.ops-ui .group-card.done {
    opacity: 1;

    border-color:
        var(--mamo-green);

    background:
        var(--mamo-green-soft);
}


.ops-ui .group-card.done
.group-number,
.ops-ui .group-card.done
.group-count {
    color:
        var(--mamo-green-dark);
}


/* ------------------------------------------------------------
   PROGRESS BARS
------------------------------------------------------------ */

.ops-ui .group-progress,
.ops-ui .annual-progress-bar {
    background:
        #e8e5e0;
}


.ops-ui .group-progress > div,
.ops-ui .annual-progress-bar > div {
    background:
        linear-gradient(
            90deg,
            #e83b36 0%,
            #ee6931 35%,
            #dda01d 65%,
            #22865b 100%
        );

    box-shadow:
        0 2px 7px
        rgba(34,134,91,.10);
}


.ops-ui .group-card.done
.group-progress > div {
    background:
        linear-gradient(
            90deg,
            #2b9a68,
            #19764e
        );
}


/* ------------------------------------------------------------
   COMPLETED STATES
------------------------------------------------------------ */

.ops-ui .detector-button.done {
    color:
        var(--mamo-green-dark);

    border:
        2px solid
        var(--mamo-green);

    background:
        var(--mamo-green-soft);

    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.65);
}


.ops-ui .annual-progress-stat:nth-child(3) {
    border-color:
        rgba(34,134,91,.34);

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f1faf5
        );
}


.ops-ui .annual-progress-stat:nth-child(3)
strong {
    color:
        var(--mamo-green-dark);
}


/* ------------------------------------------------------------
   OPEN / ATTENTION
------------------------------------------------------------ */

.ops-ui .annual-progress-stat.warning {
    border-color:
        rgba(223,146,25,.34);

    background:
        var(--mamo-orange-soft);
}


.ops-ui .annual-progress-stat.danger {
    border-color:
        rgba(232,59,54,.28);

    background:
        #fff5f4;
}


/* ------------------------------------------------------------
   DETECTOR TOUCH BUTTONS
------------------------------------------------------------ */

.ops-ui .detector-button {
    min-height: 82px;

    transition:
        transform .12s ease,
        box-shadow .12s ease,
        border-color .12s ease;
}


.ops-ui .detector-button:not(.done):hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 10px 22px
        rgba(232,59,54,.18);
}


.ops-ui .detector-issue {
    transition:
        background .12s ease,
        border-color .12s ease,
        transform .12s ease;
}


.ops-ui .detector-issue:hover {
    color: #fff;

    background:
        var(--mamo-dark-2);

    border-color:
        var(--mamo-dark-2);
}


/* ------------------------------------------------------------
   TABLET LANDSCAPE
------------------------------------------------------------ */

@media
(max-width: 1180px)
and (min-width: 821px) {

    .mamo-sidebar {
        width:
            var(--mamo-sidebar-tablet);
    }

    .mamo-app-main {
        margin-left:
            var(--mamo-sidebar-tablet);
    }

    .mamo-sidebar-brand {
        padding:
            20px 9px 16px;

        text-align: center;
    }

    .mamo-brand-main {
        font-size: 18px;
    }

    .mamo-brand-main span,
    .mamo-brand-sub,
    .mamo-brand-badge,
    .mamo-nav-label,
    .mamo-nav-section,
    .mamo-nav-soon,
    .mamo-sidebar-version {
        display: none;
    }

    .mamo-sidebar-nav {
        padding:
            16px 9px;
    }

    .mamo-nav-item {
        justify-content: center;

        min-height: 54px;

        padding: 0;

        margin-bottom: 5px;
    }

    .mamo-nav-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 18px;
    }

    .mamo-sidebar-footer {
        padding: 15px 0;

        text-align: center;
    }

    .mamo-sidebar-status {
        justify-content: center;
    }

}


/* ------------------------------------------------------------
   SMALL TABLET / MOBILE
------------------------------------------------------------ */

@media (max-width: 820px) {

    .mamo-sidebar {
        display: none;
    }

    .mamo-app-main {
        margin-left: 0;
    }

}



/* ============================================================
   MAMO BMA SIDEBAR V5
   Einheitliche Touch-Navigation für ALLE Menüpunkte
============================================================ */


/* große Objektkarte aus der Sidebar entfernen */

.mamo-context-card {
    display: none !important;
}


/* ------------------------------------------------------------
   NAVIGATION
------------------------------------------------------------ */

.mamo-global-nav {
    padding: 18px 12px 26px;
}


/* Bereichsüberschriften */

.mamo-global-nav-heading {
    margin: 23px 9px 9px;

    color: #9ba4ac;

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

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


/* ------------------------------------------------------------
   JEDER MENÜPUNKT
------------------------------------------------------------ */

.mamo-global-nav-item {
    position: relative;

    display: flex;

    min-height: 58px;

    box-sizing: border-box;

    align-items: center;

    gap: 13px;

    margin: 5px 0;

    padding: 0 15px;

    overflow: hidden;

    border:
        1px solid
        rgba(232,59,54,.24);

    border-radius: 14px;

    color: #dde3e7 !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.035);

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

    text-decoration: none;

    cursor: pointer;

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


/*
   rote Führungskante bei normalem Menüpunkt
*/

.mamo-global-nav-item::before {
    content: "";

    position: absolute;

    top: 8px;
    bottom: 8px;
    left: 0;

    width: 4px;

    border-radius:
        0 6px 6px 0;

    background:
        linear-gradient(
            180deg,
            #ff6257,
            #dd302a
        );

    box-shadow:
        0 0 13px
        rgba(232,59,54,.25);
}


/* Hover */

.mamo-global-nav-item:hover {
    color: #fff !important;

    border-color:
        rgba(232,59,54,.58);

    background:
        linear-gradient(
            145deg,
            rgba(232,59,54,.13),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 10px 24px
        rgba(0,0,0,.17);

    transform:
        translateY(-1px);
}


/* ------------------------------------------------------------
   AKTUELL GEÖFFNET
------------------------------------------------------------ */

.mamo-global-nav-item.is-active {
    color: #ffffff !important;

    border:
        1px solid
        rgba(54,204,127,.58) !important;

    background:
        linear-gradient(
            135deg,
            rgba(34,74,54,.95),
            rgba(25,47,37,.96)
        ) !important;

    box-shadow:
        0 10px 26px
        rgba(0,0,0,.19),
        inset 0 1px 0
        rgba(255,255,255,.055),
        0 0 0 1px
        rgba(54,204,127,.045) !important;
}


/* grüne Führungskante */

.mamo-global-nav-item.is-active::before {
    background:
        linear-gradient(
            180deg,
            #42dc8e,
            #15965a
        ) !important;

    box-shadow:
        0 0 15px
        rgba(54,204,127,.30);
}


/* ------------------------------------------------------------
   ICONS
------------------------------------------------------------ */

.mamo-global-nav-icon {
    display: grid;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    place-items: center;

    border-radius: 9px;

    color: #c2c9cf !important;

    background:
        rgba(255,255,255,.045);

    transition:
        color .16s ease,
        background .16s ease,
        transform .16s ease;
}


.mamo-global-nav-icon svg {
    width: 18px;
    height: 18px;
}


.mamo-global-nav-item:hover
.mamo-global-nav-icon {
    color: #fff !important;

    background:
        rgba(232,59,54,.12);
}


.mamo-global-nav-item.is-active
.mamo-global-nav-icon {
    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            rgba(54,204,127,.24),
            rgba(24,130,78,.18)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(74,214,143,.15);
}


/* kleine runde Technik-Icons ebenfalls angleichen */

.mamo-global-nav-dot {
    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    margin-left: 9px;

    border:
        2px solid #aab2b8;

    border-radius: 50%;
}


.mamo-global-nav-item:hover
.mamo-global-nav-dot {
    border-color: #ef554d;
}


.mamo-global-nav-item.is-active
.mamo-global-nav-dot {
    border-color: #3ed889;

    background:
        #3ed889;

    box-shadow:
        0 0 0 4px
        rgba(62,216,137,.10);
}


/* ------------------------------------------------------------
   SOON / DEAKTIVIERT
------------------------------------------------------------ */

.mamo-global-nav-item.is-disabled {
    color: #778088 !important;

    border-color:
        rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.015);

    cursor: default;
}


.mamo-global-nav-item.is-disabled::before {
    background:
        #596168;

    box-shadow: none;

    opacity: .55;
}


.mamo-global-nav-item.is-disabled:hover {
    border-color:
        rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.015);

    transform: none;

    box-shadow: none;
}


.mamo-global-nav-item small {
    margin-left: auto;

    padding: 4px 7px;

    border-radius: 999px;

    color: #919aa1;

    background:
        rgba(255,255,255,.055);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .08em;
}


/* ------------------------------------------------------------
   FINGER / TABLET
------------------------------------------------------------ */

.mamo-global-nav-item {
    touch-action: manipulation;

    -webkit-tap-highlight-color:
        transparent;
}


.mamo-global-nav-item:active {
    transform:
        scale(.985);
}


/* ------------------------------------------------------------
   SIDEBAR UNTERE SYSTEMANZEIGE
------------------------------------------------------------ */

.mamo-global-sidebar-footer {
    border-top:
        1px solid rgba(255,255,255,.075);

    background:
        rgba(0,0,0,.12);
}


/* ============================================================
   SIDEBAR TYPOGRAPHY · WHITE
============================================================ */

.mamo-global-nav-item,
.mamo-global-nav-item span,
.mamo-global-nav-item .mamo-global-nav-label,
.mamo-global-nav-item .mamo-global-nav-icon,
.mamo-global-nav-item .mamo-global-nav-icon svg {
    color: #ffffff !important;
}

.mamo-global-nav-item:hover,
.mamo-global-nav-item:hover span,
.mamo-global-nav-item:hover .mamo-global-nav-icon {
    color: #ffffff !important;
}

.mamo-global-nav-item.is-active,
.mamo-global-nav-item.is-active span,
.mamo-global-nav-item.is-active .mamo-global-nav-icon {
    color: #ffffff !important;
}

/* Bereichsüberschriften bewusst etwas ruhiger */
.mamo-global-nav-heading {
    color: #b8c0c6 !important;
}

/* SOON / deaktiviert darf schwächer bleiben */
.mamo-global-nav-item.is-disabled,
.mamo-global-nav-item.is-disabled span {
    color: #737d85 !important;
}

.mamo-global-nav-item small {
    color: #aab2b8 !important;
}


/* ============================================================
   SIDEBAR FINAL WHITE TEXT FIX
============================================================ */

/* Alle normalen Navigationseinträge */
.mamo-global-sidebar .mamo-global-nav-item:not(.is-disabled),
.mamo-global-sidebar .mamo-global-nav-item:not(.is-disabled) span,
.mamo-global-sidebar .mamo-global-nav-item:not(.is-disabled) strong,
.mamo-global-sidebar .mamo-global-nav-item:not(.is-disabled) a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
}

/* Icons ebenfalls wirklich weiß */
.mamo-global-sidebar
.mamo-global-nav-item:not(.is-disabled)
.mamo-global-nav-icon {
    color: #ffffff !important;
    opacity: 1 !important;
}

.mamo-global-sidebar
.mamo-global-nav-item:not(.is-disabled)
.mamo-global-nav-icon svg {
    fill: #ffffff !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* Technik-Punkte */
.mamo-global-sidebar
.mamo-global-nav-item:not(.is-disabled)
.mamo-global-nav-dot {
    border-color: #ffffff !important;
    opacity: 1 !important;
}

/* aktive Punkte bleiben weiß */
.mamo-global-sidebar
.mamo-global-nav-item.is-active,
.mamo-global-sidebar
.mamo-global-nav-item.is-active span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

/* Bereichstitel CONTROL / OPERATIONS / TECHNIK / DATA */
.mamo-global-sidebar .mamo-global-nav-heading {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: .78 !important;
}

/* Logo / Claim */
.mamo-global-sidebar .mamo-global-brand-line,
.mamo-global-sidebar .mamo-global-brand-line strong,
.mamo-global-sidebar .mamo-global-brand-line span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
}

.mamo-global-sidebar .mamo-global-brand-sub {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: .72 !important;
}

/* Nur echte deaktivierte / zukünftige Punkte dürfen grau bleiben */
.mamo-global-sidebar .mamo-global-nav-item.is-disabled,
.mamo-global-sidebar .mamo-global-nav-item.is-disabled span,
.mamo-global-sidebar .mamo-global-nav-item.is-disabled .mamo-global-nav-icon {
    color: #747d84 !important;
    -webkit-text-fill-color: #747d84 !important;
    opacity: 1 !important;
}

/* SOON Badge */
.mamo-global-sidebar .mamo-global-nav-item small {
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
}



/* ============================================================
   MAMO SIDEBAR V6 · ACTUAL CLASSES
   Diese Regeln greifen auf die tatsächlich verwendete Sidebar.
============================================================ */

.mamo-sidebar {
    width: 286px;

    color: #fff;

    background:
        radial-gradient(
            circle at 10% 2%,
            rgba(232,59,54,.17),
            transparent 24%
        ),
        radial-gradient(
            circle at 95% 70%,
            rgba(35,150,94,.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #171b1f 0%,
            #101316 100%
        );
}


/* ------------------------------------------------------------
   NAVIGATION
------------------------------------------------------------ */

.mamo-sidebar-nav {
    padding: 13px 12px 24px;
}


.mamo-nav-section {
    margin: 22px 10px 9px;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    opacity: .72;

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

    letter-spacing: .19em;
}


/* JEDER normale Menüpunkt */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled) {
    position: relative;

    display: flex;

    min-height: 58px;

    box-sizing: border-box;

    align-items: center;

    gap: 13px;

    margin: 5px 0;

    padding: 0 15px;

    overflow: hidden;

    border:
        1px solid
        rgba(232,59,54,.31);

    border-radius: 14px;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    opacity: 1 !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.050),
            rgba(255,255,255,.018)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.035);

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


/* Rote Führungskante */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled)::before {
    content: "";

    position: absolute;

    top: 8px;
    bottom: 8px;
    left: 0;

    width: 4px;

    border-radius:
        0 5px 5px 0;

    background:
        linear-gradient(
            180deg,
            #ff6459 0%,
            #de302a 100%
        );

    box-shadow:
        0 0 14px
        rgba(232,59,54,.26);
}


/* Wirklich weiße Schrift */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled)
.mamo-nav-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    opacity: 1 !important;

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


/* Icon */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled)
.mamo-nav-icon {
    display: grid;

    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    place-items: center;

    border-radius: 9px;

    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;

    opacity: 1 !important;

    background:
        rgba(255,255,255,.055);

    font-size: 16px;
}


/* ------------------------------------------------------------
   HOVER
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled):hover {
    border-color:
        rgba(232,59,54,.70);

    color: #ffffff !important;

    background:
        linear-gradient(
            145deg,
            rgba(232,59,54,.14),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 10px 24px
        rgba(0,0,0,.18);

    transform:
        translateY(-1px);
}


/* ------------------------------------------------------------
   AKTUELL GEÖFFNET = GRÜN
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item.is-active:not(.is-disabled) {
    border:
        1px solid
        rgba(58,211,132,.67) !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            rgba(37,83,59,.97),
            rgba(22,48,35,.98)
        ) !important;

    box-shadow:
        0 11px 27px
        rgba(0,0,0,.20),
        inset 0 1px 0
        rgba(255,255,255,.055),
        0 0 18px
        rgba(48,190,116,.055) !important;
}


.mamo-sidebar
.mamo-nav-item.is-active:not(.is-disabled)::before {
    background:
        linear-gradient(
            180deg,
            #47df91 0%,
            #15945a 100%
        ) !important;

    box-shadow:
        0 0 15px
        rgba(60,216,139,.33);
}


.mamo-sidebar
.mamo-nav-item.is-active
.mamo-nav-label,
.mamo-sidebar
.mamo-nav-item.is-active
.mamo-nav-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}


/* aktives Icon mit grünem Schimmer */

.mamo-sidebar
.mamo-nav-item.is-active
.mamo-nav-icon {
    background:
        linear-gradient(
            145deg,
            rgba(62,216,137,.22),
            rgba(25,132,79,.14)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(63,217,139,.14);
}


/* ------------------------------------------------------------
   ALTE VISITED-LOGIK NEUTRALISIEREN
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item.is-visited:not(.is-active) {
    border-color:
        rgba(232,59,54,.31) !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.050),
            rgba(255,255,255,.018)
        ) !important;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.035) !important;
}


.mamo-sidebar
.mamo-nav-item.is-visited:not(.is-active)::before {
    background:
        linear-gradient(
            180deg,
            #ff6459,
            #de302a
        ) !important;
}


/* ------------------------------------------------------------
   DEAKTIVIERTE FUNKTIONEN
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item.is-disabled {
    min-height: 52px;

    margin: 4px 0;

    padding: 0 15px;

    border:
        1px solid rgba(255,255,255,.045);

    border-radius: 13px;

    color: #707980 !important;

    background:
        rgba(255,255,255,.012);

    opacity: 1 !important;

    cursor: default;
}


.mamo-sidebar
.mamo-nav-item.is-disabled
.mamo-nav-label,
.mamo-sidebar
.mamo-nav-item.is-disabled
.mamo-nav-icon {
    color: #707980 !important;
    -webkit-text-fill-color: #707980 !important;
}


/* ------------------------------------------------------------
   BRAND / FOOTER
------------------------------------------------------------ */

.mamo-sidebar
.mamo-brand-main {
    color: #fff !important;
}


.mamo-sidebar
.mamo-brand-main span {
    color: #fff !important;

    opacity: .78;
}


.mamo-sidebar
.mamo-brand-sub {
    color: #fff !important;

    opacity: .68;
}


.mamo-sidebar-status {
    color: #fff !important;

    opacity: .80;
}


/* ------------------------------------------------------------
   TABLET TOUCH
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item {
    touch-action: manipulation;

    -webkit-tap-highlight-color:
        transparent;
}


.mamo-sidebar
.mamo-nav-item:not(.is-disabled):active {
    transform: scale(.985);
}


/* ============================================================
   SIDEBAR TYPOGRAPHY · COMPACT
============================================================ */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled)
.mamo-nav-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .01em;
}

.mamo-sidebar
.mamo-nav-item.is-disabled
.mamo-nav-label {
    font-size: 9px !important;
    font-weight: 750 !important;
}

.mamo-sidebar
.mamo-nav-section {
    font-size: 8px !important;
    letter-spacing: .17em !important;
}

.mamo-sidebar
.mamo-nav-icon {
    font-size: 14px !important;
}

.mamo-sidebar
.mamo-nav-soon {
    font-size: 6px !important;
}

/* Touchfläche bewusst groß lassen */
.mamo-sidebar
.mamo-nav-item {
    min-height: 54px !important;
}



/* ============================================================
   OBJECT TECHNOLOGY ASSISTANT
============================================================ */

.tech-create-shell {
    max-width: 1420px;
    margin: 0 auto;
    padding: 26px 28px 70px;
}


.tech-create-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}


.tech-create-kicker,
.tech-form-kicker {
    color: #e43a35;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}


.tech-create-head h1 {
    margin: 5px 0 0;
    color: #25292d;
    font-size: 30px;
}


.tech-create-head p {
    margin: 6px 0 0;
    color: #7a8186;
    font-size: 11px;
}


.tech-back {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid #d8d2cb;
    border-radius: 11px;
    color: #33383d;
    background: #fff;
    font-size: 9px;
    font-weight: 900;
    text-decoration: none;
}


.tech-picker,
.tech-form-card {
    padding: 19px;
    border: 1px solid #d9d3cc;
    border-radius: 18px;
    background:
        linear-gradient(
            155deg,
            #fff,
            #faf8f5
        );
    box-shadow:
        0 10px 30px
        rgba(20,24,28,.055);
}


.tech-picker-head h2 {
    margin: 0;
    color: #25292d;
    font-size: 19px;
}


.tech-picker-head p {
    margin: 4px 0 0;
    color: #858b90;
    font-size: 10px;
}


.tech-category-title {
    margin: 23px 0 9px;
    color: #70777c;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}


.tech-tile-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0,1fr));
    gap: 10px;
}


.tech-type-tile {
    display: grid;
    min-height: 142px;
    box-sizing: border-box;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 14px;
    border: 1px solid #dad4cd;
    border-top: 3px solid #e33a35;
    border-radius: 15px;
    color: #282d31;
    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );
    box-shadow:
        0 7px 20px
        rgba(20,24,28,.045);
    cursor: pointer;
    touch-action: manipulation;
    transition:
        transform .14s ease,
        border-color .14s ease,
        box-shadow .14s ease,
        background .14s ease;
}


.tech-type-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(227,58,53,.55);
    box-shadow:
        0 12px 27px
        rgba(20,24,28,.08);
}


.tech-type-tile.is-active {
    border-color: #31a36c;
    border-top-color: #31a36c;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #2c3731,
            #1d2822
        );
    box-shadow:
        0 13px 30px
        rgba(20,24,28,.17);
}


.tech-type-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(
            145deg,
            #353b40,
            #22272b
        );
    font-size: 19px;
}


.tech-type-tile.is-active
.tech-type-icon {
    background:
        linear-gradient(
            145deg,
            #36b777,
            #207c51
        );
}


.tech-type-tile strong {
    font-size: 12px;
    font-weight: 900;
}


.tech-type-tile small {
    color: #8a9094;
    font-size: 8px;
    text-align: center;
}


.tech-type-tile.is-active small {
    color: rgba(255,255,255,.72);
}


.tech-form-card {
    scroll-margin-top: 70px;
    margin-top: 14px;
}


.tech-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4dfd9;
}


.tech-form-head h2 {
    margin: 4px 0 0;
    color: #24282c;
    font-size: 20px;
}


.tech-form-head p {
    margin: 4px 0 0;
    color: #80868a;
    font-size: 10px;
}


.tech-form-close {
    width: 44px;
    height: 44px;
    border: 1px solid #d8d2cb;
    border-radius: 11px;
    color: #34393d;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
}


.tech-fields {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));
    gap: 11px;
    margin-top: 14px;
}


.tech-field {
    display: grid;
    gap: 6px;
}


.tech-field.full,
.tech-option.full {
    grid-column: 1 / -1;
}


.tech-field label {
    color: #555c61;
    font-size: 8px;
    font-weight: 900;
}


.tech-field input,
.tech-field select,
.tech-field textarea {
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #d6d0c9;
    border-radius: 11px;
    color: #272c30;
    background: #fff;
    font: inherit;
    font-size: 11px;
}


.tech-field textarea {
    min-height: 85px;
    padding-top: 11px;
}


.tech-field input:focus,
.tech-field select:focus,
.tech-field textarea:focus {
    border-color: #2f363b;
    outline: 0;
    box-shadow:
        0 0 0 3px
        rgba(31,36,40,.065);
}


.tech-location-section {
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid #e4dfd9;
}


.tech-location-section h3 {
    margin: 0;
    color: #30353a;
    font-size: 12px;
}


.tech-option {
    display: flex;
    min-height: 54px;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid #d8d2cb;
    border-radius: 11px;
    color: #40464a;
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}


.tech-option input {
    width: 20px;
    height: 20px;
}


.tech-field-system-select {
    margin-top: 17px;
}


.tech-form-actions {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding: 11px;
    border: 1px solid #d7d1ca;
    border-radius: 14px;
    background:
        rgba(255,255,255,.94);
    backdrop-filter: blur(13px);
}


.tech-primary,
.tech-secondary {
    min-height: 54px;
    padding: 0 19px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}


.tech-primary {
    border: 0;
    color: #fff;
    background:
        linear-gradient(
            135deg,
            #e8453f,
            #c92e29
        );
}


.tech-secondary {
    border: 1px solid #d6d0c9;
    color: #363c40;
    background: #fff;
}


.tech-errors {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid #dfa9a5;
    border-radius: 11px;
    color: #a3312c;
    background: #fff1f0;
    font-size: 9px;
}


@media (max-width: 1150px) {
    .tech-tile-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }
}


@media (max-width: 850px) {
    .tech-tile-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .tech-fields {
        grid-template-columns: 1fr;
    }

    .tech-field.full,
    .tech-option.full {
        grid-column: auto;
    }
}


@media (max-width: 560px) {
    .tech-create-shell {
        padding: 15px 10px 60px;
    }

    .tech-tile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .tech-type-tile {
        min-height: 126px;
    }
}



/* ============================================================
   DETECTOR GROUP INLINE CREATION
============================================================ */

.detector-group-choice {
    display: grid;

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

    gap: 8px;
}


.detector-group-choice label {
    display: flex;

    min-height: 56px;

    box-sizing: border-box;

    align-items: center;

    gap: 10px;

    padding: 0 13px;

    border:
        1px solid #d8d2cb;

    border-radius: 11px;

    color: #3c4246;

    background: #fff;

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

    cursor: pointer;

    touch-action: manipulation;
}


.detector-group-choice label:has(
    input:checked
) {
    border-color:
        #299764;

    color:
        #176d48;

    background:
        linear-gradient(
            145deg,
            #f5fcf8,
            #eaf7ef
        );

    box-shadow:
        inset 3px 0 0
        #299764;
}


.detector-group-choice input {
    width: 20px;
    height: 20px;

    accent-color:
        #299764;
}


.tech-inline-group {
    grid-column: 1 / -1;

    margin-top: 2px;

    padding: 13px;

    border:
        1px solid
        rgba(41,151,100,.30);

    border-radius: 12px;

    background:
        linear-gradient(
            155deg,
            #f9fdfa,
            #eef8f2
        );
}


.tech-inline-head {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.tech-inline-head span {
    color: #256e4d;

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


.tech-inline-head small {
    color: #789086;

    font-size: 8px;
}


@media (max-width: 620px) {

    .detector-group-choice {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   OBJECT TILE DASHBOARD
============================================================ */

.object-tile-dashboard {
    margin-bottom: 22px;
}


.object-tile-dashboard-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 17px;
}


.object-tile-kicker {
    color: #e43a35;

    font-size: 8px;
    font-weight: 900;

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


.object-tile-dashboard-head h2 {
    margin: 5px 0 0;

    color: #25292d;

    font-size: 25px;
    letter-spacing: -.03em;
}


.object-tile-dashboard-head p {
    max-width: 670px;

    margin: 6px 0 0;

    color: #7c8287;

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


.object-add-tech-main {
    display: inline-flex;

    min-height: 50px;

    align-items: center;

    gap: 8px;

    padding: 0 16px;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #e84942,
            #c92e29
        );

    box-shadow:
        0 10px 24px
        rgba(214,48,42,.18);

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

    text-decoration: none;

    touch-action: manipulation;
}


.object-add-tech-main span {
    font-size: 18px;
}


.object-tile-grid {
    display: grid;

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

    gap: 12px;
}


.object-work-tile {
    position: relative;

    display: flex;

    min-height: 205px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 17px;

    overflow: hidden;

    border: 1px solid #d9d3cc;
    border-top: 3px solid #e43a35;

    border-radius: 17px;

    color: inherit;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(232,59,54,.045),
            transparent 35%
        ),
        linear-gradient(
            155deg,
            #ffffff,
            #f8f6f3
        );

    box-shadow:
        0 9px 25px
        rgba(20,24,28,.055);

    text-decoration: none;

    touch-action: manipulation;

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


.object-work-tile:hover {
    transform: translateY(-2px);

    border-color:
        rgba(228,58,53,.47);

    box-shadow:
        0 14px 32px
        rgba(20,24,28,.095);
}


.object-work-tile-top {
    display: flex;

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

    gap: 10px;
}


.object-work-icon {
    display: grid;

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    place-items: center;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #22272b
        );

    box-shadow:
        0 6px 16px
        rgba(20,24,28,.12);

    font-size: 18px;
    font-weight: 900;
}


.object-work-icon.info {
    font-family: Georgia, serif;
    font-style: italic;
}


.object-work-badge {
    display: inline-flex;

    min-height: 27px;

    box-sizing: border-box;

    align-items: center;

    padding: 0 9px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 900;

    white-space: nowrap;
}


.object-work-badge.neutral {
    color: #586168;
    background: #edf0f2;
}


.object-work-badge.info {
    color: #53616a;
    background: #edf0f2;
}


.object-work-badge.warning {
    color: #a06811;
    background: #fff0d3;
}


.object-work-badge.success {
    color: #176d48;
    background: #e8f6ee;
}


.object-work-badge.danger {
    color: #a32f2a;
    background: #fde9e7;
}


.object-work-badge.soon {
    color: #717a80;
    background: #eeeeec;
}


.object-work-tile h3 {
    margin: 17px 0 0;

    color: #25292d;

    font-size: 16px;
    font-weight: 950;

    letter-spacing: -.02em;
}


.object-work-tile p {
    min-height: 29px;

    margin: 5px 0 0;

    color: #858b90;

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


.object-work-value {
    margin-top: 16px;

    color: #25292d;

    font-size: 29px;
    font-weight: 950;

    line-height: 1;

    letter-spacing: -.045em;
}


.object-work-value.small {
    font-size: 21px;
}


.object-work-label {
    margin-top: 4px;

    color: #91969a;

    font-size: 7px;
    font-weight: 850;

    text-transform: uppercase;
}


.object-work-action {
    margin-top: auto;
    padding-top: 15px;

    color: #30363a;

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


.object-work-split {
    display: grid;

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

    gap: 7px;

    margin-top: 15px;
}


.object-work-split > div {
    padding: 9px;

    border: 1px solid #e7e3dd;

    border-radius: 9px;

    background:
        rgba(255,255,255,.72);
}


.object-work-split strong {
    display: block;

    color: #25292d;

    font-size: 17px;
}


.object-work-split span {
    color: #969b9f;

    font-size: 7px;

    text-transform: uppercase;
}


/* ------------------------------------------------------------
   PROGRESS
------------------------------------------------------------ */

.object-progress-number {
    margin-top: 15px;

    color: #25292d;

    font-size: 28px;
    font-weight: 950;

    letter-spacing: -.04em;
}


.object-tile-progress {
    height: 7px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e8e4de;
}


.object-tile-progress > div {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #e43a35 0%,
            #df9219 55%,
            #299764 100%
        );
}


/* ------------------------------------------------------------
   STATUS
------------------------------------------------------------ */

.object-work-tile.state-progress {
    border-top-color: #df9219;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(223,146,25,.075),
            transparent 38%
        ),
        linear-gradient(
            155deg,
            #fff,
            #faf6ed
        );
}


.object-work-tile.state-done {
    border:
        1px solid rgba(41,151,100,.45);

    border-top:
        3px solid #299764;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(41,151,100,.08),
            transparent 37%
        ),
        linear-gradient(
            155deg,
            #fbfffc,
            #ecf8f1
        );
}


.object-work-tile.state-done
.object-work-icon {
    background:
        linear-gradient(
            145deg,
            #34ad72,
            #207a50
        );
}


.object-work-tile.state-done
.object-work-action {
    color: #176d48;
}


.object-work-tile.state-danger {
    border:
        1px solid rgba(228,58,53,.42);

    border-top:
        3px solid #e43a35;

    background:
        linear-gradient(
            155deg,
            #fff,
            #fff0ef
        );
}


/* ------------------------------------------------------------
   ADD TECH
------------------------------------------------------------ */

.object-add-tech-tile {
    color: #fff;

    border:
        1px solid #30363b;

    border-top:
        3px solid #299764;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(41,151,100,.18),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            #2d3338,
            #1d2226
        );
}


.object-add-tech-tile h3,
.object-add-tech-tile p,
.object-add-tech-tile
.object-work-action {
    color: #fff;
}


.object-add-tech-tile p {
    opacity: .70;
}


.object-add-tech-message {
    margin-top: 18px;

    color: #74d5a1;

    font-size: 16px;
    font-weight: 900;
}


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

@media (max-width: 1400px) {

    .object-tile-grid {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

}


@media (max-width: 1050px) {

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

}


@media (max-width: 650px) {

    .object-tile-dashboard-head {
        align-items: stretch;
        flex-direction: column;
    }

    .object-add-tech-main {
        justify-content: center;
    }

    .object-tile-grid {
        grid-template-columns: 1fr;
    }

    .object-work-tile {
        min-height: 185px;
    }

}


/* ============================================================
   SIDEBAR V7 · PURE NAVIGATION
   Sidebar = Menü
   Content = Kachelwelt
============================================================ */

.mamo-sidebar {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(232,59,54,.10),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #181c20 0%,
            #101316 100%
        ) !important;
}


/* Navigation ruhiger */

.mamo-sidebar-nav {
    padding: 12px 14px 24px !important;
}


.mamo-sidebar
.mamo-nav-section {
    margin:
        24px 8px 8px !important;

    color:
        rgba(255,255,255,.58) !important;

    -webkit-text-fill-color:
        rgba(255,255,255,.58) !important;

    opacity: 1 !important;

    font-size: 7px !important;
    font-weight: 900 !important;

    letter-spacing: .20em !important;
}


/* ------------------------------------------------------------
   NORMALE MENÜZEILE
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item {
    position: relative;

    min-height: 48px !important;

    margin: 1px 0 !important;

    padding:
        0 10px 0 13px !important;

    border:
        0 !important;

    border-radius:
        7px !important;

    color:
        #ffffff !important;

    -webkit-text-fill-color:
        #ffffff !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    opacity:
        1 !important;

    transform:
        none !important;

    transition:
        background .14s ease,
        color .14s ease;
}


/*
   Keine Kachel-Kante mehr.
*/

.mamo-sidebar
.mamo-nav-item::before {
    content: none !important;
}


/* Text */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled)
.mamo-nav-label {
    color:
        #ffffff !important;

    -webkit-text-fill-color:
        #ffffff !important;

    font-size:
        10px !important;

    font-weight:
        750 !important;
}


/* Icons ebenfalls flacher */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled)
.mamo-nav-icon {
    width:
        25px !important;

    height:
        25px !important;

    flex-basis:
        25px !important;

    border-radius:
        0 !important;

    color:
        rgba(255,255,255,.76) !important;

    -webkit-text-fill-color:
        rgba(255,255,255,.76) !important;

    background:
        transparent !important;

    box-shadow:
        none !important;

    font-size:
        14px !important;
}


/* ------------------------------------------------------------
   HOVER
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item:not(.is-disabled):hover {
    border:
        0 !important;

    background:
        rgba(255,255,255,.055) !important;

    box-shadow:
        none !important;

    transform:
        none !important;
}


/* ------------------------------------------------------------
   AKTIVER MENÜPUNKT
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item.is-active:not(.is-disabled) {
    border:
        0 !important;

    color:
        #ffffff !important;

    background:
        linear-gradient(
            90deg,
            rgba(37,151,95,.20) 0%,
            rgba(37,151,95,.07) 70%,
            transparent 100%
        ) !important;

    box-shadow:
        inset 3px 0 0
        #31b474 !important;

    border-radius:
        6px !important;
}


.mamo-sidebar
.mamo-nav-item.is-active
.mamo-nav-label {
    color:
        #ffffff !important;

    -webkit-text-fill-color:
        #ffffff !important;

    font-weight:
        900 !important;
}


.mamo-sidebar
.mamo-nav-item.is-active
.mamo-nav-icon {
    color:
        #54d797 !important;

    -webkit-text-fill-color:
        #54d797 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}


/* ------------------------------------------------------------
   DEAKTIVIERT / SOON
------------------------------------------------------------ */

.mamo-sidebar
.mamo-nav-item.is-disabled {
    min-height:
        44px !important;

    border:
        0 !important;

    background:
        transparent !important;

    color:
        #657078 !important;

    box-shadow:
        none !important;
}


.mamo-sidebar
.mamo-nav-item.is-disabled
.mamo-nav-label,
.mamo-sidebar
.mamo-nav-item.is-disabled
.mamo-nav-icon {
    color:
        #657078 !important;

    -webkit-text-fill-color:
        #657078 !important;
}


/* SOON sehr dezent */

.mamo-sidebar
.mamo-nav-soon {
    margin-left:
        auto;

    padding:
        2px 5px;

    border-radius:
        4px;

    color:
        #747e85 !important;

    background:
        rgba(255,255,255,.04);

    font-size:
        6px !important;
}


/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

.mamo-sidebar-footer {
    background:
        transparent !important;

    border-top:
        1px solid
        rgba(255,255,255,.06) !important;
}


/* große Touchzone bleibt erhalten */

.mamo-sidebar
.mamo-nav-item {
    touch-action:
        manipulation;

    -webkit-tap-highlight-color:
        transparent;
}



/* ============================================================
   OBJECT ARCHITECTURE V2
   Statusbar -> Hauptkacheln -> Unterebenen -> Arbeit
============================================================ */

.object-shell {
    padding-top: 18px !important;
}


/* ------------------------------------------------------------
   STATUSBAR
------------------------------------------------------------ */

.object-statusbar {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(340px,.55fr);

    gap: 26px;

    align-items: center;

    margin-bottom: 18px;

    padding: 16px 19px;

    border:
        1px solid #d9d4ce;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.05);
}


.object-statusbar-main {
    display: flex;

    align-items: center;

    gap: 17px;
}


.object-status-back {
    display: inline-flex;

    min-height: 39px;

    align-items: center;

    padding: 0 11px;

    border:
        1px solid #ded9d3;

    border-radius: 9px;

    color: #555c61;

    background: #fff;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.object-status-kicker {
    color: #d83933;

    font-size: 7px;
    font-weight: 950;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.object-status-title h1 {
    margin: 3px 0 0;

    color: #252a2e;

    font-size: 21px;

    letter-spacing: -.03em;
}


.object-status-meta {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;

    margin-top: 5px;
}


.object-status-meta span {
    color: #82888c;

    font-size: 8px;
}


.object-status-meta span + span::before {
    content: '·';

    margin-right: 7px;

    color: #c0c2c3;
}


/* Fortschritt */

.object-status-progress {
    padding-left: 21px;

    border-left:
        1px solid #e2ddd7;
}


.object-status-progress-head {
    display: flex;

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

    gap: 14px;

    color: #777e82;

    font-size: 8px;
    font-weight: 900;

    text-transform: uppercase;
}


.object-status-progress-head strong {
    color: #252a2e;

    font-size: 17px;

    letter-spacing: -.03em;
}


.object-status-progressbar {
    height: 7px;

    margin-top: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: #e6e2dd;
}


.object-status-progressbar div {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #e13b35 0%,
            #db951e 55%,
            #2b9d68 100%
        );
}


.object-status-numbers {
    display: flex;

    gap: 17px;

    margin-top: 8px;

    color: #848a8e;

    font-size: 8px;
}


.object-status-numbers strong {
    color: #30363a;

    font-size: 10px;
}


.object-status-numbers
.is-warning strong {
    color: #ac741c;
}


.object-status-numbers
.is-danger strong {
    color: #c83a34;
}


.object-status-numbers
.is-good strong {
    color: #23815a;
}


/* ------------------------------------------------------------
   HAUPT-HUB
------------------------------------------------------------ */

.object-hub {
    margin-top: 0;
}


.object-hub-head {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 12px;
}


.object-hub-kicker {
    color: #d83933;

    font-size: 7px;
    font-weight: 950;

    letter-spacing: .16em;

    text-transform: uppercase;
}


.object-hub-head h2,
.object-area-head h2 {
    margin: 4px 0 0;

    color: #292e32;

    font-size: 19px;

    letter-spacing: -.025em;
}


.object-main-tile-grid {
    display: grid;

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

    gap: 11px;
}


.object-main-tile {
    display: flex;

    min-height: 175px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 16px;

    border:
        1px solid #d9d4ce;

    border-top:
        3px solid #df3934;

    border-radius: 15px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);

    text-decoration: none;

    touch-action: manipulation;

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


.object-main-tile:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 13px 28px
        rgba(20,24,28,.09);
}


.object-main-icon {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 18px;
    font-weight: 900;
}


.object-main-content {
    display: flex;

    flex: 1;

    flex-direction: column;
}


.object-main-content h3 {
    margin: 14px 0 0;

    color: #292e32;

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


.object-main-content p {
    margin: 5px 0 0;

    color: #888e92;

    font-size: 8px;

    line-height: 1.45;
}


.object-main-stats {
    display: flex;

    gap: 15px;

    margin-top: 13px;
}


.object-main-stats span {
    color: #93989b;

    font-size: 7px;

    text-transform: uppercase;
}


.object-main-stats strong {
    margin-right: 3px;

    color: #30363a;

    font-size: 13px;
}


.object-main-action {
    margin-top: auto;

    padding-top: 13px;

    color: #343a3e;

    font-size: 8px;
    font-weight: 900;
}


/* Statusfarben */

.object-main-tile.state-good {
    border-top-color: #2d9b68;
}


.object-main-tile.state-good
.object-main-icon {
    background:
        linear-gradient(
            145deg,
            #35ad75,
            #217d53
        );
}


.object-main-tile.state-warning {
    border-top-color: #db951e;
}


.object-main-tile.state-danger {
    border-top-color: #df3934;

    background:
        linear-gradient(
            150deg,
            #fff,
            #fff2f1
        );
}


/* ------------------------------------------------------------
   BEREICHE
------------------------------------------------------------ */

.object-area-head {
    display: grid;

    grid-template-columns: auto 1fr;

    gap: 15px;

    align-items: center;

    margin-bottom: 14px;
}


.object-area-head > a {
    display: inline-flex;

    min-height: 42px;

    align-items: center;

    padding: 0 12px;

    border:
        1px solid #d9d4ce;

    border-radius: 9px;

    color: #50575c;

    background: #fff;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.object-area-head p {
    margin: 4px 0 0;

    color: #878d91;

    font-size: 8px;
}


/* Objekt-Daten Preview */

.object-data-preview {
    display: grid;

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

    gap: 10px;
}


.object-data-preview > div {
    min-height: 82px;

    box-sizing: border-box;

    padding: 13px;

    border:
        1px solid #dfdad4;

    border-radius: 12px;

    background: #fff;
}


.object-data-preview span {
    display: block;

    color: #969b9e;

    font-size: 7px;
    font-weight: 900;

    text-transform: uppercase;
}


.object-data-preview strong {
    display: block;

    margin-top: 6px;

    color: #30363a;

    font-size: 11px;
}


.object-area-note {
    margin-top: 10px;

    padding: 11px 13px;

    border:
        1px solid #e0dcd6;

    border-radius: 10px;

    color: #7a8084;

    background: #faf9f7;

    font-size: 8px;
}


/* ------------------------------------------------------------
   TECHNIK UNTERKACHELN
------------------------------------------------------------ */

.object-subtile-grid {
    display: grid;

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

    gap: 10px;
}


.object-subtile {
    display: grid;

    min-height: 130px;

    box-sizing: border-box;

    align-content: center;

    justify-items: center;

    gap: 7px;

    padding: 15px;

    border:
        1px solid #dad5ce;

    border-top:
        3px solid #df3934;

    border-radius: 14px;

    color: #2b3034;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    text-align: center;

    text-decoration: none;

    touch-action: manipulation;
}


.object-subtile-icon {
    display: grid;

    width: 40px;
    height: 40px;

    place-items: center;

    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 17px;
}


.object-subtile strong {
    font-size: 10px;
    font-weight: 950;
}


.object-subtile small {
    color: #8a9094;

    font-size: 7px;
}


.object-subtile-add {
    border-top-color: #2d9b68;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #2d3438,
            #1e2327
        );
}


.object-subtile-add small {
    color:
        rgba(255,255,255,.65);
}


.object-subtile-add
.object-subtile-icon {
    background:
        linear-gradient(
            145deg,
            #36ae75,
            #217c52
        );
}


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

@media (max-width: 1250px) {

    .object-main-tile-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media (max-width: 950px) {

    .object-statusbar {
        grid-template-columns: 1fr;
    }

    .object-status-progress {
        padding-left: 0;

        padding-top: 13px;

        border-left: 0;

        border-top:
            1px solid #e2ddd7;
    }

    .object-main-tile-grid,
    .object-subtile-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .object-data-preview {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 600px) {

    .object-main-tile-grid,
    .object-subtile-grid,
    .object-data-preview {
        grid-template-columns: 1fr;
    }

    .object-statusbar-main {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   MAINTENANCE AREA · TILE FIRST
============================================================ */

.maintenance-hub-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 11px;
}


.maintenance-hub-tile {
    display: flex;
    min-height: 190px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    color: inherit;
    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);

    text-decoration: none;

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


.maintenance-hub-tile:hover {
    transform: translateY(-2px);

    box-shadow:
        0 13px 28px
        rgba(20,24,28,.09);
}


.maintenance-hub-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.maintenance-hub-tile h3 {
    margin: 14px 0 0;

    color: #292e32;

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


.maintenance-hub-tile p {
    margin: 5px 0 0;

    color: #888e92;

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


.maintenance-hub-number {
    margin-top: 15px;

    color: #2d3236;

    font-size: 27px;
    font-weight: 950;
}


.maintenance-hub-tile small {
    color: #94999d;

    font-size: 7px;
    text-transform: uppercase;
}


.maintenance-hub-action {
    margin-top: auto;
    padding-top: 14px;

    color: #343a3e;

    font-size: 8px;
    font-weight: 900;
}


.maintenance-hub-tile.state-warning {
    border-top-color: #dd941c;
}


.maintenance-hub-tile.state-active {
    border-top-color: #30363b;

    background:
        linear-gradient(
            145deg,
            #f7f8f8,
            #edf0f1
        );
}


.maintenance-hub-tile.state-good {
    border-top-color: #2b9c68;
}


.maintenance-hub-tile.state-good
.maintenance-hub-icon {
    background:
        linear-gradient(
            145deg,
            #35ae75,
            #217c52
        );
}


/* Arbeitskarte */

.maintenance-work-card {
    padding: 18px;

    border: 1px solid #dcd7d1;
    border-radius: 15px;

    background: #fff;
}


.maintenance-work-head {
    margin-bottom: 17px;
}


.maintenance-work-head h3 {
    margin: 0;

    color: #2b3034;

    font-size: 14px;
}


.maintenance-work-head p {
    margin: 4px 0 0;

    color: #898f93;

    font-size: 8px;
}


.maintenance-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 17px;
}


.maintenance-primary {
    min-height: 51px;
    padding: 0 18px;

    border: 0;
    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #e84942,
            #c92e29
        );

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

    cursor: pointer;
}


/* Wartungsbesuche */

.maintenance-visit-grid {
    display: grid;

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

    gap: 11px;
}


.maintenance-visit-card {
    display: flex;

    min-height: 170px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #dd941c;

    border-radius: 14px;

    color: inherit;

    background: #fff;

    text-decoration: none;
}


.maintenance-visit-card.active {
    border-top-color: #30363b;
}


.maintenance-visit-card.completed {
    border-top-color: #2b9c68;
}


.maintenance-visit-card-top {
    display: flex;

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

    gap: 10px;

    color: #8b9195;

    font-size: 7px;
    font-weight: 900;
}


.maintenance-visit-card-top strong {
    color: #353a3e;

    font-size: 10px;
}


.maintenance-visit-card h3 {
    margin: 17px 0 0;

    color: #292e32;

    font-size: 14px;
}


.maintenance-visit-card p {
    margin: 5px 0 0;

    color: #8b9195;

    font-size: 8px;
}


.maintenance-visit-action {
    margin-top: auto;
    padding-top: 15px;

    color: #343a3e;

    font-size: 8px;
    font-weight: 900;
}


.maintenance-card-progress {
    height: 7px;

    margin-top: 15px;

    overflow: hidden;

    border-radius: 999px;

    background: #e6e2dd;
}


.maintenance-card-progress div {
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #e13b35,
            #dd941c,
            #2b9c68
        );
}


.maintenance-empty {
    grid-column: 1 / -1;

    padding: 45px 20px;

    border: 1px dashed #d8d3cc;
    border-radius: 14px;

    color: #92979a;
    background: #faf9f7;

    text-align: center;

    font-size: 9px;
}


.maintenance-empty strong {
    display: block;

    margin-bottom: 5px;

    color: #484e52;

    font-size: 11px;
}


.maintenance-message {
    margin-bottom: 12px;

    padding: 11px 13px;

    border-radius: 10px;

    font-size: 9px;
}


.maintenance-message.success {
    color: #21704e;
    background: #edf8f2;
}


.maintenance-message.error {
    color: #a0322d;
    background: #fff0ef;
}


@media (max-width: 1050px) {

    .maintenance-hub-grid,
    .maintenance-visit-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 650px) {

    .maintenance-hub-grid,
    .maintenance-visit-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   OBJECT DATA
============================================================ */

.object-data-card {
    margin-bottom: 12px;

    padding: 17px;

    border: 1px solid #dcd7d1;
    border-radius: 15px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf9f7
        );
}


.object-data-card-head {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
}


.object-data-icon {
    display: grid;

    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    place-items: center;

    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.object-data-card-head h3 {
    margin: 0;

    color: #2a2f33;

    font-size: 13px;
}


.object-data-card-head p {
    margin: 3px 0 0;

    color: #8b9195;

    font-size: 8px;
}


.object-data-form-grid {
    display: grid;

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

    gap: 11px;
}


.object-data-field {
    display: grid;

    gap: 6px;
}


.object-data-field.full {
    grid-column: 1 / -1;
}


.object-data-field label {
    color: #60676b;

    font-size: 8px;
    font-weight: 900;
}


.object-data-field input,
.object-data-field select,
.object-data-field textarea {
    width: 100%;

    min-height: 50px;

    box-sizing: border-box;

    padding: 0 12px;

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

    color: #2d3236;

    background: #fff;

    font: inherit;
    font-size: 10px;
}


.object-data-field textarea {
    min-height: 105px;

    padding-top: 11px;
}


.object-data-field input:disabled,
.object-data-field select:disabled,
.object-data-field textarea:disabled {
    color: #575e62;

    background: #f2f1ee;

    opacity: 1;

    cursor: default;
}


.object-data-field small {
    color: #999ea1;

    font-size: 7px;
}


.object-static-field {
    display: flex;

    min-height: 50px;

    box-sizing: border-box;

    align-items: center;

    padding: 0 12px;

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

    color: #565d61;

    background: #f6f5f2;

    font-size: 9px;
}


.object-location-note {
    margin-top: 11px;

    padding: 10px 12px;

    border-radius: 9px;

    color: #787f83;

    background: #f3f2ef;

    font-size: 8px;
}


.object-data-actions {
    position: sticky;

    bottom: 12px;

    z-index: 20;

    display: flex;

    justify-content: flex-end;

    margin-top: 14px;

    padding: 10px;

    border: 1px solid #d9d4ce;
    border-radius: 13px;

    background:
        rgba(255,255,255,.94);

    backdrop-filter: blur(12px);
}


.object-data-save {
    min-height: 52px;

    padding: 0 18px;

    border: 0;
    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #e84942,
            #c92e29
        );

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

    cursor: pointer;
}


.object-readonly-note {
    margin-bottom: 12px;

    padding: 10px 12px;

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

    color: #747b80;

    background: #f5f4f1;

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


.object-data-message {
    margin-bottom: 12px;

    padding: 11px 13px;

    border-radius: 10px;

    font-size: 9px;
}


.object-data-message.success {
    color: #21704e;
    background: #edf8f2;
}


.object-data-message.error {
    color: #a0322d;
    background: #fff0ef;
}


@media (max-width: 700px) {

    .object-data-form-grid {
        grid-template-columns: 1fr;
    }

    .object-data-field.full {
        grid-column: auto;
    }

}



/* ============================================================
   SITE ACCESS PROFILE
============================================================ */

.access-requirement-grid {
    display: grid;

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

    gap: 9px;
}


.access-requirement {
    display: grid;

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

    gap: 12px;

    align-items: center;

    min-height: 59px;

    box-sizing: border-box;

    padding: 9px 11px;

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

    background: #fff;
}


.access-requirement span {
    color: #4d5458;

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


.access-requirement select {
    min-height: 39px;

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

    padding: 0 9px;

    color: #353b3f;

    background: #f8f7f5;

    font-size: 8px;
}


.access-requirement select:disabled {
    color: #686e72;

    background: #f1f0ed;

    opacity: 1;
}


.access-security-hint {
    margin-top: 12px;

    padding: 10px 12px;

    border-left: 3px solid #d79a2c;

    border-radius: 8px;

    color: #777d81;

    background: #faf6eb;

    font-size: 8px;

    line-height: 1.5;
}


@media (max-width: 800px) {

    .access-requirement-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 520px) {

    .access-requirement {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   SITE CONTACTS
============================================================ */

.site-contact-grid {
    display: grid;

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

    gap: 11px;

    margin-bottom: 14px;
}


.site-contact-card {
    padding: 15px;

    border: 1px solid #dad5ce;
    border-top: 3px solid #df3934;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf9f7
        );
}


.site-contact-top {
    display: flex;

    align-items: center;

    gap: 10px;
}


.site-contact-avatar {
    display: grid;

    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    place-items: center;

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.site-contact-title {
    min-width: 0;
    flex: 1;
}


.site-contact-title h3 {
    margin: 0;

    color: #292e32;

    font-size: 11px;
}


.site-contact-title p {
    margin: 3px 0 0;

    color: #92979a;

    font-size: 7px;
}


.site-contact-primary {
    padding: 5px 7px;

    border-radius: 999px;

    color: #21704e;

    background: #eaf7f0;

    font-size: 6px;
    font-weight: 900;
}


.site-contact-company {
    margin-top: 12px;

    color: #555c60;

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


.site-contact-details {
    display: grid;

    gap: 7px;

    margin-top: 12px;
}


.site-contact-details div {
    padding: 8px 9px;

    border-radius: 8px;

    background: #f4f3f0;
}


.site-contact-details span {
    display: block;

    color: #999ea1;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.site-contact-details strong {
    display: block;

    margin-top: 3px;

    color: #3b4145;

    font-size: 8px;
}


.site-contact-tags {
    display: flex;

    gap: 5px;

    flex-wrap: wrap;

    margin-top: 11px;
}


.site-contact-tags span {
    padding: 4px 7px;

    border-radius: 999px;

    color: #657077;

    background: #ecefed;

    font-size: 6px;
    font-weight: 900;
}


.site-contact-tags .urgent {
    color: #a2332e;

    background: #fdeae8;
}


.site-contact-notes {
    margin-top: 10px;

    padding: 8px;

    border-left: 2px solid #d9d4ce;

    color: #7b8185;

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


.site-contact-edit {
    margin-top: 12px;

    border-top: 1px solid #e4e0da;

    padding-top: 10px;
}


.site-contact-edit summary {
    color: #41484c;

    font-size: 8px;
    font-weight: 900;

    cursor: pointer;
}


.site-contact-edit form {
    margin-top: 12px;
}


.contact-option-grid {
    grid-column: 1 / -1;

    display: grid;

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

    gap: 7px;
}


.contact-option {
    display: flex;

    min-height: 45px;

    box-sizing: border-box;

    align-items: center;

    gap: 9px;

    padding: 0 10px;

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

    background: #fff;

    color: #50575b;

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


.contact-option input {
    width: 18px;
    height: 18px;

    accent-color: #299764;
}


.contact-form-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 12px;
}


.contact-delete {
    min-height: 38px;

    padding: 0 10px;

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

    color: #a3322d;

    background: #fff5f4;

    font-size: 7px;
    font-weight: 900;

    cursor: pointer;
}


.contact-create-card {
    margin-top: 14px;
}


@media (max-width: 1100px) {

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

}


@media (max-width: 650px) {

    .site-contact-grid,
    .contact-option-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   CONTACTS V2 · TILE FIRST
============================================================ */

.contact-tile-grid {
    display: grid;

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

    gap: 11px;

    align-items: start;
}


.contact-person-tile,
.contact-add-tile {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid #d9d4ce;

    border-top:
        3px solid #df3934;

    border-radius:
        15px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);
}


.contact-person-tile > summary,
.contact-add-tile > summary {
    list-style: none;
}


.contact-person-tile > summary::-webkit-details-marker,
.contact-add-tile > summary::-webkit-details-marker {
    display: none;
}


/* ------------------------------------------------------------
   CONTACT TILE
------------------------------------------------------------ */

.contact-person-summary {
    display: flex;

    min-height: 195px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 16px;

    cursor: pointer;

    touch-action: manipulation;
}


.contact-person-tile.readonly
.contact-person-summary {
    cursor: default;
}


.contact-person-top {
    display: flex;

    align-items: center;

    gap: 10px;
}


.contact-person-avatar {
    display: grid;

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    place-items: center;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.contact-person-heading {
    min-width: 0;

    flex: 1;
}


.contact-person-heading h3 {
    margin: 0;

    overflow: hidden;

    color: #292e32;

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

    text-overflow: ellipsis;

    white-space: nowrap;
}


.contact-person-heading span {
    display: block;

    margin-top: 3px;

    color: #8e9498;

    font-size: 7px;
}


.contact-person-primary {
    padding: 5px 7px;

    border-radius: 999px;

    color: #21704e;

    background: #e9f7ef;

    font-size: 6px;
    font-weight: 950;

    white-space: nowrap;
}


.contact-person-company {
    margin-top: 13px;

    color: #62696d;

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


.contact-person-data {
    display: grid;

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

    gap: 7px;

    margin-top: 13px;
}


.contact-person-data > div {
    min-width: 0;

    padding: 8px 9px;

    border-radius: 8px;

    background:
        rgba(238,237,233,.72);
}


.contact-person-data span {
    display: block;

    color: #9a9fa2;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.contact-person-data strong {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #3b4145;

    font-size: 8px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.contact-person-tags {
    display: flex;

    gap: 5px;

    flex-wrap: wrap;

    margin-top: 10px;
}


.contact-person-tags span {
    padding: 4px 7px;

    border-radius: 999px;

    color: #637078;

    background: #e9eeeb;

    font-size: 6px;
    font-weight: 900;
}


.contact-person-tags span.danger {
    color: #a3322d;

    background: #fde9e7;
}


.contact-person-action {
    margin-top: auto;

    padding-top: 13px;

    color: #353b3f;

    font-size: 8px;
    font-weight: 950;
}


/* geöffnet */

.contact-person-tile[open] {
    grid-column:
        span 2;

    border-top-color:
        #299764;
}


.contact-person-tile[open]
.contact-person-summary {
    min-height: auto;

    border-bottom:
        1px solid #e4dfd9;

    background:
        linear-gradient(
            145deg,
            #f7fcf9,
            #eef8f2
        );
}


.contact-person-tile[open]
.contact-person-avatar {
    background:
        linear-gradient(
            145deg,
            #35ad75,
            #217d53
        );
}


.contact-person-editor,
.contact-add-editor {
    padding: 17px;

    background: #fff;
}


.contact-editor-head {
    margin-bottom: 15px;
}


.contact-editor-head strong {
    display: block;

    color: #30363a;

    font-size: 11px;
}


.contact-editor-head span {
    display: block;

    margin-top: 3px;

    color: #91969a;

    font-size: 7px;
}


.contact-editor-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 14px;
}


/* ------------------------------------------------------------
   ADD CONTACT TILE
------------------------------------------------------------ */

.contact-add-tile {
    border-top-color:
        #299764;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(41,151,100,.15),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #2c3337,
            #1e2327
        );
}


.contact-add-summary {
    display: flex;

    min-height: 195px;

    box-sizing: border-box;

    flex-direction: column;

    align-items: flex-start;

    padding: 16px;

    color: #fff;

    cursor: pointer;

    touch-action: manipulation;
}


.contact-add-icon {
    display: grid;

    width: 43px;
    height: 43px;

    place-items: center;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #36ae75,
            #217d53
        );

    font-size: 20px;
    font-weight: 900;
}


.contact-add-summary h3 {
    margin: 16px 0 0;

    color: #fff;

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


.contact-add-summary p {
    margin: 5px 0 0;

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

    font-size: 8px;

    line-height: 1.45;
}


.contact-add-summary
.contact-person-action {
    color: #81dcaa;
}


.contact-add-tile[open] {
    grid-column:
        1 / -1;
}


.contact-add-tile[open]
.contact-add-summary {
    min-height: auto;

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


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

@media (max-width: 1100px) {

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

}


@media (max-width: 700px) {

    .contact-tile-grid {
        grid-template-columns: 1fr;
    }

    .contact-person-tile[open],
    .contact-add-tile[open] {
        grid-column: 1;
    }

    .contact-person-data {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   DOCUMENTS · TILE FIRST
============================================================ */

.document-category-grid,
.document-file-grid {
    display: grid;

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

    gap: 11px;

    align-items: start;
}


.document-category-tile,
.document-upload-tile {
    display: flex;

    min-height: 185px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    text-decoration: none;

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);
}


.document-category-icon {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.document-category-tile h3,
.document-upload-tile h3 {
    margin: 14px 0 0;

    color: #292e32;

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


.document-category-count {
    margin-top: 14px;

    color: #292e32;

    font-size: 27px;
    font-weight: 950;
}


.document-category-tile small {
    color: #959a9d;

    font-size: 7px;

    text-transform: uppercase;
}


.document-category-tile p {
    margin: 7px 0 0;

    color: #959a9d;

    font-size: 7px;
}


.document-category-action {
    margin-top: auto;
    padding-top: 12px;

    color: #363c40;

    font-size: 8px;
    font-weight: 900;
}


/* Upload */

.document-upload-tile {
    border-top-color: #299764;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #2c3337,
            #1d2326
        );
}


.document-upload-tile > summary {
    display: flex;

    min-height: 150px;

    flex-direction: column;

    list-style: none;

    cursor: pointer;
}


.document-upload-tile > summary::-webkit-details-marker {
    display: none;
}


.document-upload-tile
.document-category-icon {
    background:
        linear-gradient(
            145deg,
            #36ae75,
            #217d53
        );
}


.document-upload-tile h3 {
    color: #fff;
}


.document-upload-tile p {
    color: rgba(255,255,255,.62);

    font-size: 8px;
}


.document-upload-tile
.document-category-action {
    color: #82dcaa;
}


.document-upload-tile[open] {
    grid-column: 1 / -1;
}


.document-upload-editor {
    margin-top: 15px;

    padding: 16px;

    border-radius: 12px;

    background: #fff;

    color: #30363a;
}


/* Kategorie */

.document-area-heading {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 14px;
}


.document-area-heading h3 {
    margin: 0;

    color: #292e32;

    font-size: 14px;
}


.document-area-heading p {
    margin: 3px 0 0;

    color: #92979a;

    font-size: 8px;
}


/* Datei */

.document-file-card {
    display: flex;

    min-height: 200px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 15px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #30363b;
    border-radius: 14px;

    background: #fff;
}


.document-file-top {
    display: flex;

    align-items: center;
    justify-content: space-between;
}


.document-file-extension {
    padding: 6px 8px;

    border-radius: 7px;

    color: #fff;

    background: #31373b;

    font-size: 7px;
    font-weight: 950;
}


.document-file-date {
    color: #8d9397;

    font-size: 7px;
}


.document-file-card h3 {
    margin: 15px 0 0;

    color: #292e32;

    font-size: 11px;
}


.document-file-card > p {
    margin: 4px 0 0;

    overflow: hidden;

    color: #959a9e;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.document-file-system {
    margin-top: 10px;

    padding: 7px 8px;

    border-radius: 7px;

    color: #646c70;

    background: #f1f0ed;

    font-size: 7px;
}


.document-file-meta {
    display: flex;

    justify-content: space-between;

    gap: 8px;

    margin-top: 10px;

    color: #9a9fa2;

    font-size: 6px;
}


.document-file-actions {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-top: auto;

    padding-top: 14px;
}


.document-file-actions a {
    color: #333a3e;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.document-file-actions form {
    margin: 0;
}


.document-file-actions button {
    padding: 0;

    border: 0;

    color: #ad3832;

    background: transparent;

    font-size: 7px;
    font-weight: 900;

    cursor: pointer;
}


.document-category-upload {
    margin-top: 14px;

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

    background: #fff;
}


.document-category-upload > summary {
    padding: 13px;

    color: #30363a;

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

    cursor: pointer;
}


@media (max-width: 1250px) {

    .document-category-grid,
    .document-file-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media (max-width: 850px) {

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

}


@media (max-width: 550px) {

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

}



/* ============================================================
   DEFECTS · TILE FIRST
============================================================ */

.defect-hub-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 11px;
    align-items: start;
}


.defect-hub-tile,
.defect-add-tile {
    display: flex;
    min-height: 190px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);

    text-decoration: none;
}


.defect-hub-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 18px;
    font-weight: 950;
}


.defect-hub-tile h3,
.defect-add-tile h3 {
    margin: 14px 0 0;
    color: #292e32;
    font-size: 13px;
    font-weight: 950;
}


.defect-hub-tile p,
.defect-add-tile p {
    margin: 5px 0 0;
    color: #8c9296;
    font-size: 8px;
    line-height: 1.45;
}


.defect-hub-number {
    margin-top: 14px;
    color: #292e32;
    font-size: 28px;
    font-weight: 950;
}


.defect-hub-tile small {
    color: #969b9e;
    font-size: 7px;
    text-transform: uppercase;
}


.defect-hub-action {
    margin-top: auto;
    padding-top: 13px;
    color: #353b3f;
    font-size: 8px;
    font-weight: 950;
}


.defect-hub-tile.state-good {
    border-top-color: #299764;
}


.defect-hub-tile.state-good
.defect-hub-icon {
    background:
        linear-gradient(
            145deg,
            #35ae75,
            #217d53
        );
}


.defect-hub-tile.state-warning {
    border-top-color: #dc941d;
}


.defect-hub-tile.state-danger {
    background:
        linear-gradient(
            150deg,
            #fff,
            #fff3f2
        );
}


/* Add */

.defect-add-tile {
    border-top-color: #299764;
    color: #fff;

    background:
        linear-gradient(
            145deg,
            #2c3337,
            #1d2326
        );
}


.defect-add-tile > summary {
    display: flex;
    min-height: 155px;
    flex-direction: column;
    list-style: none;
    cursor: pointer;
}


.defect-add-tile > summary::-webkit-details-marker {
    display: none;
}


.defect-add-tile h3 {
    color: #fff;
}


.defect-add-tile p {
    color: rgba(255,255,255,.62);
}


.defect-add-tile
.defect-hub-action {
    color: #83dcaa;
}


.defect-add-tile[open] {
    grid-column: 1 / -1;
}


.defect-add-editor {
    margin-top: 14px;
    padding: 16px;

    border-radius: 12px;

    color: #30363a;
    background: #fff;
}


/* ------------------------------------------------------------
   DEFECT CARDS
------------------------------------------------------------ */

.defect-area-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}


.defect-area-title h3 {
    margin: 0;
    color: #292e32;
    font-size: 14px;
}


.defect-area-title p {
    margin: 3px 0 0;
    color: #93989c;
    font-size: 8px;
}


.defect-card-grid {
    display: grid;

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

    gap: 11px;

    align-items: start;
}


.defect-card {
    overflow: hidden;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 14px;

    background: #fff;
}


.defect-card > summary {
    display: flex;
    min-height: 190px;
    box-sizing: border-box;
    flex-direction: column;

    padding: 15px;

    list-style: none;
    cursor: pointer;
}


.defect-card > summary::-webkit-details-marker {
    display: none;
}


.defect-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}


.defect-number {
    color: #737a7e;
    font-size: 7px;
    font-weight: 950;
}


.defect-severity {
    padding: 5px 7px;

    border-radius: 999px;

    color: #97352f;
    background: #fde9e7;

    font-size: 6px;
    font-weight: 950;

    text-transform: uppercase;
}


.defect-card.severity-low {
    border-top-color: #90979b;
}


.defect-card.severity-medium {
    border-top-color: #d99622;
}


.defect-card.severity-high,
.defect-card.severity-critical {
    border-top-color: #df3934;
}


.defect-card.resolved {
    border-top-color: #299764;
}


.defect-card.resolved
.defect-severity {
    color: #21704e;
    background: #eaf7f0;
}


.defect-card h3 {
    margin: 15px 0 0;

    color: #292e32;

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


.defect-category {
    margin-top: 6px;

    color: #858c90;

    font-size: 7px;
}


.defect-source {
    display: grid;

    gap: 3px;

    margin-top: 13px;

    padding: 9px;

    border-radius: 8px;

    background: #f2f1ee;
}


.defect-source strong {
    color: #3b4246;
    font-size: 8px;
}


.defect-source span {
    color: #92979b;
    font-size: 7px;
}


.defect-card-footer {
    display: flex;

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

    gap: 8px;

    margin-top: auto;
    padding-top: 14px;

    color: #90969a;

    font-size: 7px;
}


.defect-card-footer strong {
    color: #343b3f;

    font-size: 8px;
}


.defect-card[open] {
    grid-column: span 2;

    border-top-color: #30363b;
}


.defect-detail {
    padding: 16px;

    border-top: 1px solid #e4dfd9;

    background: #faf9f7;
}


.defect-detail-block {
    margin-bottom: 10px;

    padding: 10px;

    border-radius: 9px;

    background: #fff;
}


.defect-detail-block span,
.defect-resolution span {
    display: block;

    color: #969b9e;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.defect-detail-block p {
    margin: 4px 0 0;

    color: #42494d;

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


.defect-start-button,
.defect-resolve-button {
    min-height: 47px;

    padding: 0 14px;

    border: 0;
    border-radius: 9px;

    color: #fff;

    font-size: 8px;
    font-weight: 900;

    cursor: pointer;
}


.defect-start-button {
    background:
        linear-gradient(
            135deg,
            #3b4247,
            #242a2e
        );
}


.defect-resolve {
    margin-top: 11px;

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

    background: #f0f9f4;
}


.defect-resolve > summary {
    padding: 12px;

    color: #23704f;

    font-size: 8px;
    font-weight: 950;

    cursor: pointer;
}


.defect-resolve form {
    display: grid;

    gap: 10px;

    padding: 0 12px 12px;
}


.defect-resolve-button {
    background:
        linear-gradient(
            135deg,
            #35ad75,
            #217d53
        );
}


.defect-resolution {
    display: grid;

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

    gap: 8px;
}


.defect-resolution > div {
    padding: 9px;

    border-radius: 8px;

    background: #edf8f2;
}


.defect-resolution .full {
    grid-column: 1 / -1;
}


.defect-resolution strong {
    display: block;

    margin-top: 4px;

    color: #35604d;

    font-size: 8px;
}


/* ------------------------------------------------------------
   RECURRING
------------------------------------------------------------ */

.recurring-defect-grid {
    display: grid;

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

    gap: 11px;
}


.recurring-defect-card {
    display: grid;

    grid-template-columns:
        70px 1fr;

    gap: 14px;

    padding: 16px;

    border: 1px solid #e1c998;
    border-top: 3px solid #dc941d;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff8e9
        );
}


.recurring-defect-count {
    display: grid;

    width: 62px;
    height: 62px;

    place-items: center;

    border-radius: 15px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #dc9b29,
            #b87911
        );

    font-size: 20px;
    font-weight: 950;
}


.recurring-label {
    color: #a26d17;

    font-size: 6px;
    font-weight: 950;

    text-transform: uppercase;
}


.recurring-defect-card h3 {
    margin: 5px 0 0;

    color: #31373b;

    font-size: 12px;
}


.recurring-defect-card p {
    margin: 4px 0 0;

    color: #777e82;

    font-size: 8px;
}


.recurring-period {
    margin-top: 10px;

    color: #8a7a59;

    font-size: 7px;
}


.recurring-open {
    display: inline-flex;

    margin-top: 8px;
    padding: 5px 7px;

    border-radius: 999px;

    color: #a3322d;
    background: #fde9e7;

    font-size: 6px;
    font-weight: 900;
}


@media (max-width: 1100px) {

    .defect-hub-grid,
    .defect-card-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 700px) {

    .defect-hub-grid,
    .defect-card-grid,
    .recurring-defect-grid {
        grid-template-columns: 1fr;
    }

    .defect-card[open] {
        grid-column: 1;
    }

    .defect-resolution {
        grid-template-columns: 1fr;
    }

    .defect-resolution .full {
        grid-column: auto;
    }

}



/* ============================================================
   LIFECYCLE / FRISTEN & AUSTAUSCH
============================================================ */

.lifecycle-hub-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 11px;
}


.lifecycle-hub-tile {
    display: flex;
    min-height: 190px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    color: inherit;
    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);

    text-decoration: none;
}


.lifecycle-hub-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.lifecycle-hub-tile h3 {
    margin: 14px 0 0;
    color: #292e32;
    font-size: 13px;
    font-weight: 950;
}


.lifecycle-hub-tile p {
    margin: 5px 0 0;
    color: #8c9296;
    font-size: 8px;
    line-height: 1.45;
}


.lifecycle-hub-number {
    margin-top: 14px;
    color: #292e32;
    font-size: 28px;
    font-weight: 950;
}


.lifecycle-hub-tile small {
    color: #969b9e;
    font-size: 7px;
    text-transform: uppercase;
}


.lifecycle-hub-action {
    margin-top: auto;
    padding-top: 13px;
    color: #353b3f;
    font-size: 8px;
    font-weight: 950;
}


.lifecycle-hub-tile.state-good {
    border-top-color: #299764;
}


.lifecycle-hub-tile.state-good
.lifecycle-hub-icon {
    background:
        linear-gradient(
            145deg,
            #35ae75,
            #217d53
        );
}


.lifecycle-hub-tile.state-warning {
    border-top-color: #dc941d;
}


.lifecycle-hub-tile.state-danger {
    border-top-color: #df3934;
    background:
        linear-gradient(
            150deg,
            #fff,
            #fff2f1
        );
}


.lifecycle-add-tile {
    border-top-color: #299764;
    color: #fff;

    background:
        linear-gradient(
            145deg,
            #2c3337,
            #1d2326
        );
}


.lifecycle-add-tile h3 {
    color: #fff;
}


.lifecycle-add-tile p {
    color: rgba(255,255,255,.62);
}


.lifecycle-add-tile
.lifecycle-hub-icon {
    background:
        linear-gradient(
            145deg,
            #36ae75,
            #217d53
        );
}


.lifecycle-add-tile
.lifecycle-hub-action {
    color: #82dcaa;
}


.lifecycle-no-date {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
    padding: 4px 7px;
    border-radius: 999px;

    color: #916419;
    background: #fff1d5;

    font-size: 6px;
    font-weight: 900;
}


/* Lifecycle cards */

.lifecycle-rule-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 11px;
    align-items: start;
}


.lifecycle-rule-card {
    padding: 15px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #30363b;
    border-radius: 14px;

    background: #fff;
}


.lifecycle-rule-card.lifecycle-overdue {
    border-top-color: #df3934;
    background:
        linear-gradient(
            150deg,
            #fff,
            #fff3f2
        );
}


.lifecycle-rule-card.lifecycle-soon {
    border-top-color: #dc941d;
}


.lifecycle-rule-card.lifecycle-ok {
    border-top-color: #299764;
}


.lifecycle-rule-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}


.lifecycle-rule-type {
    display: inline-flex;
    padding: 5px 7px;
    border-radius: 7px;

    color: #fff;
    background: #343a3e;

    font-size: 7px;
    font-weight: 950;
}


.lifecycle-rule-system {
    display: block;
    margin-top: 5px;
    color: #92979b;
    font-size: 7px;
}


.lifecycle-due-badge {
    align-self: flex-start;

    padding: 5px 7px;
    border-radius: 999px;

    color: #596267;
    background: #edf0f1;

    font-size: 6px;
    font-weight: 950;
}


.lifecycle-overdue
.lifecycle-due-badge {
    color: #a3332e;
    background: #fde9e7;
}


.lifecycle-soon
.lifecycle-due-badge {
    color: #996617;
    background: #fff1d6;
}


.lifecycle-ok
.lifecycle-due-badge {
    color: #21704e;
    background: #eaf7f0;
}


.lifecycle-rule-card h3 {
    margin: 15px 0 0;
    color: #292e32;
    font-size: 12px;
    font-weight: 950;
}


.lifecycle-component-number {
    margin-top: 4px;
    color: #92979b;
    font-size: 7px;
}


.battery-spec-grid,
.lifecycle-date-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 7px;
    margin-top: 13px;
}


.battery-spec-grid > div,
.lifecycle-date-grid > div {
    padding: 8px;
    border-radius: 8px;
    background: #f3f2ef;
}


.battery-spec-grid span,
.lifecycle-date-grid span,
.lifecycle-parent span {
    display: block;
    color: #999ea1;
    font-size: 6px;
    font-weight: 900;
    text-transform: uppercase;
}


.battery-spec-grid strong,
.lifecycle-date-grid strong,
.lifecycle-parent strong {
    display: block;
    margin-top: 4px;
    color: #3d4448;
    font-size: 8px;
}


.lifecycle-parent {
    margin-top: 10px;
    padding: 9px;
    border-radius: 8px;
    background: #f3f2ef;
}


.lifecycle-location {
    margin-top: 10px;
    color: #737b7f;
    font-size: 7px;
    line-height: 1.5;
}


.lifecycle-warning,
.lifecycle-info {
    margin-top: 10px;
    padding: 8px 9px;
    border-radius: 8px;

    font-size: 7px;
    font-weight: 900;
}


.lifecycle-warning {
    color: #a3332e;
    background: #fde9e7;
}


.lifecycle-info {
    color: #966719;
    background: #fff2d9;
}


.lifecycle-complete {
    margin-top: 12px;

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

    background: #f0f9f4;
}


.lifecycle-complete > summary {
    padding: 11px;
    color: #23704f;
    font-size: 8px;
    font-weight: 950;
    cursor: pointer;
}


.lifecycle-complete form {
    display: grid;
    gap: 10px;
    padding: 0 11px 11px;
}


.lifecycle-complete-button {
    min-height: 46px;

    border: 0;
    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #35ad75,
            #217d53
        );

    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
}


@media (max-width: 1100px) {

    .lifecycle-hub-grid,
    .lifecycle-rule-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 700px) {

    .lifecycle-hub-grid,
    .lifecycle-rule-grid,
    .battery-spec-grid,
    .lifecycle-date-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   OBJECT HISTORY
============================================================ */

.history-hub-grid {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap: 11px;
}


.history-hub-tile {
    display: flex;
    min-height: 170px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);

    text-decoration: none;
}


.history-hub-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;

    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 16px;
    font-weight: 900;
}


.history-hub-tile h3 {
    margin: 14px 0 0;
    color: #292e32;
    font-size: 12px;
    font-weight: 950;
}


.history-hub-count {
    margin-top: 13px;
    color: #292e32;
    font-size: 25px;
    font-weight: 950;
}


.history-hub-tile small {
    color: #969b9e;
    font-size: 7px;
    text-transform: uppercase;
}


.history-hub-action {
    margin-top: auto;
    padding-top: 12px;

    color: #363c40;

    font-size: 8px;
    font-weight: 950;
}


/* Chronologie */

.history-area-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 13px;
}


.history-area-head h3 {
    margin: 0;
    color: #292e32;
    font-size: 14px;
}


.history-area-head span {
    color: #92979b;
    font-size: 8px;
}


.history-timeline {
    position: relative;

    display: grid;
    gap: 9px;

    padding-left: 25px;
}


.history-timeline::before {
    content: '';

    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;

    width: 1px;

    background: #dcd7d1;
}


.history-event {
    position: relative;

    display: grid;
    grid-template-columns:
        38px 1fr;

    gap: 10px;
}


.history-event-marker {
    position: relative;
    z-index: 2;

    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;

    margin-left: -31px;

    border: 4px solid #f6f4f1;
    border-radius: 50%;

    color: #fff;
    background: #343a3e;

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


.history-event-content {
    padding: 13px 14px;

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

    background: #fff;
}


.history-event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}


.history-event-category {
    color: #c53b35;

    font-size: 6px;
    font-weight: 950;

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


.history-event time {
    color: #999ea1;
    font-size: 7px;
}


.history-event-content h3 {
    margin: 7px 0 0;

    color: #30363a;

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


.history-event-content p {
    margin: 5px 0 0;

    color: #777e82;

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


.history-event-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;

    margin-top: 9px;
}


.history-event-meta span {
    padding: 4px 6px;

    border-radius: 999px;

    color: #6d7579;
    background: #f0efec;

    font-size: 6px;
}


@media (max-width: 1150px) {

    .history-hub-grid {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media (max-width: 800px) {

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

}


@media (max-width: 550px) {

    .history-hub-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   TECHNOLOGY WORKSPACE · TILE FIRST
============================================================ */

.technology-system-grid,
.technology-group-grid,
.technology-floor-grid,
.technology-component-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 11px;
    align-items: start;
}


.technology-system-card,
.technology-group-card,
.technology-floor-card,
.technology-component-card,
.technology-add-card {
    display: flex;
    min-height: 175px;
    box-sizing: border-box;
    flex-direction: column;
    padding: 16px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.05);

    text-decoration: none;
}


.technology-system-top,
.technology-group-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


.technology-system-icon,
.technology-floor-icon,
.technology-component-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

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


.technology-system-type {
    padding: 5px 7px;
    border-radius: 999px;

    color: #8f302b;
    background: #fdebea;

    font-size: 6px;
    font-weight: 950;
}


.technology-system-card h3,
.technology-group-card h3,
.technology-floor-card h3,
.technology-component-card h3,
.technology-add-card h3 {
    margin: 14px 0 0;

    color: #292e32;

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


.technology-system-number,
.technology-group-location {
    margin-top: 4px;

    color: #92979b;

    font-size: 7px;
}


.technology-system-data {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}


.technology-system-data > div {
    padding: 7px 8px;

    border-radius: 8px;

    background: #f1f0ed;
}


.technology-system-data span {
    display: block;

    color: #969b9f;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.technology-system-data strong {
    display: block;
    margin-top: 3px;

    color: #41484c;

    font-size: 8px;
}


.technology-system-stats {
    display: flex;
    gap: 13px;

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

    color: #93989b;

    font-size: 7px;
}


.technology-system-stats strong {
    color: #30363a;
    font-size: 11px;
}


.technology-group-top span {
    color: #969b9f;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.technology-group-top strong {
    color: #30363a;

    font-size: 15px;
}


.technology-group-count,
.technology-floor-count {
    margin-top: 14px;

    color: #292e32;

    font-size: 27px;
    font-weight: 950;
}


.technology-group-card small,
.technology-floor-card small,
.technology-component-card small {
    color: #969b9e;

    font-size: 7px;

    text-transform: uppercase;
}


.technology-type-summary {
    margin-top: 9px;

    color: #747c80;

    font-size: 7px;

    line-height: 1.45;
}


.technology-group-action {
    margin-top: auto;
    padding-top: 12px;

    color: #353b3f;

    font-size: 8px;
    font-weight: 950;
}


.technology-add-card {
    border-top-color: #299764;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #2c3337,
            #1d2326
        );
}


.technology-add-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #36ae75,
            #217d53
        );

    font-size: 20px;
}


.technology-add-card h3 {
    color: #fff;
}


.technology-add-card p {
    color: rgba(255,255,255,.62);

    font-size: 8px;
}


/* Unter-Navigation */

.technology-subnav {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;

    padding: 10px 12px;

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

    background: #fff;
}


.technology-subnav a {
    color: #555d61;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.technology-subnav strong {
    color: #30363a;

    font-size: 10px;
}


.technology-subnav span {
    margin-left: auto;

    color: #92979b;

    font-size: 7px;
}


/* Arbeitsliste */

.technology-list {
    display: grid;

    gap: 6px;
}


.technology-list-row {
    display: grid;

    grid-template-columns:
        54px
        minmax(170px,.75fr)
        minmax(180px,1fr)
        minmax(120px,.45fr);

    gap: 12px;

    align-items: center;

    min-height: 68px;

    box-sizing: border-box;

    padding: 10px 12px;

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

    background: #fff;
}


.technology-list-code span {
    display: grid;

    min-height: 38px;

    place-items: center;

    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 8px;
    font-weight: 950;
}


.technology-list-main {
    display: grid;

    gap: 3px;
}


.technology-list-main strong {
    color: #30363a;

    font-size: 9px;
}


.technology-list-main span,
.technology-list-location,
.technology-list-address {
    color: #858c90;

    font-size: 7px;
}


@media (max-width: 1100px) {

    .technology-system-grid,
    .technology-group-grid,
    .technology-floor-grid,
    .technology-component-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 750px) {

    .technology-system-grid,
    .technology-group-grid,
    .technology-floor-grid,
    .technology-component-grid {
        grid-template-columns: 1fr;
    }

    .technology-list-row {
        grid-template-columns:
            46px 1fr;
    }

    .technology-list-location,
    .technology-list-address {
        grid-column: 2;
    }

}



/* ============================================================
   NAVIGATION BACK ACTION V2
   Einheitlich für alle Objekt-Unterseiten
============================================================ */

.object-area-head {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    align-items: start !important;
}


.object-area-head > a,
.technology-subnav > a,
.mamo-back-action {
    display: inline-flex !important;

    width: fit-content !important;
    min-height: 42px !important;

    box-sizing: border-box;

    align-items: center !important;

    gap: 8px !important;

    padding: 0 13px !important;

    border:
        1px solid #cbc6c0 !important;

    border-left:
        4px solid #df3934 !important;

    border-radius:
        10px !important;

    color:
        #30363a !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f3f0
        ) !important;

    box-shadow:
        0 5px 14px
        rgba(20,24,28,.055) !important;

    font-size:
        9px !important;

    font-weight:
        950 !important;

    text-decoration:
        none !important;

    cursor:
        pointer;

    touch-action:
        manipulation;

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


.object-area-head > a:hover,
.technology-subnav > a:hover,
.mamo-back-action:hover {
    transform:
        translateX(-2px);

    border-color:
        #df3934 !important;

    background:
        #fff7f6 !important;
}


/* Der Pfeil bekommt optisch mehr Gewicht */

.object-area-head > a::first-letter,
.technology-subnav > a::first-letter {
    font-size: 15px;
}


/* ------------------------------------------------------------
   NAVIGATIONSPFAD
------------------------------------------------------------ */

.mamo-work-breadcrumb {
    display: flex;

    align-items: center;

    gap: 6px;

    flex-wrap: wrap;

    margin-bottom: 5px;

    color:
        #94999c;

    font-size:
        7px;

    font-weight:
        800;
}


.mamo-work-breadcrumb a {
    color:
        #70777b;

    text-decoration:
        none;
}


.mamo-work-breadcrumb a:hover {
    color:
        #c93631;
}


.mamo-work-breadcrumb span {
    color:
        #b8bbbd;
}


/* ------------------------------------------------------------
   DEEP SUBNAV
------------------------------------------------------------ */

.technology-subnav {
    min-height:
        58px !important;

    padding:
        8px 10px !important;

    border:
        1px solid #ddd8d2 !important;

    border-radius:
        12px !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        ) !important;

    box-shadow:
        0 5px 14px
        rgba(20,24,28,.04);
}


.technology-subnav > a {
    margin-right:
        4px;
}


.technology-subnav > strong {
    color:
        #30363a !important;

    font-size:
        10px !important;

    font-weight:
        950 !important;
}


/* Tablet / Mobile */

@media (max-width: 650px) {

    .object-area-head > a,
    .technology-subnav > a,
    .mamo-back-action {
        min-height:
            48px !important;

        padding:
            0 14px !important;
    }


    .technology-subnav {
        align-items:
            stretch !important;

        flex-direction:
            column !important;
    }


    .technology-subnav > span {
        margin-left:
            0 !important;
    }

}



/* ============================================================
   OBJECT WORK NAVIGATION · GLOBAL
============================================================ */

.object-work-backbar {
    display: flex;

    min-height: 54px;

    box-sizing: border-box;

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

    gap: 18px;

    margin-bottom: 13px;

    padding: 7px 10px;

    border:
        1px solid #d8d3cd;

    border-radius:
        12px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f6f4f1
        );

    box-shadow:
        0 6px 18px
        rgba(20,24,28,.05);
}


.object-work-backbutton {
    display: inline-flex;

    min-height: 40px;

    box-sizing: border-box;

    align-items: center;

    gap: 9px;

    padding:
        0 14px 0 8px;

    border:
        1px solid #cfcac4;

    border-radius:
        9px;

    color:
        #30363a;

    background:
        #fff;

    box-shadow:
        0 4px 10px
        rgba(20,24,28,.045);

    font-size:
        9px;

    font-weight:
        950;

    text-decoration:
        none;

    touch-action:
        manipulation;
}


.object-work-backarrow {
    display: grid;

    width: 29px;
    height: 29px;

    place-items: center;

    border-radius:
        7px;

    color:
        #fff;

    background:
        linear-gradient(
            145deg,
            #df413b,
            #bd2e29
        );

    font-size:
        15px;

    font-weight:
        900;
}


.object-work-backbutton:hover {
    border-color:
        #d33b35;

    background:
        #fff8f7;
}


/* Pfad rechts */

.object-work-path {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    flex-wrap: wrap;

    color:
        #a3a7aa;

    font-size:
        7px;
}


.object-work-path strong {
    color:
        #767d81;

    font-weight:
        850;
}


.object-work-path strong:last-child {
    color:
        #30363a;

    font-weight:
        950;
}


/*
|--------------------------------------------------------------------------
| Lokale alte Zurück-Buttons ausblenden
|--------------------------------------------------------------------------
|
| Die Kontextinformationen / Überschriften bleiben erhalten.
| Zurück navigiert wird ausschließlich über die zentrale Leiste.
|--------------------------------------------------------------------------
*/

.object-area-head > a {
    display:
        none !important;
}


.object-area-head {
    grid-template-columns:
        1fr !important;
}


.technology-subnav > a {
    display:
        none !important;
}


/* Mobile */

@media (max-width: 700px) {

    .object-work-backbar {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .object-work-backbutton {
        min-height:
            48px;

        width:
            100%;
    }


    .object-work-path {
        justify-content:
            flex-start;

        padding:
            0 4px 3px;
    }

}



/* ============================================================
   TECHNOLOGY DETAIL
============================================================ */

a.technology-list-row {
    color: inherit;

    text-decoration: none;

    cursor: pointer;

    touch-action: manipulation;

    transition:
        border-color .14s ease,
        transform .14s ease,
        box-shadow .14s ease;
}


a.technology-list-row:hover {
    transform: translateY(-1px);

    border-color:
        rgba(215,57,52,.48);

    box-shadow:
        0 7px 18px
        rgba(20,24,28,.065);
}


.technology-detail {
    display: grid;

    gap: 12px;
}


.technology-detail-hero {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px;

    border:
        1px solid #d9d4ce;

    border-radius:
        14px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.technology-detail-icon {
    display: grid;

    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    place-items: center;

    border-radius:
        14px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 11px;

    font-weight: 950;
}


.technology-detail-kicker {
    color: #d33a34;

    font-size: 7px;

    font-weight: 950;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.technology-detail-hero h2 {
    margin: 4px 0 0;

    color: #292e32;

    font-size: 19px;

    letter-spacing: -.025em;
}


.technology-detail-meta {
    display: flex;

    gap: 6px;

    flex-wrap: wrap;

    margin-top: 6px;
}


.technology-detail-meta span {
    padding: 4px 7px;

    border-radius: 999px;

    color: #6a7277;

    background: #eceeea;

    font-size: 6px;

    font-weight: 850;
}



/* ============================================================
   MAMO TILE DESIGN SYSTEM V1
   Technische Tiefe · Hover Reflection · SaaS Tile DNA
============================================================ */


/*
|--------------------------------------------------------------------------
| Alle primären Kacheln
|--------------------------------------------------------------------------
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .maintenance-visit-card,
    .contact-person-summary,
    .contact-add-summary,
    .document-category-tile,
    .document-upload-tile > summary,
    .document-file-card,
    .defect-hub-tile,
    .defect-add-tile > summary,
    .defect-card > summary,
    .recurring-defect-card,
    .lifecycle-hub-tile,
    .lifecycle-rule-card,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card,
    .technology-add-card,
    .technology-list-row
) {
    position: relative;

    overflow: hidden;

    isolation: isolate;

    -webkit-tap-highlight-color:
        transparent;

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


/*
|--------------------------------------------------------------------------
| Technischer Hintergrund
|--------------------------------------------------------------------------
|
| 1. großer angeschnittener Kreis
| 2. feine diagonale technische Linien
| 3. kleine rote Markierung
|
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .maintenance-visit-card,
    .contact-person-summary,
    .document-category-tile,
    .document-file-card,
    .defect-hub-tile,
    .defect-card > summary,
    .lifecycle-hub-tile,
    .lifecycle-rule-card,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card,
    .technology-list-row
)::before {
    content: '';

    position: absolute;

    z-index: -1;

    inset: 0;

    pointer-events: none;

    opacity: .72;

    background-image:

        /* großer technischer Halbkreis */
        radial-gradient(
            circle at 112% -12%,
            transparent 0 74px,
            rgba(211,57,52,.075) 75px 76px,
            transparent 77px 98px,
            rgba(48,54,58,.050) 99px 100px,
            transparent 101px
        ),

        /* kleiner Ring */
        radial-gradient(
            circle at 92% 88%,
            transparent 0 30px,
            rgba(48,54,58,.038) 31px 32px,
            transparent 33px
        ),

        /* horizontale technische Linie */
        linear-gradient(
            90deg,
            transparent 0 72%,
            rgba(211,57,52,.050) 72% 72.5%,
            transparent 72.5%
        ),

        /* feines Raster */
        linear-gradient(
            rgba(42,48,52,.022) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(42,48,52,.022) 1px,
            transparent 1px
        );

    background-size:
        auto,
        auto,
        auto,
        26px 26px,
        26px 26px;
}


/*
|--------------------------------------------------------------------------
| Wandernder Reflex
|--------------------------------------------------------------------------
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .maintenance-visit-card,
    .contact-person-summary,
    .contact-add-summary,
    .document-category-tile,
    .document-upload-tile > summary,
    .document-file-card,
    .defect-hub-tile,
    .defect-add-tile > summary,
    .defect-card > summary,
    .lifecycle-hub-tile,
    .lifecycle-rule-card,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card,
    .technology-add-card,
    .technology-list-row
)::after {
    content: '';

    position: absolute;

    z-index: 1;

    top: -40%;
    bottom: -40%;

    left: -85%;

    width: 55%;

    pointer-events: none;

    opacity: 0;

    transform:
        skewX(-18deg);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.04) 20%,
            rgba(255,255,255,.54) 50%,
            rgba(220,57,52,.08) 70%,
            transparent 100%
        );

    transition:
        left .58s cubic-bezier(.22,.75,.3,1),
        opacity .18s ease;
}


/*
|--------------------------------------------------------------------------
| Inhalt immer über Dekoration
|--------------------------------------------------------------------------
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .maintenance-visit-card,
    .contact-person-summary,
    .contact-add-summary,
    .document-category-tile,
    .document-upload-tile > summary,
    .document-file-card,
    .defect-hub-tile,
    .defect-add-tile > summary,
    .defect-card > summary,
    .lifecycle-hub-tile,
    .lifecycle-rule-card,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card,
    .technology-add-card,
    .technology-list-row
) > * {
    position: relative;

    z-index: 2;
}


/*
|--------------------------------------------------------------------------
| Hover – gesamte Kachel lebt
|--------------------------------------------------------------------------
*/

@media (hover:hover) {

    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .maintenance-visit-card,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .document-file-card,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .defect-card > summary,
        .lifecycle-hub-tile,
        .lifecycle-rule-card,
        .history-hub-tile,
        .technology-system-card,
        .technology-group-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card,
        .technology-list-row
    ):hover {
        transform:
            translateY(-3px);

        border-color:
            rgba(203,55,50,.46);

        box-shadow:
            0 17px 37px
            rgba(20,24,28,.115),
            0 2px 7px
            rgba(20,24,28,.05);
    }


    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .maintenance-visit-card,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .document-file-card,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .defect-card > summary,
        .lifecycle-hub-tile,
        .lifecycle-rule-card,
        .history-hub-tile,
        .technology-system-card,
        .technology-group-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card,
        .technology-list-row
    ):hover::after {
        left: 140%;

        opacity: .82;
    }

}


/*
|--------------------------------------------------------------------------
| Icons reagieren ebenfalls
|--------------------------------------------------------------------------
*/

:is(
    .object-work-icon,
    .object-main-icon,
    .object-subtile-icon,
    .maintenance-hub-icon,
    .contact-person-avatar,
    .contact-add-icon,
    .document-category-icon,
    .defect-hub-icon,
    .lifecycle-hub-icon,
    .history-hub-icon,
    .technology-system-icon,
    .technology-floor-icon,
    .technology-component-icon,
    .technology-detail-icon
) {
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}


@media (hover:hover) {

    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .lifecycle-hub-tile,
        .history-hub-tile,
        .technology-system-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card
    ):hover
    :is(
        .object-main-icon,
        .object-subtile-icon,
        .maintenance-hub-icon,
        .contact-person-avatar,
        .contact-add-icon,
        .document-category-icon,
        .defect-hub-icon,
        .lifecycle-hub-icon,
        .history-hub-icon,
        .technology-system-icon,
        .technology-floor-icon,
        .technology-component-icon
    ) {
        transform:
            translateY(-2px)
            scale(1.055);

        box-shadow:
            0 9px 20px
            rgba(20,24,28,.18);
    }

}


/* ============================================================
   DARK TILE VARIANT
============================================================ */

:is(
    .object-add-tech-tile,
    .object-subtile-add,
    .contact-add-summary,
    .document-upload-tile > summary,
    .defect-add-tile > summary,
    .lifecycle-add-tile,
    .technology-add-card
)::before {
    content: '';

    position: absolute;

    z-index: -1;

    inset: 0;

    pointer-events: none;

    background-image:

        radial-gradient(
            circle at 110% -15%,
            transparent 0 70px,
            rgba(64,205,133,.17) 71px 72px,
            transparent 73px 100px,
            rgba(255,255,255,.055) 101px 102px,
            transparent 103px
        ),

        radial-gradient(
            circle at 88% 90%,
            transparent 0 34px,
            rgba(226,61,55,.15) 35px 36px,
            transparent 37px
        ),

        linear-gradient(
            90deg,
            transparent 0 75%,
            rgba(255,255,255,.035) 75% 75.5%,
            transparent 75.5%
        ),

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size:
        auto,
        auto,
        auto,
        27px 27px,
        27px 27px;
}


:is(
    .object-add-tech-tile,
    .object-subtile-add,
    .contact-add-summary,
    .document-upload-tile > summary,
    .defect-add-tile > summary,
    .lifecycle-add-tile,
    .technology-add-card
)::after {
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.045),
            rgba(255,255,255,.19),
            rgba(61,201,130,.10),
            transparent
        );
}


/*
|--------------------------------------------------------------------------
| Dunkle Kachel bei Hover
|--------------------------------------------------------------------------
*/

@media (hover:hover) {

    :is(
        .object-add-tech-tile,
        .object-subtile-add,
        .contact-add-summary,
        .document-upload-tile > summary,
        .defect-add-tile > summary,
        .lifecycle-add-tile,
        .technology-add-card
    ):hover {
        border-color:
            rgba(62,196,127,.58);

        box-shadow:
            0 18px 38px
            rgba(16,22,19,.25),
            inset 0 0 0 1px
            rgba(255,255,255,.025);
    }

}


/* ============================================================
   TECHNICAL EDGE DETAILS
============================================================ */


/*
   kleines rotes Maschinendetail unten rechts
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .document-category-tile,
    .defect-hub-tile,
    .lifecycle-hub-tile,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card
) {
    background-clip:
        padding-box;
}


/*
   kleine technische Kerbe oben rechts
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .document-category-tile,
    .defect-hub-tile,
    .lifecycle-hub-tile,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card
) {
    clip-path:
        polygon(
            0 0,
            calc(100% - 14px) 0,
            100% 14px,
            100% 100%,
            0 100%
        );
}


/*
|--------------------------------------------------------------------------
| Aktiv / geprüft bleibt semantisch sichtbar
|--------------------------------------------------------------------------
*/

:is(
    .object-main-tile.state-good,
    .maintenance-hub-tile.state-good,
    .defect-hub-tile.state-good,
    .lifecycle-hub-tile.state-good
)::before {
    background-image:

        radial-gradient(
            circle at 112% -12%,
            transparent 0 74px,
            rgba(41,151,100,.12) 75px 76px,
            transparent 77px 100px,
            rgba(41,151,100,.045) 101px 102px,
            transparent 103px
        ),

        linear-gradient(
            rgba(41,151,100,.020) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(41,151,100,.020) 1px,
            transparent 1px
        );

    background-size:
        auto,
        26px 26px,
        26px 26px;
}


/*
|--------------------------------------------------------------------------
| Orange / Aufmerksamkeit
|--------------------------------------------------------------------------
*/

:is(
    .object-main-tile.state-warning,
    .maintenance-hub-tile.state-warning,
    .defect-hub-tile.state-warning,
    .lifecycle-hub-tile.state-warning
)::before {
    background-image:

        radial-gradient(
            circle at 112% -12%,
            transparent 0 74px,
            rgba(220,148,29,.13) 75px 76px,
            transparent 77px 101px
        ),

        linear-gradient(
            rgba(220,148,29,.020) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(220,148,29,.020) 1px,
            transparent 1px
        );

    background-size:
        auto,
        26px 26px,
        26px 26px;
}


/* ============================================================
   MOTION REDUCTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .maintenance-visit-card,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .document-file-card,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .defect-card > summary,
        .lifecycle-hub-tile,
        .lifecycle-rule-card,
        .history-hub-tile,
        .technology-system-card,
        .technology-group-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card,
        .technology-list-row
    ) {
        transition: none !important;
    }

    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .maintenance-visit-card,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .document-file-card,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .defect-card > summary,
        .lifecycle-hub-tile,
        .lifecycle-rule-card,
        .history-hub-tile,
        .technology-system-card,
        .technology-group-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card,
        .technology-list-row
    )::after {
        display: none;
    }

}



/* ============================================================
   DEFECT TILE · SEMANTIC COLOR
============================================================ */

/*
|--------------------------------------------------------------------------
| Mängel bleibt immer ein Warn-/Problem-Bereich.
| Kein grüner "alles erledigt"-Zustand.
|--------------------------------------------------------------------------
*/

.object-main-tile.state-defect {
    border-top-color:
        #d89222 !important;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(215,57,52,.055),
            transparent 38%
        ),
        linear-gradient(
            150deg,
            #fff,
            #faf7f1
        ) !important;
}


.object-main-tile.state-defect
.object-main-icon {
    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #e24a43,
            #ba2f2a
        ) !important;

    box-shadow:
        0 7px 18px
        rgba(196,48,43,.20);
}


/*
|--------------------------------------------------------------------------
| Sobald wirklich ein Mangel offen ist:
| deutlich roter.
|--------------------------------------------------------------------------
*/

.object-main-tile.state-defect.has-defects {
    border-color:
        rgba(215,57,52,.34) !important;

    border-top-color:
        #d73933 !important;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(215,57,52,.11),
            transparent 40%
        ),
        linear-gradient(
            150deg,
            #fff,
            #fff0ef
        ) !important;
}


.object-main-tile.state-defect.has-defects
.object-main-stats strong {
    color:
        #bd312c !important;
}


.object-main-tile.state-defect::before {
    background-image:

        radial-gradient(
            circle at 112% -12%,
            transparent 0 74px,
            rgba(216,146,34,.15) 75px 76px,
            transparent 77px 98px,
            rgba(211,57,52,.07) 99px 100px,
            transparent 101px
        ),

        radial-gradient(
            circle at 91% 87%,
            transparent 0 29px,
            rgba(211,57,52,.07) 30px 31px,
            transparent 32px
        ),

        linear-gradient(
            rgba(48,54,58,.022) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(48,54,58,.022) 1px,
            transparent 1px
        ) !important;

    background-size:
        auto,
        auto,
        26px 26px,
        26px 26px !important;
}



/* ============================================================
   MAMO TILE HOVER V2 · STRONGER INTERACTION
============================================================ */

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .maintenance-visit-card,
    .contact-person-summary,
    .contact-add-summary,
    .document-category-tile,
    .document-upload-tile > summary,
    .document-file-card,
    .defect-hub-tile,
    .defect-add-tile > summary,
    .defect-card > summary,
    .lifecycle-hub-tile,
    .lifecycle-rule-card,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card,
    .technology-add-card,
    .technology-list-row
) {
    transition:
        transform .20s cubic-bezier(.2,.7,.3,1),
        box-shadow .20s ease,
        border-color .20s ease,
        filter .20s ease !important;
}


/*
|--------------------------------------------------------------------------
| Spiegel größer und heller
|--------------------------------------------------------------------------
*/

:is(
    .object-main-tile,
    .object-subtile,
    .maintenance-hub-tile,
    .maintenance-visit-card,
    .contact-person-summary,
    .contact-add-summary,
    .document-category-tile,
    .document-upload-tile > summary,
    .document-file-card,
    .defect-hub-tile,
    .defect-add-tile > summary,
    .defect-card > summary,
    .lifecycle-hub-tile,
    .lifecycle-rule-card,
    .history-hub-tile,
    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card,
    .technology-add-card,
    .technology-list-row
)::after {
    left: -115% !important;

    width: 82% !important;

    opacity: 0;

    transform:
        skewX(-19deg);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.06) 18%,
            rgba(255,255,255,.30) 37%,
            rgba(255,255,255,.72) 50%,
            rgba(220,57,52,.17) 65%,
            rgba(255,255,255,.11) 80%,
            transparent 100%
        ) !important;

    transition:
        left .62s cubic-bezier(.16,.72,.28,1),
        opacity .16s ease !important;
}


@media (hover:hover) {

    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .maintenance-visit-card,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .document-file-card,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .defect-card > summary,
        .lifecycle-hub-tile,
        .lifecycle-rule-card,
        .history-hub-tile,
        .technology-system-card,
        .technology-group-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card,
        .technology-list-row
    ):hover {
        transform:
            translateY(-5px)
            scale(1.012) !important;

        border-color:
            rgba(207,56,51,.68) !important;

        box-shadow:
            0 21px 42px
            rgba(18,23,27,.15),
            0 5px 13px
            rgba(18,23,27,.07),
            inset 0 0 0 1px
            rgba(210,55,50,.055) !important;

        filter:
            brightness(1.018)
            saturate(1.035);
    }


    :is(
        .object-main-tile,
        .object-subtile,
        .maintenance-hub-tile,
        .maintenance-visit-card,
        .contact-person-summary,
        .contact-add-summary,
        .document-category-tile,
        .document-upload-tile > summary,
        .document-file-card,
        .defect-hub-tile,
        .defect-add-tile > summary,
        .defect-card > summary,
        .lifecycle-hub-tile,
        .lifecycle-rule-card,
        .history-hub-tile,
        .technology-system-card,
        .technology-group-card,
        .technology-floor-card,
        .technology-component-card,
        .technology-add-card,
        .technology-list-row
    ):hover::after {
        left:
            135% !important;

        opacity:
            1 !important;
    }

}


/* ============================================================
   DARK TILE HOVER V2
============================================================ */

@media (hover:hover) {

    :is(
        .object-add-tech-tile,
        .object-subtile-add,
        .contact-add-summary,
        .document-upload-tile > summary,
        .defect-add-tile > summary,
        .lifecycle-add-tile,
        .technology-add-card
    ):hover {
        transform:
            translateY(-5px)
            scale(1.014) !important;

        border-color:
            rgba(61,201,130,.72) !important;

        box-shadow:
            0 23px 44px
            rgba(9,15,12,.31),
            0 6px 15px
            rgba(9,15,12,.15),
            inset 0 0 0 1px
            rgba(77,218,151,.08) !important;

        filter:
            brightness(1.08)
            saturate(1.08);
    }


    :is(
        .object-add-tech-tile,
        .object-subtile-add,
        .contact-add-summary,
        .document-upload-tile > summary,
        .defect-add-tile > summary,
        .lifecycle-add-tile,
        .technology-add-card
    ):hover::after {
        opacity:
            1 !important;

        background:
            linear-gradient(
                90deg,
                transparent,
                rgba(255,255,255,.05),
                rgba(255,255,255,.31),
                rgba(83,222,158,.20),
                rgba(255,255,255,.18),
                transparent
            ) !important;
    }

}



/* ============================================================
   MAINTENANCE COCKPIT V1
============================================================ */

.maintenance-cockpit {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}


/* Statusbar */

.maintenance-commandbar {
    display: grid;
    grid-template-columns:
        minmax(180px,.8fr)
        minmax(220px,1.15fr)
        auto;
    gap: 18px;
    align-items: center;

    padding: 13px 15px;

    border: 1px solid #d8d4cf;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #2d3337,
            #1d2225
        );

    color: #fff;

    box-shadow:
        0 9px 23px
        rgba(18,22,25,.14);
}


.maintenance-commandbar-kicker {
    color: rgba(255,255,255,.48);

    font-size: 6px;
    font-weight: 950;

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


.maintenance-commandbar-main strong {
    display: block;
    margin-top: 4px;

    font-size: 12px;
}


.maintenance-commandbar-main > span {
    display: block;
    margin-top: 3px;

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

    font-size: 7px;
}


.maintenance-commandbar-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}


.maintenance-commandbar-progress-head strong {
    font-size: 17px;
}


.maintenance-commandbar-progress-head span {
    color: rgba(255,255,255,.58);

    font-size: 7px;
}


.maintenance-commandbar-track {
    height: 6px;

    margin-top: 7px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.10);
}


.maintenance-commandbar-track span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #d83d37,
            #e56a45
        );
}


.maintenance-commandbar-stats {
    display: flex;
    gap: 7px;
}


.maintenance-commandbar-stats > div {
    min-width: 60px;

    padding: 7px 9px;

    border-radius: 9px;

    background:
        rgba(255,255,255,.07);
}


.maintenance-commandbar-stats span {
    display: block;

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

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-commandbar-stats strong {
    display: block;
    margin-top: 3px;

    font-size: 13px;
}


.maintenance-commandbar-stats .danger strong {
    color: #ff736c;
}


/* Fortsetzen */

.maintenance-resume-card {
    position: relative;
    overflow: hidden;

    display: grid;

    grid-template-columns:
        48px 1fr auto;

    gap: 13px;
    align-items: center;

    min-height: 82px;

    padding: 13px 15px;

    border:
        1px solid rgba(210,58,52,.38);

    border-left:
        5px solid #d83b35;

    border-radius:
        13px;

    color: inherit;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff5f3
        );

    text-decoration: none;

    box-shadow:
        0 7px 18px
        rgba(20,24,28,.06);

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


.maintenance-resume-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 17px 34px
        rgba(20,24,28,.13);
}


.maintenance-resume-card.ready {
    border-color:
        rgba(43,151,100,.35);

    border-left-color:
        #299764;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f1faf5
        );
}


.maintenance-resume-icon {
    display: grid;

    width: 44px;
    height: 44px;

    place-items: center;

    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #d9423c,
            #b92e29
        );

    font-size: 18px;
    font-weight: 950;
}


.maintenance-resume-card.ready
.maintenance-resume-icon {
    background:
        linear-gradient(
            145deg,
            #36ad75,
            #217c52
        );
}


.maintenance-resume-card span {
    color: #a06f6b;

    font-size: 6px;
    font-weight: 950;

    text-transform: uppercase;
}


.maintenance-resume-card strong {
    display: block;
    margin-top: 3px;

    color: #30363a;

    font-size: 13px;
}


.maintenance-resume-card p {
    margin: 3px 0 0;

    color: #888f93;

    font-size: 7px;
}


.maintenance-resume-action {
    color: #c43832;

    font-size: 8px;
    font-weight: 950;
}


/* Hauptkacheln */

.maintenance-cockpit-grid {
    display: grid;

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

    gap: 10px;
}


.maintenance-work-tile {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    display: flex;

    min-height: 185px;

    box-sizing: border-box;

    flex-direction: column;

    padding: 14px;

    border:
        1px solid #d9d4ce;

    border-top:
        3px solid #d63b35;

    border-radius:
        14px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    text-decoration: none;

    box-shadow:
        0 7px 19px
        rgba(20,24,28,.05);

    transition:
        transform .20s cubic-bezier(.2,.7,.3,1),
        box-shadow .20s ease,
        border-color .20s ease;
}


/* technische Kreise + Raster */

.maintenance-work-tile::before {
    content: '';

    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background-image:

        radial-gradient(
            circle at 112% -12%,
            transparent 0 65px,
            rgba(211,57,52,.09) 66px 67px,
            transparent 68px 92px,
            rgba(48,54,58,.045) 93px 94px,
            transparent 95px
        ),

        linear-gradient(
            rgba(45,51,55,.022) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(45,51,55,.022) 1px,
            transparent 1px
        );

    background-size:
        auto,
        25px 25px,
        25px 25px;
}


/* kräftiger Spiegel-Hover */

.maintenance-work-tile::after {
    content: '';

    position: absolute;
    z-index: 1;

    top: -45%;
    bottom: -45%;

    left: -115%;

    width: 82%;

    pointer-events: none;

    opacity: 0;

    transform:
        skewX(-19deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.12),
            rgba(255,255,255,.74),
            rgba(216,58,52,.17),
            rgba(255,255,255,.15),
            transparent
        );

    transition:
        left .62s cubic-bezier(.16,.72,.28,1),
        opacity .16s ease;
}


.maintenance-work-tile > * {
    position: relative;
    z-index: 2;
}


@media (hover:hover) {

    .maintenance-work-tile:hover {
        transform:
            translateY(-5px)
            scale(1.012);

        border-color:
            rgba(208,56,51,.68);

        box-shadow:
            0 21px 42px
            rgba(18,23,27,.15),
            0 5px 12px
            rgba(18,23,27,.06);
    }


    .maintenance-work-tile:hover::after {
        left: 135%;
        opacity: 1;
    }

}


.maintenance-work-icon {
    display: grid;

    width: 42px;
    height: 42px;

    place-items: center;

    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 8px;
    font-weight: 950;
}


.maintenance-work-kicker {
    margin-top: 13px;

    color: #c63a34;

    font-size: 6px;
    font-weight: 950;

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


.maintenance-work-tile h3 {
    margin: 4px 0 0;

    color: #2e3438;

    font-size: 12px;
}


.maintenance-work-tile p {
    margin: 6px 0 0;

    color: #888f93;

    font-size: 7px;

    line-height: 1.5;
}


.maintenance-work-count {
    display: flex;

    align-items: baseline;

    gap: 5px;

    margin-top: 10px;
}


.maintenance-work-count strong {
    color: #30363a;

    font-size: 19px;
}


.maintenance-work-count span {
    color: #969b9e;

    font-size: 6px;

    text-transform: uppercase;
}


.maintenance-work-footer {
    display: flex;

    justify-content: space-between;

    gap: 8px;

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

    color: #444b4f;

    font-size: 7px;

    font-weight: 950;
}


/* Warnung */

.maintenance-work-tile.state-warning {
    border-top-color:
        #d89222;
}


/* Mängel */

.maintenance-work-tile.state-defect {
    border-top-color:
        #d73b35;
}


.maintenance-work-tile.state-defect
.maintenance-work-icon {
    background:
        linear-gradient(
            145deg,
            #e24a43,
            #b92e29
        );
}


/* Abschluss */

.maintenance-work-tile.completion.blocked {
    border-top-color:
        #d89222;
}


.maintenance-work-tile.completion.ready {
    border-top-color:
        #299764;
}


.maintenance-work-tile.completion.ready
.maintenance-work-icon {
    background:
        linear-gradient(
            145deg,
            #36ad75,
            #217c52
        );
}


/* Responsive */

@media (max-width: 1180px) {

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

}


@media (max-width: 800px) {

    .maintenance-commandbar {
        grid-template-columns: 1fr;
    }

    .maintenance-commandbar-stats {
        display: grid;
        grid-template-columns:
            repeat(3,1fr);
    }

}


@media (max-width: 650px) {

    .maintenance-cockpit-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-resume-card {
        grid-template-columns:
            48px 1fr;
    }

    .maintenance-resume-action {
        grid-column: 2;
    }

}



/* ============================================================
   MAINTENANCE CHECKS + COMPLETION
============================================================ */

.maintenance-extra-workspace {
    padding: 18px 34px 42px;
}


.maintenance-extra-workspace
.mamo-back-action {
    margin-bottom: 12px;
}


.maintenance-check-heading {
    display: flex;

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

    gap: 20px;

    margin-bottom: 12px;

    padding: 16px;

    border: 1px solid #d9d5cf;
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f7f5f2
        );
}


.maintenance-check-heading > div > span,
.maintenance-completion-head > div > span {
    color: #d23b35;

    font-size: 7px;
    font-weight: 950;

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


.maintenance-check-heading h2,
.maintenance-completion-head h2 {
    margin: 4px 0 0;

    color: #30363a;

    font-size: 18px;
}


.maintenance-check-heading p,
.maintenance-completion-head p {
    margin: 5px 0 0;

    color: #858c90;

    font-size: 8px;
}


.maintenance-check-heading-stat {
    min-width: 80px;

    padding: 10px;

    border-radius: 10px;

    text-align: center;

    background: #f0eeea;
}


.maintenance-check-heading-stat strong {
    display: block;

    color: #30363a;

    font-size: 22px;
}


.maintenance-check-heading-stat span {
    color: #8e9497;

    font-size: 6px;

    text-transform: uppercase;
}


.maintenance-check-grid {
    display: grid;

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

    gap: 10px;
}


.maintenance-check-card {
    position: relative;
    overflow: hidden;

    padding: 14px;

    border: 1px solid #dad6d0;
    border-top: 3px solid #d89222;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f9f7f4
        );
}


.maintenance-check-card.result-ok {
    border-top-color: #299764;
}


.maintenance-check-card.result-issue,
.maintenance-check-card.result-not_available {
    border-top-color: #d83b35;
}


.maintenance-check-card-top {
    display: flex;

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

    gap: 10px;
}


.maintenance-check-icon {
    display: grid;

    width: 40px;
    height: 40px;

    place-items: center;

    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 8px;
    font-weight: 950;
}


.maintenance-check-status {
    padding: 5px 8px;

    border-radius: 999px;

    color: #7a7370;

    background: #efede9;

    font-size: 6px;
    font-weight: 900;
}


.maintenance-check-card h3 {
    margin: 12px 0 0;

    color: #30363a;

    font-size: 12px;
}


.maintenance-check-card > p {
    min-height: 34px;

    margin: 5px 0 0;

    color: #858c90;

    font-size: 7px;

    line-height: 1.5;
}


.maintenance-check-hint {
    margin-top: 9px;

    padding: 8px 9px;

    border-radius: 8px;

    color: #657077;

    background: #f0f2ef;

    font-size: 7px;
}


.maintenance-check-hint strong {
    display: block;

    margin-bottom: 2px;

    color: #299764;
}


.maintenance-check-actions {
    display: grid;

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

    gap: 6px;

    margin-top: 12px;
}


.check-result {
    cursor: pointer;
}


.check-result input {
    display: none;
}


.check-result span {
    display: flex;

    min-height: 38px;

    box-sizing: border-box;

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

    padding: 7px;

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

    color: #72797d;

    background: #fff;

    font-size: 7px;
    font-weight: 900;

    text-align: center;
}


.check-result input:checked + span {
    border-color: #343a3e;

    color: #fff;

    background: #343a3e;
}


.check-result.ok
input:checked + span {
    border-color: #299764;

    background: #299764;
}


.check-result.issue
input:checked + span {
    border-color: #d63b35;

    background: #d63b35;
}


.maintenance-check-card textarea {
    width: 100%;

    box-sizing: border-box;

    margin-top: 7px;

    padding: 9px;

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

    resize: vertical;

    font: inherit;
    font-size: 8px;
}


.maintenance-check-save {
    width: 100%;

    min-height: 39px;

    margin-top: 6px;

    border: 0;
    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 8px;
    font-weight: 950;

    cursor: pointer;
}


/* ============================================================
   COMPLETION GATE
============================================================ */

.maintenance-completion {
    display: grid;
    gap: 12px;
}


.maintenance-completion-head {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px;

    border: 1px solid #d9d5cf;
    border-radius: 14px;

    background: #fff;
}


.maintenance-completion-head.blocked {
    border-left:
        5px solid #d89222;
}


.maintenance-completion-head.ready {
    border-left:
        5px solid #299764;
}


.maintenance-completion-symbol {
    display: grid;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    place-items: center;

    border-radius: 12px;

    color: #fff;

    background: #d89222;

    font-size: 20px;
    font-weight: 950;
}


.maintenance-completion-head.ready
.maintenance-completion-symbol {
    background: #299764;
}


.maintenance-completion-grid {
    display: grid;

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

    gap: 9px;
}


.completion-check {
    padding: 13px;

    border: 1px solid #dcd8d2;
    border-top: 3px solid #999;
    border-radius: 12px;

    background: #fff;
}


.completion-check.ready {
    border-top-color: #299764;
}


.completion-check.blocked {
    border-top-color: #d63b35;
}


.completion-check.warning {
    border-top-color: #d89222;
}


.completion-check.defect {
    border-top-color: #d63b35;
}


.completion-check span {
    display: block;

    color: #898f93;

    font-size: 7px;
    font-weight: 900;
}


.completion-check strong {
    display: inline-block;

    margin-top: 7px;

    color: #30363a;

    font-size: 22px;
}


.completion-check small {
    margin-left: 4px;

    color: #999da0;

    font-size: 6px;

    text-transform: uppercase;
}


.maintenance-completion-warning {
    padding: 12px 14px;

    border: 1px solid rgba(215,57,52,.28);
    border-left: 4px solid #d73b35;
    border-radius: 10px;

    color: #766b69;

    background: #fff4f3;

    font-size: 8px;
}


.maintenance-completion-warning strong {
    display: block;

    margin-bottom: 3px;

    color: #bd312c;
}


.maintenance-final-complete {
    width: 100%;

    min-height: 52px;

    border: 0;
    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #35ad74,
            #217c52
        );

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

    cursor: pointer;
}


.maintenance-final-blocked {
    padding: 14px;

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

    color: #80642c;

    background: #fff8e8;

    font-size: 8px;
}


.maintenance-final-blocked strong {
    display: block;

    margin-bottom: 3px;
}


@media (max-width: 850px) {

    .maintenance-check-grid,
    .maintenance-completion-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-extra-workspace {
        padding:
            14px 16px 36px;
    }

}



/* ============================================================
   MAMO BMA SIDEBAR V5
   Einheitliche Touch-Navigation für ALLE Menüpunkte
============================================================ */


/* große Objektkarte aus der Sidebar entfernen */

.mamo-context-card {
    display: none !important;
}


/* ------------------------------------------------------------
   NAVIGATION
------------------------------------------------------------ */

.mamo-global-nav {
    padding: 18px 12px 26px;
}


/* Bereichsüberschriften */

.mamo-global-nav-heading {
    margin: 23px 9px 9px;

    color: #9ba4ac;

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

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


/* ------------------------------------------------------------
   JEDER MENÜPUNKT
------------------------------------------------------------ */

.mamo-global-nav-item {
    position: relative;

    display: flex;

    min-height: 58px;

    box-sizing: border-box;

    align-items: center;

    gap: 13px;

    margin: 5px 0;

    padding: 0 15px;

    overflow: hidden;

    border:
        1px solid
        rgba(232,59,54,.24);

    border-radius: 14px;

    color: #dde3e7 !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.045),
            rgba(255,255,255,.015)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.035);

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

    text-decoration: none;

    cursor: pointer;

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


/*
   rote Führungskante bei normalem Menüpunkt
*/

.mamo-global-nav-item::before {
    content: "";

    position: absolute;

    top: 8px;
    bottom: 8px;
    left: 0;

    width: 4px;

    border-radius:
        0 6px 6px 0;

    background:
        linear-gradient(
            180deg,
            #ff6257,
            #dd302a
        );

    box-shadow:
        0 0 13px
        rgba(232,59,54,.25);
}


/* Hover */

.mamo-global-nav-item:hover {
    color: #fff !important;

    border-color:
        rgba(232,59,54,.58);

    background:
        linear-gradient(
            145deg,
            rgba(232,59,54,.13),
            rgba(255,255,255,.035)
        );

    box-shadow:
        0 10px 24px
        rgba(0,0,0,.17);

    transform:
        translateY(-1px);
}


/* ------------------------------------------------------------
   AKTUELL GEÖFFNET
------------------------------------------------------------ */

.mamo-global-nav-item.is-active {
    color: #ffffff !important;

    border:
        1px solid
        rgba(54,204,127,.58) !important;

    background:
        linear-gradient(
            135deg,
            rgba(34,74,54,.95),
            rgba(25,47,37,.96)
        ) !important;

    box-shadow:
        0 10px 26px
        rgba(0,0,0,.19),
        inset 0 1px 0
        rgba(255,255,255,.055),
        0 0 0 1px
        rgba(54,204,127,.045) !important;
}


/* grüne Führungskante */

.mamo-global-nav-item.is-active::before {
    background:
        linear-gradient(
            180deg,
            #42dc8e,
            #15965a
        ) !important;

    box-shadow:
        0 0 15px
        rgba(54,204,127,.30);
}


/* ------------------------------------------------------------
   ICONS
------------------------------------------------------------ */

.mamo-global-nav-icon {
    display: grid;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    place-items: center;

    border-radius: 9px;

    color: #c2c9cf !important;

    background:
        rgba(255,255,255,.045);

    transition:
        color .16s ease,
        background .16s ease,
        transform .16s ease;
}


.mamo-global-nav-icon svg {
    width: 18px;
    height: 18px;
}


.mamo-global-nav-item:hover
.mamo-global-nav-icon {
    color: #fff !important;

    background:
        rgba(232,59,54,.12);
}


.mamo-global-nav-item.is-active
.mamo-global-nav-icon {
    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            rgba(54,204,127,.24),
            rgba(24,130,78,.18)
        );

    box-shadow:
        inset 0 0 0 1px
        rgba(74,214,143,.15);
}


/* kleine runde Technik-Icons ebenfalls angleichen */

.mamo-global-nav-dot {
    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    margin-left: 9px;

    border:
        2px solid #aab2b8;

    border-radius: 50%;
}


.mamo-global-nav-item:hover
.mamo-global-nav-dot {
    border-color: #ef554d;
}


.mamo-global-nav-item.is-active
.mamo-global-nav-dot {
    border-color: #3ed889;

    background:
        #3ed889;

    box-shadow:
        0 0 0 4px
        rgba(62,216,137,.10);
}


/* ------------------------------------------------------------
   SOON / DEAKTIVIERT
------------------------------------------------------------ */

.mamo-global-nav-item.is-disabled {
    color: #778088 !important;

    border-color:
        rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.015);

    cursor: default;
}


.mamo-global-nav-item.is-disabled::before {
    background:
        #596168;

    box-shadow: none;

    opacity: .55;
}


.mamo-global-nav-item.is-disabled:hover {
    border-color:
        rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.015);

    transform: none;

    box-shadow: none;
}


.mamo-global-nav-item small {
    margin-left: auto;

    padding: 4px 7px;

    border-radius: 999px;

    color: #919aa1;

    background:
        rgba(255,255,255,.055);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .08em;
}


/* ------------------------------------------------------------
   FINGER / TABLET
------------------------------------------------------------ */

.mamo-global-nav-item {
    touch-action: manipulation;

    -webkit-tap-highlight-color:
        transparent;
}


.mamo-global-nav-item:active {
    transform:
        scale(.985);
}


/* ------------------------------------------------------------
   SIDEBAR UNTERE SYSTEMANZEIGE
------------------------------------------------------------ */

.mamo-global-sidebar-footer {
    border-top:
        1px solid rgba(255,255,255,.075);

    background:
        rgba(0,0,0,.12);
}



/* ============================================================
   MAINTENANCE CHECKS · TABLET ONE-TAP V2
============================================================ */

.maintenance-check-grid {
    grid-template-columns:
        repeat(3,minmax(0,1fr)) !important;

    gap: 10px !important;
}


.maintenance-check-card {
    min-height: 230px;

    display: flex;
    flex-direction: column;

    padding: 15px !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


@media (hover:hover) {

    .maintenance-check-card:hover {
        transform:
            translateY(-4px);

        border-color:
            rgba(208,56,51,.55);

        box-shadow:
            0 18px 36px
            rgba(20,24,28,.12);
    }

}


/* Zustände */

.maintenance-check-card.result-ok {
    border-top-color:
        #299764 !important;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f2faf6
        ) !important;
}


.maintenance-check-card.result-issue {
    border-top-color:
        #d73b35 !important;

    background:
        linear-gradient(
            150deg,
            #fff,
            #fff1f0
        ) !important;
}


.maintenance-check-card.result-not_available,
.maintenance-check-card.result-not_testable {
    border-top-color:
        #d89222 !important;

    background:
        linear-gradient(
            150deg,
            #fff,
            #fff9ee
        ) !important;
}


/* Beschreibung */

.maintenance-check-content {
    margin-top: 12px;
}


.maintenance-check-content h3 {
    margin: 0 !important;

    color: #30363a;

    font-size: 13px;
}


.maintenance-check-content p {
    min-height: 33px;

    margin: 5px 0 0 !important;

    color: #858c90;

    font-size: 8px !important;

    line-height: 1.45;
}


/* Aktionsbereich */

.maintenance-check-actions {
    display: grid !important;

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

    gap: 7px !important;

    margin-top: auto !important;

    padding-top: 13px;
}


.check-action {
    min-height: 43px;

    box-sizing: border-box;

    border:
        1px solid #d8d4cf !important;

    border-radius:
        10px !important;

    color:
        #5f666a !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f7f6f3
        ) !important;

    box-shadow:
        0 3px 7px
        rgba(20,24,28,.035);

    font-size:
        8px !important;

    font-weight:
        900 !important;

    cursor: pointer;

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


@media (hover:hover) {

    .check-action:hover {
        transform:
            translateY(-2px);

        border-color:
            #a5aaad !important;

        box-shadow:
            0 7px 13px
            rgba(20,24,28,.09);
    }

}


/* OK */

.check-action-ok {
    border-left:
        3px solid #299764 !important;
}


.check-action-ok:hover,
.check-action-ok.active {
    border-color:
        #299764 !important;

    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #35ad74,
            #217c52
        ) !important;
}


/* Mangel */

.check-action-issue {
    border-left:
        3px solid #d73b35 !important;
}


.check-action-issue:hover,
.check-action-issue.active {
    border-color:
        #d73b35 !important;

    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #e24942,
            #b82e29
        ) !important;
}


/* Nicht vorhanden / nicht prüfbar */

.check-action:not(
    .check-action-ok
):not(
    .check-action-issue
).active {
    border-color:
        #d89222 !important;

    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #dda13e,
            #ad7117
        ) !important;
}


/* Status oben rechts */

.maintenance-check-status {
    font-size: 6px !important;
    font-weight: 950 !important;
}


.maintenance-check-status.result-ok {
    color: #267051;

    background: #e5f5ed;
}


.maintenance-check-status.result-issue {
    color: #ad302a;

    background: #fce9e7;
}


.maintenance-check-status.result-not_available,
.maintenance-check-status.result-not_testable {
    color: #886019;

    background: #fff1d3;
}


/* Aufklappbereich */

.maintenance-check-detail {
    margin-top: 9px;

    padding: 10px;

    border-radius: 10px;

    background:
        #f2f1ee;
}


.maintenance-check-detail[hidden] {
    display: none !important;
}


.maintenance-check-detail label {
    display: block;

    margin-bottom: 5px;

    color: #70777b;

    font-size: 6px;

    font-weight: 950;

    text-transform: uppercase;
}


.maintenance-check-detail textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    border:
        1px solid #d7d3cd;

    border-radius:
        8px;

    background: #fff;

    font-size: 8px;
}


.maintenance-check-save {
    min-height: 42px !important;

    margin-top: 7px !important;

    border: 0 !important;

    border-radius: 9px !important;

    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            #343a3e,
            #202529
        ) !important;

    font-weight: 950 !important;

    cursor: pointer;
}


/* bereits gespeicherte Bemerkung */

.maintenance-check-current-note {
    margin-top: 8px;

    padding: 8px 9px;

    border-left:
        3px solid #d89222;

    border-radius: 7px;

    color: #697075;

    background:
        #f5f3ef;

    font-size: 7px;
}


/* Saving */

.maintenance-check-saving {
    margin-top: 7px;

    color: #278159;

    font-size: 7px;

    font-weight: 950;
}


.maintenance-check-form.is-saving {
    opacity: .55;

    pointer-events: none;
}


/* Responsive */

@media (max-width: 1250px) {

    .maintenance-check-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr))
            !important;
    }

}


@media (max-width: 750px) {

    .maintenance-check-grid {
        grid-template-columns:
            1fr !important;
    }


    .check-action {
        min-height: 50px;
    }

}



/* ============================================================
   MAINTENANCE CHECKS V3
   Technical Control Cards
============================================================ */


/* ------------------------------------------------------------
   Bereichskopf
------------------------------------------------------------ */

.maintenance-check-heading {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    min-height: 92px;

    box-sizing: border-box;

    padding: 17px 20px !important;

    border: 1px solid #d8d3cd !important;
    border-left: 4px solid #d83b35 !important;
    border-radius: 15px !important;

    background:
        linear-gradient(
            115deg,
            #ffffff 0%,
            #f8f6f3 62%,
            #f0eeea 100%
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(22,26,29,.055);
}


.maintenance-check-heading::before {
    content: '';

    position: absolute;
    z-index: -1;

    width: 230px;
    height: 230px;

    right: 85px;
    top: -145px;

    border:
        1px solid rgba(208,55,50,.10);

    border-radius: 50%;

    box-shadow:
        0 0 0 30px
        rgba(50,56,60,.018),
        0 0 0 60px
        rgba(208,55,50,.018);
}


.maintenance-check-heading h2 {
    margin-top: 5px !important;

    font-size: 19px !important;
    letter-spacing: -.025em;
}


.maintenance-check-heading p {
    max-width: 650px;

    font-size: 8px !important;
    line-height: 1.5;
}


.maintenance-check-heading-stat {
    position: relative;

    display: grid;

    min-width: 90px !important;
    min-height: 62px;

    box-sizing: border-box;

    place-content: center;

    border:
        1px solid rgba(208,55,50,.12);

    border-radius: 12px !important;

    background:
        linear-gradient(
            145deg,
            #31373b,
            #202529
        ) !important;

    box-shadow:
        0 8px 18px
        rgba(20,24,28,.16);
}


.maintenance-check-heading-stat strong {
    color: #fff !important;

    font-size: 22px !important;
}


.maintenance-check-heading-stat span {
    margin-top: 2px;

    color: #ff7770 !important;

    font-size: 6px !important;
    font-weight: 950;

    letter-spacing: .08em;
}


/* ------------------------------------------------------------
   Grid
------------------------------------------------------------ */

.maintenance-check-grid {
    grid-template-columns:
        repeat(3,minmax(0,1fr)) !important;

    gap: 11px !important;
}


/* ------------------------------------------------------------
   Karte
------------------------------------------------------------ */

.maintenance-check-card {
    position: relative;

    min-height: 255px !important;

    padding: 15px 15px 13px !important;

    border:
        1px solid #d9d4ce !important;

    border-top:
        3px solid #d89222 !important;

    border-radius:
        15px !important;

    background:
        linear-gradient(
            148deg,
            #ffffff 0%,
            #fbfaf8 72%,
            #f3f1ed 100%
        ) !important;

    box-shadow:
        0 7px 18px
        rgba(20,24,28,.045);

    isolation: isolate;

    overflow: hidden;

    transition:
        transform .20s cubic-bezier(.2,.7,.3,1),
        box-shadow .20s ease,
        border-color .20s ease;
}


/* Technischer Kreis + Raster */

.maintenance-check-card::before {
    content: '';

    position: absolute;
    z-index: -1;

    inset: 0;

    pointer-events: none;

    background-image:

        radial-gradient(
            circle at 111% -9%,
            transparent 0 61px,
            rgba(216,59,53,.085) 62px 63px,
            transparent 64px 87px,
            rgba(42,48,52,.045) 88px 89px,
            transparent 90px
        ),

        radial-gradient(
            circle at 95% 95%,
            transparent 0 24px,
            rgba(42,48,52,.035) 25px 26px,
            transparent 27px
        ),

        linear-gradient(
            rgba(40,46,50,.018) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(40,46,50,.018) 1px,
            transparent 1px
        );

    background-size:
        auto,
        auto,
        24px 24px,
        24px 24px;
}


/* kräftiger Hover-Spiegel */

.maintenance-check-card::after {
    content: '';

    position: absolute;
    z-index: 5;

    top: -45%;
    bottom: -45%;

    left: -110%;

    width: 72%;

    pointer-events: none;

    opacity: 0;

    transform:
        skewX(-18deg);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255,255,255,.10) 20%,
            rgba(255,255,255,.66) 48%,
            rgba(211,57,52,.13) 68%,
            transparent 100%
        );

    transition:
        left .60s cubic-bezier(.15,.72,.25,1),
        opacity .16s ease;
}


.maintenance-check-card > * {
    position: relative;
    z-index: 2;
}


@media (hover:hover) {

    .maintenance-check-card:hover {
        transform:
            translateY(-5px)
            scale(1.008);

        border-color:
            rgba(205,57,51,.48) !important;

        box-shadow:
            0 20px 39px
            rgba(18,23,27,.13),
            0 4px 10px
            rgba(18,23,27,.05);
    }


    .maintenance-check-card:hover::after {
        left: 145%;

        opacity: 1;
    }

}


/* ------------------------------------------------------------
   Statusvarianten
------------------------------------------------------------ */

.maintenance-check-card.result-ok {
    border-top-color:
        #299764 !important;

    background:
        linear-gradient(
            148deg,
            #fff 0%,
            #f5fbf8 72%,
            #edf7f2 100%
        ) !important;
}


.maintenance-check-card.result-issue {
    border-top-color:
        #d73b35 !important;

    background:
        linear-gradient(
            148deg,
            #fff 0%,
            #fff8f7 70%,
            #fcebea 100%
        ) !important;
}


.maintenance-check-card.result-not_available,
.maintenance-check-card.result-not_testable {
    border-top-color:
        #d89222 !important;

    background:
        linear-gradient(
            148deg,
            #fff 0%,
            #fffbf3 70%,
            #fbf2df 100%
        ) !important;
}


/* ------------------------------------------------------------
   Icon
------------------------------------------------------------ */

.maintenance-check-icon {
    width: 46px !important;
    height: 46px !important;

    border-radius: 12px !important;

    background:
        linear-gradient(
            145deg,
            #343b3f,
            #1e2427
        ) !important;

    box-shadow:
        0 8px 17px
        rgba(20,24,28,.18);

    font-size: 8px !important;

    letter-spacing: .03em;
}


.maintenance-check-card.result-ok
.maintenance-check-icon {
    background:
        linear-gradient(
            145deg,
            #35a970,
            #20774f
        ) !important;
}


.maintenance-check-card.result-issue
.maintenance-check-icon {
    background:
        linear-gradient(
            145deg,
            #e04942,
            #b82e29
        ) !important;
}


/* ------------------------------------------------------------
   Statuspill
------------------------------------------------------------ */

.maintenance-check-status {
    min-width: 48px;

    padding: 6px 8px !important;

    border-radius: 999px !important;

    text-align: center;

    font-size: 6px !important;

    font-weight: 950 !important;

    text-transform: uppercase;
}


.maintenance-check-status.result-open {
    color: #8b621d !important;

    background:
        #fff1d4 !important;
}


.maintenance-check-status.result-ok {
    color: #24704f !important;

    background:
        #dff3e9 !important;
}


.maintenance-check-status.result-issue {
    color: #ae302b !important;

    background:
        #fce4e2 !important;
}


/* ------------------------------------------------------------
   Text
------------------------------------------------------------ */

.maintenance-check-content {
    margin-top: 14px !important;
}


.maintenance-check-content h3 {
    color: #292f33 !important;

    font-size: 13px !important;
    font-weight: 950;

    letter-spacing: -.015em;
}


.maintenance-check-content p {
    min-height: 34px;

    margin-top: 5px !important;

    color: #82898d !important;

    font-size: 7px !important;

    line-height: 1.5;
}


/* Laufkarten-Hinweis */

.maintenance-check-hint {
    margin-top: 9px !important;

    padding: 8px 9px !important;

    border:
        1px solid rgba(41,151,100,.08);

    border-radius:
        8px !important;

    background:
        rgba(41,151,100,.055) !important;

    font-size: 6px !important;
}


/* ------------------------------------------------------------
   Aktionen
------------------------------------------------------------ */

.maintenance-check-actions {
    display: grid !important;

    grid-template-columns:
        1fr 1fr;

    gap: 7px !important;

    margin-top: auto !important;

    padding-top: 13px !important;
}


.check-action {
    position: relative;

    min-height: 44px !important;

    padding: 0 9px;

    border:
        1px solid #d8d4ce !important;

    border-radius:
        10px !important;

    color:
        #636a6e !important;

    background:
        rgba(255,255,255,.82) !important;

    box-shadow:
        0 3px 8px
        rgba(20,24,28,.04);

    font-size:
        7px !important;

    font-weight:
        950 !important;

    cursor: pointer;

    overflow: hidden;

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


/* linker Statusstreifen */

.check-action::before {
    content: '';

    position: absolute;

    top: 7px;
    bottom: 7px;

    left: 0;

    width: 3px;

    border-radius:
        0 4px 4px 0;

    background: #9ca2a5;
}


.check-action-ok::before {
    background: #299764;
}


.check-action-issue::before {
    background: #d73b35;
}


@media (hover:hover) {

    .check-action:hover {
        transform:
            translateY(-2px);

        box-shadow:
            0 8px 17px
            rgba(20,24,28,.10);
    }


    .check-action-ok:hover {
        border-color:
            #299764 !important;

        color:
            #1e7750 !important;

        background:
            #eff9f4 !important;
    }


    .check-action-issue:hover {
        border-color:
            #d73b35 !important;

        color:
            #b32d28 !important;

        background:
            #fff1f0 !important;
    }


    .check-action:not(
        .check-action-ok
    ):not(
        .check-action-issue
    ):hover {
        border-color:
            #d89222 !important;

        color:
            #8b611b !important;

        background:
            #fff7e8 !important;
    }

}


/* Aktive Auswahl */

.check-action-ok.active {
    border-color:
        #299764 !important;

    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #37ad75,
            #217c52
        ) !important;
}


.check-action-issue.active {
    border-color:
        #d73b35 !important;

    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #e34a43,
            #b92e29
        ) !important;
}


.check-action:not(
    .check-action-ok
):not(
    .check-action-issue
).active {
    border-color:
        #d89222 !important;

    color:
        #fff !important;

    background:
        linear-gradient(
            145deg,
            #dba03c,
            #ad7118
        ) !important;
}


/* ------------------------------------------------------------
   aufklappende Dokumentation
------------------------------------------------------------ */

.maintenance-check-detail {
    margin-top: 9px !important;

    padding: 10px !important;

    border:
        1px solid #ddd8d2;

    border-radius:
        10px !important;

    background:
        rgba(45,51,55,.038) !important;
}


.maintenance-check-detail[hidden] {
    display: none !important;
}


.maintenance-check-save {
    width: 100%;

    min-height: 42px !important;

    border-radius:
        9px !important;

    background:
        linear-gradient(
            145deg,
            #333a3e,
            #1f2427
        ) !important;
}


/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 1350px) {

    .maintenance-check-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr))
            !important;
    }

}


@media (max-width: 760px) {

    .maintenance-check-grid {
        grid-template-columns:
            1fr !important;
    }


    .maintenance-check-card {
        min-height:
            auto !important;
    }


    .check-action {
        min-height:
            50px !important;
    }

}



/* ============================================================
   MAINTENANCE CHECK CARDS V3.1
   Actions immer bündig am Kartenboden
============================================================ */

.maintenance-check-card {
    display: flex !important;
    flex-direction: column !important;
}


/*
|--------------------------------------------------------------------------
| Inhalt darf unterschiedlich lang sein.
| Der Bedienbereich erhält den verbleibenden Platz.
|--------------------------------------------------------------------------
*/

.maintenance-check-form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;

    margin-top: 8px;
}


/*
|--------------------------------------------------------------------------
| Alle vier Aktionen immer unten
|--------------------------------------------------------------------------
*/

.maintenance-check-actions {
    margin-top: auto !important;
    padding-top: 12px !important;
}


/*
|--------------------------------------------------------------------------
| Laufkarten-Hinweis kompakter
|--------------------------------------------------------------------------
*/

.maintenance-check-hint {
    min-height: 0 !important;

    margin-top: 8px !important;

    padding: 7px 9px !important;

    border-radius: 8px !important;
}


.maintenance-check-hint strong {
    display: inline !important;

    margin-right: 4px;

    font-size: 6px !important;
}


/*
|--------------------------------------------------------------------------
| Beschreibungshöhe vereinheitlichen
|--------------------------------------------------------------------------
*/

.maintenance-check-content {
    min-height: 58px;
}


.maintenance-check-content p {
    min-height: 0 !important;
}


/*
|--------------------------------------------------------------------------
| Desktop: gleiche Mindesthöhe aller Karten
|--------------------------------------------------------------------------
*/

@media (min-width: 761px) {

    .maintenance-check-card {
        min-height: 275px !important;
    }

}


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

@media (max-width: 760px) {

    .maintenance-check-content {
        min-height: 0;
    }

    .maintenance-check-form {
        margin-top: 10px;
    }

}



/* ============================================================
   MAINTENANCE LIVE STATUSBAR
   Permanent während der Wartung
============================================================ */

.maintenance-livebar {
    position: sticky;
    top: 54px;
    z-index: 40;

    display: grid;

    grid-template-columns:
        minmax(250px,1.2fr)
        minmax(180px,.7fr)
        auto
        auto;

    gap: 18px;

    align-items: center;

    margin-bottom: 15px;

    padding: 11px 13px;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius:
        14px;

    color: #fff;

    background:
        linear-gradient(
            120deg,
            #2f363a 0%,
            #22282b 58%,
            #181d20 100%
        );

    box-shadow:
        0 12px 28px
        rgba(17,22,25,.20);

    overflow: hidden;
    isolation: isolate;
}


/* technische Hintergrunddetails */

.maintenance-livebar::before {
    content: '';

    position: absolute;

    inset: 0;

    z-index: -1;

    pointer-events: none;

    background-image:

        radial-gradient(
            circle at 102% -35%,
            transparent 0 85px,
            rgba(217,61,55,.18) 86px 87px,
            transparent 88px 115px,
            rgba(255,255,255,.05) 116px 117px,
            transparent 118px
        ),

        linear-gradient(
            rgba(255,255,255,.018) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.018) 1px,
            transparent 1px
        );

    background-size:
        auto,
        26px 26px,
        26px 26px;
}


/* Kontext links */

.maintenance-livebar-context {
    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;
}


.maintenance-livebar-back {
    display: grid;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    place-items: center;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 10px;

    color: transparent;

    background:
        rgba(255,255,255,.055);

    text-decoration: none;
}


.maintenance-livebar-back span {
    color: #fff;

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


.maintenance-livebar-back:hover {
    border-color:
        rgba(235,72,65,.72);

    background:
        rgba(222,61,55,.16);
}


.maintenance-livebar-title {
    min-width: 0;
}


.maintenance-livebar-title > div {
    color:
        #ef625c;

    font-size: 6px;

    font-weight: 950;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.maintenance-livebar-title strong {
    display: block;

    margin-top: 2px;

    font-size: 12px;

    white-space: nowrap;
}


.maintenance-livebar-title > span {
    display: block;

    max-width: 290px;

    margin-top: 2px;

    overflow: hidden;

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

    font-size: 6px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* Fortschritt */

.maintenance-livebar-progress-top {
    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 8px;
}


.maintenance-livebar-progress-top strong {
    font-size: 15px;
}


.maintenance-livebar-progress-top span {
    color:
        rgba(255,255,255,.43);

    font-size: 5px;

    font-weight: 850;

    text-transform: uppercase;
}


.maintenance-livebar-track {
    height: 5px;

    margin-top: 6px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255,255,255,.10);
}


.maintenance-livebar-track > span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #d83e38,
            #ef754f
        );

    transition:
        width .22s ease;
}


/* Kennzahlen */

.maintenance-livebar-values {
    display: flex;

    gap: 6px;
}


.maintenance-livebar-values > div {
    display: grid;

    min-width: 54px;
    min-height: 39px;

    box-sizing: border-box;

    align-content: center;

    padding: 5px 8px;

    border:
        1px solid rgba(255,255,255,.07);

    border-radius: 9px;

    background:
        rgba(255,255,255,.055);
}


.maintenance-livebar-values span {
    color:
        rgba(255,255,255,.40);

    font-size: 5px;

    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-livebar-values strong {
    display: block;

    margin-top: 1px;

    color: #fff;

    font-size: 13px;
}


.maintenance-livebar-values strong b {
    font: inherit;
}


.maintenance-livebar-values small {
    color:
        rgba(255,255,255,.40);

    font-size: 7px;
}


.maintenance-livebar-values
.good strong {
    color: #62d79c;
}


.maintenance-livebar-values
.warning strong {
    color: #f3b34e;
}


.maintenance-livebar-values
.danger strong {
    color: #ff746d;
}


/* Status */

.maintenance-livebar-action {
    display: flex;

    justify-content: flex-end;
}


.maintenance-livebar-status {
    display: inline-flex;

    min-height: 32px;

    box-sizing: border-box;

    align-items: center;

    gap: 6px;

    padding: 0 10px;

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

    border-radius: 999px;

    color: #a8e6c5;

    background:
        rgba(43,151,100,.13);

    font-size: 6px;

    font-weight: 950;

    white-space: nowrap;

    text-transform: uppercase;
}


.maintenance-livebar-status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #35bc79;

    box-shadow:
        0 0 0 4px
        rgba(53,188,121,.10);
}


.maintenance-livebar-status.status-completed {
    color: #c2efd7;

    background:
        rgba(43,151,100,.18);
}


.maintenance-livebar-status.status-cancelled {
    color: #ffaaa5;

    background:
        rgba(215,57,52,.14);
}


.maintenance-livebar-status.status-cancelled i {
    background: #e14a43;
}


/* Start */

.maintenance-livebar-start {
    min-height: 34px;

    padding: 0 13px;

    border: 0;

    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #e0443e,
            #b92d28
        );

    font-size: 7px;

    font-weight: 950;

    cursor: pointer;

    box-shadow:
        0 7px 15px
        rgba(190,46,41,.24);
}


/* Responsive */

@media (max-width: 1150px) {

    .maintenance-livebar {
        grid-template-columns:
            1fr 1fr;

        top: 0;
    }


    .maintenance-livebar-values {
        order: 3;
    }


    .maintenance-livebar-action {
        order: 4;
    }

}


@media (max-width: 700px) {

    .maintenance-livebar {
        position: relative;

        grid-template-columns: 1fr;

        gap: 10px;

        top: auto;
    }


    .maintenance-livebar-values {
        display: grid;

        grid-template-columns:
            repeat(4,1fr);
    }


    .maintenance-livebar-action {
        justify-content: stretch;
    }


    .maintenance-livebar-status,
    .maintenance-livebar-start {
        width: 100%;

        justify-content: center;
    }

}



/* ============================================================
   MAINTENANCE COMPLETION GATE V2
============================================================ */

.maintenance-final-gate {
    display: grid;
    gap: 12px;
}


.maintenance-final-hero {
    position: relative;
    overflow: hidden;

    display: grid;

    grid-template-columns:
        54px 1fr auto;

    align-items: center;

    gap: 14px;

    padding: 17px;

    border: 1px solid #d8d4ce;
    border-left: 5px solid #d89222;
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.maintenance-final-hero.ready {
    border-left-color: #299764;
}


.maintenance-final-symbol {
    display: grid;

    width: 50px;
    height: 50px;

    place-items: center;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #dba03c,
            #a96e17
        );

    font-size: 20px;
    font-weight: 950;
}


.maintenance-final-hero.ready
.maintenance-final-symbol {
    background:
        linear-gradient(
            145deg,
            #36ad75,
            #207b51
        );
}


.maintenance-final-title > span {
    color: #d33d37;

    font-size: 6px;
    font-weight: 950;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.maintenance-final-title h2 {
    margin: 4px 0 0;

    color: #2d3337;

    font-size: 18px;
}


.maintenance-final-title p {
    margin: 4px 0 0;

    color: #858c90;

    font-size: 8px;
}


.maintenance-final-big-number {
    min-width: 78px;

    padding: 9px 12px;

    border-radius: 11px;

    text-align: center;

    background:
        #292f33;
}


.maintenance-final-big-number strong {
    display: block;

    color: #fff;

    font-size: 21px;
}


.maintenance-final-big-number span {
    color: rgba(255,255,255,.48);

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


/* Karten */

.maintenance-final-grid {
    display: grid;

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

    gap: 10px;
}


.maintenance-final-card {
    position: relative;
    overflow: hidden;

    display: grid;

    grid-template-columns:
        42px 1fr auto;

    gap: 11px;

    align-items: center;

    min-height: 112px;

    padding: 13px;

    box-sizing: border-box;

    border: 1px solid #d9d5cf;
    border-top: 3px solid #299764;
    border-radius: 13px;

    color: inherit;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f7f4
        );

    text-decoration: none;

    box-shadow:
        0 6px 16px
        rgba(20,24,28,.045);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


.maintenance-final-card.blocked {
    border-top-color: #d73b35;
}


.maintenance-final-card.warning {
    border-top-color: #d89222;
}


.maintenance-final-card.defect {
    border-top-color: #d73b35;
}


@media (hover:hover) {

    a.maintenance-final-card:hover {
        transform:
            translateY(-4px);

        border-color:
            rgba(208,56,51,.48);

        box-shadow:
            0 17px 33px
            rgba(20,24,28,.11);
    }

}


.maintenance-final-card-icon {
    display: grid;

    width: 40px;
    height: 40px;

    place-items: center;

    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #333a3e,
            #202529
        );

    font-size: 8px;
    font-weight: 950;
}


.maintenance-final-card.ready
.maintenance-final-card-icon {
    background:
        linear-gradient(
            145deg,
            #34aa72,
            #217c52
        );
}


.maintenance-final-card.blocked
.maintenance-final-card-icon,
.maintenance-final-card.defect
.maintenance-final-card-icon {
    background:
        linear-gradient(
            145deg,
            #df4841,
            #b82d28
        );
}


.maintenance-final-card > div:nth-child(2) > span {
    color: #858c90;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-final-card h3 {
    margin: 3px 0 0;

    color: #30363a;

    font-size: 15px;
}


.maintenance-final-card p {
    margin: 3px 0 0;

    color: #919699;

    font-size: 6px;

    line-height: 1.45;
}


.maintenance-final-card-status {
    min-width: 48px;

    text-align: right;
}


.maintenance-final-card-status strong {
    display: block;

    color: #30363a;

    font-size: 16px;
}


.maintenance-final-card-status span {
    color: #989da0;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-final-card.blocked
.maintenance-final-card-status strong,
.maintenance-final-card.defect
.maintenance-final-card-status strong {
    color: #c73530;
}


/* Hinweise */

.maintenance-final-hint,
.maintenance-final-error {
    padding: 11px 13px;

    border-radius: 10px;

    font-size: 8px;
}


.maintenance-final-hint {
    border:
        1px solid rgba(216,146,34,.28);

    border-left:
        4px solid #d89222;

    color: #776637;

    background: #fff8e9;
}


.maintenance-final-error {
    border:
        1px solid rgba(215,57,52,.28);

    border-left:
        4px solid #d73b35;

    color: #8d3e39;

    background: #fff1f0;
}


.maintenance-final-hint strong,
.maintenance-final-error strong {
    display: block;

    margin-bottom: 2px;
}


/* Abschlussbutton */

.maintenance-final-button {
    display: flex;

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

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

    gap: 9px;

    border: 0;
    border-radius: 11px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #35ad74,
            #217b52
        );

    box-shadow:
        0 10px 22px
        rgba(33,124,82,.20);

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

    cursor: pointer;
}


.maintenance-final-button span {
    font-size: 15px;
}


.maintenance-final-lock {
    padding: 13px;

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

    color: #80652d;

    background: #fff8e8;

    font-size: 8px;
}


.maintenance-final-lock strong {
    display: block;

    margin-bottom: 2px;
}


.maintenance-final-completed {
    padding: 14px;

    border: 1px solid rgba(41,151,100,.27);
    border-radius: 10px;

    color: #33745a;

    background: #eff9f4;

    font-size: 8px;
}


.maintenance-final-completed strong {
    display: block;

    margin-bottom: 2px;

    font-size: 10px;
}


@media (max-width: 1100px) {

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

}


@media (max-width: 700px) {

    .maintenance-final-grid {
        grid-template-columns: 1fr;
    }


    .maintenance-final-hero {
        grid-template-columns:
            50px 1fr;
    }


    .maintenance-final-big-number {
        grid-column: 1 / -1;
    }

}



/* ============================================================
   MAINTENANCE NEXT TASK
============================================================ */

.maintenance-next-task {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    display: grid;

    grid-template-columns:
        55px 1fr auto;

    gap: 15px;

    align-items: center;

    min-height: 92px;

    box-sizing: border-box;

    margin-bottom: 13px;

    padding: 15px 17px;

    border:
        1px solid rgba(211,57,52,.27);

    border-left:
        5px solid #d73b35;

    border-radius:
        14px;

    color: inherit;

    background:
        linear-gradient(
            120deg,
            #fff 0%,
            #fff8f6 68%,
            #f6efeb 100%
        );

    box-shadow:
        0 9px 22px
        rgba(20,24,28,.07);

    text-decoration: none;

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


.maintenance-next-task::before {
    content: '';

    position: absolute;

    z-index: -1;

    width: 230px;
    height: 230px;

    right: 70px;
    top: -145px;

    border:
        1px solid rgba(211,57,52,.10);

    border-radius: 50%;

    box-shadow:
        0 0 0 32px
        rgba(48,54,58,.018),
        0 0 0 64px
        rgba(211,57,52,.018);
}


.maintenance-next-task-icon {
    display: grid;

    width: 50px;
    height: 50px;

    place-items: center;

    border-radius: 13px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #df4841,
            #b72d28
        );

    box-shadow:
        0 8px 18px
        rgba(190,46,41,.19);

    font-size: 15px;

    font-weight: 950;
}


.maintenance-next-task-content > span {
    color: #d43d37;

    font-size: 6px;

    font-weight: 950;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.maintenance-next-task-content h2 {
    margin: 4px 0 0;

    color: #2e3438;

    font-size: 16px;
}


.maintenance-next-task-content p {
    margin: 3px 0 0;

    color: #848b8f;

    font-size: 8px;
}


.maintenance-next-task-action {
    display: flex;

    align-items: center;

    gap: 9px;

    padding-left: 15px;

    color: #bd342f;

    font-size: 8px;

    font-weight: 950;
}


.maintenance-next-task-action span {
    font-size: 16px;
}


.maintenance-next-task.next-completion {
    border-color:
        rgba(41,151,100,.27);

    border-left-color:
        #299764;

    background:
        linear-gradient(
            120deg,
            #fff,
            #f1faf5
        );
}


.maintenance-next-task.next-completion
.maintenance-next-task-icon {
    background:
        linear-gradient(
            145deg,
            #36ad75,
            #217b52
        );
}


.maintenance-next-task.next-completion
.maintenance-next-task-action {
    color: #267a55;
}


.maintenance-next-task.next-requirement {
    border-left-color:
        #d89222;
}


@media (hover:hover) {

    .maintenance-next-task:hover {
        transform:
            translateY(-4px);

        box-shadow:
            0 18px 35px
            rgba(20,24,28,.13);
    }

}


@media (max-width: 700px) {

    .maintenance-next-task {
        grid-template-columns:
            50px 1fr;
    }


    .maintenance-next-task-action {
        grid-column: 2;

        padding-left: 0;
    }

}



/* ============================================================
   MELDERMATRIX – TEST VORSCHAU
   ============================================================ */

.mamo-detector-matrix-preview {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.mamo-detector-matrix-group {
    min-height: 82px;
    padding: 12px 14px;
    border: 1px solid #dfe3e7;
    border-left: 3px solid #30343a;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20,25,30,.05);
}

.mamo-detector-matrix-group > span {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a9097;
}

.mamo-detector-matrix-group > strong {
    display: block;
    margin-top: 4px;
    font-size: 23px;
    line-height: 1;
}

.mamo-detector-matrix-group > small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #777d84;
}

.mamo-detector-matrix-group > div {
    margin-top: 7px;
    font-size: 9px;
    font-weight: 700;
    color: #666c73;
}

.mamo-detector-matrix-cells {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    padding: 8px;
    border: 1px solid #e2e5e8;
    border-radius: 10px;
    background: #f6f7f8;
}

.mamo-detector-mini {
    position: relative;
    width: 62px;
    height: 62px;
    padding: 7px;
    border: 1px solid #d9dde1;
    border-radius: 8px;
    background: #fff;
}

.mamo-detector-mini.state-open {
    border-color: #e3ab55;
    background: #fff8ec;
}

.mamo-detector-mini.state-ok {
    border-color: #80c599;
    background: #f0faf4;
}

.mamo-detector-mini.state-defect {
    border-color: #d96d6d;
    background: #fff1f1;
}

.mamo-detector-mini span {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #686e75;
}

.mamo-detector-mini strong {
    display: block;
    margin-top: 7px;
    font-size: 14px;
    line-height: 1;
}

.mamo-detector-mini small {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 2px 4px;
    border-radius: 8px;
    background: #30343a;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
}



/* ============================================================
   MELDERMATRIX – ALLE GRUPPEN V2
   ============================================================ */

.mamo-detector-matrix-list {
    display: grid;
    gap: 9px;
    margin-bottom: 22px;
}

.mamo-matrix-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mamo-matrix-group-head > span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a9097;
}

.mamo-matrix-group-head > small {
    font-size: 9px;
    font-weight: 800;
    color: #6d737a;
}

.mamo-matrix-group-place {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #777d84;
}

.mamo-matrix-group-stats {
    display: flex;
    gap: 9px;
    margin-top: 8px;
}

.mamo-matrix-group-stats span {
    font-size: 8px;
    text-transform: uppercase;
    color: #858b92;
}

.mamo-matrix-group-stats b {
    color: #373c42;
}

.mamo-detector-matrix-preview.state-open
.mamo-detector-matrix-group {
    border-left-color: #e3a23d;
}

.mamo-detector-matrix-preview.state-ok
.mamo-detector-matrix-group {
    border-left-color: #42a96b;
}

.mamo-detector-matrix-preview.state-defect
.mamo-detector-matrix-group {
    border-left-color: #cc4242;
}

.mamo-detector-mini {
    cursor: pointer;
}

.mamo-matrix-state {
    position: absolute;
    right: 6px;
    bottom: 5px;
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
}

.mamo-detector-mini.state-open .mamo-matrix-state {
    color: #d38b20;
}

.mamo-detector-mini.state-ok .mamo-matrix-state {
    color: #278f51;
}

.mamo-detector-mini.state-defect .mamo-matrix-state {
    color: #bd3535;
}



/* ============================================================
   MELDERMATRIX – KOMPAKTE DETAILANSICHT V3
   ============================================================ */

.mamo-detector-matrix-preview {
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 10px;
}

.mamo-detector-matrix-group {
    min-height: 94px;
}

.mamo-matrix-group-place,
.mamo-detector-matrix-group > small {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.3;
    max-height: 30px;
}

.mamo-detector-matrix-cells {
    gap: 7px;
    padding: 9px;
}

.mamo-detector-mini {
    width: 76px;
    height: 76px;
    padding: 7px 7px 6px;
}

.mamo-detector-mini > span {
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mamo-detector-mini > strong {
    margin-top: 5px;
    font-size: 15px;
}

.mamo-detector-location {
    display: block;
    margin-top: 5px;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: normal;
    font-size: 8px;
    line-height: 1.1;
    color: #7c8289;
}

.mamo-matrix-state {
    right: 6px;
    bottom: 5px;
}

@media (max-width: 1100px) {

    .mamo-detector-matrix-preview {
        grid-template-columns: 205px minmax(0, 1fr);
    }

    .mamo-detector-mini {
        width: 72px;
        height: 72px;
    }

}



/* ============================================================
   MELDERMATRIX – STANDORT 2-ZEILIG V4
   ============================================================ */

.mamo-detector-location {
    display: block;
    margin-top: 4px;
    max-width: 62px;
    max-height: 20px;

    overflow: hidden;
    white-space: normal;

    font-style: normal;
    font-size: 8px;
    line-height: 10px;
    font-weight: 600;

    color: #747b83;

    overflow-wrap: break-word;
    word-break: normal;
}



/* ============================================================
   MELDERMATRIX – AKTIONEN V5
   ============================================================ */

.mamo-detector-mini-shell {
    position: relative;
    width: 76px;
    height: 76px;
}

.mamo-detector-mini-shell form {
    width: 100%;
    height: 100%;
    margin: 0;
}

.mamo-detector-mini {
    width: 100%;
    height: 100%;
}

.mamo-detector-mini:disabled {
    cursor: default;
    opacity: .78;
}

.mamo-matrix-issue {
    position: absolute;
    top: 4px;
    right: 4px;

    display: grid;
    place-items: center;

    width: 19px;
    height: 19px;
    padding: 0;

    border: 1px solid rgba(185, 49, 49, .32);
    border-radius: 6px;

    color: #b63232;
    background: rgba(255,255,255,.94);

    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    cursor: pointer;
    z-index: 3;

    transition:
        transform .14s ease,
        background .14s ease,
        color .14s ease;
}

.mamo-matrix-issue:hover {
    transform: scale(1.08);
    color: #fff;
    background: #bd3535;
}

.mamo-matrix-issue:disabled {
    opacity: .3;
    cursor: default;
}

.mamo-matrix-event-count {
    position: absolute;
    top: 5px;
    left: 5px;

    min-width: 19px;
    padding: 2px 4px;

    border-radius: 99px;

    color: #fff;
    background: #30343a;

    font-size: 8px;
    font-weight: 800;
    text-align: center;
}



/* ============================================================
   MELDERMATRIX – STATUSFARBEN V6
   ============================================================ */

.mamo-detector-mini.state-ok {
    border-color: #3f9f68;
    background:
        linear-gradient(
            145deg,
            #e8f7ee,
            #dff2e7
        );
}

.mamo-detector-mini.state-ok > span {
    color: #4e6d5a;
}

.mamo-detector-mini.state-ok > strong {
    color: #1f6f45;
}

.mamo-detector-mini.state-ok .mamo-matrix-state {
    color: #17834a;
}


/* Abgeschlossene Wartungen bleiben optisch klar lesbar */
.mamo-detector-mini:disabled {
    opacity: 1;
}

.mamo-detector-mini-shell:has(.mamo-detector-mini:disabled)
.mamo-matrix-issue {
    opacity: .45;
}



/* ============================================================
   MELDERMATRIX – SONDERSTATUS V7
   ============================================================ */

.mamo-detector-mini.state-attention {
    border-color: #d99b3d;
    background:
        linear-gradient(
            145deg,
            #fff8eb,
            #fff1d7
        );
}

.mamo-detector-mini.state-attention > strong,
.mamo-detector-mini.state-attention .mamo-matrix-state {
    color: #a66a12;
}

.mamo-detector-mini.state-neutral {
    border-color: #aeb4bb;
    background:
        linear-gradient(
            145deg,
            #f7f8f9,
            #eef0f2
        );
}

.mamo-detector-mini.state-neutral > strong,
.mamo-detector-mini.state-neutral .mamo-matrix-state {
    color: #646b73;
}


/* ============================================================
   MELDERMATRIX – ALTE MELDERANSICHT AUSBLENDEN
   ============================================================ */

.mamo-detector-matrix-list + .group-layout {
    display: none;
}



/* ============================================================
   WARTUNG – READ ONLY HINWEIS V2
   ============================================================ */

.maintenance-readonly-banner {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 12px 0 16px;
    padding: 12px 15px;

    border: 1px solid #c8ddd0;
    border-left: 4px solid #31855a;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #f5faf7,
            #edf6f1
        );

    box-shadow:
        0 5px 16px rgba(25, 58, 40, .055);
}

.maintenance-readonly-icon {
    display: grid;
    place-items: center;

    flex: 0 0 34px;
    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #31855a;
    color: #fff;

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

.maintenance-readonly-copy {
    display: grid;
    gap: 3px;
}

.maintenance-readonly-copy strong {
    color: #245d3e;
    font-size: 12px;
    font-weight: 850;
}

.maintenance-readonly-copy span {
    color: #657269;
    font-size: 10px;
    line-height: 1.45;
}



/* ============================================================
   WARTUNG – ABGESCHLOSSENE AKTE / BEDIENELEMENTE READ ONLY V3
   ============================================================ */


/* ------------------------------------------------------------
   Laufkarten & Unterlagen
   ------------------------------------------------------------ */

.maintenance-readonly .maintenance-check-actions,
.maintenance-readonly .maintenance-check-detail,
.maintenance-readonly .maintenance-check-saving {
    display: none !important;
}


/* ------------------------------------------------------------
   Voraussetzungen / Fremdgewerke
   ------------------------------------------------------------ */

.maintenance-readonly .req-actions {
    display: none !important;
}

.maintenance-readonly .req-action-form input,
.maintenance-readonly .req-action-form textarea,
.maintenance-readonly .req-action-form select {
    pointer-events: none;

    border-color: #e1e4e7;
    background: #f5f6f7;

    color: #5f656c;

    box-shadow: none;
    cursor: default;
}

.maintenance-readonly .req-action-form textarea {
    resize: none;
}


/* ------------------------------------------------------------
   Generell keine editierbare Anmutung
   ------------------------------------------------------------ */

.maintenance-readonly .check-action,
.maintenance-readonly .maintenance-check-save,
.maintenance-readonly .req-btn {
    pointer-events: none;
}


/* Bestehende Ergebnisse bleiben klar lesbar */
.maintenance-readonly .maintenance-check-card,
.maintenance-readonly .visit-requirement-card {
    opacity: 1;
}



/* ============================================================
   MAMO DESIGN SYSTEM
   SIGNATURE SURFACES / CONTROL CENTER V1
   ============================================================ */

:root {
    --mamo-red: #d93632;
    --mamo-red-deep: #b92926;

    --mamo-ink: #1f2224;
    --mamo-text: #34383b;
    --mamo-muted: #7c8185;

    --mamo-surface: rgba(255,255,255,.94);
    --mamo-surface-warm: #faf9f7;
    --mamo-border: rgba(37,40,42,.11);

    --mamo-radius-lg: 18px;
    --mamo-radius-md: 14px;

    --mamo-shadow:
        0 16px 42px rgba(30,34,36,.055),
        0 2px 5px rgba(30,34,36,.035);
}


/* ------------------------------------------------------------
   Dashboard Hintergrund
   ------------------------------------------------------------ */

.mamo-app-main {
    background:
        radial-gradient(
            circle at 82% 7%,
            rgba(217,54,50,.055),
            transparent 26%
        ),
        radial-gradient(
            circle at 18% 22%,
            rgba(217,54,50,.022),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #fbfaf8 0%,
            #f5f4f1 100%
        );
}


/* ------------------------------------------------------------
   Seitenkopf
   ------------------------------------------------------------ */

.mamo-page-heading {
    position: relative;
    align-items: flex-end;
    padding: 11px 4px 8px;
}

.mamo-page-heading::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;

    width: 31px;
    height: 2px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--mamo-red),
            rgba(217,54,50,.28)
        );
}

.mamo-page-heading-eyebrow {
    letter-spacing: .145em;
    text-transform: uppercase;

    color: var(--mamo-red) !important;

    font-size: 10px !important;
    font-weight: 850 !important;
}

.mamo-page-heading h1 {
    margin-top: 8px;

    color: var(--mamo-ink);

    font-size: clamp(32px, 3vw, 48px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 850;
}

.mamo-page-heading p {
    max-width: 760px;

    margin-top: 13px;

    color: #74797d;

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


/* ============================================================
   MAMO SIGNATURE KPI
   ============================================================ */

.mamo-kpis {
    gap: 14px;
}

.mamo-kpi {
    position: relative;
    overflow: hidden;

    min-height: 145px;

    padding: 21px 22px 19px;

    border:
        1px solid
        var(--mamo-border);

    border-radius:
        var(--mamo-radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.99),
            rgba(250,249,247,.92)
        );

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

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


/* MAMO Lichtkante */
.mamo-kpi::before {
    content: "";

    position: absolute;
    z-index: 2;

    top: 0;
    left: 13px;
    right: 13px;

    height: 3px;

    border-radius:
        0 0 8px 8px;

    background:
        linear-gradient(
            90deg,
            var(--mamo-red) 0%,
            rgba(217,54,50,.64) 25%,
            rgba(217,54,50,.10) 68%,
            transparent 100%
        );
}


/* Soft Glow */
.mamo-kpi::after {
    content: "";

    position: absolute;

    top: -48px;
    left: -25px;

    width: 210px;
    height: 105px;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse,
            rgba(217,54,50,.085),
            transparent 68%
        );
}

.mamo-kpi:hover {
    transform: translateY(-3px);

    border-color:
        rgba(217,54,50,.17);

    box-shadow:
        0 23px 50px rgba(30,34,36,.08),
        0 4px 10px rgba(30,34,36,.035);
}

.mamo-kpi-label {
    position: relative;
    z-index: 3;

    color: #7d8185;

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

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

.mamo-kpi-value {
    position: relative;
    z-index: 3;

    margin-top: 17px;

    color: var(--mamo-ink);

    font-size: 38px;
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 850;
}

.mamo-kpi-meta {
    position: relative;
    z-index: 3;

    margin-top: 15px;

    color: #7f8387;

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


/* ============================================================
   MAMO SIGNATURE PANELS
   ============================================================ */

.mamo-panel {
    position: relative;
    overflow: hidden;

    border:
        1px solid
        var(--mamo-border);

    border-radius:
        var(--mamo-radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.985),
            rgba(250,249,247,.94)
        );

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


/* dezente obere Reflektion */
.mamo-panel::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: 0;
    left: 18px;
    right: 18px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--mamo-red),
            rgba(217,54,50,.22),
            transparent 76%
        );
}

.mamo-panel-header {
    position: relative;
    z-index: 2;

    padding-top: 21px;
}

.mamo-panel-header h2 {
    color: var(--mamo-ink);

    letter-spacing: -.025em;

    font-weight: 820;
}

.mamo-panel-header span {
    color: #81868a;
}


/* ============================================================
   SYSTEM / DETAIL CARD
   ============================================================ */

.mamo-system-card {
    border:
        1px solid
        rgba(40,43,45,.075);

    border-radius:
        14px;

    background:
        rgba(248,248,246,.72);
}

.mamo-system-row {
    transition:
        background .15s ease;
}

.mamo-system-row:hover {
    background:
        rgba(217,54,50,.026);
}


/* ============================================================
   STATUS / ACTIONS
   ============================================================ */

.mamo-status {
    border:
        1px solid
        rgba(51,138,89,.14);

    background:
        rgba(51,138,89,.08);

    color:
        #337d53;
}

.mamo-primary-action {
    box-shadow:
        0 8px 22px
        rgba(217,54,50,.18);
}


/* ============================================================
   PLATFORM MODE BANNER
   ============================================================ */

.platform-context-banner {
    position: relative;
    overflow: hidden;

    border:
        1px solid
        rgba(217,54,50,.13) !important;

    background:
        linear-gradient(
            115deg,
            rgba(217,54,50,.070),
            rgba(255,255,255,.74) 58%,
            rgba(255,255,255,.94)
        ) !important;

    box-shadow:
        0 8px 24px
        rgba(40,43,45,.035);
}

.platform-context-banner::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background:
        linear-gradient(
            180deg,
            #e6433e,
            #b92825
        );
}


/* ============================================================
   TABLES – PREMIUM TECHNICAL
   ============================================================ */

.mamo-table thead th {
    color: #85898c;

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

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

.mamo-table tbody tr {
    transition:
        background .14s ease;
}

.mamo-table tbody tr:hover {
    background:
        rgba(217,54,50,.027);
}


/* ============================================================
   TABLET / SMALL DESKTOP
   ============================================================ */

@media (max-width: 1180px) {

    .mamo-kpi {
        min-height: 132px;
    }

    .mamo-kpi-value {
        font-size: 33px;
    }

}



/* ============================================================
   MAMO SIGNATURE SURFACES V2
   angelehnt an MAMO OPS
   ============================================================ */


/* ------------------------------------------------------------
   KPI – Grundkarte
   ------------------------------------------------------------ */

.mamo-kpi {
    position: relative;
    overflow: hidden;

    min-height: 132px;

    padding: 20px 22px 18px;

    border: 1px solid #ddd9d3;
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fdfcfb 55%,
            #faf9f7 100%
        );

    box-shadow:
        0 10px 28px rgba(24, 27, 29, .045),
        0 1px 2px rgba(24, 27, 29, .035);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


/* ------------------------------------------------------------
   obere MAMO-Lichtkante
   NICHT als separater Balken
   ------------------------------------------------------------ */

.mamo-kpi::before {
    content: "";

    position: absolute;

    top: 0;
    left: 17px;
    right: 17px;

    height: 3px;

    border-radius: 0 0 5px 5px;

    background:
        linear-gradient(
            90deg,
            #e33d39 0%,
            #ed6661 18%,
            rgba(237,102,97,.52) 42%,
            rgba(237,102,97,.15) 68%,
            rgba(237,102,97,0) 100%
        );

    opacity: .95;
}


/* weicher Lichtschein direkt darunter */
.mamo-kpi::after {
    content: "";

    position: absolute;

    top: -26px;
    left: -8px;

    width: 270px;
    height: 90px;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse at top,
            rgba(229,65,60,.060),
            rgba(229,65,60,.018) 42%,
            transparent 72%
        );
}


/* ------------------------------------------------------------
   Typografie wie OPS
   ------------------------------------------------------------ */

.mamo-kpi-label {
    position: relative;
    z-index: 2;

    color: #7b8084;

    font-size: 10px;
    line-height: 1.2;

    font-weight: 800;

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

.mamo-kpi-value {
    position: relative;
    z-index: 2;

    margin-top: 17px;

    color: #1e2123;

    font-size: 42px;
    line-height: .95;

    font-weight: 850;

    letter-spacing: -.045em;
}

.mamo-kpi-meta {
    position: relative;
    z-index: 2;

    margin-top: 16px;

    color: #7d8286;

    font-size: 11px;
    line-height: 1.3;

    font-weight: 700;
}


/* ------------------------------------------------------------
   Hover wesentlich ruhiger
   ------------------------------------------------------------ */

.mamo-kpi:hover {
    transform: translateY(-2px);

    border-color: #d5d0c9;

    box-shadow:
        0 14px 34px rgba(24,27,29,.065),
        0 2px 4px rgba(24,27,29,.035);
}


/* ============================================================
   STATUSVARIANTEN
   ============================================================ */

.mamo-kpi.is-warning::before {
    background:
        linear-gradient(
            90deg,
            #e68211 0%,
            #f1a442 22%,
            rgba(241,164,66,.50) 48%,
            rgba(241,164,66,.13) 72%,
            transparent 100%
        );
}

.mamo-kpi.is-success::before {
    background:
        linear-gradient(
            90deg,
            #2d9361 0%,
            #56ad7d 22%,
            rgba(86,173,125,.45) 48%,
            rgba(86,173,125,.12) 72%,
            transparent 100%
        );
}

.mamo-kpi.is-danger::before {
    background:
        linear-gradient(
            90deg,
            #c92f2b 0%,
            #e04a45 22%,
            rgba(224,74,69,.55) 48%,
            rgba(224,74,69,.15) 72%,
            transparent 100%
        );
}


/* ============================================================
   PANELS – gleiche DNA
   ============================================================ */

.mamo-panel {
    border: 1px solid #ddd9d3;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fdfcfb 62%,
            #faf9f7 100%
        );

    box-shadow:
        0 10px 28px rgba(24,27,29,.045),
        0 1px 2px rgba(24,27,29,.035);
}

.mamo-panel::before {
    left: 17px;
    right: 17px;

    height: 3px;

    border-radius: 0 0 5px 5px;

    background:
        linear-gradient(
            90deg,
            #e33d39,
            #ed6661 20%,
            rgba(237,102,97,.38) 48%,
            rgba(237,102,97,.08) 74%,
            transparent
        );
}


/* ============================================================
   Dashboard spacing
   ============================================================ */

.mamo-kpis {
    gap: 14px;
    margin-top: 18px;
    margin-bottom: 20px;
}



/* ============================================================
   MAMO BMA · SIGNATURE SIDEBAR V3
   MAMO OPS SIBLING DESIGN
   ============================================================ */

:root {
    --mamo-sidebar-width: 286px;
    --mamo-sidebar-red: #ef3f39;
}


/* ------------------------------------------------------------
   SIDEBAR SHELL
   ------------------------------------------------------------ */

.mamo-sidebar {
    width: var(--mamo-sidebar-width) !important;
    min-width: var(--mamo-sidebar-width) !important;

    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 100 !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 25px 18px 20px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    color: #fff !important;

    border-right:
        1px solid rgba(255,255,255,.07) !important;

    background:
        radial-gradient(
            circle at 28% 5%,
            rgba(239,52,48,.135),
            transparent 21%
        ),
        linear-gradient(
            180deg,
            #0b0e11 0%,
            #111519 45%,
            #0d1013 100%
        ) !important;

    box-shadow:
        20px 0 50px rgba(0,0,0,.17) !important;
}


/* Hauptbereich neben Sidebar */

.mamo-app-main {
    margin-left: var(--mamo-sidebar-width) !important;
    width: calc(100% - var(--mamo-sidebar-width)) !important;
    min-width: 0 !important;
}


/* ------------------------------------------------------------
   BRAND
   ------------------------------------------------------------ */

.mamo-sidebar-brand {
    position: relative !important;

    padding: 10px 10px 25px !important;
    margin: 0 0 21px !important;

    border-bottom:
        1px solid rgba(255,255,255,.09) !important;

    background: transparent !important;
}


/* rote Signature-Line */

.mamo-sidebar-brand::after {
    content: "";

    position: absolute;

    left: 10px;
    bottom: -1px;

    width: 49px;
    height: 2px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            #ef3f39,
            #d02e2a
        );

    box-shadow:
        0 0 16px rgba(239,63,57,.28);
}


/* MAMO BMA */

.mamo-brand-main {
    display: flex !important;
    align-items: baseline !important;
    gap: 9px !important;

    color: #fff !important;

    font-size: 30px !important;
    line-height: 1 !important;

    font-weight: 900 !important;

    letter-spacing: -.065em !important;
}

.mamo-brand-main span {
    color: #a5aaae !important;

    font-size: 25px !important;
    font-weight: 400 !important;

    letter-spacing: -.045em !important;
}


/* FIRE SAFETY ... */

.mamo-brand-sub {
    margin-top: 9px !important;

    color: #8e959a !important;

    font-size: 7.2px !important;
    line-height: 1.5 !important;

    font-weight: 700 !important;

    letter-spacing: .115em !important;
    text-transform: uppercase !important;

    white-space: nowrap !important;
}


/* BMA / OPERATIONS Badge */

.mamo-brand-badge {
    display: inline-flex !important;
    align-items: center !important;

    margin-top: 16px !important;
    padding: 7px 10px !important;

    border: 0 !important;
    border-radius: 3px !important;

    color: #fff !important;

    background:
        linear-gradient(
            135deg,
            #d62d29,
            #ef403b
        ) !important;

    box-shadow:
        0 8px 22px rgba(239,52,48,.20) !important;

    font-size: 8px !important;
    line-height: 1 !important;

    font-weight: 900 !important;

    letter-spacing: .13em !important;
    text-transform: uppercase !important;
}


/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */

.mamo-sidebar-nav {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* CONTROL / OPERATIONS / TECHNIK / DATA */

.mamo-nav-section {
    margin:
        17px 12px
        7px !important;

    padding: 0 !important;

    color: #626b72 !important;

    font-size: 7.5px !important;
    line-height: 1 !important;

    font-weight: 900 !important;

    letter-spacing: .20em !important;
    text-transform: uppercase !important;
}


/* Navigationseintrag */

.mamo-sidebar .mamo-nav-item {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    gap: 12px !important;

    min-height: 44px !important;

    margin: 2px 0 !important;
    padding: 0 12px !important;

    border:
        1px solid transparent !important;

    border-radius: 10px !important;

    color: #b9bec3 !important;
    background: transparent !important;

    font-size: 12.5px !important;
    font-weight: 700 !important;

    text-decoration: none !important;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease !important;
}


/* Icons */

.mamo-sidebar .mamo-nav-icon {
    display: grid !important;
    place-items: center !important;

    flex: 0 0 20px !important;

    width: 20px !important;

    color: #707980 !important;

    font-size: 13px !important;
    font-weight: 800 !important;

    transition:
        color .18s ease !important;
}


/* Label */

.mamo-sidebar .mamo-nav-label {
    min-width: 0 !important;

    color: inherit !important;

    font-size: inherit !important;
    font-weight: inherit !important;
}


/* Hover */

.mamo-sidebar a.mamo-nav-item:hover {
    color: #fff !important;

    border-color:
        rgba(255,255,255,.055) !important;

    background:
        rgba(255,255,255,.045) !important;

    transform:
        translateX(2px) !important;
}

.mamo-sidebar a.mamo-nav-item:hover
.mamo-nav-icon {
    color: #c7ccd0 !important;
}


/* Aktive Seite */

.mamo-sidebar .mamo-nav-item.is-active {
    color: #fff !important;

    border-color:
        rgba(239,52,48,.18) !important;

    background:
        linear-gradient(
            90deg,
            rgba(239,52,48,.155),
            rgba(255,255,255,.045)
        ) !important;

    box-shadow:
        inset 3px 0 0 var(--mamo-sidebar-red),
        0 7px 20px rgba(0,0,0,.10) !important;
}

.mamo-sidebar
.mamo-nav-item.is-active
.mamo-nav-icon {
    color: #ff5a54 !important;
}


/* ------------------------------------------------------------
   DISABLED / SOON
   ------------------------------------------------------------ */

.mamo-sidebar .mamo-nav-item.is-disabled {
    cursor: default !important;

    color: #737b81 !important;

    opacity: .70 !important;
}

.mamo-sidebar
.mamo-nav-item.is-disabled
.mamo-nav-icon {
    color: #565e64 !important;
}

.mamo-sidebar .mamo-nav-soon {
    margin-left: auto !important;

    padding: 3px 5px !important;

    border:
        1px solid rgba(255,255,255,.06) !important;

    border-radius: 4px !important;

    color: #717a80 !important;

    background:
        rgba(255,255,255,.035) !important;

    font-size: 6px !important;
    font-weight: 900 !important;

    letter-spacing: .09em !important;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.mamo-sidebar-footer {
    margin-top: auto !important;

    padding:
        16px 9px
        0 !important;

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

    background:
        transparent !important;
}


.mamo-sidebar-status {
    display: flex !important;
    align-items: center !important;

    gap: 8px !important;

    color: #8b9399 !important;

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


.mamo-live-dot {
    width: 7px !important;
    height: 7px !important;

    border-radius: 50% !important;

    background: #37a66f !important;

    box-shadow:
        0 0 0 4px
        rgba(55,166,111,.09) !important;
}


.mamo-sidebar-version {
    margin-top: 8px !important;

    color: #596167 !important;

    font-size: 7px !important;
    font-weight: 700 !important;

    letter-spacing: .07em !important;
}


/* ------------------------------------------------------------
   SCROLLBAR SIDEBAR
   ------------------------------------------------------------ */

.mamo-sidebar {
    scrollbar-width: thin;
    scrollbar-color:
        #343b40
        transparent;
}

.mamo-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mamo-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.mamo-sidebar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #343b40;
}


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

@media (max-width: 1180px) {

    :root {
        --mamo-sidebar-width: 260px;
    }

    .mamo-brand-main {
        font-size: 28px !important;
    }

    .mamo-brand-main span {
        font-size: 23px !important;
    }

    .mamo-brand-sub {
        font-size: 6.5px !important;
    }
}



/* ============================================================
   MAMO BMA · MAINTENANCE CONTROL CENTER V1
   ============================================================ */

.maintenance-index-shell {
    max-width: 1720px;
    margin: 0 auto;
    padding: 34px 38px 60px;
}

.maintenance-index-head {
    margin-bottom: 27px;
}

.maintenance-index-kicker {
    margin-bottom: 8px;

    color: #d93631;

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

    letter-spacing: .18em;
}

.maintenance-index-head h1 {
    margin: 0;

    color: #191b1d;

    font-size: clamp(34px, 3.3vw, 52px);
    line-height: .98;

    letter-spacing: -.055em;
}

.maintenance-index-head p {
    max-width: 800px;

    margin: 12px 0 0;

    color: #747a7f;

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


/* KPI */

.maintenance-index-kpis {
    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.maintenance-index-kpi {
    position: relative;

    display: block;
    overflow: hidden;

    min-height: 132px;

    padding: 20px 20px 17px;

    border: 1px solid #ddd7d0;
    border-radius: 18px;

    color: #191b1d;
    background: #fff;

    text-decoration: none;

    box-shadow:
        0 12px 34px
        rgba(25,27,29,.055);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


/* echter MAMO OPS Verlauf */
.maintenance-index-kpi::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #d93631,
            rgba(217,54,49,.08) 58%,
            transparent
        );
}

.maintenance-index-kpi.tone-info::before {
    background:
        linear-gradient(
            90deg,
            #3978b6,
            rgba(57,120,182,.10) 58%,
            transparent
        );
}

.maintenance-index-kpi.tone-good::before {
    background:
        linear-gradient(
            90deg,
            #25865c,
            rgba(37,134,92,.10) 58%,
            transparent
        );
}

.maintenance-index-kpi.tone-warn::before {
    background:
        linear-gradient(
            90deg,
            #cc7a1f,
            rgba(204,122,31,.11) 58%,
            transparent
        );
}

.maintenance-index-kpi:hover {
    transform: translateY(-3px);

    border-color: #cfc7bf;

    box-shadow:
        0 18px 42px
        rgba(25,27,29,.09);
}

.maintenance-index-kpi small {
    display: block;

    color: #7b8084;

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

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

.maintenance-index-kpi strong {
    display: block;

    margin: 16px 0 12px;

    color: #191b1d;

    font-size: 38px;
    line-height: 1;

    letter-spacing: -.05em;
}

.maintenance-index-kpi span {
    color: #7c8185;

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


/* FILTER */

.maintenance-index-filter {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        130px
        170px
        220px
        auto;

    gap: 10px;

    margin-bottom: 18px;
    padding: 10px;

    border: 1px solid #ddd7d0;
    border-radius: 15px;

    background: rgba(255,255,255,.86);

    box-shadow:
        0 7px 22px
        rgba(25,27,29,.035);
}

.maintenance-index-filter input,
.maintenance-index-filter select {
    min-width: 0;
    height: 44px;

    padding: 0 12px;

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

    color: #25282a;
    background: #fff;

    font: inherit;
}

.maintenance-index-filter button {
    min-height: 44px;

    padding: 0 18px;

    border: 0;
    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #c8322e,
            #e7443f
        );

    font-weight: 850;
    cursor: pointer;
}


/* PANEL */

.maintenance-index-panel {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 14px 38px
        rgba(25,27,29,.05);
}

.maintenance-index-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 70px;

    padding: 0 21px;

    border-bottom: 1px solid #ece7e1;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fbfaf8
        );
}

.maintenance-index-panel-head h2 {
    margin: 0;

    color: #191b1d;

    font-size: 18px;
    letter-spacing: -.025em;
}

.maintenance-index-panel-head span {
    display: block;

    margin-top: 4px;

    color: #858a8e;

    font-size: 11px;
}


/* TABLE */

.maintenance-index-table-wrap {
    overflow-x: auto;
}

.maintenance-index-table {
    width: 100%;

    border-collapse: collapse;
}

.maintenance-index-table th {
    padding: 12px 15px;

    border-bottom: 1px solid #e8e3de;

    color: #747a7f;
    background: #faf8f5;

    text-align: left;

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

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

.maintenance-index-table td {
    padding: 15px;

    border-bottom: 1px solid #eeeae5;

    color: #3e4347;

    font-size: 13px;
    vertical-align: middle;
}

.maintenance-index-table tbody tr:hover td {
    background: #fcfaf7;
}

.maintenance-index-table td strong {
    display: block;

    color: #25282a;

    font-size: 13px;
}

.maintenance-index-table td small {
    display: block;

    margin-top: 4px;

    color: #858a8e;

    font-size: 10px;
}

.maintenance-index-primary {
    color: #191b1d;

    font-weight: 850;

    text-decoration: none;
}

.maintenance-index-primary:hover {
    color: #d93631;
}


/* STATUS */

.maintenance-index-status {
    display: inline-flex;

    padding: 6px 9px;

    border-radius: 999px;

    background: #f0efed;
    color: #63696d;

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

.maintenance-index-status.info {
    background: #eaf3fb;
    color: #3978b6;
}

.maintenance-index-status.good {
    background: #e8f4ed;
    color: #25865c;
}

.maintenance-index-status.muted {
    background: #eceff1;
    color: #7b8185;
}

.maintenance-index-status.planned {
    background: #fff1df;
    color: #9b621d;
}

.maintenance-index-right {
    text-align: right !important;
}

.maintenance-index-open {
    display: inline-flex;

    min-height: 35px;

    align-items: center;

    padding: 0 11px;

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

    color: #34383b;
    background: #fff;

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

    text-decoration: none;
}

.maintenance-index-open:hover {
    color: #d93631;
    border-color: #d93631;
}

.maintenance-index-empty {
    padding: 55px !important;

    color: #858a8e !important;

    text-align: center !important;
}

.maintenance-index-pagination {
    padding: 15px 20px;

    border-top: 1px solid #ece7e1;
}


@media (max-width: 1250px) {

    .maintenance-index-kpis {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
    }

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

@media (max-width: 760px) {

    .maintenance-index-shell {
        padding: 24px 16px 50px;
    }

    .maintenance-index-kpis {
        grid-template-columns:
            1fr 1fr;
    }

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



/* ============================================================
   MAMO BMA · DEFECT CONTROL CENTER V1
   ============================================================ */

.defect-index-shell {
    max-width: 1720px;
    margin: 0 auto;
    padding: 34px 38px 60px;
}

.defect-index-head {
    margin-bottom: 27px;
}

.defect-index-kicker {
    margin-bottom: 8px;
    color: #d93631;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.defect-index-head h1 {
    margin: 0;
    color: #191b1d;
    font-size: clamp(34px,3.3vw,52px);
    line-height: .98;
    letter-spacing: -.055em;
}

.defect-index-head p {
    max-width: 800px;
    margin: 12px 0 0;
    color: #747a7f;
    font-size: 15px;
    line-height: 1.55;
}

.defect-index-kpis {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.defect-index-kpi {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 132px;
    padding: 20px 20px 17px;
    border: 1px solid #ddd7d0;
    border-radius: 18px;
    color: #191b1d;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(25,27,29,.055);
    transition: .2s ease;
}

.defect-index-kpi::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            #d93631,
            rgba(217,54,49,.08) 58%,
            transparent
        );
}

.defect-index-kpi.tone-bad::before {
    background:
        linear-gradient(
            90deg,
            #c93430,
            rgba(201,52,48,.1) 58%,
            transparent
        );
}

.defect-index-kpi.tone-info::before {
    background:
        linear-gradient(
            90deg,
            #3978b6,
            rgba(57,120,182,.1) 58%,
            transparent
        );
}

.defect-index-kpi.tone-good::before {
    background:
        linear-gradient(
            90deg,
            #25865c,
            rgba(37,134,92,.1) 58%,
            transparent
        );
}

.defect-index-kpi.tone-warn::before {
    background:
        linear-gradient(
            90deg,
            #cc7a1f,
            rgba(204,122,31,.11) 58%,
            transparent
        );
}

.defect-index-kpi:hover {
    transform: translateY(-3px);
    border-color: #cfc7bf;
    box-shadow: 0 18px 42px rgba(25,27,29,.09);
}

.defect-index-kpi small {
    display: block;
    color: #7b8084;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.defect-index-kpi strong {
    display: block;
    margin: 16px 0 12px;
    color: #191b1d;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -.05em;
}

.defect-index-kpi span {
    color: #7c8185;
    font-size: 11px;
    font-weight: 700;
}

.defect-index-filter {
    display: grid;
    grid-template-columns:
        minmax(280px,1fr)
        170px
        170px
        220px
        auto;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid #ddd7d0;
    border-radius: 15px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 7px 22px rgba(25,27,29,.035);
}

.defect-index-filter input,
.defect-index-filter select {
    height: 44px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #d7d1ca;
    border-radius: 10px;
    color: #25282a;
    background: #fff;
    font: inherit;
}

.defect-index-filter button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg,#c8322e,#e7443f);
    font-weight: 850;
    cursor: pointer;
}

.defect-index-panel {
    overflow: hidden;
    border: 1px solid #ddd7d0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(25,27,29,.05);
}

.defect-index-panel-head {
    min-height: 70px;
    padding: 0 21px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ece7e1;
    background: linear-gradient(180deg,#fff,#fbfaf8);
}

.defect-index-panel-head h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -.025em;
}

.defect-index-panel-head span {
    display: block;
    margin-top: 4px;
    color: #858a8e;
    font-size: 11px;
}

.defect-index-table-wrap {
    overflow-x: auto;
}

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

.defect-index-table th {
    padding: 12px 15px;
    color: #747a7f;
    background: #faf8f5;
    border-bottom: 1px solid #e8e3de;
    text-align: left;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.defect-index-table td {
    padding: 15px;
    border-bottom: 1px solid #eeeae5;
    color: #3e4347;
    font-size: 13px;
    vertical-align: middle;
}

.defect-index-table tbody tr:hover td {
    background: #fcfaf7;
}

.defect-index-table td strong,
.defect-index-primary {
    color: #25282a;
    font-weight: 850;
}

.defect-index-primary {
    text-decoration: none;
}

.defect-index-primary:hover {
    color: #d93631;
}

.defect-index-table td small {
    display: block;
    margin-top: 4px;
    color: #858a8e;
    font-size: 10px;
}

.defect-status,
.defect-severity {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
}

.defect-status.status-open {
    color: #a4322e;
    background: #fae8e8;
}

.defect-status.status-in_progress {
    color: #3978b6;
    background: #eaf3fb;
}

.defect-status.status-resolved {
    color: #25865c;
    background: #e8f4ed;
}

.defect-severity.severity-critical {
    color: #fff;
    background: #b82f2b;
}

.defect-severity.severity-high {
    color: #a43b2d;
    background: #f9e8e3;
}

.defect-severity.severity-normal {
    color: #95601b;
    background: #fff1df;
}

.defect-severity.severity-low {
    color: #687177;
    background: #eef0f1;
}

.defect-index-right {
    text-align: right !important;
}

.defect-index-open {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    padding: 0 11px;
    border: 1px solid #ddd7d0;
    border-radius: 9px;
    color: #34383b;
    background: #fff;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.defect-index-open:hover {
    color: #d93631;
    border-color: #d93631;
}

.defect-index-empty {
    padding: 55px !important;
    text-align: center !important;
    color: #858a8e !important;
}

.defect-index-pagination {
    padding: 15px 20px;
    border-top: 1px solid #ece7e1;
}

@media (max-width:1250px) {

    .defect-index-kpis {
        grid-template-columns: repeat(3,1fr);
    }

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

@media (max-width:760px) {

    .defect-index-shell {
        padding: 24px 16px 50px;
    }

    .defect-index-kpis {
        grid-template-columns: 1fr 1fr;
    }

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



/* ============================================================
   MAMO BMA · HIGH CLASS CONTROL CENTER V1
   ============================================================ */

.bma-control-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 27px;
    padding: 3px 2px 5px;
}

.bma-control-kicker {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 11px;

    color: #d93631;

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

    letter-spacing: .18em;
}

.bma-control-kicker::before {
    content: "";

    width: 28px;
    height: 2px;

    background: #d93631;
}

.bma-control-head h1 {
    margin: 0;

    color: #191b1d;

    font-size: clamp(39px,4vw,62px);
    line-height: .94;

    font-weight: 880;

    letter-spacing: -.065em;
}

.bma-control-head h1 span {
    color: #d93631;
}

.bma-control-head p {
    max-width: 760px;

    margin: 16px 0 0;

    color: #73797d;

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

.bma-control-head-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.bma-action {
    min-height: 44px;

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

    padding: 0 16px;

    border-radius: 10px;

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

    text-decoration: none;
}

.bma-action.secondary {
    border: 1px solid #d5cfc8;

    color: #34383b;
    background: #fff;
}

.bma-action.primary {
    border: 1px solid #d93631;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #c8322e,
            #e7443f
        );

    box-shadow:
        0 10px 22px
        rgba(217,54,49,.15);
}


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

.bma-control-kpis {
    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.bma-control-kpi {
    position: relative;

    display: block;
    overflow: hidden;

    min-height: 142px;

    padding: 21px 20px 18px;

    border: 1px solid #ddd7d0;
    border-radius: 18px;

    color: #191b1d;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(217,54,49,.045),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #fff,
            #fcfbf9
        );

    box-shadow:
        0 12px 34px
        rgba(25,27,29,.055);

    text-decoration: none;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}

.bma-control-kpi::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #d93631,
            rgba(217,54,49,.08) 58%,
            transparent
        );
}

.bma-control-kpi.tone-info::before {
    background:
        linear-gradient(
            90deg,
            #3978b6,
            rgba(57,120,182,.09) 58%,
            transparent
        );
}

.bma-control-kpi.tone-warn::before {
    background:
        linear-gradient(
            90deg,
            #cc7a1f,
            rgba(204,122,31,.10) 58%,
            transparent
        );
}

.bma-control-kpi.tone-danger::before {
    background:
        linear-gradient(
            90deg,
            #bd302c,
            rgba(189,48,44,.10) 58%,
            transparent
        );
}

.bma-control-kpi:hover {
    transform: translateY(-3px);

    border-color: #ccc4bc;

    box-shadow:
        0 19px 44px
        rgba(25,27,29,.09);
}

.bma-control-kpi small {
    display: block;

    color: #777d81;

    font-size: 8.5px;
    font-weight: 900;

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

.bma-control-kpi strong {
    display: block;

    margin: 17px 0 12px;

    color: #191b1d;

    font-size: 40px;
    line-height: .9;

    letter-spacing: -.055em;
}

.bma-control-kpi span {
    color: #747a7f;

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

.bma-control-kpi > i {
    position: absolute;

    right: 17px;
    bottom: 15px;

    color: #b0b3b5;

    font-size: 11px;
    font-style: normal;

    transition:
        transform .18s ease,
        color .18s ease;
}

.bma-control-kpi:hover > i {
    color: #d93631;

    transform:
        translate(2px,-2px);
}


/* ============================================================
   CONTROL GRID
   ============================================================ */

.bma-control-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1.72fr)
        minmax(330px,.63fr);

    gap: 18px;

    align-items: start;
}


/* ============================================================
   MAP
   ============================================================ */

.bma-map-panel,
.bma-side-panel {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 14px 40px
        rgba(25,27,29,.055);
}

.bma-panel-head {
    min-height: 76px;

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

    gap: 18px;

    padding: 17px 21px;

    border-bottom: 1px solid #ebe6e1;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fbfaf8
        );
}

.bma-panel-head.compact {
    min-height: 67px;
}

.bma-panel-head small {
    display: block;

    margin-bottom: 4px;

    color: #d93631;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .15em;
}

.bma-panel-head h2 {
    margin: 0;

    color: #191b1d;

    font-size: 18px;

    letter-spacing: -.025em;
}

.bma-panel-head span {
    display: block;

    margin-top: 4px;

    color: #858a8e;

    font-size: 10px;
}

.bma-panel-head > a {
    color: #5e6468;

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

    text-decoration: none;
}

.bma-panel-head > a:hover {
    color: #d93631;
}

.bma-map-legend {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 9px;
    flex-wrap: wrap;

    padding: 8px 19px;

    border-bottom: 1px solid #ece7e2;

    background: #fff;
}

.bma-map-legend span {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 6px 9px;

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

    color: #5e6468;
    background: #faf9f7;

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

.bma-map-legend i {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}

.bma-map-legend i.ok {
    background: #25865c;
}

.bma-map-legend i.maintenance {
    background: #3978b6;
}

.bma-map-legend i.defect {
    background: #cf3934;
}

.bma-control-map {
    height: 535px;

    background: #eef1f2;
}


/* MapLibre etwas sauberer */

.bma-control-map
.maplibregl-ctrl-group {
    border: 1px solid #d9d4ce;

    box-shadow:
        0 6px 18px
        rgba(25,27,29,.08);
}

.bma-control-map
.maplibregl-popup-content {
    min-width: 230px;

    padding: 15px;

    border: 1px solid #ddd7d0;
    border-radius: 13px;

    box-shadow:
        0 17px 40px
        rgba(25,27,29,.15);
}

.bma-map-popup {
    display: grid;
    gap: 5px;
}

.bma-map-popup small {
    color: #d93631;

    font-size: 8px;
    font-weight: 900;

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

.bma-map-popup strong {
    color: #191b1d;

    font-size: 15px;
}

.bma-map-popup span {
    color: #747a7f;

    font-size: 10px;
}

.bma-map-popup div {
    margin-top: 4px;

    color: #555c61;

    font-size: 10px;
}

.bma-map-popup a {
    margin-top: 7px;

    color: #d93631;

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

    text-decoration: none;
}


/* ============================================================
   RIGHT CONTROL SIDE
   ============================================================ */

.bma-control-side {
    display: grid;
    gap: 18px;
}

.bma-next-list {
    padding: 7px 18px;
}

.bma-next-item {
    display: grid;

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

    gap: 11px;

    align-items: center;

    min-height: 74px;

    padding: 11px 0;

    border-bottom: 1px solid #eeeae5;

    color: #191b1d;

    text-decoration: none;
}

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

.bma-next-state {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #999fa3;
    background: #f2f0ed;

    font-size: 11px;
}

.bma-next-state.live {
    color: #3978b6;
    background: #eaf3fb;
}

.bma-next-copy {
    min-width: 0;

    display: grid;
    gap: 3px;
}

.bma-next-copy strong {
    overflow: hidden;

    color: #25282a;

    font-size: 11px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.bma-next-copy span {
    overflow: hidden;

    color: #757b7f;

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.bma-next-copy small {
    color: #989c9f;

    font-size: 8px;
}

.bma-next-arrow {
    color: #a5a9ac;

    font-size: 11px;
}

.bma-next-item:hover
.bma-next-arrow {
    color: #d93631;
}

.bma-control-empty {
    display: grid;
    gap: 5px;

    padding: 28px 4px;

    color: #858a8e;

    font-size: 10px;
}

.bma-control-empty strong {
    color: #42474b;

    font-size: 11px;
}


/* QUICK ACCESS */

.bma-quick-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 9px;

    padding: 15px;
}

.bma-quick-grid > a {
    display: grid;

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

    gap: 9px;

    align-items: center;

    min-height: 65px;

    padding: 10px;

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

    color: #191b1d;
    background: #fbfaf8;

    text-decoration: none;

    transition: .18s ease;
}

.bma-quick-grid > a:hover {
    transform: translateY(-2px);

    border-color: #ccc4bc;

    background: #fff;

    box-shadow:
        0 9px 22px
        rgba(25,27,29,.06);
}

.bma-quick-grid b {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #191b1d;

    font-size: 11px;
}

.bma-quick-grid span {
    min-width: 0;

    display: grid;
    gap: 2px;
}

.bma-quick-grid strong {
    font-size: 10px;
}

.bma-quick-grid small {
    color: #858a8e;

    font-size: 8px;
}


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

@media (max-width: 1450px) {

    .bma-control-kpis {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

    .bma-control-grid {
        grid-template-columns:
            minmax(0,1.5fr)
            minmax(300px,.65fr);
    }
}

@media (max-width: 1080px) {

    .bma-control-grid {
        grid-template-columns: 1fr;
    }

    .bma-control-side {
        grid-template-columns: 1fr 1fr;
    }

    .bma-control-map {
        height: 450px;
    }
}

@media (max-width: 760px) {

    .bma-control-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bma-control-kpis {
        grid-template-columns:
            1fr 1fr;
    }

    .bma-control-side {
        grid-template-columns: 1fr;
    }

    .bma-control-map {
        height: 365px;
    }
}



/* ============================================================
   MAMO BMA · COMMAND SIDEBAR V4
   Navigation lives in the sidebar
   ============================================================ */


/* ------------------------------------------------------------
   Horizontale App-Navigation entfällt
   ------------------------------------------------------------ */

.mamo-topbar {
    display: none !important;
}

.platform-context-banner {
    display: none !important;
}


/* ------------------------------------------------------------
   Sidebar Suche
   ------------------------------------------------------------ */

.mamo-sidebar-search {
    margin: 0 1px 18px;
}

.mamo-sidebar-search form {
    position: relative;
}

.mamo-sidebar-search-icon {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: #697178;

    font-size: 13px;

    pointer-events: none;
}

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

    padding:
        0 11px
        0 35px;

    border:
        1px solid
        rgba(255,255,255,.085);

    border-radius: 10px;

    outline: 0;

    color: #f1f3f4;

    background:
        rgba(255,255,255,.045);

    font: inherit;

    font-size: 11px;

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

.mamo-sidebar-search input::placeholder {
    color: #727b82;
}

.mamo-sidebar-search input:focus {
    border-color:
        rgba(239,63,57,.42);

    background:
        rgba(255,255,255,.065);

    box-shadow:
        0 0 0 3px
        rgba(239,63,57,.07);
}

.mamo-sidebar-search > small {
    display: block;

    margin:
        6px 0 0
        11px;

    color: #596168;

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

    letter-spacing: .05em;
}


/* ------------------------------------------------------------
   Sidebar Footer / Account
   ------------------------------------------------------------ */

.mamo-sidebar-footer {
    display: grid !important;

    gap: 8px !important;

    margin-top: auto !important;

    padding:
        14px 0 0 !important;

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


/* Plattformmodus */

.mamo-sidebar-platform-form {
    margin: 0;
}

.mamo-sidebar-platform-form button {
    width: 100%;
    min-height: 39px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 11px;

    border:
        1px solid
        rgba(239,63,57,.20);

    border-radius: 9px;

    color: #e8eaeb;

    background:
        rgba(239,63,57,.075);

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

    cursor: pointer;
}

.mamo-sidebar-platform-form button:hover {
    background:
        rgba(239,63,57,.13);
}


/* Account */

.mamo-sidebar-account {
    display: grid;

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

    gap: 10px;

    align-items: center;

    padding: 8px 8px;
}

.mamo-sidebar-account-avatar {
    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #111417;
    background: #f1f3f4;

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

.mamo-sidebar-account > div:last-child {
    min-width: 0;

    display: grid;

    gap: 2px;
}

.mamo-sidebar-account strong {
    overflow: hidden;

    color: #d7dbde;

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.mamo-sidebar-account span {
    color: #6f777d;

    font-size: 7px;
}


/* Logout */

.mamo-sidebar-logout {
    margin: 0;
}

.mamo-sidebar-logout button {
    width: 100%;
    min-height: 38px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 0 11px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #939ba1;

    background: transparent;

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

    cursor: pointer;

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

.mamo-sidebar-logout button:hover {
    color: #fff;

    border-color:
        rgba(255,255,255,.055);

    background:
        rgba(255,255,255,.045);
}


/* Systemstatus */

.mamo-sidebar-system {
    display: grid;

    grid-template-columns:
        8px 1fr;

    align-items: center;

    gap:
        3px 7px;

    margin-top: 2px;

    padding:
        9px 9px 1px;

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

.mamo-sidebar-system > span:nth-child(2) {
    color: #767f85;

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

.mamo-sidebar-system small {
    grid-column: 2;

    color: #4f575d;

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

    letter-spacing: .06em;
}


/* ============================================================
   CONTROL CENTER HEADING V2
   ============================================================ */

.bma-control-head {
    margin-bottom: 23px;
}

.bma-control-head h1 {
    max-width: 900px;

    font-size:
        clamp(
            31px,
            2.7vw,
            45px
        ) !important;

    line-height: 1.02 !important;

    font-weight: 690 !important;

    letter-spacing:
        -.045em !important;
}

.bma-control-head h1 span {
    margin-left: 7px;

    color: #d93631;

    font-weight: 520 !important;
}

.bma-control-head p {
    margin-top: 12px;

    font-size: 13px;
}



/* ============================================================
   MAMO BMA · COMPANY SETTINGS V1
   ============================================================ */

.company-settings-shell {
    max-width: 1580px;
    margin: 0 auto;
    padding: 38px 38px 70px;
}

.company-settings-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
}

.company-settings-kicker {
    margin-bottom: 9px;
    color: #d93631;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.company-settings-head h1 {
    margin: 0;
    color: #191b1d;
    font-size: clamp(34px,3.2vw,48px);
    line-height: 1;
    letter-spacing: -.055em;
}

.company-settings-head p {
    max-width: 720px;
    margin: 11px 0 0;
    color: #747a7f;
    font-size: 13px;
    line-height: 1.55;
}

.company-settings-state {
    padding: 7px 10px;
    border: 1px solid #ddd7d0;
    border-radius: 999px;
    color: #747a7f;
    background: #fff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.company-settings-success,
.company-settings-errors {
    display: grid;
    gap: 5px;
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 11px;
}

.company-settings-success {
    color: #26724e;
    border: 1px solid #c7e6d4;
    background: #edf8f2;
}

.company-settings-errors {
    color: #92332e;
    border: 1px solid #efcbc8;
    background: #fff3f2;
}

.company-settings-layout {
    display: grid;
    grid-template-columns:
        minmax(0,1.35fr)
        minmax(390px,.72fr);
    gap: 18px;
    align-items: start;
}

.company-settings-main,
.company-settings-side {
    display: grid;
    gap: 18px;
}

.company-settings-side {
    position: sticky;
    top: 24px;
}

.company-settings-card {
    overflow: hidden;
    border: 1px solid #ddd7d0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(25,27,29,.05);
}

.company-settings-card > header {
    min-height: 66px;
    display: flex;
    align-items: center;
    padding: 15px 19px;
    border-bottom: 1px solid #ece7e1;
    background: linear-gradient(180deg,#fff,#fbfaf8);
}

.company-settings-card header small {
    display: block;
    margin-bottom: 4px;
    color: #d93631;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
}

.company-settings-card header h2 {
    margin: 0;
    color: #191b1d;
    font-size: 17px;
    letter-spacing: -.025em;
}

.company-settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 19px;
}

.company-settings-form-grid label,
.company-color-field,
.company-footer-field {
    display: grid;
    gap: 7px;
}

.company-settings-form-grid label.full {
    grid-column: 1/-1;
}

.company-settings-form-grid label > span,
.company-color-field > span,
.company-footer-field > span {
    color: #686e72;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.company-settings-form-grid input,
.company-footer-field textarea,
.company-color-field input[type="text"] {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #d8d2cc;
    border-radius: 10px;
    outline: 0;
    color: #25282a;
    background: #fff;
    font: inherit;
    font-size: 12px;
}

.company-settings-form-grid input:focus,
.company-footer-field textarea:focus,
.company-color-field input[type="text"]:focus {
    border-color: #d93631;
    box-shadow: 0 0 0 3px rgba(217,54,49,.075);
}


/* Logo */

.company-logo-upload {
    display: grid;
    gap: 14px;
    padding: 19px;
}

.company-logo-preview {
    min-height: 115px;
    display: grid;
    place-items: center;
    padding: 15px;
    border: 1px solid #e2ddd7;
    border-radius: 14px;
    background:
        linear-gradient(145deg,#fff,#f8f6f3);
}

.company-logo-preview img {
    max-width: 230px;
    max-height: 90px;
    object-fit: contain;
}

.company-logo-placeholder {
    color: #9ba0a4;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .15em;
}

.company-file-upload {
    position: relative;
    min-height: 62px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 0 14px;
    border: 1px dashed #c9c2bb;
    border-radius: 12px;
    background: #faf8f5;
    cursor: pointer;
}

.company-file-upload span {
    color: #33383b;
    font-size: 11px;
    font-weight: 850;
}

.company-file-upload small {
    color: #8a8f93;
    font-size: 8px;
}

.company-file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.company-remove-logo {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #777d81;
    font-size: 9px;
}

.company-color-field > div {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 9px;
}

.company-color-field input[type="color"] {
    width: 54px;
    height: 43px;
    padding: 3px;
    border: 1px solid #d8d2cc;
    border-radius: 10px;
    background: #fff;
}


/* Berichtsvorschau */

.company-report-preview {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    padding: 25px;
    border: 1px solid #d8d4cf;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(25,27,29,.07);
}

.company-report-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
}

.company-report-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ebe7e2;
}

.company-report-logo {
    max-width: 170px;
}

.company-report-logo img {
    max-width: 150px;
    max-height: 55px;
    object-fit: contain;
}

.company-report-logo strong {
    color: #191b1d;
    font-size: 14px;
}

.company-report-preview-head > div:last-child {
    text-align: right;
}

.company-report-preview-head small {
    display: block;
    color: #858a8e;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
}

.company-report-preview-head strong {
    display: block;
    margin-top: 4px;
    color: #191b1d;
    font-size: 12px;
}

.company-report-preview-title {
    padding: 30px 0 25px;
}

.company-report-preview-title small {
    color: #858a8e;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
}

.company-report-preview-title h3 {
    margin: 7px 0 6px;
    color: #191b1d;
    font-size: 21px;
    letter-spacing: -.035em;
}

.company-report-preview-title p {
    margin: 0;
    color: #787e82;
    font-size: 9px;
}

.company-report-preview-meta {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.company-report-preview-meta div {
    min-width: 0;
    padding: 11px;
    border: 1px solid #ebe6e1;
    border-radius: 10px;
    background: #faf9f7;
}

.company-report-preview-meta span {
    display: block;
    color: #92979a;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.company-report-preview-meta strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #33383b;
    font-size: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.company-report-contact {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eeeae5;
    color: #747a7f;
    font-size: 8px;
}

.company-report-footer {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #eeeae5;
    color: #959a9d;
    font-size: 7px;
}

.company-settings-save {
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg,#c8322e,#e7443f);
    box-shadow: 0 11px 24px rgba(217,54,49,.17);
    font-weight: 900;
    cursor: pointer;
}

@media (max-width:1100px) {

    .company-settings-layout {
        grid-template-columns: 1fr;
    }

    .company-settings-side {
        position: static;
    }
}

@media (max-width:700px) {

    .company-settings-shell {
        padding: 25px 16px 50px;
    }

    .company-settings-form-grid {
        grid-template-columns: 1fr;
    }

    .company-settings-form-grid label.full {
        grid-column: auto;
    }

    .company-report-preview-meta {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   MAMO BMA · MAINTENANCE REPORT SCREEN V1
   ============================================================ */

.report-screen-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 36px 70px;
}

.report-screen-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 14px;
}

.report-screen-toolbar > a {
    color: #575d61;
    font-size: 10px;
    font-weight: 850;
    text-decoration: none;
}

.report-screen-toolbar > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.report-screen-toolbar span,
.report-screen-toolbar strong {
    font-size: 8px;
}

.report-screen-toolbar span {
    color: #858a8e;
}

.report-screen-toolbar strong {
    padding: 5px 8px;
    border-radius: 999px;
    color: #267451;
    background: #eaf5ef;
}


/* Dokument */

.maintenance-report {
    overflow: hidden;

    border: 1px solid #d9d4ce;
    border-radius: 18px;

    color: #25282a;
    background: #fff;

    box-shadow:
        0 22px 60px
        rgba(25,27,29,.09);
}


/* COVER */

.report-cover {
    position: relative;
    min-height: 530px;
    padding: 34px 38px 32px;

    background:
        radial-gradient(
            circle at 93% 5%,
            color-mix(
                in srgb,
                var(--report-accent) 9%,
                transparent
            ),
            transparent 29%
        ),
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        );
}

.report-cover-accent {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;

    background: var(--report-accent);
}

.report-cover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.report-company-logo {
    max-width: 230px;
    min-height: 60px;
}

.report-company-logo img {
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

.report-company-logo strong {
    font-size: 18px;
}

.report-document-type {
    text-align: right;
}

.report-document-type small {
    display: block;
    color: #7f8589;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .15em;
}

.report-document-type strong {
    display: block;
    margin-top: 5px;
    font-size: 13px;
}

.report-cover-main {
    max-width: 720px;
    margin-top: 75px;
}

.report-cover-kicker {
    color: var(--report-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
}

.report-cover-main h1 {
    margin: 10px 0 12px;
    font-size: clamp(42px,5vw,72px);
    line-height: .92;
    letter-spacing: -.065em;
}

.report-cover-main p {
    max-width: 580px;
    color: #747a7f;
    font-size: 14px;
    line-height: 1.6;
}

.report-cover-object {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    gap: 12px;

    margin-top: 52px;
}

.report-cover-object > div,
.report-cover-meta > div {
    min-width: 0;
}

.report-cover-object span,
.report-cover-meta span {
    display: block;
    color: #8b9094;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.report-cover-object strong {
    display: block;
    margin-top: 6px;
    font-size: 13px;
}

.report-cover-object small {
    display: block;
    margin-top: 4px;
    color: #7f8589;
    font-size: 8px;
}

.report-cover-meta {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1px;

    margin: 30px -38px -32px;

    border-top: 1px solid #e5e1dc;
    background: #e5e1dc;
}

.report-cover-meta > div {
    min-height: 76px;
    padding: 17px 20px;
    background: #fff;
}

.report-cover-meta strong {
    display: block;
    margin-top: 7px;
    font-size: 11px;
}

.report-cover-meta strong.good {
    color: #25865c;
}


/* SECTIONS */

.report-section {
    padding: 34px 38px;
    border-top: 1px solid #e9e5e0;
}

.report-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.report-section-heading small {
    display: block;
    color: var(--report-accent);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .16em;
}

.report-section-heading h2 {
    margin: 5px 0 0;
    font-size: 24px;
    letter-spacing: -.04em;
}

.report-section-heading > span {
    color: #7e8488;
    font-size: 9px;
}

.report-section-status {
    padding: 7px 10px;
    border-radius: 999px;
    color: #267451 !important;
    background: #eaf5ef;
    font-weight: 850;
}


/* SUMMARY */

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.report-summary-grid > div {
    position: relative;
    overflow: hidden;
    min-height: 115px;
    padding: 16px;

    border: 1px solid #e3ded8;
    border-radius: 14px;

    background: #fbfaf8;
}

.report-summary-grid > div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--report-accent),
            transparent 72%
        );
}

.report-summary-grid > div.good::before {
    background:
        linear-gradient(
            90deg,
            #25865c,
            transparent 72%
        );
}

.report-summary-grid > div.attention::before {
    background:
        linear-gradient(
            90deg,
            #c33b36,
            transparent 72%
        );
}

.report-summary-grid span {
    display: block;
    color: #777d81;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.report-summary-grid strong {
    display: block;
    margin: 13px 0 8px;
    font-size: 30px;
    line-height: 1;
}

.report-summary-grid small {
    color: #858a8e;
    font-size: 8px;
}

.report-attention-box {
    display: grid;
    gap: 5px;

    margin-top: 13px;
    padding: 13px 15px;

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

    background: #fff5f4;
}

.report-attention-box strong {
    color: #94312d;
    font-size: 10px;
}

.report-attention-box span {
    color: #796966;
    font-size: 9px;
}


/* DETAILS */

.report-detail-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.report-detail-card {
    min-height: 95px;
    padding: 15px;

    border: 1px solid #e5e0db;
    border-radius: 12px;
}

.report-detail-card span {
    color: #8a8f93;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.report-detail-card strong {
    display: block;
    margin-top: 9px;
    font-size: 11px;
}

.report-detail-card small {
    display: block;
    margin-top: 5px;
    color: #81868a;
    font-size: 8px;
}


/* INSPECTIONS */

.report-inspection-list {
    overflow: hidden;

    border: 1px solid #e3ded8;
    border-radius: 13px;
}

.report-inspection-row {
    display: grid;
    grid-template-columns: 105px 1fr 135px;
    gap: 15px;
    align-items: center;

    min-height: 66px;
    padding: 10px 14px;

    border-bottom: 1px solid #eeeae5;
}

.report-inspection-row:last-child {
    border-bottom: 0;
}

.report-inspection-group {
    display: grid;
    gap: 3px;
}

.report-inspection-group small {
    color: var(--report-accent);
    font-size: 10px;
    font-weight: 900;
}

.report-inspection-group span {
    color: #8a8f93;
    font-size: 8px;
}

.report-inspection-main {
    display: grid;
    gap: 5px;
}

.report-inspection-main > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.report-inspection-main b {
    padding: 3px 5px;
    border-radius: 5px;
    color: var(--report-accent);
    background: #faf0ef;
    font-size: 7px;
}

.report-inspection-main strong {
    font-size: 11px;
}

.report-inspection-main span {
    color: #5f6569;
    font-size: 9px;
}

.report-inspection-main small {
    color: #898e92;
    font-size: 7px;
}

.report-result {
    justify-self: end;
    padding: 6px 9px;
    border-radius: 999px;
    color: #62686c;
    background: #f0efed;
    font-size: 8px;
    font-weight: 900;
}

.report-result.result-ok {
    color: #25865c;
    background: #e9f5ee;
}

.report-result.result-defect {
    color: #a0332f;
    background: #fae9e8;
}

.report-result.result-inaccessible,
.report-result.result-missing {
    color: #94601c;
    background: #fff1df;
}


/* CHECKS */

.report-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.report-check {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;

    min-height: 62px;
    padding: 12px 14px;

    border: 1px solid #e4dfda;
    border-radius: 11px;
}

.report-check span {
    font-size: 10px;
    font-weight: 800;
}

.report-check small {
    display: block;
    margin-top: 4px;
    color: #858a8e;
    font-size: 8px;
}

.report-check > strong {
    font-size: 8px;
}

.report-check.check-ok > strong {
    color: #25865c;
}

.report-check.check-issue > strong,
.report-check.check-not_available > strong {
    color: #a33a34;
}


/* REQUIREMENTS */

.report-requirement {
    border: 1px solid #e3ded8;
    border-radius: 13px;
    overflow: hidden;
}

.report-requirement + .report-requirement {
    margin-top: 12px;
}

.report-requirement-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 15px;

    background: #faf9f7;
}

.report-requirement-head small {
    color: var(--report-accent);
    font-size: 7px;
    font-weight: 900;
}

.report-requirement-head strong {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

.report-requirement-head span {
    display: block;
    margin-top: 4px;
    color: #7e8488;
    font-size: 8px;
}

.report-requirement-head > b {
    font-size: 8px;
    color: #25865c;
}

.report-timeline {
    padding: 7px 16px 12px;
}

.report-timeline > div {
    position: relative;
    display: grid;
    grid-template-columns: 10px 105px 150px 1fr;
    gap: 8px;
    align-items: start;

    min-height: 35px;
    padding: 9px 0;

    border-bottom: 1px solid #eeeae5;
}

.report-timeline > div:last-child {
    border-bottom: 0;
}

.report-timeline i {
    width: 7px;
    height: 7px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--report-accent);
}

.report-timeline time,
.report-timeline span,
.report-timeline small {
    color: #858a8e;
    font-size: 7px;
}

.report-timeline strong {
    font-size: 8px;
}

.report-timeline small {
    grid-column: 3/-1;
}


/* DEFECTS */

.report-defect-list {
    display: grid;
    gap: 9px;
}

.report-defect {
    display: grid;
    grid-template-columns: 110px 1fr 125px;
    gap: 15px;
    align-items: center;

    padding: 14px;

    border: 1px solid #e6d6d4;
    border-left: 3px solid #c53a35;
    border-radius: 11px;

    background: #fffafa;
}

.report-defect.defect-resolved {
    border-color: #d6e7dd;
    border-left-color: #25865c;
    background: #f8fcfa;
}

.report-defect-number {
    color: #99332e;
    font-size: 9px;
    font-weight: 900;
}

.report-defect-resolved
.report-defect-number {
    color: #25865c;
}

.report-defect-main strong {
    display: block;
    font-size: 10px;
}

.report-defect-main span,
.report-defect-main small {
    display: block;
    margin-top: 4px;
    color: #7c8185;
    font-size: 8px;
}

.report-defect-status {
    justify-self: end;
    text-align: right;
}

.report-defect-status span {
    display: block;
    color: #8c9195;
    font-size: 6px;
    font-weight: 900;
}

.report-defect-status strong {
    display: block;
    margin-top: 4px;
    font-size: 8px;
}

.report-defect-resolved
.report-defect-status strong {
    color: #25865c;
}

.report-no-defects {
    padding: 20px;
    border-radius: 11px;
    color: #25865c;
    background: #edf7f2;
    font-size: 10px;
    font-weight: 850;
}


/* FINAL */

.report-final {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;

    padding: 30px 38px;

    border-top: 1px solid #e8e4df;

    background: #faf9f7;
}

.report-final > div {
    display: grid;
    gap: 4px;
}

.report-final small {
    color: #8a8f93;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
}

.report-final strong {
    font-size: 11px;
}

.report-final span {
    color: #7e8488;
    font-size: 8px;
}

.report-hash {
    font-family: monospace;
}

.report-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 15px 38px;

    color: #989c9f;
    background: #f3f1ed;

    font-size: 7px;
}


/* responsive */

@media (max-width: 900px) {

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

    .report-cover-object {
        grid-template-columns: 1fr;
    }

    .report-inspection-row {
        grid-template-columns: 80px 1fr;
    }

    .report-result {
        grid-column: 2;
        justify-self: start;
    }
}



/* ============================================================
   MAMO BMA · ANLAGENPRÜFUNG V1
   ============================================================ */

.measurement-workspace {
    display: grid;
    gap: 16px;
}

.measurement-workspace-head {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 24px;
    align-items: end;

    padding: 4px 2px 3px;
}

.measurement-workspace-head h2 {
    margin: 7px 0 7px;
    color: #252a2e;
    font-size: 25px;
    letter-spacing: -.04em;
}

.measurement-workspace-head p {
    margin: 0;
    color: #7c8286;
    font-size: 11px;
    line-height: 1.5;
}

.measurement-progress {
    min-width: 185px;
    padding-left: 20px;
    border-left: 1px solid #ddd8d2;
}

.measurement-progress > span {
    display: block;
    color: #858b8f;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.measurement-progress > strong {
    display: block;
    margin-top: 6px;
    color: #252a2e;
    font-size: 25px;
    letter-spacing: -.04em;
}

.measurement-progress > strong b {
    font-weight: 900;
}

.measurement-progress > small {
    display: block;
    margin-top: 5px;
    color: #858b8f;
    font-size: 8px;
}

.measurement-readonly-note {
    padding: 11px 13px;
    border: 1px solid #c8ddd0;
    border-radius: 10px;
    color: #33704e;
    background: #eef7f2;
    font-size: 9px;
    font-weight: 750;
}


/* Panels */

.measurement-category-stack {
    display: grid;
    gap: 14px;
}

.measurement-panel {
    overflow: hidden;
    border: 1px solid #ddd8d2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(25,27,29,.045);
}

.measurement-panel-head {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;

    min-height: 74px;
    padding: 14px 17px;

    border-bottom: 1px solid #ece7e2;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fbfaf8
        );
}

.measurement-panel-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;

    color: #d93631;
    background: #fff0ef;

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

.measurement-panel-head small {
    color: #d93631;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .14em;
}

.measurement-panel-head h3 {
    margin: 3px 0 2px;
    color: #252a2e;
    font-size: 15px;
}

.measurement-panel-head p {
    margin: 0;
    color: #858a8e;
    font-size: 8px;
}

.measurement-panel-count {
    padding: 6px 9px;
    border-radius: 999px;
    color: #646b70;
    background: #f1efec;
    font-size: 8px;
    font-weight: 900;
}


/* Status-Prüfungen */

.measurement-status-list {
    display: grid;
}

.measurement-status-row {
    display: grid;
    grid-template-columns:
        minmax(175px,.8fr)
        minmax(460px,1.65fr);
    gap: 15px;
    align-items: center;

    padding: 11px 16px;

    border-bottom: 1px solid #f0ece7;

    transition: background .15s ease;
}

.measurement-status-row:last-child {
    border-bottom: 0;
}

.measurement-status-row.state-ok {
    background: #fbfefc;
}

.measurement-status-row.state-issue {
    background: #fff9f8;
}

.measurement-status-copy {
    display: grid;
    gap: 3px;
}

.measurement-status-copy strong {
    color: #303539;
    font-size: 10px;
}

.measurement-status-copy small {
    color: #909599;
    font-size: 7px;
}

.measurement-status-actions {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap: 6px;
}

.measurement-status-btn {
    min-height: 37px;
    padding: 0 9px;

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

    color: #676d71;
    background: #fff;

    font-size: 8px;
    font-weight: 850;

    cursor: pointer;
}

.measurement-status-btn:hover:not(:disabled) {
    border-color: #bbb4ad;
    background: #faf8f5;
}

.measurement-status-btn.ok.active {
    border-color: #68b58d;
    color: #26784f;
    background: #eaf6ef;
}

.measurement-status-btn.issue.active {
    border-color: #db817c;
    color: #9f302c;
    background: #fbe9e8;
}

.measurement-status-btn.na.active,
.measurement-status-btn.neutral.active {
    border-color: #bfc5c9;
    color: #687076;
    background: #eef0f1;
}


/* Messwerte */

.measurement-value-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 10px;
    padding: 14px;
}

.measurement-value-grid.compact {
    border-top: 1px solid #eeeae5;
}

.measurement-value-card {
    position: relative;

    min-height: 118px;

    padding: 13px;

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

    background: #fbfaf8;

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

.measurement-value-card.state-recorded,
.measurement-value-card.state-ok {
    border-color: #cee6d7;
    background: #fbfefc;
}

.measurement-value-card.state-issue {
    border-color: #edcbc8;
    background: #fff9f8;
}

.measurement-value-card.is-saving {
    opacity: .65;
}

.measurement-value-card.just-saved {
    box-shadow:
        0 0 0 3px rgba(37,134,92,.08);
}

.measurement-value-card.save-error,
.measurement-status-row.save-error {
    box-shadow:
        0 0 0 3px rgba(201,52,48,.11);
}

.measurement-value-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 12px;
}

.measurement-value-title span {
    color: #51575b;
    font-size: 9px;
    font-weight: 850;
}

.measurement-value-title small {
    color: #8b9094;
    font-size: 7px;
    font-weight: 800;
}

.measurement-number-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
}

.measurement-number-field input,
.measurement-text-field {
    width: 100%;
    min-width: 0;
    height: 46px;

    padding: 0 11px;

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

    outline: 0;

    color: #1f2326;
    background: #fff;

    font: inherit;
    font-size: 17px;
    font-weight: 850;

    text-align: right;
}

.measurement-text-field {
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.measurement-number-field input:focus,
.measurement-text-field:focus {
    border-color: #d93631;
    box-shadow:
        0 0 0 3px rgba(217,54,49,.07);
}

.measurement-number-field > span {
    min-width: 28px;
    color: #747b7f;
    font-size: 10px;
    font-weight: 850;
}

.measurement-target {
    margin-top: 6px;
    color: #8b9094;
    font-size: 7px;
}


/* Bemerkungen bewusst dezent */

.measurement-note {
    grid-column: 1/-1;
    margin-top: 7px;
}

.measurement-status-row
.measurement-note {
    grid-column: 2;
    margin-top: 0;
}

.measurement-note summary {
    list-style: none;
    color: #92979a;
    font-size: 7px;
    font-weight: 750;
    cursor: pointer;
}

.measurement-note summary::-webkit-details-marker {
    display: none;
}

.measurement-note summary::after {
    content: " +";
}

.measurement-note[open] summary::after {
    content: " −";
}

.measurement-note textarea {
    width: 100%;
    margin-top: 7px;
    padding: 8px 9px;

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

    color: #454b4f;
    background: #fff;

    font: inherit;
    font-size: 9px;
    resize: vertical;
}


/* Readonly */

.maintenance-readonly
.measurement-status-btn,
.maintenance-readonly
.measurement-number-field input,
.maintenance-readonly
.measurement-text-field,
.maintenance-readonly
.measurement-note textarea {
    pointer-events: none;
}


/* Tablet */

@media (max-width: 1180px) {

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

    .measurement-status-row {
        grid-template-columns:
            minmax(150px,.65fr)
            minmax(0,1.5fr);
    }
}

@media (max-width: 760px) {

    .measurement-workspace-head {
        grid-template-columns: 1fr;
    }

    .measurement-progress {
        padding: 0;
        border-left: 0;
    }

    .measurement-status-row {
        grid-template-columns: 1fr;
    }

    .measurement-status-actions {
        grid-template-columns:
            1fr 1fr;
    }

    .measurement-status-row
    .measurement-note {
        grid-column: 1;
    }

    .measurement-value-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   MAMO BMA · ANLAGENPRÜFUNG V2
   TABLET / READABILITY
   ============================================================ */

.measurement-workspace-head h2 {
    font-size: 30px;
    line-height: 1.08;
}

.measurement-workspace-head p {
    font-size: 14px;
    line-height: 1.55;
}


/* Fortschritt */

.measurement-progress > span {
    font-size: 10px;
}

.measurement-progress > strong {
    font-size: 30px;
}

.measurement-progress > small {
    font-size: 11px;
}


/* Panel Header */

.measurement-panel-head {
    min-height: 86px;
    padding: 17px 19px;
}

.measurement-panel-icon {
    width: 44px;
    height: 44px;

    font-size: 20px;
}

.measurement-panel-head small {
    font-size: 9px;
}

.measurement-panel-head h3 {
    margin-top: 4px;

    font-size: 18px;
}

.measurement-panel-head p {
    margin-top: 3px;

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

.measurement-panel-count {
    padding: 7px 10px;

    font-size: 10px;
}


/* Statuszeilen */

.measurement-status-row {
    min-height: 72px;

    padding: 13px 17px;
}

.measurement-status-copy strong {
    font-size: 13px;
}

.measurement-status-copy small {
    font-size: 10px;
}


/* Touchbuttons */

.measurement-status-btn {
    min-height: 44px;

    padding: 0 10px;

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


/* Messwertkarten */

.measurement-value-card {
    min-height: 135px;

    padding: 15px;
}

.measurement-value-title {
    margin-bottom: 13px;
}

.measurement-value-title span {
    font-size: 12px;
}

.measurement-value-title small {
    font-size: 9px;
}


/* Zahlenwerte bewusst groß */

.measurement-number-field input {
    height: 52px;

    font-size: 21px;
}

.measurement-number-field > span {
    min-width: 32px;

    font-size: 13px;
}

.measurement-text-field {
    height: 52px;

    font-size: 13px;
}

.measurement-target {
    margin-top: 8px;

    font-size: 9px;
}


/* Bemerkungen */

.measurement-note {
    margin-top: 10px;
}

.measurement-note summary {
    font-size: 10px;
}

.measurement-note textarea {
    min-height: 72px;

    padding: 10px;

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


/* Readonly Hinweis */

.measurement-readonly-note {
    font-size: 11px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1180px) {

    .measurement-workspace-head h2 {
        font-size: 28px;
    }

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

    .measurement-status-row {
        grid-template-columns:
            minmax(165px, .65fr)
            minmax(0, 1.5fr);
    }

    .measurement-status-btn {
        min-height: 48px;

        font-size: 11px;
    }

    .measurement-status-copy strong {
        font-size: 14px;
    }

    .measurement-number-field input {
        height: 56px;

        font-size: 23px;
    }

    .measurement-text-field {
        height: 56px;

        font-size: 14px;
    }
}


/* ============================================================
   KLEINES TABLET / MOBILE
   ============================================================ */

@media (max-width: 760px) {

    .measurement-workspace-head h2 {
        font-size: 25px;
    }

    .measurement-workspace-head p {
        font-size: 13px;
    }

    .measurement-panel-head h3 {
        font-size: 17px;
    }

    .measurement-panel-head p {
        font-size: 11px;
    }

    .measurement-status-row {
        grid-template-columns: 1fr;
    }

    .measurement-status-actions {
        grid-template-columns:
            1fr 1fr;
    }

    .measurement-status-btn {
        min-height: 50px;

        font-size: 11px;
    }

    .measurement-value-grid {
        grid-template-columns: 1fr;
    }

    .measurement-value-title span {
        font-size: 13px;
    }

    .measurement-number-field input {
        height: 58px;

        font-size: 24px;
    }

}



/* ============================================================
   ANLAGENPRÜFUNG · STRUKTURIERTE FUNKTIONSPRÜFUNGEN
   ============================================================ */

.measurement-procedure-stack {
    display: grid;
    gap: 14px;
    margin-top: 2px;
}

.measurement-procedure-list {
    display: grid;
}

.measurement-procedure-card {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(160px, 210px);
    gap: 16px;
    align-items: center;

    min-height: 88px;
    padding: 15px 17px;

    border-bottom: 1px solid #eeeae5;
    background: #fff;
}

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

.measurement-procedure-card.state-ok {
    background: #fbfefc;
}

.measurement-procedure-card.state-issue {
    background: #fff8f7;
}

.measurement-procedure-card.state-progress {
    background: #fffdf8;
}

.measurement-procedure-kicker {
    margin-bottom: 4px;

    color: #d93631;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
}

.measurement-procedure-copy h4 {
    margin: 0;

    color: #292e32;
    font-size: 14px;
    line-height: 1.25;
}

.measurement-procedure-copy p {
    margin: 5px 0 0;

    color: #858b8f;
    font-size: 11px;
    line-height: 1.4;
}

.measurement-procedure-progress {
    min-width: 64px;
    text-align: center;
}

.measurement-procedure-progress strong {
    display: block;

    color: #303539;
    font-size: 17px;
}

.measurement-procedure-progress span {
    display: block;
    margin-top: 2px;

    color: #8b9094;
    font-size: 9px;
}

.measurement-procedure-open {
    min-height: 48px;
    padding: 0 14px;

    border: 0;
    border-radius: 10px;

    color: #fff;
    background: #292d30;

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

    cursor: pointer;
}

.measurement-procedure-open:hover:not(:disabled) {
    background: #d93631;
}

.measurement-procedure-open span {
    margin-left: 8px;
}

.measurement-procedure-open:disabled {
    opacity: .55;
    cursor: default;
}

.measurement-procedure-warning,
.measurement-procedure-ready {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 7px;

    border-radius: 7px;

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

.measurement-procedure-warning {
    color: #8d5a17;
    background: #fff2d9;
}

.measurement-procedure-ready {
    color: #26784f;
    background: #eaf6ef;
}


@media (max-width: 900px) {

    .measurement-procedure-card {
        grid-template-columns:
            minmax(0,1fr)
            auto;
    }

    .measurement-procedure-open {
        grid-column: 1 / -1;

        min-height: 52px;
        width: 100%;
    }
}



/* ==========================================================
   ALARMIERUNGSBEREICHE · EINHEITLICHES ANLAGENPRÜFUNGS-DESIGN
   ========================================================== */

/*
|--------------------------------------------------------------------------
| Alarmgeber gehören optisch zur normalen Anlagenprüfung.
| Keine zusätzliche "Karte in der Karte".
|--------------------------------------------------------------------------
*/

.alarm-area-stack {
    margin: 0;
    padding: 0;
}


/*
|--------------------------------------------------------------------------
| Einzelner Alarmierungsbereich
|--------------------------------------------------------------------------
*/

.alarm-area-card {
    margin: 0;

    border: 0;
    border-radius: 0;

    background: #fff;

    overflow: visible;
}

.alarm-area-card + .alarm-area-card {
    border-top: 1px solid #e7e3de;
}


/*
|--------------------------------------------------------------------------
| Bereichskopf – z.B. A01
|--------------------------------------------------------------------------
*/

.alarm-area-head {
    display: grid;

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

    gap: 18px;
    align-items: center;

    padding: 14px 20px;

    border-bottom:
        1px solid #ece8e3;

    background:
        linear-gradient(
            180deg,
            #fbfaf8 0%,
            #f8f6f3 100%
        );
}

.alarm-area-head > div:first-child {
    min-width: 0;
}

.alarm-area-head small {
    display: block;

    margin-bottom: 3px;

    color: var(--section-accent, #c7342f);

    font-size: 9px;
    line-height: 1.2;

    font-weight: 900;

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

.alarm-area-head h4 {
    margin: 0;

    color: #292e32;

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

    font-weight: 850;
    letter-spacing: -.015em;
}

.alarm-area-head p {
    margin: 4px 0 0;

    color: #858b8f;

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

    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Bereichszähler rechts
|--------------------------------------------------------------------------
*/

.alarm-area-total {
    min-width: 76px;

    padding-left: 16px;

    border-left:
        1px solid #dfdbd5;

    text-align: right;
}

.alarm-area-total strong {
    display: block;

    color: #2d3236;

    font-size: 18px;
    line-height: 1;

    font-weight: 900;
    letter-spacing: -.03em;
}

.alarm-area-total span {
    display: block;

    margin-top: 4px;

    color: #8a9094;

    font-size: 9px;
    line-height: 1.2;

    font-weight: 750;

    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Typenliste
|--------------------------------------------------------------------------
*/

.alarm-area-types {
    display: grid;
    gap: 0;

    background: #fff;
}


/*
|--------------------------------------------------------------------------
| Einzelner Signalgeber-Typ
|--------------------------------------------------------------------------
*/

.alarm-area-type {
    display: grid;

    grid-template-columns:
        minmax(230px, 1fr)
        auto
        minmax(130px, auto);

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

    align-items: center;

    min-height: 76px;

    padding: 14px 20px;

    border-bottom:
        1px solid #eeeae5;

    background: #fff;
}

.alarm-area-type:last-child {
    border-bottom: 0;
}

.alarm-area-type.is-complete {
    background:
        linear-gradient(
            90deg,
            rgba(41,151,100,.045),
            #fff 34%
        );
}


/*
|--------------------------------------------------------------------------
| Bezeichnung
|--------------------------------------------------------------------------
*/

.alarm-area-type-copy {
    display: block;
    min-width: 0;
}

.alarm-area-type-copy small {
    display: block;

    margin-bottom: 4px;

    color: var(--section-accent, #c7342f);

    font-size: 9px;
    line-height: 1.2;

    font-weight: 900;

    letter-spacing: .11em;
    text-transform: uppercase;

    opacity: 1;
}

.alarm-area-type-copy strong {
    display: block;

    color: #292e32;

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

    font-weight: 850;
}

.alarm-area-type-copy span {
    display: block;

    margin-top: 4px;

    color: #858b8f;

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

    font-weight: 650;

    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Mengensteuerung
|--------------------------------------------------------------------------
*/

.alarm-area-counter {
    display: flex;

    align-items: center;

    gap: 7px;
}

.alarm-area-counter form {
    margin: 0;
}

.alarm-count-button {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid #d9d4ce;

    border-radius: 10px;

    color: #343a3e;
    background: #fff;

    font-size: 21px;
    line-height: 1;

    font-weight: 500;

    cursor: pointer;

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

.alarm-count-button:hover:not(:disabled) {
    border-color:
        var(--section-accent, #c7342f);

    color:
        var(--section-accent, #c7342f);

    background:
        var(--section-soft, rgba(199,52,47,.055));
}

.alarm-count-button:disabled {
    opacity: .28;
    cursor: default;
}


/*
|--------------------------------------------------------------------------
| Ist / Soll
|--------------------------------------------------------------------------
*/

.alarm-count-value {
    min-width: 68px;

    text-align: center;
}

.alarm-count-value strong {
    display: block;

    color: #303539;

    font-size: 17px;
    line-height: 1.05;

    font-weight: 900;
}

.alarm-count-value span {
    display: block;

    margin-top: 3px;

    color: #8b9094;

    font-size: 9px;

    font-weight: 700;

    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Alle geprüft
|--------------------------------------------------------------------------
*/

.alarm-complete-button {
    min-height: 44px;

    padding: 0 15px;

    border: 0;
    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #23282c
        );

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

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.alarm-complete-button:hover:not(:disabled) {
    background:
        var(--section-accent, #c7342f);

    transform: translateY(-1px);
}

.alarm-complete-button:disabled {
    opacity: .45;
    cursor: default;
}

.alarm-area-done {
    min-width: 130px;

    color: #278159;

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

    text-align: right;
}


/*
|--------------------------------------------------------------------------
| Mängelerfassung – bewusst zweite Ebene
|--------------------------------------------------------------------------
*/

.alarm-defect-box {
    grid-column: 1 / -1;

    margin: 2px 0 0;

    padding-top: 10px;

    border-top:
        1px dashed #ddd8d2;
}

.alarm-defect-box summary {
    width: fit-content;

    color: #747b7f;

    font-size: 9px;
    line-height: 1.3;

    font-weight: 800;

    cursor: pointer;

    list-style: none;
}

.alarm-defect-box summary::-webkit-details-marker {
    display: none;
}

.alarm-defect-box summary:hover {
    color:
        var(--section-accent, #c7342f);
}

.alarm-defect-box form {
    display: grid;

    gap: 11px;

    margin-top: 12px;

    padding: 14px;

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

    background: #faf9f7;
}

.alarm-defect-box label {
    display: grid;

    gap: 6px;

    color: #555c60;

    font-size: 9px;

    font-weight: 800;
}

.alarm-defect-box input,
.alarm-defect-box select,
.alarm-defect-box textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    border:
        1px solid #d9d4ce;

    border-radius: 9px;

    color: #30363a;
    background: #fff;

    font: inherit;
    font-size: 11px;
}

.alarm-defect-button {
    min-height: 43px;

    border: 0;
    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #c7342f,
            #a92d29
        );

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

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .alarm-area-type {
        grid-template-columns:
            minmax(0, 1fr)
            auto;
    }

    .alarm-area-type > form:last-of-type,
    .alarm-area-done {
        grid-column: 1 / -1;
    }

    .alarm-complete-button,
    .alarm-area-done {
        width: 100%;
        text-align: center;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .alarm-area-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .alarm-area-total {
        min-width: 0;

        padding:
            10px 0 0;

        border-left: 0;

        border-top:
            1px solid #e5e1dc;

        text-align: left;
    }

    .alarm-area-type {
        grid-template-columns: 1fr;

        padding:
            15px 16px;
    }

    .alarm-area-counter {
        justify-content: flex-start;
    }

    .alarm-complete-button {
        width: 100%;
    }

}

/* ==========================================================
   Anlagenprüfung – Context / Sticky Navigation
   ========================================================== */

.measurement-workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;

    margin-bottom: 14px;
    padding: 24px 26px;

    border: 1px solid #e2dfda;
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8f6f3 100%
        );

    box-shadow:
        0 12px 32px rgba(25, 27, 29, .05);
}


.measurement-workspace-head h2 {
    margin-top: 5px;
    margin-bottom: 6px;
}


.measurement-workspace-head p {
    max-width: 720px;
    margin-bottom: 0;
}


.measurement-overview-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}


.measurement-overview-card {
    min-width: 142px;

    padding: 13px 15px;

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

    background:
        linear-gradient(
            145deg,
            #292d31,
            #202428
        );

    color: #fff;

    box-shadow:
        0 8px 20px rgba(25, 27, 29, .10);
}


.measurement-overview-card > span {
    display: block;

    margin-bottom: 5px;

    color: #b9c0c5;

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}


.measurement-overview-card > strong {
    display: block;

    font-size: 23px;
    line-height: 1.05;
    letter-spacing: -.03em;
}


.measurement-overview-card > small {
    display: block;

    margin-top: 6px;

    color: #cbd0d3;

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



/* Sticky Bereichsleiste */

.measurement-context-nav {
    position: sticky;
    top: var(--measurement-context-offset, 10px);
    z-index: 45;

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

    margin-bottom: 18px;
    padding: 9px 10px;

    border: 1px solid rgba(214, 210, 204, .92);
    border-radius: 15px;

    background:
        rgba(248, 246, 243, .94);

    box-shadow:
        0 10px 28px rgba(25, 27, 29, .08);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


.measurement-context-title {
    flex: 0 0 auto;

    padding: 0 7px;

    color: #888d91;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}


.measurement-context-links {
    display: flex;
    gap: 6px;

    min-width: 0;

    overflow-x: auto;
    scrollbar-width: none;
}


.measurement-context-links::-webkit-scrollbar {
    display: none;
}


.measurement-context-link {
    flex: 0 0 auto;

    padding: 8px 11px;

    border: 1px solid transparent;
    border-radius: 10px;

    color: #64696d;

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

    text-decoration: none;

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


.measurement-context-link:hover {
    border-color: #ddd9d3;
    background: #fff;
    color: #25292d;
}


.measurement-context-link.is-active {
    border-color: #25292d;
    background: #25292d;
    color: #fff;
}



/* Abschnitt bleibt beim Scrollen erkennbar */

.measurement-panel {
    scroll-margin-top:
        calc(
            var(--measurement-context-offset, 10px)
            + 76px
        );
}





@media (max-width: 980px) {

    .measurement-workspace-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .measurement-overview-grid {
        justify-content: flex-start;
    }

}


@media (max-width: 700px) {

    .measurement-workspace-head {
        padding: 19px;
        border-radius: 17px;
    }

    .measurement-overview-grid {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .measurement-overview-card {
        min-width: 0;
    }

    .measurement-context-title {
        display: none;
    }

}


/* ==========================================================
   ANLAGENPRÜFUNG – VISUELLE BEREICHSFÜHRUNG
   ========================================================== */

.measurement-panel {
    --section-accent: #c7342f;
    --section-soft: rgba(199, 52, 47, .055);
}

.measurement-panel > .measurement-panel-head {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    background:
        linear-gradient(
            100deg,
            var(--section-soft),
            rgba(255,255,255,.96) 38%,
            #fff 100%
        );
    border-bottom:
        1px solid rgba(34, 37, 40, .08);
}

.measurement-panel > .measurement-panel-head::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--section-accent);
}

.measurement-panel > .measurement-panel-head small {
    color: var(--section-accent);
}

.measurement-panel > .measurement-panel-head
.measurement-panel-icon {
    background: var(--section-soft);
    color: var(--section-accent);
    border:
        1px solid color-mix(
            in srgb,
            var(--section-accent) 15%,
            transparent
        );
}


/* Systemzustand */

.measurement-panel--system {
    --section-accent: #343a3f;
    --section-soft: rgba(52, 58, 63, .075);
}


/* Energie & Messwerte */

.measurement-panel--power {
    --section-accent: #a94a3f;
    --section-soft: rgba(169, 74, 63, .07);
}


/* klassische Alarm-Messwerte / ELA */

.measurement-panel--alarm {
    --section-accent: #c7342f;
    --section-soft: rgba(199, 52, 47, .07);
}


/* mengenbasierte Alarmgeber */

.measurement-panel--alarm_devices {
    --section-accent: #c7342f;
    --section-soft: rgba(199, 52, 47, .085);
}


/* Feuerwehrperipherie */

.measurement-panel--fsk,
.measurement-panel--fsd_sabotage {
    --section-accent: #24282c;
    --section-soft: rgba(36, 40, 44, .07);
}


/* Brandfallsteuerungen */

.measurement-panel--elevator_control {
    --section-accent: #8f4038;
    --section-soft: rgba(143, 64, 56, .07);
}


/* ==========================================================
   ANLAGENPRÜFUNG – STICKY ARCHITEKTUR FINAL
   ========================================================== */

.measurement-panel > .measurement-panel-head {
    position: relative;
    z-index: 1;
}



/* ============================================================
   REPORT · ALARMIERUNGSBEREICHE V1
   ============================================================ */

.report-alarm-area-section {
    margin-bottom: 22px;
}

.report-subsection-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 11px;
    padding: 0 2px;
}

.report-subsection-heading small {
    display: block;

    color: var(--report-accent);

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .14em;
}

.report-subsection-heading h3 {
    margin: 4px 0 0;

    color: #292e32;

    font-size: 15px;
    line-height: 1.2;

    letter-spacing: -.025em;
}

.report-subsection-heading > span {
    color: #7e8488;

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


.report-alarm-area-list {
    display: grid;
    gap: 10px;
}


.report-alarm-area {
    overflow: hidden;

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

    background: #fff;

    break-inside: avoid;
    page-break-inside: avoid;
}

.report-alarm-area.has-defect {
    border-color: #e6c8c5;
}

.report-alarm-area.is-complete:not(.has-defect) {
    border-color: #d3e5da;
}


.report-alarm-area-head {
    display: grid;

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

    gap: 16px;
    align-items: center;

    padding: 13px 15px;

    border-bottom: 1px solid #ebe7e2;

    background:
        linear-gradient(
            180deg,
            #fbfaf8,
            #f8f6f3
        );
}

.report-alarm-area-head > div:first-child {
    min-width: 0;
}

.report-alarm-area-head small {
    display: block;

    margin-bottom: 4px;

    color: var(--report-accent);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: .12em;
}

.report-alarm-area-head strong {
    display: block;

    color: #292e32;

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

.report-alarm-area-head span {
    display: block;

    margin-top: 4px;

    color: #81878b;

    font-size: 8px;
}


.report-alarm-area-total {
    min-width: 72px;

    padding-left: 14px;

    border-left: 1px solid #ded9d3;

    text-align: right;
}

.report-alarm-area-total strong {
    display: block;

    color: #303539;

    font-size: 16px;
    line-height: 1;

    letter-spacing: -.035em;
}

.report-alarm-area-total span {
    display: block;

    margin-top: 4px;

    color: #8b9094;

    font-size: 7px;
}


.report-alarm-type-list {
    display: grid;
}


.report-alarm-type {
    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        72px
        72px
        72px
        135px;

    gap: 10px;
    align-items: center;

    min-height: 58px;

    padding: 10px 14px;

    border-bottom: 1px solid #eeeae5;
}

.report-alarm-type:last-child {
    border-bottom: 0;
}

.report-alarm-type.is-complete {
    background:
        linear-gradient(
            90deg,
            rgba(37,134,92,.035),
            transparent 34%
        );
}


.report-alarm-type-main {
    min-width: 0;
}

.report-alarm-type-main > small {
    display: block;

    color: var(--report-accent);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: .1em;
}

.report-alarm-type-main > strong {
    display: block;

    margin-top: 3px;

    color: #303539;

    font-size: 10px;
}

.report-alarm-defect-note {
    display: inline-flex;

    margin-top: 4px;

    color: #a0332f;

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


.report-alarm-value {
    text-align: center;
}

.report-alarm-value span {
    display: block;

    color: #8a9094;

    font-size: 6px;
    font-weight: 900;

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

.report-alarm-value strong {
    display: block;

    margin-top: 4px;

    color: #303539;

    font-size: 11px;
}

.report-alarm-value strong.attention {
    color: #a0332f;
}


.report-alarm-status {
    justify-self: end;

    padding: 6px 8px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 900;

    white-space: nowrap;
}

.report-alarm-status.complete {
    color: #25865c;
    background: #e9f5ee;
}

.report-alarm-status.open {
    color: #94601c;
    background: #fff1df;
}


@media (max-width: 900px) {

    .report-subsection-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .report-alarm-type {
        grid-template-columns:
            minmax(0, 1fr)
            repeat(3, 65px);
    }

    .report-alarm-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

}


@media (max-width: 620px) {

    .report-alarm-area-head {
        grid-template-columns: 1fr;
    }

    .report-alarm-area-total {
        min-width: 0;

        padding:
            9px 0 0;

        border-left: 0;
        border-top: 1px solid #e4dfda;

        text-align: left;
    }

    .report-alarm-type {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .report-alarm-type-main {
        grid-column: 1 / -1;
    }

    .report-alarm-status {
        grid-column: 1 / -1;
    }

}



/* ============================================================
   REPORT · ALARM MANGELVERKNÜPFUNG V1
   ============================================================ */

.report-alarm-defect-links {
    margin-top: 7px;
}

.report-alarm-defect-links > span {
    display: block;

    margin-bottom: 5px;

    color: #8b6260;

    font-size: 6px;
    font-weight: 900;

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

.report-alarm-defect-links > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.report-alarm-defect-links a {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 4px 6px;

    border: 1px solid #eccdca;
    border-radius: 6px;

    color: #8e302d;
    background: #fff8f7;

    text-decoration: none;

    font-size: 6px;
}

.report-alarm-defect-links a:hover {
    border-color: #c7342f;
    background: #fff2f1;
}

.report-alarm-defect-links b {
    font-size: 6px;
    white-space: nowrap;
}

.report-alarm-defect-links small {
    display: block;

    max-width: 150px;

    overflow: hidden;

    color: #795d5b;

    font-size: 6px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.report-defect {
    scroll-margin-top: 90px;
}

.report-defect:target {
    border-color: var(--report-accent);

    box-shadow:
        0 0 0 2px
        color-mix(
            in srgb,
            var(--report-accent) 15%,
            transparent
        );
}

.report-defect-location {
    color: #596166 !important;
    font-weight: 750;
}


@media print {

    .report-alarm-defect-links a {
        color: #633b38;
        background: transparent;
    }

    .report-defect:target {
        box-shadow: none;
    }

}



/* ============================================================
   WARTUNG · REPORTZUGANG V1
   ============================================================ */

.maintenance-readonly-banner {
    display: grid;

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

    align-items: center;

    gap: 16px;
}


.maintenance-readonly-report {
    display: inline-flex;

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

    gap: 9px;

    min-height: 42px;

    padding: 0 16px;

    border: 1px solid
        rgba(37,134,92,.25);

    border-radius: 10px;

    color: #176d47;
    background: #fff;

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

    text-decoration: none;

    white-space: nowrap;

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}


.maintenance-readonly-report:hover {
    transform: translateY(-1px);

    border-color:
        rgba(37,134,92,.55);

    box-shadow:
        0 8px 22px
        rgba(37,134,92,.10);
}


.maintenance-readonly-report span {
    font-size: 16px;
    line-height: 1;
}


.maintenance-report-tile {
    position: relative;

    overflow: hidden;
}


.maintenance-report-tile::after {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    right: -65px;
    bottom: -75px;

    border: 1px solid
        rgba(37,134,92,.12);

    border-radius: 50%;

    pointer-events: none;
}


.maintenance-report-tile-value {
    margin-top: 22px;
}


.maintenance-report-tile-value strong {
    display: block;

    color: #202426;

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


.maintenance-report-tile-value span {
    display: block;

    margin-top: 5px;

    color: #878d90;

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

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


@media (max-width: 760px) {

    .maintenance-readonly-banner {
        grid-template-columns:
            auto
            minmax(0,1fr);
    }


    .maintenance-readonly-report {
        grid-column: 1 / -1;

        width: 100%;
    }

}



/* ============================================================
   MAMO BMA · UI / REPORT VEREDLUNG V1
   ============================================================ */


/* ------------------------------------------------------------
   Wartungsübersicht: mehr Abstand nach Abschlussbanner
   ------------------------------------------------------------ */

.maintenance-readonly-banner {
    margin-bottom: 30px;
}


/* ------------------------------------------------------------
   Systemweite Hauptbereichs-Headlines
   ------------------------------------------------------------ */

.inspection-workspace-head,
.measurement-workspace-head,
.maintenance-check-heading,
.visit-requirements-head {
    padding: 17px 20px;

    border: 1px solid
        rgba(255,255,255,.05);

    border-radius: 15px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #252a2e 0%,
            #1d2226 100%
        );

    box-shadow:
        0 12px 30px
        rgba(20,24,27,.09);
}


.inspection-workspace-head h2,
.measurement-workspace-head h2,
.maintenance-check-heading h2,
.visit-requirements-head h2 {
    color: #fff;
}


.inspection-workspace-head p,
.measurement-workspace-head p,
.maintenance-check-heading p,
.visit-requirements-head p {
    color: #c7cdd0;
}


.inspection-workspace-kicker,
.measurement-workspace-head
.inspection-workspace-kicker,
.visit-requirements-kicker {
    color: #ff6258;
}


/* ------------------------------------------------------------
   Bericht: Hauptkapitel anthrazit
   ------------------------------------------------------------ */

.maintenance-report
.report-section-heading {
    margin-bottom: 20px;

    padding: 14px 17px;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #252a2e 0%,
            #1c2125 100%
        );
}


.maintenance-report
.report-section-heading h2 {
    margin-top: 4px;

    color: #fff;
}


.maintenance-report
.report-section-heading small {
    color: #ff6258;
}


.maintenance-report
.report-section-heading > span {
    color: #d1d6d8;
}


/* ------------------------------------------------------------
   Report Unterüberschrift
   ------------------------------------------------------------ */

.report-subsection-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin: 22px 0 10px;

    padding-bottom: 8px;

    border-bottom: 1px solid #e2ded8;
}


.report-subsection-head small {
    display: block;

    color: var(--report-accent);

    font-size: 6px;
    font-weight: 900;

    letter-spacing: .12em;
}


.report-subsection-head strong {
    display: block;

    margin-top: 4px;

    color: #25292c;

    font-size: 13px;
}


.report-subsection-head > span {
    color: #7b8286;

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


/* ------------------------------------------------------------
   Meldergruppen
   ------------------------------------------------------------ */

.report-detector-section {
    margin-top: 4px;
}


.report-detector-group {
    overflow: hidden;

    margin-bottom: 14px;

    border: 1px solid #dcd8d3;
    border-radius: 13px;

    background: #fff;

    break-inside: avoid;
}


.report-detector-group-head {
    display: flex;

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

    gap: 18px;

    padding: 12px 14px;

    color: #fff;

    background: #2a2f33;
}


.report-detector-group-head small {
    display: block;

    color: #ff756c;

    font-size: 6px;
    font-weight: 900;

    letter-spacing: .12em;
}


.report-detector-group-head strong {
    display: block;

    margin-top: 4px;

    color: #fff;

    font-size: 11px;
}


.report-detector-group-head span {
    display: block;

    margin-top: 3px;

    color: #cbd0d3;

    font-size: 7px;
}


.report-detector-group-stat {
    min-width: 80px;

    text-align: right;
}


.report-detector-group-stat strong {
    font-size: 14px;
}


.report-detector-group-stat b {
    display: block;

    margin-top: 4px;

    color: #ff8b83;

    font-size: 7px;
}


.report-detector-grid {
    display: grid;

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

    gap: 8px;

    padding: 10px;
}


.report-detector-card {
    min-height: 92px;

    padding: 10px;

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

    background: #faf9f7;

    break-inside: avoid;
}


.report-detector-card.result-defect {
    border-color: #e9bbb6;
    background: #fff6f5;
}


.report-detector-card.result-ok,
.report-detector-card.result-fulfilled {
    border-color: #cfe2d7;
    background: #f7fbf9;
}


.report-detector-card-top {
    display: flex;

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

    gap: 8px;
}


.report-detector-card-top strong {
    color: #25282a;

    font-size: 10px;
}


.report-detector-card-top span {
    padding: 3px 6px;

    border-radius: 999px;

    color: #60676b;
    background: #eceae7;

    font-size: 6px;
    font-weight: 900;

    white-space: nowrap;
}


.report-detector-card.result-ok
.report-detector-card-top span,
.report-detector-card.result-fulfilled
.report-detector-card-top span {
    color: #237950;
    background: #e7f4ed;
}


.report-detector-card.result-defect
.report-detector-card-top span {
    color: #9d342f;
    background: #fae7e5;
}


.report-detector-type {
    margin-top: 9px;

    color: #303538;

    font-size: 8px;
    font-weight: 850;
}


.report-detector-location {
    margin-top: 4px;

    color: #747c80;

    font-size: 7px;
}


.report-detector-frequency {
    margin-top: 7px;

    color: #92979a;

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


.report-detector-defects {
    display: flex;
    flex-wrap: wrap;

    gap: 4px;

    margin-top: 7px;
}


.report-detector-defects a {
    padding: 3px 5px;

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

    color: #9b312c;
    background: #fff;

    font-size: 6px;
    font-weight: 900;

    text-decoration: none;
}


/* ------------------------------------------------------------
   Jahrespflicht erfüllt
   ------------------------------------------------------------ */

.report-result.result-fulfilled {
    color: #25865c;
    background: #e9f5ee;
}


/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */

@media print {

    .report-detector-group,
    .report-detector-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-section-heading {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .report-detector-group-head {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

}


@media (max-width: 900px) {

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

}


@media (max-width: 620px) {

    .report-detector-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   REPORT · MELDERMATRIX V2 · KOMPAKT
   Gruppe links / Melder rechts
   ============================================================ */

.report-detector-group {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);

    margin-bottom: 10px;

    border-radius: 10px;

    break-inside: avoid;
}


/* Gruppe links */

.report-detector-group-head {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 0;

    padding: 11px 12px;

    border-radius: 0;

    background: #292e32;
}


.report-detector-group-head > div:first-child {
    width: 100%;
}


.report-detector-group-head small {
    font-size: 5.5px;
}


.report-detector-group-head strong {
    margin-top: 5px;

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


.report-detector-group-head span {
    margin-top: 5px;

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


.report-detector-group-stat {
    min-width: 0;

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

    text-align: left;
}


.report-detector-group-stat strong {
    font-size: 11px;
}


.report-detector-group-stat span {
    display: inline;

    margin-left: 3px;

    font-size: 6px;
}


.report-detector-group-stat b {
    margin-top: 4px;

    font-size: 6px;
}


/* ------------------------------------------------------------
   Melder rechts
   8 Spalten × 4 Reihen = 32 Melder kompakt
   ------------------------------------------------------------ */

.report-detector-grid {
    display: grid;

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

    align-content: start;

    gap: 5px;

    padding: 8px;
}


/* Einzelmelder */

.report-detector-card {
    min-width: 0;
    min-height: 45px;

    padding: 6px;

    border-radius: 6px;
}


.report-detector-card-top {
    display: flex;

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

    gap: 4px;
}


.report-detector-card-top strong {
    overflow: hidden;

    font-size: 7px;
    line-height: 1;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Status nicht mehr als langer Text,
   sondern als kleiner Statuspunkt */

.report-detector-card-top span {
    flex: 0 0 auto;

    width: 7px;
    height: 7px;

    padding: 0;

    border-radius: 50%;

    font-size: 0;

    background: #b3b6b8;
}


/* geprüft / erfüllt */

.report-detector-card.result-ok
.report-detector-card-top span,

.report-detector-card.result-fulfilled
.report-detector-card-top span {
    background: #25865c;
}


/* Mangel */

.report-detector-card.result-defect
.report-detector-card-top span {
    background: #c7342f;
}


/* offen */

.report-detector-card.result-not_tested
.report-detector-card-top span {
    background: #d69b35;
}


/* Typ bleibt als kurze zweite Zeile */

.report-detector-type {
    overflow: hidden;

    margin-top: 5px;

    font-size: 5.5px;
    line-height: 1.1;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Für die Übersicht nicht erforderlich */

.report-detector-location,
.report-detector-frequency {
    display: none;
}


/* Mangelhinweis klein halten */

.report-detector-defects {
    gap: 2px;

    margin-top: 4px;
}


.report-detector-defects a {
    padding: 2px 4px;

    border-radius: 4px;

    font-size: 5px;
}


/* ------------------------------------------------------------
   Abstand Abschlussstatus → Arbeitsbereiche
   bisheriger Margin allein reicht im Layout nicht zuverlässig
   ------------------------------------------------------------ */

.maintenance-readonly-banner ~ .inspection-workspace {
    margin-top: 32px;
}


/* ------------------------------------------------------------
   Druck
   ------------------------------------------------------------ */

@media print {

    .report-detector-group {
        grid-template-columns:
            135px
            minmax(0, 1fr);

        break-inside: avoid;
        page-break-inside: avoid;
    }


    .report-detector-grid {
        grid-template-columns:
            repeat(8, minmax(0, 1fr));

        gap: 3px;

        padding: 6px;
    }


    .report-detector-card {
        min-height: 36px;

        padding: 4px;
    }

}


/* Bildschirm kleiner */

@media (max-width: 900px) {

    .report-detector-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .report-detector-group {
        grid-template-columns: 1fr;
    }


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

}



/* ============================================================
   REPORT · MELDERMATRIX V3 · NUMMER ONLY
   ============================================================ */

.report-detector-group {
    grid-template-columns:
        145px
        minmax(0, 1fr);

    margin-bottom: 7px;
}


/* 16 Melder pro Reihe */

.report-detector-grid {
    grid-template-columns:
        repeat(16, minmax(0, 1fr));

    gap: 4px;

    padding: 7px;
}


/* Melder extrem kompakt */

.report-detector-card {
    position: relative;

    display: flex;

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

    min-width: 0;
    min-height: 30px;

    padding: 4px;

    border-radius: 5px;
}


/* nur Meldernummer */

.report-detector-card-top {
    display: block;

    width: 100%;

    text-align: center;
}


.report-detector-card-top strong {
    display: block;

    overflow: hidden;

    color: #25292c;

    font-size: 7px;
    font-weight: 900;

    line-height: 1;

    text-align: center;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* kleiner Statuspunkt oben rechts */

.report-detector-card-top span {
    position: absolute;

    top: 3px;
    right: 3px;

    width: 5px;
    height: 5px;

    padding: 0;

    border-radius: 50%;

    font-size: 0;
}


/* alle Zusatzinfos ausblenden */

.report-detector-type,
.report-detector-location,
.report-detector-frequency,
.report-detector-defects {
    display: none !important;
}


/* Statusflächen */

.report-detector-card.result-ok,
.report-detector-card.result-fulfilled {
    border-color: #bcd9c8;

    background: #eef8f2;
}


.report-detector-card.result-defect {
    border-color: #e2aaa5;

    background: #fff0ef;
}


.report-detector-card.result-not_tested {
    border-color: #e2c68d;

    background: #fff8e9;
}


.report-detector-card.result-not_applicable {
    border-color: #ddd;

    background: #f3f3f2;
}


/* Print ebenfalls 16 */

@media print {

    .report-detector-grid {
        grid-template-columns:
            repeat(16, minmax(0, 1fr));

        gap: 3px;

        padding: 5px;
    }


    .report-detector-card {
        min-height: 25px;

        padding: 3px;
    }


    .report-detector-card-top strong {
        font-size: 6px;
    }

}


/* Responsive */

@media (max-width: 1100px) {

    .report-detector-grid {
        grid-template-columns:
            repeat(12, minmax(0, 1fr));
    }

}


@media (max-width: 760px) {

    .report-detector-grid {
        grid-template-columns:
            repeat(8, minmax(0, 1fr));
    }

}



/* ============================================================
   WARTUNG · TABLET SIGNATURE V1
   ============================================================ */

.maintenance-signature-workspace {
    margin: 26px 0;

    padding: 20px;

    border: 1px solid #ddd8d2;
    border-radius: 16px;

    background: #fff;
}


.maintenance-signature-head {
    display: flex;

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

    gap: 20px;

    margin-bottom: 18px;

    padding: 15px 18px;

    border-radius: 12px;

    color: #fff;
    background: #292e32;
}


.maintenance-signature-head > div:first-child > span {
    color: #ff756c;

    font-size: 8px;
    font-weight: 900;

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


.maintenance-signature-head h2 {
    margin: 4px 0;

    color: #fff;

    font-size: 21px;
}


.maintenance-signature-head p {
    margin: 0;

    color: #c8ced1;

    font-size: 10px;
}


.maintenance-signature-summary {
    display: flex;
    gap: 8px;
}


.maintenance-signature-summary > div {
    min-width: 72px;

    padding: 7px 10px;

    border-radius: 9px;

    background: rgba(255,255,255,.08);

    text-align: center;
}


.maintenance-signature-summary strong,
.maintenance-signature-summary span {
    display: block;
}


.maintenance-signature-summary strong {
    font-size: 15px;
}


.maintenance-signature-summary span {
    margin-top: 2px;

    color: #bdc4c7;

    font-size: 7px;
}


.maintenance-signature-summary .done strong {
    color: #70d09e;
}


.maintenance-signature-grid {
    display: grid;

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

    gap: 14px;
}


.maintenance-signature-card {
    padding: 16px;

    border: 1px solid #e0dcd7;
    border-radius: 13px;

    background: #faf9f7;
}


.maintenance-signature-card-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}


.maintenance-signature-card-head small {
    color: #c7342f;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .1em;
}


.maintenance-signature-card-head h3 {
    margin: 4px 0 0;

    font-size: 14px;
}


.maintenance-signature-state {
    padding: 4px 7px;

    border-radius: 999px;

    color: #8d6c2c;
    background: #fff1d7;

    font-size: 7px;
    font-weight: 900;
}


.maintenance-signature-state.done {
    color: #24744f;
    background: #e5f3eb;
}


.maintenance-signature-fields {
    display: grid;

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

    gap: 8px;
}


.maintenance-signature-fields.three {
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}


.maintenance-signature-fields label > span,
.maintenance-signature-reason > span {
    display: block;

    margin-bottom: 5px;

    color: #7e8488;

    font-size: 7px;
    font-weight: 850;

    text-transform: uppercase;
}


.maintenance-signature-fields input,
.maintenance-signature-reason textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

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

    color: #292d30;
    background: #fff;

    font: inherit;
    font-size: 10px;
}


.maintenance-signature-ack {
    margin-top: 11px;

    padding: 9px 10px;

    border-left: 3px solid #c7342f;

    color: #676e72;
    background: #fff;

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


.maintenance-signature-pad {
    position: relative;

    margin-top: 11px;

    overflow: hidden;

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

    background: #fff;
}


.maintenance-signature-pad canvas {
    display: block;

    width: 100%;
    height: 170px;

    touch-action: none;

    cursor: crosshair;
}


.maintenance-signature-pad > span {
    position: absolute;

    left: 10px;
    bottom: 7px;

    color: #aaa5a0;

    font-size: 7px;

    pointer-events: none;
}


.maintenance-signature-reason {
    display: block;

    margin-top: 11px;
}


.maintenance-signature-actions {
    display: flex;

    justify-content: flex-end;

    gap: 7px;

    margin-top: 11px;
}


.maintenance-signature-actions.customer {
    flex-wrap: wrap;
}


.maintenance-signature-actions button {
    min-height: 36px;

    padding: 0 11px;

    border-radius: 8px;

    font: inherit;
    font-size: 8px;
    font-weight: 850;

    cursor: pointer;
}


.maintenance-signature-clear {
    border: 1px solid #d7d3ce;

    color: #666c70;
    background: #fff;
}


.maintenance-signature-save {
    border: 1px solid #252a2e;

    color: #fff;
    background: #252a2e;
}


.maintenance-signature-exception {
    border: 1px solid #e3b6b2;

    color: #9b342f;
    background: #fff6f5;
}


.maintenance-signature-readonly {
    padding: 14px;

    border-radius: 9px;

    color: #267451;
    background: #edf7f2;
}


.maintenance-signature-readonly strong,
.maintenance-signature-readonly span {
    display: block;
}


.maintenance-signature-readonly span {
    margin-top: 4px;

    font-size: 8px;
}


@media (max-width: 900px) {

    .maintenance-signature-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .maintenance-signature-head {
        align-items: flex-start;
        flex-direction: column;
    }


    .maintenance-signature-fields,
    .maintenance-signature-fields.three {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   WARTUNG · GESPEICHERTE SIGNATUR V1
   ============================================================ */

.maintenance-signature-preview {
    display: flex;

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

    min-height: 150px;

    margin-bottom: 12px;

    padding: 10px;

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

    background: #fff;
}


.maintenance-signature-preview img {
    display: block;

    width: 100%;
    max-width: 420px;
    max-height: 140px;

    object-fit: contain;
}



/* gespeicherte Signatur im aktiven Abschlussprozess */

.maintenance-signature-pad-saved {
    display: flex;

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

    min-height: 170px;
}


.maintenance-signature-pad-saved img {
    display: block;

    width: 100%;
    max-width: 440px;
    max-height: 145px;

    object-fit: contain;
}



/* ============================================================
   REPORT · ABNAHME & UNTERSCHRIFTEN V1
   ============================================================ */

.report-signature-grid {
    display: grid;

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

    gap: 12px;
}


.report-signature-card {
    overflow: hidden;

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

    background: #faf9f7;

    break-inside: avoid;
}


.report-signature-card-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    padding: 11px 13px;

    color: #fff;
    background: #292e32;
}


.report-signature-card-head small {
    display: block;

    color: #ff756c;

    font-size: 6px;
    font-weight: 900;

    letter-spacing: .1em;
}


.report-signature-card-head strong {
    display: block;

    margin-top: 4px;

    color: #fff;

    font-size: 9px;
}


.report-signature-card-head > span {
    color: #bfe4cf;

    font-size: 6px;
    font-weight: 850;

    white-space: nowrap;
}


.report-signature-image {
    display: flex;

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

    min-height: 125px;

    margin: 10px;

    padding: 8px;

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

    background: #fff;
}


.report-signature-image img {
    display: block;

    width: 100%;
    max-width: 350px;
    max-height: 105px;

    object-fit: contain;
}


.report-signature-person {
    padding: 0 13px 13px;
}


.report-signature-person strong,
.report-signature-person span,
.report-signature-person small {
    display: block;
}


.report-signature-person strong {
    font-size: 9px;
}


.report-signature-person span {
    margin-top: 3px;

    color: #71787c;

    font-size: 7px;
}


.report-signature-person small {
    margin-top: 5px;

    color: #92979a;

    font-size: 6px;
}


.report-signature-exception {
    margin: 10px;
    padding: 16px;

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

    color: #8e3530;
    background: #fff5f4;
}


.report-signature-exception strong,
.report-signature-exception span {
    display: block;
}


.report-signature-exception strong {
    font-size: 9px;
}


.report-signature-exception span {
    margin-top: 5px;

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


.report-signature-note {
    margin-top: 9px;

    color: #8a9093;

    font-size: 6px;
}


@media print {

    .report-signature-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

}


@media (max-width: 700px) {

    .report-signature-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   REPORT · PRINT / PDF V1
   ============================================================ */

.report-screen-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.report-print-button {
    min-height: 34px;
    padding: 0 12px;

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

    color: #292d30;
    background: #fff;

    font: inherit;
    font-size: 9px;
    font-weight: 850;

    cursor: pointer;
}


.report-print-button:hover {
    border-color: #b8b4af;
    background: #f7f5f2;
}


/* ============================================================
   A4
   ============================================================ */

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }


    html,
    body {
        margin: 0 !important;
        padding: 0 !important;

        background: #fff !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    /*
     * Bildschirm-Navigation vollständig entfernen
     */

    .mamo-sidebar,
    .report-screen-toolbar {
        display: none !important;
    }


    /*
     * App-Layout für Papier neutralisieren
     */

    .mamo-app,
    .mamo-app-main,
    .report-screen-shell {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    .maintenance-report {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }


    /*
     * Farben müssen auch im PDF erhalten bleiben
     */

    .report-section-heading,
    .report-detector-group-head,
    .report-signature-card-head,
    .report-cover,
    .report-final,
    .report-footer,
    .report-result,
    .report-defect,
    .report-check {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    /*
     * Deckblatt als eigene erste Seite
     */

    .report-cover {
        min-height: 255mm;

        box-sizing: border-box;

        break-after: page;
        page-break-after: always;
    }


    /*
     * Hauptabschnitte
     */

    .report-section {
        break-inside: auto;
        page-break-inside: auto;
    }


    .report-section-heading {
        break-after: avoid;
        page-break-after: avoid;
    }


    /*
     * Einzelne Karten nicht zerreißen
     */

    .report-detail-card,
    .report-summary-card,
    .report-check,
    .report-defect,
    .report-requirement,
    .report-signature-card,
    .report-detector-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    /*
     * Meldergruppe:
     * Gruppeninfo soll möglichst bei der Matrix bleiben.
     */

    .report-detector-group {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .report-detector-grid {
        grid-template-columns:
            repeat(16, minmax(0, 1fr)) !important;

        gap: 2.5px !important;
        padding: 5px !important;
    }


    .report-detector-card {
        min-height: 24px !important;
        padding: 3px !important;
    }


    .report-detector-card-top strong {
        font-size: 5.5px !important;
    }


    /*
     * Signaturen
     */

    .report-signature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }


    .report-signature-image {
        min-height: 32mm;
    }


    .report-signature-image img {
        max-height: 28mm;
    }


    /*
     * Abschlussbereich zusammenhalten
     */

    .report-final {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    .report-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }


    /*
     * Browser soll keine Links mit URL ergänzen
     */

    a[href]::after {
        content: none !important;
    }

}



/* ============================================================
   REPORT · PRINT / PDF V2
   Firefox / A4 Korrekturen
   ============================================================ */

@media print {

    @page {
        size: A4 portrait;
        margin: 10mm;
    }


    /*
     * Deckblatt:
     * Keine color-mix-/transparent-Gradients im Druck.
     * Firefox hat diese beim ersten Test schwarz gerendert.
     */

    .report-cover {
        min-height: 0 !important;
        height: auto !important;

        padding: 10mm !important;

        color: #25282a !important;
        background: #fff !important;

        break-after: page !important;
        page-break-after: always !important;
    }


    .report-cover::before,
    .report-cover::after {
        display: none !important;
        content: none !important;
    }


    .report-cover-main {
        margin-top: 20mm !important;
    }


    .report-cover-object {
        margin-top: 14mm !important;
    }


    .report-cover-meta {
        margin:
            10mm
            -10mm
            -10mm
            !important;

        background: #e5e1dc !important;
    }


    /*
     * Alle Texte des Covers sicher auf hellem Papier
     */

    .report-cover-main h1,
    .report-cover-object strong,
    .report-document-type strong {
        color: #25282a !important;
    }


    .report-cover-main p,
    .report-cover-object small,
    .report-document-type small,
    .report-cover-object span,
    .report-cover-meta span {
        color: #747a7f !important;
    }


    /*
     * Seiteninhalt etwas kontrollierter
     */

    .report-section {
        padding: 9mm 10mm !important;
    }


    /*
     * Diese Kapitel dürfen nicht mehr als verwaiste
     * Überschrift am Ende einer Seite stehen.
     */

    .report-section-technical,
    .report-section-requirements {
        break-before: page !important;
        page-break-before: always !important;
    }


    .report-section-heading {
        break-after: avoid-page !important;
        page-break-after: avoid !important;
    }


    /*
     * Überschrift plus direkt folgendes Element möglichst
     * zusammenhalten.
     */

    .report-section-heading + * {
        break-before: avoid-page !important;
        page-break-before: avoid !important;
    }


    /*
     * Anthrazit wirklich anthrazit drucken
     */

    .report-section-heading,
    .report-detector-group-head,
    .report-signature-card-head {
        background: #252a2e !important;

        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


    .report-section-heading h2,
    .report-detector-group-head strong,
    .report-signature-card-head strong {
        color: #fff !important;
    }


    /*
     * Keine Schatten / Rundungen, die beim PDF unnötig
     * Renderfläche erzeugen.
     */

    .maintenance-report {
        box-shadow: none !important;
    }


    /*
     * Der Abschluss soll kompakt beim letzten Inhalt bleiben.
     */

    .report-final,
    .report-footer {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

}



/* ============================================================
   REPORT · PRINT / PDF V3
   Dokumentationskapitel geschlossen halten
   ============================================================ */

@media print {

    .report-section-documentation {
        break-before: page !important;
        page-break-before: always !important;
    }

}



/* ============================================================
   MAMO BMA · MAINTENANCE CONTROL CENTER V2
   Operative Terminsteuerung
   ============================================================ */

.maintenance-index-kpis {
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
}


.maintenance-index-table tr.is-running td {
    background:
        rgba(57,120,182,.025);
}


.maintenance-index-table tr.is-running td:first-child {
    box-shadow:
        inset 3px 0 0 #3978b6;
}


.maintenance-index-table tr.is-overdue td {
    background:
        rgba(199,52,47,.025);
}


.maintenance-index-table tr.is-overdue td:first-child {
    box-shadow:
        inset 3px 0 0 #c7342f;
}


.maintenance-index-status.danger {
    color: #a92f2a;
    background: #fde8e6;
}


.maintenance-index-date {
    display: block;

    color: #25282a;

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


.maintenance-index-date-hint {
    display: block;

    margin-top: 4px;

    color: #3978b6 !important;

    font-size: 9px !important;
    font-weight: 850;
}


.maintenance-index-date-hint.danger {
    color: #b4332e !important;
}


@media (max-width: 1500px) {

    .maintenance-index-kpis {
        grid-template-columns:
            repeat(4, minmax(0,1fr));
    }

}


@media (max-width: 950px) {

    .maintenance-index-kpis {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}



/* ============================================================
   MAMO BMA · MAINTENANCE CALENDAR V1
   ============================================================ */

.maintenance-view-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
    padding: 12px 14px 12px 18px;

    border: 1px solid #ddd7d0;
    border-radius: 14px;

    background: #fff;
}


.maintenance-view-switch strong,
.maintenance-view-switch span {
    display: block;
}


.maintenance-view-switch strong {
    color: #25282a;

    font-size: 12px;
}


.maintenance-view-switch span {
    margin-top: 3px;

    color: #858a8e;

    font-size: 10px;
}


.maintenance-view-switch-actions {
    display: flex;

    gap: 7px;
}


.maintenance-view-switch-actions a {
    display: inline-flex;

    min-height: 38px;

    align-items: center;

    padding: 0 13px;

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

    color: #5f6569;
    background: #fff;

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

    text-decoration: none;
}


.maintenance-view-switch-actions a.active {
    border-color: #252a2e;

    color: #fff;
    background: #252a2e;
}


/* Kalender */

.maintenance-calendar-panel {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 14px 38px
        rgba(25,27,29,.05);
}


.maintenance-calendar-head {
    display: flex;

    min-height: 86px;

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

    gap: 20px;

    padding: 0 20px;

    border-bottom: 1px solid #e7e2dc;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fbfaf8
        );
}


.maintenance-calendar-head small {
    color: #d93631;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .15em;
}


.maintenance-calendar-head h2 {
    margin: 5px 0 0;

    color: #202326;

    font-size: 22px;
    letter-spacing: -.035em;
}


.maintenance-calendar-nav {
    display: flex;

    gap: 7px;
}


.maintenance-calendar-nav a {
    display: inline-flex;

    min-width: 38px;
    min-height: 38px;

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

    padding: 0 11px;

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

    color: #363a3d;
    background: #fff;

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

    text-decoration: none;
}


.maintenance-calendar-weekdays,
.maintenance-calendar-grid {
    display: grid;

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


.maintenance-calendar-weekdays {
    border-bottom: 1px solid #e8e3de;

    background: #faf8f5;
}


.maintenance-calendar-weekdays span {
    padding: 11px 10px;

    color: #7b8084;

    font-size: 8px;
    font-weight: 900;

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


.maintenance-calendar-day {
    min-height: 150px;

    padding: 9px;

    border-right: 1px solid #eee9e4;
    border-bottom: 1px solid #eee9e4;

    background: #fff;
}


.maintenance-calendar-day:nth-child(7n) {
    border-right: 0;
}


.maintenance-calendar-day.outside {
    background: #faf9f7;
}


.maintenance-calendar-day.outside > header,
.maintenance-calendar-day.outside .maintenance-calendar-event {
    opacity: .45;
}


.maintenance-calendar-day.today {
    background:
        rgba(217,54,49,.025);

    box-shadow:
        inset 0 3px 0 #d93631;
}


.maintenance-calendar-day > header {
    display: flex;

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

    margin-bottom: 7px;
}


.maintenance-calendar-day > header > span {
    display: inline-flex;

    width: 27px;
    height: 27px;

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

    border-radius: 50%;

    color: #3e4347;

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


.maintenance-calendar-day.today > header > span {
    color: #fff;
    background: #d93631;
}


.maintenance-calendar-day > header > small {
    display: inline-flex;

    min-width: 20px;
    height: 20px;

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

    border-radius: 999px;

    color: #666c70;
    background: #efedeb;

    font-size: 8px;
    font-weight: 900;
}


.maintenance-calendar-events {
    display: grid;

    gap: 5px;
}


.maintenance-calendar-event {
    display: block;

    padding: 7px 8px;

    border-left: 3px solid #b7b5b1;
    border-radius: 7px;

    color: #34383b;
    background: #f5f4f2;

    text-decoration: none;
}


.maintenance-calendar-event strong,
.maintenance-calendar-event span,
.maintenance-calendar-event small {
    display: block;
}


.maintenance-calendar-event strong {
    overflow: hidden;

    font-size: 8px;
    font-weight: 900;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.maintenance-calendar-event span {
    overflow: hidden;

    margin-top: 3px;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.maintenance-calendar-event small {
    margin-top: 2px;

    color: #858a8e;

    font-size: 7px;
}


.maintenance-calendar-event.in_progress {
    border-left-color: #3978b6;

    background: #eef6fc;
}


.maintenance-calendar-event.completed {
    border-left-color: #25865c;

    background: #eef8f2;
}


.maintenance-calendar-event.planned {
    border-left-color: #cc7a1f;

    background: #fff7eb;
}


.maintenance-calendar-event.overdue {
    border-left-color: #c7342f;

    background: #fff0ef;
}


.maintenance-calendar-event.cancelled {
    border-left-color: #92989c;

    background: #f1f2f2;
}


@media (max-width: 1100px) {

    .maintenance-calendar-panel {
        overflow-x: auto;
    }


    .maintenance-calendar-weekdays,
    .maintenance-calendar-grid {
        min-width: 1050px;
    }

}


@media (max-width: 700px) {

    .maintenance-view-switch {
        align-items: stretch;
        flex-direction: column;
    }


    .maintenance-view-switch-actions a {
        flex: 1;
        justify-content: center;
    }

}



/* ============================================================
   MAMO PLATFORM · TENANT PROVISIONING V1
   ============================================================ */

.platform-provision-shell {
    max-width: 1480px;
    margin: 0 auto;
    padding: 34px 38px 70px;
}


.platform-provision-head {
    margin-bottom: 24px;
}


.platform-provision-kicker {
    margin-bottom: 8px;

    color: #d93631;

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

    letter-spacing: .18em;
}


.platform-provision-head h1 {
    margin: 0;

    color: #191b1d;

    font-size: clamp(34px, 3vw, 50px);
    line-height: 1;

    letter-spacing: -.05em;
}


.platform-provision-head p {
    max-width: 760px;

    margin: 12px 0 0;

    color: #747a7f;

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


.platform-provision-error,
.platform-success-banner {
    margin-bottom: 18px;
    padding: 14px 17px;

    border-radius: 12px;
}


.platform-provision-error {
    border: 1px solid #edc5c2;

    color: #8e312d;
    background: #fff3f2;
}


.platform-provision-error strong {
    display: block;

    margin-bottom: 7px;
}


.platform-provision-error ul {
    margin: 0;
    padding-left: 18px;
}


.platform-success-banner {
    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid #bcdcca;

    color: #276f4e;
    background: #edf8f1;
}


.platform-success-banner strong {
    font-size: 11px;
}


.platform-success-banner span {
    font-size: 11px;
}


.platform-provision-form {
    display: grid;

    gap: 18px;
}


.platform-provision-card {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 12px 34px
        rgba(25,27,29,.045);
}


.platform-provision-card > header {
    display: flex;

    min-height: 74px;

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

    gap: 20px;

    padding: 0 20px;

    color: #fff;
    background: #292e32;
}


.platform-provision-card > header small {
    display: block;

    color: #ff756c;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .14em;
}


.platform-provision-card > header h2 {
    margin: 5px 0 0;

    color: #fff;

    font-size: 18px;
}


.platform-provision-card > header > span {
    color: #bdc4c7;

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


.platform-provision-grid {
    display: grid;

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

    gap: 13px;

    padding: 20px;
}


.platform-provision-grid.license {
    border-top: 1px solid #ece7e1;
}


.platform-provision-grid label {
    min-width: 0;
}


.platform-provision-grid label.wide {
    grid-column: span 2;
}


.platform-provision-grid label > span {
    display: block;

    margin-bottom: 6px;

    color: #72787c;

    font-size: 8px;
    font-weight: 900;

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


.platform-provision-grid input,
.platform-provision-grid select,
.platform-provision-grid textarea {
    width: 100%;

    box-sizing: border-box;

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

    color: #25282a;
    background: #fff;

    font: inherit;
}


.platform-provision-grid input,
.platform-provision-grid select {
    height: 43px;

    padding: 0 12px;
}


.platform-provision-grid textarea {
    padding: 11px 12px;

    resize: vertical;
}


.platform-provision-grid input:focus,
.platform-provision-grid select:focus,
.platform-provision-grid textarea:focus {
    outline: none;

    border-color: #d93631;

    box-shadow:
        0 0 0 3px
        rgba(217,54,49,.08);
}


/* Pakete */

.platform-plan-grid {
    display: grid;

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

    gap: 12px;

    padding: 20px;
}


.platform-plan-card {
    position: relative;

    min-height: 180px;

    padding: 17px;

    border: 1px solid #ddd7d0;
    border-radius: 14px;

    background: #faf9f7;

    cursor: pointer;
}


.platform-plan-card.recommended {
    border-color:
        rgba(217,54,49,.35);
}


.platform-plan-card > input {
    position: absolute;

    right: 14px;
    top: 14px;

    accent-color: #d93631;
}


.platform-plan-card:has(input:checked) {
    border-color: #d93631;

    background:
        linear-gradient(
            180deg,
            rgba(217,54,49,.045),
            #fff
        );

    box-shadow:
        0 0 0 2px
        rgba(217,54,49,.08);
}


.platform-plan-card-top {
    padding-right: 24px;
}


.platform-plan-card-top strong {
    display: block;

    color: #25282a;

    font-size: 14px;
}


.platform-plan-card-top span {
    display: inline-block;

    margin-top: 6px;
    padding: 3px 6px;

    border-radius: 999px;

    color: #9b2c28;
    background: #fde9e7;

    font-size: 6px;
    font-weight: 900;
}


.platform-plan-price {
    margin: 22px 0 15px;
}


.platform-plan-price strong {
    color: #202326;

    font-size: 26px;
    letter-spacing: -.04em;
}


.platform-plan-price span {
    color: #858a8e;

    font-size: 9px;
}


.platform-plan-limits {
    display: grid;

    gap: 5px;
}


.platform-plan-limits span {
    color: #686e72;

    font-size: 9px;
}


/* Administrator */

.platform-admin-note {
    margin: 20px 20px 0;
    padding: 12px 14px;

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

    color: #676d71;
    background: #faf9f7;

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


.platform-admin-note strong {
    color: #292d30;
}


/* Submit */

.platform-provision-submit {
    display: flex;

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

    gap: 10px;

    padding: 4px 0;
}


.platform-provision-submit a,
.platform-provision-submit button {
    display: inline-flex;

    min-height: 44px;

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

    padding: 0 18px;

    border-radius: 10px;

    font: inherit;
    font-size: 10px;
    font-weight: 900;

    text-decoration: none;
}


.platform-provision-submit a {
    border: 1px solid #d9d4ce;

    color: #555b5f;
    background: #fff;
}


.platform-provision-submit button {
    border: 0;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #c8322e,
            #e7443f
        );

    cursor: pointer;
}


@media (max-width: 1100px) {

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


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

}


@media (max-width: 700px) {

    .platform-provision-shell {
        padding:
            24px
            16px
            50px;
    }


    .platform-plan-grid,
    .platform-provision-grid {
        grid-template-columns: 1fr;
    }


    .platform-provision-grid label.wide {
        grid-column: auto;
    }

}



/* ============================================================
   MAMO PLATFORM · SUBSCRIPTION LIFECYCLE V1
   ============================================================ */

.platform-plan-meta {
    margin-top: 4px;

    color: #8b9094;

    font-size: 9px;
}


.platform-license-state {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 900;
}


.platform-license-state.good {
    color: #24744f;
    background: #e5f3eb;
}


.platform-license-state.trial {
    color: #3470a8;
    background: #eaf3fb;
}


.platform-license-state.danger {
    color: #a6332e;
    background: #fde9e7;
}


.platform-license-state.muted {
    color: #71777b;
    background: #eceff1;
}


.platform-tenant-actions {
    display: flex;

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

    gap: 7px;
}


.platform-convert-button {
    display: inline-flex;

    min-height: 35px;

    align-items: center;

    padding: 0 10px;

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

    color: #b42e29;
    background: #fff;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.platform-conversion-current {
    display: grid;

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

    gap: 1px;

    margin-bottom: 18px;

    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 14px;

    background: #ddd7d0;
}


.platform-conversion-current > div {
    padding: 15px 17px;

    background: #fff;
}


.platform-conversion-current small,
.platform-conversion-current strong {
    display: block;
}


.platform-conversion-current small {
    color: #858a8e;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .1em;
}


.platform-conversion-current strong {
    margin-top: 7px;

    color: #25282a;

    font-size: 13px;
}


@media (max-width: 700px) {

    .platform-conversion-current {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO PLATFORM · COMMERCIAL DASHBOARD V1
   ============================================================ */

.platform-commercial-kpis {
    display: grid;

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

    gap: 13px;

    margin-bottom: 18px;
}


.platform-commercial-kpi {
    position: relative;

    overflow: hidden;

    min-height: 126px;

    padding: 18px;

    border: 1px solid #ddd7d0;
    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 10px 28px
        rgba(25,27,29,.045);
}


.platform-commercial-kpi::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #292e32,
            transparent 72%
        );
}


.platform-commercial-kpi.revenue::before {
    background:
        linear-gradient(
            90deg,
            #d93631,
            transparent 72%
        );
}


.platform-commercial-kpi.good::before {
    background:
        linear-gradient(
            90deg,
            #25865c,
            transparent 72%
        );
}


.platform-commercial-kpi.trial::before {
    background:
        linear-gradient(
            90deg,
            #3978b6,
            transparent 72%
        );
}


.platform-commercial-kpi.pipeline::before {
    background:
        linear-gradient(
            90deg,
            #7652a8,
            transparent 72%
        );
}


.platform-commercial-kpi.attention::before {
    background:
        linear-gradient(
            90deg,
            #cc7a1f,
            transparent 72%
        );
}


.platform-commercial-kpi small {
    display: block;

    color: #7b8084;

    font-size: 8px;
    font-weight: 900;

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


.platform-commercial-kpi strong {
    display: block;

    margin: 14px 0 10px;

    color: #191b1d;

    font-size: 31px;
    line-height: 1;

    letter-spacing: -.045em;
}


.platform-commercial-kpi span {
    color: #7a8084;

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


.platform-commercial-grid {
    display: grid;

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

    gap: 18px;

    margin-bottom: 18px;
}


.platform-commercial-list {
    padding: 7px 19px 14px;
}


.platform-commercial-list > div {
    display: flex;

    min-height: 43px;

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

    gap: 16px;

    border-bottom: 1px solid #eeeae5;
}


.platform-commercial-list > div:last-child {
    border-bottom: 0;
}


.platform-commercial-list span {
    color: #73797d;

    font-size: 10px;
}


.platform-commercial-list strong {
    color: #25282a;

    font-size: 13px;
}


.platform-plan-distribution {
    display: grid;

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

    gap: 8px;

    padding: 0 19px 18px;
}


.platform-plan-distribution > div {
    padding: 11px;

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

    background: #faf9f7;
}


.platform-plan-distribution span,
.platform-plan-distribution strong {
    display: block;
}


.platform-plan-distribution span {
    color: #7d8387;

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


.platform-plan-distribution strong {
    margin-top: 6px;

    color: #25282a;

    font-size: 18px;
}


@media (max-width: 1200px) {

    .platform-commercial-kpis {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 760px) {

    .platform-commercial-kpis,
    .platform-commercial-grid {
        grid-template-columns: 1fr;
    }


    .platform-plan-distribution {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}



/* ============================================================
   MAMO BMA · EMPLOYEES V1
   ============================================================ */

.employee-shell {
    max-width: 1540px;
    margin: 0 auto;
    padding: 34px 38px 65px;
}


.employee-head {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 23px;
}


.employee-kicker {
    margin-bottom: 8px;

    color: #d93631;

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

    letter-spacing: .18em;
}


.employee-head h1 {
    margin: 0;

    color: #191b1d;

    font-size: clamp(34px,3vw,50px);
    line-height: 1;

    letter-spacing: -.05em;
}


.employee-head p {
    margin: 11px 0 0;

    color: #777d81;

    font-size: 14px;
}


.employee-readonly {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 17px;
    padding: 13px 16px;

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

    color: #815d1c;
    background: #fff8e8;
}


.employee-readonly strong {
    font-size: 10px;
}


.employee-readonly span {
    font-size: 10px;
}


.employee-kpis {
    display: grid;

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

    gap: 13px;

    margin-bottom: 17px;
}


.employee-kpis article {
    padding: 17px 18px;

    border: 1px solid #ddd7d0;
    border-radius: 15px;

    background: #fff;
}


.employee-kpis small,
.employee-kpis strong,
.employee-kpis span {
    display: block;
}


.employee-kpis small {
    color: #7d8387;

    font-size: 8px;
    font-weight: 900;

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


.employee-kpis strong {
    margin: 12px 0 8px;

    color: #202326;

    font-size: 30px;
    letter-spacing: -.04em;
}


.employee-kpis span {
    color: #82878b;

    font-size: 9px;
}


.employee-filter {
    display: grid;

    grid-template-columns:
        1fr 220px 180px auto;

    gap: 9px;

    margin-bottom: 17px;
    padding: 10px;

    border: 1px solid #ddd7d0;
    border-radius: 14px;

    background: #fff;
}


.employee-filter input,
.employee-filter select {
    height: 42px;

    padding: 0 11px;

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

    background: #fff;

    font: inherit;
}


.employee-filter button {
    padding: 0 17px;

    border: 0;
    border-radius: 9px;

    color: #fff;
    background: #d93631;

    font-weight: 850;

    cursor: pointer;
}


.employee-panel {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 18px;

    background: #fff;
}


.employee-panel > header {
    min-height: 68px;

    display: flex;

    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid #ece7e1;
}


.employee-panel > header h2 {
    margin: 0;

    font-size: 17px;
}


.employee-panel > header span {
    display: block;

    margin-top: 4px;

    color: #8a8f92;

    font-size: 10px;
}


.employee-table-wrap {
    overflow-x: auto;
}


.employee-table {
    width: 100%;

    border-collapse: collapse;
}


.employee-table th {
    padding: 11px 14px;

    border-bottom: 1px solid #e8e3de;

    color: #757b7f;
    background: #faf8f5;

    text-align: left;

    font-size: 8px;
    font-weight: 900;

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


.employee-table td {
    padding: 14px;

    border-bottom: 1px solid #eeeae5;

    color: #454a4e;

    font-size: 12px;
}


.employee-table td strong,
.employee-table td small {
    display: block;
}


.employee-table td strong {
    color: #25282a;
}


.employee-table td small {
    margin-top: 3px;

    color: #858a8e;

    font-size: 9px;
}


.employee-role,
.employee-access,
.employee-state {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 850;
}


.employee-role {
    color: #464c50;
    background: #efefed;
}


.employee-access {
    color: #826126;
    background: #fff3df;
}


.employee-access.all {
    color: #3978b6;
    background: #eaf3fb;
}


.employee-state.active {
    color: #24744f;
    background: #e5f3eb;
}


.employee-state.inactive {
    color: #777d81;
    background: #eceff1;
}


.employee-empty {
    padding: 30px !important;

    text-align: center;

    color: #898e92 !important;
}


.employee-pagination {
    padding: 15px 20px;
}


/* Mitarbeiterformular */

.employee-create-form {
    display: grid;

    gap: 17px;
}


.employee-form-card {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-radius: 17px;

    background: #fff;
}


.employee-form-card > header {
    padding: 14px 18px;

    color: #fff;
    background: #292e32;
}


.employee-form-card > header small {
    color: #ff756c;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .13em;
}


.employee-form-card > header h2 {
    margin: 4px 0 0;

    color: #fff;

    font-size: 17px;
}


.employee-form-grid {
    display: grid;

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

    gap: 12px;

    padding: 18px;
}


.employee-form-grid label > span {
    display: block;

    margin-bottom: 5px;

    color: #757b7f;

    font-size: 8px;
    font-weight: 900;

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


.employee-form-grid input,
.employee-form-grid select {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    padding: 0 11px;

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

    background: #fff;

    font: inherit;
}


.employee-role-grid {
    display: grid;

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

    gap: 10px;

    padding: 18px;
}


.employee-role-grid label {
    position: relative;

    min-height: 90px;

    padding: 14px;

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

    background: #faf9f7;

    cursor: pointer;
}


.employee-role-grid label:has(input:checked) {
    border-color: #d93631;

    background: #fff7f6;
}


.employee-role-grid input {
    position: absolute;

    right: 12px;
    top: 12px;

    accent-color: #d93631;
}


.employee-role-grid strong,
.employee-role-grid span {
    display: block;
}


.employee-role-grid strong {
    padding-right: 25px;

    color: #25282a;

    font-size: 11px;
}


.employee-role-grid span {
    margin-top: 7px;

    color: #81868a;

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


.employee-branches {
    display: grid;

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

    gap: 8px;

    padding: 0 18px 18px;
}


.employee-branches.is-hidden {
    display: none;
}


.employee-branches label {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px;

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

    background: #faf9f7;

    font-size: 9px;
}


.employee-branches input {
    accent-color: #d93631;
}


.employee-password-note {
    margin: 18px 18px 0;
    padding: 11px 13px;

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

    color: #777d81;
    background: #faf9f7;

    font-size: 9px;
}


.employee-form-submit {
    display: flex;

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

    gap: 9px;
}


.employee-form-submit a,
.employee-form-submit button {
    display: inline-flex;

    min-height: 43px;

    align-items: center;

    padding: 0 17px;

    border-radius: 9px;

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

    text-decoration: none;
}


.employee-form-submit a {
    border: 1px solid #d9d4ce;

    color: #555b5f;
    background: #fff;
}


.employee-form-submit button {
    border: 0;

    color: #fff;
    background: #d93631;

    cursor: pointer;
}


@media (max-width: 1000px) {

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


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

}


@media (max-width: 700px) {

    .employee-shell {
        padding:
            24px
            16px
            50px;
    }


    .employee-head {
        align-items: stretch;
        flex-direction: column;
    }


    .employee-kpis,
    .employee-form-grid,
    .employee-role-grid,
    .employee-branches,
    .employee-filter {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO BMA · MAINTENANCE ASSIGNMENTS V1
   ============================================================ */

.visit-assignment-card {
    overflow: hidden;

    margin-bottom: 18px;

    border: 1px solid #ddd7d0;
    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 10px 28px
        rgba(25,27,29,.035);
}


.visit-assignment-head {
    display: flex;

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

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid #e9e4de;
}


.visit-assignment-head small {
    display: block;

    color: #d93631;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .15em;
}


.visit-assignment-head h2 {
    margin: 5px 0 3px;

    color: #242729;

    font-size: 18px;
}


.visit-assignment-head p {
    margin: 0;

    color: #81868a;

    font-size: 9px;
}


.visit-assignment-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 999px;

    color: #277153;
    background: #e7f3ed;

    font-size: 8px;
    font-weight: 850;
}


.visit-assignment-status span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #2d8b64;
}


.visit-assignment-status.open {
    color: #976519;
    background: #fff1d8;
}


.visit-assignment-status.open span {
    background: #d18b25;
}


.visit-assignment-success {
    margin: 14px 18px 0;
    padding: 10px 12px;

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

    color: #26704e;
    background: #eef8f2;

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


.visit-assignment-current {
    display: grid;

    grid-template-columns:
        minmax(280px,.8fr)
        minmax(340px,1.2fr);

    gap: 14px;

    padding: 18px;
}


.visit-assignment-current > article {
    min-height: 90px;

    padding: 15px;

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

    background: #faf9f7;
}


.visit-assignment-lead {
    display: flex;

    align-items: center;

    gap: 13px;
}


.visit-assignment-icon {
    display: grid;

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    place-items: center;

    border-radius: 10px;

    color: #fff;
    background: #292e32;

    font-size: 15px;
}


.visit-assignment-lead small,
.visit-assignment-label {
    display: block;

    color: #868b8e;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .1em;
}


.visit-assignment-lead strong {
    display: block;

    margin-top: 6px;

    color: #26292b;

    font-size: 12px;
}


.visit-assignment-lead span {
    display: block;

    margin-top: 3px;

    color: #858a8e;

    font-size: 8px;
}


.visit-assignment-empty {
    margin-top: 15px;

    color: #8a8f92;

    font-size: 9px;
}


.visit-assignment-team {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;
}


.visit-assignment-team > div {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 7px 9px;

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

    background: #fff;
}


.visit-assignment-avatar {
    display: grid;

    width: 27px;
    height: 27px;

    place-items: center;

    border-radius: 8px;

    color: #fff;
    background: #d93631;

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


.visit-assignment-team strong,
.visit-assignment-team small {
    display: block;
}


.visit-assignment-team strong {
    color: #33373a;

    font-size: 9px;
}


.visit-assignment-team small {
    margin-top: 2px;

    color: #8a8f92;

    font-size: 7px;
}


.visit-assignment-form {
    border-top: 1px solid #e9e4de;

    background: #fcfbf9;
}


.visit-assignment-form-title {
    padding: 15px 18px 0;

    color: #292d30;

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


.visit-assignment-form-grid {
    display: grid;

    grid-template-columns:
        minmax(250px,.7fr)
        minmax(350px,1.3fr);

    gap: 18px;

    padding: 15px 18px 18px;
}


.visit-assignment-form-grid > label > span,
.visit-assignment-field-label {
    display: block;

    margin-bottom: 6px;

    color: #757b7f;

    font-size: 7px;
    font-weight: 900;

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


.visit-assignment-form select {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    padding: 0 10px;

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

    background: #fff;
}


.visit-assignment-checkboxes {
    display: grid;

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

    gap: 7px;
}


.visit-assignment-checkboxes label {
    display: flex;

    align-items: center;

    gap: 8px;

    min-height: 42px;

    box-sizing: border-box;

    padding: 7px 9px;

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

    background: #fff;
}


.visit-assignment-checkboxes input {
    accent-color: #d93631;
}


.visit-assignment-checkboxes label:has(input:disabled) {
    opacity: .45;
}


.visit-assignment-checkboxes strong,
.visit-assignment-checkboxes small {
    display: block;
}


.visit-assignment-checkboxes strong {
    color: #34383b;

    font-size: 9px;
}


.visit-assignment-checkboxes small {
    margin-top: 2px;

    color: #898e91;

    font-size: 7px;
}


.visit-assignment-no-candidates {
    padding: 13px;

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

    color: #898e91;

    font-size: 9px;
}


.visit-assignment-actions {
    display: flex;

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

    gap: 15px;

    padding: 13px 18px;

    border-top: 1px solid #e9e4de;
}


.visit-assignment-actions span {
    margin-right: auto;

    color: #898e91;

    font-size: 8px;
}


.visit-assignment-actions button {
    min-height: 39px;

    padding: 0 14px;

    border: 0;
    border-radius: 8px;

    color: #fff;
    background: #d93631;

    font-size: 8px;
    font-weight: 900;

    cursor: pointer;
}


.visit-assignment-locked {
    padding: 13px 18px;

    border-top: 1px solid #e9e4de;

    color: #7e8387;
    background: #faf9f7;

    font-size: 8px;
}


@media (max-width: 900px) {

    .visit-assignment-current,
    .visit-assignment-form-grid {
        grid-template-columns: 1fr;
    }


    .visit-assignment-checkboxes {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO BMA · PERSONAL MAINTENANCE BOARD V1
   ============================================================ */

.maintenance-scope-lock {
    min-height: 42px;

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

    box-sizing: border-box;

    padding: 0 12px;

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

    background: #f5f3f0;
}


.maintenance-scope-lock span {
    color: #292d30;

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


.maintenance-scope-lock small {
    margin-top: 2px;

    color: #898e92;

    font-size: 7px;
}


.maintenance-technician {
    display: flex;

    align-items: center;

    gap: 8px;
}


.maintenance-technician > span {
    display: grid;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    place-items: center;

    border-radius: 8px;

    color: #fff;
    background: #292e32;

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


.maintenance-technician > div strong {
    display: block;

    color: #292d30;

    font-size: 10px;
}


.maintenance-technician > div small {
    display: block;

    margin-top: 2px;

    color: #858a8e;

    font-size: 8px;
}


.maintenance-technician-open {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    color: #98661e;
    background: #fff1dd;

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


.maintenance-calendar-technician {
    display: block !important;

    margin-top: 4px !important;

    padding-top: 4px;

    border-top: 1px solid
        rgba(0,0,0,.07);

    font-size: 7px !important;

    font-weight: 850;
}


@media (min-width: 1251px) {

    .maintenance-index-filter {
        grid-template-columns:
            minmax(220px,1fr)
            110px
            150px
            180px
            190px
            auto;
    }

}



/* ============================================================
   MAMO BMA · RESPONSIBLE TECHNICIAN SIGNATURE V1
   ============================================================ */

.maintenance-signature-lead {
    margin: 5px 0 0;

    color: #858a8e;

    font-size: 8px;
}


.maintenance-signature-lead strong {
    color: #33383b;
}


.maintenance-signature-fields input[readonly] {
    cursor: default;

    color: #50565a;
    background: #f2f0ed;
}



/* ============================================================
   MAMO BMA · MAINTENANCE HEADER / STATUSBAR V2
   Status gehört fest in den Seitenfluss
   ============================================================ */

/*
 * Keine schwebenden Ebenen innerhalb der Wartungsakte.
 * Der globale App-Header reicht als permanente Navigation.
 */

.maintenance-livebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;

    z-index: 1 !important;

    width: auto;

    margin:
        0
        0
        18px
        0;

    box-sizing: border-box;

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

    border-radius: 15px;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.08);
}


/*
 * Falls der alte Wartungskopf ebenfalls noch sticky
 * definiert ist, wird auch dieser wieder Bestandteil
 * des normalen Dokumentflusses.
 */

.run-top {
    position: relative !important;
    top: auto !important;

    z-index: 1 !important;
}


/*
 * Klarer Abstand zwischen Identität,
 * Status und Arbeitsnavigation.
 */

.maintenance-livebar + .maintenance-readonly-banner,
.maintenance-livebar + .run-sections,
.maintenance-readonly-banner + .run-sections {
    margin-top: 14px;
}


/*
 * Filter-Empty-State Melder
 */

.detector-filter-empty {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 6px;

    padding: 20px;

    border: 1px solid #dcd7d1;
    border-radius: 13px;

    background: #faf9f7;
}


.detector-filter-empty strong {
    color: #277153;

    font-size: 11px;
}


.detector-filter-empty span {
    color: #777d81;

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


.detector-filter-empty a {
    display: inline-flex;

    min-height: 34px;

    align-items: center;

    margin-top: 4px;
    padding: 0 11px;

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

    color: #34393c;
    background: #fff;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.detector-filter-empty a:hover {
    color: #c7342f;
    border-color: #c7342f;
}


/*
 * Mobil ebenfalls niemals frei schwebend.
 */

@media (max-width: 1150px) {

    .maintenance-livebar {
        top: auto !important;
    }

}



/* ============================================================
   MAMO BMA · OBJECT DETECTOR WORKSPACE V1
   Gruppe links · Melder rechts
   Keine Etagen-Navigation
   ============================================================ */

.object-detector-workspace {
    display: grid;

    grid-template-columns:
        minmax(250px, .74fr)
        minmax(0, 2.26fr);

    gap: 14px;

    align-items: start;

    margin-top: 14px;
}


/* ------------------------------------------------------------
   GROUP PANEL
------------------------------------------------------------ */

.object-detector-groups,
.object-detector-content {
    min-width: 0;

    border:
        1px solid #dcd7d1;

    border-radius: 15px;

    background:
        rgba(255,255,255,.88);

    box-shadow:
        0 12px 32px
        rgba(36,40,43,.045);
}


.object-detector-groups {
    overflow: hidden;
}


.object-detector-panel-head,
.object-detector-content-head {
    display: flex;

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

    gap: 14px;

    padding: 15px 16px;

    border-bottom:
        1px solid #e5e1dc;
}


.object-detector-panel-head small,
.object-detector-content-head small {
    display: block;

    color: #d63b36;

    font-size: 7px;
    font-weight: 950;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.object-detector-panel-head strong {
    display: block;

    margin-top: 3px;

    color: #292e32;

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


.object-detector-panel-head > span {
    display: grid;

    width: 30px;
    height: 30px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #2d3236;

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


.object-detector-group-list {
    display: flex;

    flex-direction: column;
}


.object-detector-group {
    display: grid;

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

    gap: 10px;

    align-items: center;

    min-height: 74px;

    padding: 10px 12px;

    box-sizing: border-box;

    border-bottom:
        1px solid #ece8e3;

    color: inherit;

    background:
        rgba(255,255,255,.5);

    text-decoration: none;

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


.object-detector-group:last-child {
    border-bottom: 0;
}


.object-detector-group:hover {
    background: #f8f6f3;
}


.object-detector-group.active {
    box-shadow:
        inset 4px 0 0
        #d83b36;

    background:
        linear-gradient(
            90deg,
            rgba(216,59,54,.075),
            rgba(255,255,255,.92)
        );
}


.object-detector-group-code {
    display: grid;

    min-height: 42px;

    place-items: center;

    border-radius: 10px;

    color: #fff;
    background: #2d3337;

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


.object-detector-group-copy {
    min-width: 0;
}


.object-detector-group-copy strong {
    display: block;

    overflow: hidden;

    color: #292e32;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}


.object-detector-group-copy > span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #878d91;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.object-detector-group-copy small {
    display: block;

    margin-top: 5px;

    color: #737a7f;

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


.object-detector-group-arrow {
    color: #aaa5a0;

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


/* ------------------------------------------------------------
   DETECTOR PANEL
------------------------------------------------------------ */

.object-detector-content {
    overflow: hidden;
}


.object-detector-content-head h3 {
    margin: 3px 0 0;

    color: #252a2e;

    font-size: 17px;
    font-weight: 950;

    letter-spacing: -.025em;
}


.object-detector-content-head p {
    margin: 4px 0 0;

    color: #858b90;

    font-size: 8px;
}


.object-detector-content-count {
    min-width: 60px;

    text-align: right;
}


.object-detector-content-count strong {
    display: block;

    color: #282d31;

    font-size: 23px;
    font-weight: 950;

    line-height: 1;
}


.object-detector-content-count span {
    display: block;

    margin-top: 3px;

    color: #999da0;

    font-size: 7px;

    text-transform: uppercase;
}


.object-detector-grid {
    display: grid;

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

    gap: 8px;

    padding: 12px;
}


.object-detector-card {
    display: grid;

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

    gap: 9px;

    align-items: center;

    min-height: 78px;

    padding: 9px;

    box-sizing: border-box;

    border:
        1px solid #e2ddd7;

    border-radius: 11px;

    color: inherit;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        );

    text-decoration: none;

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


.object-detector-card:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(204,55,50,.35);

    box-shadow:
        0 8px 20px
        rgba(38,42,45,.06);
}


.object-detector-card-code {
    display: flex;

    min-height: 54px;

    flex-direction: column;

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

    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b3f,
            #24292d
        );
}


.object-detector-card-code span {
    font-size: 13px;
    font-weight: 950;
}


.object-detector-card-code small {
    margin-top: 3px;

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

    font-size: 7px;
    font-weight: 900;
}


.object-detector-card-copy {
    min-width: 0;
}


.object-detector-card-copy strong {
    display: block;

    overflow: hidden;

    color: #30353a;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}


.object-detector-card-copy span {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #858b90;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.object-detector-card-copy small {
    display: block;

    margin-top: 5px;

    color: #697176;

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


.object-detector-card-open {
    color: #a5a19d;

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


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

@media (max-width: 1050px) {

    .object-detector-workspace {
        grid-template-columns:
            230px
            minmax(0,1fr);
    }


    .object-detector-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(165px,1fr)
            );
    }

}


@media (max-width: 760px) {

    .object-detector-workspace {
        grid-template-columns: 1fr;
    }


    .object-detector-group-list {
        max-height: 300px;

        overflow-y: auto;
    }


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

}


@media (max-width: 520px) {

    .object-detector-grid {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   OBJECT DETECTOR · FLOOR FILTER
   ============================================================ */

.object-detector-floor-filter {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 12px;
    margin-bottom: 4px;
}


.object-detector-floor-filter a {
    display: inline-flex;

    min-height: 31px;

    align-items: center;

    padding: 0 11px;

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

    color: #71777b;
    background: #fff;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.object-detector-floor-filter a:hover {
    border-color: #c93b36;

    color: #b6312d;
}


.object-detector-floor-filter a.active {
    border-color: #2d3337;

    color: #fff;
    background: #2d3337;
}



/* ============================================================
   MAMO BMA · SHARED DETECTOR WORKSPACE V1
   EIN Layout für Objektakte + Wartung
   ============================================================ */

.detector-workspace-floors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin:
        12px
        0
        10px;
}


.detector-workspace-floors a {
    display: inline-flex;

    min-height: 32px;

    align-items: center;

    padding: 0 12px;

    border:
        1px solid #ddd8d2;

    border-radius: 999px;

    color: #71777b;
    background: #fff;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;
}


.detector-workspace-floors a:hover {
    color: #c7342f;

    border-color:
        rgba(199,52,47,.45);
}


.detector-workspace-floors a.active {
    color: #fff;

    border-color: #2d3337;
    background: #2d3337;
}


/* ============================================================
   MASTER / DETAIL
   ============================================================ */

.detector-workspace {
    display: grid;

    grid-template-columns:
        minmax(250px,.74fr)
        minmax(0,2.26fr);

    gap: 14px;

    align-items: start;
}


.detector-workspace-groups,
.detector-workspace-content {
    min-width: 0;

    border:
        1px solid #dcd7d1;

    border-radius: 15px;

    background:
        rgba(255,255,255,.9);

    box-shadow:
        0 12px 32px
        rgba(36,40,43,.045);
}


.detector-workspace-groups,
.detector-workspace-content {
    overflow: hidden;
}


/* ============================================================
   HEADER
   ============================================================ */

.detector-workspace-panel-head,
.detector-workspace-content-head {
    display: flex;

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

    gap: 14px;

    min-height: 68px;

    padding: 14px 16px;

    box-sizing: border-box;

    border-bottom:
        1px solid #e5e1dc;
}


.detector-workspace-panel-head small,
.detector-workspace-content-head > div:first-child > small {
    display: block;

    color: #d63b36;

    font-size: 7px;
    font-weight: 950;

    letter-spacing: .15em;

    text-transform: uppercase;
}


.detector-workspace-panel-head strong {
    display: block;

    margin-top: 3px;

    color: #292e32;

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


.detector-workspace-panel-head > span {
    display: grid;

    width: 30px;
    height: 30px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #2d3236;

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


.detector-workspace-content-head h3 {
    margin: 3px 0 0;

    color: #252a2e;

    font-size: 17px;
    font-weight: 950;

    letter-spacing: -.025em;
}


.detector-workspace-content-head p {
    margin: 4px 0 0;

    color: #858b90;

    font-size: 8px;
}


/* ============================================================
   GRUPPEN LINKS
   ============================================================ */

.detector-workspace-group-list {
    display: flex;

    flex-direction: column;
}


.detector-workspace-group {
    display: grid;

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

    gap: 10px;

    align-items: center;

    min-height: 74px;

    padding: 10px 12px;

    box-sizing: border-box;

    border-bottom:
        1px solid #ece8e3;

    color: inherit;

    background:
        rgba(255,255,255,.5);

    text-decoration: none;

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


.detector-workspace-group:last-child {
    border-bottom: 0;
}


.detector-workspace-group:hover {
    background: #f8f6f3;
}


.detector-workspace-group.active {
    box-shadow:
        inset 4px 0 0
        #d83b36;

    background:
        linear-gradient(
            90deg,
            rgba(216,59,54,.075),
            rgba(255,255,255,.94)
        );
}


.detector-workspace-group-code {
    display: grid;

    min-height: 42px;

    place-items: center;

    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b3f,
            #24292d
        );

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


.detector-workspace-group-copy {
    min-width: 0;
}


.detector-workspace-group-copy > strong {
    display: block;

    overflow: hidden;

    color: #292e32;

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

    text-overflow: ellipsis;
    white-space: nowrap;
}


.detector-workspace-group-copy > span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #878d91;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.detector-workspace-group-copy > small {
    display: block;

    margin-top: 5px;

    color: #737a7f;

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


.detector-workspace-group-copy b {
    font-weight: 900;
}


.detector-workspace-group-copy b.done {
    color: #27805a;
}


.detector-workspace-group-copy b.danger {
    color: #c83c36;
}


.detector-workspace-group-arrow {
    color: #aaa5a0;

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


/* ============================================================
   RECHTER HEADER / STATS
   ============================================================ */

.detector-workspace-content-stats {
    display: flex;

    gap: 7px;
}


.detector-workspace-content-stats > div {
    min-width: 52px;

    padding: 7px 8px;

    border:
        1px solid #e4dfda;

    border-radius: 9px;

    background: #faf9f7;

    text-align: center;
}


.detector-workspace-content-stats strong,
.detector-workspace-content-stats span {
    display: block;
}


.detector-workspace-content-stats strong {
    color: #292e32;

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


.detector-workspace-content-stats span {
    margin-top: 2px;

    color: #969a9d;

    font-size: 6px;
    font-weight: 800;

    text-transform: uppercase;
}


/* ============================================================
   MELDERGRID
   ============================================================ */

.detector-workspace-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(118px,1fr)
        );

    gap: 7px;

    padding: 12px;
}


.detector-workspace-item-shell {
    position: relative;

    min-width: 0;
}


.detector-workspace-item {
    position: relative;

    display: flex;

    width: 100%;
    min-width: 0;
    min-height: 82px;

    box-sizing: border-box;

    flex-direction: column;

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

    padding: 10px;

    border:
        1px solid #e1ddd8;

    border-radius: 11px;

    color: #30353a;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        );

    text-decoration: none;

    cursor: pointer;

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


.detector-workspace-item:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(199,52,47,.35);

    box-shadow:
        0 7px 18px
        rgba(38,42,45,.06);
}


.detector-workspace-item-number {
    display: block;

    color: #2a2f33;

    font-size: 15px;
    font-weight: 950;

    line-height: 1;
}


.detector-workspace-item-type {
    display: block;

    margin-top: 5px;

    color: #71777c;

    font-size: 8px;
    font-weight: 900;
}


.detector-workspace-item-meta {
    min-width: 0;

    margin-top: 7px;
}


.detector-workspace-item-meta b,
.detector-workspace-item-meta span,
.detector-workspace-item-meta small {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.detector-workspace-item-meta b {
    color: #464c50;

    font-size: 7px;
}


.detector-workspace-item-meta span,
.detector-workspace-item-meta small {
    margin-top: 2px;

    color: #95999c;

    font-size: 6px;
}


/* ============================================================
   WARTUNG · STATES
   ============================================================ */

button.detector-workspace-maintenance-item {
    font: inherit;

    text-align: left;
}


button.detector-workspace-maintenance-item:disabled {
    cursor: default;

    opacity: 1;
}


.detector-workspace-maintenance-item.state-ok {
    border-color: #bbdcca;

    background: #eff8f3;
}


.detector-workspace-maintenance-item.state-defect {
    border-color: #e5aaa5;

    background: #fff0ef;
}


.detector-workspace-maintenance-item.state-attention {
    border-color: #e1c487;

    background: #fff8e8;
}


.detector-workspace-maintenance-item.state-neutral {
    border-color: #ddd;

    background: #f3f3f2;
}


.detector-workspace-maintenance-item.state-open {
    border-color: #dfd8cf;

    background: #fff;
}


.detector-workspace-maintenance-item
.mamo-matrix-state {
    position: absolute;

    top: 7px;
    right: 7px;

    display: grid;

    width: 19px;
    height: 19px;

    place-items: center;

    border-radius: 50%;

    color: #fff;
    background: #9ea3a6;

    font-size: 8px;
    font-style: normal;
    font-weight: 950;
}


.detector-workspace-maintenance-item.state-ok
.mamo-matrix-state {
    background: #299764;
}


.detector-workspace-maintenance-item.state-defect
.mamo-matrix-state {
    background: #d63b36;
}


.detector-workspace-item-count {
    position: absolute;

    right: 7px;
    bottom: 7px;

    min-width: 17px;

    padding: 2px 4px;

    border-radius: 999px;

    color: #fff;
    background: #343a3e;

    font-size: 6px;
    font-weight: 900;

    text-align: center;
}


.detector-workspace-issue {
    position: absolute;

    left: 7px;
    bottom: 7px;

    z-index: 3;

    width: 19px;
    height: 19px;

    padding: 0;

    border:
        1px solid #e0a9a5;

    border-radius: 50%;

    color: #bd332e;
    background: #fff;

    font-size: 8px;
    font-weight: 950;

    cursor: pointer;
}


.detector-workspace-issue:disabled {
    cursor: default;

    opacity: .35;
}


.detector-workspace-group-status {
    display: block;

    margin:
        0
        12px
        12px;

    color: #81878b;

    font-size: 7px;
    font-weight: 850;

    text-align: right;
}


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

@media (max-width: 1100px) {

    .detector-workspace {
        grid-template-columns:
            230px
            minmax(0,1fr);
    }


    .detector-workspace-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(105px,1fr)
            );
    }

}


@media (max-width: 760px) {

    .detector-workspace {
        grid-template-columns: 1fr;
    }


    .detector-workspace-group-list {
        max-height: 300px;

        overflow-y: auto;
    }


    .detector-workspace-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            );
    }

}


@media (max-width: 520px) {

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


    .detector-workspace-content-head {
        align-items: flex-start;
    }


    .detector-workspace-content-stats {
        flex-wrap: wrap;

        justify-content: flex-end;
    }

}



/* ============================================================
   MAMO BMA · SHARED DETECTOR WORKSPACE V1.1
   WARTUNG · COMPACT OPERATION MODE
   ============================================================ */


/*
|--------------------------------------------------------------------------
| Grundaufteilung Wartung
|--------------------------------------------------------------------------
|
| Links nur schmale Gruppensteuerung,
| rechts möglichst viel Platz für Melder.
|
*/

.detector-workspace-maintenance {
    grid-template-columns:
        minmax(205px, 235px)
        minmax(0, 1fr);

    gap: 10px;
}


/*
|--------------------------------------------------------------------------
| Gruppenleiste kompakter
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-panel-head {
    min-height: 55px;

    padding: 10px 12px;
}


.detector-workspace-maintenance
.detector-workspace-panel-head strong {
    font-size: 11px;
}


.detector-workspace-maintenance
.detector-workspace-panel-head > span {
    width: 26px;
    height: 26px;

    border-radius: 7px;

    font-size: 8px;
}


.detector-workspace-maintenance
.detector-workspace-group {
    grid-template-columns:
        42px
        minmax(0,1fr)
        14px;

    gap: 8px;

    min-height: 60px;

    padding: 8px 9px;
}


.detector-workspace-maintenance
.detector-workspace-group-code {
    min-height: 36px;

    border-radius: 8px;

    font-size: 9px;
}


.detector-workspace-maintenance
.detector-workspace-group-copy > strong {
    font-size: 9px;
}


.detector-workspace-maintenance
.detector-workspace-group-copy > span {
    margin-top: 2px;

    font-size: 6px;
}


.detector-workspace-maintenance
.detector-workspace-group-copy > small {
    margin-top: 3px;

    font-size: 6px;
}


/*
|--------------------------------------------------------------------------
| Kopf rechts kompakter
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-content-head {
    min-height: 58px;

    padding: 10px 12px;
}


.detector-workspace-maintenance
.detector-workspace-content-head h3 {
    font-size: 14px;
}


.detector-workspace-maintenance
.detector-workspace-content-head p {
    margin-top: 3px;

    font-size: 7px;
}


.detector-workspace-maintenance
.detector-workspace-content-stats {
    gap: 5px;
}


.detector-workspace-maintenance
.detector-workspace-content-stats > div {
    min-width: 43px;

    padding: 5px 6px;

    border-radius: 7px;
}


.detector-workspace-maintenance
.detector-workspace-content-stats strong {
    font-size: 11px;
}


.detector-workspace-maintenance
.detector-workspace-content-stats span {
    font-size: 5px;
}


/*
|--------------------------------------------------------------------------
| MELDERMATRIX
|--------------------------------------------------------------------------
|
| Wichtig:
| Keine auf Bildschirmbreite aufgeblasenen Karten.
| Die Melder bleiben echte kleine technische Felder.
|
*/

.detector-workspace-maintenance
.detector-workspace-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(62px, 78px)
        );

    justify-content: start;

    align-items: start;

    gap: 6px;

    padding: 10px;
}


/*
|--------------------------------------------------------------------------
| Alte mamo-detector-mini Regeln neutralisieren
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-item-shell {
    width: 100%;

    min-width: 0;
}


.detector-workspace-maintenance
.mamo-matrix-ok-form {
    width: 100%;

    margin: 0 !important;
}


.detector-workspace-maintenance
.detector-workspace-item,
.detector-workspace-maintenance
.mamo-detector-mini {
    width: 100% !important;

    min-width: 0 !important;
    min-height: 62px !important;

    padding: 7px 6px !important;

    box-sizing: border-box;

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

    border-radius: 9px !important;

    text-align: center !important;
}


/*
|--------------------------------------------------------------------------
| Meldernummer
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-item-number {
    display: block;

    color: #292e32;

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

    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Meldertyp
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-item-type {
    margin-top: 5px !important;

    color: #70767b;

    font-size: 7px !important;
    font-weight: 900;

    line-height: 1;
}


/*
|--------------------------------------------------------------------------
| Statuspunkt
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-maintenance-item
.mamo-matrix-state {
    top: 5px !important;
    right: 5px !important;

    width: 15px !important;
    height: 15px !important;

    font-size: 6px !important;
}


/*
|--------------------------------------------------------------------------
| Jahres-Prüfzähler
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-item-count {
    right: 5px !important;
    bottom: 4px !important;

    min-width: 13px;

    padding: 1px 3px !important;

    font-size: 5px !important;
}


/*
|--------------------------------------------------------------------------
| Mangelbutton
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-issue {
    left: 5px;
    bottom: 5px;

    width: 16px;
    height: 16px;

    border-radius: 5px;

    font-size: 7px;
}


/*
|--------------------------------------------------------------------------
| Statusfarben deutlicher
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-maintenance-item.state-open {
    border-color: #dcd7d1 !important;

    background: #fff !important;
}


.detector-workspace-maintenance
.detector-workspace-maintenance-item.state-ok {
    border-color: #a9d6bc !important;

    background:
        linear-gradient(
            145deg,
            #f2faf5,
            #e8f5ed
        ) !important;
}


.detector-workspace-maintenance
.detector-workspace-maintenance-item.state-defect {
    border-color: #dfa29e !important;

    background:
        linear-gradient(
            145deg,
            #fff5f4,
            #fde8e6
        ) !important;
}


.detector-workspace-maintenance
.detector-workspace-maintenance-item.state-attention {
    border-color: #dfc286 !important;

    background: #fff8e8 !important;
}


.detector-workspace-maintenance
.detector-workspace-maintenance-item.state-neutral {
    border-color: #d7d7d5 !important;

    background: #f3f3f1 !important;
}


/*
|--------------------------------------------------------------------------
| Gruppenabschluss
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
.detector-workspace-group-status {
    margin:
        0
        10px
        8px;

    font-size: 6px;
}


/*
|--------------------------------------------------------------------------
| Etagenfilter auch in Wartung schlanker
|--------------------------------------------------------------------------
*/

.detector-workspace-maintenance
~ * {
    box-sizing: border-box;
}


@media (max-width: 900px) {

    .detector-workspace-maintenance {
        grid-template-columns:
            190px
            minmax(0,1fr);
    }


    .detector-workspace-maintenance
    .detector-workspace-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(58px,72px)
            );
    }

}


@media (max-width: 700px) {

    .detector-workspace-maintenance {
        grid-template-columns: 1fr;
    }


    .detector-workspace-maintenance
    .detector-workspace-group-list {
        display: grid;

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

        max-height: none;
    }


    .detector-workspace-maintenance
    .detector-workspace-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(58px,1fr)
            );
    }

}



/* ============================================================
   SHARED DETECTOR WORKSPACE · CLEANUP V2
   Objektakte und Wartung = identische Grundgeometrie
   ============================================================ */

.detector-workspace-content {
    display: block !important;

    min-width: 0 !important;

    padding: 0 !important;
}


/* ------------------------------------------------------------
   Kopf bleibt immer oberhalb der Melder
------------------------------------------------------------ */

.detector-workspace-content-head {
    display: flex !important;

    width: 100% !important;

    align-items: center !important;
    justify-content: space-between !important;

    gap: 24px !important;

    box-sizing: border-box !important;
}


.detector-workspace-content-head > div:first-child {
    min-width: 0;

    flex: 1 1 auto;
}


.detector-workspace-content-head h3 {
    white-space: normal;

    line-height: 1.12;
}


/* ------------------------------------------------------------
   Melder immer darunter
------------------------------------------------------------ */

.detector-workspace-grid {
    display: grid !important;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(145px, 180px)
        ) !important;

    justify-content: start !important;

    align-items: stretch !important;

    gap: 9px !important;

    width: 100% !important;

    padding: 14px !important;

    box-sizing: border-box !important;
}


/* ------------------------------------------------------------
   Formular darf die Kachel nicht zusammenschieben
------------------------------------------------------------ */

.detector-workspace-item-shell {
    position: relative !important;

    display: block !important;

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


.detector-workspace-item-shell form {
    display: block !important;

    width: 100% !important;

    margin: 0 !important;
}


/* ------------------------------------------------------------
   Wartungsmelder = gleiche Kachel wie Objektakte
------------------------------------------------------------ */

.detector-workspace-maintenance-item {
    position: relative !important;

    display: flex !important;

    width: 100% !important;
    height: auto !important;

    min-width: 0 !important;
    min-height: 88px !important;

    flex-direction: column !important;

    align-items: flex-start !important;
    justify-content: center !important;

    padding: 12px !important;

    box-sizing: border-box !important;

    border-radius: 11px !important;

    text-align: left !important;
}


/* ------------------------------------------------------------
   Nummer und Typ
------------------------------------------------------------ */

.detector-workspace-maintenance-item
.detector-workspace-item-number {
    display: block !important;

    max-width: none !important;

    margin: 0 !important;

    color: #292e32 !important;

    font-size: 16px !important;
    font-weight: 950 !important;

    line-height: 1 !important;
}


.detector-workspace-maintenance-item
.detector-workspace-item-type {
    display: block !important;

    margin-top: 6px !important;

    color: #737a7f !important;

    font-size: 8px !important;
    font-weight: 900 !important;
}


/* ------------------------------------------------------------
   Jahresprüfzahl unten rechts
------------------------------------------------------------ */

.detector-workspace-maintenance-item
.detector-workspace-item-count {
    position: absolute !important;

    top: auto !important;
    left: auto !important;

    right: 8px !important;
    bottom: 8px !important;

    min-width: 18px;

    padding: 2px 5px !important;

    border-radius: 999px !important;

    color: #fff !important;
    background: #343a3e !important;

    font-size: 7px !important;
}


/* ------------------------------------------------------------
   Status oben rechts
------------------------------------------------------------ */

.detector-workspace-maintenance-item
.mamo-matrix-state {
    position: absolute !important;

    top: 8px !important;
    right: 8px !important;

    left: auto !important;
    bottom: auto !important;
}


/* ------------------------------------------------------------
   Mangel / Abweichung unten links
------------------------------------------------------------ */

.detector-workspace-issue {
    position: absolute !important;

    top: auto !important;
    right: auto !important;

    left: 8px !important;
    bottom: 8px !important;

    z-index: 5 !important;
}


/* ------------------------------------------------------------
   Abgeschlossene Wartung
------------------------------------------------------------ */

.detector-workspace-maintenance-item:disabled {
    opacity: 1 !important;

    cursor: default !important;
}


/* ------------------------------------------------------------
   Statusfarben dezent
------------------------------------------------------------ */

.detector-workspace-maintenance-item.state-ok {
    color: #292e32 !important;

    border-color: #b8dcc8 !important;

    background:
        linear-gradient(
            145deg,
            #f5fbf7,
            #edf7f1
        ) !important;
}


.detector-workspace-maintenance-item.state-defect {
    color: #292e32 !important;

    border-color: #e3aaa5 !important;

    background:
        linear-gradient(
            145deg,
            #fff7f6,
            #fff0ef
        ) !important;
}


.detector-workspace-maintenance-item.state-open {
    color: #292e32 !important;

    border-color: #ded9d3 !important;

    background: #fff !important;
}


/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 900px) {

    .detector-workspace-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(135px,1fr)
            ) !important;
    }

}


@media (max-width: 520px) {

    .detector-workspace-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr))
            !important;
    }

}



/* ============================================================
   MAMO BMA · MAINTENANCE HEADER V3
   Navigation → Wartungskopf → Status / Arbeitsbereich
   ============================================================ */

/*
|--------------------------------------------------------------------------
| run-top ist nur noch Strukturcontainer.
| Keine zusätzliche weiße Karte um die eigentliche Statusleiste.
|--------------------------------------------------------------------------
*/

.ops-ui .run-top,
.run-top {
    position: relative !important;

    top: auto !important;

    z-index: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    overflow: visible !important;
}


/*
|--------------------------------------------------------------------------
| Zurücknavigation
|--------------------------------------------------------------------------
*/

.maintenance-header-navigation {
    display: flex;

    align-items: center;

    margin:
        0
        0
        10px;
}


.maintenance-header-navigation
.mamo-back-action {
    min-height: 38px !important;

    padding:
        0
        12px !important;
}


/*
|--------------------------------------------------------------------------
| Wartungskopf
|--------------------------------------------------------------------------
*/

.maintenance-livebar {
    position: relative !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;

    z-index: 1 !important;

    width: 100% !important;

    margin:
        0
        0
        12px !important;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Linker Bereich benötigt keinen Mini-Zurückbutton mehr.
|--------------------------------------------------------------------------
*/

.maintenance-livebar-context {
    min-width: 0;

    gap: 0 !important;
}


.maintenance-livebar-title {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Read-only Hinweis gehört direkt unter den Wartungskopf.
|--------------------------------------------------------------------------
*/

.maintenance-livebar
+ .maintenance-readonly-banner {
    margin-top: 0 !important;
}


.maintenance-readonly-banner {
    margin-top: 0 !important;
}


/*
|--------------------------------------------------------------------------
| Gemeinsame Back-Button-Basis
|
| Alle wichtigen operativen Zurücknavigationen verwenden dieselbe
| Geometrie. Bestehende Funktionslogik / Ziele bleiben erhalten.
|--------------------------------------------------------------------------
*/

:is(
    .mamo-back-action,
    .inspection-back-button,
    .object-area-head > a,
    .technology-subnav > a
) {
    display: inline-flex !important;

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

    min-height: 40px !important;

    box-sizing: border-box;

    align-items: center !important;

    gap: 7px !important;

    padding:
        0
        12px !important;

    overflow: visible !important;

    border:
        1px solid
        #cbc6c0 !important;

    border-left:
        4px solid
        #df3934 !important;

    border-radius:
        10px !important;

    color:
        #30363a !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f3f0
        ) !important;

    box-shadow:
        0 5px 14px
        rgba(20,24,28,.055) !important;

    font-size:
        9px !important;

    font-weight:
        950 !important;

    line-height: 1.2;

    text-decoration:
        none !important;

    white-space: normal !important;
}


:is(
    .mamo-back-action,
    .inspection-back-button,
    .object-area-head > a,
    .technology-subnav > a
):hover {
    transform:
        translateX(-2px);

    border-color:
        #df3934 !important;

    background:
        #fff7f6 !important;
}


/*
|--------------------------------------------------------------------------
| Alte kaputte Mini-Navigation darf nicht erneut sichtbar werden.
|--------------------------------------------------------------------------
*/

.maintenance-livebar-back {
    display: none !important;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1150px) {

    .maintenance-livebar {
        position: relative !important;

        top: auto !important;
    }

}


/*
|--------------------------------------------------------------------------
| Smartphone
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .maintenance-header-navigation
    .mamo-back-action {
        width: 100% !important;

        justify-content: flex-start;
    }


    .maintenance-livebar {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAINTENANCE ASSIGNMENTS · HISTORISCHER ALTBESTAND
   ============================================================ */

.visit-assignment-status.legacy {
    color: #656b6f;

    background: #f0efed;

    border-color: #d8d4cf;
}


.visit-assignment-status.legacy > span {
    background: #8a8f92;

    box-shadow:
        0 0 0 4px
        rgba(138,143,146,.10);
}


.visit-assignment-legacy {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 12px 16px;

    border-top:
        1px solid #e2ded9;

    color: #747a7e;

    background:
        #faf9f7;

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


.visit-assignment-legacy strong {
    flex: 0 0 auto;

    color: #50565a;

    font-weight: 900;
}


.visit-assignment-legacy span {
    max-width: 680px;
}



/* ============================================================
   MAMO BMA · DASHBOARD LIGHT UI V1
   Globale Navigation + Wartungsakte
   ============================================================ */


/* ============================================================
   ZENTRALE BACK NAVIGATION
   ============================================================ */

.mamo-back-navigation {
    display: flex;

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

    gap: 16px;

    min-height: 42px;

    margin:
        0
        0
        14px;
}


.mamo-back-navigation-button {
    display: inline-flex;

    min-height: 40px;

    box-sizing: border-box;

    align-items: center;

    gap: 9px;

    padding:
        0
        13px
        0
        8px;

    border:
        1px solid #ded9d3;

    border-radius: 10px;

    color: #3c4246;

    background: #fff;

    box-shadow:
        0 3px 10px
        rgba(28,32,35,.035);

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

    text-decoration: none;

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


.mamo-back-navigation-arrow {
    display: grid;

    width: 27px;
    height: 27px;

    place-items: center;

    border-radius: 7px;

    color: #c93631;

    background: #fff1ef;

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


.mamo-back-navigation-button:hover {
    transform: translateX(-2px);

    border-color:
        rgba(201,54,49,.42);

    box-shadow:
        0 5px 15px
        rgba(28,32,35,.055);
}


.mamo-back-navigation-path {
    display: flex;

    min-width: 0;

    align-items: center;

    justify-content: flex-end;

    gap: 7px;

    overflow: hidden;

    color: #aaa6a1;

    font-size: 7px;

    white-space: nowrap;
}


.mamo-back-navigation-path strong {
    overflow: hidden;

    color: #858b8f;

    font-weight: 800;

    text-overflow: ellipsis;
}


/*
|--------------------------------------------------------------------------
| Alte Objekt-Backbuttons ausblenden.
| Die zentrale Navigation steht bereits oberhalb des Objektinhalts.
|--------------------------------------------------------------------------
*/

.object-area-head > a {
    display: none !important;
}


/* ============================================================
   WARTUNGSKOPF · HELL WIE CONTROL CENTER
   ============================================================ */

.maintenance-livebar {
    color: #292e32 !important;

    border:
        1px solid #ddd8d2 !important;

    border-top:
        3px solid #d63b36 !important;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #faf9f7 100%
        ) !important;

    box-shadow:
        0 8px 24px
        rgba(28,32,35,.055) !important;
}


.maintenance-livebar::before {
    background: none !important;

    background-image: none !important;
}


.maintenance-livebar-title > div {
    color: #c93631 !important;
}


.maintenance-livebar-title strong {
    color: #292e32 !important;

    font-size: 13px;
}


.maintenance-livebar-title > span {
    color: #888e92 !important;

    font-size: 7px;
}


/* Fortschritt */

.maintenance-livebar-progress-top strong {
    color: #292e32 !important;
}


.maintenance-livebar-progress-top span {
    color: #92979a !important;
}


.maintenance-livebar-track {
    background: #e9e5e0 !important;
}


.maintenance-livebar-track > span {
    background:
        linear-gradient(
            90deg,
            #d83e38,
            #ef675f
        ) !important;
}


/* Kennzahlen */

.maintenance-livebar-values > div {
    border:
        1px solid #e4dfda !important;

    background: #f8f7f5 !important;
}


.maintenance-livebar-values span {
    color: #999da0 !important;
}


.maintenance-livebar-values strong {
    color: #30363a !important;
}


.maintenance-livebar-values small {
    color: #999da0 !important;
}


.maintenance-livebar-values .good strong {
    color: #25865c !important;
}


.maintenance-livebar-values .warning strong {
    color: #c98218 !important;
}


.maintenance-livebar-values .danger strong {
    color: #c73732 !important;
}


/* Status */

.maintenance-livebar-status {
    border:
        1px solid #cce3d5 !important;

    color: #24754f !important;

    background: #edf7f1 !important;
}


.maintenance-livebar-status.status-completed {
    color: #24754f !important;

    background: #edf7f1 !important;
}


.maintenance-livebar-status.status-cancelled {
    border-color: #efd0cd !important;

    color: #b93a35 !important;

    background: #fff1ef !important;
}


/* ============================================================
   BEREICHSKÖPFE · KEIN GROSSFLÄCHIGES ANTHRAZIT MEHR
   ============================================================ */

.inspection-workspace-head,
.measurement-workspace-head,
.maintenance-check-heading,
.visit-requirements-head {
    color: #292e32 !important;

    border:
        1px solid #ddd8d2 !important;

    border-top:
        3px solid #d63b36 !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        ) !important;

    box-shadow:
        0 7px 20px
        rgba(28,32,35,.045) !important;
}


.inspection-workspace-head h2,
.measurement-workspace-head h2,
.maintenance-check-heading h2,
.visit-requirements-head h2 {
    color: #292e32 !important;
}


.inspection-workspace-head p,
.measurement-workspace-head p,
.maintenance-check-heading p,
.visit-requirements-head p {
    color: #7f8589 !important;
}


.inspection-workspace-kicker,
.visit-requirements-kicker {
    color: #c93631 !important;
}


/* ============================================================
   MODULNAVIGATION · DASHBOARD-LOOK
   ============================================================ */

.ops-ui .run-sections {
    display: flex;

    gap: 6px;

    padding: 5px !important;

    border:
        1px solid #ddd8d2;

    border-radius: 12px;

    background: #fff !important;

    box-shadow:
        0 5px 14px
        rgba(28,32,35,.035) !important;
}


.ops-ui .run-section {
    min-height: 38px;

    padding: 0 12px;

    border:
        1px solid transparent;

    border-radius: 8px;

    color: #666d71 !important;

    background: transparent !important;

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


.ops-ui .run-section:hover {
    color: #c93631 !important;

    background: #fff7f6 !important;
}


.ops-ui .run-section.active {
    border-color:
        rgba(201,54,49,.22) !important;

    color: #b9312d !important;

    background: #fff1ef !important;
}


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

@media (max-width: 760px) {

    .mamo-back-navigation {
        align-items: stretch;

        flex-direction: column;
    }


    .mamo-back-navigation-button {
        width: 100%;

        justify-content: flex-start;
    }


    .mamo-back-navigation-path {
        justify-content: flex-start;

        overflow-x: auto;
    }


    .maintenance-livebar-values {
        grid-template-columns:
            repeat(2, minmax(0,1fr))
            !important;
    }

}



/* ============================================================
   MAMO BMA · UNIFIED UI MASTER V1
   Objektakte = Referenz
   ============================================================ */


/* ------------------------------------------------------------
   EINHEITLICHER CONTENT-GUTTER
   ------------------------------------------------------------ */

.run-shell {
    width: 100%;

    max-width: 1720px;

    margin:
        0
        auto;

    padding:
        22px
        28px
        60px !important;

    box-sizing:
        border-box;
}


/* ------------------------------------------------------------
   ALTE WARTUNGS-NAVIGATION ENTFERNEN
   Nur die zentrale Back Navigation bleibt.
   ------------------------------------------------------------ */

.run-shell .run-sections,
.run-shell .inspection-back-button,
.run-shell .mamo-back-action,
.run-shell .maintenance-header-navigation {
    display: none !important;
}


/* ------------------------------------------------------------
   DER GROSSE READONLY-BANNER IST REDUNDANT
   Status steht bereits in der Statusbar.
   ------------------------------------------------------------ */

.run-shell .maintenance-readonly-banner {
    display: none !important;
}


/* ------------------------------------------------------------
   AUF DER ÜBERSICHT KEINE FILTER / LEGACY-BEREICHE
   ------------------------------------------------------------ */

.maintenance-section-overview
.run-filter-panel,

.maintenance-section-overview
.run-statuses,

.maintenance-section-overview
.inspection-detail-page {
    display: none !important;
}


/* ------------------------------------------------------------
   WARTUNGS-STATUSBAR =
   OBJEKT-STATUSBAR
   ------------------------------------------------------------ */

.maintenance-statusbar-v2 {
    position: relative !important;

    top: auto !important;

    z-index: 1 !important;

    margin-bottom: 18px !important;

    color: inherit !important;

    overflow: visible !important;

    isolation: auto !important;
}


.maintenance-statusbar-v2::before {
    display: none !important;
}


.maintenance-statusbar-v2
.object-statusbar-main {
    min-width: 0;
}


.maintenance-statusbar-action {
    margin-left: auto;

    flex: 0 0 auto;
}


.maintenance-statusbar-pill {
    display: inline-flex;

    min-height: 34px;

    align-items: center;

    gap: 7px;

    padding:
        0
        11px;

    border:
        1px solid #cce3d5;

    border-radius:
        999px;

    color:
        #24754f;

    background:
        #edf7f1;

    font-size:
        7px;

    font-weight:
        950;

    text-transform:
        uppercase;

    white-space:
        nowrap;
}


.maintenance-statusbar-pill i {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #31a86f;

    box-shadow:
        0 0 0 4px
        rgba(49,168,111,.10);
}


.maintenance-statusbar-pill.status-in_progress {
    border-color:
        #d8d8cf;

    color:
        #8a641b;

    background:
        #fff7df;
}


.maintenance-statusbar-pill.status-in_progress i {
    background:
        #d79a25;
}


.maintenance-statusbar-pill.status-cancelled {
    border-color:
        #ebcbc8;

    color:
        #b63833;

    background:
        #fff1ef;
}


.maintenance-statusbar-pill.status-cancelled i {
    background:
        #d9413b;
}


.maintenance-statusbar-start {
    min-height: 38px;

    padding:
        0
        14px;

    border: 0;

    border-radius:
        9px;

    color: #fff;

    background:
        #d93a35;

    font-size:
        8px;

    font-weight:
        900;

    cursor:
        pointer;
}


/* ------------------------------------------------------------
   OVERVIEW
   ------------------------------------------------------------ */

.maintenance-overview-v2 {
    margin-top: 4px;
}


.maintenance-overview-grid {
    align-items: stretch;
}


/*
 * Die Kacheln benutzen bewusst die bestehenden
 * object-main-* Klassen.
 *
 * Dadurch sind:
 * - Hintergrund
 * - Hover
 * - Radius
 * - Schatten
 * - Statusfarben
 * identisch mit der Objektakte.
 */


/* Einsatzteam neutraler Stern */

.maintenance-overview-v2
.object-main-icon {
    font-size:
        17px;
}


/* ------------------------------------------------------------
   MOBILE / TABLET
   ------------------------------------------------------------ */

@media (max-width: 950px) {

    .run-shell {
        padding:
            18px
            18px
            48px !important;
    }


    .maintenance-statusbar-v2 {
        grid-template-columns:
            1fr;
    }


    .maintenance-statusbar-v2
    .object-status-progress {
        padding-left: 0;

        padding-top: 13px;

        border-left: 0;

        border-top:
            1px solid #e2ddd7;
    }

}


@media (max-width: 650px) {

    .run-shell {
        padding:
            12px
            12px
            40px !important;
    }

}



/* ============================================================
   MAMO BMA · MAINTENANCE OVERVIEW V3
   3 x 3 · Objektakten-Design
   ============================================================ */


/* ------------------------------------------------------------
   9 Module = sauberes 3 x 3 Raster
   ------------------------------------------------------------ */

.maintenance-overview-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        ) !important;

    gap: 12px !important;
}


/* ------------------------------------------------------------
   INFO-KACHEL
   Grau signalisiert:
   Information / keine Bearbeitung notwendig
   ------------------------------------------------------------ */

.maintenance-info-tile {
    border-color:
        #d5d4d1 !important;

    border-top-color:
        #9da4a8 !important;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(113,121,126,.06),
            transparent 32%
        ),
        linear-gradient(
            150deg,
            #f8f8f6,
            #eeeeeb
        ) !important;
}


.maintenance-info-tile-icon {
    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            #7a8388,
            #596166
        ) !important;

    font-family:
        Georgia,
        serif;

    font-size:
        23px !important;

    font-style:
        italic;

    font-weight:
        700 !important;
}


.maintenance-info-tile
.object-main-content h3 {
    color:
        #454b4f;
}


.maintenance-info-tile
.object-main-content p {
    color:
        #858b8e;
}


.maintenance-info-tile
.object-main-stats strong {
    color:
        #626a6e;
}


.maintenance-info-tile
.object-main-action {
    color:
        #626a6e;
}


/*
 * Info ist zwar anklickbar,
 * soll aber bewusst weniger "Arbeitsaktion"
 * ausstrahlen als grüne/rote Fachkacheln.
 */

.maintenance-info-tile:hover {
    transform:
        translateY(-1px) !important;

    border-color:
        #c4c3bf !important;

    box-shadow:
        0 10px 24px
        rgba(20,24,28,.055)
        !important;
}


/* ============================================================
   INFO-DETAILSEITE
   ============================================================ */

.maintenance-info-page {
    display: grid;

    gap: 14px;
}


.maintenance-info-head {
    display: grid;

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

    gap: 16px;

    align-items: center;

    padding:
        18px;

    border:
        1px solid
        #d8d6d2;

    border-top:
        3px solid
        #9da4a8;

    border-radius:
        15px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f4f4f1
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.045);
}


.maintenance-info-symbol {
    display: grid;

    width: 48px;
    height: 48px;

    place-items: center;

    border-radius:
        13px;

    color:
        #fff;

    background:
        linear-gradient(
            145deg,
            #7a8388,
            #596166
        );

    font-family:
        Georgia,
        serif;

    font-size:
        25px;

    font-style:
        italic;
}


.maintenance-info-head h2 {
    margin:
        4px
        0
        0;

    color:
        #292e32;

    font-size:
        23px;

    letter-spacing:
        -.035em;
}


.maintenance-info-head p {
    max-width:
        760px;

    margin:
        6px
        0
        0;

    color:
        #7d8387;

    font-size:
        9px;

    line-height:
        1.5;
}


.maintenance-info-readonly {
    display:
        inline-flex;

    min-height:
        30px;

    align-items:
        center;

    padding:
        0
        10px;

    border:
        1px solid
        #d7d6d2;

    border-radius:
        999px;

    color:
        #666d71;

    background:
        #eeeeeb;

    font-size:
        7px;

    font-weight:
        900;

    text-transform:
        uppercase;
}


.maintenance-info-grid {
    display: grid;

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

    gap: 12px;
}


.maintenance-info-card {
    display: grid;

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

    gap: 13px;

    min-height:
        105px;

    padding:
        15px;

    border:
        1px solid
        #dedbd6;

    border-radius:
        13px;

    background:
        #f7f7f5;
}


.maintenance-info-card-icon {
    display: grid;

    width: 38px;
    height: 38px;

    place-items: center;

    border-radius:
        10px;

    color:
        #fff;

    background:
        #737c81;

    font-family:
        Georgia,
        serif;

    font-size:
        18px;

    font-style:
        italic;
}


.maintenance-info-card small {
    color:
        #999da0;

    font-size:
        6px;

    font-weight:
        900;

    letter-spacing:
        .12em;
}


.maintenance-info-card h3 {
    margin:
        4px
        0
        0;

    color:
        #343a3e;

    font-size:
        12px;
}


.maintenance-info-card p {
    margin:
        7px
        0
        0;

    color:
        #747a7e;

    font-size:
        9px;

    line-height:
        1.55;
}


.maintenance-info-empty {
    grid-column:
        1 / -1;

    display: grid;

    justify-items:
        center;

    gap: 7px;

    padding:
        35px;

    border:
        1px dashed
        #d4d2ce;

    border-radius:
        13px;

    color:
        #848a8e;

    background:
        #f7f7f5;

    text-align:
        center;
}


.maintenance-info-empty > div {
    display: grid;

    width: 40px;
    height: 40px;

    place-items: center;

    border-radius:
        10px;

    color:
        #fff;

    background:
        #747c81;

    font-family:
        Georgia,
        serif;

    font-size:
        20px;

    font-style:
        italic;
}


/* ------------------------------------------------------------
   Responsiv
   ------------------------------------------------------------ */

@media (max-width: 1150px) {

    .maintenance-overview-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }

}


@media (max-width: 700px) {

    .maintenance-overview-grid,
    .maintenance-info-grid {
        grid-template-columns:
            1fr !important;
    }


    .maintenance-info-head {
        grid-template-columns:
            44px
            minmax(0,1fr);
    }


    .maintenance-info-readonly {
        grid-column:
            1 / -1;

        width:
            fit-content;
    }

}



/* ============================================================
   MAMO BMA · OBJEKTE KARTENANSICHT V1
   ============================================================ */

.objects-map-panel {
    margin-bottom:
        18px;
}


.objects-map-head {
    min-height:
        72px;
}


.objects-map-legend {
    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


.objects-map-legend span {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        #777d81;

    font-size:
        8px;

    font-weight:
        800;
}


.objects-map-legend i {
    display: block;

    width: 8px;
    height: 8px;

    border-radius:
        50%;

    box-shadow:
        0 0 0 3px
        rgba(0,0,0,.035);
}


.objects-map-legend i.ok {
    background:
        #25865c;
}


.objects-map-legend i.maintenance {
    background:
        #3978b6;
}


.objects-map-legend i.defect {
    background:
        #cf3934;
}


.objects-map-canvas {
    width: 100%;

    height:
        clamp(
            480px,
            62vh,
            720px
        );

    min-height:
        480px;

    background:
        #f2f1ee;
}


/* MapLibre Bedienelemente leicht an MAMO angleichen */

.objects-map-canvas
.maplibregl-ctrl-group {
    overflow: hidden;

    border:
        1px solid
        rgba(35,39,42,.10);

    border-radius:
        10px;

    box-shadow:
        0 5px 16px
        rgba(20,24,28,.08);
}


.objects-map-canvas
.maplibregl-ctrl-group button {
    width: 34px;
    height: 34px;

    background-color:
        rgba(255,255,255,.96);
}


/* Popup */

.objects-map-canvas
.maplibregl-popup-content {
    min-width:
        230px;

    padding:
        14px;

    border-radius:
        12px;

    box-shadow:
        0 12px 32px
        rgba(20,24,28,.16);
}


.objects-map-empty {
    display: grid;

    min-height:
        420px;

    place-items: center;

    align-content: center;

    gap: 8px;

    padding:
        40px;

    color:
        #80868a;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(199,52,47,.05),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #f8f8f6,
            #f1f0ed
        );

    text-align:
        center;
}


.objects-map-empty-icon {
    display: grid;

    width: 58px;
    height: 58px;

    margin-bottom:
        8px;

    place-items:
        center;

    border-radius:
        16px;

    color:
        #c7342f;

    background:
        rgba(199,52,47,.08);

    font-size:
        25px;
}


.objects-map-empty strong {
    color:
        #292e32;

    font-size:
        16px;
}


.objects-map-empty span {
    max-width:
        480px;

    font-size:
        10px;

    line-height:
        1.55;
}


@media (max-width: 760px) {

    .objects-map-head {
        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            14px 16px;
    }


    .objects-map-canvas {
        height:
            520px;

        min-height:
            520px;
    }

}



/* ============================================================
   MAMO BMA · OBJEKTINDEX V2
   ============================================================ */

.objects-shell {
    width: 100%;

    max-width: 1720px;

    margin: 0 auto;

    padding:
        30px
        38px
        60px !important;

    box-sizing: border-box;
}


/* Header */

.objects-heading {
    align-items: center !important;

    margin-bottom: 20px !important;
}


.objects-heading-kicker {
    margin-bottom: 6px !important;

    color: #d83933 !important;

    font-size: 8px !important;

    font-weight: 950 !important;

    letter-spacing: .16em !important;
}


.objects-heading h1 {
    font-size:
        clamp(
            28px,
            2.4vw,
            40px
        ) !important;
}


.objects-heading p {
    margin-top: 7px !important;

    font-size: 11px !important;
}


.objects-heading-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}


/* Liste / Karte */

.objects-view-switch {
    display: flex;

    gap: 4px;

    padding: 4px;

    border:
        1px solid #ddd8d2;

    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 4px 12px
        rgba(20,24,28,.035);
}


.objects-view-switch a {
    display: inline-flex;

    min-height: 36px;

    align-items: center;

    padding:
        0
        12px;

    border-radius: 7px;

    color: #656b6f;

    font-size: 9px;

    font-weight: 900;

    text-decoration: none;
}


.objects-view-switch a:hover {
    color: #bd342f;

    background: #fff5f4;
}


.objects-view-switch a.active {
    color: #fff;

    background:
        linear-gradient(
            145deg,
            #df403a,
            #b9322e
        );

    box-shadow:
        0 4px 10px
        rgba(195,53,48,.18);
}


/* KPI-Leiste */

.objects-summary {
    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        ) !important;

    gap: 12px !important;
}


.objects-summary-card {
    position: relative;

    overflow: hidden;

    min-height: 94px;

    box-sizing: border-box;

    padding: 16px 18px !important;

    border:
        1px solid #ddd8d2 !important;

    border-radius: 15px !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f9f7f4
        ) !important;

    box-shadow:
        0 7px 20px
        rgba(20,24,28,.04);
}


.objects-summary-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #d93b35,
            rgba(217,59,53,.08)
        );
}


.objects-summary-card strong {
    margin-top: 6px !important;

    font-size: 27px !important;
}


/* Filter */

.objects-toolbar {
    margin-bottom: 18px !important;

    padding: 10px !important;

    border-color: #ddd8d2 !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        ) !important;

    box-shadow:
        0 5px 15px
        rgba(20,24,28,.035);
}


.objects-filter-button {
    background:
        #d83b36 !important;
}


.objects-filter-button:hover {
    background:
        #bd312d !important;
}


/* Tabelle */

.objects-panel {
    border-color:
        #ddd8d2 !important;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.04);
}


.objects-table tbody tr {
    transition:
        background .14s ease;
}


.objects-table tbody tr:hover {
    background:
        #faf8f5;
}


.object-name {
    color:
        #292e32 !important;

    font-weight:
        900;
}


.object-open {
    color:
        #c83732 !important;

    font-weight:
        900;
}


/* Responsive */

@media (max-width: 950px) {

    .objects-shell {
        padding:
            22px
            20px
            50px !important;
    }


    .objects-heading {
        align-items: flex-start !important;

        flex-direction: column;
    }


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

}


@media (max-width: 620px) {

    .objects-shell {
        padding:
            16px
            12px
            40px !important;
    }


    .objects-heading-actions,
    .objects-view-switch {
        width: 100%;
    }


    .objects-view-switch a {
        flex: 1;

        justify-content: center;
    }


    .objects-summary {
        grid-template-columns:
            1fr !important;
    }


    .objects-toolbar {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · WARTUNGSZENTRALE V2
   Unified UI / Objektakten- & Control-Center-Design
   ============================================================ */


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

.maintenance-index-shell {
    width: 100%;

    max-width: 1720px;

    margin: 0 auto;

    padding:
        30px
        38px
        60px !important;

    box-sizing: border-box;
}


/* ============================================================
   HEADER
   ============================================================ */

.maintenance-index-head {
    margin-bottom: 20px !important;
}


.maintenance-index-kicker {
    margin-bottom: 7px !important;

    color: #d83933 !important;

    font-size: 8px !important;

    font-weight: 950 !important;

    letter-spacing: .16em !important;
}


.maintenance-index-head h1 {
    margin: 0;

    color: #202326 !important;

    font-size:
        clamp(
            30px,
            2.6vw,
            42px
        ) !important;

    line-height: 1 !important;

    letter-spacing:
        -.045em !important;
}


.maintenance-index-head p {
    max-width: 760px;

    margin:
        9px
        0
        0 !important;

    color: #777d81 !important;

    font-size: 11px !important;

    line-height: 1.55 !important;
}


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

.maintenance-index-kpis {
    grid-template-columns:
        repeat(
            7,
            minmax(0,1fr)
        ) !important;

    gap: 10px !important;

    margin-bottom: 16px !important;
}


.maintenance-index-kpi {
    position: relative;

    min-height: 112px !important;

    padding:
        15px
        15px
        14px !important;

    border:
        1px solid #ddd8d2 !important;

    border-radius:
        15px !important;

    background:
        radial-gradient(
            circle at 105% -15%,
            rgba(216,57,52,.055),
            transparent 40%
        ),
        linear-gradient(
            150deg,
            #fff,
            #f9f7f4
        ) !important;

    box-shadow:
        0 7px 20px
        rgba(20,24,28,.045)
        !important;

    transition:
        transform .14s ease,
        box-shadow .14s ease,
        border-color .14s ease !important;
}


.maintenance-index-kpi:hover {
    transform:
        translateY(-2px) !important;

    border-color:
        #cec7c0 !important;

    box-shadow:
        0 13px 28px
        rgba(20,24,28,.085)
        !important;
}


.maintenance-index-kpi small {
    color: #858b8f !important;

    font-size: 7px !important;

    letter-spacing: .11em !important;
}


.maintenance-index-kpi strong {
    margin:
        12px
        0
        8px !important;

    color: #292e32 !important;

    font-size: 29px !important;

    line-height: 1 !important;
}


.maintenance-index-kpi span {
    color: #858b8f !important;

    font-size: 8px !important;

    line-height: 1.4;
}


/* geplant */

.maintenance-index-kpi.tone-planned::before {
    background:
        linear-gradient(
            90deg,
            #d59428,
            rgba(213,148,40,.12) 58%,
            transparent
        ) !important;
}


/* laufend / Woche */

.maintenance-index-kpi.tone-info::before {
    background:
        linear-gradient(
            90deg,
            #3978b6,
            rgba(57,120,182,.10) 58%,
            transparent
        ) !important;
}


/* abgeschlossen */

.maintenance-index-kpi.tone-good::before {
    background:
        linear-gradient(
            90deg,
            #299966,
            rgba(41,153,102,.10) 58%,
            transparent
        ) !important;
}


/* überfällig */

.maintenance-index-kpi.tone-danger::before {
    background:
        linear-gradient(
            90deg,
            #cf3934,
            rgba(207,57,52,.12) 58%,
            transparent
        ) !important;
}


.maintenance-index-kpi.active {
    border-color:
        rgba(207,57,52,.34) !important;

    box-shadow:
        0 0 0 2px
        rgba(207,57,52,.065),
        0 10px 24px
        rgba(20,24,28,.06)
        !important;
}


/* ============================================================
   FILTER
   ============================================================ */

.maintenance-index-filter {
    grid-template-columns:
        minmax(260px,1fr)
        120px
        165px
        minmax(170px,210px)
        180px
        auto !important;

    gap: 9px !important;

    margin-bottom:
        12px !important;

    padding: 10px !important;

    border:
        1px solid #ddd8d2 !important;

    border-radius:
        13px !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        ) !important;

    box-shadow:
        0 5px 15px
        rgba(20,24,28,.035)
        !important;
}


.maintenance-index-filter input,
.maintenance-index-filter select {
    height: 40px !important;

    border-color:
        #ded9d3 !important;

    border-radius:
        9px !important;

    color: #343a3e !important;

    background:
        #faf9f7 !important;

    font-size: 9px !important;
}


.maintenance-index-filter input:focus,
.maintenance-index-filter select:focus {
    outline: 0;

    border-color:
        #cf3934 !important;

    box-shadow:
        0 0 0 3px
        rgba(207,57,52,.07);
}


.maintenance-index-filter button {
    min-height:
        40px !important;

    padding:
        0
        15px !important;

    border-radius:
        9px !important;

    background:
        linear-gradient(
            145deg,
            #df403a,
            #bd312d
        ) !important;

    font-size:
        9px;

    font-weight:
        900 !important;

    box-shadow:
        0 5px 12px
        rgba(195,53,48,.14);
}


/* persönliche Technikersicht */

.maintenance-scope-lock {
    display: flex;

    min-height: 40px;

    box-sizing: border-box;

    flex-direction: column;

    justify-content: center;

    padding:
        0
        11px;

    border:
        1px solid #d8d6d2;

    border-radius:
        9px;

    background:
        #f2f2ef;
}


.maintenance-scope-lock span {
    color: #4f565a;

    font-size: 8px;

    font-weight: 900;
}


.maintenance-scope-lock small {
    margin-top: 2px;

    color: #959a9d;

    font-size: 6px;
}


/* ============================================================
   LISTE / KALENDER SWITCH
   ============================================================ */

.maintenance-view-switch {
    display: flex !important;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    margin-bottom:
        14px;

    padding:
        9px
        10px
        9px
        14px;

    border:
        1px solid #ddd8d2;

    border-radius:
        12px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        );

    box-shadow:
        0 4px 12px
        rgba(20,24,28,.03);
}


.maintenance-view-switch > div:first-child strong {
    display: block;

    color: #30363a;

    font-size: 9px;
}


.maintenance-view-switch > div:first-child span {
    display: block;

    margin-top: 2px;

    color: #94999c;

    font-size: 7px;
}


.maintenance-view-switch-actions {
    display: flex;

    gap: 4px;

    padding: 4px;

    border:
        1px solid #dfdad4;

    border-radius:
        10px;

    background: #fff;
}


.maintenance-view-switch-actions a {
    display: inline-flex;

    min-height: 34px;

    align-items: center;

    justify-content: center;

    padding:
        0
        12px;

    border-radius:
        7px;

    color: #62686c;

    font-size: 8px;

    font-weight: 900;

    text-decoration: none;
}


.maintenance-view-switch-actions a:hover {
    color: #c63732;

    background: #fff6f5;
}


.maintenance-view-switch-actions a.active {
    color: #fff;

    background:
        linear-gradient(
            145deg,
            #df403a,
            #bd312d
        );

    box-shadow:
        0 4px 10px
        rgba(195,53,48,.17);
}


/* ============================================================
   LISTENPANEL
   ============================================================ */

.maintenance-index-panel {
    border:
        1px solid #ddd8d2 !important;

    border-radius:
        16px !important;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.045)
        !important;
}


.maintenance-index-panel-head {
    min-height:
        62px !important;

    padding:
        0
        18px !important;
}


.maintenance-index-panel-head h2 {
    font-size:
        15px !important;
}


.maintenance-index-panel-head span {
    font-size:
        9px !important;
}


/* Tabelle */

.maintenance-index-table th {
    padding:
        10px
        13px !important;

    color: #858b8f !important;

    background:
        #faf9f7 !important;

    font-size:
        7px !important;

    letter-spacing:
        .09em !important;
}


.maintenance-index-table td {
    padding:
        13px !important;

    font-size:
        10px !important;
}


.maintenance-index-table td strong,
.maintenance-index-primary {
    color: #30363a !important;

    font-size:
        10px !important;

    font-weight:
        900 !important;
}


.maintenance-index-table td small {
    margin-top:
        3px !important;

    color: #93989b !important;

    font-size:
        7px !important;
}


.maintenance-index-table tbody tr {
    transition:
        background .14s ease;
}


.maintenance-index-table tbody tr:hover td {
    background:
        #faf8f5 !important;
}


/* laufende Wartung */

.maintenance-index-table
tr.is-running td:first-child {
    box-shadow:
        inset 3px 0 0
        #3978b6;
}


/* überfällig */

.maintenance-index-table
tr.is-overdue td:first-child {
    box-shadow:
        inset 3px 0 0
        #cf3934;
}


.maintenance-index-table
tr.is-overdue td {
    background:
        rgba(207,57,52,.018);
}


/* Status */

.maintenance-index-status {
    padding:
        5px
        8px !important;

    font-size:
        7px !important;

    font-weight:
        900 !important;
}


.maintenance-index-status.danger {
    color:
        #b6332f !important;

    background:
        #fdebea !important;
}


/* Öffnen */

.maintenance-index-open {
    min-height:
        32px !important;

    padding:
        0
        9px !important;

    font-size:
        7px !important;

    font-weight:
        900 !important;
}


/* ============================================================
   KALENDER
   ============================================================ */

.maintenance-calendar-panel {
    overflow: hidden;

    border:
        1px solid #ddd8d2;

    border-radius:
        16px;

    background: #fff;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.045);
}


.maintenance-calendar-head {
    display: flex;

    min-height: 72px;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    padding:
        0
        18px;

    border-bottom:
        1px solid #e9e5e0;

    background:
        linear-gradient(
            180deg,
            #fff,
            #faf9f7
        );
}


.maintenance-calendar-head small {
    display: block;

    color: #d83933;

    font-size: 7px;

    font-weight: 950;

    letter-spacing: .15em;
}


.maintenance-calendar-head h2 {
    margin:
        4px
        0
        0;

    color: #292e32;

    font-size: 20px;

    letter-spacing: -.03em;
}


.maintenance-calendar-nav {
    display: flex;

    gap: 5px;
}


.maintenance-calendar-nav a {
    display: inline-flex;

    min-width: 36px;
    min-height: 34px;

    box-sizing: border-box;

    align-items: center;

    justify-content: center;

    padding:
        0
        10px;

    border:
        1px solid #ddd8d2;

    border-radius:
        8px;

    color: #555c60;

    background: #fff;

    font-size: 8px;

    font-weight: 900;

    text-decoration: none;
}


.maintenance-calendar-nav a:hover {
    color: #c73732;

    border-color:
        rgba(199,55,50,.4);

    background:
        #fff7f6;
}


/* Wochentage */

.maintenance-calendar-weekdays {
    display: grid;

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

    border-bottom:
        1px solid #e8e4df;

    background:
        #f7f6f3;
}


.maintenance-calendar-weekdays span {
    padding:
        9px
        10px;

    color: #858a8e;

    font-size: 7px;

    font-weight: 900;

    text-align: center;

    text-transform: uppercase;
}


/* Kalender */

.maintenance-calendar-grid {
    display: grid;

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

    background:
        #e9e5e0;

    gap: 1px;
}


.maintenance-calendar-day {
    min-width: 0;

    min-height: 132px;

    padding:
        8px;

    box-sizing:
        border-box;

    background: #fff;
}


.maintenance-calendar-day.outside {
    background:
        #f8f7f5;

    opacity: .57;
}


.maintenance-calendar-day.today {
    box-shadow:
        inset 0 0 0 2px
        rgba(216,59,54,.34);

    background:
        #fffafa;
}


.maintenance-calendar-day > header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 7px;
}


.maintenance-calendar-day > header > span {
    display: grid;

    width: 25px;
    height: 25px;

    place-items: center;

    border-radius:
        8px;

    color: #4c5357;

    font-size: 9px;

    font-weight: 950;
}


.maintenance-calendar-day.today
> header > span {
    color: #fff;

    background:
        #d93b35;
}


.maintenance-calendar-day
> header > small {
    display: grid;

    min-width: 20px;
    height: 20px;

    place-items: center;

    border-radius:
        999px;

    color: #747a7e;

    background:
        #eeeeeb;

    font-size: 7px;

    font-weight: 900;
}


.maintenance-calendar-events {
    display: grid;

    gap: 5px;
}


/* Termin */

.maintenance-calendar-event {
    display: block;

    min-width: 0;

    padding:
        7px
        8px;

    border:
        1px solid #e0dcd7;

    border-left:
        3px solid #d59428;

    border-radius:
        8px;

    color: inherit;

    background:
        #fffbf3;

    text-decoration: none;

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


.maintenance-calendar-event:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 5px 12px
        rgba(20,24,28,.06);
}


.maintenance-calendar-event strong {
    display: block;

    overflow: hidden;

    color: #30363a;

    font-size: 8px;

    font-weight: 950;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.maintenance-calendar-event span {
    display: block;

    overflow: hidden;

    margin-top: 2px;

    color: #646b6f;

    font-size: 7px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.maintenance-calendar-event small {
    display: block;

    overflow: hidden;

    margin-top: 2px;

    color: #969b9e;

    font-size: 6px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* laufend */

.maintenance-calendar-event.in_progress {
    border-left-color:
        #3978b6;

    background:
        #f2f7fc;
}


/* abgeschlossen */

.maintenance-calendar-event.completed {
    border-left-color:
        #299966;

    background:
        #f2faf6;
}


/* überfällig */

.maintenance-calendar-event.overdue {
    border-color:
        rgba(207,57,52,.23);

    border-left-color:
        #cf3934;

    background:
        #fff3f2;
}


/* abgebrochen */

.maintenance-calendar-event.cancelled {
    border-left-color:
        #9ba1a4;

    background:
        #f3f4f4;

    opacity:
        .7;
}


.maintenance-calendar-technician {
    margin-top:
        5px !important;

    padding-top:
        4px;

    border-top:
        1px solid
        rgba(0,0,0,.055);

    color:
        #656c70 !important;

    font-weight:
        850;
}


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

@media (max-width: 1500px) {

    .maintenance-index-kpis {
        grid-template-columns:
            repeat(
                4,
                minmax(0,1fr)
            ) !important;
    }


    .maintenance-index-filter {
        grid-template-columns:
            minmax(240px,1fr)
            repeat(2,minmax(135px,.45fr))
            minmax(160px,.55fr)
            minmax(160px,.55fr)
            auto !important;
    }

}


@media (max-width: 1100px) {

    .maintenance-index-filter {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }


    .maintenance-calendar-day {
        min-height:
            110px;
    }

}


@media (max-width: 760px) {

    .maintenance-index-shell {
        padding:
            20px
            14px
            48px !important;
    }


    .maintenance-index-kpis {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }


    .maintenance-index-filter {
        grid-template-columns:
            1fr !important;
    }


    .maintenance-view-switch {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .maintenance-view-switch-actions {
        width: 100%;
    }


    .maintenance-view-switch-actions a {
        flex: 1;
    }


    /*
     * Kalender bleibt horizontal scrollbar.
     * Eine Kalenderwoche darf auf Mobile nicht auf
     * sieben unlesbare Minispalten zusammengedrückt werden.
     */

    .maintenance-calendar-panel {
        overflow-x: auto;
    }


    .maintenance-calendar-head,
    .maintenance-calendar-weekdays,
    .maintenance-calendar-grid {
        min-width:
            850px;
    }

}



/* ============================================================
   MAMO BMA · MÄNGELZENTRALE V2
   Unified Operations UI
   ============================================================ */


/* ============================================================
   SEITENRAHMEN
   ============================================================ */

.defect-index-shell {
    width: 100%;

    max-width: 1720px;

    margin: 0 auto;

    padding:
        30px
        38px
        60px !important;

    box-sizing: border-box;
}


/* ============================================================
   HEADER
   ============================================================ */

.defect-index-head {
    margin-bottom:
        20px !important;
}


.defect-index-kicker {
    margin-bottom:
        7px !important;

    color:
        #d83933 !important;

    font-size:
        8px !important;

    font-weight:
        950 !important;

    letter-spacing:
        .16em !important;
}


.defect-index-head h1 {
    margin: 0;

    color:
        #202326 !important;

    font-size:
        clamp(
            30px,
            2.6vw,
            42px
        ) !important;

    line-height:
        1 !important;

    letter-spacing:
        -.045em !important;
}


.defect-index-head p {
    max-width:
        760px;

    margin:
        9px
        0
        0 !important;

    color:
        #777d81 !important;

    font-size:
        11px !important;

    line-height:
        1.55 !important;
}


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

.defect-index-kpis {
    grid-template-columns:
        repeat(
            5,
            minmax(0,1fr)
        ) !important;

    gap:
        10px !important;

    margin-bottom:
        16px !important;
}


.defect-index-kpi {
    min-height:
        112px !important;

    padding:
        15px
        15px
        14px !important;

    border:
        1px solid #ddd8d2 !important;

    border-radius:
        15px !important;

    background:
        radial-gradient(
            circle at 105% -15%,
            rgba(216,57,52,.05),
            transparent 40%
        ),
        linear-gradient(
            150deg,
            #fff,
            #f9f7f4
        ) !important;

    box-shadow:
        0 7px 20px
        rgba(20,24,28,.045)
        !important;

    transition:
        transform .14s ease,
        box-shadow .14s ease,
        border-color .14s ease
        !important;
}


.defect-index-kpi:hover {
    transform:
        translateY(-2px) !important;

    border-color:
        #cec7c0 !important;

    box-shadow:
        0 13px 28px
        rgba(20,24,28,.085)
        !important;
}


.defect-index-kpi small {
    color:
        #858b8f !important;

    font-size:
        7px !important;

    letter-spacing:
        .11em !important;
}


.defect-index-kpi strong {
    margin:
        12px
        0
        8px !important;

    color:
        #292e32 !important;

    font-size:
        29px !important;

    line-height:
        1 !important;
}


.defect-index-kpi span {
    color:
        #858b8f !important;

    font-size:
        8px !important;

    line-height:
        1.4;
}


/* Offen */

.defect-index-kpi.tone-bad::before {
    background:
        linear-gradient(
            90deg,
            #cf3934,
            rgba(207,57,52,.12) 58%,
            transparent
        ) !important;
}


/* In Bearbeitung */

.defect-index-kpi.tone-info::before {
    background:
        linear-gradient(
            90deg,
            #3978b6,
            rgba(57,120,182,.10) 58%,
            transparent
        ) !important;
}


/* Behoben */

.defect-index-kpi.tone-good::before {
    background:
        linear-gradient(
            90deg,
            #299966,
            rgba(41,153,102,.10) 58%,
            transparent
        ) !important;
}


/* Kritisch offen */

.defect-index-kpi.tone-critical::before {
    background:
        linear-gradient(
            90deg,
            #a92521,
            rgba(169,37,33,.15) 58%,
            transparent
        ) !important;
}


.defect-index-kpi.active {
    border-color:
        rgba(207,57,52,.34) !important;

    box-shadow:
        0 0 0 2px
        rgba(207,57,52,.06),
        0 10px 24px
        rgba(20,24,28,.06)
        !important;
}


/* ============================================================
   FILTER
   ============================================================ */

.defect-index-filter {
    grid-template-columns:
        minmax(280px,1fr)
        165px
        165px
        minmax(180px,220px)
        auto !important;

    gap:
        9px !important;

    margin-bottom:
        16px !important;

    padding:
        10px !important;

    border:
        1px solid #ddd8d2 !important;

    border-radius:
        13px !important;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf9f7
        ) !important;

    box-shadow:
        0 5px 15px
        rgba(20,24,28,.035)
        !important;
}


.defect-index-filter input,
.defect-index-filter select {
    height:
        40px !important;

    border-color:
        #ded9d3 !important;

    border-radius:
        9px !important;

    color:
        #343a3e !important;

    background:
        #faf9f7 !important;

    font-size:
        9px !important;
}


.defect-index-filter input:focus,
.defect-index-filter select:focus {
    outline: 0;

    border-color:
        #cf3934 !important;

    box-shadow:
        0 0 0 3px
        rgba(207,57,52,.07);
}


.defect-index-filter button {
    min-height:
        40px !important;

    padding:
        0
        15px !important;

    border-radius:
        9px !important;

    background:
        linear-gradient(
            145deg,
            #df403a,
            #bd312d
        ) !important;

    font-size:
        9px;

    font-weight:
        900 !important;

    box-shadow:
        0 5px 12px
        rgba(195,53,48,.14);
}


/* ============================================================
   PANEL
   ============================================================ */

.defect-index-panel {
    border:
        1px solid #ddd8d2 !important;

    border-radius:
        16px !important;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.045)
        !important;
}


.defect-index-panel-head {
    min-height:
        62px !important;

    padding:
        0
        18px !important;
}


.defect-index-panel-head h2 {
    font-size:
        15px !important;
}


.defect-index-panel-head span {
    font-size:
        9px !important;
}


/* ============================================================
   TABELLE
   ============================================================ */

.defect-index-table th {
    padding:
        10px
        13px !important;

    color:
        #858b8f !important;

    background:
        #faf9f7 !important;

    font-size:
        7px !important;

    letter-spacing:
        .09em !important;
}


.defect-index-table td {
    padding:
        13px !important;

    color:
        #3e4549 !important;

    font-size:
        10px !important;
}


.defect-index-table td strong,
.defect-index-primary {
    color:
        #30363a !important;

    font-size:
        10px !important;

    font-weight:
        900 !important;
}


.defect-index-table td small {
    margin-top:
        3px !important;

    color:
        #93989b !important;

    font-size:
        7px !important;
}


.defect-index-row {
    transition:
        background .14s ease;
}


.defect-index-row:hover td {
    background:
        #faf8f5 !important;
}


/* ============================================================
   STATUS-FÜHRUNGSKANTE
   ============================================================ */

/* offen */

.defect-index-row.status-open
td:first-child {
    box-shadow:
        inset 3px 0 0
        #cf3934;
}


/* in Bearbeitung */

.defect-index-row.status-in_progress
td:first-child {
    box-shadow:
        inset 3px 0 0
        #3978b6;
}


/* behoben */

.defect-index-row.status-resolved
td:first-child {
    box-shadow:
        inset 3px 0 0
        #299966;
}


/* kritisch überschreibt optisch */

.defect-index-row.severity-critical
td:first-child {
    box-shadow:
        inset 4px 0 0
        #a92521;
}


.defect-index-row.severity-critical
td {
    background:
        rgba(169,37,33,.018);
}


.defect-index-row.status-resolved
td {
    background:
        rgba(41,153,102,.012);
}


/* ============================================================
   STATUS / PRIORITÄT
   ============================================================ */

.defect-status,
.defect-severity {
    padding:
        5px
        8px !important;

    font-size:
        7px !important;

    font-weight:
        900 !important;
}


/* Status */

.defect-status.status-open {
    color:
        #ad312d !important;

    background:
        #fdebea !important;
}


.defect-status.status-in_progress {
    color:
        #3978b6 !important;

    background:
        #eaf3fb !important;
}


.defect-status.status-resolved {
    color:
        #25865c !important;

    background:
        #e8f4ed !important;
}


/* Priorität */

.defect-severity.severity-critical {
    color:
        #fff !important;

    background:
        #a92521 !important;
}


.defect-severity.severity-high {
    color:
        #a43b2d !important;

    background:
        #fae9e4 !important;
}


.defect-severity.severity-normal {
    color:
        #916019 !important;

    background:
        #fff1df !important;
}


.defect-severity.severity-low {
    color:
        #687177 !important;

    background:
        #eef0f1 !important;
}


/* ============================================================
   ÖFFNEN
   ============================================================ */

.defect-index-open {
    min-height:
        32px !important;

    padding:
        0
        9px !important;

    font-size:
        7px !important;

    font-weight:
        900 !important;
}


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

@media (max-width: 1200px) {

    .defect-index-kpis {
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            ) !important;
    }


    .defect-index-filter {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }

}


@media (max-width: 760px) {

    .defect-index-shell {
        padding:
            20px
            14px
            48px !important;
    }


    .defect-index-kpis {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }


    .defect-index-filter {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · TECHNIK HUB V2
   ============================================================ */

.technology-main-hub {
    margin-top: 0;
}


.technology-main-intro {
    max-width: 720px;

    margin:
        5px
        0
        0;

    color:
        #858b8f;

    font-size:
        8px;

    line-height:
        1.5;
}


.technology-main-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        ) !important;
}


/*
 * Hauptkacheln benutzen vollständig das bestehende
 * object-main-tile Design-System.
 *
 * Kein separates Technik-Design mehr.
 */


@media (max-width: 1150px) {

    .technology-main-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }

}


@media (max-width: 650px) {

    .technology-main-grid {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · DOKUMENTE V2
   Tile → Detail → Back
   ============================================================ */


/* ------------------------------------------------------------
   8 Kategorien + Upload = sauberes 3 x 3 Raster
   ------------------------------------------------------------ */

.document-category-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        ) !important;

    gap:
        11px !important;
}


/*
 * Dateien innerhalb einer Kategorie bleiben vier-spaltig,
 * da sie kleinere Inhaltskarten sind.
 */

.document-file-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        ) !important;
}


/* ------------------------------------------------------------
   UPLOAD-KACHEL
   bewusst hell – keine dunkle Sonderkachel mehr
   ------------------------------------------------------------ */

.document-upload-action-tile {
    border-top-color:
        #299966 !important;

    background:
        radial-gradient(
            circle at 105% -10%,
            rgba(41,153,102,.065),
            transparent 38%
        ),
        linear-gradient(
            150deg,
            #fff,
            #f5faf7
        ) !important;
}


.document-upload-action-icon {
    background:
        linear-gradient(
            145deg,
            #35ad75,
            #217d53
        ) !important;
}


.document-upload-action-info {
    display:
        inline-flex;

    align-self:
        flex-start;

    margin-top:
        13px;

    padding:
        5px
        7px;

    border-radius:
        999px;

    color:
        #287a56;

    background:
        #e9f6ef;

    font-size:
        6px;

    font-weight:
        900;

    text-transform:
        uppercase;
}


/* ============================================================
   DEDIZIERTE UPLOAD-ANSICHT
   ============================================================ */

.document-upload-page {
    overflow:
        hidden;

    border:
        1px solid #d9d4ce;

    border-top:
        3px solid #299966;

    border-radius:
        15px;

    background:
        #fff;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.045);
}


.document-upload-page-head {
    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        17px
        18px;

    border-bottom:
        1px solid #e8e4df;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f6faf8
        );
}


.document-upload-page-icon {
    display:
        grid;

    width:
        46px;

    height:
        46px;

    flex:
        0 0 46px;

    place-items:
        center;

    border-radius:
        12px;

    color:
        #fff;

    background:
        linear-gradient(
            145deg,
            #35ad75,
            #217d53
        );

    font-size:
        20px;

    font-weight:
        900;
}


.document-upload-page-head h3 {
    margin:
        4px
        0
        0;

    color:
        #292e32;

    font-size:
        16px;

    letter-spacing:
        -.025em;
}


.document-upload-page-head p {
    margin:
        5px
        0
        0;

    color:
        #858b8f;

    font-size:
        8px;

    line-height:
        1.5;
}


.document-upload-page-body {
    padding:
        18px;

    background:
        #faf9f7;
}


/* Upload Formular */

.document-upload-page
.object-data-form-grid {
    padding:
        0;
}


.document-upload-page
.object-data-field input,

.document-upload-page
.object-data-field select,

.document-upload-page
.object-data-field textarea {
    background:
        #fff;
}


/* ============================================================
   UPLOAD AUS KATEGORIE
   ============================================================ */

.document-category-upload-action {
    display:
        grid;

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

    gap:
        12px;

    align-items:
        center;

    margin-top:
        14px;

    padding:
        11px
        13px;

    border:
        1px solid #cfe1d7;

    border-radius:
        11px;

    color:
        inherit;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f4faf6
        );

    text-decoration:
        none;

    transition:
        border-color .14s ease,
        transform .14s ease,
        box-shadow .14s ease;
}


.document-category-upload-action > span {
    display:
        grid;

    width:
        36px;

    height:
        36px;

    place-items:
        center;

    border-radius:
        9px;

    color:
        #fff;

    background:
        #299966;

    font-size:
        17px;

    font-weight:
        900;
}


.document-category-upload-action strong {
    display:
        block;

    color:
        #30363a;

    font-size:
        9px;
}


.document-category-upload-action small {
    display:
        block;

    margin-top:
        3px;

    color:
        #8c9296;

    font-size:
        7px;
}


.document-category-upload-action > b {
    color:
        #299966;

    font-size:
        13px;
}


.document-category-upload-action:hover {
    transform:
        translateY(-1px);

    border-color:
        #299966;

    box-shadow:
        0 7px 18px
        rgba(20,24,28,.06);
}


/* ============================================================
   DATEIKARTEN ETWAS LEICHTER
   ============================================================ */

.document-file-card {
    min-height:
        185px !important;

    border-top-color:
        #8b9296 !important;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f9f8f6
        ) !important;
}


.document-file-extension {
    background:
        #626b70 !important;
}


.document-file-actions a:hover {
    color:
        #d13934;
}


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

@media (max-width: 1150px) {

    .document-category-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }


    .document-file-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            ) !important;
    }

}


@media (max-width: 850px) {

    .document-file-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }

}


@media (max-width: 600px) {

    .document-category-grid,
    .document-file-grid {
        grid-template-columns:
            1fr !important;
    }


    .document-upload-page-body {
        padding:
            13px;
    }

}



/* ============================================================
   MAMO BMA · KONTAKTE V3
   Tile → Detail → Back
   ============================================================ */


/* ------------------------------------------------------------
   KONTAKT-KACHEL ALS LINK
   ------------------------------------------------------------ */

.contact-person-link {
    display: block;

    color: inherit;

    text-decoration: none;

    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}


.contact-person-link
.contact-person-summary {
    cursor: pointer;
}


/*
 * Das globale Tile-System bewegt bereits contact-person-summary.
 * Bei der neuen Linkstruktur bewegt sich stattdessen die ganze Karte.
 */

.contact-person-link:hover
.contact-person-summary {
    transform:
        none !important;

    box-shadow:
        none !important;
}


@media (hover:hover) {

    .contact-person-link:hover {
        transform:
            translateY(-3px);

        border-color:
            rgba(203,55,50,.46);

        box-shadow:
            0 17px 37px
            rgba(20,24,28,.10),
            0 2px 7px
            rgba(20,24,28,.04);
    }

}


/* Hauptkontakt */

.contact-person-link.is-primary {
    border-top-color:
        #299966;
}


/* ------------------------------------------------------------
   ADD-KACHEL · HELL STATT DUNKEL
   ------------------------------------------------------------ */

.contact-add-action-tile {
    border-top-color:
        #299966 !important;

    background:
        radial-gradient(
            circle at 105% -10%,
            rgba(41,153,102,.065),
            transparent 38%
        ),
        linear-gradient(
            150deg,
            #fff,
            #f5faf7
        ) !important;
}


.contact-add-action-tile
.contact-person-summary {
    min-height:
        195px;

    align-items:
        flex-start;
}


.contact-add-action-icon {
    background:
        linear-gradient(
            145deg,
            #35ad75,
            #217d53
        ) !important;
}


.contact-add-action-title {
    margin:
        15px
        0
        0;

    color:
        #292e32;

    font-size:
        13px;

    font-weight:
        950;
}


.contact-add-action-copy {
    margin:
        5px
        0
        0;

    color:
        #8a9094;

    font-size:
        8px;

    line-height:
        1.45;
}


.contact-add-permission {
    display:
        inline-flex;

    margin-top:
        14px;

    padding:
        5px
        7px;

    border-radius:
        999px;

    color:
        #287a56;

    background:
        #e9f6ef;

    font-size:
        6px;

    font-weight:
        900;

    text-transform:
        uppercase;
}


/* ============================================================
   KONTAKT WORK PAGE
   ============================================================ */

.contact-work-page {
    overflow: hidden;

    border:
        1px solid #d9d4ce;

    border-radius:
        15px;

    background:
        #fff;

    box-shadow:
        0 8px 24px
        rgba(20,24,28,.045);
}


.contact-work-hero {
    display: flex;

    align-items: center;

    gap: 15px;

    padding:
        18px;

    border-bottom:
        1px solid #e6e2dd;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(211,57,52,.045),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.contact-work-avatar {
    display: grid;

    width:
        54px;

    height:
        54px;

    flex:
        0 0 54px;

    place-items:
        center;

    border-radius:
        14px;

    color:
        #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size:
        18px;

    font-weight:
        950;
}


.contact-work-avatar-add {
    background:
        linear-gradient(
            145deg,
            #35ad75,
            #217d53
        );

    font-size:
        22px;
}


.contact-work-hero-copy {
    min-width: 0;
}


.contact-work-hero-copy h3 {
    margin:
        4px
        0
        0;

    color:
        #292e32;

    font-size:
        20px;

    letter-spacing:
        -.03em;
}


.contact-work-hero-copy > p {
    margin:
        5px
        0
        0;

    color:
        #858b8f;

    font-size:
        8px;

    line-height:
        1.5;
}


.contact-work-meta {
    display: flex;

    gap: 5px;

    flex-wrap: wrap;

    margin-top:
        7px;
}


.contact-work-meta span {
    display: inline-flex;

    padding:
        5px
        7px;

    border-radius:
        999px;

    color:
        #687075;

    background:
        #eceeea;

    font-size:
        6px;

    font-weight:
        850;
}


.contact-work-meta span.good {
    color:
        #23704f;

    background:
        #e8f5ee;
}


.contact-work-body {
    padding:
        18px;

    background:
        #faf9f7;
}


/* ============================================================
   READ ONLY
   ============================================================ */

.contact-readonly-grid {
    display: grid;

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

    gap:
        9px;
}


.contact-readonly-grid > div {
    min-width: 0;

    padding:
        11px
        12px;

    border:
        1px solid #e1ddd8;

    border-radius:
        10px;

    background:
        #fff;
}


.contact-readonly-grid > div.full {
    grid-column:
        1 / -1;
}


.contact-readonly-grid > div > span {
    display: block;

    color:
        #9a9fa2;

    font-size:
        6px;

    font-weight:
        900;

    letter-spacing:
        .05em;

    text-transform:
        uppercase;
}


.contact-readonly-grid > div > strong {
    display: block;

    margin-top:
        5px;

    overflow-wrap:
        anywhere;

    color:
        #3b4246;

    font-size:
        9px;

    line-height:
        1.45;
}


.contact-readonly-grid a {
    color:
        #30363a;

    text-decoration:
        none;
}


.contact-readonly-grid a:hover {
    color:
        #cf3934;
}


/* ============================================================
   DELETE-BEREICH
   ============================================================ */

.contact-work-danger {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap:
        20px;

    margin-top:
        22px;

    padding:
        13px;

    border:
        1px solid #efd0ce;

    border-radius:
        10px;

    background:
        #fff6f5;
}


.contact-work-danger strong {
    display: block;

    color:
        #a93430;

    font-size:
        9px;
}


.contact-work-danger span {
    display: block;

    margin-top:
        3px;

    color:
        #9a7774;

    font-size:
        7px;
}


.contact-work-danger form {
    margin: 0;
}


.contact-work-danger
.contact-delete {
    min-height:
        36px;

    padding:
        0
        11px;

    border:
        1px solid #d76b66;

    border-radius:
        8px;

    color:
        #ae312d;

    background:
        #fff;

    font-size:
        7px;

    font-weight:
        900;

    cursor:
        pointer;
}


.contact-work-danger
.contact-delete:hover {
    color:
        #fff;

    background:
        #be342f;
}


/* ============================================================
   ALTE EXPANDER NICHT MEHR BENÖTIGT
   ============================================================ */

.contact-work-page
.contact-editor-head {
    margin-bottom:
        16px;
}


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

@media (max-width: 1050px) {

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

}


@media (max-width: 700px) {

    .contact-readonly-grid {
        grid-template-columns:
            1fr;
    }


    .contact-readonly-grid > div.full {
        grid-column:
            auto;
    }


    .contact-work-hero {
        align-items:
            flex-start;
    }


    .contact-work-danger {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .contact-work-danger
    .contact-delete {
        width: 100%;

        min-height:
            44px;
    }

}



/* ============================================================
   MAMO BMA · ZUTRITT V2
   Einsatzübersicht → Bearbeiten → Zurück
   ============================================================ */

.access-overview {
    display: grid;
    gap: 13px;
}


.access-overview-head {
    display: flex;

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

    gap: 20px;

    padding:
        16px
        18px;

    border:
        1px solid #ddd8d2;

    border-radius:
        15px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(211,57,52,.045),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 7px 20px
        rgba(20,24,28,.04);
}


.access-overview-head h3 {
    margin:
        4px
        0
        0;

    color:
        #292e32;

    font-size:
        17px;

    letter-spacing:
        -.025em;
}


.access-overview-head p {
    margin:
        5px
        0
        0;

    color:
        #858b8f;

    font-size:
        8px;

    line-height:
        1.5;
}


.access-edit-action {
    display: inline-flex;

    min-height: 38px;

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

    padding:
        0
        13px;

    border:
        1px solid #d73b35;

    border-radius:
        9px;

    color:
        #fff;

    background:
        linear-gradient(
            145deg,
            #df403a,
            #bd312d
        );

    box-shadow:
        0 5px 12px
        rgba(195,53,48,.14);

    font-size:
        8px;

    font-weight:
        900;

    text-decoration:
        none;
}


.access-edit-action:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 17px
        rgba(195,53,48,.20);
}


/* ============================================================
   KARTEN
   ============================================================ */

.access-overview-grid {
    display: grid;

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

    gap:
        11px;
}


.access-overview-card {
    position: relative;

    overflow: hidden;

    padding:
        15px;

    border:
        1px solid #d9d4ce;

    border-top:
        3px solid #df3934;

    border-radius:
        15px;

    background:
        radial-gradient(
            circle at 108% -10%,
            rgba(211,57,52,.055),
            transparent 38%
        ),
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.045);
}


.access-overview-card::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .55;

    background-image:
        radial-gradient(
            circle at 110% -12%,
            transparent 0 74px,
            rgba(211,57,52,.07) 75px 76px,
            transparent 77px 100px
        ),
        linear-gradient(
            rgba(42,48,52,.018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(42,48,52,.018) 1px,
            transparent 1px
        );

    background-size:
        auto,
        27px 27px,
        27px 27px;
}


.access-overview-card > * {
    position: relative;
    z-index: 1;
}


.access-overview-card-wide {
    grid-column:
        1 / -1;

    border-top-color:
        #8d9599;
}


.access-overview-card-head {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom:
        13px;
}


.access-overview-icon {
    display: grid;

    width:
        41px;

    height:
        41px;

    flex:
        0 0 41px;

    place-items:
        center;

    border-radius:
        11px;

    color:
        #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size:
        15px;

    font-weight:
        950;
}


.access-overview-icon.warning {
    background:
        linear-gradient(
            145deg,
            #d99a2d,
            #ad7012
        );
}


.access-overview-card-head small {
    display: block;

    color:
        #d33a34;

    font-size:
        6px;

    font-weight:
        950;

    letter-spacing:
        .13em;
}


.access-overview-card-head h3 {
    margin:
        3px
        0
        0;

    color:
        #292e32;

    font-size:
        12px;

    font-weight:
        950;
}


/* ============================================================
   DATENZEILEN
   ============================================================ */

.access-overview-data {
    display: grid;

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

    gap:
        7px;
}


.access-overview-data > div {
    min-width: 0;

    padding:
        9px
        10px;

    border-radius:
        8px;

    background:
        rgba(240,239,235,.76);
}


.access-overview-data > div.full {
    grid-column:
        1 / -1;
}


.access-overview-data span,
.access-requirement-summary span,
.access-notes-grid span {
    display: block;

    color:
        #989da0;

    font-size:
        6px;

    font-weight:
        900;

    text-transform:
        uppercase;
}


.access-overview-data strong,
.access-requirement-summary strong {
    display: block;

    margin-top:
        4px;

    color:
        #3b4246;

    font-size:
        8px;

    line-height:
        1.45;
}


/* ============================================================
   SICHERHEITSANFORDERUNGEN
   ============================================================ */

.access-requirement-summary {
    display: grid;

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

    gap:
        7px;
}


.access-requirement-summary > div {
    padding:
        9px
        10px;

    border:
        1px solid #e2ded8;

    border-radius:
        8px;

    background:
        #fff;
}


/* ============================================================
   HINWEISE
   ============================================================ */

.access-notes-grid {
    display: grid;

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

    gap:
        10px;
}


.access-notes-grid > div {
    padding:
        11px;

    border:
        1px solid #e3dfda;

    border-radius:
        9px;

    background:
        rgba(255,255,255,.84);
}


.access-notes-grid p {
    margin:
        5px
        0
        0;

    color:
        #555d61;

    font-size:
        8px;

    line-height:
        1.55;

    white-space:
        pre-line;
}


/* ============================================================
   CREDENTIALS HINWEIS
   ============================================================ */

.access-credentials-note {
    display: flex;

    align-items:
        flex-start;

    gap:
        11px;

    padding:
        11px
        13px;

    border:
        1px solid #ead9b5;

    border-radius:
        10px;

    background:
        #fffaf0;
}


.access-credentials-note > span {
    display: grid;

    width:
        28px;

    height:
        28px;

    flex:
        0 0 28px;

    place-items:
        center;

    border-radius:
        8px;

    color:
        #fff;

    background:
        #c98a20;

    font-weight:
        950;
}


.access-credentials-note strong {
    display: block;

    color:
        #6d562e;

    font-size:
        8px;
}


.access-credentials-note p {
    margin:
        3px
        0
        0;

    color:
        #8a795d;

    font-size:
        7px;

    line-height:
        1.5;
}


/* ============================================================
   EDIT MODE
   ============================================================ */

.object-area form
.object-data-card {
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.object-area form
.object-data-card:hover {
    border-color:
        #d0cac3;

    box-shadow:
        0 7px 18px
        rgba(20,24,28,.035);
}


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

@media (max-width: 900px) {

    .access-overview-grid {
        grid-template-columns:
            1fr;
    }


    .access-overview-card-wide {
        grid-column:
            auto;
    }

}


@media (max-width: 650px) {

    .access-overview-head {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .access-edit-action {
        width: 100%;

        box-sizing:
            border-box;

        min-height:
            44px;
    }


    .access-overview-data,
    .access-requirement-summary,
    .access-notes-grid {
        grid-template-columns:
            1fr;
    }


    .access-overview-data > div.full {
        grid-column:
            auto;
    }

}



/* ============================================================
   MAMO BMA · HISTORIE V2
   Tageschronik
   ============================================================ */


/* ------------------------------------------------------------
   Hub kompakter
   ------------------------------------------------------------ */

.history-hub-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        ) !important;

    gap:
        11px !important;
}


.history-hub-tile {
    min-height:
        160px !important;
}


/* ============================================================
   BEREICHSKOPF
   ============================================================ */

.history-area-head {
    margin-bottom:
        16px !important;

    padding:
        13px
        15px;

    border:
        1px solid #ddd8d2;

    border-radius:
        12px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.history-area-head h3 {
    font-size:
        15px !important;
}


.history-area-head span {
    font-size:
        7px !important;
}


/* ============================================================
   TAGESGRUPPEN
   ============================================================ */

.history-timeline-v2 {
    display: grid;

    gap:
        18px;
}


.history-day-group {
    display: grid;

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

    gap:
        16px;
}


.history-day-head {
    position:
        relative;
}


.history-day-date {
    position:
        sticky;

    top:
        18px;

    padding:
        11px
        10px;

    border:
        1px solid #ddd8d2;

    border-radius:
        10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f5f3f0
        );

    box-shadow:
        0 5px 14px
        rgba(20,24,28,.035);
}


.history-day-date strong {
    display:
        block;

    color:
        #30363a;

    font-size:
        11px;

    font-weight:
        950;
}


.history-day-date span {
    display:
        block;

    margin-top:
        4px;

    color:
        #989da0;

    font-size:
        6px;

    font-weight:
        850;

    text-transform:
        uppercase;
}


/* ============================================================
   EREIGNISSE
   ============================================================ */

.history-day-events {
    position:
        relative;

    display:
        grid;

    gap:
        8px;
}


.history-day-events::before {
    content:
        "";

    position:
        absolute;

    top:
        0;

    bottom:
        0;

    left:
        19px;

    width:
        1px;

    background:
        #ddd8d2;
}


.history-event-v2 {
    position:
        relative;

    display:
        grid;

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

    gap:
        11px;
}


.history-event-v2-icon {
    position:
        relative;

    z-index:
        2;

    display:
        grid;

    width:
        38px;

    height:
        38px;

    place-items:
        center;

    border:
        4px solid #f7f5f2;

    border-radius:
        50%;

    color:
        #fff;

    background:
        #343a3e;

    box-sizing:
        border-box;

    font-size:
        10px;

    font-weight:
        950;
}


/* Wartung */

.history-event-v2.category-maintenance
.history-event-v2-icon {
    background:
        #299966;
}


/* Mangel */

.history-event-v2.category-defects
.history-event-v2-icon {
    background:
        #cf3934;
}


/* Technik */

.history-event-v2.category-technology
.history-event-v2-icon {
    background:
        #343a3e;
}


/* Lifecycle */

.history-event-v2.category-lifecycle
.history-event-v2-icon {
    background:
        #d28a20;
}


/* Dokumente */

.history-event-v2.category-documents
.history-event-v2-icon {
    background:
        #3978b6;
}


/* Kontakte */

.history-event-v2.category-contacts
.history-event-v2-icon {
    background:
        #665a9d;
}


/* Zutritt */

.history-event-v2.category-access
.history-event-v2-icon {
    background:
        #8d6d34;
}


/* ============================================================
   EVENT-KARTE
   ============================================================ */

.history-event-v2-main {
    min-width:
        0;

    padding:
        12px
        14px;

    border:
        1px solid #dfdad4;

    border-radius:
        11px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf9f7
        );

    box-shadow:
        0 4px 13px
        rgba(20,24,28,.03);

    transition:
        border-color .14s ease,
        box-shadow .14s ease,
        transform .14s ease;
}


.history-event-v2:hover
.history-event-v2-main {
    transform:
        translateY(-1px);

    border-color:
        #ccc5be;

    box-shadow:
        0 8px 20px
        rgba(20,24,28,.055);
}


.history-event-v2-top {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;
}


.history-event-v2-category {
    color:
        #c53b35;

    font-size:
        6px;

    font-weight:
        950;

    letter-spacing:
        .09em;

    text-transform:
        uppercase;
}


.history-event-v2 time {
    color:
        #999ea1;

    font-size:
        7px;

    white-space:
        nowrap;
}


.history-event-v2-main h3 {
    margin:
        6px
        0
        0;

    color:
        #30363a;

    font-size:
        10px;

    font-weight:
        950;
}


.history-event-v2-main > p {
    margin:
        5px
        0
        0;

    color:
        #737a7e;

    font-size:
        8px;

    line-height:
        1.55;
}


/* ============================================================
   META
   ============================================================ */

.history-event-v2-meta {
    display:
        flex;

    gap:
        7px;

    flex-wrap:
        wrap;

    margin-top:
        9px;
}


.history-event-v2-meta > span {
    display:
        flex;

    align-items:
        center;

    gap:
        5px;

    padding:
        5px
        7px;

    border-radius:
        7px;

    background:
        #f0efec;
}


.history-event-v2-meta small {
    color:
        #9a9fa2;

    font-size:
        5px;

    font-weight:
        900;

    text-transform:
        uppercase;
}


.history-event-v2-meta strong {
    color:
        #596166;

    font-size:
        6px;

    font-weight:
        900;
}


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

@media (max-width: 1150px) {

    .history-hub-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0,1fr)
            ) !important;
    }

}


@media (max-width: 800px) {

    .history-hub-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            ) !important;
    }


    .history-day-group {
        grid-template-columns:
            1fr;
    }


    .history-day-date {
        position:
            static;
    }

}


@media (max-width: 550px) {

    .history-hub-grid {
        grid-template-columns:
            1fr !important;
    }


    .history-event-v2 {
        grid-template-columns:
            34px
            minmax(0,1fr);
    }


    .history-event-v2-icon {
        width:
            32px;

        height:
            32px;
    }


    .history-day-events::before {
        left:
            15px;
    }


    .history-event-v2-top {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            3px;
    }

}



/* ============================================================
   HISTORIE V2 · WARTUNGSZEITEN
   ============================================================ */

.history-maintenance-times {
    display: grid;

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

    gap:
        7px;

    margin-top:
        10px;
}


.history-maintenance-times > div {
    padding:
        8px
        9px;

    border:
        1px solid #dce7e1;

    border-radius:
        8px;

    background:
        #f5faf7;
}


.history-maintenance-times span {
    display: block;

    color:
        #8b9690;

    font-size:
        5px;

    font-weight:
        900;

    text-transform:
        uppercase;
}


.history-maintenance-times strong {
    display: block;

    margin-top:
        4px;

    color:
        #355b49;

    font-size:
        7px;

    font-weight:
        900;
}


@media (max-width: 700px) {

    .history-maintenance-times {
        grid-template-columns:
            1fr;
    }

}



/* ============================================================
   MAMO BMA · MELDERTAUSCH V1
   ============================================================ */

.detector-replacement-workspace {
    display: grid;
    gap: 12px;
}


.detector-replacement-summary {
    display: grid;
    grid-template-columns:
        repeat(5,minmax(0,1fr));
    gap: 8px;
}


.detector-replacement-summary > div {
    padding: 11px 12px;
    border: 1px solid #ddd8d2;
    border-top: 3px solid #343a3e;
    border-radius: 11px;
    background: #fff;
}


.detector-replacement-summary span {
    display: block;
    color: #949a9e;
    font-size: 6px;
    font-weight: 900;
    text-transform: uppercase;
}


.detector-replacement-summary strong {
    display: block;
    margin-top: 5px;
    color: #30363a;
    font-size: 20px;
    font-weight: 950;
}


.detector-replacement-summary
.state-danger {
    border-top-color: #d83c36;
}


.detector-replacement-summary
.state-warning {
    border-top-color: #d79625;
}


.detector-replacement-summary
.state-review {
    border-top-color: #ba7b21;
}


.detector-replacement-summary
.state-unknown {
    border-top-color: #8d9498;
}


.detector-replacement-quality {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 12px 14px;

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

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.detector-replacement-quality strong {
    display: block;
    color: #30363a;
    font-size: 9px;
}


.detector-replacement-quality span {
    display: block;
    margin-top: 3px;
    color: #92989b;
    font-size: 7px;
}


.detector-replacement-quality b {
    color: #30363a;
    font-size: 18px;
}


.detector-replacement-note {
    padding: 11px 13px;

    border: 1px solid #ead7aa;
    border-left: 4px solid #cf9125;
    border-radius: 10px;

    background: #fffaf0;
}


.detector-replacement-note strong {
    color: #705a31;
    font-size: 8px;
}


.detector-replacement-note p {
    margin: 4px 0 0;
    color: #84745b;
    font-size: 7px;
    line-height: 1.55;
}


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


.detector-replacement-card {
    padding: 15px;

    border: 1px solid #d9d4ce;
    border-top: 3px solid #858d91;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf9f7
        );

    box-shadow:
        0 7px 20px
        rgba(20,24,28,.04);
}


.detector-replacement-card.state-overdue {
    border-top-color: #d83c36;

    background:
        linear-gradient(
            150deg,
            #fff,
            #fff3f2
        );
}


.detector-replacement-card.state-due_12m,
.detector-replacement-card.state-review {
    border-top-color: #d79524;
}


.detector-replacement-card.state-ok {
    border-top-color: #299764;
}


.detector-replacement-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}


.detector-replacement-type {
    display: inline-flex;

    padding: 5px 7px;

    border-radius: 7px;

    color: #fff;
    background: #343a3e;

    font-size: 7px;
    font-weight: 950;
}


.detector-replacement-system {
    display: block;

    margin-top: 5px;

    color: #92979b;

    font-size: 7px;
}


.detector-replacement-state {
    align-self: flex-start;

    padding: 5px 7px;

    border-radius: 999px;

    color: #646d72;
    background: #edf0f1;

    font-size: 6px;
    font-weight: 950;
}


.state-overdue
.detector-replacement-state {
    color: #a3332e;
    background: #fde9e7;
}


.state-due_12m
.detector-replacement-state,
.state-review
.detector-replacement-state {
    color: #966719;
    background: #fff1d6;
}


.state-ok
.detector-replacement-state {
    color: #21704e;
    background: #eaf7f0;
}


.detector-replacement-card h3 {
    margin: 13px 0 0;

    color: #292e32;

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


.detector-replacement-subtitle,
.detector-replacement-product {
    margin-top: 4px;

    color: #858c90;

    font-size: 7px;
}


.detector-replacement-dates {
    display: grid;

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

    gap: 7px;

    margin-top: 13px;
}


.detector-replacement-dates > div {
    padding: 9px;

    border-radius: 8px;

    background: #f1f0ed;
}


.detector-replacement-dates span {
    display: block;

    color: #979ca0;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.detector-replacement-dates strong {
    display: block;

    margin-top: 4px;

    color: #3d4448;

    font-size: 8px;
}


.detector-replacement-dates small {
    display: block;

    margin-top: 3px;

    color: #9ca0a3;

    font-size: 5px;
}


.detector-replacement-location {
    margin-top: 9px;

    color: #737b7f;

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


.detector-replacement-assessment {
    margin-top: 10px;

    padding: 9px;

    border-radius: 8px;

    background: #f5f4f1;
}


.detector-replacement-assessment strong,
.detector-replacement-assessment span {
    display: block;
}


.detector-replacement-assessment strong {
    color: #444b4f;
    font-size: 7px;
}


.detector-replacement-assessment span {
    margin-top: 3px;

    color: #858c90;

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


.detector-replacement-derived {
    margin-top: 9px;

    padding: 8px 9px;

    border-left: 3px solid #d79524;
    border-radius: 7px;

    color: #806625;
    background: #fff7e6;

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


.detector-replacement-policy-note {
    margin-top: 9px;

    padding: 8px;

    border-radius: 7px;

    color: #71797d;
    background: #f4f3f0;

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


.detector-replacement-editor {
    margin-top: 11px;

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

    background: #fff;
}


.detector-replacement-editor > summary {
    padding: 10px 11px;

    color: #41484c;

    font-size: 7px;
    font-weight: 950;

    cursor: pointer;
}


.detector-replacement-editor form {
    display: grid;
    gap: 9px;

    padding: 0 11px 11px;
}


@media (max-width: 1100px) {

    .detector-replacement-summary {
        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

}


@media (max-width: 800px) {

    .detector-replacement-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .detector-replacement-summary,
    .detector-replacement-dates {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO BMA · MELDERTAUSCH V2 · SCALE
============================================================ */

.detector-replacement-v2 {
    display: grid;
    gap: 13px;
}


.detector-replacement-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;

    margin-top: 4px;
}


.detector-replacement-section-head small {
    display: block;

    color: #cf3934;

    font-size: 6px;
    font-weight: 950;

    letter-spacing: .12em;
}


.detector-replacement-section-head h3 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 14px;
}


.detector-replacement-section-head p {
    margin: 3px 0 0;

    color: #8d9397;

    font-size: 7px;
}


.detector-replacement-section-head > strong {
    color: #30363a;

    font-size: 21px;
}


/* ------------------------------------------------------------
   Anlagenübersicht
------------------------------------------------------------- */

.detector-population-overview-grid {
    display: grid;

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

    gap: 10px;
}


.detector-population-overview-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;

    padding: 15px;

    border: 1px solid #dad5cf;
    border-top: 3px solid #343a3e;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );
}


.detector-population-overview-card.state-danger {
    border-top-color: #d83c36;
}


.detector-population-overview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}


.detector-population-overview-top span {
    color: #999ea1;

    font-size: 6px;
    font-weight: 900;

    text-transform: uppercase;
}


.detector-population-overview-top strong {
    color: #31373b;

    font-size: 8px;
}


.detector-population-overview-card h3 {
    margin: 10px 0 0;

    color: #292e32;

    font-size: 12px;
}


.detector-population-main-count {
    display: flex;
    align-items: baseline;
    gap: 6px;

    margin-top: 13px;
}


.detector-population-main-count strong {
    color: #292e32;

    font-size: 27px;
}


.detector-population-main-count span {
    color: #93999c;

    font-size: 7px;
}


.detector-population-stats {
    display: grid;

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

    gap: 5px;

    margin-top: 10px;
}


.detector-population-stats > div {
    padding: 7px;

    border-radius: 7px;

    background: #efeeeb;
}


.detector-population-stats span,
.detector-population-effective span {
    display: block;

    color: #999ea1;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.detector-population-stats strong,
.detector-population-effective strong {
    display: block;

    margin-top: 3px;

    color: #3e4549;

    font-size: 8px;
}


.detector-population-effective {
    margin-top: 8px;

    padding: 8px;

    border-radius: 7px;

    background: #f3f2ef;
}


.detector-population-edit-link {
    margin-top: auto;
    padding-top: 12px;

    color: #353b3f;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}


/* ------------------------------------------------------------
   Handlungsbedarf
------------------------------------------------------------- */

.detector-action-list {
    display: grid;
    gap: 6px;
}


.detector-action-row {
    display: grid;

    grid-template-columns:
        48px
        minmax(160px,1fr)
        minmax(150px,.75fr)
        115px;

    gap: 10px;
    align-items: center;

    min-height: 62px;

    padding: 9px 11px;

    border: 1px solid #ded9d3;
    border-left: 3px solid #858d91;
    border-radius: 10px;

    background: #fff;
}


.detector-action-row.state-overdue {
    border-left-color: #d83c36;
}


.detector-action-row.state-due_12m,
.detector-action-row.state-review {
    border-left-color: #d79524;
}


.detector-action-code {
    display: grid;

    min-height: 36px;

    place-items: center;

    border-radius: 8px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 7px;
    font-weight: 950;
}


.detector-action-main,
.detector-action-status,
.detector-action-date {
    display: grid;
    gap: 3px;
}


.detector-action-main strong,
.detector-action-status strong,
.detector-action-date strong {
    color: #353c40;

    font-size: 8px;
}


.detector-action-main span,
.detector-action-status span,
.detector-action-date span {
    color: #90969a;

    font-size: 6px;
}


.detector-replacement-clear {
    padding: 15px;

    border: 1px solid #bedfcd;
    border-left: 4px solid #299764;
    border-radius: 11px;

    background: #f1faf5;
}


.detector-replacement-clear strong {
    display: block;

    color: #246f4f;

    font-size: 9px;
}


.detector-replacement-clear span {
    display: block;

    margin-top: 4px;

    color: #69917d;

    font-size: 7px;
}


/* ------------------------------------------------------------
   Alle Melder
------------------------------------------------------------- */

.detector-all-workspace {
    border: 1px solid #d9d4ce;
    border-radius: 13px;

    background: #fff;
}


.detector-all-workspace > summary {
    display: flex;

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

    gap: 14px;

    padding: 14px;

    cursor: pointer;

    list-style: none;
}


.detector-all-workspace > summary::-webkit-details-marker,
.detector-group-workspace > summary::-webkit-details-marker {
    display: none;
}


.detector-all-workspace > summary strong {
    display: block;

    color: #30363a;

    font-size: 10px;
}


.detector-all-workspace > summary span {
    display: block;

    margin-top: 3px;

    color: #92989b;

    font-size: 7px;
}


.detector-all-workspace > summary b {
    color: #c73934;

    font-size: 7px;
}


.detector-all-content {
    display: grid;
    gap: 13px;

    padding:
        0 13px 13px;
}


.detector-all-system {
    display: grid;
    gap: 7px;
}


.detector-all-system-head {
    display: flex;

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

    gap: 12px;

    padding: 10px 11px;

    border-radius: 9px;

    background: #eeece8;
}


.detector-all-system-head small {
    display: block;

    color: #a03a35;

    font-size: 5px;
    font-weight: 950;
}


.detector-all-system-head strong {
    display: block;

    margin-top: 2px;

    color: #373e42;

    font-size: 9px;
}


.detector-all-system-head > span {
    color: #777f83;

    font-size: 7px;
}


.detector-group-workspace {
    border: 1px solid #e0dbd5;
    border-radius: 9px;

    background: #faf9f7;
}


.detector-group-workspace > summary {
    display: flex;

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

    gap: 12px;

    padding: 10px 11px;

    cursor: pointer;

    list-style: none;
}


.detector-group-workspace > summary strong {
    display: block;

    color: #3a4145;

    font-size: 8px;
}


.detector-group-workspace > summary span {
    display: block;

    margin-top: 2px;

    color: #949a9d;

    font-size: 6px;
}


.detector-group-workspace > summary b {
    color: #626a6e;

    font-size: 7px;
}


.detector-compact-list {
    display: grid;
    gap: 4px;

    padding:
        0 8px 8px;
}


.detector-compact-row {
    display: grid;

    grid-template-columns:
        72px
        minmax(150px,1fr)
        minmax(115px,.65fr)
        minmax(135px,.8fr)
        100px
        auto;

    gap: 9px;
    align-items: center;

    padding: 8px 9px;

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

    background: #fff;
}


.detector-compact-number,
.detector-compact-type,
.detector-compact-basis,
.detector-compact-policy,
.detector-compact-due {
    display: grid;
    gap: 2px;
}


.detector-compact-number strong,
.detector-compact-type strong,
.detector-compact-basis strong,
.detector-compact-policy strong,
.detector-compact-due strong {
    color: #373e42;

    font-size: 7px;
}


.detector-compact-number span,
.detector-compact-type span,
.detector-compact-basis span,
.detector-compact-policy span,
.detector-compact-due span,
.detector-compact-basis small,
.detector-compact-policy small,
.detector-compact-due small {
    color: #949a9e;

    font-size: 5px;
}


.detector-compact-edit {
    position: relative;
}


.detector-compact-edit > summary {
    padding: 7px 8px;

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

    color: #555d61;
    background: #f7f6f3;

    font-size: 6px;
    font-weight: 900;

    cursor: pointer;
    list-style: none;
}


.detector-compact-edit form {
    position: absolute;

    z-index: 20;

    top: 36px;
    right: 0;

    display: grid;
    gap: 8px;

    width: 310px;

    box-sizing: border-box;

    padding: 12px;

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

    background: #fff;

    box-shadow:
        0 15px 40px
        rgba(20,24,28,.16);
}


@media (max-width: 1100px) {

    .detector-population-overview-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .detector-compact-row {
        grid-template-columns:
            65px 1fr 1fr;
    }


    .detector-compact-policy,
    .detector-compact-due,
    .detector-compact-edit {
        grid-column: auto;
    }

}


@media (max-width: 750px) {

    .detector-population-overview-grid {
        grid-template-columns: 1fr;
    }


    .detector-action-row,
    .detector-compact-row {
        grid-template-columns:
            48px 1fr;
    }


    .detector-action-status,
    .detector-action-date,
    .detector-compact-basis,
    .detector-compact-policy,
    .detector-compact-due,
    .detector-compact-edit {
        grid-column: 2;
    }


    .detector-compact-edit form {
        position: static;

        width: 100%;

        margin-top: 6px;

        box-shadow: none;
    }

}



/* ============================================================
   OBJEKTWARTUNGEN · HUB V2
============================================================ */

.object-maintenance-hub-v2 {
    display: grid;
    gap: 13px;
}


.object-maintenance-hub-head {
    display: grid;

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

    gap: 24px;
    align-items: end;
}


.object-maintenance-hub-head h2 {
    margin:
        3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.object-maintenance-hub-head p {
    margin:
        5px 0 0;

    color: #8d9397;

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


.object-maintenance-status {
    display: grid;

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

    gap: 6px;
}


.object-maintenance-status > div {
    min-width: 85px;

    padding: 9px 11px;

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

    background:
        linear-gradient(
            145deg,
            #fff,
            #f6f4f1
        );
}


.object-maintenance-status span {
    display: block;

    color: #959b9e;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.object-maintenance-status strong {
    display: block;

    margin-top: 3px;

    color: #333a3e;

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



/* ------------------------------------------------------------
   Nächster Termin
------------------------------------------------------------- */

.object-maintenance-next {
    display: flex;

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

    gap: 18px;

    padding: 12px 14px;

    border: 1px solid #ddd8d2;
    border-left: 4px solid #343a3e;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.object-maintenance-next small {
    display: block;

    color: #9a4140;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .08em;
}


.object-maintenance-next strong {
    display: block;

    margin-top: 3px;

    color: #30373b;

    font-size: 12px;
}


.object-maintenance-next span {
    display: block;

    margin-top: 3px;

    color: #848b8f;

    font-size: 7px;
}


.object-maintenance-overdue {
    display: flex;

    align-items: baseline;
    gap: 5px;

    padding: 7px 9px;

    border-radius: 8px;

    background: #fdebea;
}


.object-maintenance-overdue strong {
    margin: 0;

    color: #aa342f;

    font-size: 13px;
}


.object-maintenance-overdue span {
    margin: 0;

    color: #aa342f;

    font-size: 6px;
    font-weight: 900;
}



/* ------------------------------------------------------------
   Hub
------------------------------------------------------------- */

.object-maintenance-hub-grid {
    display: grid;

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

    gap: 11px;
}


.object-maintenance-hub-grid
.maintenance-hub-tile {
    min-height: 190px;
}


.object-maintenance-hub-grid
.maintenance-hub-create {
    border-style: dashed;

    background:
        linear-gradient(
            145deg,
            #fff,
            #faf8f5
        );
}


.object-maintenance-hub-grid
.maintenance-hub-tile.is-warning {
    border-top:
        3px solid #d69326;
}


.object-maintenance-hub-grid
.maintenance-hub-tile.is-active {
    border-top:
        3px solid #397da2;
}


.object-maintenance-hub-grid
.maintenance-hub-tile.is-complete {
    border-top:
        3px solid #299764;
}


.maintenance-hub-alert {
    display: inline-flex;

    align-self: flex-start;

    margin-top: 6px;

    padding: 4px 6px;

    border-radius: 999px;

    color: #936116;
    background: #fff0d1;

    font-size: 6px;
    font-weight: 950;
}


.maintenance-hub-meta {
    margin-top: 7px;

    color: #7f878a;

    font-size: 6px;
}


@media (max-width: 1050px) {

    .object-maintenance-hub-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .object-maintenance-hub-head {
        grid-template-columns:
            1fr;
    }


    .object-maintenance-status {
        max-width: 430px;
    }

}


@media (max-width: 650px) {

    .object-maintenance-hub-grid,
    .object-maintenance-status {
        grid-template-columns: 1fr;
    }


    .object-maintenance-next {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   OBJEKTWARTUNGEN · WARTUNGSPLANUNG V2
============================================================ */

.maintenance-planning-v2,
.maintenance-plan-create-v2 {
    display: grid;
    gap: 13px;
}


.maintenance-planning-head {
    display: grid;

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

    align-items: end;

    gap: 24px;
}


.maintenance-planning-head h2,
.maintenance-plan-create-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.maintenance-planning-head p,
.maintenance-plan-create-head p {
    margin: 5px 0 0;

    color: #8b9296;

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


.maintenance-planning-kpis {
    display: grid;

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

    gap: 6px;
}


.maintenance-planning-kpis > div {
    padding: 9px 11px;

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

    background:
        linear-gradient(
            145deg,
            #fff,
            #f6f4f1
        );
}


.maintenance-planning-kpis span {
    display: block;

    color: #969c9f;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-planning-kpis strong {
    display: block;

    margin-top: 3px;

    color: #343b3f;

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



/* Coverage */

.maintenance-planning-coverage {
    display: flex;

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

    gap: 18px;

    padding: 11px 13px;

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

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.maintenance-planning-coverage strong {
    display: block;

    color: #353c40;

    font-size: 9px;
}


.maintenance-planning-coverage span {
    display: block;

    margin-top: 3px;

    color: #8c9397;

    font-size: 7px;
}


.maintenance-planning-coverage-value {
    color: #333a3e;

    font-size: 18px;
    font-weight: 950;
}



/* Plan Cards */

.maintenance-plan-v2-grid {
    display: grid;

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

    gap: 11px;
}


.maintenance-plan-v2-card {
    display: flex;

    min-height: 205px;

    flex-direction: column;

    padding: 15px;

    border: 1px solid #dad5cf;
    border-top: 3px solid #343a3e;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    text-decoration: none;
}


.maintenance-plan-v2-top {
    display: flex;

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

    gap: 10px;
}


.maintenance-plan-v2-icon {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #3c4347,
            #272c30
        );

    font-size: 14px;
}


.maintenance-plan-v2-status {
    padding: 4px 7px;

    border-radius: 999px;

    color: #28714f;
    background: #eaf6ef;

    font-size: 6px;
    font-weight: 950;
}


.maintenance-plan-v2-card h3 {
    margin: 12px 0 0;

    color: #2e3438;

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


.maintenance-plan-v2-scope {
    margin-top: 7px;
}


.maintenance-plan-v2-scope span,
.maintenance-plan-v2-months > span,
.maintenance-plan-v2-note span {
    display: block;

    color: #989da0;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-plan-v2-scope strong {
    display: block;

    margin-top: 3px;

    color: #666e72;

    font-size: 7px;
}


.maintenance-plan-v2-meta {
    display: grid;

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

    gap: 6px;

    margin-top: 11px;
}


.maintenance-plan-v2-meta > div {
    padding: 7px;

    border-radius: 7px;

    background: #efeeeb;
}


.maintenance-plan-v2-meta span {
    display: block;

    color: #989da0;

    font-size: 5px;

    text-transform: uppercase;
}


.maintenance-plan-v2-meta strong {
    display: block;

    margin-top: 3px;

    color: #41484c;

    font-size: 8px;
}


.maintenance-plan-v2-months {
    margin-top: 9px;

    padding: 8px;

    border-radius: 8px;

    background: #f3f2ef;
}


.maintenance-plan-v2-months > div {
    display: flex;

    flex-wrap: wrap;

    gap: 4px;

    margin-top: 5px;
}


.maintenance-plan-v2-months b {
    display: inline-flex;

    padding: 3px 5px;

    border-radius: 5px;

    color: #596166;
    background: #fff;

    font-size: 5px;
}


.maintenance-plan-v2-months > strong {
    display: block;

    margin-top: 4px;

    color: #777e82;

    font-size: 6px;
}


.maintenance-plan-v2-note {
    margin-top: 8px;

    color: #747c80;

    font-size: 6px;
}


.maintenance-plan-v2-note strong {
    display: block;

    margin-top: 3px;

    color: #687074;

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

    line-height: 1.5;
}



/* Add Tile */

.maintenance-plan-v2-add {
    border-style: dashed;
    border-top-width: 1px;

    justify-content: center;
}


.maintenance-plan-v2-add-icon {
    display: grid;

    width: 38px;
    height: 38px;

    place-items: center;

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

    color: #c83b35;
    background: #fff;

    font-size: 18px;
}


.maintenance-plan-v2-add p {
    margin: 7px 0 0;

    color: #8a9195;

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


.maintenance-plan-v2-add-action {
    margin-top: auto;
    padding-top: 13px;

    color: #363d41;

    font-size: 7px;
    font-weight: 950;
}


.maintenance-planning-empty-note {
    padding: 12px 14px;

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

    color: #838a8e;
    background: #f8f7f4;

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



/* Create Workview */

.maintenance-planning-info {
    padding: 11px 13px;

    border: 1px solid #d8dde0;
    border-left: 4px solid #596f7b;
    border-radius: 10px;

    background: #f6f8f9;
}


.maintenance-planning-info strong {
    display: block;

    color: #46575f;

    font-size: 8px;
}


.maintenance-planning-info span {
    display: block;

    margin-top: 3px;

    color: #77858c;

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


.maintenance-plan-create-form {
    display: grid;
    gap: 11px;
}


.maintenance-plan-month-grid {
    display: grid;

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

    gap: 6px;

    margin-top: 5px;
}


.maintenance-plan-month {
    position: relative;

    cursor: pointer;
}


.maintenance-plan-month input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.maintenance-plan-month span {
    display: block;

    padding: 8px 7px;

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

    color: #697175;
    background: #faf9f7;

    font-size: 7px;
    font-weight: 800;

    text-align: center;

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


.maintenance-plan-month
input:checked + span {
    border-color: rgba(201,57,52,.42);

    color: #a12f2a;

    background: #fbefee;
}


.maintenance-plan-create-actions {
    display: flex;

    justify-content: flex-end;
}


@media (max-width: 1050px) {

    .maintenance-plan-v2-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .maintenance-planning-head {
        grid-template-columns: 1fr;
    }


    .maintenance-planning-kpis {
        max-width: 430px;
    }

}


@media (max-width: 700px) {

    .maintenance-plan-v2-grid,
    .maintenance-planning-kpis,
    .maintenance-plan-month-grid {
        grid-template-columns: 1fr;
    }


    .maintenance-planning-coverage {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   OBJEKTWARTUNGEN · WARTUNG PLANEN V2
============================================================ */

.maintenance-schedule-v2 {
    display: grid;
    gap: 12px;
}


.maintenance-schedule-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.maintenance-schedule-head p {
    margin: 5px 0 0;

    color: #8c9397;

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


.maintenance-schedule-info {
    padding: 11px 13px;

    border: 1px solid #d8dde0;
    border-left: 4px solid #596f7b;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f5f7f8
        );
}


.maintenance-schedule-info strong {
    display: block;

    color: #46575f;

    font-size: 8px;
}


.maintenance-schedule-info span {
    display: block;

    margin-top: 3px;

    color: #78868c;

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


.maintenance-schedule-form {
    display: grid;
    gap: 11px;
}


.maintenance-schedule-year {
    display: flex;

    min-height: 39px;

    align-items: center;

    box-sizing: border-box;

    padding: 9px 11px;

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

    color: #343b3f;
    background: #f5f4f1;

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


.maintenance-schedule-actions {
    display: flex;

    justify-content: flex-end;
}


@media (max-width: 650px) {

    .maintenance-schedule-actions {
        justify-content: stretch;
    }


    .maintenance-schedule-actions
    .maintenance-primary {
        width: 100%;
    }

}



/* ============================================================
   OBJEKTWARTUNGEN · GEPLANTE WARTUNGEN V2
============================================================ */

.maintenance-planned-v2 {
    display: grid;
    gap: 13px;
}


.maintenance-planned-head {
    display: grid;

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

    gap: 24px;
    align-items: end;
}


.maintenance-planned-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.maintenance-planned-head p {
    margin: 5px 0 0;

    color: #8b9296;

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


.maintenance-planned-kpis {
    display: grid;

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

    gap: 6px;
}


.maintenance-planned-kpis > div {
    padding: 9px 11px;

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

    background: #fff;
}


.maintenance-planned-kpis
.is-danger {
    border-top:
        3px solid #d83c36;
}


.maintenance-planned-kpis span {
    display: block;

    color: #969c9f;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-planned-kpis strong {
    display: block;

    margin-top: 3px;

    color: #343b3f;

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



/* nächster Termin */

.maintenance-planned-next {
    display: flex;

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

    gap: 18px;

    padding: 12px 14px;

    border: 1px solid #dcd7d1;
    border-left: 4px solid #397da2;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f4f8fa
        );
}


.maintenance-planned-next small {
    display: block;

    color: #49778e;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .08em;
}


.maintenance-planned-next strong {
    display: block;

    margin-top: 3px;

    color: #30373b;

    font-size: 12px;
}


.maintenance-planned-next span {
    display: block;

    margin-top: 3px;

    color: #858c90;

    font-size: 7px;
}


.maintenance-planned-next-action {
    color: #344b56;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}



/* Bereich */

.maintenance-planned-section-head {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 14px;

    margin-top: 4px;
}


.maintenance-planned-section-head small {
    display: block;

    color: #617078;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .1em;
}


.maintenance-planned-section-head.danger small {
    color: #bc3732;
}


.maintenance-planned-section-head.muted small {
    color: #969c9f;
}


.maintenance-planned-section-head h3 {
    margin: 3px 0 0;

    color: #343a3e;

    font-size: 12px;
}


.maintenance-planned-section-head > strong {
    color: #3d4448;

    font-size: 17px;
}



/* Karten */

.maintenance-planned-grid {
    display: grid;

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

    gap: 10px;
}


.maintenance-planned-card {
    display: flex;

    min-height: 235px;

    flex-direction: column;

    padding: 14px;

    border: 1px solid #dad5cf;
    border-top: 3px solid #397da2;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f7f4
        );
}


.maintenance-planned-card.state-overdue {
    border-top-color: #d83c36;
}


.maintenance-planned-card.state-unscheduled {
    border-top-color: #969da1;
}


.maintenance-planned-card-top {
    display: flex;

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

    gap: 10px;
}


.maintenance-planned-card-icon {
    display: grid;

    width: 33px;
    height: 33px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #343a3e;

    font-size: 13px;
}


.maintenance-planned-card-state {
    padding: 4px 7px;

    border-radius: 999px;

    color: #3f7188;
    background: #e9f3f7;

    font-size: 6px;
    font-weight: 950;
}


.state-overdue
.maintenance-planned-card-state {
    color: #a5322d;
    background: #fde9e7;
}


.state-unscheduled
.maintenance-planned-card-state {
    color: #6f777b;
    background: #eceeef;
}


.maintenance-planned-card h3 {
    margin: 11px 0 0;

    color: #30363a;

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


.maintenance-planned-card-date {
    margin-top: 10px;

    padding: 9px;

    border-radius: 8px;

    background: #f1f0ed;
}


.maintenance-planned-card-date span,
.maintenance-planned-card-meta span,
.maintenance-planned-card-note span,
.maintenance-planned-card-footer span {
    display: block;

    color: #989da0;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-planned-card-date strong {
    display: block;

    margin-top: 3px;

    color: #3f464a;

    font-size: 10px;
}


.maintenance-planned-card-date small {
    display: block;

    margin-top: 3px;

    color: #81898d;

    font-size: 6px;
}


.maintenance-planned-card-meta {
    display: grid;

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

    gap: 6px;

    margin-top: 8px;
}


.maintenance-planned-card-meta > div {
    padding: 7px;

    border-radius: 7px;

    background: #f5f4f1;
}


.maintenance-planned-card-meta .full {
    grid-column: 1 / -1;
}


.maintenance-planned-card-meta strong,
.maintenance-planned-card-note strong,
.maintenance-planned-card-footer strong {
    display: block;

    margin-top: 3px;

    color: #5c6468;

    font-size: 7px;
}


.maintenance-planned-card-note {
    margin-top: 8px;

    padding: 8px;

    border-radius: 7px;

    background: #f5f4f1;
}


.maintenance-planned-card-footer {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 12px;
}


.maintenance-planned-card-footer a {
    color: #343b3f;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}


.maintenance-planned-empty {
    padding: 18px;

    border: 1px dashed #d6d0ca;
    border-radius: 12px;

    background: #faf9f7;
}


.maintenance-planned-empty strong,
.maintenance-planned-empty span {
    display: block;
}


.maintenance-planned-empty strong {
    color: #444b4f;

    font-size: 10px;
}


.maintenance-planned-empty span {
    margin-top: 4px;

    color: #8b9296;

    font-size: 7px;
}


.maintenance-planned-empty a {
    display: inline-block;

    margin-top: 10px;

    color: #b53631;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}


@media (max-width: 1050px) {

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


    .maintenance-planned-head {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .maintenance-planned-grid,
    .maintenance-planned-kpis {
        grid-template-columns: 1fr;
    }


    .maintenance-planned-next {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   OBJEKTWARTUNGEN · LAUFENDE WARTUNGEN V2
============================================================ */

.maintenance-active-v2 {
    display: grid;
    gap: 13px;
}


.maintenance-active-head {
    display: grid;

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

    gap: 24px;
    align-items: end;
}


.maintenance-active-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.maintenance-active-head p {
    margin: 5px 0 0;

    color: #8b9296;

    font-size: 8px;
}


.maintenance-active-kpis {
    display: grid;

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

    gap: 6px;
}


.maintenance-active-kpis > div {
    padding: 9px 11px;

    border: 1px solid #d9dfe2;
    border-top: 3px solid #397da2;
    border-radius: 9px;

    background: #fff;
}


.maintenance-active-kpis span {
    display: block;

    color: #969c9f;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-active-kpis strong {
    display: block;

    margin-top: 3px;

    color: #343b3f;

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



/* Gesamtfortschritt */

.maintenance-active-overall {
    display: flex;

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

    gap: 18px;

    padding: 11px 13px;

    border: 1px solid #d7dfe3;
    border-left: 4px solid #397da2;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f3f8fa
        );
}


.maintenance-active-overall strong {
    display: block;

    color: #374348;

    font-size: 9px;
}


.maintenance-active-overall span {
    display: block;

    margin-top: 3px;

    color: #829096;

    font-size: 7px;
}


.maintenance-active-overall-value {
    color: #346e89;

    font-size: 18px;
    font-weight: 950;
}



/* Karten */

.maintenance-active-grid {
    display: grid;

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

    gap: 11px;
}


.maintenance-active-card {
    display: flex;

    min-height: 255px;

    flex-direction: column;

    padding: 15px;

    border: 1px solid #d7dde0;
    border-top: 3px solid #397da2;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f4f8fa
        );
}


.maintenance-active-card-top {
    display: flex;

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

    gap: 10px;
}


.maintenance-active-icon {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #397da2;

    font-size: 13px;
}


.maintenance-active-state {
    padding: 4px 7px;

    border-radius: 999px;

    color: #346e89;
    background: #e7f2f7;

    font-size: 6px;
    font-weight: 950;
}


.maintenance-active-card h3 {
    margin: 11px 0 0;

    color: #30363a;

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


.maintenance-active-system {
    margin-top: 8px;
}


.maintenance-active-system span,
.maintenance-active-meta span,
.maintenance-active-progress span,
.maintenance-active-note span {
    display: block;

    color: #989da0;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-active-system strong {
    display: block;

    margin-top: 3px;

    color: #626a6e;

    font-size: 7px;
}


.maintenance-active-meta {
    display: grid;

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

    gap: 6px;

    margin-top: 9px;
}


.maintenance-active-meta > div {
    padding: 7px;

    border-radius: 7px;

    background: #eef3f5;
}


.maintenance-active-meta strong {
    display: block;

    margin-top: 3px;

    color: #556269;

    font-size: 7px;
}



/* Fortschritt */

.maintenance-active-progress {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 7px;

    margin-top: 10px;

    padding: 9px;

    border-radius: 8px;

    background: #edf3f6;
}


.maintenance-active-progress strong {
    display: block;

    margin-top: 3px;

    color: #47565d;

    font-size: 8px;
}


.maintenance-active-progress > b {
    color: #39758f;

    font-size: 11px;
}


.maintenance-active-progressbar {
    grid-column: 1 / -1;

    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #d8e3e8;
}


.maintenance-active-progressbar i {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: #397da2;
}


.maintenance-active-note {
    margin-top: 8px;

    padding: 8px;

    border-radius: 7px;

    background: #f3f6f7;
}


.maintenance-active-note strong {
    display: block;

    margin-top: 3px;

    color: #68757a;

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


.maintenance-active-open {
    display: flex;

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

    gap: 10px;

    margin-top: auto;
    padding-top: 13px;

    color: #315f74;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}



/* Empty */

.maintenance-active-empty {
    padding: 18px;

    border: 1px dashed #d6d0ca;
    border-radius: 12px;

    background: #faf9f7;
}


.maintenance-active-empty strong,
.maintenance-active-empty span {
    display: block;
}


.maintenance-active-empty strong {
    color: #42494d;

    font-size: 10px;
}


.maintenance-active-empty span {
    margin-top: 4px;

    color: #898f93;

    font-size: 7px;
}


.maintenance-active-empty a {
    display: inline-block;

    margin-top: 10px;

    color: #356f89;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}


@media (max-width: 1050px) {

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


    .maintenance-active-head {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .maintenance-active-grid,
    .maintenance-active-kpis {
        grid-template-columns: 1fr;
    }


    .maintenance-active-overall {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   OBJEKTWARTUNGEN · PRÜFAKTEN & ARCHIV V2
============================================================ */

.maintenance-archive-v2 {
    display: grid;
    gap: 13px;
}


.maintenance-archive-head {
    display: grid;

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

    gap: 24px;
    align-items: end;
}


.maintenance-archive-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.maintenance-archive-head p {
    margin: 5px 0 0;

    color: #8b9296;

    font-size: 8px;
}


.maintenance-archive-kpis {
    display: grid;

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

    gap: 6px;
}


.maintenance-archive-kpis > div {
    padding: 9px 11px;

    border: 1px solid #d8ddd9;
    border-top: 3px solid #299764;
    border-radius: 9px;

    background: #fff;
}


.maintenance-archive-kpis span {
    display: block;

    color: #979c9f;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-archive-kpis strong {
    display: block;

    margin-top: 3px;

    color: #343b3f;

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



/* letzter Abschluss */

.maintenance-archive-latest {
    display: flex;

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

    gap: 18px;

    padding: 12px 14px;

    border: 1px solid #d6e3dc;
    border-left: 4px solid #299764;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f2f8f5
        );
}


.maintenance-archive-latest small {
    display: block;

    color: #39795b;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .08em;
}


.maintenance-archive-latest strong {
    display: block;

    margin-top: 3px;

    color: #34413a;

    font-size: 11px;
}


.maintenance-archive-latest span {
    display: block;

    margin-top: 3px;

    color: #7c8982;

    font-size: 7px;
}


.maintenance-archive-latest-action {
    color: #2b6d4e;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}



/* Jahr */

.maintenance-archive-year-head {
    display: flex;

    align-items: end;
    justify-content: space-between;

    gap: 14px;

    margin-top: 4px;
}


.maintenance-archive-year-head small {
    display: block;

    color: #56836b;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .1em;
}


.maintenance-archive-year-head h3 {
    margin: 3px 0 0;

    color: #343a3e;

    font-size: 13px;
}


.maintenance-archive-year-head > strong {
    color: #3d4448;

    font-size: 17px;
}



/* Karten */

.maintenance-archive-grid {
    display: grid;

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

    gap: 10px;
}


.maintenance-archive-card {
    display: flex;

    min-height: 275px;

    flex-direction: column;

    padding: 14px;

    border: 1px solid #d8ddd9;
    border-top: 3px solid #299764;
    border-radius: 14px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f5f8f6
        );
}


.maintenance-archive-card-top {
    display: flex;

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

    gap: 10px;
}


.maintenance-archive-icon {
    display: grid;

    width: 33px;
    height: 33px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #299764;

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


.maintenance-archive-state {
    padding: 4px 7px;

    border-radius: 999px;

    color: #26704e;
    background: #e8f5ee;

    font-size: 6px;
    font-weight: 950;
}


.maintenance-archive-card h3 {
    margin: 11px 0 0;

    color: #30363a;

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


.maintenance-archive-date {
    margin-top: 9px;

    padding: 8px;

    border-radius: 8px;

    background: #edf4f0;
}


.maintenance-archive-date span,
.maintenance-archive-meta span,
.maintenance-archive-progress span,
.maintenance-archive-note span {
    display: block;

    color: #969d99;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.maintenance-archive-date strong {
    display: block;

    margin-top: 3px;

    color: #445149;

    font-size: 9px;
}


.maintenance-archive-meta {
    display: grid;

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

    gap: 6px;

    margin-top: 8px;
}


.maintenance-archive-meta > div {
    padding: 7px;

    border-radius: 7px;

    background: #f1f4f2;
}


.maintenance-archive-meta .full {
    grid-column: 1 / -1;
}


.maintenance-archive-meta strong {
    display: block;

    margin-top: 3px;

    color: #5e6963;

    font-size: 7px;
}


.maintenance-archive-progress {
    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 7px;

    margin-top: 9px;

    padding: 8px;

    border-radius: 8px;

    background: #edf4f0;
}


.maintenance-archive-progress strong {
    display: block;

    margin-top: 3px;

    color: #526159;

    font-size: 8px;
}


.maintenance-archive-progress > b {
    color: #277d56;

    font-size: 10px;
}


.maintenance-archive-progressbar {
    grid-column: 1 / -1;

    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #d6e5dc;
}


.maintenance-archive-progressbar i {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: #299764;
}


.maintenance-archive-note {
    margin-top: 8px;

    padding: 8px;

    border-radius: 7px;

    background: #f3f5f4;
}


.maintenance-archive-note strong {
    display: block;

    margin-top: 3px;

    color: #68716c;

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


.maintenance-archive-actions {
    display: grid;

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

    gap: 6px;

    margin-top: auto;
    padding-top: 12px;
}


.maintenance-archive-actions a {
    display: flex;

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

    gap: 6px;

    padding: 8px 9px;

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

    color: #515b55;
    background: #fff;

    font-size: 6px;
    font-weight: 950;

    text-decoration: none;
}


.maintenance-archive-actions a.primary {
    border-color: #bcd8c8;

    color: #286b4c;
    background: #eef7f2;
}


.maintenance-archive-empty {
    padding: 18px;

    border: 1px dashed #d5d0ca;
    border-radius: 12px;

    background: #faf9f7;
}


.maintenance-archive-empty strong,
.maintenance-archive-empty span {
    display: block;
}


.maintenance-archive-empty strong {
    color: #444b4f;

    font-size: 10px;
}


.maintenance-archive-empty span {
    margin-top: 4px;

    color: #898f93;

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


@media (max-width: 1050px) {

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


    .maintenance-archive-head {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .maintenance-archive-grid,
    .maintenance-archive-kpis,
    .maintenance-archive-actions {
        grid-template-columns: 1fr;
    }


    .maintenance-archive-latest {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   OBJEKTAKTE · PRÜFAKTEN
============================================================ */

.object-inspection-files {
    display: grid;
    gap: 13px;
}


.object-inspection-files-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.object-inspection-files-head p {
    margin: 5px 0 0;

    color: #8b9296;

    font-size: 8px;
}


.object-inspection-file-list {
    display: grid;
    gap: 7px;
}


.object-inspection-file {
    display: grid;

    grid-template-columns:
        40px
        minmax(170px,1.4fr)
        110px
        110px
        125px
        auto;

    gap: 11px;
    align-items: center;

    padding: 11px 12px;

    border: 1px solid #d9dedb;
    border-left: 3px solid #299764;
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f7f9f8
        );
}


.object-inspection-file-status {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #299764;

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


.object-inspection-file-main,
.object-inspection-file-date,
.object-inspection-file-period,
.object-inspection-file-progress {
    display: grid;
    gap: 3px;
}


.object-inspection-file-main strong {
    color: #30373b;

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


.object-inspection-file-main span {
    color: #888f93;

    font-size: 6px;
}


.object-inspection-file-date span,
.object-inspection-file-period span,
.object-inspection-file-progress span {
    color: #999ea1;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.object-inspection-file-date strong,
.object-inspection-file-period strong,
.object-inspection-file-progress strong {
    color: #51595d;

    font-size: 7px;
}


.object-inspection-file-actions {
    display: flex;
    gap: 5px;
}


.object-inspection-file-actions a {
    padding: 7px 8px;

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

    color: #525a56;
    background: #fff;

    font-size: 6px;
    font-weight: 950;

    text-decoration: none;
}


.object-inspection-file-actions a.primary {
    border-color: #bbd9c7;

    color: #286b4c;
    background: #edf7f2;
}


@media (max-width: 1050px) {

    .object-inspection-file {
        grid-template-columns:
            40px
            1fr
            1fr;
    }


    .object-inspection-file-actions {
        grid-column:
            2 / -1;
    }

}


@media (max-width: 650px) {

    .object-inspection-file {
        grid-template-columns:
            40px
            1fr;
    }


    .object-inspection-file-date,
    .object-inspection-file-period,
    .object-inspection-file-progress,
    .object-inspection-file-actions {
        grid-column: 2;
    }

}



/* ============================================================
   OBJEKTAKTE · PRÜFAKTEN
============================================================ */

.object-inspection-files {
    display: grid;
    gap: 13px;
}


.object-inspection-files-head h2 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.object-inspection-files-head p {
    margin: 5px 0 0;

    color: #8b9296;

    font-size: 8px;
}


.object-inspection-file-list {
    display: grid;
    gap: 7px;
}


.object-inspection-file {
    display: grid;

    grid-template-columns:
        40px
        minmax(170px,1.4fr)
        110px
        110px
        125px
        auto;

    gap: 11px;
    align-items: center;

    padding: 11px 12px;

    border: 1px solid #d9dedb;
    border-left: 3px solid #299764;
    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f7f9f8
        );
}


.object-inspection-file-status {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #299764;

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


.object-inspection-file-main,
.object-inspection-file-date,
.object-inspection-file-period,
.object-inspection-file-progress {
    display: grid;
    gap: 3px;
}


.object-inspection-file-main strong {
    color: #30373b;

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


.object-inspection-file-main span {
    color: #888f93;

    font-size: 6px;
}


.object-inspection-file-date span,
.object-inspection-file-period span,
.object-inspection-file-progress span {
    color: #999ea1;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.object-inspection-file-date strong,
.object-inspection-file-period strong,
.object-inspection-file-progress strong {
    color: #51595d;

    font-size: 7px;
}


.object-inspection-file-actions {
    display: flex;
    gap: 5px;
}


.object-inspection-file-actions a {
    padding: 7px 8px;

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

    color: #525a56;
    background: #fff;

    font-size: 6px;
    font-weight: 950;

    text-decoration: none;
}


.object-inspection-file-actions a.primary {
    border-color: #bbd9c7;

    color: #286b4c;
    background: #edf7f2;
}


@media (max-width: 1050px) {

    .object-inspection-file {
        grid-template-columns:
            40px
            1fr
            1fr;
    }


    .object-inspection-file-actions {
        grid-column:
            2 / -1;
    }

}


@media (max-width: 650px) {

    .object-inspection-file {
        grid-template-columns:
            40px
            1fr;
    }


    .object-inspection-file-date,
    .object-inspection-file-period,
    .object-inspection-file-progress,
    .object-inspection-file-actions {
        grid-column: 2;
    }

}



/* ============================================================
   OBJEKTAKTE · MÄNGEL-HUB V2
============================================================ */

.defect-hub-v2 {
    display: grid;
    gap: 13px;
}


.defect-hub-v2-head {
    display: grid;

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

    gap: 24px;
    align-items: end;
}


.defect-hub-v2-head h3 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.defect-hub-v2-head p {
    margin: 5px 0 0;

    color: #8b9296;

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


.defect-hub-v2-kpis {
    display: grid;

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

    gap: 6px;
}


.defect-hub-v2-kpis > div {
    padding: 9px 11px;

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

    background: #fff;
}


.defect-hub-v2-kpis > div.is-danger {
    border-top: 3px solid #d83c36;
}


.defect-hub-v2-kpis > div.is-good {
    border-top: 3px solid #299764;
}


.defect-hub-v2-kpis span {
    display: block;

    color: #969c9f;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.defect-hub-v2-kpis strong {
    display: block;

    margin-top: 3px;

    color: #343b3f;

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



/* Priorität */

.defect-hub-priority {
    display: flex;

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

    gap: 18px;

    padding: 11px 13px;

    border: 1px solid #eed0cd;
    border-left: 4px solid #d83c36;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff5f4
        );
}


.defect-hub-priority small {
    display: block;

    color: #b33a35;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .08em;
}


.defect-hub-priority strong {
    display: block;

    margin-top: 3px;

    color: #4e3d3c;

    font-size: 8px;
}


.defect-hub-priority a {
    color: #a8312d;

    font-size: 7px;
    font-weight: 950;

    text-decoration: none;
}



/* Tiles */

.defect-hub-v2-grid {
    display: grid;

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

    gap: 11px;

    align-items: stretch;
}


.defect-hub-v2-tile {
    display: flex;

    min-height: 190px;

    flex-direction: column;

    box-sizing: border-box;

    padding: 15px;

    border: 1px solid #dad5cf;
    border-top: 3px solid #d83c36;
    border-radius: 14px;

    color: inherit;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );

    text-decoration: none;

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


.defect-hub-v2-tile:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(35,38,40,.07);
}


.defect-hub-v2-icon {
    display: grid;

    width: 34px;
    height: 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #d83c36;

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


.defect-hub-v2-tile h3 {
    margin: 12px 0 0;

    color: #30363a;

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


.defect-hub-v2-tile p {
    margin: 6px 0 0;

    min-height: 34px;

    color: #858c90;

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


.defect-hub-v2-number {
    margin-top: 13px;

    color: #30363a;

    font-size: 24px;
    font-weight: 950;
}


.defect-hub-v2-tile small {
    color: #979ca0;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.defect-hub-v2-action {
    margin-top: auto;
    padding-top: 12px;

    color: #42494d;

    font-size: 7px;
    font-weight: 950;
}



/* Semantik */

.defect-hub-v2-tile.defect-tone-progress {
    border-top-color: #dc941d;
}


.defect-tone-progress
.defect-hub-v2-icon {
    background: #dc941d;
}


.defect-hub-v2-tile.defect-tone-resolved {
    border-top-color: #299764;
}


.defect-tone-resolved
.defect-hub-v2-icon {
    background: #299764;
}


.defect-hub-v2-tile.defect-tone-recurring {
    border-top-color: #a27634;
}


.defect-tone-recurring
.defect-hub-v2-icon {
    background: #9a7033;
}



/* Bestehende Add-Kachel in den hellen Objektakten-Stil ziehen */

.defect-hub-v2-grid
.defect-add-tile {
    min-height: 190px;

    border: 1px dashed #d8d1ca;
    border-top: 1px dashed #d8d1ca;

    color: #30363a;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf8f5
        );
}


.defect-hub-v2-grid
.defect-add-tile h3 {
    color: #30363a;
}


.defect-hub-v2-grid
.defect-add-tile p {
    color: #8a9094;
}


.defect-hub-v2-grid
.defect-add-tile
.defect-hub-action {
    color: #b73732;
}


.defect-hub-v2-grid
.defect-add-tile[open] {
    grid-column: 1 / -1;
}


@media (max-width: 1150px) {

    .defect-hub-v2-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .defect-hub-v2-head {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .defect-hub-v2-grid,
    .defect-hub-v2-kpis {
        grid-template-columns: 1fr;
    }


    .defect-hub-priority {
        align-items: flex-start;
        flex-direction: column;
    }

}



/* ============================================================
   OBJEKTAKTE · MANGEL ERFASSEN V2
============================================================ */


/* Hub-Kachel */

.defect-hub-v2-grid
.defect-create-tile {
    border: 1px dashed #d8d1ca;
    border-top: 1px dashed #d8d1ca;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf8f5
        );
}


.defect-hub-v2-grid
.defect-create-tile:hover {
    border-color:
        rgba(200,55,50,.38);
}


.defect-create-icon {
    border: 1px solid #e0d9d3;

    color: #c33b35 !important;

    background: #fff !important;
}


.defect-create-spacer {
    flex: 1;
}



/* ------------------------------------------------------------
   Workview
------------------------------------------------------------- */

.defect-create-workview {
    display: grid;
    gap: 13px;
}


.defect-create-workview-head h3 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.defect-create-workview-head p {
    margin: 5px 0 0;

    color: #8b9296;

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



/* Hinweis */

.defect-create-info {
    display: grid;

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

    gap: 11px;
    align-items: center;

    padding: 11px 13px;

    border: 1px solid #ead8d5;
    border-left: 4px solid #d83c36;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff7f6
        );
}


.defect-create-info-icon {
    display: grid;

    width: 32px;
    height: 32px;

    place-items: center;

    border-radius: 8px;

    color: #fff;
    background: #d83c36;

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


.defect-create-info strong {
    display: block;

    color: #4d3e3c;

    font-size: 8px;
}


.defect-create-info span {
    display: block;

    margin-top: 3px;

    color: #857a78;

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



/* Formular-Karte */

.defect-create-card {
    overflow: hidden;

    border: 1px solid #dad5cf;
    border-radius: 13px;

    background: #fff;
}


.defect-create-card-head {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 14px;

    border-bottom: 1px solid #ece8e4;

    background:
        linear-gradient(
            145deg,
            #fff,
            #f8f6f3
        );
}


.defect-create-card-icon {
    display: grid;

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    place-items: center;

    border-radius: 9px;

    color: #fff;
    background: #d83c36;

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


.defect-create-card-head h4 {
    margin: 0;

    color: #30363a;

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


.defect-create-card-head p {
    margin: 3px 0 0;

    color: #8c9296;

    font-size: 7px;
}


.defect-create-card form {
    padding: 15px;
}


.defect-create-actions {
    display: flex;

    justify-content: flex-end;

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

    border-top: 1px solid #ece8e4;
}


@media (max-width: 650px) {

    .defect-create-actions {
        justify-content: stretch;
    }


    .defect-create-actions
    .object-data-save {
        width: 100%;
    }

}



/* ============================================================
   OBJEKTAKTE · MANGELAKTE V2
============================================================ */

.defect-detail-work-head {
    margin-bottom: 12px;
}


.defect-detail-work-head h3 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 18px;
    font-weight: 950;
}


.defect-detail-work-head p {
    margin: 5px 0 0;

    color: #8b9296;

    font-size: 8px;
}



/* ------------------------------------------------------------
   Wenn eine Mangelakte geöffnet ist:
   nur diesen einen Datensatz zeigen
------------------------------------------------------------- */

.defect-card-grid.has-selected-defect {
    grid-template-columns: 1fr;
}


.defect-card-grid.has-selected-defect
.defect-card:not(.selected-defect) {
    display: none;
}


.defect-card.selected-defect {
    width: 100%;

    border-radius: 13px;

    box-shadow:
        0 8px 24px rgba(35,38,40,.055);
}



/* In Detailansicht Summary nicht mehr wie Akkordeon behandeln */

.defect-card.selected-defect > summary {
    min-height: auto;

    cursor: default;
}


.defect-card.selected-defect > summary
.defect-card-footer strong {
    display: none;
}



/* Detailbereich großzügiger */

.defect-card.selected-defect
.defect-detail {
    display: grid;

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

    gap: 10px;

    padding: 15px;

    border-top: 1px solid #ece8e4;

    background: #faf9f7;
}


.defect-card.selected-defect
.defect-detail-block {
    margin: 0;

    padding: 11px 12px;

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

    background: #fff;
}


.defect-card.selected-defect
.defect-detail-block span {
    color: #969b9e;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.defect-card.selected-defect
.defect-detail-block p {
    margin: 5px 0 0;

    color: #444b4f;

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



/* Aktionsformulare dürfen über volle Breite */

.defect-card.selected-defect
.defect-detail form {
    grid-column: 1 / -1;
}


.defect-card.selected-defect
.contact-editor-actions,
.defect-card.selected-defect
.defect-actions {
    grid-column: 1 / -1;
}


@media (max-width: 750px) {

    .defect-card.selected-defect
    .defect-detail {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   OBJEKTAKTE · WIEDERKEHRENDE MÄNGEL V2
============================================================ */

.recurring-defects-v2 {
    display: grid;
    gap: 13px;
}


.recurring-defects-head {
    display: grid;

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

    gap: 24px;
    align-items: end;
}


.recurring-defects-head h3 {
    margin: 3px 0 0;

    color: #292e32;

    font-size: 19px;
    font-weight: 950;
}


.recurring-defects-head p {
    margin: 5px 0 0;

    color: #8b9296;

    font-size: 8px;
}


.recurring-defects-kpis {
    display: grid;

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

    gap: 6px;
}


.recurring-defects-kpis > div {
    padding: 9px 11px;

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

    background: #fff;
}


.recurring-defects-kpis
.is-warning {
    border-top:
        3px solid #dc941d;
}


.recurring-defects-kpis span {
    display: block;

    color: #969c9f;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.recurring-defects-kpis strong {
    display: block;

    margin-top: 3px;

    color: #343b3f;

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



/* Handlungsbedarf */

.recurring-defects-attention {
    padding: 11px 13px;

    border: 1px solid #eadcbf;
    border-left: 4px solid #dc941d;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            #fff,
            #fff9ee
        );
}


.recurring-defects-attention small {
    display: block;

    color: #9d6d1e;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .08em;
}


.recurring-defects-attention strong {
    display: block;

    margin-top: 3px;

    color: #544a39;

    font-size: 8px;
}



/* Pattern */

.recurring-defects-list {
    display: grid;
    gap: 11px;
}


.recurring-pattern-card {
    overflow: hidden;

    border: 1px solid #ddd7d0;
    border-top: 3px solid #a27634;
    border-radius: 13px;

    background: #fff;
}


.recurring-pattern-head {
    display: grid;

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

    gap: 12px;
    align-items: center;

    padding: 14px;
}


.recurring-pattern-count {
    display: grid;

    width: 44px;
    height: 44px;

    place-items: center;

    border-radius: 11px;

    color: #fff;
    background: #9a7033;

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


.recurring-pattern-title > span {
    color: #9b7741;

    font-size: 5px;
    font-weight: 950;

    letter-spacing: .08em;
}


.recurring-pattern-title h3 {
    margin: 3px 0 0;

    color: #30363a;

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


.recurring-pattern-title p {
    margin: 4px 0 0;

    color: #848b8f;

    font-size: 7px;
}


.recurring-pattern-state span {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    font-size: 6px;
    font-weight: 950;
}


.recurring-pattern-state
.active {
    color: #99651b;
    background: #fff0d1;
}


.recurring-pattern-state
.resolved {
    color: #286f4e;
    background: #e9f5ee;
}



/* Meta */

.recurring-pattern-meta {
    display: grid;

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

    gap: 1px;

    border-top: 1px solid #ece8e4;
    border-bottom: 1px solid #ece8e4;

    background: #ece8e4;
}


.recurring-pattern-meta > div {
    padding: 10px 12px;

    background: #f8f7f4;
}


.recurring-pattern-meta span {
    display: block;

    color: #999ea1;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.recurring-pattern-meta strong {
    display: block;

    margin-top: 3px;

    color: #525a5e;

    font-size: 8px;
}



/* Akten */

.recurring-pattern-files {
    padding: 13px 14px 14px;
}


.recurring-pattern-files-head strong {
    display: block;

    color: #3d4448;

    font-size: 8px;
}


.recurring-pattern-files-head span {
    display: block;

    margin-top: 3px;

    color: #94999c;

    font-size: 6px;
}


.recurring-file-list {
    display: grid;

    gap: 5px;

    margin-top: 9px;
}


.recurring-file-row {
    display: grid;

    grid-template-columns:
        30px
        minmax(120px,1fr)
        100px
        115px
        auto;

    gap: 9px;
    align-items: center;

    padding: 8px 9px;

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

    color: inherit;
    background: #faf9f7;

    text-decoration: none;

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


.recurring-file-row:hover {
    border-color: #c8b79d;

    background: #fff;
}


.recurring-file-status {
    display: grid;

    width: 27px;
    height: 27px;

    place-items: center;

    border-radius: 7px;

    color: #fff;
    background: #d83c36;

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


.recurring-file-row.status-in_progress
.recurring-file-status {
    background: #dc941d;
}


.recurring-file-row.status-resolved
.recurring-file-status {
    background: #299764;
}


.recurring-file-main {
    display: grid;
    gap: 2px;
}


.recurring-file-main strong {
    color: #394044;

    font-size: 7px;
}


.recurring-file-main span {
    color: #989da0;

    font-size: 6px;
}


.recurring-file-priority span,
.recurring-file-state span {
    display: block;

    color: #9b9fa2;

    font-size: 5px;
    font-weight: 900;

    text-transform: uppercase;
}


.recurring-file-priority strong,
.recurring-file-state strong {
    display: block;

    margin-top: 2px;

    color: #5b6367;

    font-size: 6px;
}


.recurring-file-action {
    color: #5d503e;

    font-size: 6px;
    font-weight: 950;
}


@media (max-width: 900px) {

    .recurring-defects-head {
        grid-template-columns: 1fr;
    }


    .recurring-pattern-meta {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .recurring-file-row {
        grid-template-columns:
            30px
            1fr
            auto;
    }


    .recurring-file-priority,
    .recurring-file-state {
        grid-column: 2;
    }


    .recurring-file-action {
        grid-column: 3;
        grid-row: 1 / 3;
    }

}


@media (max-width: 650px) {

    .recurring-defects-kpis,
    .recurring-pattern-meta {
        grid-template-columns: 1fr;
    }


    .recurring-pattern-head {
        grid-template-columns:
            48px 1fr;
    }


    .recurring-pattern-state {
        grid-column: 2;
    }


    .recurring-file-row {
        grid-template-columns:
            30px 1fr;
    }


    .recurring-file-action {
        grid-column: 2;
        grid-row: auto;
    }

}



/* ============================================================
   MAMO BMA · SaaS Status / Capacity
   ============================================================ */

.saas-status-stack {
    display: grid;
    gap: 10px;
    margin: 14px 12px;
}

.saas-status-card {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid #ddd8d2;
    border-radius: 13px;
    background: linear-gradient(145deg,#fff,#f8f6f3);
}

.saas-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-weight: 900;
    background: #ece9e5;
    color: #34383b;
}

.saas-status-copy > strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #26292b;
}

.saas-status-copy > span,
.saas-status-copy > small {
    display: block;
    font-size: 10.5px;
    line-height: 1.5;
    color: #74787b;
}

.saas-status-card-notice {
    border-color: rgba(180,138,48,.30);
    background: linear-gradient(145deg,#fffdf8,#faf5e9);
}

.saas-status-card-warning {
    border-color: rgba(214,139,37,.38);
    background: linear-gradient(145deg,#fffaf3,#fbefe0);
}

.saas-status-card-danger {
    border-color: rgba(199,52,47,.30);
    background: linear-gradient(145deg,#fff,#fbefed);
}

.saas-status-card-danger .saas-status-icon {
    background: rgba(199,52,47,.10);
    color: #b12d28;
}

.saas-capacity-progress {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9e5e0;
}

.saas-capacity-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #b99b55;
}

.saas-capacity-progress.is-warning span {
    background: #c98324;
}

.saas-capacity-progress.is-limit span {
    background: #c7342f;
}

.saas-status-upgrade {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(30,34,37,.08);
}

.saas-status-upgrade strong {
    font-size: 10.5px;
    color: #a82d28;
}

.saas-status-upgrade span {
    font-size: 9.5px;
    color: #666b6e;
}

.saas-status-plan {
    margin-top: 6px;
    font-size: 9px !important;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9a9d9f !important;
}

.mamo-primary-action.is-disabled,
.technology-add-card.is-disabled {
    opacity: .5;
    pointer-events: none;
    cursor: not-allowed;
}


/* ============================================================
   MAMO BMA · EMPLOYEE EDIT V1
   ============================================================ */

.employee-actions {
    text-align: right;
    white-space: nowrap;
}

.employee-edit-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding:
        0
        11px;

    border:
        1px solid
        #d9d5d0;

    border-radius:
        9px;

    background:
        #fff;

    color:
        #34383a;

    font-size:
        10px;

    font-weight:
        800;

    text-decoration:
        none;

    transition:
        .18s ease;
}

.employee-edit-action:hover {
    border-color:
        rgba(199,52,47,.42);

    color:
        #b52f2a;

    transform:
        translateY(-1px);
}


/* ============================================================
   MAMO BMA · EMPLOYEE EDIT ACTION
   ============================================================ */

.employee-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 8px;

    padding: 6px 10px;

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

    background: #ffffff;

    color: #34383b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

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


.employee-edit-link:hover {
    border-color: #aaa39b;

    background: #f6f4f1;

    transform: translateY(-1px);
}


.employee-table td:last-child {
    white-space: nowrap;
}



/* ============================================================
   MAMO BMA · BRANCH MANAGEMENT V1
   ============================================================ */

.branch-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 60px;
}


.branch-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 28px;
}


.branch-kicker {
    margin-bottom: 8px;

    color: #a6312c;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}


.branch-head h1 {
    margin: 0 0 8px;

    color: #25292d;

    font-size: 34px;
    line-height: 1.06;
    letter-spacing: -.045em;
}


.branch-head p {
    max-width: 650px;

    margin: 0;

    color: #7c8286;

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


.branch-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 16px;

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

    background: #fff;

    color: #34383b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}


.branch-kpis,
.branch-edit-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    margin-bottom: 22px;
}


.branch-kpis article,
.branch-edit-summary article {
    padding: 19px 20px;

    border: 1px solid #e2ded9;
    border-radius: 14px;

    background: #fff;
}


.branch-kpis small,
.branch-edit-summary small {
    display: block;

    margin-bottom: 7px;

    color: #8b9094;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}


.branch-kpis strong,
.branch-edit-summary strong {
    display: block;

    margin-bottom: 5px;

    color: #25292d;

    font-size: 27px;
    letter-spacing: -.04em;
}


.branch-kpis span,
.branch-edit-summary span {
    color: #858a8e;

    font-size: 11px;
}


.branch-summary-status {
    font-size: 21px !important;
}


.branch-limit-warning,
.branch-status-warning {
    display: grid;
    gap: 5px;

    margin-bottom: 20px;
    padding: 14px 16px;

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

    background: #fffaf0;
}


.branch-limit-warning strong,
.branch-status-warning strong {
    color: #8e6216;

    font-size: 12px;
}


.branch-limit-warning span,
.branch-status-warning span {
    color: #806f55;

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


.branch-filter {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 200px auto auto;
    gap: 10px;

    margin-bottom: 18px;
}


.branch-filter input,
.branch-filter select,
.branch-filter button,
.branch-filter a {
    min-height: 42px;

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

    background: #fff;

    font: inherit;
    font-size: 12px;
}


.branch-filter input,
.branch-filter select {
    padding: 0 13px;

    color: #34383b;
}


.branch-filter button {
    padding: 0 17px;

    background: #292d31;
    border-color: #292d31;

    color: #fff;
    font-weight: 700;

    cursor: pointer;
}


.branch-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 15px;

    color: #555b5f;
    font-weight: 700;
    text-decoration: none;
}


.branch-panel {
    overflow: hidden;

    border: 1px solid #e2ded9;
    border-radius: 15px;

    background: #fff;
}


.branch-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 19px 21px;

    border-bottom: 1px solid #ece8e3;
}


.branch-panel > header h2 {
    margin: 0 0 4px;

    color: #25292d;

    font-size: 16px;
}


.branch-panel > header span {
    color: #8b9094;

    font-size: 11px;
}


.branch-table-wrap {
    overflow-x: auto;
}


.branch-table {
    width: 100%;
    min-width: 1000px;

    border-collapse: collapse;
}


.branch-table th {
    padding: 11px 16px;

    border-bottom: 1px solid #e8e4df;

    background: #faf9f7;

    color: #8b9094;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: left;
    text-transform: uppercase;
}


.branch-table td {
    padding: 15px 16px;

    border-bottom: 1px solid #efebe7;

    color: #43484c;

    font-size: 12px;
    vertical-align: middle;
}


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


.branch-table td > strong {
    display: block;

    color: #292d31;

    font-size: 12px;
}


.branch-table td > small {
    display: block;

    margin-top: 4px;

    color: #8d9296;

    font-size: 10px;
}


.branch-location-main {
    font-weight: 700;
}


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

    min-width: 30px;
    height: 28px;
    padding: 0 8px;

    border-radius: 8px;

    background: #f4f2ef;

    color: #393e42;
    font-size: 11px;
    font-weight: 800;
}


.branch-timezone {
    color: #73797d;

    font-size: 10px;
}


.branch-state {
    display: inline-flex;
    align-items: center;

    padding: 6px 9px;

    border-radius: 999px;

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


.branch-state.active {
    background: #edf7f1;
    color: #1e744d;
}


.branch-state.inactive {
    background: #f2f2f2;
    color: #777d81;
}


.branch-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 0 10px;

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

    background: #fff;

    color: #353a3e;

    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}


.branch-edit-link:hover {
    border-color: #bbb4ad;

    background: #f8f6f3;
}


.branch-empty {
    padding: 36px !important;

    color: #92979b !important;

    text-align: center;
}


.branch-pagination {
    padding: 16px 20px;

    border-top: 1px solid #ece8e3;
}


.branch-form {
    display: grid;
    gap: 16px;
}


.branch-form-card {
    overflow: hidden;

    border: 1px solid #e2ded9;
    border-radius: 15px;

    background: #fff;
}


.branch-form-card > header {
    padding: 18px 20px;

    border-bottom: 1px solid #ebe7e2;
}


.branch-form-card > header small {
    display: block;

    margin-bottom: 5px;

    color: #a6312c;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}


.branch-form-card > header h2 {
    margin: 0;

    color: #292d31;

    font-size: 16px;
}


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

    padding: 21px;
}


.branch-form-grid label {
    display: grid;
    gap: 7px;
}


.branch-form-grid label > span {
    color: #555b5f;

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


.branch-form-grid input,
.branch-form-grid select {
    width: 100%;
    min-height: 44px;

    padding: 0 13px;

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

    background: #fff;

    color: #303438;

    font: inherit;
    font-size: 12px;
}


.branch-form-grid input:focus,
.branch-form-grid select:focus {
    outline: 0;

    border-color: #b64742;

    box-shadow: 0 0 0 3px rgba(182,71,66,.08);
}


.branch-form-wide {
    grid-column: 1 / -1;
}


.branch-field-help {
    color: #969b9f !important;

    font-size: 9px !important;
    font-weight: 500 !important;
}


.branch-status-warning {
    margin: 0 21px 21px;
}


.branch-form-submit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 4px;
}


.branch-form-submit a,
.branch-form-submit button {
    min-height: 42px;

    padding: 0 17px;

    border-radius: 9px;

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


.branch-form-submit a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ddd9d4;

    background: #fff;

    color: #555b5f;

    text-decoration: none;
}


.branch-form-submit button {
    border: 1px solid #292d31;

    background: #292d31;

    color: #fff;

    cursor: pointer;
}


@media (max-width: 900px) {

    .branch-shell {
        width: min(100% - 24px, 1500px);
        padding-top: 20px;
    }


    .branch-head {
        align-items: stretch;
        flex-direction: column;
    }


    .branch-kpis,
    .branch-edit-summary {
        grid-template-columns: 1fr;
    }


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


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


    .branch-form-wide {
        grid-column: auto;
    }

}



/* ============================================================
   MAMO BMA · SIDEBAR NAV SCROLL FIX
   ============================================================ */

/*
|--------------------------------------------------------------------------
| Die Sidebar bleibt 100vh hoch.
| Nur der eigentliche Navigationsbereich darf scrollen.
| Brand, Suche und Footer bleiben sichtbar.
|--------------------------------------------------------------------------
*/

.mamo-sidebar {
    overflow: hidden;
}


.mamo-sidebar-brand,
.mamo-sidebar-search {
    flex: 0 0 auto;
}


.mamo-sidebar-nav {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    margin-right: -6px;
    padding-right: 6px;
    padding-bottom: 18px;

    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255,255,255,.18)
        transparent;
}


.mamo-sidebar-nav::-webkit-scrollbar {
    width: 5px;
}


.mamo-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}


.mamo-sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background:
        rgba(255,255,255,.14);
}


.mamo-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255,255,255,.24);
}


/*
|-------------------------------------------------------------------------- 
| Unterer Plattform-/Benutzerbereich darf nicht zusammengedrückt werden
|--------------------------------------------------------------------------
*/

.mamo-sidebar-footer,
.mamo-platform-return,
.mamo-sidebar-user,
.mamo-sidebar-account,
.mamo-sidebar-bottom {
    flex: 0 0 auto;
}


/*
|--------------------------------------------------------------------------
| Etwas kompakter auf kleineren Desktop-Höhen
|--------------------------------------------------------------------------
*/

@media (max-height: 900px) {

    .mamo-sidebar {
        padding-top: 18px;
        padding-bottom: 14px;
    }


    .mamo-sidebar-brand {
        margin-bottom: 12px;
    }


    .mamo-sidebar-search {
        margin-bottom: 10px;
    }


    .mamo-nav-section {
        margin-top: 14px;
    }


    .mamo-nav-item {
        min-height: 40px;
    }

}



/* ============================================================
   MAMO PLATFORM ADMIN V1
   ============================================================ */


/* ------------------------------------------------------------
   PLATFORM SIDEBAR
------------------------------------------------------------- */

.mamo-sidebar.is-platform-root {
    background:
        linear-gradient(
            180deg,
            #101316 0%,
            #15191d 100%
        );
}


.mamo-sidebar.is-platform-root
.mamo-brand-badge {
    background: #c7342f;
    color: #fff;
}


.mamo-sidebar.is-platform-root
.mamo-nav-item.is-active {
    background:
        rgba(199,52,47,.16);

    border-color:
        rgba(199,52,47,.30);
}


.mamo-sidebar.is-platform-root
.mamo-nav-item:hover {
    background:
        rgba(255,255,255,.045);
}


/* ------------------------------------------------------------
   PLATFORM SHELL
------------------------------------------------------------- */

.platform-admin-shell {
    width:
        min(
            1500px,
            calc(100% - 48px)
        );

    margin:
        0 auto;

    padding:
        34px 0 70px;
}


.platform-admin-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}


.platform-admin-kicker {
    margin-bottom: 8px;

    color: #c7342f;

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

    letter-spacing: .14em;
}


.platform-admin-heading h1 {
    margin: 0 0 8px;

    color: #25292d;

    font-size: 36px;
    line-height: 1;

    letter-spacing: -.045em;
}


.platform-admin-heading p {
    max-width: 720px;

    margin: 0;

    color: #7f8589;

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


.platform-head-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


.platform-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding:
        0 16px;

    border:
        1px solid #d9d5d0;

    border-radius:
        9px;

    background:
        #fff;

    color:
        #363b3f;

    font-size:
        11px;

    font-weight:
        800;

    text-decoration:
        none;
}


/* ------------------------------------------------------------
   PACKAGE CARDS
------------------------------------------------------------- */

.platform-package-grid {
    display: grid;

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

    gap: 14px;

    margin-bottom: 22px;
}


.platform-package-card {
    position: relative;

    min-height: 285px;

    padding: 22px;

    border:
        1px solid #ded9d3;

    border-radius:
        15px;

    background:
        #fff;
}


.platform-package-card.recommended {
    border-color:
        #d74943;

    box-shadow:
        0 12px 34px
        rgba(199,52,47,.08);
}


.platform-package-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}


.platform-package-top small {
    display: block;

    margin-bottom: 5px;

    color:
        #9a9fa3;

    font-size:
        8px;

    font-weight:
        850;

    letter-spacing:
        .13em;
}


.platform-package-top h2 {
    margin: 0;

    color:
        #292d31;

    font-size:
        16px;
}


.platform-package-top > span {
    padding:
        5px 7px;

    border-radius:
        999px;

    background:
        #fae9e8;

    color:
        #a8322e;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        .08em;
}


.platform-package-price {
    display: flex;
    align-items: baseline;

    gap: 5px;

    margin-top:
        28px;
}


.platform-package-price strong {
    color:
        #24282c;

    font-size:
        31px;

    letter-spacing:
        -.05em;
}


.platform-package-price span,
.platform-package-year {
    color:
        #8d9296;

    font-size:
        10px;
}


.platform-package-year {
    margin-top:
        3px;
}


.platform-package-limits {
    display: grid;

    gap: 7px;

    margin-top:
        24px;
}


.platform-package-limits span {
    color:
        #666c70;

    font-size:
        10px;
}


.platform-package-addon {
    display: grid;

    gap: 4px;

    margin-top:
        18px;

    padding-top:
        14px;

    border-top:
        1px solid #ebe7e2;
}


.platform-package-addon strong {
    color:
        #a6312c;

    font-size:
        10px;
}


.platform-package-addon span {
    color:
        #858b8f;

    font-size:
        9px;

    line-height:
        1.45;
}


/* ------------------------------------------------------------
   ADMIN PANEL
------------------------------------------------------------- */

.platform-admin-panel {
    overflow:
        hidden;

    margin-bottom:
        22px;

    border:
        1px solid #dfdbd6;

    border-radius:
        15px;

    background:
        #fff;
}


.platform-admin-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        18px 21px;

    border-bottom:
        1px solid #ebe7e2;
}


.platform-admin-panel > header small {
    display: block;

    margin-bottom:
        5px;

    color:
        #a6312c;

    font-size:
        8px;

    font-weight:
        850;

    letter-spacing:
        .12em;
}


.platform-admin-panel > header h2 {
    margin: 0;

    color:
        #292d31;

    font-size:
        16px;
}


.platform-admin-panel > header > span {
    color:
        #8b9094;

    font-size:
        10px;
}


/* ------------------------------------------------------------
   MODULE MATRIX
------------------------------------------------------------- */

.platform-module-table-wrap {
    overflow-x:
        auto;
}


.platform-module-table {
    width: 100%;

    min-width:
        900px;

    border-collapse:
        collapse;
}


.platform-module-table th {
    padding:
        11px 16px;

    border-bottom:
        1px solid #e7e3de;

    background:
        #faf9f7;

    color:
        #8d9296;

    font-size:
        8px;

    font-weight:
        850;

    letter-spacing:
        .08em;

    text-align:
        center;

    text-transform:
        uppercase;
}


.platform-module-table th:first-child {
    text-align:
        left;
}


.platform-module-table td {
    padding:
        13px 16px;

    border-bottom:
        1px solid #efebe7;

    text-align:
        center;
}


.platform-module-table td:first-child {
    text-align:
        left;
}


.platform-module-table td strong {
    display:
        block;

    color:
        #34383c;

    font-size:
        11px;
}


.platform-module-table td small {
    display:
        block;

    margin-top:
        3px;

    color:
        #93989c;

    font-size:
        9px;
}


.platform-module-group td {
    padding:
        9px 16px;

    background:
        #f5f3f0;

    color:
        #6e7478;

    font-size:
        8px;

    font-weight:
        850;

    letter-spacing:
        .1em;

    text-align:
        left !important;

    text-transform:
        uppercase;
}


.platform-module-state {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        26px;

    height:
        26px;

    border-radius:
        8px;

    font-weight:
        900;
}


.platform-module-state.yes {
    background:
        #edf7f1;

    color:
        #197149;
}


.platform-module-state.no {
    background:
        #f4f3f1;

    color:
        #a5aaad;
}


/* ------------------------------------------------------------
   TENANT MODULE LIST
------------------------------------------------------------- */

.platform-tenant-module-list {
    display:
        grid;
}


.platform-tenant-module-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        15px 20px;

    border-bottom:
        1px solid #efebe7;
}


.platform-tenant-module-list article:last-child {
    border-bottom:
        0;
}


.platform-tenant-module-list strong {
    display:
        block;

    color:
        #303438;

    font-size:
        11px;
}


.platform-tenant-module-list span {
    display:
        block;

    margin-top:
        4px;

    color:
        #91969a;

    font-size:
        9px;
}


.platform-tenant-module-list a,
.platform-module-button {
    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        32px;

    padding:
        0 10px;

    border:
        1px solid #dcd8d3;

    border-radius:
        8px;

    background:
        #fff;

    color:
        #353a3e;

    font-size:
        9px;

    font-weight:
        800;

    text-decoration:
        none;
}


/* ------------------------------------------------------------
   TENANT MODULE EDIT
------------------------------------------------------------- */

.platform-tenant-module-summary {
    display: grid;

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

    gap: 14px;

    margin-bottom:
        18px;
}


.platform-tenant-module-summary article {
    padding:
        18px 20px;

    border:
        1px solid #dfdbd6;

    border-radius:
        13px;

    background:
        #fff;
}


.platform-tenant-module-summary small {
    display:
        block;

    margin-bottom:
        6px;

    color:
        #8c9195;

    font-size:
        8px;

    font-weight:
        850;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


.platform-tenant-module-summary strong {
    color:
        #292d31;

    font-size:
        16px;
}


.platform-module-help {
    display: grid;

    grid-template-columns:
        auto 1fr
        auto 1fr
        auto 1fr;

    gap:
        8px 12px;

    margin-bottom:
        20px;

    padding:
        14px 16px;

    border:
        1px solid #e4dfd9;

    border-radius:
        11px;

    background:
        #faf9f7;

    font-size:
        9px;
}


.platform-module-help strong {
    color:
        #3d4246;
}


.platform-module-help span {
    color:
        #858a8e;
}


.platform-module-form {
    display:
        grid;

    gap:
        12px;
}


.platform-module-section-title {
    margin-top:
        8px;

    padding:
        9px 2px 3px;

    color:
        #a6312c;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        .11em;

    text-transform:
        uppercase;
}


.platform-module-edit-row {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(320px,.55fr);

    gap: 22px;

    align-items:
        center;

    padding:
        17px 19px;

    border:
        1px solid #e1ddd8;

    border-radius:
        12px;

    background:
        #fff;
}


.platform-module-edit-copy strong {
    display:
        block;

    color:
        #303438;

    font-size:
        12px;
}


.platform-module-edit-copy > div > span {
    display:
        block;

    max-width:
        700px;

    margin-top:
        4px;

    color:
        #8a9094;

    font-size:
        9px;

    line-height:
        1.5;
}


.platform-module-badges {
    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        7px;

    margin-top:
        9px;
}


.platform-module-badges span {
    padding:
        5px 8px;

    border-radius:
        999px;

    font-size:
        8px;

    font-weight:
        800;
}


.platform-module-badges
.included,
.platform-module-badges
.effective-on {
    background:
        #edf7f1;

    color:
        #197149;
}


.platform-module-badges
.not-included,
.platform-module-badges
.effective-off {
    background:
        #f3f2f0;

    color:
        #858a8e;
}


.platform-module-edit-control {
    display:
        grid;

    grid-template-columns:
        180px 1fr;

    gap:
        9px;
}


.platform-module-edit-control
select,
.platform-module-edit-control
input {
    width:
        100%;

    min-height:
        40px;

    padding:
        0 11px;

    border:
        1px solid #dbd7d2;

    border-radius:
        8px;

    background:
        #fff;

    color:
        #373c40;

    font:
        inherit;

    font-size:
        10px;
}


.platform-module-submit {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        10px;

    margin-top:
        10px;
}


.platform-module-submit a,
.platform-module-submit button {
    min-height:
        42px;

    padding:
        0 16px;

    border-radius:
        9px;

    font:
        inherit;

    font-size:
        10px;

    font-weight:
        850;
}


.platform-module-submit a {
    display:
        inline-flex;

    align-items:
        center;

    border:
        1px solid #ddd9d4;

    background:
        #fff;

    color:
        #555b5f;

    text-decoration:
        none;
}


.platform-module-submit button {
    border:
        1px solid #292d31;

    background:
        #292d31;

    color:
        #fff;

    cursor:
        pointer;
}


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

@media (max-width: 1150px) {

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

}


@media (max-width: 800px) {

    .platform-admin-shell {
        width:
            calc(100% - 24px);
    }


    .platform-admin-heading {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .platform-head-actions {
        flex-wrap:
            wrap;
    }


    .platform-package-grid,
    .platform-tenant-module-summary {
        grid-template-columns:
            1fr;
    }


    .platform-module-edit-row {
        grid-template-columns:
            1fr;
    }


    .platform-module-edit-control {
        grid-template-columns:
            1fr;
    }


    .platform-module-help {
        grid-template-columns:
            auto 1fr;
    }

}



/* ============================================================
   MAMO PLATFORM · ONBOARDING MODULES V2
   ============================================================ */

.platform-onboarding-module-list {
    display: grid;
}


.platform-onboarding-module-group {
    padding: 11px 20px;

    border-top: 1px solid #e8e4df;
    border-bottom: 1px solid #e8e4df;

    background: #f7f5f2;

    color: #777d81;

    font-size: 8px;
    font-weight: 900;

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


.platform-onboarding-module-row {
    display: grid;

    grid-template-columns:
        minmax(260px,.7fr)
        minmax(520px,1.3fr);

    gap: 24px;

    align-items: center;

    padding: 16px 20px;

    border-bottom: 1px solid #eeebe6;
}


.platform-onboarding-module-row:last-child {
    border-bottom: 0;
}


.platform-onboarding-module-copy strong {
    display: block;

    color: #303438;

    font-size: 11px;
}


.platform-onboarding-module-copy > span {
    display: block;

    margin-top: 4px;

    color: #8b9094;

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


.platform-onboarding-baseline {
    display: inline-flex;

    margin-top: 8px;

    padding: 5px 8px;

    border-radius: 999px;

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


.platform-onboarding-baseline.is-included {
    background: #edf7f1;
    color: #197149;
}


.platform-onboarding-baseline.is-not-included {
    background: #f2f1ef;
    color: #82888c;
}


.platform-onboarding-module-controls {
    display: grid;

    grid-template-columns:
        minmax(165px,1fr)
        minmax(125px,.8fr)
        minmax(125px,.8fr)
        minmax(150px,1fr);

    gap: 8px;
}


.platform-onboarding-module-controls
select,
.platform-onboarding-module-controls
input {
    width: 100%;
    min-height: 40px;

    padding: 0 10px;

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

    background: #fff;

    color: #34393d;

    font: inherit;
    font-size: 9px;
}


.platform-onboarding-module-controls
input:disabled {
    background: #f5f3f0;

    color: #a7abad;
}


.platform-onboarding-module-row.is-custom-enabled {
    background:
        rgba(199,52,47,.018);
}


.platform-onboarding-module-row.is-custom-enabled
.platform-onboarding-module-controls
select {
    border-color:
        rgba(199,52,47,.5);
}


.platform-onboarding-module-row.is-custom-disabled {
    opacity: .72;
}


/* bestehende Mandanten-Modulmaske */

.platform-module-edit-control.module-pricing {
    grid-template-columns:
        170px
        130px
        130px
        minmax(150px,1fr);
}


@media (max-width: 1200px) {

    .platform-onboarding-module-row {
        grid-template-columns: 1fr;
    }


    .platform-onboarding-module-controls {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .platform-module-edit-control.module-pricing {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 700px) {

    .platform-onboarding-module-controls,
    .platform-module-edit-control.module-pricing {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO BMA · FIXED MODULE PRICING V1
   ============================================================ */

.platform-fixed-addon {
    min-width: 135px;
}


.platform-fixed-addon-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}


.platform-fixed-addon-price strong {
    color: #292d31;
    font-size: 17px;
    letter-spacing: -.035em;
}


.platform-fixed-addon-price span,
.platform-fixed-addon > small {
    color: #8c9195;
    font-size: 8px;
}


.platform-fixed-addon > small {
    display: block;
    margin-top: 3px;
}


.platform-package-only-label {
    display: inline-flex;

    padding: 6px 8px;

    border-radius: 999px;

    background: #f2f1ef;

    color: #7d8387;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .08em;
}


.platform-onboarding-module-row {
    grid-template-columns:
        minmax(260px,.8fr)
        140px
        minmax(330px,.9fr);
}


.platform-onboarding-module-actions {
    display: grid;

    grid-template-columns:
        minmax(185px,.8fr)
        minmax(150px,1fr);

    gap: 8px;
}


.platform-onboarding-module-actions
select,
.platform-onboarding-module-actions
input {
    width: 100%;

    min-height: 40px;

    padding: 0 10px;

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

    background: #fff;

    color: #34393d;

    font: inherit;
    font-size: 9px;
}


.platform-onboarding-module-actions
select:disabled,
.platform-onboarding-module-actions
input:disabled {
    background: #f5f3f0;
    color: #a6aaad;
}


.platform-module-badges
.fixed-price {
    background: #eef2f7;
    color: #3e5d78;
}


@media (max-width: 1150px) {

    .platform-onboarding-module-row {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .platform-onboarding-module-actions {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO BMA · MELDER SPEICHERBESTÄTIGUNG
   Temporäres Feedback nach erfolgreicher Server-Speicherung
   ============================================================ */

.detector-workspace-item-shell,
.mamo-detector-mini-shell {
    position: relative;
}


.mamo-save-feedback {
    position: absolute;
    z-index: 80;

    left: 50%;
    top: -8px;

    min-width: 118px;

    padding: 8px 11px;

    border-radius: 10px;

    background: #32785b;
    color: #fff;

    box-shadow:
        0 8px 20px
        rgba(28, 52, 43, .22);

    text-align: center;
    white-space: nowrap;

    pointer-events: none;

    opacity: 0;

    transform:
        translate(-50%, -88%)
        scale(.94);

    transition:
        opacity .16s ease,
        transform .18s ease;
}


.mamo-save-feedback.is-visible {
    opacity: 1;

    transform:
        translate(-50%, -100%)
        scale(1);
}


.mamo-save-feedback strong {
    display: block;

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

    line-height: 1.1;
}


.mamo-save-feedback span {
    display: block;

    margin-top: 3px;

    font-size: 8px;
    font-weight: 800;

    opacity: .88;
}


.mamo-matrix-ok.mamo-save-pulse {
    animation:
        mamoDetectorSavedPulse
        .58s ease-out;
}


@keyframes mamoDetectorSavedPulse {

    0% {
        transform: scale(1);
    }

    38% {
        transform: scale(1.055);

        box-shadow:
            0 0 0 5px
            rgba(50, 120, 91, .18);
    }

    100% {
        transform: scale(1);
    }

}


@media (max-width: 900px) {

    .mamo-save-feedback {
        min-width: 108px;

        padding:
            7px 9px;

        top: -6px;
    }

}


/* ============================================================
   MAMO PLATFORM · ENTERPRISE CAPACITY V1
   ============================================================ */

.platform-capacity-summary {
    display: grid;

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

    gap: 12px;

    margin-bottom: 18px;
}


.platform-capacity-summary article {
    padding: 18px 20px;

    border: 1px solid #dfdbd6;
    border-radius: 13px;

    background: #fff;
}


.platform-capacity-summary small {
    display: block;

    margin-bottom: 7px;

    color: #8c9195;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.platform-capacity-summary strong {
    color: #292d31;

    font-size: 21px;

    letter-spacing: -.035em;
}


.platform-capacity-card {
    overflow: hidden;

    border: 1px solid #ded9d3;
    border-radius: 15px;

    background: #fff;
}


.platform-capacity-product {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 25px 26px;

    border-bottom: 1px solid #ebe7e2;

    background:
        linear-gradient(
            135deg,
            #fff,
            #faf7f5
        );
}


.platform-capacity-product small {
    color: #c7342f;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .12em;
}


.platform-capacity-product h2 {
    margin: 6px 0;

    color: #292d31;

    font-size: 24px;

    letter-spacing: -.04em;
}


.platform-capacity-product p {
    max-width: 620px;

    margin: 0;

    color: #858b8f;

    font-size: 10px;

    line-height: 1.5;
}


.platform-capacity-price {
    min-width: 160px;

    text-align: right;
}


.platform-capacity-price strong {
    color: #c7342f;

    font-size: 30px;

    letter-spacing: -.05em;
}


.platform-capacity-price span,
.platform-capacity-price small {
    color: #858b8f;

    font-size: 9px;
}


.platform-capacity-price small {
    display: block;

    margin-top: 4px;
}


.platform-capacity-warning {
    margin: 18px 22px 0;

    padding: 13px 15px;

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

    background: #fff9ee;

    color: #816735;

    font-size: 10px;

    line-height: 1.5;
}


.platform-capacity-form {
    display: grid;

    gap: 18px;

    padding: 22px 24px 25px;
}


.platform-capacity-form label > span {
    display: block;

    margin-bottom: 7px;

    color: #63696d;

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


.platform-capacity-form input,
.platform-capacity-form textarea {
    width: 100%;

    padding: 10px 12px;

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

    background: #fff;

    color: #303438;

    font: inherit;

    box-sizing: border-box;
}


.platform-capacity-calculation {
    display: grid;

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

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

    overflow: hidden;
}


.platform-capacity-calculation > div {
    padding: 15px 17px;

    border-right: 1px solid #e8e4df;
}


.platform-capacity-calculation > div:last-child {
    border-right: 0;
}


.platform-capacity-calculation span {
    display: block;

    color: #8b9094;

    font-size: 8px;

    text-transform: uppercase;
}


.platform-capacity-calculation strong {
    display: block;

    margin-top: 7px;

    color: #292d31;

    font-size: 19px;
}


.platform-catalog-actions {
    display: flex;
    align-items: center;

    gap: 7px;
}


@media (max-width: 900px) {

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


    .platform-capacity-product {
        align-items: flex-start;
        flex-direction: column;
    }


    .platform-capacity-price {
        text-align: left;
    }

}


@media (max-width: 600px) {

    .platform-capacity-summary,
    .platform-capacity-calculation {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO BMA · PRODUCT CATALOG V1
   ============================================================ */

.platform-product-shell {
    width:
        min(
            1540px,
            calc(100% - 48px)
        );

    margin:
        0 auto;

    padding:
        34px 0 75px;
}


.platform-product-head {
    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        30px;

    margin-bottom:
        24px;
}


.platform-product-head h1 {
    margin:
        0 0 9px;

    color:
        #25292d;

    font-size:
        38px;

    line-height:
        1;

    letter-spacing:
        -.05em;
}


.platform-product-head p {
    max-width:
        760px;

    margin:
        0;

    color:
        #81878b;

    font-size:
        13px;

    line-height:
        1.55;
}


/* Pricing rule */

.platform-pricing-rule {
    display:
        grid;

    grid-template-columns:
        1fr
        auto;

    align-items:
        center;

    gap:
        40px;

    margin-bottom:
        18px;

    padding:
        20px 23px;

    border:
        1px solid #ddd8d2;

    border-radius:
        14px;

    background:
        #fff;
}


.platform-pricing-rule small {
    display:
        block;

    margin-bottom:
        5px;

    color:
        #c7342f;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        .12em;
}


.platform-pricing-rule strong {
    display:
        block;

    color:
        #292d31;

    font-size:
        16px;
}


.platform-pricing-rule span {
    display:
        block;

    margin-top:
        4px;

    color:
        #858a8e;

    font-size:
        10px;
}


.platform-pricing-rule-stat {
    min-width:
        170px;

    padding-left:
        25px;

    border-left:
        1px solid #e7e2dc;
}


.platform-pricing-rule-stat strong {
    color:
        #c7342f;

    font-size:
        25px;
}


/* Package cards */

.platform-package-grid.product-catalog {
    margin-bottom:
        22px;
}


.product-package-card {
    min-height:
        390px;
}


.product-package-card.enterprise {
    background:
        linear-gradient(
            145deg,
            #fff,
            #faf8f7
        );
}


.enterprise-badge {
    background:
        #292d31 !important;

    color:
        #fff !important;
}


.product-package-year {
    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        8px;

    margin-top:
        16px;
}


.product-package-year > div {
    padding:
        10px 11px;

    border:
        1px solid #ebe6e0;

    border-radius:
        9px;

    background:
        #faf9f7;
}


.product-package-year span {
    display:
        block;

    color:
        #94999c;

    font-size:
        7px;

    text-transform:
        uppercase;
}


.product-package-year strong {
    display:
        block;

    margin-top:
        4px;

    color:
        #33383c;

    font-size:
        13px;
}


.product-package-year strong.saving {
    color:
        #1d724b;
}


.platform-package-limits b {
    display:
        inline-block;

    min-width:
        34px;

    color:
        #292d31;

    font-size:
        12px;
}


.product-package-feature-count {
    display:
        flex;

    align-items:
        baseline;

    gap:
        6px;

    margin-top:
        19px;

    padding-top:
        15px;

    border-top:
        1px solid #ebe6e0;
}


.product-package-feature-count strong {
    color:
        #c7342f;

    font-size:
        22px;
}


.product-package-feature-count span {
    color:
        #858b8f;

    font-size:
        9px;
}


.product-package-description {
    margin:
        14px 0 0;

    color:
        #858b8f;

    font-size:
        9px;

    line-height:
        1.55;
}


/* Feature matrix */

.product-feature-panel {
    margin-top:
        5px;
}


.product-feature-table td:first-child {
    min-width:
        320px;
}


/* Add-ons */

.product-addon-grid {
    display:
        grid;

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


.product-addon-card {
    display:
        flex;

    min-height:
        150px;

    flex-direction:
        column;

    justify-content:
        space-between;

    padding:
        18px;

    border-right:
        1px solid #ebe7e2;

    border-bottom:
        1px solid #ebe7e2;
}


.product-addon-card:nth-child(3n) {
    border-right:
        0;
}


.product-addon-card small {
    color:
        #9a9fa2;

    font-size:
        7px;

    font-weight:
        850;

    letter-spacing:
        .09em;
}


.product-addon-card h3 {
    margin:
        5px 0;

    color:
        #303438;

    font-size:
        13px;
}


.product-addon-card p {
    margin:
        0;

    color:
        #8b9094;

    font-size:
        9px;

    line-height:
        1.45;
}


.product-addon-price {
    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        8px;

    margin-top:
        16px;
}


.product-addon-price > div {
    padding:
        9px 10px;

    border-radius:
        8px;

    background:
        #f7f5f2;
}


.product-addon-price span {
    display:
        block;

    color:
        #969b9e;

    font-size:
        7px;
}


.product-addon-price strong {
    display:
        block;

    margin-top:
        3px;

    color:
        #292d31;

    font-size:
        14px;
}


.product-addon-card.package-only {
    background:
        #faf9f7;
}


.product-package-only {
    margin-top:
        16px;

    color:
        #7f8589;

    font-size:
        8px;

    font-weight:
        800;

    text-transform:
        uppercase;
}


/* Capacity */

.product-capacity-banner {
    display:
        grid;

    grid-template-columns:
        1fr auto;

    align-items:
        center;

    gap:
        40px;

    margin-bottom:
        22px;

    padding:
        24px 26px;

    border:
        1px solid #292d31;

    border-radius:
        15px;

    background:
        #292d31;

    color:
        #fff;
}


.product-capacity-banner small {
    color:
        #e06560;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        .12em;
}


.product-capacity-banner h2 {
    margin:
        5px 0;

    font-size:
        25px;

    letter-spacing:
        -.04em;
}


.product-capacity-banner p {
    margin:
        0;

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

    font-size:
        10px;
}


.product-capacity-pricing {
    display:
        grid;

    grid-template-columns:
        repeat(3,130px);

    border:
        1px solid rgba(255,255,255,.12);

    border-radius:
        10px;

    overflow:
        hidden;
}


.product-capacity-pricing > div {
    padding:
        13px 15px;

    border-right:
        1px solid rgba(255,255,255,.12);
}


.product-capacity-pricing > div:last-child {
    border-right:
        0;
}


.product-capacity-pricing span {
    display:
        block;

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

    font-size:
        7px;

    text-transform:
        uppercase;
}


.product-capacity-pricing strong {
    display:
        block;

    margin-top:
        5px;

    color:
        #fff;

    font-size:
        17px;
}


/* Tenant commercial list */

.product-tenant-list {
    display:
        grid;
}


.product-tenant-list article {
    display:
        grid;

    grid-template-columns:
        minmax(220px,1.5fr)
        minmax(130px,.7fr)
        100px
        110px
        auto;

    gap:
        18px;

    align-items:
        center;

    padding:
        15px 19px;

    border-bottom:
        1px solid #ede9e4;
}


.product-tenant-list article:last-child {
    border-bottom:
        0;
}


.product-tenant-list small {
    display:
        block;

    margin-bottom:
        3px;

    color:
        #9a9fa2;

    font-size:
        7px;

    text-transform:
        uppercase;
}


.product-tenant-list strong {
    color:
        #33383c;

    font-size:
        10px;
}


.product-tenant-company > strong {
    display:
        block;

    font-size:
        11px;
}


.product-tenant-company span {
    display:
        block;

    margin-top:
        3px;

    color:
        #969b9e;

    font-size:
        8px;
}


.platform-catalog-actions button {
    min-height:
        32px;

    padding:
        0 10px;

    border:
        1px solid #292d31;

    border-radius:
        8px;

    background:
        #292d31;

    color:
        #fff;

    font:
        inherit;

    font-size:
        9px;

    font-weight:
        800;

    cursor:
        pointer;
}


.product-empty {
    padding:
        28px;

    color:
        #92979b;

    font-size:
        10px;

    text-align:
        center;
}


/* Responsive */

@media (max-width: 1200px) {

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


    .product-addon-card:nth-child(3n) {
        border-right:
            1px solid #ebe7e2;
    }


    .product-addon-card:nth-child(2n) {
        border-right:
            0;
    }


    .product-tenant-list article {
        grid-template-columns:
            1fr 1fr;
    }


    .platform-catalog-actions {
        grid-column:
            1 / -1;
    }

}


@media (max-width: 800px) {

    .platform-product-shell {
        width:
            calc(100% - 24px);
    }


    .platform-product-head,
    .platform-pricing-rule,
    .product-capacity-banner {
        grid-template-columns:
            1fr;
    }


    .platform-product-head {
        align-items:
            stretch;
    }


    .platform-pricing-rule-stat {
        padding:
            15px 0 0;

        border-left:
            0;

        border-top:
            1px solid #e7e2dc;
    }


    .product-addon-grid {
        grid-template-columns:
            1fr;
    }


    .product-addon-card {
        border-right:
            0 !important;
    }


    .product-capacity-pricing {
        grid-template-columns:
            1fr;
    }


    .product-capacity-pricing > div {
        border-right:
            0;

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


    .product-capacity-pricing > div:last-child {
        border-bottom:
            0;
    }


    .product-tenant-list article {
        grid-template-columns:
            1fr;
    }

}



/* ============================================================
   MAMO BMA · OFFLINE / SYNC STATUS V1
   ============================================================ */

.mamo-offline-sync-status {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 9999;

    padding: 9px 13px;

    border-radius: 999px;

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

    box-shadow:
        0 10px 28px
        rgba(30, 35, 38, .16);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);

    pointer-events: none;
}


.mamo-offline-sync-status.offline {
    background: #fff4dc;
    color: #815f18;

    border:
        1px solid #e6c979;
}


.mamo-offline-sync-status.pending,
.mamo-offline-sync-status.syncing {
    background: #eef3f5;
    color: #36434a;

    border:
        1px solid #cbd5da;
}


.mamo-offline-sync-status.done {
    background: #e9f5ee;
    color: #28684f;

    border:
        1px solid #afd6c0;
}


.mamo-offline-sync-status.error {
    background: #fdebea;
    color: #9d302d;

    border:
        1px solid #e9b0ad;
}


/*
 * Solange ein Melder nur lokal gespeichert ist,
 * bekommt er einen dezenten Synchronisationsring.
 */

.detector-workspace-item-shell.mamo-offline-pending
    .mamo-matrix-ok,
.mamo-detector-mini-shell.mamo-offline-pending
    .mamo-matrix-ok {

    box-shadow:
        0 0 0 3px
        rgba(193, 143, 42, .28);

}


/*
 * Temporäre Rückmeldung einer Offline-Speicherung
 */

.mamo-save-feedback.is-offline {

    background:
        #9b7324;

}


@media (max-width: 900px) {

    .mamo-offline-sync-status {

        right: 12px;

        bottom:
            calc(
                12px
                +
                env(safe-area-inset-bottom)
            );

        max-width:
            calc(100vw - 24px);

        font-size: 10px;
    }

}


/* ============================================================
   MAMO BMA · WARTUNGSBEREICH-SPERREN
   ============================================================ */

.maintenance-section-lock-runtime {
    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        0
        0
        18px;

    padding:
        12px
        15px;

    border:
        1px solid #d7ded9;

    border-radius:
        13px;

    background:
        #f7faf8;
}


.maintenance-section-lock-runtime.is-foreign {
    border-color:
        #e4c47f;

    background:
        #fff8e8;
}


.maintenance-section-lock-icon {
    display: flex;

    flex: 0 0 auto;

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

    width: 34px;
    height: 34px;

    border-radius:
        10px;

    background:
        #e7f2eb;

    color:
        #32785b;

    font-size:
        14px;
}


.maintenance-section-lock-runtime.is-foreign
.maintenance-section-lock-icon {
    background:
        #f8e9c5;

    color:
        #8b681d;
}


.maintenance-section-lock-copy {
    min-width: 0;

    flex: 1;
}


.maintenance-section-lock-copy strong {
    display: block;

    color:
        #252c30;

    font-size:
        12px;

    font-weight:
        900;
}


.maintenance-section-lock-copy span {
    display: block;

    margin-top:
        2px;

    color:
        #697177;

    font-size:
        10px;

    line-height:
        1.45;
}


.maintenance-section-lock-state {
    flex: 0 0 auto;

    padding:
        5px
        9px;

    border-radius:
        999px;

    background:
        #e3f1e8;

    color:
        #32785b;

    font-size:
        9px;

    font-weight:
        900;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}


.maintenance-section-lock-runtime.is-foreign
.maintenance-section-lock-state {
    background:
        #f4dfac;

    color:
        #775816;
}


/* ------------------------------------------------------------
   STATUS DIREKT IN DER ÜBERSICHTSKACHEL
------------------------------------------------------------- */

.maintenance-section-lock-badge {
    display: flex;

    align-items: center;

    gap: 5px;

    width:
        fit-content;

    max-width:
        100%;

    margin-top:
        11px;

    padding:
        4px
        7px;

    border-radius:
        7px;

    font-size:
        8px;

    line-height:
        1.2;
}


.maintenance-section-lock-badge.mine {
    background:
        #edf5f0;

    color:
        #347055;
}


.maintenance-section-lock-badge.busy {
    background:
        #fff2d5;

    color:
        #795a19;
}


.maintenance-section-lock-badge strong {
    font-size:
        inherit;

    font-weight:
        900;
}


.maintenance-section-lock-badge small {
    overflow:
        hidden;

    max-width:
        130px;

    font-size:
        inherit;

    font-weight:
        750;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    opacity:
        .82;
}


/* ------------------------------------------------------------
   READ ONLY
------------------------------------------------------------- */

body.maintenance-section-readonly
button:disabled,
body.maintenance-section-readonly
input:disabled,
body.maintenance-section-readonly
select:disabled,
body.maintenance-section-readonly
textarea:disabled {
    cursor:
        not-allowed;
}


@media (max-width: 900px) {

    .maintenance-section-lock-runtime {
        align-items:
            flex-start;

        padding:
            11px 12px;
    }


    .maintenance-section-lock-state {
        margin-left:
            auto;
    }

}


/* ============================================================
   MAMO BMA · WARTUNGSBEREICH-SPERREN
   ============================================================ */

.maintenance-section-lock-runtime {
    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        0
        0
        18px;

    padding:
        12px
        15px;

    border:
        1px solid #d7ded9;

    border-radius:
        13px;

    background:
        #f7faf8;
}


.maintenance-section-lock-runtime.is-foreign {
    border-color:
        #e4c47f;

    background:
        #fff8e8;
}


.maintenance-section-lock-icon {
    display: flex;

    flex: 0 0 auto;

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

    width: 34px;
    height: 34px;

    border-radius:
        10px;

    background:
        #e7f2eb;

    color:
        #32785b;

    font-size:
        14px;
}


.maintenance-section-lock-runtime.is-foreign
.maintenance-section-lock-icon {
    background:
        #f8e9c5;

    color:
        #8b681d;
}


.maintenance-section-lock-copy {
    min-width: 0;

    flex: 1;
}


.maintenance-section-lock-copy strong {
    display: block;

    color:
        #252c30;

    font-size:
        12px;

    font-weight:
        900;
}


.maintenance-section-lock-copy span {
    display: block;

    margin-top:
        2px;

    color:
        #697177;

    font-size:
        10px;

    line-height:
        1.45;
}


.maintenance-section-lock-state {
    flex: 0 0 auto;

    padding:
        5px
        9px;

    border-radius:
        999px;

    background:
        #e3f1e8;

    color:
        #32785b;

    font-size:
        9px;

    font-weight:
        900;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}


.maintenance-section-lock-runtime.is-foreign
.maintenance-section-lock-state {
    background:
        #f4dfac;

    color:
        #775816;
}


/* ------------------------------------------------------------
   STATUS DIREKT IN DER ÜBERSICHTSKACHEL
------------------------------------------------------------- */

.maintenance-section-lock-badge {
    display: flex;

    align-items: center;

    gap: 5px;

    width:
        fit-content;

    max-width:
        100%;

    margin-top:
        11px;

    padding:
        4px
        7px;

    border-radius:
        7px;

    font-size:
        8px;

    line-height:
        1.2;
}


.maintenance-section-lock-badge.mine {
    background:
        #edf5f0;

    color:
        #347055;
}


.maintenance-section-lock-badge.busy {
    background:
        #fff2d5;

    color:
        #795a19;
}


.maintenance-section-lock-badge strong {
    font-size:
        inherit;

    font-weight:
        900;
}


.maintenance-section-lock-badge small {
    overflow:
        hidden;

    max-width:
        130px;

    font-size:
        inherit;

    font-weight:
        750;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

    opacity:
        .82;
}


/* ------------------------------------------------------------
   READ ONLY
------------------------------------------------------------- */

body.maintenance-section-readonly
button:disabled,
body.maintenance-section-readonly
input:disabled,
body.maintenance-section-readonly
select:disabled,
body.maintenance-section-readonly
textarea:disabled {
    cursor:
        not-allowed;
}


@media (max-width: 900px) {

    .maintenance-section-lock-runtime {
        align-items:
            flex-start;

        padding:
            11px 12px;
    }


    .maintenance-section-lock-state {
        margin-left:
            auto;
    }

}


/* ============================================================
   MAMO WORK UI STANDARD V1
   ============================================================
   Referenz für operative Arbeitsbereiche:
   - einheitliche Panels
   - einheitliche Innenkarten
   - einheitlicher Hover
   - Status über Pills statt kompletter Hintergrundfarben
   - einheitliche Action Buttons
   ============================================================ */

:root {

    --mamo-work-panel:
        #ffffff;

    --mamo-work-card:
        #fbfaf8;

    --mamo-work-card-hover:
        #fff7f5;

    --mamo-work-border:
        #e5e1dc;

    --mamo-work-border-hover:
        #d6cec8;

    --mamo-work-text:
        #303539;

    --mamo-work-muted:
        #858b8f;

    --mamo-work-red:
        #d93631;

    --mamo-work-dark:
        #292d30;

    --mamo-work-green:
        #26784f;

    --mamo-work-green-bg:
        #eaf6ef;

    --mamo-work-yellow:
        #8d651f;

    --mamo-work-yellow-bg:
        #fff4dc;

    --mamo-work-danger:
        #a7332d;

    --mamo-work-danger-bg:
        #fceeed;
}


/* ============================================================
   PANEL STANDARD
   ============================================================ */

.measurement-panel,
.mamo-work-panel {

    border:
        1px solid
        var(--mamo-work-border);

    border-radius:
        18px;

    overflow:
        hidden;

    background:
        var(--mamo-work-panel);
}


/* ============================================================
   INNENKARTEN
   ============================================================ */

.measurement-status-row,
.measurement-value-card,
.measurement-procedure-card,
.mamo-work-card {

    background:
        var(--mamo-work-card) !important;

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


.measurement-status-row:hover,
.measurement-value-card:hover,
.measurement-procedure-card:hover,
.mamo-work-card:hover {

    background:
        var(--mamo-work-card-hover) !important;
}


/*
 * Kein Farbteppich mehr je Status.
 * Statusfarbe gehört in Pill / Button.
 */

.measurement-procedure-card.state-ok,
.measurement-procedure-card.state-issue,
.measurement-procedure-card.state-progress,
.measurement-procedure-card.state-neutral,
.measurement-value-card.state-ok,
.measurement-value-card.state-issue,
.measurement-value-card.state-recorded,
.measurement-value-card.state-not_tested {

    background:
        var(--mamo-work-card) !important;
}


/* ============================================================
   ALARMIERUNG
   ============================================================ */

.mamo-work-list {

    display:
        grid;

    gap:
        1px;

    background:
        var(--mamo-work-border);
}


.mamo-work-card {

    padding:
        20px 22px;
}


.mamo-work-card-head {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        20px;

    margin-bottom:
        15px;
}


.mamo-work-card-head small {

    display:
        block;

    margin-bottom:
        4px;

    color:
        var(--mamo-work-red);

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        .12em;
}


.mamo-work-card-head h4 {

    margin:
        0;

    color:
        var(--mamo-work-text);

    font-size:
        15px;

    line-height:
        1.3;
}


.mamo-work-card-head p {

    margin:
        4px 0 0;

    color:
        var(--mamo-work-muted);

    font-size:
        11px;
}


/* ============================================================
   SICHT-/FUNKTIONSPRÜFUNG
   ============================================================ */

.mamo-check-rows {

    display:
        grid;

    gap:
        10px;
}


.mamo-check-row {

    display:
        grid;

    grid-template-columns:
        minmax(260px, 1fr)
        auto
        minmax(420px, auto);

    gap:
        16px;

    align-items:
        center;

    padding:
        14px 15px;

    border:
        1px solid
        var(--mamo-work-border);

    border-radius:
        12px;

    background:
        #fff;

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


.mamo-check-row:hover {

    background:
        var(--mamo-work-card-hover);

    border-color:
        var(--mamo-work-border-hover);
}


.mamo-check-copy {

    display:
        grid;

    gap:
        3px;
}


.mamo-check-copy strong {

    color:
        var(--mamo-work-text);

    font-size:
        12px;
}


.mamo-check-copy > span {

    color:
        var(--mamo-work-muted);

    font-size:
        10px;

    line-height:
        1.45;
}


/* ============================================================
   HISTORY / NICHT GEPRÜFT
   ============================================================ */

.mamo-history-note,
.mamo-skip-reason {

    margin-top:
        6px;

    font-size:
        9px;

    line-height:
        1.45;
}


.mamo-history-note {

    color:
        #557065;

    font-weight:
        750;
}


.mamo-history-note.procedure {

    display:
        block;

    padding:
        7px 9px;

    border-radius:
        8px;

    background:
        #eef4f0;
}


.mamo-skip-reason {

    color:
        #746549;

    font-weight:
        750;
}


.mamo-skip-reason.procedure {

    padding:
        7px 9px;

    border-radius:
        8px;

    background:
        #f4f1eb;
}


/* ============================================================
   STATUS PILLS
   ============================================================ */

.mamo-status-pill {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        30px;

    padding:
        0 10px;

    border-radius:
        999px;

    color:
        #666c70;

    background:
        #efefee;

    font-size:
        9px;

    font-weight:
        850;

    white-space:
        nowrap;
}


.mamo-status-pill.good {

    color:
        var(--mamo-work-green);

    background:
        var(--mamo-work-green-bg);
}


.mamo-status-pill.open {

    color:
        var(--mamo-work-yellow);

    background:
        var(--mamo-work-yellow-bg);
}


.mamo-status-pill.neutral {

    color:
        #666c70;

    background:
        #efefee;
}


.mamo-status-pill.danger {

    color:
        var(--mamo-work-danger);

    background:
        var(--mamo-work-danger-bg);
}


/* ============================================================
   ACTIONS
   ============================================================ */

.mamo-check-actions {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    gap:
        7px;
}


.mamo-check-actions form {

    margin:
        0;
}


.mamo-action-button {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        38px;

    padding:
        0 12px;

    border:
        1px solid
        var(--mamo-work-border);

    border-radius:
        9px;

    color:
        var(--mamo-work-text);

    background:
        #fff;

    font:
        inherit;

    font-size:
        9px;

    font-weight:
        850;

    text-decoration:
        none;

    cursor:
        pointer;

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


.mamo-action-button:hover:not(:disabled) {

    color:
        var(--mamo-work-red);

    border-color:
        var(--mamo-work-red);

    background:
        #fff7f5;
}


.mamo-action-button.primary {

    color:
        #fff;

    border-color:
        var(--mamo-work-dark);

    background:
        var(--mamo-work-dark);
}


.mamo-action-button.primary:hover:not(:disabled),
.mamo-action-button.primary.active {

    color:
        #fff;

    border-color:
        var(--mamo-work-red);

    background:
        var(--mamo-work-red);
}


.mamo-action-button.secondary {

    background:
        #f6f5f3;
}


.mamo-action-button.active {

    color:
        var(--mamo-work-red);

    border-color:
        var(--mamo-work-red);

    background:
        #fff4f3;
}


.mamo-action-button.danger {

    color:
        #fff;

    border-color:
        var(--mamo-work-danger);

    background:
        var(--mamo-work-danger);
}


.mamo-action-button:disabled {

    opacity:
        .45;

    cursor:
        default;
}


/* ============================================================
   DETAILS / POPUP
   ============================================================ */

.mamo-inline-action {

    position:
        relative;
}


.mamo-inline-action > summary {

    list-style:
        none;
}


.mamo-inline-action > summary::-webkit-details-marker {

    display:
        none;
}


.mamo-inline-action[open] > form {

    position:
        absolute;

    z-index:
        60;

    top:
        calc(100% + 7px);

    right:
        0;

    width:
        min(330px, 80vw);

    display:
        grid;

    gap:
        10px;

    padding:
        14px;

    border:
        1px solid
        var(--mamo-work-border);

    border-radius:
        12px;

    background:
        #fff;

    box-shadow:
        0 16px 36px
        rgba(24, 29, 32, .14);
}


.mamo-inline-action label,
.mamo-defect-details label {

    display:
        grid;

    gap:
        5px;

    color:
        #666c70;

    font-size:
        9px;

    font-weight:
        800;
}


.mamo-inline-action select,
.mamo-inline-action textarea,
.mamo-defect-details input,
.mamo-defect-details select,
.mamo-defect-details textarea {

    width:
        100%;

    padding:
        9px 10px;

    border:
        1px solid
        var(--mamo-work-border);

    border-radius:
        8px;

    color:
        var(--mamo-work-text);

    background:
        #fff;

    font:
        inherit;
}


/* ============================================================
   MANGEL
   ============================================================ */

.mamo-defect-details {

    margin-top:
        15px;

    padding-top:
        12px;

    border-top:
        1px dashed
        var(--mamo-work-border);
}


.mamo-defect-details > summary {

    color:
        #666c70;

    font-size:
        10px;

    font-weight:
        850;

    cursor:
        pointer;
}


.mamo-defect-details > summary:hover {

    color:
        var(--mamo-work-red);
}


.mamo-defect-details[open] > form {

    display:
        grid;

    gap:
        12px;

    margin-top:
        12px;

    padding:
        15px;

    border:
        1px solid
        var(--mamo-work-border);

    border-radius:
        12px;

    background:
        #fff;
}


.mamo-form-grid {

    display:
        grid;

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

    gap:
        10px;
}


/* ============================================================
   FSD / BRANDFALLSTEUERUNG
   ============================================================ */

.mamo-procedure-actions {

    display:
        grid;

    gap:
        7px;

    min-width:
        190px;
}


.mamo-procedure-actions
.measurement-procedure-open {

    width:
        100%;
}


.mamo-procedure-actions
.mamo-inline-action {

    width:
        100%;
}


.mamo-procedure-actions
.mamo-inline-action > summary {

    width:
        100%;
}


/* Einheitlicher Procedure Hover */

.measurement-procedure-card {

    border-color:
        var(--mamo-work-border);
}


.measurement-procedure-card:hover {

    background:
        var(--mamo-work-card-hover) !important;
}


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

@media (max-width: 1150px) {

    .mamo-check-row {

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


    .mamo-check-actions {

        grid-column:
            1 / -1;

        justify-content:
            flex-start;
    }
}


@media (max-width: 760px) {

    .mamo-work-card {

        padding:
            16px;
    }


    .mamo-check-row {

        grid-template-columns:
            1fr;
    }


    .mamo-status-pill {

        justify-self:
            start;
    }


    .mamo-check-actions {

        display:
            grid;

        grid-template-columns:
            1fr 1fr;
    }


    .mamo-action-button {

        width:
            100%;
    }


    .mamo-form-grid {

        grid-template-columns:
            1fr;
    }


    .mamo-inline-action[open] > form {

        position:
            static;

        width:
            100%;

        margin-top:
            7px;

        box-shadow:
            none;
    }
}


/* ============================================================
   ENDE · MAMO WORK UI STANDARD V1
   ============================================================ */



/* ============================================================
   MAMO WORK UI STANDARD V1.1
   STATUSFARBEN · HOVER · KOMPAKTHEIT
   ============================================================ */


/* ------------------------------------------------------------
   ALARMIERUNG · OFFENER ZUSTAND

   "Geprüft" darf nicht dunkel aussehen,
   solange es NICHT gewählt wurde.
   ------------------------------------------------------------ */

.mamo-check-actions
.mamo-action-button.primary:not(.active) {

    color:
        var(--mamo-work-text);

    border-color:
        var(--mamo-work-border);

    background:
        #ffffff;

    box-shadow:
        none;
}


.mamo-check-actions
.mamo-action-button.primary:not(.active):hover {

    color:
        var(--mamo-work-red);

    border-color:
        var(--mamo-work-red);

    background:
        #fff7f5;
}


/* ------------------------------------------------------------
   GEPRÜFT · GRÜN
   ------------------------------------------------------------ */

.mamo-check-actions
form:has(
    input[name="result"][value="ok"]
)
.mamo-action-button.active {

    color:
        #ffffff !important;

    border-color:
        var(--mamo-work-green) !important;

    background:
        var(--mamo-work-green) !important;

    box-shadow:
        none;
}


.mamo-check-actions
form:has(
    input[name="result"][value="ok"]
)
.mamo-action-button.active:hover {

    color:
        #ffffff !important;

    border-color:
        #206c47 !important;

    background:
        #206c47 !important;
}


/* ------------------------------------------------------------
   TEILWEISE · GELB / OCKER
   ------------------------------------------------------------ */

.mamo-check-actions
form:has(
    input[name="result"][value="partial"]
)
.mamo-action-button.active {

    color:
        #765111 !important;

    border-color:
        #e2b75e !important;

    background:
        #fff0cc !important;
}


/* ------------------------------------------------------------
   NICHT VORHANDEN · GRAU
   ------------------------------------------------------------ */

.mamo-check-actions
form:has(
    input[name="result"][value="not_present"]
)
.mamo-action-button.active {

    color:
        #555d61 !important;

    border-color:
        #cfd2d3 !important;

    background:
        #eceeed !important;
}


/* ------------------------------------------------------------
   NICHT GEPRÜFT · GRAU
   ------------------------------------------------------------ */

.mamo-check-actions
.mamo-inline-action:has(
    input[name="result"][value="not_tested"]
)
> summary.active {

    color:
        #555d61 !important;

    border-color:
        #cfd2d3 !important;

    background:
        #eceeed !important;
}


/* Falls das Summary aktuell nur über den Ergebniszustand
   innerhalb des Details markiert wird */

.mamo-inline-action[open]
> summary.mamo-action-button {

    border-color:
        #bbbfc1;

    background:
        #f0f1f0;
}


/* ------------------------------------------------------------
   STATUS PILLS
   ------------------------------------------------------------ */

.mamo-status-pill.good {

    color:
        #1f7049;

    background:
        #e7f4ec;
}


.mamo-status-pill.open {

    color:
        #8a601c;

    background:
        #fff0cf;
}


.mamo-status-pill.neutral {

    color:
        #5f666a;

    background:
        #eceeed;
}


.mamo-status-pill.danger {

    color:
        #a32f29;

    background:
        #fae9e7;
}


/* ------------------------------------------------------------
   CHECK-BOXEN · EINHEITLICHER HINTERGRUND
   ------------------------------------------------------------ */

.mamo-check-row {

    background:
        #ffffff;

    box-shadow:
        none;
}


.mamo-check-row:hover {

    border-color:
        #d9d1cb;

    background:
        #fff8f6;
}


/* Status darf NICHT die komplette Zeile einfärben */

.mamo-check-row.good,
.mamo-check-row.open,
.mamo-check-row.neutral,
.mamo-check-row.danger {

    background:
        #ffffff;
}


/* ------------------------------------------------------------
   ARBEITSKARTEN KOMPAKTER
   ------------------------------------------------------------ */

.mamo-work-card {

    padding:
        17px 20px;
}


.mamo-work-card-head {

    margin-bottom:
        12px;
}


.mamo-check-rows {

    gap:
        8px;
}


.mamo-check-row {

    min-height:
        66px;

    padding:
        12px 14px;
}


/* Zwei Alarmierungsarten etwas dichter zusammen */

.mamo-work-list {

    gap:
        0;
}


.mamo-work-card
+
.mamo-work-card {

    border-top:
        1px solid
        var(--mamo-work-border);
}


/* ------------------------------------------------------------
   MANGEL ERFASSEN
   ------------------------------------------------------------ */

.mamo-defect-details {

    margin-top:
        12px;

    padding-top:
        10px;
}


.mamo-defect-details > summary {

    transition:
        color .15s ease;
}


.mamo-defect-details > summary:hover {

    color:
        var(--mamo-work-red);
}


/* ------------------------------------------------------------
   PROCEDURE CARDS
   FSD / BRANDFALLSTEUERUNG
   ------------------------------------------------------------ */

.measurement-procedure-card {

    background:
        #fbfaf8 !important;

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


.measurement-procedure-card:hover {

    background:
        #fff8f6 !important;
}


/*
 * OK / Mangel / Fortschritt / Nicht geprüft
 * färben NICHT die komplette Karte.
 */

.measurement-procedure-card.state-ok,
.measurement-procedure-card.state-progress,
.measurement-procedure-card.state-issue,
.measurement-procedure-card.state-neutral {

    background:
        #fbfaf8 !important;
}


/* Hauptbutton Procedure */

.measurement-procedure-open {

    border:
        1px solid
        #292d30;

    background:
        #292d30;

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


.measurement-procedure-open:hover:not(:disabled) {

    border-color:
        var(--mamo-work-red);

    background:
        var(--mamo-work-red);
}


/* "Nicht geprüft" exakt gleiche Dimension */

.mamo-procedure-actions
.mamo-inline-action
> summary {

    min-height:
        42px;

    box-sizing:
        border-box;
}


/* ------------------------------------------------------------
   POPUP NICHT GEPRÜFT
   ------------------------------------------------------------ */

.mamo-inline-action[open] > form {

    border-color:
        #ddd7d2;

    background:
        #ffffff;

    box-shadow:
        0 18px 42px
        rgba(24,29,32,.14);
}


.mamo-inline-action
select:focus,
.mamo-inline-action
textarea:focus,
.mamo-defect-details
input:focus,
.mamo-defect-details
select:focus,
.mamo-defect-details
textarea:focus {

    outline:
        none;

    border-color:
        var(--mamo-work-red);

    box-shadow:
        0 0 0 3px
        rgba(217,54,49,.07);
}


/* ------------------------------------------------------------
   ÜBERSICHTS-ZÄHLER / PANEL
   ------------------------------------------------------------ */

.measurement-panel-count {

    background:
        #f1efec;

    color:
        #51575b;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 760px) {

    .mamo-work-card {

        padding:
            15px;
    }


    .mamo-check-row {

        min-height:
            auto;

        padding:
            12px;
    }

}


/* ============================================================
   ENDE · MAMO WORK UI STANDARD V1.1
   ============================================================ */



/* ============================================================
   MAMO CHECKS UI STANDARD V2
   LAUFKARTEN · UNTERLAGEN · VOR-ORT-KONTROLLEN
   ============================================================ */

.mamo-checks-v2 {

    display:
        grid;

    gap:
        16px;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.mamo-checks-overview {

    overflow:
        hidden;
}


.mamo-checks-open-hint {

    padding:
        10px 20px;

    border-top:
        1px solid
        var(
            --mamo-work-border,
            #e5e1dc
        );

    color:
        #766139;

    background:
        #fff8e8;

    font-size:
        10px;
}


/* ------------------------------------------------------------
   GRUPPEN
   ------------------------------------------------------------ */

.mamo-check-group {

    overflow:
        hidden;
}


.mamo-doc-grid {

    display:
        grid;

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

    gap:
        10px;

    padding:
        16px;

    background:
        #fff;
}


/* ------------------------------------------------------------
   KARTE
   ------------------------------------------------------------ */

.mamo-doc-check-card {

    position:
        relative;

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;

    padding:
        15px;

    border:
        1px solid
        var(
            --mamo-work-border,
            #e5e1dc
        );

    border-radius:
        12px;

    background:
        var(
            --mamo-work-card,
            #fbfaf8
        );

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


@media (hover:hover) {

    .mamo-doc-check-card:hover {

        border-color:
            var(
                --mamo-work-border-hover,
                #d6cec8
            );

        background:
            var(
                --mamo-work-card-hover,
                #fff7f5
            );
    }
}


/*
 * Status färbt NICHT die komplette Karte.
 */

.mamo-doc-check-card.result-ok,
.mamo-doc-check-card.result-issue,
.mamo-doc-check-card.result-not_available,
.mamo-doc-check-card.result-not_testable,
.mamo-doc-check-card.result-not_required,
.mamo-doc-check-card.result-not_tested,
.mamo-doc-check-card.result-open {

    background:
        var(
            --mamo-work-card,
            #fbfaf8
        );
}


/* ------------------------------------------------------------
   KOPF
   ------------------------------------------------------------ */

.mamo-doc-check-head {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        10px;
}


.mamo-doc-icon {

    display:
        grid;

    width:
        38px;

    height:
        38px;

    flex:
        0 0 38px;

    place-items:
        center;

    border:
        1px solid
        #f0c9c6;

    border-radius:
        10px;

    color:
        #d93631;

    background:
        #fff1ef;

    font-size:
        9px;

    font-weight:
        950;

    letter-spacing:
        .04em;
}


/* zusätzlicher Warnstatus */

.mamo-status-pill.warning {

    color:
        #865d18;

    background:
        #fff0cf;
}


/* ------------------------------------------------------------
   TEXT
   ------------------------------------------------------------ */

.mamo-doc-check-copy {

    display:
        grid;

    gap:
        5px;

    margin-top:
        12px;
}


.mamo-doc-check-copy h4 {

    margin:
        0;

    color:
        var(
            --mamo-work-text,
            #303539
        );

    font-size:
        13px;

    line-height:
        1.3;
}


.mamo-doc-check-copy p {

    min-height:
        34px;

    margin:
        0;

    color:
        var(
            --mamo-work-muted,
            #858b8f
        );

    font-size:
        10px;

    line-height:
        1.45;
}


.mamo-doc-info {

    margin-top:
        4px;

    padding:
        7px 8px;

    border-radius:
        8px;

    color:
        #64706a;

    background:
        #edf4f0;

    font-size:
        9px;

    line-height:
        1.4;
}


.mamo-doc-current-note {

    min-height:
        14px;

    margin-top:
        4px;

    color:
        #746549;

    font-size:
        9px;

    line-height:
        1.4;
}


.mamo-doc-current-note.is-empty {

    visibility:
        hidden;
}


/* ------------------------------------------------------------
   ACTIONS
   ------------------------------------------------------------ */

.mamo-doc-check-form {

    margin-top:
        auto;
}


.mamo-doc-actions {

    display:
        grid;

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

    gap:
        7px;

    padding-top:
        12px;
}


.mamo-doc-action {

    min-height:
        40px;

    padding:
        7px 9px;

    border:
        1px solid
        var(
            --mamo-work-border,
            #e5e1dc
        );

    border-radius:
        9px;

    color:
        var(
            --mamo-work-text,
            #303539
        );

    background:
        #fff;

    font:
        inherit;

    font-size:
        9px;

    font-weight:
        850;

    cursor:
        pointer;

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


.mamo-doc-action:hover:not(:disabled) {

    color:
        var(
            --mamo-work-red,
            #d93631
        );

    border-color:
        var(
            --mamo-work-red,
            #d93631
        );

    background:
        #fff7f5;
}


/* GEPRÜFT */

.mamo-doc-action[
    data-check-result="ok"
].active {

    color:
        #fff;

    border-color:
        #26784f;

    background:
        #26784f;
}


/* MANGEL */

.mamo-doc-action[
    data-check-result="issue"
].active {

    color:
        #fff;

    border-color:
        #a7332d;

    background:
        #a7332d;
}


/* NICHT VORHANDEN */

.mamo-doc-action[
    data-check-result="not_available"
].active {

    color:
        #765111;

    border-color:
        #e2b75e;

    background:
        #fff0cc;
}


/* NICHT GEPRÜFT */

.mamo-doc-action[
    data-check-result="not_tested"
].active {

    color:
        #555d61;

    border-color:
        #cfd2d3;

    background:
        #eceeed;
}


.mamo-doc-action:disabled {

    opacity:
        .45;

    cursor:
        default;
}


/* ------------------------------------------------------------
   DETAIL
   ------------------------------------------------------------ */

.mamo-doc-detail {

    margin-top:
        9px;

    padding:
        11px;

    border:
        1px solid
        var(
            --mamo-work-border,
            #e5e1dc
        );

    border-radius:
        10px;

    background:
        #fff;
}


.mamo-doc-detail[hidden] {

    display:
        none !important;
}


.mamo-doc-detail label {

    display:
        block;

    margin-bottom:
        5px;

    color:
        #666d71;

    font-size:
        8px;

    font-weight:
        850;
}


.mamo-doc-detail select,
.mamo-doc-detail textarea {

    width:
        100%;

    box-sizing:
        border-box;

    padding:
        9px 10px;

    border:
        1px solid
        #ddd8d2;

    border-radius:
        8px;

    color:
        #303539;

    background:
        #fff;

    font:
        inherit;

    font-size:
        10px;
}


.mamo-doc-detail textarea {

    resize:
        vertical;
}


.mamo-doc-detail select:focus,
.mamo-doc-detail textarea:focus {

    outline:
        none;

    border-color:
        var(
            --mamo-work-red,
            #d93631
        );

    box-shadow:
        0 0 0 3px
        rgba(217,54,49,.07);
}


.mamo-doc-skip-reason {

    margin-bottom:
        9px;
}


.mamo-doc-skip-reason[hidden] {

    display:
        none !important;
}


.mamo-doc-save {

    width:
        100%;

    min-height:
        40px;

    margin-top:
        8px;

    border:
        0;

    border-radius:
        9px;

    color:
        #fff;

    background:
        var(
            --mamo-work-dark,
            #292d30
        );

    font:
        inherit;

    font-size:
        9px;

    font-weight:
        850;

    cursor:
        pointer;

    transition:
        background .15s ease;
}


.mamo-doc-save:hover:not(:disabled) {

    background:
        var(
            --mamo-work-red,
            #d93631
        );
}


.mamo-doc-saving {

    margin-top:
        7px;

    color:
        #858b8f;

    font-size:
        8px;
}


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

@media (max-width: 1250px) {

    .mamo-doc-grid {

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


@media (max-width: 760px) {

    .mamo-doc-grid {

        grid-template-columns:
            1fr;

        padding:
            12px;
    }


    .mamo-doc-check-card {

        padding:
            13px;
    }
}


/* ============================================================
   ENDE · MAMO CHECKS UI STANDARD V2
   ============================================================ */



/* ============================================================
   MAMO TECHNICAL HERO STANDARD V1
   GLOBALER BLUEPRINT-/BAUZEICHNUNGS-STANDARD
   ============================================================ */


/* ------------------------------------------------------------
   VARIABLEN
   ------------------------------------------------------------ */

:root {

    --mamo-blueprint-red:
        #d73731;

    --mamo-blueprint-ink:
        #252a2e;

    --mamo-blueprint-muted:
        #7f878c;

    --mamo-blueprint-border:
        #ddd8d2;

    --mamo-blueprint-grid:
        rgba(55,69,76,.030);

    --mamo-blueprint-grid-major:
        rgba(55,69,76,.050);

    --mamo-blueprint-red-soft:
        rgba(215,55,49,.048);
}


/* ============================================================
   1. GROSSE SEITEN-HERO-KACHELN
   ============================================================ */

.measurement-workspace-head,
.inspection-workspace-head,
.mamo-checks-overview,
.maintenance-final-hero,
.maintenance-completion-head,
.visit-assignment-card > .visit-assignment-head {

    position:
        relative;

    isolation:
        isolate;

    overflow:
        hidden;

    border-color:
        var(--mamo-blueprint-border);

    background:
        linear-gradient(
            112deg,
            rgba(255,255,255,.995) 0%,
            rgba(250,248,246,.985) 58%,
            rgba(246,244,241,.98) 100%
        );

    box-shadow:
        0 1px 2px rgba(25,29,32,.025),
        0 14px 34px rgba(25,29,32,.050);
}


/* ------------------------------------------------------------
   TECHNISCHES RASTER
   ------------------------------------------------------------ */

.measurement-workspace-head::before,
.inspection-workspace-head::before,
.mamo-checks-overview::before,
.maintenance-final-hero::before,
.maintenance-completion-head::before,
.visit-assignment-card > .visit-assignment-head::before {

    content:
        "";

    position:
        absolute;

    z-index:
        -2;

    inset:
        0;

    pointer-events:
        none;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            var(--mamo-blueprint-grid) 32px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            var(--mamo-blueprint-grid) 32px
        ),

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 127px,
            var(--mamo-blueprint-grid-major) 128px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 127px,
            var(--mamo-blueprint-grid-major) 128px
        );

    opacity:
        .9;
}


/* ------------------------------------------------------------
   TECHNISCHE KONSTRUKTIONSKREISE
   ------------------------------------------------------------ */

.measurement-workspace-head::after,
.inspection-workspace-head::after,
.mamo-checks-overview::after,
.maintenance-final-hero::after,
.maintenance-completion-head::after,
.visit-assignment-card > .visit-assignment-head::after {

    content:
        "";

    position:
        absolute;

    z-index:
        -1;

    width:
        440px;

    height:
        440px;

    top:
        -285px;

    right:
        -110px;

    border:
        1px solid
        rgba(49,64,71,.050);

    border-radius:
        50%;

    pointer-events:
        none;

    box-shadow:
        0 0 0 35px rgba(49,64,71,.020),
        0 0 0 76px rgba(215,55,49,.016),
        0 0 0 118px rgba(49,64,71,.014);
}


/* ------------------------------------------------------------
   LEICHTER CI-SCHEIN LINKS
   ------------------------------------------------------------ */

.measurement-workspace-head,
.inspection-workspace-head,
.mamo-checks-overview,
.maintenance-final-hero,
.maintenance-completion-head,
.visit-assignment-card > .visit-assignment-head {

    background-image:

        radial-gradient(
            circle at 0% 50%,
            var(--mamo-blueprint-red-soft),
            transparent 24%
        ),

        linear-gradient(
            112deg,
            rgba(255,255,255,.995) 0%,
            rgba(250,248,246,.985) 58%,
            rgba(246,244,241,.98) 100%
        );
}


/* ============================================================
   CHECKS HERO
   ============================================================ */

.mamo-checks-overview
>
.measurement-panel-head {

    position:
        relative;

    z-index:
        2;

    background:
        transparent !important;

    border-bottom:
        0 !important;
}


.mamo-checks-overview
>
.measurement-panel-head::before,
.mamo-checks-overview
>
.measurement-panel-head::after {

    display:
        none !important;
}


/* ============================================================
   2. SECTION-HEADER
   ============================================================
   Gilt z. B. für:
   - Alarmierungseinrichtungen
   - Energie & Messwerte
   - Feuerwehrperipherie
   - Brandfallsteuerungen
   - Unterlagen & Dokumentation
   - Ergänzende Kontrollen
   ============================================================ */

.measurement-panel
>
.measurement-panel-head {

    position:
        relative;

    isolation:
        isolate;

    overflow:
        hidden;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 35px,
            rgba(55,69,76,.020) 36px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 35px,
            rgba(55,69,76,.020) 36px
        ),

        linear-gradient(
            105deg,
            var(
                --section-soft,
                rgba(215,55,49,.045)
            ) 0%,
            rgba(255,255,255,.98) 42%,
            #fff 100%
        ) !important;
}


/* Technischer Bogen rechts */

.measurement-panel
>
.measurement-panel-head::after {

    content:
        "";

    position:
        absolute;

    z-index:
        0;

    width:
        185px;

    height:
        185px;

    top:
        -112px;

    right:
        -46px;

    border:
        1px solid
        rgba(48,61,68,.042);

    border-radius:
        50%;

    pointer-events:
        none;

    box-shadow:
        0 0 0 23px rgba(48,61,68,.016),
        0 0 0 47px rgba(215,55,49,.011);
}


.measurement-panel
>
.measurement-panel-head
>
* {

    position:
        relative;

    z-index:
        2;
}


/* ============================================================
   3. ÜBERSICHTSKACHELN
   ============================================================ */

.object-main-tile {

    position:
        relative;

    isolation:
        isolate;

    overflow:
        hidden;

    background:
        linear-gradient(
            115deg,
            rgba(255,255,255,.995),
            rgba(249,247,244,.985)
        );
}


/* feines Raster */

.object-main-tile::before {

    content:
        "";

    position:
        absolute;

    z-index:
        -2;

    inset:
        0;

    pointer-events:
        none;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.022) 32px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.022) 32px
        );
}


/* Konstruktionskreis */

.object-main-tile::after {

    content:
        "";

    position:
        absolute;

    z-index:
        -1;

    width:
        260px;

    height:
        260px;

    right:
        -135px;

    top:
        -140px;

    border:
        1px solid
        rgba(48,61,68,.040);

    border-radius:
        50%;

    pointer-events:
        none;

    box-shadow:
        0 0 0 30px rgba(48,61,68,.013),
        0 0 0 61px rgba(215,55,49,.009);
}


/* ------------------------------------------------------------
   STATUSAKZENTE BLEIBEN
   ------------------------------------------------------------ */

.object-main-tile.state-good {

    border-top-color:
        #2b9b68;
}


.object-main-tile.state-warning {

    border-top-color:
        #d69119;
}


.object-main-tile.state-danger {

    border-top-color:
        #d73731;
}


/* ------------------------------------------------------------
   TILE-TEXT ETWAS SAUBERER
   ------------------------------------------------------------ */

.object-main-content h3 {

    text-wrap:
        balance;
}


.object-main-content p {

    text-wrap:
        pretty;
}


/* ============================================================
   4. HEADLINE-TYPOGRAFIE
   ============================================================ */

.measurement-workspace-head h2,
.inspection-workspace-head h2,
.mamo-checks-overview h3,
.maintenance-final-hero h2,
.maintenance-completion-head h2 {

    color:
        var(--mamo-blueprint-ink);

    letter-spacing:
        -.025em;
}


.measurement-workspace-head p,
.inspection-workspace-head p,
.mamo-checks-overview p,
.maintenance-final-hero p,
.maintenance-completion-head p {

    color:
        var(--mamo-blueprint-muted);
}


/* ============================================================
   5. ICON-STANDARD
   ============================================================ */

.measurement-panel-icon {

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.6);
}


/* ============================================================
   6. HOVER NUR BEI KLICKBARER KACHEL
   ============================================================ */

@media (hover:hover) {

    .object-main-tile {

        transition:
            transform .16s ease,
            border-color .16s ease,
            box-shadow .16s ease;
    }


    .object-main-tile:hover {

        transform:
            translateY(-2px);

        box-shadow:
            0 17px 38px
            rgba(24,29,32,.09);
    }

}


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {

    .measurement-workspace-head::after,
    .inspection-workspace-head::after,
    .mamo-checks-overview::after,
    .maintenance-final-hero::after,
    .maintenance-completion-head::after,
    .visit-assignment-card > .visit-assignment-head::after {

        width:
            330px;

        height:
            330px;

        top:
            -220px;

        right:
            -120px;
    }

}


@media (max-width: 700px) {

    .measurement-panel
    >
    .measurement-panel-head::after {

        opacity:
            .5;
    }


    .object-main-tile::after {

        opacity:
            .55;
    }

}


/* ============================================================
   ENDE · MAMO TECHNICAL HERO STANDARD V1
   ============================================================ */



/* ============================================================
   MAMO MAINTENANCE DEFECTS V2
   ============================================================ */


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.object-area-head.maintenance-defect-context {

    position:
        relative;

    isolation:
        isolate;

    overflow:
        hidden;

    display:
        grid;

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

    align-items:
        center;

    gap:
        24px;

    padding:
        24px 26px;

    border:
        1px solid
        var(
            --mamo-blueprint-border,
            #ddd8d2
        );

    border-top:
        4px solid
        #d73731;

    border-radius:
        18px;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.025) 32px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.025) 32px
        ),

        radial-gradient(
            circle at 0% 50%,
            rgba(215,55,49,.05),
            transparent 24%
        ),

        linear-gradient(
            112deg,
            #fff 0%,
            #faf8f6 60%,
            #f7f5f2 100%
        );

    box-shadow:
        0 14px 34px
        rgba(25,29,32,.055);
}


.object-area-head.maintenance-defect-context::after {

    content:
        "";

    position:
        absolute;

    z-index:
        -1;

    width:
        390px;

    height:
        390px;

    right:
        -110px;

    top:
        -255px;

    border:
        1px solid
        rgba(48,61,68,.045);

    border-radius:
        50%;

    box-shadow:
        0 0 0 32px rgba(48,61,68,.016),
        0 0 0 70px rgba(215,55,49,.012);

    pointer-events:
        none;
}


.object-area-head.maintenance-defect-context
>
a {

    align-self:
        start;

    white-space:
        nowrap;
}


.maintenance-defect-head-kpis {

    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(92px, 1fr)
        );

    gap:
        8px;
}


.maintenance-defect-head-kpis
>
div {

    min-width:
        92px;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(40,45,49,.08);

    border-radius:
        12px;

    background:
        rgba(255,255,255,.82);
}


.maintenance-defect-head-kpis span {

    display:
        block;

    color:
        #898e92;

    font-size:
        9px;

    font-weight:
        900;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


.maintenance-defect-head-kpis strong {

    display:
        block;

    margin-top:
        4px;

    color:
        #292e32;

    font-size:
        22px;

    line-height:
        1;
}


.maintenance-defect-head-kpis
>
.is-danger strong {

    color:
        #c9332e;
}


.maintenance-defect-head-kpis
>
.is-warning strong {

    color:
        #b97b12;
}


.maintenance-defect-head-kpis
>
.is-good strong {

    color:
        #25845a;
}


/* ------------------------------------------------------------
   WORKSPACE
   ------------------------------------------------------------ */

.maintenance-defect-workspace {

    display:
        grid;

    gap:
        18px;

    margin-top:
        18px;
}


/* ------------------------------------------------------------
   CREATE
   ------------------------------------------------------------ */

.maintenance-defect-create {

    overflow:
        hidden;

    border:
        1px solid
        #ddd8d2;

    border-radius:
        16px;

    background:
        #fff;

    box-shadow:
        0 9px 24px
        rgba(25,29,32,.04);
}


.maintenance-defect-create
>
summary {

    display:
        grid;

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

    align-items:
        center;

    gap:
        15px;

    padding:
        17px 19px;

    list-style:
        none;

    cursor:
        pointer;
}


.maintenance-defect-create
>
summary::-webkit-details-marker {

    display:
        none;
}


.maintenance-defect-create
>
summary:hover {

    background:
        #fbfaf8;
}


.maintenance-defect-create-icon {

    display:
        grid;

    width:
        42px;

    height:
        42px;

    place-items:
        center;

    border-radius:
        11px;

    background:
        #252b2f;

    color:
        #fff;

    font-size:
        22px;

    font-weight:
        800;
}


.maintenance-defect-create
summary
small {

    display:
        block;

    margin-bottom:
        3px;

    color:
        #d73731;

    font-size:
        9px;

    font-weight:
        950;

    letter-spacing:
        .12em;
}


.maintenance-defect-create
summary
strong {

    display:
        block;

    color:
        #282d31;

    font-size:
        14px;
}


.maintenance-defect-create
summary
span:not(.maintenance-defect-create-icon) {

    display:
        block;

    margin-top:
        3px;

    color:
        #858b90;

    font-size:
        11px;
}


.maintenance-defect-create
summary
b {

    color:
        #353a3e;

    font-size:
        11px;
}


.maintenance-defect-create
>
form {

    padding:
        20px;

    border-top:
        1px solid
        #ebe7e2;

    background:
        #fbfaf8;
}


.maintenance-defect-create-actions {

    display:
        flex;

    justify-content:
        flex-end;

    margin-top:
        16px;
}


/* ------------------------------------------------------------
   LIST PANEL
   ------------------------------------------------------------ */

.maintenance-defect-list-panel {

    overflow:
        hidden;

    border:
        1px solid
        #ddd8d2;

    border-radius:
        18px;

    background:
        #fff;

    box-shadow:
        0 12px 32px
        rgba(25,29,32,.045);
}


.maintenance-defect-list-head {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        21px 23px;

    border-bottom:
        1px solid
        #ebe7e2;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 35px,
            rgba(55,69,76,.019) 36px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 35px,
            rgba(55,69,76,.019) 36px
        ),

        linear-gradient(
            105deg,
            rgba(215,55,49,.045),
            #fff 42%
        );
}


.maintenance-defect-list-head small {

    color:
        #d73731;

    font-size:
        9px;

    font-weight:
        950;

    letter-spacing:
        .12em;
}


.maintenance-defect-list-head h3 {

    margin:
        3px 0 2px;

    color:
        #292e32;

    font-size:
        18px;
}


.maintenance-defect-list-head p {

    margin:
        0;

    color:
        #858b90;

    font-size:
        11px;
}


.maintenance-defect-list-head
>
a {

    flex:
        0 0 auto;

    color:
        #33383c;

    font-size:
        11px;

    font-weight:
        800;

    text-decoration:
        none;
}


/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */

.maintenance-defect-card-grid {

    display:
        grid;

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

    gap:
        14px;

    padding:
        17px;
}


.maintenance-defect-card {

    position:
        relative;

    padding:
        17px;

    border:
        1px solid
        #e3dfda;

    border-top:
        3px solid
        #d73731;

    border-radius:
        14px;

    background:
        #fff;
}


.maintenance-defect-card.status-in_progress {

    border-top-color:
        #d49219;
}


.maintenance-defect-card.status-resolved {

    border-top-color:
        #299765;
}


.maintenance-defect-card-top {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        10px;
}


.maintenance-defect-number {

    color:
        #7e858a;

    font-size:
        10px;

    font-weight:
        900;

    letter-spacing:
        .06em;
}


.maintenance-defect-pills {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        flex-end;

    gap:
        5px;
}


.maintenance-defect-pills
>
span {

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        #f1efec;

    color:
        #5e656a;

    font-size:
        9px;

    font-weight:
        850;
}


.maintenance-defect-pills
.status-open {

    background:
        #fce9e7;

    color:
        #a72e29;
}


.maintenance-defect-pills
.status-in_progress {

    background:
        #fff2d8;

    color:
        #91620f;
}


.maintenance-defect-pills
.status-resolved {

    background:
        #e7f5ed;

    color:
        #267653;
}


.maintenance-defect-card
>
h3 {

    margin:
        14px 0 9px;

    color:
        #292e32;

    font-size:
        16px;
}


.maintenance-defect-location,
.maintenance-defect-source {

    display:
        grid;

    gap:
        3px;

    margin-top:
        10px;
}


.maintenance-defect-location span,
.maintenance-defect-source span {

    color:
        #92979b;

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        .09em;
}


.maintenance-defect-location strong,
.maintenance-defect-source strong {

    color:
        #4e5559;

    font-size:
        11px;
}


.maintenance-defect-description {

    margin:
        13px 0 0;

    color:
        #62696e;

    font-size:
        11px;

    line-height:
        1.55;
}


.maintenance-defect-resolution {

    margin-top:
        13px;

    padding:
        10px 11px;

    border-radius:
        10px;

    background:
        #eef8f2;
}


.maintenance-defect-resolution span {

    color:
        #2a7655;

    font-size:
        8px;

    font-weight:
        950;

    letter-spacing:
        .08em;
}


.maintenance-defect-resolution p {

    margin:
        4px 0 0;

    color:
        #53645b;

    font-size:
        10px;
}


.maintenance-defect-card-footer {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    margin-top:
        15px;

    padding-top:
        12px;

    border-top:
        1px solid
        #eeeae5;
}


.maintenance-defect-card-footer span {

    color:
        #969b9e;

    font-size:
        9px;
}


.maintenance-defect-card-footer a {

    color:
        #34393d;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;
}


.maintenance-defect-empty {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    padding:
        28px;
}


.maintenance-defect-empty
>
span {

    display:
        grid;

    width:
        42px;

    height:
        42px;

    place-items:
        center;

    border-radius:
        50%;

    background:
        #e9f6ef;

    color:
        #27865b;

    font-weight:
        950;
}


.maintenance-defect-empty strong {

    color:
        #30363a;
}


.maintenance-defect-empty p {

    margin:
        3px 0 0;

    color:
        #878d91;

    font-size:
        11px;
}


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

@media (max-width: 1050px) {

    .object-area-head.maintenance-defect-context {

        grid-template-columns:
            1fr;
    }


    .maintenance-defect-head-kpis {

        width:
            100%;
    }

}


@media (max-width: 760px) {

    .maintenance-defect-head-kpis {

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


    .maintenance-defect-card-grid {

        grid-template-columns:
            1fr;
    }


    .maintenance-defect-list-head {

        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


/* ============================================================
   ENDE · MAMO MAINTENANCE DEFECTS V2
   ============================================================ */



/* ============================================================
   MAMO MAINTENANCE DEFECTS EMBEDDED V3
   ============================================================ */


/*
 * Innerhalb der Wartungsakte existiert die globale
 * Zurück-Navigation bereits oberhalb der Statusbar.
 */

.object-area-head
.maintenance-defect-embedded {
    margin-top: 0;
}


.object-area-head.maintenance-defect-context
.maintenance-defect-embedded {
    grid-template-columns:
        minmax(0, 1fr)
        auto;
}


/*
 * Tatsächlicher Selector:
 */

.object-area-head.maintenance-defect-context.maintenance-defect-embedded {

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

    align-items:
        center;
}


.object-area-head.maintenance-defect-context.maintenance-defect-embedded
>
div:not(.maintenance-defect-head-kpis) {

    min-width:
        0;
}


@media (max-width: 1050px) {

    .object-area-head.maintenance-defect-context.maintenance-defect-embedded {

        grid-template-columns:
            1fr;
    }

}


/* ============================================================
   ENDE · MAMO MAINTENANCE DEFECTS EMBEDDED V3
   ============================================================ */



/* ============================================================
   MAMO COMPLETION UI V2
   ============================================================ */


/*
 * Abschluss-Hero bleibt im globalen Blueprint-Standard.
 * Bei offenem Abschluss kein großflächiges Alarmrot.
 */

.maintenance-final-hero.blocked {

    border-top-color:
        #d73731;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.026) 32px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.026) 32px
        ),

        radial-gradient(
            circle at 0% 50%,
            rgba(215,55,49,.055),
            transparent 24%
        ),

        linear-gradient(
            112deg,
            #fff 0%,
            #faf8f6 58%,
            #f7f5f2 100%
        ) !important;
}


/*
 * Blockierte Einzelkarten klar,
 * aber ohne vollflächige rote Warnfläche.
 */

.maintenance-final-card.blocked {

    border-color:
        rgba(215,55,49,.25);

    border-top:
        3px solid
        #d73731;

    background:
        #fff;
}


/*
 * Warnungen sind dokumentierte Sachverhalte,
 * keine Abschlussblocker.
 */

.maintenance-final-card.warning {

    border-color:
        rgba(205,145,35,.25);

    border-top:
        3px solid
        #d2951f;

    background:
        #fff;
}


/*
 * Erledigte Punkte
 */

.maintenance-final-card.ready {

    border-color:
        rgba(46,148,99,.22);

    border-top:
        3px solid
        #299765;

    background:
        #fff;
}


/*
 * DOK / AL dürfen etwas breiter sein.
 */

.maintenance-final-card-icon {

    min-width:
        42px;
}


/*
 * Hero-Kicker im CI
 */

.maintenance-final-title
>
span {

    color:
        #d73731;

    font-weight:
        950;

    letter-spacing:
        .12em;
}


/* ============================================================
   ENDE · MAMO COMPLETION UI V2
   ============================================================ */



/* ============================================================
   MAMO REPORT ALARM V2 SNAPSHOT V4
   ============================================================ */


.report-alarm-v2-section {

    margin-top:
        22px;
}


.report-alarm-v2-list {

    display:
        grid;

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

    gap:
        14px;

    margin-top:
        14px;
}


.report-alarm-v2-card {

    overflow:
        hidden;

    border:
        1px solid
        #e1ddd8;

    border-radius:
        14px;

    background:
        #fff;
}


.report-alarm-v2-head {

    display:
        grid;

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

    align-items:
        center;

    gap:
        12px;

    padding:
        14px 15px;

    border-bottom:
        1px solid
        #ece8e3;

    background:
        #faf9f7;
}


.report-alarm-v2-head
>
span {

    display:
        grid;

    width:
        38px;

    height:
        38px;

    place-items:
        center;

    border-radius:
        10px;

    background:
        var(--report-accent);

    color:
        #fff;

    font-size:
        10px;

    font-weight:
        900;
}


.report-alarm-v2-head small {

    display:
        block;

    color:
        var(--report-accent);

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        .09em;
}


.report-alarm-v2-head strong {

    display:
        block;

    margin-top:
        3px;

    color:
        #303438;

    font-size:
        13px;
}


.report-alarm-v2-checks {

    display:
        grid;
}


.report-alarm-v2-check {

    display:
        grid;

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

    align-items:
        center;

    gap:
        14px;

    padding:
        13px 15px;

    border-bottom:
        1px solid
        #efebe7;
}


.report-alarm-v2-check:last-child {

    border-bottom:
        0;
}


.report-alarm-v2-check
>
div:first-child
>
strong {

    display:
        block;

    color:
        #34393d;

    font-size:
        11px;
}


.report-alarm-v2-check
>
div:first-child
>
span {

    display:
        block;

    margin-top:
        4px;

    color:
        #7b8185;

    font-size:
        9px;

    line-height:
        1.45;
}


.report-alarm-v2-result {

    min-width:
        100px;

    text-align:
        right;
}


.report-alarm-v2-result strong {

    display:
        inline-block;

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        #f0eeeb;

    color:
        #656b6f;

    font-size:
        9px;
}


.report-alarm-v2-check.result-good
.report-alarm-v2-result strong {

    background:
        #e6f5ec;

    color:
        #277553;
}


.report-alarm-v2-check.result-danger
.report-alarm-v2-result strong {

    background:
        #fbe9e7;

    color:
        #a62e29;
}


.report-alarm-v2-check.result-open
.report-alarm-v2-result strong {

    background:
        #fff1d8;

    color:
        #92620d;
}


.report-alarm-v2-result small {

    display:
        block;

    margin-top:
        4px;

    color:
        #969b9e;

    font-size:
        8px;
}


@media (max-width: 900px) {

    .report-alarm-v2-list {

        grid-template-columns:
            1fr;
    }

}


@media print {

    .report-alarm-v2-card {

        break-inside:
            avoid;
    }


    .report-alarm-v2-list {

        grid-template-columns:
            1fr 1fr;
    }

}


/* ============================================================
   ENDE · MAMO REPORT ALARM V2 SNAPSHOT V4
   ============================================================ */



/* ============================================================
   MAMO MAINTENANCE REPORT PREVIEW V1
   ============================================================ */


.maintenance-report-preview {

    display:
        grid;

    gap:
        18px;
}


/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */

.maintenance-report-preview-hero {

    position:
        relative;

    isolation:
        isolate;

    overflow:
        hidden;

    display:
        grid;

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

    align-items:
        center;

    gap:
        18px;

    padding:
        24px;

    border:
        1px solid
        #ddd9d4;

    border-top:
        4px solid
        #d29a28;

    border-radius:
        18px;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.025) 32px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 31px,
            rgba(55,69,76,.025) 32px
        ),

        radial-gradient(
            circle at 90% 15%,
            rgba(55,69,76,.045),
            transparent 24%
        ),

        linear-gradient(
            112deg,
            #fff 0%,
            #faf8f6 60%,
            #f7f5f2 100%
        );

    box-shadow:
        0 14px 34px
        rgba(25,29,32,.05);
}


.maintenance-report-preview-hero.status-ready,
.maintenance-report-preview-hero.status-final {

    border-top-color:
        #299765;
}


.maintenance-report-preview-hero::after {

    content:
        "";

    position:
        absolute;

    z-index:
        -1;

    width:
        360px;

    height:
        360px;

    right:
        -100px;

    top:
        -250px;

    border:
        1px solid
        rgba(48,61,68,.045);

    border-radius:
        50%;

    box-shadow:
        0 0 0 32px rgba(48,61,68,.015),
        0 0 0 68px rgba(215,55,49,.01);
}


.maintenance-report-preview-symbol {

    display:
        grid;

    width:
        54px;

    height:
        54px;

    place-items:
        center;

    border-radius:
        13px;

    background:
        #d39523;

    color:
        #fff;

    font-size:
        19px;

    font-weight:
        950;
}


.status-ready
.maintenance-report-preview-symbol,
.status-final
.maintenance-report-preview-symbol {

    background:
        #299765;
}


.maintenance-report-preview-title
>
span {

    display:
        block;

    color:
        #d73731;

    font-size:
        9px;

    font-weight:
        950;

    letter-spacing:
        .12em;
}


.maintenance-report-preview-title h2 {

    margin:
        4px 0;

    color:
        #292e32;

    font-size:
        22px;
}


.maintenance-report-preview-title p {

    margin:
        0;

    max-width:
        680px;

    color:
        #7b8185;

    font-size:
        11px;

    line-height:
        1.5;
}


.maintenance-report-preview-state {

    min-width:
        130px;

    padding:
        13px 15px;

    border-radius:
        13px;

    background:
        #292e32;

    color:
        #fff;

    text-align:
        center;
}


.maintenance-report-preview-state strong {

    display:
        block;

    font-size:
        23px;

    line-height:
        1;
}


.maintenance-report-preview-state span {

    display:
        block;

    margin-top:
        5px;

    font-size:
        8px;

    font-weight:
        850;

    letter-spacing:
        .06em;

    text-transform:
        uppercase;

    opacity:
        .7;
}


/* ------------------------------------------------------------
   LIVE NOTICE
   ------------------------------------------------------------ */

.maintenance-report-preview-notice {

    display:
        flex;

    align-items:
        center;

    gap:
        13px;

    padding:
        14px 17px;

    border:
        1px solid
        rgba(205,145,35,.25);

    border-radius:
        13px;

    background:
        #fffaf0;
}


.maintenance-report-preview-notice
>
div {

    padding:
        6px 8px;

    border-radius:
        7px;

    background:
        #d39523;

    color:
        #fff;

    font-size:
        9px;

    font-weight:
        950;

    letter-spacing:
        .08em;
}


.maintenance-report-preview-notice p {

    margin:
        0;

    color:
        #696f73;

    font-size:
        10px;

    line-height:
        1.45;
}


.maintenance-report-preview-notice strong {

    color:
        #393e42;
}


/* ------------------------------------------------------------
   PANELS
   ------------------------------------------------------------ */

.maintenance-report-preview-panel {

    overflow:
        hidden;

    border:
        1px solid
        #ddd9d4;

    border-radius:
        17px;

    background:
        #fff;

    box-shadow:
        0 10px 28px
        rgba(25,29,32,.04);
}


.maintenance-report-preview-panel-head {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        19px 21px;

    border-bottom:
        1px solid
        #ebe7e2;

    background-image:

        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 35px,
            rgba(55,69,76,.018) 36px
        ),

        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 35px,
            rgba(55,69,76,.018) 36px
        ),

        linear-gradient(
            105deg,
            rgba(215,55,49,.035),
            #fff 42%
        );
}


.maintenance-report-preview-panel-head small {

    color:
        #d73731;

    font-size:
        8px;

    font-weight:
        950;

    letter-spacing:
        .1em;
}


.maintenance-report-preview-panel-head h3 {

    margin:
        3px 0;

    color:
        #303539;

    font-size:
        17px;
}


.maintenance-report-preview-panel-head p {

    margin:
        0;

    color:
        #858b8f;

    font-size:
        10px;
}


.maintenance-report-preview-panel-head
>
span {

    flex:
        0 0 auto;

    color:
        #3f4549;

    font-size:
        12px;

    font-weight:
        900;
}


/* ------------------------------------------------------------
   STATUS GRID
   ------------------------------------------------------------ */

.maintenance-report-preview-grid {

    display:
        grid;

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

    gap:
        12px;

    padding:
        15px;
}


.maintenance-report-preview-stat {

    display:
        grid;

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

    align-items:
        center;

    gap:
        12px;

    min-height:
        92px;

    padding:
        14px;

    border:
        1px solid
        #e2ded9;

    border-top:
        3px solid
        #299765;

    border-radius:
        13px;

    background:
        #fff;

    color:
        inherit;

    text-decoration:
        none;
}


.maintenance-report-preview-stat.open {

    border-top-color:
        #d73731;
}


.maintenance-report-preview-stat.warning {

    border-top-color:
        #d39523;
}


.maintenance-report-preview-stat:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 18px
        rgba(25,29,32,.05);
}


.maintenance-report-preview-stat
.icon {

    display:
        grid;

    width:
        39px;

    height:
        39px;

    place-items:
        center;

    border-radius:
        10px;

    background:
        #299765;

    color:
        #fff;

    font-size:
        9px;

    font-weight:
        950;
}


.maintenance-report-preview-stat.open
.icon {

    background:
        #d73731;
}


.maintenance-report-preview-stat.warning
.icon {

    background:
        #d39523;
}


.maintenance-report-preview-stat small {

    display:
        block;

    color:
        #989da0;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        .07em;
}


.maintenance-report-preview-stat strong {

    display:
        block;

    margin-top:
        3px;

    color:
        #303539;

    font-size:
        18px;
}


.maintenance-report-preview-stat p {

    margin:
        2px 0 0;

    color:
        #858a8e;

    font-size:
        9px;
}


.maintenance-report-preview-stat
>
b {

    color:
        #299765;

    font-size:
        10px;

    text-align:
        right;
}


.maintenance-report-preview-stat.open
>
b {

    color:
        #d73731;
}


.maintenance-report-preview-stat.warning
>
b {

    color:
        #b47713;
}


/* ------------------------------------------------------------
   ALARM
   ------------------------------------------------------------ */

.maintenance-report-preview-alarm-list {

    display:
        grid;

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

    gap:
        14px;

    padding:
        16px;
}


.maintenance-report-preview-alarm {

    overflow:
        hidden;

    border:
        1px solid
        #e3dfda;

    border-radius:
        13px;

    background:
        #fff;
}


.maintenance-report-preview-alarm
>
header {

    display:
        flex;

    align-items:
        center;

    gap:
        11px;

    padding:
        13px;

    border-bottom:
        1px solid
        #ece8e3;

    background:
        #faf9f7;
}


.maintenance-report-preview-alarm
>
header
>
span {

    display:
        grid;

    width:
        36px;

    height:
        36px;

    place-items:
        center;

    border-radius:
        9px;

    background:
        #30363a;

    color:
        #fff;

    font-size:
        9px;

    font-weight:
        950;
}


.maintenance-report-preview-alarm
>
header
>
strong {

    color:
        #34393d;

    font-size:
        12px;
}


.maintenance-report-preview-alarm-row {

    display:
        grid;

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

    align-items:
        center;

    gap:
        12px;

    padding:
        12px 13px;

    border-bottom:
        1px solid
        #efebe7;
}


.maintenance-report-preview-alarm-row:last-child {

    border-bottom:
        0;
}


.maintenance-report-preview-alarm-row
strong {

    display:
        block;

    color:
        #41474b;

    font-size:
        10px;
}


.maintenance-report-preview-alarm-row
span {

    display:
        block;

    margin-top:
        3px;

    color:
        #858b8f;

    font-size:
        9px;
}


.maintenance-report-preview-alarm-row
>
b {

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        #fff1da;

    color:
        #94620c;

    font-size:
        8px;
}


.maintenance-report-preview-alarm-row.result-ok
>
b {

    background:
        #e6f5ec;

    color:
        #277553;
}


.maintenance-report-preview-alarm-row.result-issue
>
b {

    background:
        #fbe9e7;

    color:
        #a62e29;
}


.maintenance-report-preview-alarm-row.result-not_tested
>
b,
.maintenance-report-preview-alarm-row.result-not_present
>
b,
.maintenance-report-preview-alarm-row.result-partial
>
b {

    background:
        #f0eeeb;

    color:
        #666d71;
}


/* ------------------------------------------------------------
   CHECK LIST
   ------------------------------------------------------------ */

.maintenance-report-preview-check-list {

    display:
        grid;

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

    gap:
        0 20px;

    padding:
        8px 18px 14px;
}


.maintenance-report-preview-check {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        12px;

    padding:
        11px 2px;

    border-bottom:
        1px solid
        #eeeae5;
}


.maintenance-report-preview-check strong {

    display:
        block;

    color:
        #41474b;

    font-size:
        10px;
}


.maintenance-report-preview-check span {

    display:
        block;

    margin-top:
        3px;

    color:
        #858b8f;

    font-size:
        9px;
}


.maintenance-report-preview-check
>
b {

    flex:
        0 0 auto;

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        #f0eeeb;

    color:
        #666d71;

    font-size:
        8px;
}


.maintenance-report-preview-check
>
b.result-ok {

    background:
        #e6f5ec;

    color:
        #277553;
}


.maintenance-report-preview-check
>
b.result-issue {

    background:
        #fbe9e7;

    color:
        #a62e29;
}


/* ------------------------------------------------------------
   REQUIREMENTS / DEFECTS
   ------------------------------------------------------------ */

.maintenance-report-preview-requirements,
.maintenance-report-preview-defects {

    display:
        grid;

    gap:
        10px;

    padding:
        15px;
}


.maintenance-report-preview-requirements article,
.maintenance-report-preview-defects article {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        18px;

    padding:
        13px 14px;

    border:
        1px solid
        #e6e2dd;

    border-radius:
        11px;

    background:
        #fff;
}


.maintenance-report-preview-requirements small,
.maintenance-report-preview-defects small {

    display:
        block;

    color:
        #d73731;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        .08em;
}


.maintenance-report-preview-requirements strong,
.maintenance-report-preview-defects strong {

    display:
        block;

    margin-top:
        3px;

    color:
        #3d4347;

    font-size:
        11px;
}


.maintenance-report-preview-requirements p,
.maintenance-report-preview-defects span {

    display:
        block;

    margin:
        3px 0 0;

    color:
        #858b8f;

    font-size:
        9px;
}


.maintenance-report-preview-requirements
article
>
b,
.maintenance-report-preview-defects
article
>
b {

    flex:
        0 0 auto;

    padding:
        6px 9px;

    border-radius:
        999px;

    background:
        #f0eeeb;

    color:
        #60676b;

    font-size:
        8px;
}


.maintenance-report-preview-defects
b.status-resolved {

    background:
        #e6f5ec;

    color:
        #277553;
}


.maintenance-report-preview-defects
b.status-open {

    background:
        #fbe9e7;

    color:
        #a62e29;
}


.maintenance-report-preview-defects
b.status-in_progress {

    background:
        #fff1da;

    color:
        #94620c;
}


/* ------------------------------------------------------------
   EMPTY
   ------------------------------------------------------------ */

.maintenance-report-preview-empty {

    display:
        flex;

    align-items:
        center;

    gap:
        13px;

    padding:
        24px;
}


.maintenance-report-preview-empty
>
span {

    display:
        grid;

    width:
        40px;

    height:
        40px;

    place-items:
        center;

    border-radius:
        50%;

    background:
        #e7f5ed;

    color:
        #277553;

    font-weight:
        950;
}


.maintenance-report-preview-empty strong {

    color:
        #3d4347;
}


.maintenance-report-preview-empty p {

    margin:
        3px 0 0;

    color:
        #858b8f;

    font-size:
        9px;
}


/* ------------------------------------------------------------
   SIGNATURES
   ------------------------------------------------------------ */

.maintenance-report-preview-signatures {

    display:
        grid;

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

    gap:
        14px;

    padding:
        16px;
}


.maintenance-report-preview-signatures
article {

    padding:
        15px;

    border:
        1px solid
        #e2ded9;

    border-top:
        3px solid
        #d73731;

    border-radius:
        12px;

    background:
        #fff;
}


.maintenance-report-preview-signatures
article.done {

    border-top-color:
        #299765;
}


.maintenance-report-preview-signatures small {

    display:
        block;

    color:
        #989da0;

    font-size:
        7px;

    font-weight:
        900;

    letter-spacing:
        .08em;
}


.maintenance-report-preview-signatures strong {

    display:
        block;

    margin-top:
        5px;

    color:
        #3d4347;

    font-size:
        12px;
}


.maintenance-report-preview-signatures span {

    display:
        block;

    margin-top:
        7px;

    color:
        #d73731;

    font-size:
        9px;

    font-weight:
        850;
}


.maintenance-report-preview-signatures
article.done
span {

    color:
        #277553;
}


/* ------------------------------------------------------------
   FINALISIERUNG
   ------------------------------------------------------------ */

.maintenance-report-preview-final {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        20px 22px;

    border:
        1px solid
        #ddd9d4;

    border-left:
        4px solid
        #d39523;

    border-radius:
        14px;

    background:
        #fff;
}


.maintenance-report-preview-final.status-ready,
.maintenance-report-preview-final.status-final {

    border-left-color:
        #299765;
}


.maintenance-report-preview-final small {

    color:
        #d73731;

    font-size:
        8px;

    font-weight:
        950;

    letter-spacing:
        .1em;
}


.maintenance-report-preview-final h3 {

    margin:
        4px 0;

    color:
        #343a3e;

    font-size:
        16px;
}


.maintenance-report-preview-final p {

    margin:
        0;

    color:
        #80868a;

    font-size:
        10px;
}


.maintenance-report-preview-final-action
a {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        42px;

    padding:
        0 16px;

    border-radius:
        10px;

    background:
        #2c3236;

    color:
        #fff;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;
}


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

@media (max-width: 1050px) {

    .maintenance-report-preview-grid {

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


    .maintenance-report-preview-hero {

        grid-template-columns:
            1fr;
    }


    .maintenance-report-preview-state {

        width:
            fit-content;
    }

}


@media (max-width: 760px) {

    .maintenance-report-preview-grid,
    .maintenance-report-preview-alarm-list,
    .maintenance-report-preview-check-list,
    .maintenance-report-preview-signatures {

        grid-template-columns:
            1fr;
    }


    .maintenance-report-preview-panel-head,
    .maintenance-report-preview-final {

        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


/* ============================================================
   ENDE · MAMO MAINTENANCE REPORT PREVIEW V1
   ============================================================ */



/* ============================================================
   MAMO SIGNATURE LEAD UX V1
   ============================================================ */

.maintenance-signature-assignment-warning {

    display:
        grid;

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

    align-items:
        start;

    gap:
        14px;

    padding:
        18px;

    border:
        1px solid
        rgba(208,145,28,.28);

    border-radius:
        12px;

    background:
        #fff9eb;
}


.maintenance-signature-assignment-icon {

    display:
        grid;

    width:
        40px;

    height:
        40px;

    place-items:
        center;

    border-radius:
        10px;

    background:
        #d59822;

    color:
        #fff;

    font-weight:
        950;

    font-size:
        18px;
}


.maintenance-signature-assignment-warning strong {

    display:
        block;

    color:
        #34383b;

    font-size:
        14px;
}


.maintenance-signature-assignment-warning p {

    margin:
        6px 0 13px;

    color:
        #747a7e;

    font-size:
        11px;

    line-height:
        1.55;
}


.maintenance-signature-assignment-warning a {

    display:
        inline-flex;

    align-items:
        center;

    min-height:
        34px;

    padding:
        0 12px;

    border-radius:
        8px;

    background:
        #292e32;

    color:
        #fff;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;
}


/* ============================================================
   ENDE · MAMO SIGNATURE LEAD UX V1
   ============================================================ */



/* ============================================================
   MAMO SIGNATURE LEAD UX V2
   ============================================================ */


.maintenance-signature-lead-missing {

    display:
        grid;

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

    gap:
        14px;

    align-items:
        start;

    padding:
        16px;

    border:
        1px solid
        rgba(211, 147, 25, .26);

    border-radius:
        12px;

    background:
        #fff8e9;
}


.maintenance-signature-lead-missing-icon {

    display:
        grid;

    width:
        38px;

    height:
        38px;

    place-items:
        center;

    border-radius:
        10px;

    background:
        #d59621;

    color:
        #fff;

    font-weight:
        900;
}


.maintenance-signature-lead-missing small,
.maintenance-signature-lead-waiting small {

    display:
        block;

    color:
        #b67814;

    font-size:
        8px;

    font-weight:
        950;

    letter-spacing:
        .1em;
}


.maintenance-signature-lead-missing strong,
.maintenance-signature-lead-waiting strong {

    display:
        block;

    margin-top:
        4px;

    color:
        #30363a;

    font-size:
        14px;
}


.maintenance-signature-lead-missing p,
.maintenance-signature-lead-waiting p {

    margin:
        5px 0 0;

    color:
        #747b80;

    font-size:
        10px;

    line-height:
        1.55;
}


.maintenance-signature-lead-missing a {

    display:
        inline-flex;

    margin-top:
        11px;

    color:
        #30363a;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;
}


.maintenance-signature-lead-waiting {

    padding:
        16px;

    border:
        1px solid
        #e3dfda;

    border-radius:
        12px;

    background:
        #f8f7f5;
}


/* ============================================================
   ENDE · MAMO SIGNATURE LEAD UX V2
   ============================================================ */



/* ============================================================
   MAMO SIGNATURE CARD JUMP V1
   ============================================================ */

#maintenance-signatures {

    scroll-margin-top:
        150px;
}


a.maintenance-final-card {

    text-decoration:
        none;
}


/*
 * Statuskarte Abnahme / Unterschriften:
 * gleiche Interaktion wie die übrigen anklickbaren Karten.
 */

a.maintenance-final-card[href="#maintenance-signatures"] {

    cursor:
        pointer;
}


/* ============================================================
   ENDE · MAMO SIGNATURE CARD JUMP V1
   ============================================================ */



/* ==========================================================================
   MAMO BMA · SUBSCRIPTION LOCK
   ========================================================================== */

.subscription-lock-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 34px 90px;
}

.subscription-lock-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 28px;
    padding: 46px;
    box-shadow:
        0 30px 80px rgba(0,0,0,.20);
}

.subscription-lock-kicker {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    color: #8f9499;
}

.subscription-lock-badge {
    display: inline-flex;
    padding: 8px 12px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: rgba(199,52,47,.13);
    border: 1px solid rgba(199,52,47,.32);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    color: #ef8b87;
}

.subscription-lock-card h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(34px,5vw,58px);
    line-height: .98;
    letter-spacing: -.045em;
}

.subscription-lock-lead {
    max-width: 780px;
    margin: 24px 0 0;
    color: #a9adb0;
    font-size: 17px;
    line-height: 1.65;
}

.subscription-lock-grid {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-top: 38px;
}

.subscription-lock-grid > div {
    min-height: 108px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.065);
}

.subscription-lock-grid small {
    display: block;
    margin-bottom: 9px;
    color: #7d8286;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .11em;
}

.subscription-lock-grid strong {
    font-size: 15px;
    line-height: 1.35;
}

.subscription-lock-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.065);
}

.subscription-lock-info strong {
    font-size: 14px;
}

.subscription-lock-info span {
    color: #969b9f;
    font-size: 13px;
    line-height: 1.55;
}

.subscription-lock-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.subscription-lock-primary,
.subscription-lock-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.subscription-lock-primary {
    background: #c7342f;
    color: #fff;
}

.subscription-lock-secondary {
    border: 1px solid rgba(255,255,255,.10);
    color: #d9dcde;
}

@media (max-width: 880px) {
    .subscription-lock-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 580px) {
    .subscription-lock-shell {
        padding:
            28px 18px
            70px;
    }

    .subscription-lock-card {
        padding: 28px 22px;
    }

    .subscription-lock-grid {
        grid-template-columns: 1fr;
    }

    .subscription-lock-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .subscription-lock-primary,
    .subscription-lock-secondary {
        width: 100%;
    }
}


/* ==========================================================================
   SaaS Status · Upgrade CTA
   ========================================================================== */

.saas-status-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    background: #c7342f;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition:
        transform .16s ease,
        opacity .16s ease;
}

.saas-status-action:hover {
    color: #fff;
    opacity: .9;
    transform: translateY(-1px);
}


/* ============================================================
   MAMO BMA · SUPPORT CENTER V1
   ============================================================ */

.support-shell {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 30px 38px 70px;
    box-sizing: border-box;
}

.support-form-shell,
.support-detail-shell {
    max-width: 1320px;
}

.support-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: #777a7c;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.support-heading,
.support-detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.support-kicker {
    margin-bottom: 8px;
    color: #c7342f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.support-heading h1,
.support-detail-head h1 {
    margin: 0;
    color: #25272a;
    font-size: 34px;
    letter-spacing: -.04em;
}

.support-heading p,
.support-detail-head p {
    margin: 9px 0 0;
    color: #85888a;
    font-size: 13px;
    line-height: 1.55;
}

.support-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.support-kpi,
.support-card {
    border: 1px solid #deddda;
    border-radius: 15px;
    background: #fff;
}

.support-kpi {
    padding: 18px;
}

.support-kpi small,
.support-card-head small {
    color: #999c9e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.support-kpi strong {
    display: block;
    margin: 8px 0 2px;
    color: #25272a;
    font-size: 27px;
}

.support-kpi span {
    color: #898c8e;
    font-size: 11px;
}

.support-card {
    padding: 22px;
}

.support-card-head {
    margin-bottom: 19px;
}

.support-card-head h2 {
    margin: 5px 0 0;
    color: #25272a;
    font-size: 18px;
}

.support-primary-button,
.support-secondary-button,
.support-filter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 9px;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.support-primary-button,
.support-filter button {
    color: #fff;
    background: #c7342f;
}

.support-secondary-button {
    color: #4f5254;
    background: #efeeeb;
}

.support-filter {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        190px
        170px
        auto;
    gap: 10px;
    margin-bottom: 18px;
}

.support-filter input,
.support-filter select,
.support-form input,
.support-form select,
.support-form textarea,
.support-reply-form input,
.support-reply-form select,
.support-reply-form textarea,
.support-status-select {
    width: 100%;
    border: 1px solid #d9d8d5;
    border-radius: 9px;
    background: #fff;
    color: #343638;
    font: inherit;
    box-sizing: border-box;
}

.support-filter input,
.support-filter select,
.support-form input,
.support-form select,
.support-reply-form input,
.support-reply-form select,
.support-status-select {
    min-height: 42px;
    padding: 0 12px;
}

.support-form textarea,
.support-reply-form textarea {
    padding: 12px;
    resize: vertical;
}

.support-table-wrap {
    overflow-x: auto;
}

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

.support-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #e4e3e0;
    color: #929597;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
}

.support-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #efeeeb;
    color: #55585a;
    font-size: 12px;
    vertical-align: middle;
}

.support-table tbody tr {
    cursor: pointer;
}

.support-table tbody tr:hover {
    background: #faf9f7;
}

.support-table td strong {
    display: block;
    color: #303234;
}

.support-table td small {
    display: block;
    margin-top: 3px;
    color: #999c9e;
}

.support-status,
.support-priority {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.support-status {
    color: #535658;
    background: #efeeeb;
}

.support-status.is-new {
    color: #a34422;
    background: #fff0e8;
}

.support-status.is-in_progress {
    color: #245c89;
    background: #eaf4fb;
}

.support-status.is-waiting_customer,
.support-status.is-waiting_internal {
    color: #836b19;
    background: #fff7d9;
}

.support-status.is-resolved {
    color: #27694f;
    background: #e8f6ef;
}

.support-status.is-closed {
    color: #777a7c;
    background: #ececea;
}

.support-priority {
    color: #56595b;
    background: #efeeeb;
}

.support-priority.is-high {
    color: #9a5325;
    background: #fff0e1;
}

.support-priority.is-critical {
    color: #a42929;
    background: #fdeaea;
}

.support-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
}

.support-alert.success {
    color: #27694f;
    background: #e9f6ef;
}

.support-alert.error {
    color: #9b3030;
    background: #fbeaea;
}

.support-form {
    display: grid;
    gap: 15px;
}

.support-reference-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}

.support-reference-grid > div {
    padding: 14px;
    border-radius: 10px;
    background: #f5f4f2;
}

.support-reference-grid small {
    display: block;
    margin-bottom: 6px;
    color: #949799;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.support-reference-grid strong {
    color: #343638;
    font-size: 12px;
}

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

.support-form-grid label,
.support-reply-form label {
    display: grid;
    gap: 7px;
}

.support-form-grid label > span,
.support-reply-form label > span {
    color: #56595b;
    font-size: 11px;
    font-weight: 800;
}

.support-form-grid label > small {
    color: #979a9c;
    font-size: 10px;
}

.support-form-grid .wide {
    grid-column: 1 / -1;
}

.support-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
}

.support-detail-badges {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.support-detail-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 310px;
    gap: 16px;
    align-items: start;
}

.support-detail-side {
    display: grid;
    gap: 16px;
}

.support-thread {
    display: grid;
    gap: 12px;
}

.support-message {
    padding: 16px;
    border: 1px solid #e2e1de;
    border-radius: 12px;
    background: #fff;
}

.support-message.is-support {
    border-left: 3px solid #c7342f;
}

.support-message.is-internal {
    border-color: #e5d78e;
    background: #fffbea;
}

.support-message header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.support-message header strong {
    color: #333638;
    font-size: 12px;
}

.support-message header span {
    margin-left: 7px;
    padding: 3px 6px;
    border-radius: 5px;
    color: #856e16;
    background: #f5eebd;
    font-size: 8px;
    font-weight: 900;
}

.support-message time {
    color: #9b9d9f;
    font-size: 10px;
}

.support-message-body {
    color: #5b5e60;
    font-size: 13px;
    line-height: 1.65;
}

.support-attachments {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.support-attachments a {
    padding: 6px 9px;
    border-radius: 7px;
    color: #55585a;
    background: #efeeeb;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.support-reply-form {
    display: grid;
    gap: 13px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e7e6e3;
}

.support-reply-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.support-meta {
    margin: 0;
}

.support-meta > div {
    padding: 10px 0;
    border-bottom: 1px solid #ecebe8;
}

.support-meta dt {
    margin-bottom: 4px;
    color: #979a9c;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.support-meta dd {
    margin: 0;
    color: #45484a;
    font-size: 12px;
    font-weight: 700;
}

.support-full-button {
    width: 100%;
    margin-top: 10px;
}

.support-empty {
    padding: 35px !important;
    color: #929597 !important;
    text-align: center;
}

.support-pagination {
    margin-top: 18px;
}

@media (max-width: 1000px) {

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

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

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

@media (max-width: 680px) {

    .support-shell {
        padding: 22px 16px 60px;
    }

    .support-heading,
    .support-detail-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .support-kpis,
    .support-reference-grid,
    .support-form-grid,
    .support-filter,
    .support-reply-options {
        grid-template-columns: 1fr;
    }

    .support-form-grid .wide {
        grid-column: auto;
    }
}


/* ============================================================
   MAMO BMA · PERSONAL ACCOUNT
   ============================================================ */

.mamo-sidebar-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 9px 0 4px;
    padding: 10px 12px;
    border-radius: 9px;
    box-sizing: border-box;
    color: #aeb1b3;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background .15s ease,
        color .15s ease;
}

.mamo-sidebar-account-link:hover,
.mamo-sidebar-account-link.is-active {
    color: #ffffff;
    background: rgba(255,255,255,.07);
}

.mamo-sidebar-account-link > span:first-child {
    width: 18px;
    text-align: center;
    color: #c7342f;
    font-size: 14px;
}


/* ============================================================
   MAMO BMA · PASSWORD RESET
   ============================================================ */

.mamo-password-forgot {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 11px;
}

.mamo-password-forgot a,
.mamo-password-back {
    color: #777a7c;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.mamo-password-forgot a:hover,
.mamo-password-back:hover {
    color: #c7342f;
}

.mamo-password-back {
    display: inline-block;
    margin-top: 18px;
}

.mamo-password-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    color: #27694f;
    background: #e9f6ef;
    font-size: 11px;
    line-height: 1.55;
}


/* ============================================================
   PLATFORM · TENANT DELETE
   ============================================================ */

.platform-tenant-delete-button {
    border: 1px solid rgba(199, 52, 47, .22);
    border-radius: 8px;
    padding: 9px 12px;
    background: rgba(199, 52, 47, .06);
    color: #b72f2b;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.platform-tenant-delete-button:hover {
    border-color: #c7342f;
    background: #c7342f;
    color: #fff;
}


/* ============================================================
   EMPLOYEE MANAGEMENT · STATUS / ACTIONS
============================================================ */

.employee-status.invited {
    background: #fff4d8;
    color: #8a6516;
    border-color: rgba(138,101,22,.18);
}

.employee-action-stack {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.employee-action-stack form {
    margin: 0;
}

.employee-mini-action {
    border: 1px solid #deddda;
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
    color: #4d5052;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.employee-mini-action:hover {
    border-color: #bebbb7;
    background: #f7f6f3;
}

.employee-mini-action.danger {
    color: #a63430;
    border-color: rgba(198,52,47,.22);
}

.employee-mini-action.danger:hover {
    background: rgba(198,52,47,.055);
}


/* ============================================================
   MITARBEITER · VERWALTUNGSAKTIONEN
============================================================ */

.employee-state.invited {
    background: #fff2d6;
    color: #936a12;
}

.employee-action-stack {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.employee-action-stack form {
    margin: 0;
}

.employee-mini-action {
    appearance: none;
    border: 1px solid #deddda;
    border-radius: 9px;
    padding: 8px 10px;
    background: #ffffff;
    color: #4c4f51;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.employee-mini-action:hover {
    background: #f6f5f2;
    border-color: #c8c5c1;
}

.employee-mini-action.danger {
    color: #aa332f;
    border-color: rgba(199,52,47,.20);
}

.employee-mini-action.danger:hover {
    background: rgba(199,52,47,.06);
}


/* ============================================================
   MITARBEITER · ROLLEN & BERECHTIGUNGEN
============================================================ */

.employee-role-action,
.role-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcd9d4;
    border-radius: 11px;
    padding: 12px 16px;
    background: #fff;
    color: #323537;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.employee-role-action:hover,
.role-secondary-action:hover {
    border-color: #c8c4bf;
    background: #f8f7f4;
}

.role-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.role-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 1fr)
        );
    gap: 16px;
}

.role-card {
    background: #fff;
    border: 1px solid #e0ded9;
    border-radius: 18px;
    padding: 21px;
}

.role-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.role-card-top small {
    display: block;
    margin-bottom: 7px;
    color: #9a9c9e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.role-card h2 {
    margin: 0;
    color: #26292b;
    font-size: 20px;
}

.role-card > p {
    min-height: 42px;
    margin: 14px 0 18px;
    color: #777b7e;
    font-size: 12px;
    line-height: 1.55;
}

.role-type-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 9px;
    font-size: 9px;
    font-weight: 800;
}

.role-type-badge.system {
    background: #f0f0ee;
    color: #56595b;
}

.role-type-badge.custom {
    background: #edf7f1;
    color: #287244;
}

.role-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.role-card-stats > div {
    border: 1px solid #eceae6;
    border-radius: 11px;
    padding: 12px;
    background: #faf9f7;
}

.role-card-stats strong {
    display: block;
    color: #25282a;
    font-size: 20px;
}

.role-card-stats span {
    display: block;
    margin-top: 2px;
    color: #8a8d90;
    font-size: 10px;
}

.role-key {
    margin-top: 14px;
    color: #999b9e;
    font-size: 10px;
}

.role-key code {
    color: #646769;
}

.role-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.role-card-actions a {
    border: 1px solid #dcd9d4;
    border-radius: 9px;
    padding: 9px 12px;
    color: #373a3c;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.role-description-field {
    display: block;
    margin-top: 18px;
}

.role-description-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
}

.role-description-field textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #dcdad6;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    font: inherit;
}

.role-permission-groups {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(290px, 1fr)
        );
    gap: 14px;
}

.role-permission-group {
    border: 1px solid #e7e4df;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.role-permission-group > header {
    padding: 13px 15px;
    background: #f7f6f3;
    border-bottom: 1px solid #e7e4df;
}

.role-permission-group > header div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.role-permission-group > header strong {
    font-size: 12px;
}

.role-permission-group > header span {
    color: #999b9d;
    font-size: 9px;
}

.role-permission-list {
    display: grid;
}

.role-permission-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid #f0eeeb;
    cursor: pointer;
}

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

.role-permission-item:hover {
    background: #fbfaf8;
}

.role-permission-item.protected {
    background: #f3f7f4;
    cursor: default;
}

.role-permission-item input[type="checkbox"] {
    margin-top: 2px;
}

.role-permission-item span {
    min-width: 0;
}

.role-permission-item strong {
    display: block;
    color: #35383a;
    font-size: 11px;
}

.role-permission-item small {
    display: block;
    margin-top: 3px;
    color: #9a9c9e;
    font-size: 9px;
}

.role-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(199,52,47,.20);
    border-radius: 14px;
    background: rgba(199,52,47,.035);
}

.role-danger-zone strong {
    display: block;
    color: #a6302c;
}

.role-danger-zone span {
    display: block;
    margin-top: 4px;
    color: #777b7e;
    font-size: 11px;
}

.role-danger-zone button {
    border: 1px solid rgba(199,52,47,.25);
    border-radius: 9px;
    padding: 9px 12px;
    background: #fff;
    color: #b4322e;
    font-weight: 800;
    cursor: pointer;
}


/* ============================================================
   NIEDERLASSUNG · ARCHIVIEREN
============================================================ */

.branch-danger-zone {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-top:24px;
    padding:18px 20px;
    border:1px solid rgba(199,52,47,.20);
    border-radius:14px;
    background:rgba(199,52,47,.035);
}

.branch-danger-zone > div {
    min-width:0;
}

.branch-danger-zone strong {
    display:block;
    color:#a6332f;
    font-size:13px;
}

.branch-danger-zone span {
    display:block;
    max-width:620px;
    margin-top:5px;
    color:#777b7e;
    font-size:11px;
    line-height:1.5;
}

.branch-danger-zone form {
    margin:0;
    flex:0 0 auto;
}

.branch-archive-button {
    border:1px solid rgba(199,52,47,.28);
    border-radius:9px;
    padding:10px 13px;
    background:#fff;
    color:#ad342f;
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}

.branch-archive-button:hover {
    background:rgba(199,52,47,.06);
}

@media (max-width:760px) {

    .branch-danger-zone {
        align-items:stretch;
        flex-direction:column;
    }

    .branch-archive-button {
        width:100%;
    }
}


/* ============================================================
   NIEDERLASSUNG · ARCHIVIEREN
============================================================ */

.branch-danger-zone {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-top:24px;
    padding:18px 20px;
    border:1px solid rgba(199,52,47,.20);
    border-radius:14px;
    background:rgba(199,52,47,.035);
}

.branch-danger-zone > div {
    min-width:0;
}

.branch-danger-zone strong {
    display:block;
    color:#a6332f;
    font-size:13px;
}

.branch-danger-zone span {
    display:block;
    max-width:620px;
    margin-top:5px;
    color:#777b7e;
    font-size:11px;
    line-height:1.5;
}

.branch-danger-zone form {
    margin:0;
    flex:0 0 auto;
}

.branch-archive-button {
    border:1px solid rgba(199,52,47,.28);
    border-radius:9px;
    padding:10px 13px;
    background:#fff;
    color:#ad342f;
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}

.branch-archive-button:hover {
    background:rgba(199,52,47,.06);
}

@media (max-width:760px) {

    .branch-danger-zone {
        align-items:stretch;
        flex-direction:column;
    }

    .branch-archive-button {
        width:100%;
    }
}


/* ============================================================
   NIEDERLASSUNG · ARCHIVIEREN
============================================================ */

.branch-danger-zone {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-top:24px;
    padding:18px 20px;
    border:1px solid rgba(199,52,47,.20);
    border-radius:14px;
    background:rgba(199,52,47,.035);
}

.branch-danger-zone > div {
    min-width:0;
}

.branch-danger-zone strong {
    display:block;
    color:#a6332f;
    font-size:13px;
}

.branch-danger-zone span {
    display:block;
    max-width:620px;
    margin-top:5px;
    color:#777b7e;
    font-size:11px;
    line-height:1.5;
}

.branch-danger-zone form {
    margin:0;
    flex:0 0 auto;
}

.branch-archive-button {
    border:1px solid rgba(199,52,47,.28);
    border-radius:9px;
    padding:10px 13px;
    background:#fff;
    color:#ad342f;
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}

.branch-archive-button:hover {
    background:rgba(199,52,47,.06);
}

@media (max-width:760px) {

    .branch-danger-zone {
        align-items:stretch;
        flex-direction:column;
    }

    .branch-archive-button {
        width:100%;
    }
}


/* ============================================================
   OBJEKTAKTE · ARCHIVIEREN
============================================================ */

.object-danger-zone {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-top:24px;
    padding:18px 20px;
    border:1px solid rgba(199,52,47,.20);
    border-radius:14px;
    background:rgba(199,52,47,.035);
}

.object-danger-zone > div {
    min-width:0;
}

.object-danger-zone strong {
    display:block;
    color:#a6332f;
    font-size:13px;
}

.object-danger-zone span {
    display:block;
    max-width:660px;
    margin-top:5px;
    color:#777b7e;
    font-size:11px;
    line-height:1.55;
}

.object-danger-zone form {
    margin:0;
    flex:0 0 auto;
}

.object-archive-button {
    border:1px solid rgba(199,52,47,.28);
    border-radius:9px;
    padding:10px 13px;
    background:#fff;
    color:#ad342f;
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
}

.object-archive-button:hover {
    background:rgba(199,52,47,.06);
}

@media (max-width:760px) {

    .object-danger-zone {
        align-items:stretch;
        flex-direction:column;
    }

    .object-archive-button {
        width:100%;
    }
}


/* ============================================================
   OBJEKTAKTE · ARCHIVIEREN
============================================================ */

.object-danger-zone {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    margin-top:24px;
    padding:18px 20px;
    border:1px solid rgba(199,52,47,.20);
    border-radius:14px;
    background:rgba(199,52,47,.035);
}

.object-danger-zone > div {
    min-width:0;
}

.object-danger-zone strong {
    display:block;
    color:#a6332f;
    font-size:13px;
}

.object-danger-zone span {
    display:block;
    max-width:660px;
    margin-top:5px;
    color:#777b7e;
    font-size:11px;
    line-height:1.55;
}

.object-danger-zone form {
    margin:0;
    flex:0 0 auto;
}

.object-archive-button {
    border:1px solid rgba(199,52,47,.28);
    border-radius:9px;
    padding:10px 13px;
    background:#fff;
    color:#ad342f;
    font:inherit;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
}

.object-archive-button:hover {
    background:rgba(199,52,47,.06);
}

@media (max-width:760px) {

    .object-danger-zone {
        align-items:stretch;
        flex-direction:column;
    }

    .object-archive-button {
        width:100%;
    }
}


/* ============================================================
   MAMO_MAINTENANCE_PLANNING_COMPACT_V1
   Compact enterprise maintenance plan management
============================================================ */

.maintenance-plan-compact-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 24px 0 14px;
}

.maintenance-plan-compact-toolbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-plan-compact-toolbar-title > span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #777d82;
}

.maintenance-plan-compact-toolbar-title > strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f2f3f3;
    border: 1px solid #dedfdf;
    color: #24292d;
    font-size: 12px;
}

.maintenance-plan-compact-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #dedbd7;
    border-radius: 11px;
    background: #ffffff;
    color: #252a2e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.maintenance-plan-compact-add span {
    color: #e33b35;
    font-size: 20px;
    line-height: 1;
}

.maintenance-plan-compact-add:hover {
    border-color: #c8c5c1;
    box-shadow: 0 8px 22px rgba(25, 29, 32, .07);
    transform: translateY(-1px);
}

.maintenance-plan-compact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.maintenance-plan-compact-row {
    position: relative;
    padding: 18px 20px;
    border: 1px solid #dedbd7;
    border-radius: 16px;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.98),
            rgba(250,249,247,.96)
        );
    box-shadow: 0 7px 20px rgba(26, 30, 33, .035);
}

.maintenance-plan-compact-row::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: #2b3034;
}

.maintenance-plan-compact-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.maintenance-plan-compact-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.maintenance-plan-compact-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #292e32;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.maintenance-plan-compact-identity > div:last-child {
    min-width: 0;
}

.maintenance-plan-compact-name-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.maintenance-plan-compact-name-line h3 {
    margin: 0;
    color: #24292d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.maintenance-plan-compact-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e9f6ef;
    color: #27875a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.maintenance-plan-compact-scope {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    color: #82878b;
    font-size: 11px;
}

.maintenance-plan-compact-scope strong {
    color: #555b60;
    font-weight: 700;
}

.maintenance-plan-compact-meta {
    display: grid;
    grid-template-columns:
        minmax(110px, .8fr)
        minmax(140px, 1fr)
        minmax(180px, 1.5fr)
        minmax(140px, 1fr);
    gap: 0;
    margin-top: 17px;
    border-top: 1px solid #ebe8e4;
    border-bottom: 1px solid #ebe8e4;
}

.maintenance-plan-compact-meta > div {
    min-width: 0;
    padding: 13px 16px;
    border-right: 1px solid #ebe8e4;
}

.maintenance-plan-compact-meta > div:first-child {
    padding-left: 0;
}

.maintenance-plan-compact-meta > div:last-child {
    border-right: 0;
}

.maintenance-plan-compact-meta span,
.maintenance-plan-compact-note span {
    display: block;
    margin-bottom: 5px;
    color: #969a9d;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.maintenance-plan-compact-meta strong,
.maintenance-plan-compact-note strong {
    color: #34393d;
    font-size: 12px;
    font-weight: 800;
}

.maintenance-plan-compact-month-tags {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.maintenance-plan-compact-month-tags b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 7px;
    border-radius: 7px;
    background: #f3f3f2;
    border: 1px solid #e3e1df;
    color: #4f5559;
    font-size: 10px;
    font-weight: 800;
}

.maintenance-plan-compact-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f6f4;
}

.maintenance-plan-compact-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.maintenance-plan-compact-actions {
    position: relative;
}

.maintenance-plan-compact-actions > summary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #666c70;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    list-style: none;
    user-select: none;
}

.maintenance-plan-compact-actions > summary::-webkit-details-marker {
    display: none;
}

.maintenance-plan-compact-actions > summary:hover {
    background: #f3f2f0;
    color: #292e32;
}

.maintenance-plan-compact-actions[open] > summary {
    background: #f3f2f0;
}

.maintenance-plan-compact-actions-panel {
    min-width: 245px;
    margin-top: 7px;
    padding: 11px;
    border: 1px solid #e2dfdb;
    border-radius: 11px;
    background: #ffffff;
}

.maintenance-plan-compact-actions-title {
    margin-bottom: 8px;
    color: #9a9da0;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.maintenance-plan-compact-archive {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #efc9c7;
    border-radius: 9px;
    background: #fffafa;
    color: #c93832;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    transition:
        background .15s ease,
        border-color .15s ease;
}

.maintenance-plan-compact-archive:hover {
    background: #fff2f1;
    border-color: #e7aaa7;
}

@media (max-width: 1100px) {

    .maintenance-plan-compact-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .maintenance-plan-compact-meta > div:nth-child(2) {
        border-right: 0;
    }

    .maintenance-plan-compact-meta > div:nth-child(-n+2) {
        border-bottom: 1px solid #ebe8e4;
    }

    .maintenance-plan-compact-meta > div:nth-child(3) {
        padding-left: 0;
    }

}

@media (max-width: 720px) {

    .maintenance-plan-compact-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .maintenance-plan-compact-add {
        width: 100%;
    }

    .maintenance-plan-compact-row {
        padding: 16px;
    }

    .maintenance-plan-compact-meta {
        grid-template-columns: 1fr;
    }

    .maintenance-plan-compact-meta > div {
        padding: 11px 0;
        border-right: 0;
        border-bottom: 1px solid #ebe8e4;
    }

    .maintenance-plan-compact-meta > div:last-child {
        border-bottom: 0;
    }

    .maintenance-plan-compact-footer {
        justify-content: stretch;
    }

    .maintenance-plan-compact-actions {
        width: 100%;
    }

    .maintenance-plan-compact-actions > summary {
        justify-content: space-between;
    }

    .maintenance-plan-compact-actions-panel {
        min-width: 0;
    }

}


/* ============================================================
   MAMO MAINTENANCE PLANNING COMPACT V1.1
   Visual polish
============================================================ */

.maintenance-plan-compact-row {
    padding-bottom: 14px;
}

.maintenance-plan-compact-footer {
    margin-top: 8px;
}

.maintenance-plan-compact-actions > summary {
    padding: 8px 12px;
    border: 1px solid #e2dfdb;
    background: #faf9f7;
    border-radius: 9px;
    color: #555b60;
}

.maintenance-plan-compact-actions > summary:hover {
    background: #f2f1ef;
    border-color: #d3d0cc;
    color: #252a2e;
}

.maintenance-plan-compact-actions[open] > summary {
    background: #f2f1ef;
    border-color: #d3d0cc;
    color: #252a2e;
}



/* ============================================================
   MAMO_MAINTENANCE_PLAN_EDIT_V2
============================================================ */

.maintenance-plan-compact-footer {
    align-items: center;
    gap: 8px;
}

.maintenance-plan-compact-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dedbd7;
    border-radius: 9px;
    background: #ffffff;
    color: #4e555a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease;
}

.maintenance-plan-compact-edit:hover {
    border-color: #c9c5c1;
    background: #f7f6f4;
    color: #24292d;
}

.maintenance-plan-duration-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 10px;
}

.maintenance-plan-duration-grid > div {
    min-width: 0;
}

.maintenance-plan-duration-grid input,
.maintenance-plan-duration-grid select {
    width: 100%;
}

.maintenance-plan-duration-grid small {
    display: block;
    margin-top: 5px;
}

@media (max-width: 720px) {

    .maintenance-plan-duration-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-plan-compact-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .maintenance-plan-compact-edit {
        width: 100%;
    }

}



/* MAMO_MAINTENANCE_DUE_GENERATE_V1 */

.maintenance-plan-compact-generate {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9dfe3;
    border-radius: 9px;
    background: #f7f9fa;
    color: #30363a;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
}

.maintenance-plan-compact-generate:hover {
    background: #eef2f4;
    border-color: #c8d0d5;
}



/* ============================================================
   MAMO_MAINTENANCE_DISPATCH_V1
============================================================ */

.visit-assignment-error {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid #efc6c3;
    border-radius: 11px;
    background: #fff6f5;
    color: #b9322d;
    font-size: 12px;
    font-weight: 700;
}

.visit-dispatch-block {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #dedbd7;
    border-radius: 14px;
    background: #faf9f7;
}

.visit-dispatch-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.visit-dispatch-head small {
    display: block;
    margin-bottom: 3px;
    color: #93989b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
}

.visit-dispatch-head h3 {
    margin: 0;
    color: #272c30;
    font-size: 16px;
    font-weight: 800;
}

.visit-dispatch-head > span {
    padding: 7px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e3e0dc;
    color: #656b70;
    font-size: 10px;
    font-weight: 800;
}

.visit-dispatch-grid {
    display: grid;
    grid-template-columns:
        minmax(150px, 1fr)
        minmax(130px, .8fr)
        minmax(120px, .7fr)
        minmax(130px, .7fr)
        minmax(150px, .8fr);
    gap: 12px;
}

.visit-dispatch-grid label {
    min-width: 0;
}

.visit-dispatch-grid label > span {
    display: block;
    margin-bottom: 6px;
    color: #747a7e;
    font-size: 10px;
    font-weight: 800;
}

.visit-dispatch-grid input,
.visit-dispatch-grid select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
}

.visit-dispatch-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #e4e1dd;
}

.visit-dispatch-hint strong {
    flex: 0 0 auto;
    color: #2d7956;
    font-size: 10px;
    font-weight: 800;
}

.visit-dispatch-hint span {
    color: #777d81;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 1100px) {

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

}

@media (max-width: 700px) {

    .visit-dispatch-head {
        flex-direction: column;
    }

    .visit-dispatch-grid {
        grid-template-columns: 1fr;
    }

    .visit-dispatch-hint {
        flex-direction: column;
    }

}



/* ============================================================
   MAMO_DUE_WINDOW_OVERRIDE_V1
============================================================ */

.visit-due-window-override {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #edc76b;
    border-radius: 11px;
    background: #fffaf0;
}

.visit-due-window-override.is-visible {
    display: block;
}

.visit-due-window-warning {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.visit-due-window-warning strong {
    color: #8b6417;
    font-size: 11px;
    font-weight: 800;
}

.visit-due-window-warning span {
    color: #7a6a48;
    font-size: 10px;
    line-height: 1.45;
}

.visit-due-window-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
    color: #4d5154;
    font-size: 11px;
    font-weight: 700;
}

.visit-due-window-check input {
    margin-top: 2px;
}

.visit-due-window-reason > span {
    display: block;
    margin-bottom: 6px;
    color: #777d81;
    font-size: 10px;
    font-weight: 800;
}

.visit-due-window-reason textarea {
    width: 100%;
    box-sizing: border-box;
}


/* MAMO_TECH_AVAILABILITY_V1 */

.visit-tech-availability {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 800;
}

.visit-tech-availability.is-free {
    color: #2d8a5d;
}

.visit-tech-availability.is-busy {
    color: #c6433d;
}


/* ============================================================
   MAMO MAINTENANCE DISPOSITION CARDS V1
============================================================ */

.maintenance-planned-card.is-due-item {
    border-top-color: #d79b25;
}

.maintenance-planned-card.is-due-item
.maintenance-planned-card-icon {
    background: #fff3d7;
    color: #a36d0b;
}

.maintenance-planned-override {
    color: #b17817 !important;
    font-weight: 800;
}

.maintenance-planned-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.maintenance-planned-primary-action,
.maintenance-planned-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
}

.maintenance-planned-primary-action {
    border: 1px solid #df3733;
    background: #df3733;
    color: #fff;
}

.maintenance-planned-primary-action:hover {
    background: #c92f2c;
    color: #fff;
}

.maintenance-planned-secondary-action {
    border: 1px solid #dedbd7;
    background: #fff;
    color: #555c61;
}

.maintenance-planned-secondary-action:hover {
    background: #f6f5f3;
    color: #252a2e;
}

@media (max-width: 700px) {

    .maintenance-planned-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .maintenance-planned-primary-action,
    .maintenance-planned-secondary-action {
        width: 100%;
    }

}


/* ============================================================
   MAMO MAINTENANCE CALENDAR DISPATCH V2
============================================================ */

.maintenance-calendar-event-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.maintenance-calendar-event-time strong {
    color: inherit;
    font-size: 10px;
    font-weight: 900;
}

.maintenance-calendar-event-number {
    display: block;
    margin-bottom: 3px;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.maintenance-calendar-event-site {
    display: block;
    margin-bottom: 5px;
    font-size: 10px !important;
    line-height: 1.3;
}

.maintenance-calendar-event-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 5px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.maintenance-calendar-event-meta small {
    font-size: 9px !important;
    line-height: 1.25;
}

.maintenance-calendar-technician {
    display: block;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(0, 0, 0, .06);
    font-size: 9px !important;
    font-weight: 800 !important;
}


/* ============================================================
   MAMO BRANCH LOCATION / DISPOSITION V1
============================================================ */

.branch-location-planning-card {
    margin-top: 22px;
}

.branch-location-planning-card header p {
    margin: 6px 0 0;
    max-width: 680px;
    color: #747a80;
    font-size: 13px;
    line-height: 1.55;
}

.branch-location-planning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.branch-location-planning-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 94px;
    padding: 16px;
    border: 1px solid #e4e1dd;
    border-radius: 12px;
    background: #faf9f7;
}

.branch-location-planning-grid span {
    color: #81868a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.branch-location-planning-grid strong {
    color: #272c30;
    font-size: 13px;
    font-weight: 800;
}

.branch-location-planning-grid small {
    color: #73797e;
    font-size: 11px;
    line-height: 1.4;
}

.branch-location-planning-grid .is-resolved {
    color: #347451;
}

.branch-location-planning-grid .is-pending {
    color: #b17817;
}

.branch-location-planning-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ece9e5;
}

.branch-location-planning-actions > div {
    max-width: 620px;
    color: #757a7f;
    font-size: 11px;
    line-height: 1.5;
}

.branch-location-planning-actions button {
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 9px;
    background: #df3733;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.branch-location-planning-actions button:hover {
    background: #ca302d;
}

@media (max-width: 760px) {

    .branch-location-planning-grid {
        grid-template-columns: 1fr;
    }

    .branch-location-planning-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .branch-location-planning-actions button {
        width: 100%;
    }

}


/* ============================================================
   MAMO TECHNICIAN TRAVEL AVAILABILITY V1
============================================================ */

.visit-tech-availability {
    display: block;
    margin-top: 5px;
    white-space: pre-line;
    line-height: 1.45;
}

.visit-tech-availability.is-free {
    font-weight: 700;
}

.visit-tech-availability.is-busy {
    font-weight: 700;
}


/* ============================================================
   MAMO MAINTENANCE DAY DISPATCH V1
============================================================ */

.maintenance-dispatch-panel {
    margin-top: 18px;
    border: 1px solid #e3e1de;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.maintenance-dispatch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-bottom: 1px solid #eceae7;
}

.maintenance-dispatch-head small {
    color: #c33a35;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.maintenance-dispatch-head h2 {
    margin: 4px 0 0;
    color: #252a2e;
    font-size: 22px;
}

.maintenance-dispatch-head p {
    margin: 5px 0 0;
    color: #797e82;
    font-size: 12px;
    line-height: 1.5;
}

.maintenance-dispatch-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.maintenance-dispatch-nav > a,
.maintenance-dispatch-date-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #4e555a;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.maintenance-dispatch-date-form {
    display: flex;
    gap: 6px;
}

.maintenance-dispatch-date-form input[type="date"] {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #343a3e;
    font-size: 11px;
    font-weight: 700;
}

.maintenance-dispatch-teams {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.maintenance-dispatch-tech {
    border: 1px solid #e5e2df;
    border-radius: 15px;
    background: #fbfaf8;
    overflow: hidden;
}

.maintenance-dispatch-tech-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 18px;
    border-bottom: 1px solid #e8e5e1;
    background: #fff;
}

.maintenance-dispatch-tech-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.maintenance-dispatch-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1e4e2;
    color: #c63b36;
    font-size: 14px;
    font-weight: 900;
}

.maintenance-dispatch-tech-person > div {
    display: flex;
    flex-direction: column;
}

.maintenance-dispatch-tech-person small {
    color: #969a9e;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
}

.maintenance-dispatch-tech-person strong {
    margin-top: 2px;
    color: #272c30;
    font-size: 14px;
}

.maintenance-dispatch-tech-person span {
    color: #808589;
    font-size: 10px;
}

.maintenance-dispatch-summary {
    display: flex;
    align-items: center;
    gap: 22px;
}

.maintenance-dispatch-summary > div {
    display: flex;
    flex-direction: column;
    min-width: 72px;
}

.maintenance-dispatch-summary span {
    color: #94999d;
    font-size: 9px;
    font-weight: 800;
}

.maintenance-dispatch-summary strong {
    margin-top: 2px;
    color: #303539;
    font-size: 12px;
}

.maintenance-dispatch-timeline {
    padding: 16px 18px 18px;
}

.maintenance-dispatch-route {
    display: grid;
    grid-template-columns: 30px 1fr;
    min-height: 62px;
}

.maintenance-dispatch-route-line {
    position: relative;
}

.maintenance-dispatch-route-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 1px;
    background: #d7d4d0;
}

.maintenance-dispatch-route-line span {
    position: absolute;
    top: 22px;
    left: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cac7c3;
}

.maintenance-dispatch-route-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 11px;
}

.maintenance-dispatch-route-content strong {
    color: #52585d;
    font-size: 10px;
}

.maintenance-dispatch-route-content span,
.maintenance-dispatch-route-content small {
    margin-top: 2px;
    color: #8a8f93;
    font-size: 9px;
}

.maintenance-dispatch-route.is-conflict
.maintenance-dispatch-route-line span {
    background: #d33d38;
}

.maintenance-dispatch-conflict {
    color: #bd3733 !important;
    font-weight: 800;
}

.maintenance-dispatch-route.is-unavailable
.maintenance-dispatch-route-content {
    opacity: .72;
}

.maintenance-dispatch-visit {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #e2dfdb;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: .15s ease;
}

.maintenance-dispatch-visit:hover {
    border-color: #d1cbc5;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .045);
}

.maintenance-dispatch-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #34393d;
}

.maintenance-dispatch-time strong {
    font-size: 15px;
    font-weight: 900;
}

.maintenance-dispatch-time span {
    color: #9a9ea1;
}

.maintenance-dispatch-visit-main {
    display: flex;
    flex-direction: column;
}

.maintenance-dispatch-visit-main small {
    color: #c23a36;
    font-size: 9px;
    font-weight: 900;
}

.maintenance-dispatch-visit-main strong {
    margin-top: 2px;
    color: #292e32;
    font-size: 13px;
}

.maintenance-dispatch-visit-main span {
    color: #84898d;
    font-size: 10px;
}

.maintenance-dispatch-visit-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.maintenance-dispatch-visit-meta span {
    color: #777d81;
    font-size: 10px;
}

.maintenance-dispatch-visit-meta strong {
    margin-top: 2px;
    color: #363b3f;
    font-size: 10px;
}

.maintenance-dispatch-visit-meta small {
    margin-top: 3px;
    color: #b36a19;
    font-size: 9px;
    font-weight: 800;
}

.maintenance-dispatch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 70px 24px;
    text-align: center;
}

.maintenance-dispatch-empty strong {
    color: #353a3e;
    font-size: 15px;
}

.maintenance-dispatch-empty span {
    margin-top: 4px;
    max-width: 480px;
    color: #868b8f;
    font-size: 11px;
}

@media (max-width: 900px) {

    .maintenance-dispatch-head,
    .maintenance-dispatch-tech-head {
        align-items: stretch;
        flex-direction: column;
    }

    .maintenance-dispatch-summary {
        flex-wrap: wrap;
    }

    .maintenance-dispatch-visit {
        grid-template-columns: 1fr;
    }

    .maintenance-dispatch-visit-meta {
        align-items: flex-start;
    }

}

@media (max-width: 650px) {

    .maintenance-dispatch-nav {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .maintenance-dispatch-date-form {
        width: 100%;
    }

    .maintenance-dispatch-date-form input[type="date"] {
        flex: 1;
    }

}


/* ============================================================
   MAMO DISPATCH BUFFER V1
============================================================ */

.maintenance-dispatch-buffer {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px !important;
    padding: 4px 7px;
    border-radius: 7px;
    background: rgba(30, 145, 92, .08);
    color: #23845b !important;
    font-weight: 800;
}

.maintenance-dispatch-conflict {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px !important;
    padding: 4px 7px;
    border-radius: 7px;
    background: rgba(195, 58, 53, .08);
}


/* ============================================================
   MAMO DISPATCH DAILY LOAD V1
============================================================ */

.maintenance-dispatch-summary-bound {
    padding: 6px 10px;
    border-radius: 9px;
    background: #f5f2ef;
}

.maintenance-dispatch-summary-bound span {
    color: #7e8387;
}

.maintenance-dispatch-summary-bound strong {
    color: #262b2f;
    font-weight: 900;
}


/* ============================================================
   MAMO DISPATCH DAY STATUS V1
============================================================ */

.maintenance-dispatch-day-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 175px;
    padding: 7px 10px;
    border: 1px solid #e5e1dd;
    border-radius: 10px;
    background: #f8f7f5;
}

.maintenance-dispatch-day-status > span {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca1a5;
}

.maintenance-dispatch-day-status > div {
    display: flex;
    flex-direction: column;
}

.maintenance-dispatch-day-status strong {
    color: #41474b;
    font-size: 10px;
    line-height: 1.3;
}

.maintenance-dispatch-day-status small {
    margin-top: 1px;
    color: #888d91;
    font-size: 8px;
    line-height: 1.35;
}


/* OK */

.maintenance-dispatch-day-status.is-ok {
    border-color: rgba(31, 143, 90, .18);
    background: rgba(31, 143, 90, .06);
}

.maintenance-dispatch-day-status.is-ok > span {
    background: #23875b;
}

.maintenance-dispatch-day-status.is-ok strong {
    color: #237552;
}


/* WARNUNG */

.maintenance-dispatch-day-status.is-warning {
    border-color: rgba(194, 133, 32, .22);
    background: rgba(194, 133, 32, .07);
}

.maintenance-dispatch-day-status.is-warning > span {
    background: #c38a28;
}

.maintenance-dispatch-day-status.is-warning strong {
    color: #9d6b19;
}


/* KONFLIKT */

.maintenance-dispatch-day-status.is-danger {
    border-color: rgba(196, 58, 53, .22);
    background: rgba(196, 58, 53, .07);
}

.maintenance-dispatch-day-status.is-danger > span {
    background: #c43a35;
}

.maintenance-dispatch-day-status.is-danger strong {
    color: #ae3531;
}


@media (max-width: 1150px) {

    .maintenance-dispatch-day-status {
        min-width: 0;
    }

}


/* ============================================================
   MAMO DISPATCH DAY OVERVIEW V1
============================================================ */

.maintenance-dispatch-day-overview {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #ebe8e4;
    background: #faf9f7;
}

.maintenance-dispatch-day-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    flex: 1;
    gap: 8px;
}

.maintenance-dispatch-day-kpis > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid #e5e2de;
    border-radius: 11px;
    background: #fff;
}

.maintenance-dispatch-day-kpis small {
    color: #91969a;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.25;
}

.maintenance-dispatch-day-kpis strong {
    margin-top: 4px;
    color: #292e32;
    font-size: 17px;
    font-weight: 900;
}

.maintenance-dispatch-overall-status {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    padding: 12px 14px;
    border: 1px solid #e2dfdb;
    border-radius: 11px;
    background: #fff;
}

.maintenance-dispatch-overall-status > span {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #999ea2;
}

.maintenance-dispatch-overall-status > div {
    display: flex;
    flex-direction: column;
}

.maintenance-dispatch-overall-status small {
    color: #92979b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .05em;
}

.maintenance-dispatch-overall-status strong {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 900;
}


/* OK */

.maintenance-dispatch-overall-status.is-ok {
    border-color: rgba(32, 142, 91, .2);
    background: rgba(32, 142, 91, .06);
}

.maintenance-dispatch-overall-status.is-ok > span {
    background: #23875b;
}

.maintenance-dispatch-overall-status.is-ok strong {
    color: #237553;
}


/* WARNING */

.maintenance-dispatch-overall-status.is-warning {
    border-color: rgba(194, 135, 36, .22);
    background: rgba(194, 135, 36, .07);
}

.maintenance-dispatch-overall-status.is-warning > span {
    background: #c38a28;
}

.maintenance-dispatch-overall-status.is-warning strong {
    color: #986819;
}


/* DANGER */

.maintenance-dispatch-overall-status.is-danger {
    border-color: rgba(196, 58, 53, .22);
    background: rgba(196, 58, 53, .07);
}

.maintenance-dispatch-overall-status.is-danger > span {
    background: #c43a35;
}

.maintenance-dispatch-overall-status.is-danger strong {
    color: #ad3531;
}


@media (max-width: 1250px) {

    .maintenance-dispatch-day-overview {
        flex-direction: column;
    }

    .maintenance-dispatch-day-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .maintenance-dispatch-overall-status {
        min-width: 0;
    }

}


@media (max-width: 750px) {

    .maintenance-dispatch-day-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ============================================================
   MAMO DISPATCH TECHNICIAN FILTER V1
============================================================ */

.maintenance-dispatch-technician-filter {
    min-height: 36px;
    min-width: 180px;
    padding: 0 34px 0 10px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #343a3e;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.maintenance-dispatch-technician-filter:focus {
    outline: none;
    border-color: #bbb6b1;
}

@media (max-width: 650px) {

    .maintenance-dispatch-technician-filter {
        width: 100%;
        min-width: 0;
    }

    .maintenance-dispatch-date-form {
        flex-wrap: wrap;
    }

}


/* ============================================================
   MAMO DISPATCH BRANCH FILTER V1
============================================================ */

.maintenance-dispatch-branch-filter {
    min-height: 36px;
    min-width: 190px;
    padding: 0 34px 0 10px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #343a3e;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.maintenance-dispatch-branch-filter:focus {
    outline: none;
    border-color: #bbb6b1;
}

@media (max-width: 650px) {

    .maintenance-dispatch-branch-filter {
        width: 100%;
        min-width: 0;
    }

}


/* ============================================================
   MAMO DISPATCH SEARCH V1
============================================================ */

.maintenance-dispatch-search {
    min-height: 36px;
    width: 240px;
    padding: 0 11px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #343a3e;
    font-size: 11px;
    font-weight: 600;
}

.maintenance-dispatch-search::placeholder {
    color: #a1a5a8;
    font-weight: 500;
}

.maintenance-dispatch-search:focus {
    outline: none;
    border-color: #bbb6b1;
}

@media (max-width: 900px) {

    .maintenance-dispatch-search {
        width: 100%;
    }

}


/* ============================================================
   MAMO DISPATCH STATUS FILTER V1
============================================================ */

.maintenance-dispatch-status-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    border-bottom: 1px solid #ebe8e4;
    background: #fff;
}

.maintenance-dispatch-status-filter-label {
    flex: 0 0 auto;
    color: #94999d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.maintenance-dispatch-status-filters > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.maintenance-dispatch-status-filters a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #e2dfdb;
    border-radius: 8px;
    background: #faf9f7;
    color: #666c70;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
    transition: .15s ease;
}

.maintenance-dispatch-status-filters a:hover {
    border-color: #cac5c0;
    background: #f6f4f1;
}

.maintenance-dispatch-status-filters a strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ece9e5;
    color: #565c60;
    font-size: 8px;
    font-weight: 900;
}

.maintenance-dispatch-status-filters a.active {
    border-color: #3f4448;
    background: #34393d;
    color: #fff;
}

.maintenance-dispatch-status-filters a.active strong {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

@media (max-width: 750px) {

    .maintenance-dispatch-status-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

}


/* ============================================================
   MAMO DISPATCH RETURN ROUTE V1
============================================================ */

.maintenance-dispatch-return-route {
    margin-top: 2px;
}

.maintenance-dispatch-return-route
.maintenance-dispatch-route-content {
    padding-bottom: 2px;
}

.maintenance-dispatch-return-route
.maintenance-dispatch-route-line span {
    background: #6f7579;
}

.maintenance-dispatch-return-route
.maintenance-dispatch-route-content strong {
    color: #3f4549;
}


/* ============================================================
   MAMO DISPATCH DAY SPAN V1
============================================================ */

.maintenance-dispatch-day-span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 135px;
    padding: 6px 10px;
    border-left: 1px solid #ebe8e4;
}

.maintenance-dispatch-day-span > small:first-child {
    color: #969b9f;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
}

.maintenance-dispatch-day-span > strong {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: #303539;
    font-size: 13px;
    font-weight: 900;
}

.maintenance-dispatch-day-span > strong span {
    color: #9a9ea2;
    font-weight: 500;
}

.maintenance-dispatch-day-span > span {
    margin-top: 1px;
    color: #7e8488;
    font-size: 9px;
    font-weight: 700;
}

.maintenance-dispatch-day-span-note {
    margin-top: 3px;
    color: #a87820 !important;
    font-size: 8px !important;
    font-weight: 700;
}

@media (max-width: 1150px) {

    .maintenance-dispatch-day-span {
        min-width: 0;
        border-left: 0;
        padding-left: 0;
    }

}


/* ============================================================
   MAMO DISPATCH IDLE TIME V1
============================================================ */

.maintenance-dispatch-summary-idle {
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(184, 132, 35, .07);
}

.maintenance-dispatch-summary-idle span {
    color: #8e7b58;
}

.maintenance-dispatch-summary-idle strong {
    color: #765a24;
    font-weight: 900;
}

.maintenance-dispatch-summary-idle small {
    margin-top: 2px;
    color: #a38448;
    font-size: 7px;
    font-weight: 700;
}


/* ============================================================
   MAMO DISPATCH 24H TIMELINE V1
============================================================ */

.maintenance-dispatch-dayline {
    padding: 14px 18px 17px;
    border-bottom: 1px solid #e8e5e1;
    background: #fff;
}

.maintenance-dispatch-dayline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.maintenance-dispatch-dayline-head > strong {
    color: #42484c;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.maintenance-dispatch-dayline-legend {
    display: flex;
    align-items: center;
    gap: 12px;
}

.maintenance-dispatch-dayline-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #858a8e;
    font-size: 8px;
    font-weight: 800;
}

.maintenance-dispatch-dayline-legend i {
    display: block;
    width: 11px;
    height: 6px;
    border-radius: 3px;
}

.maintenance-dispatch-legend-maintenance i {
    background: #454b4f;
}

.maintenance-dispatch-legend-travel i {
    background: #c7433e;
}

.maintenance-dispatch-legend-idle i {
    border: 1px dashed #c49a52;
    background: rgba(196, 154, 82, .12);
}


/* Stunden */

.maintenance-dispatch-dayline-hours {
    position: relative;
    height: 16px;
}

.maintenance-dispatch-dayline-hours span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    color: #9b9fa3;
    font-size: 8px;
    font-weight: 700;
}

.maintenance-dispatch-dayline-hours span:first-child {
    transform: none;
}

.maintenance-dispatch-dayline-hours span:last-child {
    transform: translateX(-100%);
}


/* Track */

.maintenance-dispatch-dayline-track {
    position: relative;
    height: 32px;
    overflow: hidden;
    border: 1px solid #dfdcd8;
    border-radius: 8px;
    background:
        linear-gradient(
            to bottom,
            #faf9f7,
            #f6f4f1
        );
}

.maintenance-dispatch-dayline-track > i {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e2dfdb;
}


/* Segmente */

.maintenance-dispatch-dayline-segment {
    position: absolute;
    top: 5px;
    bottom: 5px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2px;
    overflow: hidden;
    border-radius: 5px;
}

.maintenance-dispatch-dayline-segment span {
    overflow: hidden;
    padding: 0 5px;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.maintenance-dispatch-dayline-segment.is-maintenance {
    background: #454b4f;
}

.maintenance-dispatch-dayline-segment.is-travel {
    background: #c7433e;
}

.maintenance-dispatch-dayline-segment.is-idle {
    top: 7px;
    bottom: 7px;
    border: 1px dashed #bf954b;
    background: rgba(191, 149, 75, .14);
}

.maintenance-dispatch-dayline-segment.is-idle span {
    color: #8b692c;
}


/* Beginn / Rückkehr */

.maintenance-dispatch-dayline-range {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 7px;
}

.maintenance-dispatch-dayline-range span {
    color: #92979b;
    font-size: 8px;
}

.maintenance-dispatch-dayline-range strong {
    margin-left: 3px;
    color: #4c5256;
    font-weight: 900;
}


@media (max-width: 700px) {

    .maintenance-dispatch-dayline-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .maintenance-dispatch-dayline-legend {
        flex-wrap: wrap;
    }

}


/* ============================================================
   MAMO DISPATCH TIMELINE TOOLTIP V1
============================================================ */

.maintenance-dispatch-dayline-track {
    overflow: visible;
}

.maintenance-dispatch-dayline-segment {
    cursor: help;
    outline: none;
}

.maintenance-dispatch-dayline-segment:focus {
    box-shadow:
        0 0 0 2px rgba(55, 61, 65, .18);
}

.maintenance-dispatch-dayline-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 230px;
    padding: 10px 11px;
    border: 1px solid #dedad5;
    border-radius: 10px;
    background: #fff;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .12);
    color: #50565a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform:
        translateX(-50%)
        translateY(4px);
    transition:
        opacity .12s ease,
        transform .12s ease,
        visibility .12s ease;
}

.maintenance-dispatch-dayline-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 9px;
    height: 9px;
    border-right: 1px solid #dedad5;
    border-bottom: 1px solid #dedad5;
    background: #fff;
    transform:
        translateX(-50%)
        rotate(45deg);
}

.maintenance-dispatch-dayline-segment:hover
.maintenance-dispatch-dayline-tooltip,
.maintenance-dispatch-dayline-segment:focus
.maintenance-dispatch-dayline-tooltip {
    opacity: 1;
    visibility: visible;
    transform:
        translateX(-50%)
        translateY(0);
}

.maintenance-dispatch-dayline-tooltip strong {
    margin-bottom: 3px;
    color: #272c30;
    font-size: 11px;
    font-weight: 900;
}

.maintenance-dispatch-dayline-tooltip span {
    display: block;
    padding: 0;
    overflow: visible;
    color: #6f7579;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.45;
    white-space: normal;
    text-overflow: initial;
}

.maintenance-dispatch-dayline-tooltip span b {
    color: #444a4e;
    font-weight: 900;
}

.maintenance-dispatch-tooltip-time {
    margin-bottom: 5px;
    color: #a13c38 !important;
    font-weight: 900 !important;
}


/* ============================================================
   MAMO DISPATCH TIMELINE TOOLTIP FIX V1
============================================================ */

/*
 * Der Tooltip liegt innerhalb des Zeitsegments.
 * Das Segment darf ihn deshalb nicht abschneiden.
 */
.maintenance-dispatch-dayline-segment {
    overflow: visible;
    cursor: pointer;
}

/*
 * Nur die sichtbare Beschriftung innerhalb des Balkens
 * weiterhin begrenzen.
 */
.maintenance-dispatch-dayline-segment > span {
    display: block;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

/*
 * Aktiven Balken über benachbarte Balken legen.
 */
.maintenance-dispatch-dayline-segment:hover,
.maintenance-dispatch-dayline-segment:focus {
    z-index: 100;
}

/*
 * Auch die Achse selbst darf das Popup nicht abschneiden.
 */
.maintenance-dispatch-dayline-track,
.maintenance-dispatch-dayline {
    overflow: visible;
}


/* ============================================================
   MAMO DISPATCH WEEK V1
============================================================ */

.maintenance-week-panel {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #e3e1de;
    border-radius: 18px;
    background: #fff;
}

.maintenance-week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 23px;
    border-bottom: 1px solid #ebe8e4;
}

.maintenance-week-head small {
    color: #c33b36;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .07em;
}

.maintenance-week-head h2 {
    margin: 4px 0 0;
    color: #292e32;
    font-size: 21px;
}

.maintenance-week-head p {
    margin: 4px 0 0;
    color: #858a8e;
    font-size: 10px;
}

.maintenance-week-nav {
    display: flex;
    gap: 6px;
}

.maintenance-week-nav a,
.maintenance-week-filters button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #4c5256;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
}

.maintenance-week-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 20px;
    border-bottom: 1px solid #ebe8e4;
    background: #faf9f7;
}

.maintenance-week-filters input,
.maintenance-week-filters select {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid #dfdcd8;
    border-radius: 9px;
    background: #fff;
    color: #3e4448;
    font-size: 10px;
}

.maintenance-week-filters input[type="search"] {
    min-width: 220px;
}

.maintenance-week-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.maintenance-week-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
}

.maintenance-week-table th,
.maintenance-week-table td {
    border-right: 1px solid #ece9e5;
    border-bottom: 1px solid #ece9e5;
    vertical-align: top;
}

.maintenance-week-table thead th {
    padding: 10px 8px;
    background: #f8f7f5;
    text-align: center;
}

.maintenance-week-table thead th a {
    display: flex;
    flex-direction: column;
    color: #666c70;
    text-decoration: none;
}

.maintenance-week-table thead th a span {
    font-size: 8px;
    font-weight: 800;
}

.maintenance-week-table thead th a strong {
    margin-top: 2px;
    color: #353b3f;
    font-size: 10px;
}

.maintenance-week-tech-column,
.maintenance-week-tech {
    width: 185px;
    min-width: 185px;
}

.maintenance-week-tech {
    padding: 13px;
    background: #fff;
    text-align: left;
}

.maintenance-week-tech strong,
.maintenance-week-tech span {
    display: block;
}

.maintenance-week-tech strong {
    color: #303539;
    font-size: 11px;
}

.maintenance-week-tech span {
    margin-top: 2px;
    color: #92979a;
    font-size: 8px;
}

.maintenance-week-table td {
    min-width: 120px;
    padding: 7px;
    background: #fff;
}

.maintenance-week-table .is-weekend {
    background: #faf8f6;
}

.maintenance-week-cell {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 1px solid #e3dfdb;
    border-radius: 8px;
    background: #f8f7f5;
    color: inherit;
    text-decoration: none;
}

.maintenance-week-cell strong {
    color: #353b3f;
    font-size: 9px;
}

.maintenance-week-cell span {
    margin-top: 2px;
    color: #b13b36;
    font-size: 9px;
    font-weight: 900;
}

.maintenance-week-cell small {
    margin-top: 2px;
    color: #7f8589;
    font-size: 8px;
}

.maintenance-week-visits {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

.maintenance-week-visits a {
    overflow: hidden;
    color: #70767a;
    font-size: 7px;
    text-decoration: none;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.maintenance-week-visits a:hover {
    color: #bd3c37;
}

.maintenance-week-free {
    display: block;
    padding: 12px 4px;
    color: #b0b4b7;
    font-size: 8px;
    text-align: center;
}

.maintenance-week-total {
    min-width: 100px !important;
    padding: 12px !important;
    background: #f8f7f5 !important;
}

.maintenance-week-total strong,
.maintenance-week-total span {
    display: block;
}

.maintenance-week-total strong {
    color: #343a3e;
    font-size: 9px;
}

.maintenance-week-total span {
    margin-top: 3px;
    color: #bd3c37;
    font-size: 10px;
    font-weight: 900;
}

.maintenance-week-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: #858a8e;
    font-size: 10px;
    text-align: center;
}

.maintenance-week-empty strong {
    color: #3c4246;
    font-size: 14px;
}

.maintenance-week-empty span {
    margin-top: 4px;
}


/* ============================================================
   MAMO DISPATCH WEEK METRICS V1
============================================================ */

.maintenance-week-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #ebe8e4;
    background: #fff;
}

.maintenance-week-overview > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 56px;
    padding: 9px 11px;
    border: 1px solid #e5e2de;
    border-radius: 10px;
    background: #faf9f7;
}

.maintenance-week-overview small {
    color: #92979b;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;
}

.maintenance-week-overview strong {
    margin-top: 3px;
    color: #303539;
    font-size: 15px;
    font-weight: 900;
}


.maintenance-week-total > small {
    display: block;
    margin-bottom: 4px;
    color: #999da0;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .06em;
}

.maintenance-week-total-time {
    margin-top: 3px !important;
    color: #bd3c37 !important;
    font-size: 9px !important;
    font-weight: 900;
}

.maintenance-week-total-metrics {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e6e3df;
}

.maintenance-week-total-metrics span {
    color: #81868a;
    font-size: 7px;
    line-height: 1.35;
}

.maintenance-week-total-metrics b {
    color: #4a5054;
    font-weight: 900;
}


@media (max-width: 850px) {

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

}


/* ============================================================
   MAMO DIRECT RESCHEDULE V1
============================================================ */

.maintenance-dispatch-direct-action {
    margin-top: 6px !important;
    padding: 4px 7px;
    border-radius: 7px;
    background: rgba(193, 58, 53, .07);
    color: #b43b36 !important;
    font-size: 8px !important;
    font-weight: 900 !important;
}

.visit-assignment-card#einsatzteam {
    scroll-margin-top: 24px;
}


/* ============================================================
   MAMO DISPATCH RESCHEDULE ACTION V1
============================================================ */

.maintenance-dispatch-reschedule-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(196, 58, 53, .18);
    border-radius: 7px;
    background: rgba(196, 58, 53, .07);
    color: #bd3b36;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.maintenance-dispatch-reschedule-action.neutral {
    border-color: #dedbd7;
    background: #f5f3f0;
    color: #61676b;
}

.maintenance-dispatch-visit:hover
.maintenance-dispatch-reschedule-action {
    border-color: #c43a35;
    background: #c43a35;
    color: #fff;
}


/* ============================================================
   MAMO QUICK RESCHEDULE DRAWER V1
============================================================ */

body.maintenance-quick-open {
    overflow: hidden;
}

.maintenance-dispatch-reschedule-action {
    cursor: pointer;
}

.maintenance-quick-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(22, 26, 29, .34);
    opacity: 0;
    transition: opacity .2s ease;
}

.maintenance-quick-drawer-backdrop.is-open {
    opacity: 1;
}

.maintenance-quick-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9998;
    width: min(560px, 94vw);
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    box-shadow: -18px 0 45px rgba(20, 25, 28, .16);
    transform: translateX(105%);
    transition: transform .22s ease;
}

.maintenance-quick-drawer.is-open {
    transform: translateX(0);
}

.maintenance-quick-drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #e9e6e2;
    background: rgba(255, 255, 255, .97);
}

.maintenance-quick-drawer-head small {
    color: #ba3a35;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.maintenance-quick-drawer-head h2 {
    margin: 5px 0 3px;
    color: #252b2f;
    font-size: 21px;
}

.maintenance-quick-drawer-head p {
    margin: 0;
    color: #858a8e;
    font-size: 11px;
}

.maintenance-quick-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e4e1dd;
    border-radius: 10px;
    background: #f7f6f4;
    color: #555b5f;
    font-size: 23px;
    cursor: pointer;
}

.maintenance-quick-drawer-loading {
    padding: 28px 26px;
    color: #777d81;
    font-size: 12px;
}

.maintenance-quick-form {
    padding: 0 0 24px;
}

.maintenance-quick-section {
    padding: 22px 26px;
    border-bottom: 1px solid #eeeae6;
}

.maintenance-quick-section-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.maintenance-quick-section-head > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f8e9e7;
    color: #b73a35;
    font-size: 9px;
    font-weight: 900;
}

.maintenance-quick-section-head div {
    display: flex;
    flex-direction: column;
}

.maintenance-quick-section-head strong {
    color: #30363a;
    font-size: 13px;
}

.maintenance-quick-section-head small {
    margin-top: 2px;
    color: #8c9195;
    font-size: 9px;
}

.maintenance-quick-section-head small.is-warning {
    color: #bd3b36;
}

.maintenance-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.maintenance-quick-section label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maintenance-quick-section label > span,
.maintenance-quick-field-label {
    color: #777d81;
    font-size: 9px;
    font-weight: 800;
}

.maintenance-quick-section input,
.maintenance-quick-section select,
.maintenance-quick-section textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dad7d3;
    border-radius: 9px;
    background: #fff;
    padding: 10px 11px;
    color: #30363a;
    font: inherit;
    font-size: 11px;
    outline: none;
}

.maintenance-quick-section input:focus,
.maintenance-quick-section select:focus,
.maintenance-quick-section textarea:focus {
    border-color: #bb3b36;
    box-shadow: 0 0 0 3px rgba(187, 59, 54, .07);
}

.maintenance-quick-full {
    grid-column: 1 / -1;
}

.maintenance-quick-due-override {
    margin-top: 14px;
    padding: 13px;
    border: 1px solid #efd0cc;
    border-radius: 10px;
    background: #fff8f7;
}

.maintenance-quick-due-override > strong {
    display: block;
    margin-bottom: 10px;
    color: #ad3732;
    font-size: 10px;
}

.maintenance-quick-check {
    flex-direction: row !important;
    align-items: center;
    margin-bottom: 10px;
}

.maintenance-quick-check input {
    width: auto;
}

.maintenance-quick-tech-list {
    margin-top: 14px;
}

.maintenance-quick-tech-list > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 7px;
}

.maintenance-quick-tech {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 9px !important;
    padding: 9px 10px;
    border: 1px solid #e6e3df;
    border-radius: 9px;
    background: #faf9f7;
}

.maintenance-quick-tech > input {
    width: auto;
}

.maintenance-quick-tech-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.maintenance-quick-tech-main strong {
    color: #363c40;
    font-size: 10px;
}

.maintenance-quick-tech-main small {
    overflow: hidden;
    color: #969b9e;
    font-size: 8px;
    text-overflow: ellipsis;
}

.maintenance-quick-tech-status {
    max-width: 190px;
    color: #878c90;
    font-size: 8px;
    font-weight: 800;
    text-align: right;
}

.maintenance-quick-tech-status.is-free {
    color: #4e795b;
}

.maintenance-quick-tech-status.is-busy {
    color: #bd3c37;
}

.maintenance-quick-availability {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e6e3df;
    border-radius: 10px;
    background: #faf9f7;
    color: #747a7e;
    font-size: 9px;
}

.maintenance-quick-availability strong {
    color: #3d4347;
    font-size: 10px;
}

.maintenance-quick-message {
    margin: 18px 26px 0;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
}

.maintenance-quick-message.is-error {
    border: 1px solid #edcbc8;
    background: #fff4f3;
    color: #ad3833;
}

.maintenance-quick-message.is-success {
    border: 1px solid #cfe1d3;
    background: #f4faf5;
    color: #467453;
}

.maintenance-quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 26px 0;
}

.maintenance-quick-actions > a {
    color: #73797d;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.maintenance-quick-actions > div {
    display: flex;
    gap: 8px;
}

.maintenance-quick-actions button {
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 9px;
    font-weight: 900;
    cursor: pointer;
}

.maintenance-quick-cancel {
    border: 1px solid #dedbd7;
    background: #fff;
    color: #62686c;
}

.maintenance-quick-save {
    border: 1px solid #b83b36;
    background: #b83b36;
    color: #fff;
}

.maintenance-quick-save:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 640px) {

    .maintenance-quick-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-quick-full {
        grid-column: auto;
    }

    .maintenance-quick-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .maintenance-quick-actions > div {
        justify-content: flex-end;
    }

}


/* ============================================================
   MAMO DISPATCH STATUS FILTER V1
============================================================ */

.maintenance-dispatch-status-filters {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    border-bottom: 1px solid #ebe8e4;
    background: #fff;
}

.maintenance-dispatch-status-filter-label {
    flex: 0 0 auto;
    color: #94999d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.maintenance-dispatch-status-filters > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.maintenance-dispatch-status-filters a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid #e2dfdb;
    border-radius: 8px;
    background: #faf9f7;
    color: #666c70;
    text-decoration: none;
    font-size: 9px;
    font-weight: 800;
    transition: .15s ease;
}

.maintenance-dispatch-status-filters a:hover {
    border-color: #cac5c0;
    background: #f6f4f1;
}

.maintenance-dispatch-status-filters a strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ece9e5;
    color: #565c60;
    font-size: 8px;
    font-weight: 900;
}

.maintenance-dispatch-status-filters a.active {
    border-color: #3f4448;
    background: #34393d;
    color: #fff;
}

.maintenance-dispatch-status-filters a.active strong {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

@media (max-width: 750px) {

    .maintenance-dispatch-status-filters {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

}


/* ============================================================
   MAMO WEEK DAY ACTION V2
============================================================ */

.maintenance-week-day-summary {
    cursor: default;
}

.maintenance-week-open-day {
    display: inline-flex;
    align-items: center;
    margin-top: 7px;
    color: #777d81;
    font-size: 8px;
    font-weight: 900;
    text-decoration: none;
}

.maintenance-week-open-day:hover {
    color: #b83b36;
}

.maintenance-week-visits a[data-maintenance-quick-edit-url] {
    cursor: pointer;
}


/* ============================================================
   MAMO WEEK QUICK EDIT UX V1
============================================================ */

.maintenance-week-open-day {
    display: inline-flex;
    align-items: center;
    margin: 7px 0 9px;
    padding: 3px 0;
    color: #8a8f93;
    font-size: 7px;
    font-weight: 900;
    text-decoration: none;
}

.maintenance-week-open-day:hover {
    color: #b83b36;
}


.maintenance-week-visits {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.maintenance-week-visit-link {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 5px;
    padding: 7px 8px !important;
    border: 1px solid #e6e2de;
    border-radius: 8px;
    background: #fff;
    color: #43494d !important;
    font-size: 8px !important;
    line-height: 1.35;
    text-decoration: none !important;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.maintenance-week-visit-link:hover {
    border-color: rgba(188, 58, 53, .35);
    box-shadow: 0 4px 12px rgba(37, 42, 45, .07);
    transform: translateY(-1px);
}

.maintenance-week-visit-action {
    display: block;
    width: 100%;
    margin-top: 3px;
    color: #b83b36;
    font-size: 7px;
    font-weight: 900;
}


/* ============================================================
   MAMO DISPATCH BACKLOG V1
============================================================ */

.maintenance-dispatch-backlog {
    margin: 20px 0;
    border: 1px solid #e5e1dd;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.maintenance-dispatch-backlog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #ece9e5;
}

.maintenance-dispatch-backlog-head small {
    color: #c13b36;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.maintenance-dispatch-backlog-head h3 {
    margin: 3px 0 1px;
    color: #30363a;
    font-size: 17px;
}

.maintenance-dispatch-backlog-head p {
    margin: 0;
    color: #8b9094;
    font-size: 9px;
}

.maintenance-dispatch-backlog-head > strong {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f4f1ee;
    color: #555b5f;
    font-size: 9px;
}

.maintenance-dispatch-backlog-list {
    display: flex;
    flex-direction: column;
}

.maintenance-dispatch-backlog-item {
    display: grid;
    grid-template-columns:
        125px
        minmax(220px, 1fr)
        150px
        auto;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-bottom: 1px solid #efede9;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.maintenance-dispatch-backlog-item:last-child {
    border-bottom: 0;
}

.maintenance-dispatch-backlog-item:hover {
    background: #faf9f7;
}

.maintenance-dispatch-backlog-state {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.maintenance-dispatch-backlog-state strong {
    font-size: 9px;
}

.maintenance-dispatch-backlog-state span {
    color: #8d9295;
    font-size: 8px;
}

.maintenance-dispatch-backlog-item.is-overdue
.maintenance-dispatch-backlog-state strong {
    color: #bd3c37;
}

.maintenance-dispatch-backlog-item.is-due
.maintenance-dispatch-backlog-state strong {
    color: #b87b18;
}

.maintenance-dispatch-backlog-item.is-upcoming
.maintenance-dispatch-backlog-state strong {
    color: #687176;
}

.maintenance-dispatch-backlog-main {
    display: flex;
    flex-direction: column;
}

.maintenance-dispatch-backlog-main small {
    color: #c13b36;
    font-size: 8px;
    font-weight: 900;
}

.maintenance-dispatch-backlog-main strong {
    margin-top: 2px;
    color: #343a3e;
    font-size: 11px;
}

.maintenance-dispatch-backlog-main span {
    margin-top: 1px;
    color: #8a8f93;
    font-size: 8px;
}

.maintenance-dispatch-backlog-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.maintenance-dispatch-backlog-meta span {
    color: #676e72;
    font-size: 8px;
    font-weight: 800;
}

.maintenance-dispatch-backlog-action {
    color: #bd3b36;
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 900px) {

    .maintenance-dispatch-backlog-item {
        grid-template-columns: 1fr;
        gap: 7px;
    }

}


/* ============================================================
   MAMO DISPATCH BACKLOG PRIORITY V2
============================================================ */

.maintenance-dispatch-backlog-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid #ece9e5;
    background: #faf9f7;
}

.maintenance-dispatch-backlog-filters > span {
    margin-right: 4px;
    color: #969a9d;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .07em;
}

.maintenance-dispatch-backlog-filters button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #e1ded9;
    border-radius: 8px;
    background: #fff;
    color: #656b6f;
    font-size: 8px;
    font-weight: 900;
    cursor: pointer;
}

.maintenance-dispatch-backlog-filters button b {
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #eeece8;
    color: #676d71;
    font-size: 7px;
}

.maintenance-dispatch-backlog-filters button.is-active {
    border-color: #3e4448;
    background: #3e4448;
    color: #fff;
}

.maintenance-dispatch-backlog-filters button.is-active b {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}


/* PRIORITÄTSBALKEN */

.maintenance-dispatch-backlog-item {
    position: relative;
}

.maintenance-dispatch-backlog-item::before {
    content: '';
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #c7c9ca;
}

.maintenance-dispatch-backlog-item.is-overdue::before {
    background: #c23d37;
}

.maintenance-dispatch-backlog-item.is-due::before {
    background: #d79224;
}

.maintenance-dispatch-backlog-item.is-upcoming::before {
    background: #5287b8;
}

.maintenance-dispatch-backlog-item.is-unspecified::before {
    background: #979c9f;
}


.maintenance-dispatch-backlog-state em {
    color: #73797d;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.maintenance-dispatch-backlog-item.is-overdue
.maintenance-dispatch-backlog-state em {
    color: #b63a35;
}

.maintenance-dispatch-backlog-item.is-due
.maintenance-dispatch-backlog-state em {
    color: #ad751f;
}

.maintenance-dispatch-backlog-item.is-upcoming
.maintenance-dispatch-backlog-state em {
    color: #4e789c;
}

.maintenance-dispatch-backlog-meta small {
    color: #979b9e;
    font-size: 7px;
}

.maintenance-dispatch-backlog-empty-filter {
    padding: 22px;
    color: #92979a;
    font-size: 9px;
    text-align: center;
}


/* ============================================================
   MAMO SAFETY WORDMARK
   ============================================================ */

.mamo-brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    letter-spacing: 0;
}

.mamo-brand-wordmark strong,
.mamo-brand-wordmark > span {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.mamo-brand-wordmark strong {
    font-weight: 800;
}

.mamo-brand-wordmark > span {
    font-weight: 300;
}

/* ============================================================
   MAMO SAFETY WORDMARK · FINAL
   ============================================================ */

.mamo-brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    white-space: nowrap;
    letter-spacing: 0;
}

.mamo-brand-wordmark strong {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mamo-brand-wordmark > span {
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-left: 0;
}


/* ============================================================
   RWA TECHNISCHE STRUKTUR
   Ergänzung auf bestehendem MAMO Tile / Object Data Design
============================================================ */

.rwa-structure-card {
    overflow: hidden;
}


/* Header-Zähler etwas absetzen */

.rwa-structure-card > .technology-detail-meta {
    margin-bottom: 14px;
}


/* ------------------------------------------------------------
   Native Details / Summary bereinigen
------------------------------------------------------------ */

.rwa-structure-card details > summary {
    list-style: none;
}

.rwa-structure-card details > summary::-webkit-details-marker {
    display: none;
}


/* ------------------------------------------------------------
   Aktionen
------------------------------------------------------------ */

.rwa-action {
    margin-top: 8px;
}

.rwa-action > summary {
    display: flex;

    min-height: 32px;

    box-sizing: border-box;

    align-items: center;

    gap: 7px;

    padding: 7px 10px;

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

    color: #777e82;

    background: #faf9f7;

    font-size: 8px;
    font-weight: 850;

    cursor: pointer;
}

.rwa-action > summary:hover {
    border-color: #c8c2bb;

    color: #d33a34;

    background: #fff;
}

.rwa-action[open] > summary {
    margin-bottom: 10px;

    border-color: #e1bbb8;

    color: #aa332e;

    background: #fff7f6;
}


/* Das Haupt-Anlegen bleibt etwas stärker */

.rwa-add-zone > summary {
    min-height: 40px;

    border-style: solid;
    border-color: #e6c3c0;

    color: #a9332e;

    background:
        linear-gradient(
            145deg,
            #fffafa,
            #fff5f4
        );

    font-size: 9px;
}


/* ------------------------------------------------------------
   RAUCHBEREICH
------------------------------------------------------------ */

.rwa-zone {
    margin-top: 11px;

    overflow: hidden;

    border: 1px solid #d9d4ce;
    border-left: 4px solid #df3934;
    border-radius: 13px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf9f7
        );

    box-shadow:
        0 5px 15px rgba(20,24,28,.035);
}

.rwa-zone > summary {
    position: relative;

    display: grid;

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

    gap: 6px 14px;

    align-items: center;

    padding: 13px 38px 13px 14px;

    cursor: pointer;
}

.rwa-zone > summary::after {
    content: "›";

    position: absolute;

    top: 50%;
    right: 15px;

    color: #858b8f;

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

    transform:
        translateY(-50%)
        rotate(90deg);

    transition: transform .16s ease;
}

.rwa-zone:not([open]) > summary::after {
    transform:
        translateY(-50%)
        rotate(0deg);
}

.rwa-zone > summary > strong {
    color: #292e32;

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

.rwa-zone > summary > small {
    justify-self: end;

    color: #999ea1;

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

.rwa-zone > .technology-detail-meta {
    margin: 0;

    padding: 0 14px 11px;
}


/* ------------------------------------------------------------
   RWA-GRUPPE
------------------------------------------------------------ */

.rwa-group {
    margin:
        10px
        13px
        10px
        28px;

    overflow: hidden;

    border: 1px solid #dedad4;
    border-left: 3px solid #343a40;
    border-radius: 11px;

    background: #fff;
}

.rwa-group > summary {
    position: relative;

    display: grid;

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

    gap: 5px 12px;

    align-items: center;

    padding: 11px 34px 11px 12px;

    cursor: pointer;
}

.rwa-group > summary::after {
    content: "›";

    position: absolute;

    top: 50%;
    right: 12px;

    color: #8a9094;

    font-size: 15px;

    transform:
        translateY(-50%)
        rotate(90deg);
}

.rwa-group:not([open]) > summary::after {
    transform:
        translateY(-50%);
}

.rwa-group > summary strong {
    color: #343a3e;

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

.rwa-group > summary small {
    justify-self: end;

    color: #a0a5a8;

    font-size: 6px;
    font-weight: 850;
}


/* ------------------------------------------------------------
   LEITUNG
------------------------------------------------------------ */

.rwa-circuit {
    margin:
        5px
        12px
        6px
        30px;

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

    background: #faf9f7;
}

.rwa-circuit > summary {
    display: grid;

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

    gap: 9px;

    align-items: center;

    min-height: 37px;

    padding: 5px 10px;

    cursor: pointer;
}

.rwa-circuit > summary > strong {
    color: #31373b;

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

.rwa-circuit > summary > span {
    color: #686f74;

    font-size: 8px;
    font-weight: 850;
}

.rwa-circuit > summary > small {
    overflow: hidden;

    color: #a0a5a8;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.rwa-circuit[open] {
    background: #fff;
}


/* ------------------------------------------------------------
   Direkt am Rauchbereich
------------------------------------------------------------ */

.rwa-direct-circuits {
    margin:
        8px
        13px
        10px
        28px;

    padding: 9px 11px;

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

    background: #faf9f7;
}

.rwa-direct-circuits > summary {
    cursor: pointer;

    color: #666e73;

    font-size: 8px;
}


/* ------------------------------------------------------------
   Formulare innerhalb der RWA-Hierarchie
------------------------------------------------------------ */

.rwa-structure-card details form {
    padding:
        2px
        11px
        11px;
}


/*
 * object-data-actions ist global sticky.
 * Innerhalb der kleinen RWA-Editoren soll es normal fließen.
 */

.rwa-structure-card .object-data-actions {
    position: static;

    z-index: auto;

    margin-top: 9px;

    padding: 7px;

    border-radius: 10px;
}


/* Verschachtelte Aktionen etwas einrücken */

.rwa-zone > .rwa-action {
    margin-right: 13px;
    margin-left: 13px;
}

.rwa-group > .rwa-action {
    margin-right: 11px;
    margin-left: 11px;
}


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

@media (max-width: 700px) {

    .rwa-zone > summary,
    .rwa-group > summary {
        grid-template-columns: 1fr;
    }

    .rwa-zone > summary > small,
    .rwa-group > summary > small {
        justify-self: start;
    }

    .rwa-group {
        margin-left: 14px;
    }

    .rwa-circuit {
        margin-left: 18px;
    }

    .rwa-circuit > summary {
        grid-template-columns:
            36px
            1fr;
    }

    .rwa-circuit > summary > small {
        grid-column: 1 / -1;
    }

}


/* ============================================================
   RWA · KOMPONENTEN INNERHALB EINER LEITUNG
============================================================ */

.rwa-component-list {
    display: grid;

    gap: 5px;

    margin:
        6px
        11px
        8px
        24px;
}


.rwa-component-row {
    display: grid;

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

    gap: 8px;

    align-items: center;

    min-height: 32px;

    padding: 5px 9px;

    border-left: 2px solid #d7d2cc;

    color: #555d61;

    background: #fff;

    font-size: 7px;
}


.rwa-component-row strong {
    color: #30363a;

    font-size: 8px;
    font-weight: 950;
}


.rwa-component-row span {
    font-weight: 850;
}


.rwa-component-row small {
    overflow: hidden;

    color: #9ca1a4;

    text-overflow: ellipsis;
    white-space: nowrap;
}


@media (max-width: 700px) {

    .rwa-component-row {
        grid-template-columns:
            50px
            1fr;
    }

    .rwa-component-row small {
        grid-column: 1 / -1;
    }

}


/* ============================================================
   OBJEKTAKTE · KOMPONENTENFILTER
============================================================ */

.component-filter-form {
    margin-top: 14px;
}


.component-filter-form .object-data-actions {
    position: static;

    z-index: auto;

    min-height: 0;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 10px;

    padding: 8px 0;

    border: 0;

    background: transparent;

    box-shadow: none;
}


.component-filter-form .object-data-actions a {
    display: inline-flex;

    min-height: 34px;

    align-items: center;

    padding: 0 11px;

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

    color: #747b7f;

    background: #fff;

    font-size: 8px;
    font-weight: 850;

    text-decoration: none;
}


.component-filter-form .object-data-actions a:hover {
    border-color: #c9c3bd;

    color: #343a3e;
}


.component-filter-form .object-data-save {
    min-height: 34px;

    padding: 0 15px;
}


/* ============================================================
   OBJEKTAKTE · KOMPONENTENFILTER · Innenabstand
============================================================ */

.component-filter-form {
    padding:
        0
        14px
        4px;
}


@media (max-width: 700px) {

    .component-filter-form {
        padding:
            0
            8px
            4px;
    }

}


/* ============================================================
   OBJEKTAKTE · KOMPONENTEN · Filterchips
============================================================ */

.object-tab-panel.active
.object-card
> .technology-detail-meta {
    padding:
        0
        14px;
}


@media (max-width: 700px) {

    .object-tab-panel.active
    .object-card
    > .technology-detail-meta {
        padding:
            0
            8px;
    }

}


/* ============================================================
   WARTUNG · RWA STRUKTUR
============================================================ */

.maintenance-rwa-workspace {
    margin-bottom: 18px;

    padding: 16px;

    border: 1px solid #ddd9d3;
    border-top: 3px solid #df3934;
    border-radius: 15px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #faf9f7
        );
}


.maintenance-rwa-head {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}


.maintenance-rwa-head h2 {
    margin: 3px 0;

    color: #292e32;

    font-size: 15px;
}


.maintenance-rwa-section-label {
    margin:
        11px
        0
        7px;

    color: #8a3030;

    font-size: 7px;
    font-weight: 950;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.maintenance-rwa-zone {
    margin-top: 9px;

    overflow: hidden;

    border: 1px solid #ddd8d2;
    border-left: 4px solid #df3934;
    border-radius: 12px;

    background: #fff;
}


.maintenance-rwa-zone > summary {
    display: flex;

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

    gap: 12px;

    padding: 11px 13px;

    cursor: pointer;

    list-style: none;
}


.maintenance-rwa-zone > summary::-webkit-details-marker {
    display: none;
}


.maintenance-rwa-zone > summary strong {
    color: #30363a;

    font-size: 9px;
}


.maintenance-rwa-zone > summary small {
    display: block;

    margin-top: 3px;

    color: #999ea1;

    font-size: 7px;
}


.maintenance-rwa-zone > summary > span {
    color: #959b9e;

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


.maintenance-rwa-group {
    margin:
        0
        11px
        10px
        25px;

    padding:
        9px
        10px;

    border-left: 3px solid #363c40;
    border-radius: 9px;

    background: #faf9f7;
}


.maintenance-rwa-group-head {
    margin-bottom: 7px;

    color: #3b4145;

    font-size: 8px;
}


.maintenance-rwa-circuit {
    margin-top: 7px;

    padding:
        8px
        9px;

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

    background: #fff;
}


.maintenance-rwa-circuit-head {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 7px;
}


.maintenance-rwa-circuit-head strong {
    color: #30363a;

    font-size: 8px;
}


.maintenance-rwa-circuit-head span {
    color: #999ea1;

    font-size: 7px;
}


.maintenance-rwa-circuit .compact-item,
.maintenance-rwa-system-components .compact-item {
    margin-top: 6px;
}


@media (max-width: 700px) {

    .maintenance-rwa-head {
        flex-direction: column;
    }

    .maintenance-rwa-group {
        margin-left: 12px;
    }

}


/* ============================================================
   WARTUNG · FESTE GEWERK-KACHELN
============================================================ */

.maintenance-trade-unavailable {
    border-top-color: #b8bdc0;

    background:
        linear-gradient(
            150deg,
            #fbfbfa,
            #f3f3f1
        );

    box-shadow: none;

    cursor: default;

    opacity: .72;
}


.maintenance-trade-unavailable
.object-main-icon {
    background:
        linear-gradient(
            145deg,
            #7b8286,
            #62696d
        );
}


.maintenance-trade-unavailable
.object-main-action {
    color: #9aa0a3;
}


/* ============================================================
   MELDER · ZUSÄTZLICHE PRÜFUNG
============================================================ */

.detector-workspace-additional-form {
    margin: 0;
}


.detector-workspace-additional-item {
    opacity: .78;
    border-style: dashed;
}


.detector-workspace-additional-item:hover:not(:disabled) {
    opacity: 1;
}


.detector-workspace-additional-label {
    display: block;

    margin-top: 2px;

    font-size: 9px;
    line-height: 1.1;

    font-weight: 700;

    opacity: .65;
}


.detector-workspace-additional-item
.mamo-matrix-state {
    font-style: normal;
    font-weight: 800;
}


/* ============================================================
   WARTUNGSSTATUS · ZUSATZLEISTUNGEN
============================================================ */

.maintenance-status-extra {
    margin-top: 7px;

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

    color: #66716d;
}


.maintenance-status-extra strong {
    margin-right: 4px;

    color: #16835e;
    font-weight: 800;
}


/* ============================================================
   WARTUNG · LIVE-GEWERKSTATUS
============================================================ */

.maintenance-trade-live-state {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;

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

    border-radius: 8px;

    background: rgba(33, 41, 37, .045);

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


.maintenance-trade-live-state strong {
    font-weight: 800;
}


.maintenance-trade-live-state span {
    opacity: .72;
}


.maintenance-trade-live-state.is-active {
    background: rgba(211, 146, 31, .09);
}


.maintenance-trade-live-state.is-done {
    background: rgba(22, 131, 94, .08);
}


/* ============================================================
   WARTUNG · GEWERKE · NICHT GEPRÜFT INLINE
   RWA / SAA / ELA
============================================================ */

.maintenance-rwa-workspace
.compact-item
.mamo-inline-action.procedure-skip {
    position: static;

    width: 100%;
    margin-top: 8px;
}


.maintenance-rwa-workspace
.compact-item
.mamo-inline-action.procedure-skip[open] {
    width: 100%;
}


.maintenance-rwa-workspace
.compact-item
.mamo-inline-action.procedure-skip[open] > form {
    position: static;

    width: 100%;
    max-width: none;

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

    box-sizing: border-box;

    box-shadow: none;

    border:
        1px solid
        var(--mamo-work-border);

    border-radius: 10px;

    background: #faf9f7;
}


.maintenance-rwa-workspace
.compact-item
.mamo-inline-action.procedure-skip
select,
.maintenance-rwa-workspace
.compact-item
.mamo-inline-action.procedure-skip
textarea {
    width: 100%;
    box-sizing: border-box;
}


.maintenance-rwa-workspace
.compact-item:has(
    .mamo-inline-action.procedure-skip[open]
) {
    align-items: start;
}


/* ============================================================
   MAMO SAFETY · TECH CARD STANDARD V1
   Einheitliche visuelle Sprache für technische Stammdaten
============================================================ */

:root {
    --mamo-tech-border: #d9d4ce;
    --mamo-tech-border-soft: #e7e3de;

    --mamo-tech-bg: #ffffff;
    --mamo-tech-bg-soft: #f8f6f3;
    --mamo-tech-field-bg: #f1f0ed;

    --mamo-tech-text: #292e32;
    --mamo-tech-muted: #92979b;

    --mamo-tech-red: #df3934;
    --mamo-tech-red-soft: #fdebea;

    --mamo-tech-radius: 15px;
    --mamo-tech-radius-small: 10px;

    --mamo-tech-shadow:
        0 8px 22px rgba(20,24,28,.05);

    --mamo-tech-shadow-hover:
        0 12px 28px rgba(20,24,28,.09);
}


/* ------------------------------------------------------------
   TECHNISCHE STAMMDATENKARTEN
   Anlage · Rauchbereich · Meldergruppe · Kategorie
------------------------------------------------------------ */

.technology-system-card,
.technology-group-card,
.technology-floor-card,
.technology-component-card {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        var(--mamo-tech-border);

    border-top:
        3px solid
        var(--mamo-tech-red);

    border-radius:
        var(--mamo-tech-radius);

    color:
        var(--mamo-tech-text);

    background:
        linear-gradient(
            150deg,
            var(--mamo-tech-bg),
            var(--mamo-tech-bg-soft)
        );

    box-shadow:
        var(--mamo-tech-shadow);

    text-decoration: none;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}


/* dezentes technisches Kartenraster */

.technology-system-card::before,
.technology-group-card::before,
.technology-floor-card::before,
.technology-component-card::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: .20;

    background-image:
        linear-gradient(
            rgba(223,57,52,.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(223,57,52,.08) 1px,
            transparent 1px
        );

    background-size:
        28px 28px;
}


/* Inhalt immer über Raster */

.technology-system-card > *,
.technology-group-card > *,
.technology-floor-card > *,
.technology-component-card > * {
    position: relative;
    z-index: 1;
}


/* Hover nur bei echten Links */

a.technology-system-card:hover,
a.technology-group-card:hover,
a.technology-floor-card:hover,
a.technology-component-card:hover {
    transform:
        translateY(-2px);

    border-color:
        #cbc5be;

    box-shadow:
        var(--mamo-tech-shadow-hover);
}


/* ------------------------------------------------------------
   ICON-STANDARD
------------------------------------------------------------ */

.technology-system-icon,
.technology-floor-icon,
.technology-component-icon {
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    box-shadow:
        0 5px 12px
        rgba(20,24,28,.10);
}


/* ------------------------------------------------------------
   TYP / STATUS PILL
------------------------------------------------------------ */

.technology-system-type {
    padding:
        5px 8px;

    border-radius:
        999px;

    color:
        #8f302b;

    background:
        var(--mamo-tech-red-soft);

    font-size:
        6px;

    font-weight:
        950;

    letter-spacing:
        .02em;
}


/* ------------------------------------------------------------
   STAMMDATENFELDER
------------------------------------------------------------ */

.technology-system-data {
    gap: 6px;

    margin-top: 12px;
}


.technology-system-data > div {
    padding:
        7px 9px;

    border:
        1px solid
        rgba(217,212,206,.45);

    border-radius:
        var(--mamo-tech-radius-small);

    background:
        var(--mamo-tech-field-bg);
}


.technology-system-data span {
    color:
        #969b9f;

    font-size:
        6px;

    font-weight:
        900;

    letter-spacing:
        .03em;
}


.technology-system-data strong {
    color:
        #41484c;

    font-size:
        8px;

    font-weight:
        850;
}


/* ------------------------------------------------------------
   KARTEN-FOOTER / KENNZAHLEN
------------------------------------------------------------ */

.technology-system-stats {
    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: auto;

    padding-top: 12px;

    color:
        var(--mamo-tech-muted);
}


.technology-system-stats span {
    display: inline-flex;

    align-items: baseline;

    gap: 4px;
}


.technology-system-stats strong {
    color:
        #30363a;

    font-size:
        11px;

    font-weight:
        950;
}


/* ------------------------------------------------------------
   KOMPONENTEN-KATEGORIEN
   gleiche Sprache, etwas kompakter
------------------------------------------------------------ */

.technology-component-card {
    min-height: 165px;

    padding: 16px;
}


.technology-component-card h3 {
    margin-top: 14px;

    color:
        var(--mamo-tech-text);

    font-size: 12px;

    font-weight: 950;
}


.technology-component-card
.technology-floor-count {
    margin-top: auto;

    padding-top: 15px;

    font-size: 24px;
}


.technology-component-card
.technology-group-action {
    margin-top: 8px;

    color:
        #767d81;

    font-size: 7px;

    font-weight: 900;
}


/* ------------------------------------------------------------
   HUB-KARTEN
   BMA · RWA · SAA · ELA und Gewerk-Unterbereiche
------------------------------------------------------------ */

.object-subtile {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        var(--mamo-tech-border);

    border-top:
        3px solid
        var(--mamo-tech-red);

    border-radius:
        var(--mamo-tech-radius);

    background:
        linear-gradient(
            150deg,
            var(--mamo-tech-bg),
            var(--mamo-tech-bg-soft)
        );

    box-shadow:
        var(--mamo-tech-shadow);

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}


a.object-subtile:hover {
    transform:
        translateY(-2px);

    border-color:
        #cbc5be;

    box-shadow:
        var(--mamo-tech-shadow-hover);
}


.object-subtile-icon {
    box-shadow:
        0 5px 12px
        rgba(20,24,28,.10);
}


/* Add-Karte bleibt bewusst grün/dunkel */

.object-subtile-add {
    border-top-color:
        #2d9b68;
}


/* ------------------------------------------------------------
   KONKRETE TECHNISCHE ELEMENTE
   Komponente · Melder · Punkt · Netzteil
------------------------------------------------------------ */

.technology-list-row {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        var(--mamo-tech-border-soft);

    border-radius:
        12px;

    color:
        inherit;

    background:
        #fff;

    box-shadow:
        0 3px 10px
        rgba(20,24,28,.025);

    text-decoration: none;

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


a.technology-list-row:hover {
    transform:
        translateY(-1px);

    border-color:
        #cbc5be;

    background:
        #fcfbf9;

    box-shadow:
        0 6px 16px
        rgba(20,24,28,.06);
}


.technology-list-code span {
    border-radius:
        10px;

    box-shadow:
        0 4px 10px
        rgba(20,24,28,.08);
}


/* ------------------------------------------------------------
   GRID RHYTHM
------------------------------------------------------------ */

.technology-system-grid,
.technology-group-grid,
.technology-floor-grid,
.technology-component-grid {
    gap: 12px;
}


/* ------------------------------------------------------------
   MOBILE
------------------------------------------------------------ */

@media (max-width: 750px) {

    .technology-system-card,
    .technology-group-card,
    .technology-floor-card,
    .technology-component-card {
        min-height: auto;
    }

    .object-subtile {
        min-height: 115px;
    }

}



/* ============================================================
   MAMO SAFETY · TECHNISCHE STRUKTURKARTEN
============================================================ */


/* RWA-Gruppe innerhalb eines Rauchbereichs */

.rwa-structure-card {
    min-height: 0;

    padding: 16px;

    background:
        linear-gradient(
            150deg,
            #fff,
            #f8f6f3
        );
}


.rwa-structure-card > div:first-child {
    position: relative;

    z-index: 1;
}


/* Leitungscontainer */

.rwa-structure-card
.technology-detail-meta {
    display: grid;

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

    gap: 8px;

    margin-top: 14px;
}


/* Einzelne Leitung */

.rwa-circuit-card {
    display: flex;

    min-height: 48px;

    box-sizing: border-box;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    padding: 11px 13px;

    border:
        1px solid
        var(
            --mamo-tech-border-soft,
            #e7e3de
        );

    border-radius: 11px;

    color:
        var(
            --mamo-tech-text,
            #292e32
        );

    background: #fff;

    box-shadow:
        0 3px 10px
        rgba(20,24,28,.025);

    font-size: 8px;

    font-weight: 850;

    text-decoration: none;

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


.rwa-circuit-card:hover {
    transform:
        translateY(-1px);

    border-color:
        #cbc5be;

    background:
        #fcfbf9;

    box-shadow:
        0 6px 16px
        rgba(20,24,28,.06);
}


.rwa-circuit-card > span:first-child {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #30363a;
}


.rwa-circuit-card small {
    color: #8a9094;

    font-size: 7px;

    font-weight: 800;
}


@media (max-width: 750px) {

    .rwa-structure-card
    .technology-detail-meta {
        grid-template-columns: 1fr;
    }


    .rwa-circuit-card {
        width: 100%;
    }

}



/* ============================================================
   MAMO SAFETY · ENERGIEVERSORGUNG HIERARCHIE
============================================================ */

.power-child-list {
    display: grid;

    gap: 6px;

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

    border-top:
        1px solid
        var(--mamo-tech-border-soft,#e7e3de);
}


.power-child-card {
    display: grid;

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

    align-items: center;

    gap: 9px;

    padding: 8px 9px;

    border:
        1px solid
        #e6e2dc;

    border-radius: 10px;

    background: #fff;
}


.power-child-icon {
    display: grid;

    width: 30px;
    height: 30px;

    place-items: center;

    border-radius: 8px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 11px;
}


.power-child-main {
    display: grid;

    gap: 2px;
}


.power-child-main strong {
    color: #30363a;

    font-size: 8px;
}


.power-child-main small {
    color: #92979b;

    font-size: 6px;
}


.power-child-type {
    padding: 4px 6px;

    border-radius: 999px;

    color: #8f302b;

    background: #fdebea;

    font-size: 6px;
    font-weight: 950;
}



/* ============================================================
   MAMO SAFETY · DISABLED ACTION
============================================================ */

.object-data-save.is-disabled {
    opacity: .38;

    cursor: not-allowed;

    pointer-events: none;

    filter: grayscale(.35);
}



/* ============================================================
   MAMO SAFETY · ENERGIEVERSORGUNG ACTIONS
============================================================ */

.power-supply-actions {
    display: flex;

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

    flex-wrap: wrap;

    gap: 7px;

    margin:
        9px 0
        12px;

    padding: 0;

    border: 0;

    background: transparent;
}


.power-supply-actions
.object-data-save {
    display: inline-flex;

    width: auto;
    min-width: 0;
    min-height: 36px;

    box-sizing: border-box;

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

    padding:
        0 13px;

    border-radius: 10px;

    font-size: 8px;
    font-weight: 900;

    text-decoration: none;

    white-space: nowrap;
}


.power-supply-actions
.object-data-save.is-disabled {
    min-height: 36px;

    opacity: .38;
}


@media (max-width: 750px) {

    .power-supply-actions {
        justify-content: stretch;
    }

    .power-supply-actions
    .object-data-save {
        flex: 1 1 auto;
    }

}



/* ============================================================
   MAMO SAFETY · SCHNITTSTELLEN ACTIONS
   Bestehende CI / keine neue Designsprache
============================================================ */


/* Entfernen innerhalb einer Schnittstellenkarte */

.technology-system-card
.object-data-delete {
    display: inline-flex;

    min-height: 34px;

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

    gap: 6px;

    padding:
        0 12px;

    border:
        1px solid #e5b8b5;

    border-radius: 9px;

    color: #a8322d;

    background: #fff4f3;

    font-size: 8px;
    font-weight: 900;

    cursor: pointer;

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


.technology-system-card
.object-data-delete:hover {
    background: #fdebea;

    border-color: #d99a96;

    transform:
        translateY(-1px);
}


/* Footerbereich der Karte etwas kompakter */

.technology-system-card
.object-data-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 12px;

    padding-top: 10px;

    border-top:
        1px solid #ece8e3;
}


/* Schnittstelle hinzufügen */

details.rwa-action {
    border:
        1px dashed #d8b1ae;

    border-radius: 12px;

    background: #fffafa;
}


details.rwa-action > summary {
    display: flex;

    min-height: 40px;

    align-items: center;

    padding:
        0 13px;

    color: #9d312c;

    font-size: 8px;
    font-weight: 900;

    cursor: pointer;

    list-style: none;
}


details.rwa-action > summary::-webkit-details-marker {
    display: none;
}


details.rwa-action > summary:hover {
    background: #fdf3f2;
}


details.rwa-action[open] > summary {
    border-bottom:
        1px solid #ead7d5;

    background: #fdf6f5;
}


/* Formular im geöffneten Zustand */

details.rwa-action > form {
    padding:
        14px;
}


/* Mobile */

@media (max-width: 750px) {

    .technology-system-card
    .object-data-actions {
        justify-content: stretch;
    }


    .technology-system-card
    .object-data-delete {
        width: 100%;
    }

}



/* ============================================================
   MAMO SAFETY · ADD-SUBTILE FINAL OVERRIDE
   Add-Kacheln bewusst dunkel/grün
============================================================ */

.object-subtile.object-subtile-add {
    border:
        1px solid #2d3438 !important;

    border-top:
        3px solid #2d9b68 !important;

    color:
        #ffffff !important;

    background:
        linear-gradient(
            145deg,
            #2d3438,
            #1e2327
        ) !important;

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.12) !important;
}


.object-subtile.object-subtile-add
.object-subtile-icon {
    color:
        #ffffff !important;

    background:
        linear-gradient(
            145deg,
            #36ae75,
            #217c52
        ) !important;
}


.object-subtile.object-subtile-add
strong {
    color:
        #ffffff !important;
}


.object-subtile.object-subtile-add
small {
    color:
        rgba(
            255,
            255,
            255,
            .68
        ) !important;
}


.object-subtile.object-subtile-add:hover {
    transform:
        translateY(-2px);

    border-color:
        #319e6c !important;

    box-shadow:
        0 12px 28px
        rgba(20,24,28,.18) !important;
}



/* ============================================================
   MAMO SAFETY · TECHNIKSTATUS
============================================================ */

.technology-status-section,
.technology-attention-section {
    margin-top: 18px;

    padding: 18px;

    border:
        1px solid #d9d4ce;

    border-radius: 15px;

    background:
        linear-gradient(
            150deg,
            #ffffff,
            #faf8f5
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.04);
}


.technology-status-head {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 16px;

    margin-bottom: 14px;
}


.technology-status-head h3 {
    margin: 4px 0 0;

    color: #292e32;

    font-size: 13px;

    font-weight: 950;
}


.technology-status-head p {
    margin: 4px 0 0;

    color: #8b9195;

    font-size: 7px;
}


.technology-status-grid {
    display: grid;

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

    gap: 8px;
}


.technology-status-item {
    min-height: 66px;

    box-sizing: border-box;

    padding: 11px 12px;

    border:
        1px solid #e4e0da;

    border-radius: 11px;

    background: #f5f3f0;
}


.technology-status-item span {
    display: block;

    color: #92979b;

    font-size: 6px;

    font-weight: 900;

    letter-spacing: .04em;

    text-transform: uppercase;
}


.technology-status-item strong {
    display: block;

    margin-top: 7px;

    color: #30363a;

    font-size: 18px;

    font-weight: 950;
}


/* ------------------------------------------------------------
   Handlungsbedarf
------------------------------------------------------------ */

.technology-attention-list {
    display: grid;

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

    gap: 8px;
}


.technology-attention-row {
    display: grid;

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

    align-items: center;

    gap: 10px;

    min-height: 58px;

    padding: 9px 11px;

    border:
        1px solid #e4e0da;

    border-radius: 11px;

    background: #f8f7f5;
}


.technology-attention-icon {
    display: grid;

    width: 32px;
    height: 32px;

    place-items: center;

    border-radius: 9px;

    background: #e9e7e3;

    color: #596065;

    font-size: 12px;

    font-weight: 950;
}


.technology-attention-row strong {
    display: block;

    color: #30363a;

    font-size: 8px;

    font-weight: 950;
}


.technology-attention-row small {
    display: block;

    margin-top: 3px;

    color: #8c9296;

    font-size: 6px;
}


.technology-attention-row.is-warning
.technology-attention-icon {
    color: #9c342f;

    background: #fdebea;
}


.technology-attention-row.is-ok
.technology-attention-icon {
    color: #22784f;

    background: #e5f4ec;
}


.technology-attention-row.is-neutral
.technology-attention-icon {
    color: #747b7f;

    background: #efeeeb;
}


@media (max-width: 1000px) {

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

}


@media (max-width: 750px) {

    .technology-status-grid,
    .technology-attention-list {
        grid-template-columns: 1fr;
    }

}



/* ============================================================
   MAMO SAFETY · LETZTE TECHNISCHE ÄNDERUNGEN
============================================================ */

.technology-recent-section {
    margin-top: 18px;

    padding: 18px;

    border:
        1px solid #d9d4ce;

    border-radius: 15px;

    background:
        linear-gradient(
            150deg,
            #ffffff,
            #faf8f5
        );

    box-shadow:
        0 8px 22px
        rgba(20,24,28,.04);
}


.technology-recent-head {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 18px;

    margin-bottom: 14px;
}


.technology-recent-head h3 {
    margin: 4px 0 0;

    color: #292e32;

    font-size: 13px;

    font-weight: 950;
}


.technology-recent-head p {
    margin: 4px 0 0;

    color: #8b9195;

    font-size: 7px;
}


.technology-recent-link {
    display: inline-flex;

    min-height: 34px;

    align-items: center;

    padding:
        0 11px;

    border:
        1px solid #d9d4ce;

    border-radius: 9px;

    color: #555d61;

    background: #fff;

    font-size: 7px;

    font-weight: 900;

    text-decoration: none;
}


.technology-recent-link:hover {
    border-color: #c9c3bc;

    background: #faf9f7;
}


.technology-recent-list {
    display: grid;

    gap: 7px;
}


.technology-recent-row {
    display: grid;

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

    align-items: center;

    gap: 11px;

    padding: 10px 11px;

    border:
        1px solid #e5e1dc;

    border-radius: 11px;

    background: #f8f7f5;
}


.technology-recent-icon {
    display: grid;

    width: 36px;
    height: 36px;

    place-items: center;

    border-radius: 10px;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #353b40,
            #202529
        );

    font-size: 12px;
}


.technology-recent-content {
    min-width: 0;
}


.technology-recent-content > strong {
    display: block;

    color: #30363a;

    font-size: 8px;

    font-weight: 950;
}


.technology-recent-content > small {
    display: block;

    margin-top: 3px;

    color: #858c90;

    font-size: 7px;
}


.technology-recent-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 6px;
}


.technology-recent-meta span {
    padding: 3px 6px;

    border-radius: 999px;

    color: #7e8589;

    background: #efede9;

    font-size: 6px;

    font-weight: 800;
}


@media (max-width: 750px) {

    .technology-recent-head {
        display: grid;
    }

    .technology-recent-link {
        width: fit-content;
    }

}



/* MAMO SAFETY · deaktivierte Gewerkeaktion */

.object-subtile.object-subtile-add.is-disabled {
    opacity: .48 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow:
        0 5px 14px
        rgba(20,24,28,.06) !important;
}


/* ============================================================
   MAMO SAFETY · TECH CARD EDIT ACTION V1
============================================================ */

.technology-card-edit {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid rgba(40, 48, 52, .10);
}

.technology-card-edit > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 38px;
    padding: 8px 14px;

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

    background: #ffffff;
    color: #252b2f;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(20, 24, 28, .04);

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

.technology-card-edit > summary::-webkit-details-marker {
    display: none;
}

.technology-card-edit > summary::before {
    content: "✎";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 6px;

    background: rgba(45, 155, 104, .10);
    color: #2d9b68;

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

.technology-card-edit > summary:hover {
    border-color: #2d9b68;
    color: #237a53;
    background: #f8fbf9;
    transform: translateY(-1px);
}

.technology-card-edit[open] > summary {
    border-color: #2d9b68;
    color: #237a53;
    background: #f5faf7;
}

.technology-card-edit > form {
    margin-top: 14px;
    padding: 16px;

    border: 1px solid #e0e4e6;
    border-radius: 14px;

    background: #ffffff;
}


/* ============================================================
   MAMO SAFETY · TECH CARD EDIT ACTION V2 · RED CI
============================================================ */

.technology-card-edit > summary {
    border-color: rgba(196, 58, 53, .20) !important;
    background: rgba(196, 58, 53, .055) !important;
    color: #b83d38 !important;
}

.technology-card-edit > summary::before {
    background: rgba(196, 58, 53, .10) !important;
    color: #bd3b36 !important;
}

.technology-card-edit > summary:hover {
    border-color: rgba(196, 58, 53, .38) !important;
    background: rgba(196, 58, 53, .085) !important;
    color: #a93632 !important;
}

.technology-card-edit[open] > summary {
    border-color: rgba(196, 58, 53, .34) !important;
    background: rgba(196, 58, 53, .08) !important;
    color: #a93632 !important;
}


/* ============================================================
   MAMO SAFETY · TECH CARD EDIT ACCORDION V3
============================================================ */

.technology-card-edit > summary {
    width: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    box-sizing: border-box;
}

.technology-card-edit > summary::after {
    content: "⌄";
    margin-left: auto;

    color: #b83d38;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;

    transition: transform .18s ease;
}

.technology-card-edit[open] > summary::after {
    transform: rotate(180deg);
}

.technology-card-edit[open] > summary {
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}


/* ============================================================
   MAMO SAFETY · TECH CARD INLINE EDIT V4
   Ganze Karte öffnet Bearbeitung
============================================================ */

.technology-system-card:has(.technology-card-edit) {
    cursor: pointer;
}

.technology-system-card:has(.technology-card-edit):hover {
    transform: translateY(-2px);
}

.technology-system-card .technology-card-edit {
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
}

/*
 * Der separate Bearbeiten-Trigger verschwindet.
 * Die komplette Karte ist jetzt der Trigger.
 */
.technology-system-card
.technology-card-edit > summary {
    display: none !important;
}

/*
 * Formular erscheint innerhalb derselben Karte.
 */
.technology-system-card
.technology-card-edit[open] > form {
    margin-top: 16px;
    padding-top: 16px;

    border-top: 1px solid rgba(196, 58, 53, .16);
}

/*
 * Geöffnete Karte optisch markieren.
 */
.technology-system-card:has(
    .technology-card-edit[open]
) {
    border-color: rgba(196, 58, 53, .30);
    box-shadow:
        0 12px 30px rgba(20, 24, 28, .10);
}


/* ============================================================
   MAMO SAFETY · RWA GROUP DETAIL LINK V1
============================================================ */

.rwa-group-detail-link {
    display: block;
    flex: 1 1 auto;
    min-width: 0;

    color: inherit;
    text-decoration: none;

    cursor: pointer;
}

.rwa-group-detail-link strong {
    transition: color .16s ease;
}

.rwa-group-detail-link:hover strong {
    color: #b83d38;
}

.rwa-group-open-hint {
    display: block;
    margin-top: 6px;

    color: #b83d38;
    font-size: 11px;
    font-weight: 700;
}


/* MAMO SAFETY · RWA GROUP DETAIL LINK */
.rwa-group-detail-link {
    display:block;
    flex:1 1 auto;
    min-width:0;
    color:inherit;
    text-decoration:none;
    cursor:pointer;
}

.rwa-group-detail-link:hover strong {
    color:#b83d38;
}

.rwa-group-open-hint {
    display:block;
    margin-top:6px;
    color:#b83d38;
    font-size:11px;
    font-weight:700;
}


/* ============================================================
   MAMO SAFETY · RWA STRUCTURE CARD GRID V1
============================================================ */

.rwa-structure-groups-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 420px)
        );
    gap: 16px;
    margin-top: 18px;
    align-items: start;
    justify-content: start;
}

.rwa-structure-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.rwa-structure-card
.technology-detail-meta {
    display: grid !important;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(120px, 1fr)
        );
    gap: 8px !important;
}

.rwa-structure-card
.rwa-circuit-card {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 760px) {
    .rwa-structure-groups-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   MAMO SAFETY · COMPONENT INSPECTION ACTIONS V1
   Einheitliche Aktionen innerhalb der Anlagenkomponenten
============================================================ */

.ops-ui .component-inspection-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.ops-ui .component-inspection-actions .component-action-button {
    min-width: 112px;
    height: 42px;
    min-height: 42px;

    padding: 0 14px;

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

    box-sizing: border-box;

    border-radius: 9px;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;
    appearance: none;
    text-decoration: none;

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


/* OK */

.ops-ui .component-inspection-actions
.component-action-ok {
    border: 1px solid #248558 !important;
    background: #248558 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.ops-ui .component-inspection-actions
.component-action-ok:hover {
    background: #1f7049 !important;
    border-color: #1f7049 !important;
}


/* Mangel */

.ops-ui .component-inspection-actions
.component-action-defect {
    border: 1px solid #e6aaa6 !important;
    background: #fff7f6 !important;
    color: #a12d29 !important;
    box-shadow: none !important;
}

.ops-ui .component-inspection-actions
.component-action-defect:hover {
    border-color: #c7342f !important;
    background: #fdebea !important;
}


/* Nicht geprüft */

.ops-ui .component-inspection-actions
.component-skip-action {
    position: relative;

    width: auto !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block;
}

.ops-ui .component-inspection-actions
.component-skip-action > summary {
    width: auto !important;
    min-width: 112px !important;
    height: 42px !important;
    min-height: 42px !important;

    margin: 0 !important;

    border: 1px solid #d5d8d8 !important;
    background: #f3f4f3 !important;
    color: #555d61 !important;

    box-shadow: none !important;

    list-style: none;
}

.ops-ui .component-inspection-actions
.component-skip-action > summary::-webkit-details-marker {
    display: none;
}

.ops-ui .component-inspection-actions
.component-skip-action > summary:hover {
    border-color: #b9bebe !important;
    background: #e9ebea !important;
}


/* Popup bleibt unter dem neutralen Button */

.ops-ui .component-inspection-actions
.component-skip-action[open] > form {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: min(340px, 80vw);

    z-index: 80;
}


/* Disabled */

.ops-ui .component-inspection-actions
.component-action-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* Mobile */

@media (max-width: 760px) {

    .ops-ui .component-inspection-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .ops-ui .component-inspection-actions
    .component-action-button,
    .ops-ui .component-inspection-actions
    .component-skip-action,
    .ops-ui .component-inspection-actions
    .component-skip-action > summary {
        width: 100% !important;
        min-width: 0 !important;
    }
}



/* ============================================================
   MAMO SAFETY · ANLAGENKOMPONENTEN IM MEASUREMENT PANEL
   Keine verschachtelte Karte – Komponenten als flache Zeilen
============================================================ */

.ops-ui
#measurement-section-components
.measurement-component-list {
    display: block;
}


/* Innere compact-card auflösen */

.ops-ui
#measurement-section-components
.measurement-component-list
> .compact-item {
    margin: 0 !important;
    padding: 16px 16px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    min-height: 72px;

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


/* Mehrere Komponenten nur durch feine Linie trennen */

.ops-ui
#measurement-section-components
.measurement-component-list
> .compact-item
+ .compact-item {
    border-top:
        1px solid
        var(--mamo-work-border) !important;
}


/* Keine zusätzliche Hover-Karte */

.ops-ui
#measurement-section-components
.measurement-component-list
> .compact-item:hover {
    background:
        rgba(248, 247, 245, .55)
        !important;

    box-shadow:
        none
        !important;
}


/* Aktionen sauber rechts */

.ops-ui
#measurement-section-components
.component-inspection-actions {
    align-self: center;
}


/* Mobile */

@media (max-width: 760px) {

    .ops-ui
    #measurement-section-components
    .measurement-component-list
    > .compact-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}



/* ============================================================
   COMPONENT ACTION FORM
   Form darf innerhalb der Aktionsleiste keine eigenen Maße erzeugen
============================================================ */

.ops-ui
.component-inspection-actions
.component-action-form {
    display: block;
    margin: 0;
    padding: 0;
    width: auto;
}

.ops-ui
.component-inspection-actions
.component-action-form
.component-action-button {
    width: auto;
}


/* Mobile */

@media (max-width: 760px) {

    .ops-ui
    .component-inspection-actions
    .component-action-form {
        width: 100%;
    }

    .ops-ui
    .component-inspection-actions
    .component-action-form
    .component-action-button {
        width: 100%;
    }
}



/* ============================================================
   MAMO SAFETY · SIGNATURE UI V2
   Klarere, ruhigere Abnahme-Darstellung
============================================================ */

.ops-ui .maintenance-signature-card {
    padding: 18px 18px 16px;
    border-radius: 14px;
}


/* ------------------------------------------------------------
   TECHNIKER-FELDER
------------------------------------------------------------ */

.ops-ui .maintenance-signature-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .85fr);
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.ops-ui .maintenance-signature-fields label {
    display: grid;
    gap: 6px;
}

.ops-ui .maintenance-signature-fields label > span {
    color: #7d8285;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ------------------------------------------------------------
   INPUT / SELECT
------------------------------------------------------------ */

.ops-ui .maintenance-signature-fields input,
.ops-ui .maintenance-signature-fields select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;

    box-sizing: border-box;

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

    color: #2c3134;
    background: #fff;

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

    outline: none;

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

.ops-ui .maintenance-signature-fields select {
    appearance: auto;
    cursor: pointer;
}

.ops-ui .maintenance-signature-fields input:focus,
.ops-ui .maintenance-signature-fields select:focus {
    border-color: #d93631;
    box-shadow: 0 0 0 3px rgba(217,54,49,.07);
}


/* readonly Funktion */

.ops-ui .maintenance-signature-fields input[readonly] {
    color: #5d6468;
    background: #f5f3f0;
}


/* ------------------------------------------------------------
   BESTÄTIGUNGSTEXT
------------------------------------------------------------ */

.ops-ui .maintenance-signature-ack {
    margin: 4px 0 12px;
    padding: 10px 12px;

    border-left: 3px solid #df3934;

    color: #5b6063;
    background: #faf9f7;

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


/* ------------------------------------------------------------
   SIGNATURFLÄCHE
------------------------------------------------------------ */

.ops-ui .maintenance-signature-pad {
    min-height: 190px;

    border: 1px dashed #cfcac4;
    border-radius: 12px;

    background: #fff;

    overflow: hidden;
}

.ops-ui .maintenance-signature-pad canvas {
    width: 100%;
    min-height: 190px;
}

.ops-ui .maintenance-signature-pad > span {
    padding: 8px 10px;

    color: #9a9da0;
    font-size: 9px;
}


/* ------------------------------------------------------------
   AKTIONEN
------------------------------------------------------------ */

.ops-ui .maintenance-signature-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 9px;

    margin-top: 10px;
}

.ops-ui .maintenance-signature-clear,
.ops-ui .maintenance-signature-save {
    min-height: 40px;

    padding: 0 14px;

    border-radius: 9px;

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

    cursor: pointer;
}

.ops-ui .maintenance-signature-clear {
    border: 1px solid #d7d3ce;

    color: #666c70;
    background: #fff;
}

.ops-ui .maintenance-signature-clear:hover {
    border-color: #bdb8b2;
    background: #f6f4f1;
}

.ops-ui .maintenance-signature-save {
    border: 1px solid #2a2f32;

    color: #fff;
    background: #2a2f32;
}

.ops-ui .maintenance-signature-save:hover {
    background: #1f2325;
}


/* ------------------------------------------------------------
   HEADER / LEAD
------------------------------------------------------------ */

.ops-ui .maintenance-signature-lead {
    margin-top: 4px;

    color: #73787b;

    font-size: 9px;
}

.ops-ui .maintenance-signature-lead strong {
    color: #2d3235;
}


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

@media (max-width: 900px) {

    .ops-ui .maintenance-signature-fields {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   MAMO SAFETY · SIGNATURE UI V2
   Klarere, ruhigere Abnahme-Darstellung
============================================================ */

.ops-ui .maintenance-signature-card {
    padding: 18px 18px 16px;
    border-radius: 14px;
}


/* ------------------------------------------------------------
   TECHNIKER-FELDER
------------------------------------------------------------ */

.ops-ui .maintenance-signature-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, .85fr);
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.ops-ui .maintenance-signature-fields label {
    display: grid;
    gap: 6px;
}

.ops-ui .maintenance-signature-fields label > span {
    color: #7d8285;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}


/* ------------------------------------------------------------
   INPUT / SELECT
------------------------------------------------------------ */

.ops-ui .maintenance-signature-fields input,
.ops-ui .maintenance-signature-fields select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;

    box-sizing: border-box;

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

    color: #2c3134;
    background: #fff;

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

    outline: none;

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

.ops-ui .maintenance-signature-fields select {
    appearance: auto;
    cursor: pointer;
}

.ops-ui .maintenance-signature-fields input:focus,
.ops-ui .maintenance-signature-fields select:focus {
    border-color: #d93631;
    box-shadow: 0 0 0 3px rgba(217,54,49,.07);
}


/* readonly Funktion */

.ops-ui .maintenance-signature-fields input[readonly] {
    color: #5d6468;
    background: #f5f3f0;
}


/* ------------------------------------------------------------
   BESTÄTIGUNGSTEXT
------------------------------------------------------------ */

.ops-ui .maintenance-signature-ack {
    margin: 4px 0 12px;
    padding: 10px 12px;

    border-left: 3px solid #df3934;

    color: #5b6063;
    background: #faf9f7;

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


/* ------------------------------------------------------------
   SIGNATURFLÄCHE
------------------------------------------------------------ */

.ops-ui .maintenance-signature-pad {
    min-height: 190px;

    border: 1px dashed #cfcac4;
    border-radius: 12px;

    background: #fff;

    overflow: hidden;
}

.ops-ui .maintenance-signature-pad canvas {
    width: 100%;
    min-height: 190px;
}

.ops-ui .maintenance-signature-pad > span {
    padding: 8px 10px;

    color: #9a9da0;
    font-size: 9px;
}


/* ------------------------------------------------------------
   AKTIONEN
------------------------------------------------------------ */

.ops-ui .maintenance-signature-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 9px;

    margin-top: 10px;
}

.ops-ui .maintenance-signature-clear,
.ops-ui .maintenance-signature-save {
    min-height: 40px;

    padding: 0 14px;

    border-radius: 9px;

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

    cursor: pointer;
}

.ops-ui .maintenance-signature-clear {
    border: 1px solid #d7d3ce;

    color: #666c70;
    background: #fff;
}

.ops-ui .maintenance-signature-clear:hover {
    border-color: #bdb8b2;
    background: #f6f4f1;
}

.ops-ui .maintenance-signature-save {
    border: 1px solid #2a2f32;

    color: #fff;
    background: #2a2f32;
}

.ops-ui .maintenance-signature-save:hover {
    background: #1f2325;
}


/* ------------------------------------------------------------
   HEADER / LEAD
------------------------------------------------------------ */

.ops-ui .maintenance-signature-lead {
    margin-top: 4px;

    color: #73787b;

    font-size: 9px;
}

.ops-ui .maintenance-signature-lead strong {
    color: #2d3235;
}


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

@media (max-width: 900px) {

    .ops-ui .maintenance-signature-fields {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   MAMO SAFETY OPERATIONS · BRAND CI 2026
   ============================================================ */

.mamo-sidebar {
    background:
        radial-gradient(
            circle at 30% -10%,
            rgba(255,255,255,.045),
            transparent 28%
        ),
        linear-gradient(
            180deg,
            #111315 0%,
            #090a0c 46%,
            #060708 100%
        ) !important;

    border-right:
        1px solid rgba(255,255,255,.055) !important;
}


.mamo-sidebar-brand {
    position:
        relative;

    padding-top:
        25px !important;

    padding-bottom:
        25px !important;

    border-bottom:
        1px solid rgba(255,255,255,.075) !important;
}


.mamo-sidebar-brand::after {
    position:
        absolute;

    right:
        18px;

    bottom:
        -1px;

    left:
        18px;

    height:
        1px;

    background:
        linear-gradient(
            90deg,
            #ff252b 0%,
            rgba(255,37,43,.20) 35%,
            transparent 85%
        );

    content:
        "";
}


.mamo-sidebar
.mamo-brand-main {
    color:
        #f6f6f4 !important;
}


.mamo-sidebar
.mamo-brand-main
* {
    color:
        inherit;
}


.mamo-sidebar
.mamo-brand-main
.mamo-safety-accent,
.mamo-sidebar
.mamo-brand-main
.mamo-wordmark-accent {
    color:
        #ff242a !important;
}


.mamo-sidebar
.mamo-brand-sub {
    margin-top:
        9px !important;

    color:
        #858b90 !important;

    font-size:
        6px !important;

    letter-spacing:
        .16em !important;
}


.mamo-sidebar
.mamo-brand-badge {
    display:
        inline-flex !important;

    align-items:
        center;

    min-height:
        25px;

    margin-top:
        16px !important;

    padding:
        0 10px !important;

    border:
        1px solid rgba(255,35,42,.52) !important;

    border-radius:
        4px !important;

    background:
        linear-gradient(
            135deg,
            #ff272d,
            #cf0008
        ) !important;

    color:
        #fff !important;

    box-shadow:
        0 8px 20px rgba(255,0,12,.15);

    font-size:
        7px !important;

    font-weight:
        900 !important;

    letter-spacing:
        .11em !important;
}


.mamo-sidebar-search form {
    border-color:
        rgba(255,255,255,.09) !important;

    background:
        rgba(255,255,255,.035) !important;
}


.mamo-sidebar-search input {
    color:
        #f3f4f4 !important;
}


.mamo-sidebar-search input::placeholder {
    color:
        #747a7e !important;
}


.mamo-nav-section {
    color:
        #666c71 !important;

    letter-spacing:
        .19em !important;
}


.mamo-nav-item {
    color:
        #d3d6d8 !important;

    border:
        1px solid transparent;
}


.mamo-nav-item:hover:not(.is-disabled) {
    background:
        rgba(255,255,255,.035) !important;

    border-color:
        rgba(255,255,255,.045);
}


.mamo-nav-item.is-active {
    border-color:
        rgba(255,39,45,.10) !important;

    background:
        linear-gradient(
            90deg,
            rgba(255,34,41,.14),
            rgba(255,34,41,.025)
        ) !important;

    box-shadow:
        inset 3px 0 0 #ff242a !important;
}


.mamo-nav-item.is-active
.mamo-nav-icon {
    color:
        #ff353b !important;
}


.mamo-sidebar-footer {
    border-top:
        1px solid rgba(255,255,255,.065) !important;
}


.mamo-live-dot {
    box-shadow:
        0 0 12px currentColor;
}



/* ============================================================
   MAMO SAFETY OPERATIONS · ORIGINAL BRAND ASSET
   ============================================================ */

.mamo-sidebar
.mamo-brand-main {
    display:
        block !important;

    width:
        100%;

    height:
        auto;

    overflow:
        hidden;

    color:
        transparent !important;

    background:
        transparent !important;
}


.mamo-sidebar-logo {
    display:
        block;

    width:
        calc(100% + 30px);

    max-width:
        none;

    margin:
        -28px -15px -22px;

    aspect-ratio:
        4 / 3;

    object-fit:
        cover;

    object-position:
        center;

    background:
        #08090a;
}


.mamo-sidebar
.mamo-brand-sub {
    margin-top:
        3px !important;

    color:
        #858b90 !important;

    font-size:
        6px !important;

    letter-spacing:
        .14em !important;
}


.mamo-sidebar
.mamo-brand-badge {
    margin-top:
        12px !important;
}


@media (max-width: 900px) {

    .mamo-sidebar-logo {
        width:
            calc(100% + 20px);

        margin:
            -22px -10px -18px;
    }
}



/* ============================================================
   MAMO SAFETY · CLEAN SIDEBAR BRANDING
   ============================================================ */

.mamo-sidebar
.mamo-brand-main {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    background: transparent !important;
}

.mamo-sidebar-logo {
    display: block !important;
    width: 100% !important;
    max-width: 210px !important;
    height: auto !important;
    margin: 0 auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: transparent !important;
}

.mamo-sidebar-brand {
    padding-top: 26px !important;
    padding-bottom: 22px !important;
}

.mamo-sidebar
.mamo-brand-sub {
    margin-top: 12px !important;
    text-align: center !important;
    color: #7e8489 !important;
}

.mamo-sidebar
.mamo-brand-badge {
    display: table !important;
    margin: 14px auto 0 !important;
}



/* ============================================================
   MAMO SAFETY · MOBILE APPLICATION NAVIGATION V1
   ============================================================ */

.mamo-mobile-sidebar-toggle,
.mamo-mobile-sidebar-overlay {
    display: none;
}


@media (max-width: 900px) {

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }


    /*
     * Hauptinhalt auf voller Bildschirmbreite.
     */

    .mamo-app,
    .mamo-app-main {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }


    /*
     * Desktop-Sidebar wird zum Off-Canvas-Menü.
     */

    .mamo-sidebar {
        position: fixed !important;
        z-index: 10020 !important;

        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: min(86vw, 320px) !important;
        max-width: 320px !important;
        height: 100dvh !important;

        overflow-y: auto !important;
        overscroll-behavior: contain;

        transform:
            translate3d(-105%, 0, 0) !important;

        transition:
            transform .22s ease !important;

        box-shadow:
            18px 0 55px rgba(0,0,0,.30);
    }


    body.mamo-mobile-nav-open
    .mamo-sidebar {
        transform:
            translate3d(0, 0, 0) !important;
    }


    /*
     * Hamburger.
     */

    .mamo-mobile-sidebar-toggle {
        position: fixed;
        z-index: 10040;

        top:
            max(
                12px,
                env(safe-area-inset-top)
            );

        left:
            max(
                12px,
                env(safe-area-inset-left)
            );

        display: flex;

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

        width: 46px;
        height: 46px;

        gap: 5px;

        padding: 0;

        border:
            1px solid rgba(255,255,255,.11);

        border-radius: 10px;

        background:
            rgba(15,17,19,.96);

        box-shadow:
            0 8px 28px rgba(0,0,0,.24);

        cursor: pointer;
    }


    .mamo-mobile-sidebar-toggle span {
        display: block;

        width: 20px;
        height: 2px;

        border-radius: 999px;

        background: #fff;

        transition:
            transform .18s ease,
            opacity .18s ease;
    }


    body.mamo-mobile-nav-open
    .mamo-mobile-sidebar-toggle
    span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }


    body.mamo-mobile-nav-open
    .mamo-mobile-sidebar-toggle
    span:nth-child(2) {
        opacity: 0;
    }


    body.mamo-mobile-nav-open
    .mamo-mobile-sidebar-toggle
    span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    /*
     * Overlay.
     */

    .mamo-mobile-sidebar-overlay {
        position: fixed;
        z-index: 10010;

        inset: 0;

        display: block;

        visibility: hidden;
        opacity: 0;

        background:
            rgba(0,0,0,.55);

        backdrop-filter:
            blur(2px);

        transition:
            opacity .2s ease,
            visibility .2s ease;
    }


    body.mamo-mobile-nav-open
    .mamo-mobile-sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }


    body.mamo-mobile-nav-open {
        overflow: hidden;
    }


    /*
     * Platz für Hamburger im Seitenkopf.
     */

    .mamo-topbar {
        padding-left: 70px !important;
    }


    .run-shell {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

}


@media (max-width: 520px) {

    .mamo-mobile-sidebar-toggle {
        width: 42px;
        height: 42px;
    }


    .mamo-topbar {
        padding-left: 62px !important;
    }

}


/* ============================================================
   MAMO SAFETY · COMPONENT SKIP / MISSING UX V1
   ============================================================ */

.component-action-missing {
    border: 1px solid #d8d9d7;
    background: #f5f5f3;
    color: #555b5f;
}


/*
 * Das Formular für "Nicht geprüft" bleibt innerhalb
 * der Komponentenzeile und kann nicht mehr aus dem
 * sichtbaren Bereich herausfallen.
 */

.component-skip-action > form,
.component-skip-inline-form {
    position: static !important;

    width: 100% !important;
    max-width: none !important;

    margin-top: 8px !important;

    box-shadow:
        0 8px 24px rgba(24,27,29,.10) !important;
}


.component-skip-action[open] {
    flex-basis: 100%;
    width: 100%;
}


@media (max-width: 760px) {

    .component-inspection-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .component-inspection-actions
    .component-action-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .component-skip-action {
        grid-column: 1 / -1;
        width: 100%;
    }

}


/* ============================================================
   MAMO SAFETY · DETECTOR STATUS FILTER V1
   ============================================================ */

.detector-workspace-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin:
        0
        0
        16px;
}


.detector-workspace-statuses
.run-status {
    display: inline-flex;

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

    min-height: 38px;

    padding:
        0
        15px;

    border:
        1px solid #dddcd8;

    border-radius:
        999px;

    background:
        #fff;

    color:
        #5b6164;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;
}


.detector-workspace-statuses
.run-status:hover {
    border-color:
        #bfc2c1;

    background:
        #f6f5f3;
}


.detector-workspace-statuses
.run-status.active {
    border-color:
        #24292c;

    background:
        #24292c;

    color:
        #fff;
}


@media (max-width: 700px) {

    .detector-workspace-statuses {
        display: grid;

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


    .detector-workspace-statuses
    .run-status {
        width: 100%;
    }

}


/* ============================================================
   MAMO SAFETY · DETECTOR WORKSPACE STATUS FILTER V2
   ============================================================ */

.detector-workspace-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin:
        12px
        0
        16px;
}


.detector-workspace-status {
    display: inline-flex;

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

    min-height: 38px;

    padding:
        0
        16px;

    border:
        1px solid #dddcd8;

    border-radius:
        999px;

    background:
        #fff;

    color:
        #62676a;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;

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


.detector-workspace-status:hover {
    border-color:
        #bfc2c1;

    background:
        #f5f4f2;
}


.detector-workspace-status.active {
    border-color:
        #252a2e;

    background:
        #252a2e;

    color:
        #fff;
}


@media (max-width: 700px) {

    .detector-workspace-statuses {
        display: grid;

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

        width: 100%;
    }


    .detector-workspace-status {
        width: 100%;
    }

}


/* ============================================================
   MAMO SAFETY · MELDER STATUSFILTER V1
   ============================================================ */

.mamo-detector-status-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    margin:
        12px
        0
        16px;
}


.mamo-detector-status-filter-link {
    display: inline-flex;

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

    min-width: 88px;
    min-height: 38px;

    padding:
        0
        16px;

    border:
        1px solid #dddcd8;

    border-radius:
        999px;

    background:
        #ffffff;

    color:
        #5e6467;

    font-size:
        10px;

    font-weight:
        850;

    text-decoration:
        none;

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


.mamo-detector-status-filter-link:hover {
    border-color:
        #bfc2c1;

    background:
        #f5f4f2;

    transform:
        translateY(-1px);
}


.mamo-detector-status-filter-link.active {
    border-color:
        #252a2e;

    background:
        #252a2e;

    color:
        #ffffff;
}


/* Geprüft etwas klarer erkennbar */

.mamo-detector-status-filter-link[href*="status=done"].active {
    border-color:
        #267051;

    background:
        #267051;

    color:
        #ffffff;
}


/* Mängel */

.mamo-detector-status-filter-link[href*="status=defect"].active {
    border-color:
        #a12d29;

    background:
        #a12d29;

    color:
        #ffffff;
}


@media (max-width: 700px) {

    .mamo-detector-status-filter {
        display: grid;

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

        width: 100%;

        gap: 7px;
    }


    .mamo-detector-status-filter-link {
        width: 100%;
        min-width: 0;
        min-height: 42px;
    }

}

/* ============================================================
   MAMO BMA · LIFECYCLE COMPACT V1
   Objektakte -> BMA -> Fristen & Austausch
============================================================ */

.lifecycle-hub-grid.is-bma-compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lifecycle-hub-grid.is-bma-compact .lifecycle-hub-tile {
    min-height: 0;
    padding: 18px 18px 16px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
}

.lifecycle-hub-grid.is-bma-compact .lifecycle-hub-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
}

.lifecycle-hub-grid.is-bma-compact h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
}

.lifecycle-hub-grid.is-bma-compact p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
}

.lifecycle-hub-grid.is-bma-compact .lifecycle-hub-number {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    font-size: 24px;
    line-height: 1;
    text-align: right;
}

.lifecycle-hub-grid.is-bma-compact > .lifecycle-hub-tile > small {
    grid-column: 3;
    grid-row: 2;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.lifecycle-hub-grid.is-bma-compact .lifecycle-no-date {
    grid-column: 2;
    grid-row: 3;
    margin-top: 6px;
}

.lifecycle-hub-grid.is-bma-compact .lifecycle-hub-action {
    grid-column: 3;
    grid-row: 3;
    margin-top: 6px;
    text-align: right;
    white-space: nowrap;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .lifecycle-hub-grid.is-bma-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .lifecycle-hub-grid.is-bma-compact {
        grid-template-columns: 1fr;
    }

    .lifecycle-hub-grid.is-bma-compact .lifecycle-hub-tile {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .lifecycle-hub-grid.is-bma-compact .lifecycle-hub-number,
    .lifecycle-hub-grid.is-bma-compact > .lifecycle-hub-tile > small,
    .lifecycle-hub-grid.is-bma-compact .lifecycle-hub-action {
        grid-column: 2;
        text-align: left;
    }
}

/* ============================================================
   MAMO BMA · FRISTEN & AUSTAUSCH · KPI V2
============================================================ */

.bma-lifecycle-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.bma-lifecycle-kpi {
    position: relative;
    min-height: 86px;
    padding: 14px 16px;
    border: 1px solid #dedbd7;
    border-top: 3px solid #2b3135;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;

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

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

.bma-lifecycle-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(24, 30, 34, .08);
}

.bma-lifecycle-kpi > span {
    display: block;
    margin-bottom: 6px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7b8188;
}

.bma-lifecycle-kpi > strong {
    display: block;

    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    color: #2b3135;
}

.bma-lifecycle-kpi > small {
    display: block;
    margin-top: 7px;

    font-size: 9px;
    line-height: 1.25;
    color: #979b9e;
    text-transform: uppercase;
}

.bma-lifecycle-kpi.state-danger {
    border-top-color: #e8443d;
}

.bma-lifecycle-kpi.state-warning {
    border-top-color: #d99a16;
}

.bma-lifecycle-kpi.state-good {
    border-top-color: #34a66f;
}

@media (max-width: 1250px) {
    .bma-lifecycle-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .bma-lifecycle-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .bma-lifecycle-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN · KPI V1
============================================================ */

.bma-points-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bma-points-kpi {
    min-height: 86px;
    padding: 14px 16px;

    border: 1px solid #dedbd7;
    border-top: 3px solid #2b3135;
    border-radius: 10px;

    background: #fff;
    color: inherit;
    text-decoration: none;

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

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

.bma-points-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(24, 30, 34, .08);
}

.bma-points-kpi > span {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #7b8188;
}

.bma-points-kpi > strong {
    margin-top: 8px;

    font-size: 25px;
    font-weight: 800;
    line-height: 1;

    color: #2b3135;
}

.bma-points-kpi > small {
    margin-top: 7px;

    font-size: 9px;
    line-height: 1.2;
    text-transform: uppercase;

    color: #979b9e;
}

@media (max-width: 720px) {
    .bma-points-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MAMO BMA · POINTS HUB · ONE SCREEN FINAL
============================================================ */

.object-area .bma-points-kpi-grid {
    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.object-area .bma-points-kpi {
    min-width: 0;
    min-height: 86px;
}

@media (max-width: 1250px) {
    .object-area .bma-points-kpi-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    .object-area .bma-points-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .object-area .bma-points-kpi-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   MAMO BMA · POINT CARD DELETE V1
============================================================ */

.bma-point-card-shell {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bma-point-card-shell .technology-system-card {
    width: 100%;
    height: 100%;
}

.bma-point-remove-form {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.bma-point-remove {
    border: 0;
    border-radius: 9px;
    padding: 7px 11px;

    background: #fff0f0;
    color: #d93636;

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

    cursor: pointer;
}

.bma-point-remove:hover {
    background: #ffe3e3;
}

/* ============================================================
   MAMO BMA · POINT REMOVE INSIDE CARD V2
============================================================ */

.bma-point-card-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(40, 45, 48, .10);

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

.bma-point-card-actions form {
    margin: 0;
}

.bma-point-card-actions .bma-point-remove {
    border: 0;
    border-radius: 9px;
    padding: 7px 11px;

    background: #fff0f0;
    color: #d93636;

    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.bma-point-card-actions .bma-point-remove:hover {
    background: #ffe3e3;
}

/* ============================================================
   MAMO BMA · MELDERGRUPPEN · COMPACT V1
============================================================ */

.bma-groups-work-head {
    margin-top: 28px;
    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bma-groups-work-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bma-groups-result-count {
    font-size: 12px;
    font-weight: 700;
    color: #7b8188;
}


/* Filter */

.bma-groups-filter {
    margin-bottom: 18px;
    padding: 14px;

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

    background: #fff;

    display: grid;
    grid-template-columns:
        minmax(260px, 2fr)
        minmax(145px, .8fr)
        minmax(145px, .8fr)
        minmax(155px, .9fr)
        auto;

    gap: 10px;
    align-items: end;
}

.bma-groups-filter label {
    display: block;
    margin-bottom: 5px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;

    color: #7b8188;
}

.bma-groups-filter input,
.bma-groups-filter select {
    width: 100%;
    min-height: 40px;

    padding: 8px 10px;

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

    background: #fff;

    font: inherit;
    font-size: 12px;
}

.bma-groups-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.bma-groups-filter-actions > a {
    font-size: 11px;
    font-weight: 700;
    color: #767b80;
    text-decoration: none;
}


/* Compact Grid */

.bma-groups-compact-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}

.bma-group-compact-card {
    min-width: 0;
    min-height: 142px;

    padding: 14px 15px;

    border: 1px solid #dedbd7;
    border-top: 3px solid #e8443d;
    border-radius: 10px;

    background: #fff;

    color: inherit;
    text-decoration: none;

    display: flex;
    flex-direction: column;

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

.bma-group-compact-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(24, 30, 34, .08);
}


/* Kopf */

.bma-group-compact-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.bma-group-compact-top > div {
    min-width: 0;
}

.bma-group-compact-top strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    line-height: 1.25;
    color: #292f33;
}

.bma-group-compact-top > div > span {
    display: block;
    margin-top: 3px;

    font-size: 10px;
    font-weight: 700;
    color: #969b9f;
}

.bma-group-trade {
    flex: 0 0 auto;

    height: 20px;
    padding: 0 8px;

    border-radius: 999px;

    background: #fff0f0;
    color: #cf4039;

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

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


/* Standort */

.bma-group-compact-location {
    margin-top: 12px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bma-group-compact-location > span {
    padding: 5px 7px;

    border-radius: 7px;
    background: #f3f2f0;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;

    color: #545a5e;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Footer */

.bma-group-compact-footer {
    margin-top: auto;
    padding-top: 12px;

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

    font-size: 10px;
    color: #777d81;
}

.bma-group-compact-footer strong {
    color: #292f33;
}

.bma-group-compact-footer b {
    margin-left: auto;

    font-size: 10px;
    color: #292f33;
}


/* Responsive */

@media (max-width: 1350px) {

    .bma-groups-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .bma-groups-filter {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bma-groups-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {

    .bma-groups-work-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .bma-groups-filter-search {
        grid-column: auto;
    }

    .bma-groups-compact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {

    .bma-groups-compact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MAMO BMA · MELDERGRUPPEN · COMPACT CI V2
============================================================ */


/* ------------------------------------------------------------
   Arbeitsbereich
------------------------------------------------------------ */

.bma-groups-work-head {
    margin-top: 26px;
    margin-bottom: 10px;
}

.bma-groups-work-actions {
    gap: 10px;
}

.bma-groups-result-count {
    font-size: 11px;
    font-weight: 700;
    color: #878c90;
}


/* Meldergruppe hinzufügen = kompakter CI-Button */

.bma-groups-work-actions .object-data-save {
    min-height: 34px !important;
    height: 34px !important;

    padding: 0 13px !important;

    border-radius: 9px !important;

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

    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    width: auto !important;
}


/* ------------------------------------------------------------
   Filter · deutlich ruhiger
------------------------------------------------------------ */

.bma-groups-filter {
    margin-bottom: 14px;
    padding: 10px 12px;

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

    background: #fbfbfa;

    grid-template-columns:
        minmax(260px, 2.2fr)
        minmax(120px, .8fr)
        minmax(120px, .8fr)
        minmax(140px, .9fr)
        auto;

    gap: 8px;
}


.bma-groups-filter label {
    margin-bottom: 4px;

    font-size: 8px;
    letter-spacing: .06em;

    color: #858a8e;
}


.bma-groups-filter input,
.bma-groups-filter select {
    min-height: 34px;
    height: 34px;

    padding: 6px 9px;

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

    background: #fff;

    font-size: 11px;
}


.bma-groups-filter input:focus,
.bma-groups-filter select:focus {
    outline: none;
    border-color: #aaa6a1;
}


/* Aktionen im Filter */

.bma-groups-filter-actions {
    gap: 9px;
}


.bma-groups-filter-actions > a {
    padding: 0 3px;

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

    color: #888d91;
}


.bma-groups-filter-actions .object-data-save {
    min-height: 34px !important;
    height: 34px !important;

    padding: 0 13px !important;

    width: auto !important;

    border-radius: 8px !important;

    font-size: 10px !important;
}


/* ------------------------------------------------------------
   Karten · schmal wie unser KPI-CI
------------------------------------------------------------ */

.bma-groups-compact-grid {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}


.bma-group-compact-card {
    min-height: 104px;

    padding: 11px 12px;

    border-radius: 9px;

    border-top-width: 3px;
}


/* ------------------------------------------------------------
   Karten-Kopf
------------------------------------------------------------ */

.bma-group-compact-top {
    gap: 8px;
}


.bma-group-compact-top strong {
    font-size: 12px;
    line-height: 1.2;
}


.bma-group-compact-top > div > span {
    margin-top: 2px;

    font-size: 8px;
}


.bma-group-trade {
    height: 17px;
    padding: 0 6px;

    font-size: 7px;
}


/* ------------------------------------------------------------
   Standort · kleine CI-Chips
------------------------------------------------------------ */

.bma-group-compact-location {
    margin-top: 8px;
    gap: 4px;
}


.bma-group-compact-location > span {
    padding: 4px 6px;

    border-radius: 6px;

    font-size: 8px;
}


/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */

.bma-group-compact-footer {
    margin-top: auto;
    padding-top: 9px;

    gap: 8px;

    font-size: 9px;
}


/*
 * Die komplette Karte ist klickbar.
 * Deshalb brauchen wir kein zusätzliches "Öffnen →".
 */
.bma-group-compact-footer > b {
    display: none;
}


/* ------------------------------------------------------------
   Hover bewusst dezent
------------------------------------------------------------ */

.bma-group-compact-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(24, 30, 34, .06);
}


/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 1450px) {

    .bma-groups-compact-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}


@media (max-width: 1180px) {

    .bma-groups-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .bma-groups-filter {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bma-groups-filter-search {
        grid-column: 1 / -1;
    }
}


@media (max-width: 760px) {

    .bma-groups-compact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .bma-groups-filter-search {
        grid-column: auto;
    }
}


@media (max-width: 520px) {

    .bma-groups-compact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MAMO BMA · MELDERGRUPPEN · 5 COLUMN FINAL
============================================================ */

.object-area .bma-groups-compact-grid {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 9px !important;
}

.object-area .bma-group-compact-card {
    min-width: 0 !important;
    min-height: 100px !important;
    padding: 10px 11px !important;
}

@media (max-width: 1350px) {
    .object-area .bma-groups-compact-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1050px) {
    .object-area .bma-groups-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .object-area .bma-groups-compact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .object-area .bma-groups-compact-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · MELDERGRUPPE REMOVE V1
============================================================ */

.bma-group-card-shell {
    position: relative;
    min-width: 0;
}

.bma-group-card-shell .bma-group-compact-card {
    width: 100%;
    height: 100%;
}


/* Platz unten nur bei vorhandener Aktion */

.bma-group-card-shell:has(.bma-group-remove-form)
.bma-group-compact-card {
    padding-bottom: 38px !important;
}


.bma-group-remove-form {
    position: absolute;

    right: 10px;
    bottom: 9px;

    margin: 0;

    z-index: 3;
}


.bma-group-remove {
    border: 0;
    border-radius: 8px;

    padding: 6px 9px;

    background: #fff0f0;
    color: #d93636;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;
}


.bma-group-remove:hover {
    background: #ffe3e3;
}

/* ============================================================
   MAMO BMA · MELDERGRUPPE REMOVE · FIXED SLOT V2
============================================================ */

.bma-group-card-shell {
    position: relative;
    min-width: 0;
}

/*
 * Jede Karte reserviert denselben Platz.
 * Dadurch verschiebt sich im Raster nichts.
 */
.bma-group-card-shell .bma-group-compact-card {
    width: 100%;
    height: 100%;
    padding-bottom: 37px !important;
}


/* feste Position rechts unten */

.bma-group-remove-slot {
    position: absolute;

    right: 9px;
    bottom: 8px;

    z-index: 4;

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


.bma-group-remove-form {
    margin: 0;
}


/* aktiv */

.bma-group-remove {
    min-height: 25px;

    padding: 6px 9px;

    border: 0;
    border-radius: 8px;

    background: #fff0f0;
    color: #d93636;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

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

    cursor: pointer;
}


button.bma-group-remove:hover {
    background: #ffe3e3;
}


/* deaktiviert */

.bma-group-remove.is-disabled {
    background: #f1f1f0;
    color: #afb2b4;

    cursor: not-allowed;
    user-select: none;
}

/* ============================================================
   MAMO BMA · MELDERGRUPPEN · ACTION LINE FIX V1
============================================================ */

.object-area .bma-groups-compact-grid {
    align-items: stretch !important;
}

.object-area .bma-group-card-shell {
    position: relative;
    height: 100% !important;
    min-height: 118px;
}

.object-area .bma-group-card-shell .bma-group-compact-card {
    height: 100% !important;
    min-height: 118px !important;

    /* identischer reservierter Aktionsbereich */
    padding-bottom: 38px !important;
}

.object-area .bma-group-remove-slot {
    position: absolute !important;

    right: 9px !important;
    bottom: 8px !important;

    height: 25px;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.object-area .bma-group-remove,
.object-area .bma-group-remove.is-disabled {
    height: 25px;
    min-height: 25px;

    padding: 0 9px !important;

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

    line-height: 1 !important;
}

/* ============================================================
   MAMO BMA · MELDERGRUPPEN · ACTION LINE FINAL V2
============================================================ */

/*
 * Wichtig:
 * Das Formular darf NICHT mehr selbst absolut positioniert sein.
 * Die Positionierung übernimmt ausschließlich der feste Action-Slot.
 */
.object-area
.bma-group-remove-slot
.bma-group-remove-form {
    position: static !important;

    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;

    margin: 0 !important;

    width: auto !important;
    height: 25px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Ein gemeinsamer fixer Slot für rot UND grau */

.object-area .bma-group-remove-slot {
    position: absolute !important;

    right: 9px !important;
    bottom: 8px !important;

    width: auto;
    height: 25px !important;

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

    margin: 0 !important;
    padding: 0 !important;
}


/* Rot und Grau exakt dieselbe Geometrie */

.object-area .bma-group-remove,
.object-area .bma-group-remove.is-disabled {
    box-sizing: border-box !important;

    height: 25px !important;
    min-height: 25px !important;

    margin: 0 !important;
    padding: 0 9px !important;

    border-radius: 8px !important;

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

    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 25px !important;

    vertical-align: top !important;
}


/* Jede Karte reserviert identisch Platz */

.object-area
.bma-group-card-shell
.bma-group-compact-card {
    min-height: 118px !important;
    height: 118px !important;

    padding-bottom: 39px !important;
}

/* ============================================================
   MAMO BMA · MELDERBESTAND · OBJEKTAKTE V1
   Ausschließlich Objektakte – Wartung nicht betroffen
============================================================ */

.bma-detectors-work-head {
    margin-top: 26px;
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bma-detectors-work-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bma-detectors-result-count {
    font-size: 11px;
    font-weight: 700;
    color: #878c90;
}

.bma-detectors-work-actions .object-data-save {
    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;

    padding: 0 13px !important;

    border-radius: 9px !important;

    font-size: 10px !important;
}


/* ------------------------------------------------------------
   Filter
------------------------------------------------------------ */

.bma-detectors-filter {
    margin-bottom: 14px;
    padding: 10px 12px;

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

    background: #fbfbfa;

    display: grid;

    grid-template-columns:
        minmax(250px, 2.2fr)
        minmax(170px, 1fr)
        minmax(120px, .8fr)
        minmax(150px, .9fr)
        auto;

    gap: 8px;
    align-items: end;
}

.bma-detectors-filter label {
    display: block;
    margin-bottom: 4px;

    font-size: 8px;
    font-weight: 800;

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

    color: #858a8e;
}

.bma-detectors-filter input,
.bma-detectors-filter select {
    width: 100%;

    min-height: 34px;
    height: 34px;

    padding: 6px 9px;

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

    background: #fff;

    font-size: 11px;
}

.bma-detectors-filter-actions {
    display: flex;
    align-items: center;
    gap: 9px;

    white-space: nowrap;
}

.bma-detectors-filter-actions > a {
    font-size: 10px;
    font-weight: 700;

    color: #888d91;
    text-decoration: none;
}

.bma-detectors-filter-actions .object-data-save {
    width: auto !important;

    min-height: 34px !important;
    height: 34px !important;

    padding: 0 13px !important;

    font-size: 10px !important;
}


/* ------------------------------------------------------------
   Karten
   Andere Farbe als Meldergruppen:
   Anthrazit/Blau statt Rot
------------------------------------------------------------ */

.bma-detectors-compact-grid {
    display: grid;

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

    gap: 9px;
}

.bma-detector-compact-card {
    min-width: 0;
    min-height: 108px;

    padding: 11px 12px;

    border: 1px solid #dedbd7;
    border-top: 3px solid #354b5c;
    border-radius: 9px;

    background: #fff;

    color: inherit;
    text-decoration: none;

    display: flex;
    flex-direction: column;

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

.bma-detector-compact-card:hover {
    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(24, 30, 34, .06);
}


/* Kopf */

.bma-detector-compact-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.bma-detector-compact-top > div {
    min-width: 0;
}

.bma-detector-compact-top strong {
    display: block;

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

    color: #292f33;
}

.bma-detector-compact-top > div > span {
    display: block;
    margin-top: 3px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

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

    color: #7c8286;
}

.bma-detector-trade {
    flex: 0 0 auto;

    height: 18px;
    padding: 0 7px;

    border-radius: 999px;

    background: #edf2f5;
    color: #354b5c;

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

    font-size: 7px;
    font-weight: 850;
}


/* Standortchips */

.bma-detector-compact-location {
    margin-top: 9px;

    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bma-detector-compact-location > span {
    max-width: 100%;

    padding: 4px 6px;

    border-radius: 6px;

    background: #f3f2f0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

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

    color: #545a5e;
}

.bma-detector-compact-location > span.is-warning {
    background: #fff5d9;
    color: #9b7217;
}


/* Native Adresse */

.bma-detector-compact-address {
    margin-top: auto;
    padding-top: 9px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

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

    color: #92979a;
}


/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */

@media (max-width: 1450px) {

    .bma-detectors-compact-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {

    .bma-detectors-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .bma-detectors-filter {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .bma-detectors-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {

    .bma-detectors-compact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .bma-detectors-filter-search {
        grid-column: auto;
    }
}

@media (max-width: 520px) {

    .bma-detectors-compact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MAMO BMA · MELDERKARTE · NUMMER + CODE V1
============================================================ */

.bma-detector-compact-top {
    display: block;
}

.bma-detector-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bma-detector-number-row > strong {
    font-size: 14px;
    font-weight: 850;
    line-height: 1.1;
    color: #292f33;
}

.bma-detector-code {
    flex: 0 0 auto;

    padding: 3px 7px;
    border-radius: 999px;

    background: #edf2f5;
    color: #354b5c;

    font-size: 8px;
    font-weight: 850;
    line-height: 1;
}

.bma-detector-description {
    display: block;
    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 9px;
    font-weight: 700;
    color: #7c8286;
}

/* alten MELDER-Badge aus dieser Ansicht nicht mehr verwenden */
.bma-detector-trade {
    display: none !important;
}

/* ============================================================
   MAMO BMA · MELDERKARTE · SHORTCODE RECHTS FINAL
============================================================ */

.bma-detector-number-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;

    width: 100% !important;
}

.bma-detector-number-row > strong {
    flex: 1 1 auto;

    font-size: 14px;
    font-weight: 850;
    line-height: 1.1;

    color: #292f33;
}

.bma-detector-code {
    flex: 0 0 auto;

    margin-left: auto;

    padding: 4px 7px;

    border-radius: 999px;

    background: #edf2f5;
    color: #354b5c;

    font-size: 8px;
    font-weight: 850;
    line-height: 1;
}

.bma-detector-description {
    display: block;

    margin-top: 4px;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;

    color: #7c8286;
}

/* ============================================================
   MAMO BMA · MELDER · ADD BUTTON FINAL
============================================================ */

.bma-detectors-work-actions .object-data-save {
    width: auto !important;

    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;

    padding: 0 12px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

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

    white-space: nowrap !important;
}


/* Zähler + Button sauber auf Linie */

.bma-detectors-work-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 10px !important;
}


/* Arbeitsbereich oben ruhig halten */

.bma-detectors-work-head {
    min-height: 34px;

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

/* ============================================================
   MAMO BMA · MELDER · REMOVE V1
============================================================ */

.bma-detector-card-shell {
    position: relative;
    min-width: 0;
    height: 100%;
}

.bma-detector-card-shell
.bma-detector-compact-card {
    width: 100%;
    height: 100%;

    padding-bottom: 38px !important;
}


/* Entfernen rechts unten */

.bma-detector-remove-form {
    position: absolute;

    right: 9px;
    bottom: 8px;

    margin: 0;

    z-index: 4;
}

.bma-detector-remove {
    height: 25px;
    min-height: 25px;

    padding: 0 9px;

    border: 0;
    border-radius: 8px;

    background: #fff0f0;
    color: #d93636;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

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

    cursor: pointer;
}

.bma-detector-remove:hover {
    background: #ffe3e3;
}

/* ============================================================
   MAMO BMA · MELDER · REMOVE DISABLED
============================================================ */

.bma-detector-remove.is-disabled,
.bma-detector-remove:disabled {
    background: #f1f1f1 !important;
    color: #a7a7a7 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* ============================================================
   MAMO BMA · COMPACT TECHNICAL CARD STANDARD V1
   Referenz: Energieversorgung
============================================================ */


/* ------------------------------------------------------------
   SUMMARY / STATUS
------------------------------------------------------------ */

.bma-tech-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;

    margin: 0 0 18px;
}

.bma-tech-summary-card {
    position: relative;
    overflow: hidden;

    min-height: 82px;
    padding: 12px 14px;

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

    background: #fff;
}

.bma-tech-summary-card::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background: #747b83;
}

.bma-tech-summary-card.is-blue::before {
    background: #3f7fd6;
}

.bma-tech-summary-card.is-green::before {
    background: #39a56a;
}

.bma-tech-summary-card.is-amber::before {
    background: #d59a29;
}

.bma-tech-summary-card.is-slate::before {
    background: #687582;
}

.bma-tech-summary-card small {
    display: block;

    margin-bottom: 3px;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    color: #8a9096;
}

.bma-tech-summary-card strong {
    display: block;

    font-size: 23px;
    line-height: 1.05;
    font-weight: 850;
    color: #23272b;
}

.bma-tech-summary-card span {
    display: block;

    margin-top: 4px;

    font-size: 10px;
    line-height: 1.2;
    color: #7b8188;
}


/* ------------------------------------------------------------
   ACTIONS
------------------------------------------------------------ */

.bma-tech-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;

    gap: 8px !important;

    margin: 0 0 14px !important;
}

.bma-tech-actions .object-data-save {
    width: auto !important;

    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;

    padding: 0 11px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 800 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* ------------------------------------------------------------
   GRID
------------------------------------------------------------ */

.bma-technical-compact-grid {
    display: grid !important;
    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;

    gap: 11px !important;
}


/* ------------------------------------------------------------
   CARD
------------------------------------------------------------ */

.bma-technical-compact-card {
    position: relative;

    min-width: 0;
    min-height: 0 !important;

    padding: 13px 13px 42px !important;

    border-radius: 12px !important;

    box-shadow:
        0 1px 2px rgba(0,0,0,.025) !important;
}

.bma-power-card {
    border-top:
        3px solid #3f7fd6 !important;
}


/* Kopf erheblich kompakter */

.bma-technical-compact-card
.technology-system-top {
    margin-bottom: 7px !important;
}

.bma-technical-compact-card
.technology-system-icon {
    width: 25px !important;
    height: 25px !important;

    font-size: 12px !important;
}

.bma-technical-compact-card
.technology-system-type {
    padding: 4px 7px !important;

    border-radius: 7px !important;

    font-size: 9px !important;
}


/* Titel / Kennung */

.bma-technical-compact-card h3 {
    min-height: 0 !important;

    margin: 0 0 3px !important;

    font-size: 13px !important;
    line-height: 1.25 !important;
}

.bma-technical-compact-card
.technology-system-number {
    margin: 0 0 9px !important;

    font-size: 10px !important;
}


/* Daten nicht mehr als riesige Blöcke */

.bma-technical-compact-card
.technology-system-data {
    display: grid !important;

    gap: 4px !important;

    margin: 0 !important;
}

.bma-technical-compact-card
.technology-system-data > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 8px !important;

    padding: 4px 0 !important;

    border: 0 !important;
    border-bottom: 1px solid #f0f1f2 !important;
}

.bma-technical-compact-card
.technology-system-data span {
    font-size: 9px !important;
}

.bma-technical-compact-card
.technology-system-data strong {
    max-width: 62%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 9px !important;
    text-align: right;
}


/* Statistik-Chips */

.bma-technical-compact-card
.technology-system-stats {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 5px !important;

    margin-top: 8px !important;
}

.bma-technical-compact-card
.technology-system-stats > span {
    padding: 4px 7px !important;

    border-radius: 7px !important;

    font-size: 8px !important;
}


/* ------------------------------------------------------------
   AKKUS ALS SCHMALE UNTERZEILEN
------------------------------------------------------------ */

.bma-power-card .power-child-list {
    display: grid !important;

    gap: 5px !important;

    margin-top: 9px !important;
}

.bma-power-card .power-child-card {
    min-height: 0 !important;

    padding: 6px 7px !important;

    border-radius: 8px !important;

    background: #f8fafb !important;
}

.bma-power-card .power-child-icon {
    font-size: 10px !important;
}

.bma-power-card .power-child-main strong {
    font-size: 9px !important;
}

.bma-power-card .power-child-main small {
    font-size: 8px !important;
}

.bma-power-card .power-child-type {
    font-size: 8px !important;
}


/* ------------------------------------------------------------
   ENTFERNEN · FEST RECHTS UNTEN
------------------------------------------------------------ */

.bma-tech-card-remove-slot {
    position: absolute;

    right: 9px;
    bottom: 8px;

    z-index: 10;
}

.bma-tech-card-remove-slot form {
    margin: 0;
}

.bma-tech-remove {
    height: 25px;
    min-height: 25px;

    padding: 0 9px;

    border: 0;
    border-radius: 8px;

    background: #fff0f0;
    color: #d93636;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

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

    cursor: pointer;
}

.bma-tech-remove:hover {
    background: #ffe3e3;
}

.bma-tech-remove.is-disabled,
.bma-tech-remove:disabled {
    background: #f1f1f1 !important;
    color: #a5a9ad !important;

    cursor: not-allowed !important;
}


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

@media (max-width: 1450px) {

    .bma-technical-compact-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1150px) {

    .bma-technical-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

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

@media (max-width: 760px) {

    .bma-technical-compact-grid,
    .bma-tech-summary {
        grid-template-columns:
            1fr !important;
    }

    .bma-tech-actions {
        flex-wrap: wrap;
    }
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG · POLISH V2
============================================================ */


/* ------------------------------------------------------------
   GRID
   Nicht mehr 5 schmale Karten erzwingen.
   Karten dürfen den vorhandenen Raum sinnvoll nutzen.
------------------------------------------------------------ */

.bma-power-grid {
    grid-template-columns:
        repeat(auto-fit, minmax(285px, 1fr)) !important;

    gap: 14px !important;
}


/* ------------------------------------------------------------
   NETZTEILKARTE
------------------------------------------------------------ */

.bma-power-card {
    min-height: 0 !important;

    padding:
        13px
        13px
        40px !important;

    border-radius: 13px !important;

    align-self: start !important;
}


/* Kopf etwas ruhiger */

.bma-power-card
.technology-system-top {
    margin-bottom: 8px !important;
}

.bma-power-card
.technology-system-icon {
    width: 28px !important;
    height: 28px !important;

    border-radius: 9px !important;
}


/* Titel */

.bma-power-card h3 {
    margin-bottom: 2px !important;

    font-size: 14px !important;
    line-height: 1.18 !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bma-power-card
.technology-system-number {
    margin-bottom: 9px !important;

    font-size: 9px !important;
    color: #92979c !important;
}


/* ------------------------------------------------------------
   TECHNISCHE DATEN
------------------------------------------------------------ */

.bma-power-card
.technology-system-data {
    gap: 0 !important;
}

.bma-power-card
.technology-system-data > div {
    min-height: 30px !important;

    padding:
        5px
        4px !important;

    border-bottom:
        1px solid #eceeef !important;
}

.bma-power-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}

.bma-power-card
.technology-system-data span {
    flex: 0 0 38%;

    font-size: 8px !important;
    font-weight: 850 !important;
    letter-spacing: .06em !important;
    color: #969ca2 !important;
}

.bma-power-card
.technology-system-data strong {
    max-width: 62% !important;

    font-size: 9px !important;
    line-height: 1.2 !important;

    color: #3b4045 !important;
}


/* ------------------------------------------------------------
   AKKU-/HERSTELLER-STATISTIK
------------------------------------------------------------ */

.bma-power-card
.technology-system-stats {
    min-height: 28px;

    align-items: center !important;

    margin-top: 6px !important;
    margin-bottom: 2px !important;
}

.bma-power-card
.technology-system-stats > span {
    background: transparent !important;

    padding:
        2px
        4px !important;

    font-size: 8px !important;
    color: #959a9f !important;
}

.bma-power-card
.technology-system-stats strong {
    font-size: 12px !important;
    color: #272b2f !important;
}


/* ------------------------------------------------------------
   AKKU-UNTERKARTEN
------------------------------------------------------------ */

.bma-power-card
.power-child-list {
    margin-top: 7px !important;

    padding-top: 7px;

    border-top:
        1px solid #eceeef;
}

.bma-power-card
.power-child-card {
    min-height: 40px !important;

    padding:
        6px
        8px !important;

    border:
        1px solid #e5e7e9 !important;

    border-radius: 9px !important;

    background:
        rgba(255,255,255,.78) !important;

    box-shadow: none !important;
}

.bma-power-card
.power-child-icon {
    width: 27px !important;
    height: 27px !important;

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

    border-radius: 8px !important;
}

.bma-power-card
.power-child-main {
    min-width: 0;
}

.bma-power-card
.power-child-main strong {
    display: block;

    font-size: 9px !important;
    line-height: 1.15 !important;
}

.bma-power-card
.power-child-main small {
    display: block;

    margin-top: 2px;

    font-size: 7px !important;
    color: #999fa5 !important;
}

.bma-power-card
.power-child-type {
    padding:
        3px
        6px !important;

    border-radius: 7px !important;

    font-size: 7px !important;
}


/* ------------------------------------------------------------
   ENTFERNEN
   Immer gleiche Position unten rechts
------------------------------------------------------------ */

.bma-power-card
.bma-tech-card-remove-slot {
    right: 9px !important;
    bottom: 8px !important;
}

.bma-power-card
.bma-tech-remove {
    height: 24px !important;
    min-height: 24px !important;

    padding:
        0
        8px !important;

    border-radius: 7px !important;

    font-size: 8px !important;
}


/* ------------------------------------------------------------
   HINZUFÜGEN-BUTTONS
------------------------------------------------------------ */

.bma-tech-actions {
    margin-top: 2px !important;
    margin-bottom: 14px !important;
}

.bma-tech-actions
.object-data-save {
    height: 30px !important;
    min-height: 30px !important;

    padding:
        0
        10px !important;

    border-radius: 8px !important;

    font-size: 9px !important;
}


/* ------------------------------------------------------------
   SUMMARY NOCH ETWAS FEINER
------------------------------------------------------------ */

.bma-power-summary {
    gap: 11px !important;
}

.bma-power-summary
.bma-tech-summary-card {
    min-height: 74px !important;

    padding:
        10px
        13px !important;
}

.bma-power-summary
.bma-tech-summary-card strong {
    font-size: 21px !important;
}

.bma-power-summary
.bma-tech-summary-card span {
    margin-top: 2px !important;

    font-size: 9px !important;
}


/* ------------------------------------------------------------
   BREAKPOINTS
------------------------------------------------------------ */

@media (max-width: 1250px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 950px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 650px) {

    .bma-power-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG · CI FINAL V3
============================================================ */


/* ------------------------------------------------------------
   4 KARTEN PRO ZEILE
------------------------------------------------------------ */

.bma-power-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 12px !important;
}


/* Karten sollen gleichmäßig wirken */

.bma-power-card {
    width: 100% !important;
    min-width: 0 !important;

    align-self: start !important;
}


/* ------------------------------------------------------------
   BUTTONS
   Wieder bestehendes MAMO-CI verwenden
------------------------------------------------------------ */

.bma-tech-actions .object-data-save {
    width: auto !important;

    min-width: initial !important;
    min-height: initial !important;
    height: auto !important;

    padding: revert !important;

    border-radius: revert !important;

    font-size: revert !important;
    font-weight: revert !important;
    line-height: revert !important;
}


/* Action-Bereich nur positionieren,
   Button selbst bleibt im bestehenden CI */

.bma-tech-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 8px !important;

    margin-top: 0 !important;
    margin-bottom: 14px !important;
}


/* ------------------------------------------------------------
   ENTFERNEN
   Optik analog bisheriger kompakter Remove-Actions
------------------------------------------------------------ */

.bma-power-card .bma-tech-remove {
    width: auto !important;

    height: 25px !important;
    min-height: 25px !important;

    padding: 0 9px !important;

    border-radius: 8px !important;

    font-size: 9px !important;
    font-weight: 800 !important;
}


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

@media (max-width: 1400px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 850px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {

    .bma-power-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG · SYMBOLISCHE AKKUS V1
============================================================ */


/* Akku-Unterkarten in der Übersicht nicht mehr verwenden */

.bma-power-card .power-child-list {
    display: none !important;
}


/* ------------------------------------------------------------
   SYMBOLISCHE AKKUANZEIGE
------------------------------------------------------------ */

.bma-power-battery-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 8px;

    min-height: 28px;

    margin-top: 8px;
    padding-top: 7px;

    border-top: 1px solid #eceeef;
}

.bma-power-battery-count {
    display: inline-flex;
    align-items: baseline;

    gap: 4px;

    font-size: 9px;
    color: #8e949a;
}

.bma-power-battery-count strong {
    font-size: 12px;
    font-weight: 850;
    color: #25292d;
}

.bma-power-battery-icons {
    display: flex;
    align-items: center;

    gap: 4px;
}

.bma-power-battery-icon,
.bma-power-battery-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    min-width: 24px;
    height: 22px;

    padding: 0;

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

    background: #f5f6f7;

    color: #596169;

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

.bma-power-battery-more {
    width: auto;
    min-width: 24px;

    padding: 0 6px;
}


/* ------------------------------------------------------------
   REMOVE FEST UNTEN RECHTS
------------------------------------------------------------ */

.bma-power-card {
    position: relative !important;

    padding-bottom: 42px !important;
}

.bma-power-card .bma-tech-card-remove-slot {
    position: absolute !important;

    right: 9px !important;
    bottom: 8px !important;

    margin: 0 !important;

    z-index: 10;
}


/* Vorhandenen Remove-CI beibehalten */

.bma-power-card .bma-tech-remove {
    height: 25px !important;
    min-height: 25px !important;

    padding: 0 9px !important;

    border-radius: 8px !important;

    font-size: 9px !important;
    font-weight: 800 !important;
}


/* ------------------------------------------------------------
   KARTEN KOMPAKTER
------------------------------------------------------------ */

.bma-power-card .technology-system-stats {
    margin-bottom: 0 !important;
}

.bma-power-card .technology-system-data {
    margin-bottom: 0 !important;
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG · ADD BUTTONS RESTORE V1
============================================================ */

.bma-tech-actions .object-data-save {
    width: auto !important;

    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;

    padding: 0 12px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    white-space: nowrap !important;
}

.bma-tech-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    gap: 8px !important;

    margin-top: 0 !important;
    margin-bottom: 14px !important;
}

/* ============================================================
   MAMO BMA · NETZTEILDETAIL · AKKUS V1
============================================================ */

.bma-power-detail-batteries {
    margin-top: 16px;
}

.bma-power-detail-batteries
.object-data-card-head {
    position: relative;
}

.bma-power-detail-battery-count {
    margin-left: auto;

    font-size: 11px;
    font-weight: 800;
    color: #7e858c;
}


/* Liste */

.bma-power-detail-battery-list {
    display: grid;

    gap: 7px;

    margin-top: 13px;
}


/* Eine Batterie = eine ruhige technische Zeile */

.bma-power-detail-battery-row {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto
        auto;

    align-items: center;

    gap: 10px;

    min-height: 50px;

    padding: 7px 9px;

    border: 1px solid #e4e6e8;
    border-radius: 10px;

    background: #fafafa;
}


/* Symbol */

.bma-power-detail-battery-symbol {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #252b2f;
    color: #fff;

    font-size: 10px;
}


/* Text */

.bma-power-detail-battery-main {
    min-width: 0;
}

.bma-power-detail-battery-main strong {
    display: block;

    font-size: 11px;
    line-height: 1.2;

    color: #292e32;
}

.bma-power-detail-battery-main span {
    display: block;

    margin-top: 2px;

    font-size: 9px;
    color: #8c9298;
}


/* Typ */

.bma-power-detail-battery-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 23px;

    padding: 0 7px;

    border-radius: 999px;

    background: #fff0f0;
    color: #cf4040;

    font-size: 8px;
    font-weight: 900;
}


/* Entfernen rechts */

.bma-power-detail-battery-remove {
    margin: 0;
}

.bma-power-detail-battery-remove
.bma-tech-remove {
    height: 25px;
    min-height: 25px;

    padding: 0 9px;

    border: 0;
    border-radius: 8px;

    background: #fff0f0;
    color: #d93636;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}


/* leer */

.bma-power-detail-battery-empty {
    margin-top: 12px;
    padding: 12px;

    border: 1px dashed #dfe2e4;
    border-radius: 10px;

    font-size: 10px;
    color: #858b91;
}

.bma-power-detail-battery-empty strong {
    display: block;

    margin-bottom: 2px;

    color: #454b50;
}


/* Mobile */

@media (max-width: 700px) {

    .bma-power-detail-battery-row {
        grid-template-columns:
            34px
            minmax(0, 1fr)
            auto;
    }

    .bma-power-detail-battery-remove {
        grid-column:
            2 / -1;

        justify-self: end;
    }
}

/* ============================================================
   MAMO BMA · FEUERWEHRTECHNIK · COMPACT V1
============================================================ */


/* ------------------------------------------------------------
   SUMMARY
------------------------------------------------------------ */

.bma-fire-summary {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin:
        0
        0
        16px;
}

.bma-fire-summary
.bma-tech-summary-card {
    min-height: 72px;

    padding:
        10px
        13px;
}

.bma-fire-summary
.bma-tech-summary-card.is-red::before {
    background: #e8443a;
}


/* ------------------------------------------------------------
   GRID · 4 PRO REIHE
------------------------------------------------------------ */

.bma-fire-compact-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 12px !important;
}


/* ------------------------------------------------------------
   CARD
------------------------------------------------------------ */

.bma-fire-compact-card {
    min-width: 0 !important;
    min-height: 0 !important;

    padding:
        13px
        13px
        14px !important;

    border-radius: 12px !important;

    border-top:
        3px solid #e8443a !important;

    box-shadow:
        0 1px 2px rgba(0,0,0,.025) !important;
}


/* Kopf */

.bma-fire-compact-card
.technology-system-top {
    margin-bottom: 8px !important;
}

.bma-fire-compact-card
.technology-system-icon {
    width: 28px !important;
    height: 28px !important;

    border-radius: 9px !important;

    font-size: 11px !important;
}

.bma-fire-compact-card
.technology-system-type {
    padding:
        4px
        7px !important;

    border-radius: 7px !important;

    font-size: 8px !important;
}


/* Titel */

.bma-fire-compact-card h3 {
    min-height: 0 !important;

    margin:
        0
        0
        2px !important;

    font-size: 13px !important;
    line-height: 1.2 !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bma-fire-compact-card
.technology-system-number {
    margin-bottom: 8px !important;

    font-size: 9px !important;
    color: #92979c !important;
}


/* ------------------------------------------------------------
   DATENZEILEN KOMPAKT
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-data {
    display: grid !important;

    gap: 0 !important;

    margin: 0 !important;
}

.bma-fire-compact-card
.technology-system-data > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 8px !important;

    min-height: 29px !important;

    padding:
        5px
        4px !important;

    border: 0 !important;
    border-bottom:
        1px solid #eceeef !important;
}

.bma-fire-compact-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}

.bma-fire-compact-card
.technology-system-data span {
    flex:
        0
        0
        36%;

    font-size: 8px !important;
    font-weight: 850 !important;

    letter-spacing: .05em !important;

    color: #969ca2 !important;
}

.bma-fire-compact-card
.technology-system-data strong {
    max-width: 64% !important;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 9px !important;
    text-align: right;

    color: #373c40 !important;
}


/* ------------------------------------------------------------
   STATS
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-stats {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 5px !important;

    min-height: 0 !important;

    margin-top: 7px !important;
}


/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 1200px) {

    .bma-fire-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {

    .bma-fire-compact-grid,
    .bma-fire-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {

    .bma-fire-compact-grid,
    .bma-fire-summary {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · DESIGN FESTZIEHEN · FEUERWEHR + ENERGIE
   Compact-Kartenstandard
============================================================ */

/* ------------------------------------------------------------
   GEMEINSAMES GRID
------------------------------------------------------------ */
.bma-tech-compact-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
}

/* ------------------------------------------------------------
   GEMEINSAME KARTE
------------------------------------------------------------ */
.bma-tech-card {
    min-height: 0 !important;
    padding: 14px 14px 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    overflow: hidden !important;
}

.bma-tech-card .technology-system-top {
    margin-bottom: 10px !important;
}

.bma-tech-card .technology-system-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
}

.bma-tech-card .technology-system-type {
    font-size: 9px !important;
    padding: 4px 8px !important;
    border-radius: 7px !important;
}

.bma-tech-card h3 {
    margin: 0 0 3px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bma-tech-card .technology-system-number {
    margin-bottom: 10px !important;
    font-size: 10px !important;
    color: #8c949c !important;
}

.bma-tech-card .technology-system-data {
    display: grid !important;
    gap: 6px !important;
    margin: 0 !important;
}

.bma-tech-card .technology-system-data > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border: 1px solid #edf0f2 !important;
    border-radius: 10px !important;
    background: #fbfbfc !important;
    min-height: 0 !important;
}

.bma-tech-card .technology-system-data span {
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
    color: #9aa1a8 !important;
    text-transform: uppercase !important;
    flex: 0 0 34% !important;
}

.bma-tech-card .technology-system-data strong {
    max-width: 66% !important;
    font-size: 11px !important;
    color: #2f363c !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bma-tech-card .technology-system-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

.bma-tech-card .technology-system-stats > span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: #727981 !important;
}

.bma-tech-card .technology-system-stats strong {
    color: #27313a !important;
}

.bma-tech-card--fire {
    border-top: 3px solid #e8443a !important;
}

.bma-tech-card--power {
    border-top: 3px solid #4f8df6 !important;
}

/* ------------------------------------------------------------
   FEUERWEHRTECHNIK
------------------------------------------------------------ */
.bma-fire-compact-card {
    min-height: 0 !important;
}

/* ------------------------------------------------------------
   ENERGIEVERSORGUNG
------------------------------------------------------------ */
.bma-power-grid {
    align-items: start !important;
}

.bma-tech-card--power .technology-system-data {
    margin-bottom: 0 !important;
}

.bma-power-battery-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eceff2;
}

.bma-power-battery-label {
    font-size: 12px;
    font-weight: 700;
    color: #5f6770;
    white-space: nowrap;
}

.bma-power-battery-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.bma-power-battery-chip {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1px solid #e6eaee;
    background: #f7f8fa;
    color: #4a5560;
    font-size: 10px;
    line-height: 1;
}

.bma-tech-card--power .power-child-list,
.bma-tech-card--power .power-child-card {
    display: none !important;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1400px) {
    .bma-tech-compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1080px) {
    .bma-tech-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    .bma-tech-compact-grid {
        grid-template-columns: 1fr !important;
    }

    .bma-power-battery-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .bma-power-battery-icons {
        justify-content: flex-start;
    }
}

/* ============================================================
   MAMO BMA · TECH CARDS · CALM LAYOUT V1
   Feuerwehrtechnik + Energieversorgung
============================================================ */


/* ------------------------------------------------------------
   GEMEINSAME KARTE RUHIGER
------------------------------------------------------------ */

.bma-tech-card {
    background: #fff !important;
}


/* ------------------------------------------------------------
   DATENBEREICH
   Keine grauen Kästen mehr
------------------------------------------------------------ */

.bma-tech-card .technology-system-data {
    display: grid !important;
    gap: 0 !important;

    margin-top: 4px !important;

    border-top: 1px solid #eceff2 !important;
}

.bma-tech-card .technology-system-data > div {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;

    align-items: start !important;

    gap: 10px !important;

    min-height: 0 !important;

    padding: 8px 2px !important;

    border: 0 !important;
    border-bottom: 1px solid #eceff2 !important;

    border-radius: 0 !important;

    background: transparent !important;
}

.bma-tech-card .technology-system-data > div:last-child {
    border-bottom: 0 !important;
}


/* Labels */

.bma-tech-card .technology-system-data span {
    display: block !important;

    flex: none !important;

    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;

    letter-spacing: .06em !important;

    color: #9aa1a8 !important;

    text-transform: uppercase !important;
}


/* Werte: NICHT MEHR ABSCHNEIDEN */

.bma-tech-card .technology-system-data strong {
    display: block !important;

    max-width: none !important;

    min-width: 0 !important;

    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;

    color: #30363b !important;

    text-align: left !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;

    overflow-wrap: anywhere !important;
}


/* ------------------------------------------------------------
   TITEL
   Nur Titel darf bei Extremfällen begrenzt werden,
   aber auf zwei Zeilen statt abgeschnitten.
------------------------------------------------------------ */

.bma-tech-card h3 {
    display: -webkit-box !important;

    min-height: 34px !important;

    margin-bottom: 2px !important;

    white-space: normal !important;

    overflow: hidden !important;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    line-height: 1.25 !important;
}


/* Kennung darunter ruhig */

.bma-tech-card .technology-system-number {
    min-height: 15px !important;

    margin-bottom: 6px !important;
}


/* ------------------------------------------------------------
   KOPF / BADGES
------------------------------------------------------------ */

.bma-tech-card .technology-system-top {
    align-items: center !important;

    margin-bottom: 8px !important;
}

.bma-tech-card .technology-system-type {
    flex-shrink: 0 !important;
}


/* ------------------------------------------------------------
   FEUERWEHR SPEZIFISCH
------------------------------------------------------------ */

.bma-fire-compact-card {
    padding-bottom: 14px !important;
}


/* ------------------------------------------------------------
   ENERGIE SPEZIFISCH
------------------------------------------------------------ */

.bma-tech-card--power
.technology-system-data > div {
    grid-template-columns: 92px minmax(0, 1fr) !important;
}


/* ------------------------------------------------------------
   STATS / ZUSATZDATEN RUHIGER
------------------------------------------------------------ */

.bma-tech-card .technology-system-stats {
    padding-top: 8px !important;

    border-top: 1px solid #eceff2 !important;
}

.bma-tech-card .technology-system-stats > span {
    padding: 0 !important;

    background: transparent !important;
}


/* ------------------------------------------------------------
   RESPONSIVE FEINSCHLIFF
------------------------------------------------------------ */

@media (max-width: 1100px) {

    .bma-tech-card .technology-system-data > div {
        grid-template-columns:
            82px
            minmax(0, 1fr) !important;
    }
}

@media (max-width: 680px) {

    .bma-tech-card .technology-system-data > div {
        grid-template-columns:
            1fr !important;

        gap: 3px !important;
    }

    .bma-tech-card .technology-system-data strong {
        text-align: left !important;
    }
}

/* ============================================================
   MAMO BMA · KOMPONENTEN · ACTIONS + FIRE CARD FINAL V2
============================================================ */


/* ------------------------------------------------------------
   ARBEITSBEREICH · RECHTS
------------------------------------------------------------ */

.bma-component-work-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;
}

.bma-component-work-actions .object-data-save {
    width: auto !important;
    white-space: nowrap;
}


/* ------------------------------------------------------------
   KARTENSHELL
------------------------------------------------------------ */

.bma-component-card-shell {
    position: relative;

    min-width: 0;
    height: 100%;
}

.bma-component-card-shell
> .technology-system-card {
    width: 100%;
    height: 100%;
}


/* Feuerwehr braucht unten Platz für Entfernen */

.bma-component-card-shell
> .bma-fire-compact-card {
    padding-bottom: 46px !important;
}


/* ------------------------------------------------------------
   FEUERWEHR · DATENZEILEN FINAL
   direkter Selector, damit alte Styles sicher überschrieben werden
------------------------------------------------------------ */

.technology-system-card.bma-fire-compact-card
.technology-system-data {
    display: block !important;

    margin-top: 6px !important;

    border-top: 1px solid #eceff2 !important;
}


.technology-system-card.bma-fire-compact-card
.technology-system-data > div {
    display: grid !important;

    grid-template-columns:
        74px
        minmax(0, 1fr) !important;

    align-items: start !important;

    gap: 8px !important;

    min-height: 0 !important;

    padding:
        7px
        2px !important;

    margin: 0 !important;

    border: 0 !important;
    border-bottom:
        1px solid #eceff2 !important;

    border-radius: 0 !important;

    background:
        transparent !important;
}


.technology-system-card.bma-fire-compact-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}


.technology-system-card.bma-fire-compact-card
.technology-system-data span {
    width: auto !important;
    max-width: none !important;

    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;

    color: #979ea5 !important;

    white-space: normal !important;
}


.technology-system-card.bma-fire-compact-card
.technology-system-data strong {
    width: auto !important;
    max-width: none !important;

    font-size: 9px !important;
    line-height: 1.35 !important;

    color: #30363b !important;

    text-align: left !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    overflow-wrap: anywhere !important;
}


/* Typ darf 2 Zeilen bekommen */

.technology-system-card.bma-fire-compact-card h3 {
    min-height: 0 !important;
}


/* ------------------------------------------------------------
   REMOVE UNTEN RECHTS
------------------------------------------------------------ */

.bma-component-remove-slot {
    position: absolute;

    right: 9px;
    bottom: 8px;

    z-index: 10;
}


.bma-component-remove-form {
    margin: 0;
}


.bma-component-remove {
    height: 25px;
    min-height: 25px;

    padding:
        0
        9px;

    border: 0;
    border-radius: 8px;

    background: #fff0f0;
    color: #d93636;

    font-size: 9px;
    font-weight: 800;
    line-height: 1;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}


.bma-component-remove:hover {
    background: #ffe3e3;
}


/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 700px) {

    .bma-component-work-actions {
        flex-wrap: wrap;
    }

    .technology-system-card.bma-fire-compact-card
    .technology-system-data > div {
        grid-template-columns:
            1fr !important;

        gap: 3px !important;
    }
}

/* ============================================================
   MAMO BMA · TOP ACTION BUTTONS · FINAL STANDARD V1
   Feuerwehrtechnik + Energieversorgung
============================================================ */


/* ------------------------------------------------------------
   GEMEINSAMER BUTTON-STANDARD
------------------------------------------------------------ */

.bma-component-work-actions .object-data-save,
.bma-tech-actions .object-data-save,
.power-supply-actions .object-data-save {
    width: auto !important;

    min-width: 0 !important;
    min-height: 32px !important;
    height: 32px !important;

    padding:
        0
        12px !important;

    border-radius:
        8px !important;

    font-size:
        10px !important;

    font-weight:
        800 !important;

    line-height:
        1 !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    white-space:
        nowrap !important;

    flex:
        0 0 auto !important;
}


/* ------------------------------------------------------------
   FEUERWEHRTECHNIK · RECHTER BEREICH
------------------------------------------------------------ */

.bma-component-work-actions {
    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    gap:
        10px !important;
}


/* ------------------------------------------------------------
   ENERGIEVERSORGUNG · ACTION-BEREICH
------------------------------------------------------------ */

.power-supply-actions,
.bma-tech-actions {
    display:
        flex !important;

    align-items:
        center !important;

    justify-content:
        flex-end !important;

    gap:
        8px !important;

    margin-top:
        0 !important;

    margin-bottom:
        14px !important;
}


/* ------------------------------------------------------------
   DISABLED STATE
------------------------------------------------------------ */

.bma-component-work-actions .object-data-save.is-disabled,
.bma-tech-actions .object-data-save.is-disabled,
.power-supply-actions .object-data-save.is-disabled {
    opacity:
        .55 !important;

    cursor:
        not-allowed !important;
}


/* ------------------------------------------------------------
   MOBILE
------------------------------------------------------------ */

@media (max-width: 700px) {

    .bma-component-work-actions,
    .bma-tech-actions,
    .power-supply-actions {
        flex-wrap:
            wrap !important;
    }
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG · ALIGN TO FIRE V1
============================================================ */

.bma-tech-card--power {
    background: #fff !important;
    border-top: 3px solid #4f8df6 !important;
    border-radius: 14px !important;
    padding: 14px 14px 46px !important;
    min-height: 0 !important;
}


/* Kopf wie Feuerwehrtechnik */

.bma-tech-card--power
.technology-system-top {
    margin-bottom: 10px !important;
}

.bma-tech-card--power
.technology-system-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
}

.bma-tech-card--power h3 {
    margin: 0 0 3px !important;
    min-height: 0 !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
}

.bma-tech-card--power
.technology-system-number {
    margin-bottom: 8px !important;
    font-size: 10px !important;
    color: #8c949c !important;
}


/* Datenzeilen wie Feuerwehrtechnik */

.technology-system-card.bma-tech-card--power
.technology-system-data {
    display: block !important;
    margin-top: 6px !important;
    border-top: 1px solid #eceff2 !important;
}

.technology-system-card.bma-tech-card--power
.technology-system-data > div {
    display: grid !important;
    grid-template-columns: 74px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 8px !important;

    min-height: 0 !important;
    padding: 7px 2px !important;
    margin: 0 !important;

    border: 0 !important;
    border-bottom: 1px solid #eceff2 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.technology-system-card.bma-tech-card--power
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}

.technology-system-card.bma-tech-card--power
.technology-system-data span {
    width: auto !important;
    max-width: none !important;

    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;

    color: #979ea5 !important;
    white-space: normal !important;
}

.technology-system-card.bma-tech-card--power
.technology-system-data strong {
    width: auto !important;
    max-width: none !important;

    font-size: 9px !important;
    line-height: 1.35 !important;
    color: #30363b !important;

    text-align: left !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere !important;
}


/* Stats ruhiger */

.bma-tech-card--power
.technology-system-stats {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #eceff2 !important;
}

.bma-tech-card--power
.technology-system-stats > span {
    padding: 0 !important;
    background: transparent !important;
}


/* Akkus nur symbolisch, kompakt */

.bma-tech-card--power
.bma-power-battery-strip {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #eceff2 !important;
}

.bma-tech-card--power
.bma-power-battery-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #6a727a !important;
}

.bma-tech-card--power
.bma-power-battery-chip {
    width: 22px !important;
    height: 22px !important;
    border-radius: 7px !important;
}


/* Entfernen bleibt unten rechts */

.bma-tech-card--power
.bma-tech-card-remove-slot {
    position: absolute !important;
    right: 9px !important;
    bottom: 8px !important;
}


/* Grid 4 Spalten */

.bma-power-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

/* ============================================================
   MAMO BMA · TECHNISCHE KARTEN · CHIP LAYOUT V1
   Feuerwehrtechnik + Energieversorgung
============================================================ */


/* ------------------------------------------------------------
   GEMEINSAM
------------------------------------------------------------ */

.bma-fire-compact-card,
.bma-tech-card--power {
    position: relative !important;

    min-height: 0 !important;

    padding:
        14px
        14px
        44px !important;

    background: #fff !important;

    border-radius: 13px !important;
}


/* ------------------------------------------------------------
   KOPF
------------------------------------------------------------ */

.bma-fire-compact-card .technology-system-top,
.bma-tech-card--power .technology-system-top {
    margin-bottom: 9px !important;
}


.bma-fire-compact-card h3,
.bma-tech-card--power h3 {
    min-height: 0 !important;

    margin:
        0
        0
        2px !important;

    font-size: 14px !important;
    line-height: 1.25 !important;

    white-space: normal !important;

    overflow: visible !important;

    display: block !important;
}


.bma-fire-compact-card .technology-system-number,
.bma-tech-card--power .technology-system-number {
    margin-bottom: 9px !important;

    font-size: 9px !important;
    color: #92989e !important;
}


/* ============================================================
   DATEN NICHT MEHR ALS TABELLE
============================================================ */

.bma-fire-compact-card .technology-system-data,
.bma-tech-card--power .technology-system-data {
    display: flex !important;
    flex-wrap: wrap !important;

    align-items: flex-start !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* jede Information = kleiner Chip */

.bma-fire-compact-card .technology-system-data > div,
.bma-tech-card--power .technology-system-data > div {
    display: inline-flex !important;

    align-items: center !important;

    gap: 5px !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 25px !important;

    padding:
        5px
        8px !important;

    margin: 0 !important;

    border:
        1px solid #e8ebee !important;

    border-radius:
        8px !important;

    background:
        #f8f9fa !important;
}


/* ------------------------------------------------------------
   Typ und Bereich dürfen breiter sein
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-data > div:first-child,
.bma-tech-card--power
.technology-system-data > div:last-child {
    max-width: 100% !important;
}


.bma-fire-compact-card
.technology-system-data > div:last-child,
.bma-tech-card--power
.technology-system-data > div:last-child {
    flex:
        1 1 100% !important;
}


/* ------------------------------------------------------------
   LABEL
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-data span,
.bma-tech-card--power
.technology-system-data span {
    flex: none !important;

    width: auto !important;
    max-width: none !important;

    font-size: 7px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;

    letter-spacing: .05em !important;

    color: #9ca2a8 !important;

    white-space: nowrap !important;
}


/* ------------------------------------------------------------
   WERT
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-data strong,
.bma-tech-card--power
.technology-system-data strong {
    width: auto !important;
    max-width: none !important;

    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;

    color: #343a40 !important;

    text-align: left !important;

    white-space: normal !important;
    overflow: visible !important;

    text-overflow: initial !important;

    overflow-wrap: anywhere !important;
}


/* ============================================================
   ENERGIE · ZUSATZDATEN
============================================================ */

.bma-tech-card--power .technology-system-stats {
    display: flex !important;

    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 8px !important;

    margin-top: 8px !important;

    padding: 0 !important;

    border: 0 !important;
}


.bma-tech-card--power .technology-system-stats > span {
    display: inline-flex !important;

    align-items: baseline !important;

    gap: 4px !important;

    padding: 0 !important;

    background: transparent !important;

    font-size: 9px !important;
}


/* Akkuzeile besonders kompakt */

.bma-tech-card--power .bma-power-battery-strip,
.bma-tech-card--power .bma-power-battery-summary {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 7px !important;

    min-height: 0 !important;

    margin-top: 8px !important;

    padding:
        7px
        0
        0 !important;

    border-top:
        1px solid #edf0f2 !important;
}


/* ============================================================
   REMOVE FEST UNTEN RECHTS
============================================================ */

.bma-component-remove-slot,
.bma-tech-card-remove-slot {
    position: absolute !important;

    right: 9px !important;
    bottom: 8px !important;
}


/* ============================================================
   GRID
============================================================ */

.bma-fire-compact-grid,
.bma-power-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 14px !important;

    align-items: start !important;
}


@media (max-width: 1100px) {

    .bma-fire-compact-grid,
    .bma-power-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 800px) {

    .bma-fire-compact-grid,
    .bma-power-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 600px) {

    .bma-fire-compact-grid,
    .bma-power-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG · REAL CARD FINAL V1
   echte Kartenklasse: .bma-power-card
============================================================ */

.bma-power-card {
    position: relative !important;

    min-height: 0 !important;

    padding:
        14px
        14px
        44px !important;

    background: #fff !important;

    border-radius: 13px !important;

    border-top:
        3px solid #4f8df6 !important;
}


/* ------------------------------------------------------------
   KOPF
------------------------------------------------------------ */

.bma-power-card .technology-system-top {
    margin-bottom: 9px !important;
}

.bma-power-card .technology-system-icon {
    width: 30px !important;
    height: 30px !important;

    border-radius: 10px !important;
}

.bma-power-card h3 {
    display: block !important;

    min-height: 0 !important;

    margin:
        0
        0
        2px !important;

    font-size: 14px !important;
    line-height: 1.25 !important;

    white-space: normal !important;

    overflow: visible !important;
}

.bma-power-card .technology-system-number {
    margin-bottom: 9px !important;

    font-size: 9px !important;

    color: #92989e !important;
}


/* ============================================================
   DATEN ALS RUHIGE CHIPS
============================================================ */

.bma-power-card .technology-system-data {
    display: flex !important;

    flex-wrap: wrap !important;

    align-items: flex-start !important;

    gap: 6px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


.bma-power-card .technology-system-data > div {
    display: inline-flex !important;

    align-items: center !important;

    gap: 5px !important;

    width: auto !important;
    min-width: 0 !important;
    min-height: 25px !important;

    padding:
        5px
        8px !important;

    margin: 0 !important;

    border:
        1px solid #e8ebee !important;

    border-radius:
        8px !important;

    background:
        #f8f9fa !important;
}


/* Bereich / Raum über volle Breite */

.bma-power-card
.technology-system-data > div:last-child {
    flex:
        1 1 100% !important;
}


/* Labels */

.bma-power-card
.technology-system-data span {
    flex: none !important;

    width: auto !important;
    max-width: none !important;

    font-size: 7px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;

    letter-spacing: .05em !important;

    color: #9ca2a8 !important;

    white-space: nowrap !important;
}


/* Werte */

.bma-power-card
.technology-system-data strong {
    width: auto !important;
    max-width: none !important;

    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;

    color: #343a40 !important;

    text-align: left !important;

    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;

    overflow-wrap: anywhere !important;
}


/* ============================================================
   HERSTELLER / AKKUZAHL
============================================================ */

.bma-power-card
.technology-system-stats {
    display: flex !important;

    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 10px !important;

    margin-top: 9px !important;
    padding: 0 !important;

    border: 0 !important;
}

.bma-power-card
.technology-system-stats > span {
    display: inline-flex !important;

    align-items: baseline !important;

    gap: 4px !important;

    padding: 0 !important;

    background: transparent !important;

    font-size: 9px !important;
}


/* ============================================================
   AKKUS SYMBOLISCH
============================================================ */

.bma-power-card
.bma-power-battery-summary,
.bma-power-card
.bma-power-battery-strip {
    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    gap: 8px !important;

    min-height: 0 !important;

    margin-top: 9px !important;

    padding:
        8px
        0
        0 !important;

    border-top:
        1px solid #edf0f2 !important;
}

.bma-power-card
.bma-power-battery-count,
.bma-power-card
.bma-power-battery-label {
    font-size: 9px !important;

    color: #737b83 !important;
}

.bma-power-card
.bma-power-battery-count strong {
    font-size: 11px !important;
}


.bma-power-card
.bma-power-battery-icons {
    display: flex !important;

    gap: 5px !important;
}


.bma-power-card
.bma-power-battery-icon,
.bma-power-card
.bma-power-battery-chip,
.bma-power-card
.bma-power-battery-more {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;

    padding: 0 !important;

    border:
        1px solid #e6eaee !important;

    border-radius:
        7px !important;

    background:
        #f7f8fa !important;

    color:
        #55606a !important;

    font-size:
        9px !important;
}


/* alte Akku-Unterkarten sicher weg */

.bma-power-card .power-child-list,
.bma-power-card .power-child-card {
    display: none !important;
}


/* ============================================================
   ENTFERNEN UNTEN RECHTS
============================================================ */

.bma-power-card
.bma-tech-card-remove-slot {
    position: absolute !important;

    right: 9px !important;
    bottom: 8px !important;

    margin: 0 !important;
}


/* ============================================================
   GRID
============================================================ */

.bma-power-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 14px !important;

    align-items: start !important;
}


@media (max-width: 1100px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 800px) {

    .bma-power-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 600px) {

    .bma-power-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · FEUERWEHRTECHNIK
   ALIGN TO POWER CARD STANDARD · FINAL V1
============================================================ */


/* ------------------------------------------------------------
   KARTE
------------------------------------------------------------ */

.bma-fire-compact-card {
    position: relative !important;

    min-height: 0 !important;

    padding:
        14px
        14px
        44px !important;

    background:
        #fff !important;

    border-radius:
        13px !important;

    border-top:
        3px solid #ef3d36 !important;
}


/* ------------------------------------------------------------
   KOPF
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-top {
    margin-bottom:
        9px !important;
}


.bma-fire-compact-card
.technology-system-icon {
    width:
        30px !important;

    height:
        30px !important;

    border-radius:
        10px !important;
}


.bma-fire-compact-card
.technology-system-type {
    flex-shrink:
        0 !important;

    padding:
        4px 8px !important;

    border-radius:
        7px !important;

    font-size:
        9px !important;
}


/* ------------------------------------------------------------
   TITEL / KENNUNG
------------------------------------------------------------ */

.bma-fire-compact-card h3 {
    display:
        block !important;

    min-height:
        0 !important;

    margin:
        0
        0
        2px !important;

    font-size:
        14px !important;

    line-height:
        1.25 !important;

    white-space:
        normal !important;

    overflow:
        visible !important;

    text-overflow:
        initial !important;
}


.bma-fire-compact-card
.technology-system-number {
    margin-bottom:
        9px !important;

    font-size:
        9px !important;

    color:
        #92989e !important;
}


/* ============================================================
   DATEN · IDENTISCH ZUR ENERGIEVERSORGUNG
============================================================ */

.bma-fire-compact-card
.technology-system-data {
    display:
        flex !important;

    flex-wrap:
        wrap !important;

    align-items:
        flex-start !important;

    gap:
        6px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    border:
        0 !important;
}


.bma-fire-compact-card
.technology-system-data > div {
    display:
        inline-flex !important;

    align-items:
        center !important;

    gap:
        5px !important;

    width:
        auto !important;

    min-width:
        0 !important;

    min-height:
        25px !important;

    padding:
        5px
        8px !important;

    margin:
        0 !important;

    border:
        1px solid #e8ebee !important;

    border-radius:
        8px !important;

    background:
        #f8f9fa !important;
}


/* Typ etwas breiter möglich */

.bma-fire-compact-card
.technology-system-data > div:first-child {
    max-width:
        100% !important;
}


/* Bereich / Raum volle Breite */

.bma-fire-compact-card
.technology-system-data > div:last-child {
    flex:
        1 1 100% !important;
}


/* ------------------------------------------------------------
   LABEL
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-data span {
    flex:
        none !important;

    width:
        auto !important;

    max-width:
        none !important;

    font-size:
        7px !important;

    font-weight:
        850 !important;

    line-height:
        1.15 !important;

    letter-spacing:
        .05em !important;

    color:
        #9ca2a8 !important;

    white-space:
        nowrap !important;
}


/* ------------------------------------------------------------
   WERT
------------------------------------------------------------ */

.bma-fire-compact-card
.technology-system-data strong {
    width:
        auto !important;

    max-width:
        none !important;

    font-size:
        9px !important;

    font-weight:
        750 !important;

    line-height:
        1.25 !important;

    color:
        #343a40 !important;

    text-align:
        left !important;

    white-space:
        normal !important;

    overflow:
        visible !important;

    text-overflow:
        initial !important;

    overflow-wrap:
        anywhere !important;
}


/* ------------------------------------------------------------
   REMOVE UNTEN RECHTS
------------------------------------------------------------ */

.bma-component-card-shell {
    position:
        relative !important;

    min-width:
        0 !important;
}


.bma-component-card-shell
.bma-fire-compact-card {
    height:
        100% !important;
}


.bma-component-remove-slot {
    position:
        absolute !important;

    right:
        9px !important;

    bottom:
        8px !important;

    z-index:
        10 !important;
}


/* ------------------------------------------------------------
   GRID
------------------------------------------------------------ */

.bma-fire-compact-grid {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap:
        14px !important;

    align-items:
        start !important;
}


/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 1100px) {

    .bma-fire-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 800px) {

    .bma-fire-compact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 600px) {

    .bma-fire-compact-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · FEUERWEHRTECHNIK · TIGHT V2
============================================================ */


/* Summary näher an Karten */

.bma-fire-summary {
    margin-bottom: 10px !important;
}


/* Grid enger */

.bma-fire-compact-grid {
    gap: 10px !important;
}


/* Karte kompakter */

.bma-fire-compact-card {
    min-height: 0 !important;

    padding:
        11px
        11px
        38px !important;

    border-radius: 11px !important;
}


/* Kopf enger */

.bma-fire-compact-card
.technology-system-top {
    margin-bottom: 6px !important;
}

.bma-fire-compact-card
.technology-system-icon {
    width: 27px !important;
    height: 27px !important;

    border-radius: 8px !important;
}


/* Titel / Nummer */

.bma-fire-compact-card h3 {
    margin-bottom: 1px !important;

    font-size: 13px !important;
    line-height: 1.2 !important;
}

.bma-fire-compact-card
.technology-system-number {
    margin-bottom: 5px !important;

    font-size: 8px !important;
}


/* Daten enger */

.bma-fire-compact-card
.technology-system-data {
    gap: 4px !important;
}

.bma-fire-compact-card
.technology-system-data > div {
    min-height: 22px !important;

    padding:
        4px
        6px !important;

    border-radius: 7px !important;
}

.bma-fire-compact-card
.technology-system-data span {
    font-size: 7px !important;
}

.bma-fire-compact-card
.technology-system-data strong {
    font-size: 8px !important;
    line-height: 1.2 !important;
}


/* Remove kleiner und näher an Rand */

.bma-component-remove-slot {
    right: 7px !important;
    bottom: 7px !important;
}

.bma-component-remove {
    height: 23px !important;
    min-height: 23px !important;

    padding: 0 8px !important;

    font-size: 8px !important;
}


/* Arbeitsbereich oben kompakter */

.bma-component-work-actions {
    gap: 8px !important;
}


/* Mobile bleibt erhalten */

@media (max-width: 700px) {

    .bma-fire-compact-grid {
        gap: 8px !important;
    }
}

/* ============================================================
   MAMO BMA · ENERGIEVERSORGUNG
   MATCH CURRENT FIRE STANDARD V1
   Feuerwehrtechnik bleibt unangetastet.
============================================================ */

.bma-power-card {
    box-sizing: border-box !important;

    position: relative !important;

    width: 100% !important;

    /*
     * Feste Kartenhöhe:
     * Inhalte verändern nicht mehr die Außenmaße.
     */
    height: 315px !important;
    min-height: 315px !important;
    max-height: 315px !important;

    padding:
        11px
        11px
        38px !important;

    border-radius: 11px !important;

    background: #fff !important;

    overflow: hidden !important;

    border-top:
        3px solid #4f8df6 !important;
}


/* Kopf */

.bma-power-card
.technology-system-top {
    margin-bottom: 6px !important;
}

.bma-power-card
.technology-system-icon {
    width: 27px !important;
    height: 27px !important;

    border-radius: 8px !important;
}


/* Titel bekommt festen Raum */

.bma-power-card h3 {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;

    margin: 0 0 1px !important;

    font-size: 13px !important;
    line-height: 16px !important;

    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;

    white-space: normal !important;
    overflow: hidden !important;
}

.bma-power-card
.technology-system-number {
    height: 14px !important;

    margin-bottom: 5px !important;

    font-size: 8px !important;
}


/* Standortdaten kompakt */

.bma-power-card
.technology-system-data {
    display: flex !important;
    flex-wrap: wrap !important;

    gap: 4px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}

.bma-power-card
.technology-system-data > div {
    display: inline-flex !important;
    align-items: center !important;

    gap: 5px !important;

    width: auto !important;
    min-width: 0 !important;

    padding: 4px 6px !important;
    margin: 0 !important;

    min-height: 22px !important;

    border: 1px solid #e8ebee !important;
    border-radius: 7px !important;

    background: #f8f9fa !important;
}


/* Bereich / Raum immer volle Breite */

.bma-power-card
.technology-system-data > div:last-child {
    flex: 1 1 100% !important;

    min-height: 34px !important;

    align-items: flex-start !important;
}


/* Labels */

.bma-power-card
.technology-system-data span {
    flex: 0 0 auto !important;

    width: auto !important;
    max-width: none !important;

    font-size: 7px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;

    color: #9ca2a8 !important;

    white-space: nowrap !important;
}


/* Werte */

.bma-power-card
.technology-system-data strong {
    min-width: 0 !important;
    max-width: 100% !important;

    font-size: 8px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;

    color: #343a40 !important;

    text-align: left !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
}


/* Hersteller / Akkuanzahl */

.bma-power-card
.technology-system-stats {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    gap: 7px !important;

    margin-top: 7px !important;
    padding: 0 !important;

    border: 0 !important;
}

.bma-power-card
.technology-system-stats > span {
    padding: 0 !important;

    background: transparent !important;

    font-size: 8px !important;
}


/* Akku nur symbolisch */

.bma-power-card
.bma-power-battery-summary,
.bma-power-card
.bma-power-battery-strip {
    display: flex !important;
    align-items: center !important;

    gap: 7px !important;

    min-height: 0 !important;

    margin-top: 7px !important;

    padding:
        7px
        0
        0 !important;

    border-top:
        1px solid #edf0f2 !important;
}

.bma-power-card
.bma-power-battery-icon,
.bma-power-card
.bma-power-battery-chip,
.bma-power-card
.bma-power-battery-more {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;

    padding: 0 !important;

    border-radius: 7px !important;
}


/* Entfernen exakt fest */

.bma-power-card
.bma-tech-card-remove-slot {
    position: absolute !important;

    right: 7px !important;
    bottom: 7px !important;
}


/* 4 pro Reihe */

.bma-power-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 10px !important;

    align-items: start !important;
}

/* ============================================================
   MAMO BMA · POWER = FIRE MASTER CARD
   Nur Farbmodifier, kein eigenes Layout mehr.
============================================================ */

.bma-power-card.bma-fire-compact-card {
    border-top-color: #4f8df6 !important;
}


/* Energie-Badge passend zum blauen Akzent */

.bma-power-card.bma-fire-compact-card
.technology-system-type {
    background: #eef5ff !important;
    color: #376fbd !important;
}


/* Feste Größe identisch für alle Netzteilkarten */

.bma-power-grid .bma-power-card {
    height: 315px !important;
    min-height: 315px !important;
    max-height: 315px !important;
}


/* Akku-Zusatzbereich darf die Karte niemals vergrößern */

.bma-power-card
.technology-system-stats {
    margin-top: 7px !important;
}


.bma-power-card
.bma-power-battery-summary,
.bma-power-card
.bma-power-battery-strip {
    margin-top: 7px !important;
}


/* Entfernen bleibt wie bisher unten rechts */

.bma-power-card
.bma-tech-card-remove-slot {
    position: absolute !important;
    right: 7px !important;
    bottom: 7px !important;
}

/* ============================================================
   MAMO BMA · ALARMIERUNG · MASTER STANDARD V1
============================================================ */

.bma-alarm-card {
    border-top-color: #d05a7a !important;
}

.bma-alarm-card
.technology-system-type {
    background: #fff0f4 !important;
    color: #b24363 !important;
}

.bma-alarm-grid {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
}

/* ============================================================
   MAMO BMA · BUS & MODULE · MASTER CARD
   Layout identisch Feuerwehr / Alarmierung
============================================================ */

.bma-bus-card {
    border-top-color: #687078 !important;
}


/* Badge */

.bma-bus-card
.technology-system-type {
    background: #eef0f2 !important;
    color: #555e66 !important;
}


/* Innenlinien verbindlich hellgrau */

.bma-bus-card
.technology-system-data {
    border-color: #e6e9ec !important;
}

.bma-bus-card
.technology-system-data > div {
    border-color: #e6e9ec !important;
}


/* Falls ältere CSS-Regeln noch dunkle Trenner setzen */

.bma-bus-card
.technology-system-data > div,
.bma-bus-card
.technology-system-data > div:first-child,
.bma-bus-card
.technology-system-data > div:last-child {
    border-top-color: #e6e9ec !important;
    border-bottom-color: #e6e9ec !important;
}


/* Grid exakt wie die anderen technischen Bereiche */

.bma-bus-grid {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 10px !important;
    align-items: start !important;
}


@media (max-width: 1100px) {

    .bma-bus-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 800px) {

    .bma-bus-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 600px) {

    .bma-bus-grid {
        grid-template-columns:
            1fr !important;
    }
}

/* ============================================================
   MAMO BMA · ALARMIERUNG · EINHEITLICHE INNENLINIEN
============================================================ */

.bma-alarm-card .technology-system-data,
.bma-alarm-card .technology-system-data > div,
.bma-alarm-card .technology-system-stats,
.bma-alarm-card .technology-system-stats > span {
    border-color: #e6e9ec !important;
}


/* Falls ältere Regeln mit Border-Top/Bottom stärker greifen */

.bma-alarm-card .technology-system-data > div {
    border-top-color: #e6e9ec !important;
    border-bottom-color: #e6e9ec !important;
}


/* Sicherheit gegen dunkle Inset-Linien */

.bma-alarm-card .technology-system-data > div,
.bma-alarm-card .technology-system-stats {
    box-shadow: none !important;
}



/* ============================================================
   MAMO BMA · TECHNIKKARTEN · VERBINDLICHE TRENNLINIEN FINAL
   Gilt für Feuerwehr, Alarmierung, Bus/Module und weitere
   technische BMA-Komponentenkarten.
============================================================ */

.technology-system-grid
.technology-system-card
.technology-system-data {
    gap: 0 !important;
}


/* Jede Datenzeile identisch */
.technology-system-grid
.technology-system-card
.technology-system-data > div {
    border: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;

    border-bottom:
        1px solid #eceeef !important;

    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
}


/* Letzte Zeile ohne Abschlusslinie */
.technology-system-grid
.technology-system-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}


/* Linkzustände dürfen die Linienfarbe niemals verändern */
.technology-system-grid
a.technology-system-card:link
.technology-system-data > div,

.technology-system-grid
a.technology-system-card:visited
.technology-system-data > div,

.technology-system-grid
a.technology-system-card:hover
.technology-system-data > div,

.technology-system-grid
a.technology-system-card:active
.technology-system-data > div {
    border-bottom-color: #eceeef !important;
    outline: 0 !important;
    box-shadow: none !important;
}


/* Keine Text-/Link-Dekoration innerhalb der Datenzeilen */
.technology-system-grid
.technology-system-card
.technology-system-data span,

.technology-system-grid
.technology-system-card
.technology-system-data strong {
    text-decoration: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}



/* ============================================================
   MAMO BMA · FIRE/ALARM/BUS COMPACT CARDS · FINAL DIVIDERS
   Tatsächlich verwendete Kartenklasse:
   .bma-fire-compact-card
============================================================ */

.bma-fire-compact-card .technology-system-data {
    display: grid !important;
    gap: 0 !important;
    margin: 0 !important;
}


.bma-fire-compact-card .technology-system-data > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 8px !important;
    padding: 4px 0 !important;

    border: 0 !important;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;

    border-bottom:
        1px solid #eceeef !important;

    outline: 0 !important;
    box-shadow: none !important;

    background: transparent !important;
}


.bma-fire-compact-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}


/* Linkzustände dürfen NICHTS verändern */

a.bma-fire-compact-card:link
.technology-system-data > div,

a.bma-fire-compact-card:visited
.technology-system-data > div,

a.bma-fire-compact-card:hover
.technology-system-data > div,

a.bma-fire-compact-card:active
.technology-system-data > div,

a.bma-fire-compact-card:focus
.technology-system-data > div {
    border-bottom:
        1px solid #eceeef !important;

    outline: 0 !important;
    box-shadow: none !important;
}


a.bma-fire-compact-card:link
.technology-system-data > div:last-child,

a.bma-fire-compact-card:visited
.technology-system-data > div:last-child,

a.bma-fire-compact-card:hover
.technology-system-data > div:last-child,

a.bma-fire-compact-card:active
.technology-system-data > div:last-child,

a.bma-fire-compact-card:focus
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}



/* ============================================================
   MAMO BMA · TECHNIKKARTEN
   Hintergrundraster bei kompakten BMA-Karten deaktivieren
============================================================ */

.bma-fire-compact-card::before,
.bma-alarm-card::before,
.bma-bus-card::before,
.bma-power-card::before {
    content: none !important;
    display: none !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
}


/* Datenzeilen bleiben ausschließlich hellgrau */

.technology-system-card.bma-fire-compact-card
.technology-system-data {
    border-top: 0 !important;
}


.technology-system-card.bma-fire-compact-card
.technology-system-data > div {
    border: 0 !important;
    border-bottom: 1px solid #eceff2 !important;
    background: transparent !important;
    box-shadow: none !important;
}


.technology-system-card.bma-fire-compact-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}



/* ============================================================
   MAMO BMA · FIRE / ALARM / BUS
   Browser Rendering / Compositing Fix
============================================================ */

.bma-component-card-shell {
    isolation: isolate !important;
}


.bma-fire-compact-card {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;

    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;

    will-change: transform;

    contain: paint;
}


/* Datenbereich ebenfalls sauber neu rendern */

.bma-fire-compact-card .technology-system-data {
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;

    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}


/* Keine Animation auf den Trennern */

.bma-fire-compact-card .technology-system-data,
.bma-fire-compact-card .technology-system-data > div {
    transition: none !important;
}


/* Tatsächliche Linie */

.bma-fire-compact-card .technology-system-data > div {
    border-bottom: 1px solid #eceff2 !important;
}


.bma-fire-compact-card
.technology-system-data > div:last-child {
    border-bottom: 0 !important;
}



/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN
   Abstand Arbeitsbereich → Statusbar wie Feuerwehr/Alarmierung
============================================================ */

.bma-point-actions {
    margin: 0 !important;
}


.bma-point-actions + *,
.bma-component-work-actions + .bma-fire-summary {
    margin-top: 0 !important;
}


/* Points-Statusbar näher an den Arbeitsbereich */

.bma-points-summary {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}



/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN · NAV-KACHELN MASTER
============================================================ */

.bma-points-kpi-grid {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 10px !important;

    margin-top: 0 !important;
}


.bma-points-kpi {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    min-width: 0 !important;
    min-height: 118px !important;

    padding:
        15px
        16px !important;

    border:
        1px solid #e1e4e7 !important;

    border-top:
        3px solid #3b4248 !important;

    border-radius:
        11px !important;

    background:
        #fff !important;

    box-shadow:
        0 1px 2px rgba(0,0,0,.025) !important;

    text-decoration:
        none !important;

    transition:
        transform .14s ease,
        box-shadow .14s ease,
        border-color .14s ease !important;
}


.bma-points-kpi:hover {
    transform:
        translateY(-1px) !important;

    box-shadow:
        0 5px 16px rgba(0,0,0,.05) !important;
}


.bma-points-kpi > span {
    display: block !important;

    margin-bottom:
        8px !important;

    color:
        #7f8790 !important;

    font-size:
        10px !important;

    font-weight:
        900 !important;

    letter-spacing:
        .10em !important;

    text-transform:
        uppercase !important;
}


.bma-points-kpi > strong {
    display: block !important;

    margin:
        0
        0
        4px !important;

    color:
        #252b30 !important;

    font-size:
        25px !important;

    line-height:
        1 !important;

    font-weight:
        900 !important;
}


.bma-points-kpi > small {
    display: block !important;

    color:
        #8b9298 !important;

    font-size:
        10px !important;

    font-weight:
        700 !important;
}


/* responsive */

@media (max-width: 900px) {

    .bma-points-kpi-grid {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN · NAV-KACHELN FINAL
   Ausrichtung und Designsprache wie Feuerwehrtechnik
============================================================ */

.bma-points-kpi-grid {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 10px !important;

    width: 100% !important;

    margin:
        10px
        0
        0 !important;

    padding:
        0 !important;
}


.bma-points-kpi {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    min-width: 0 !important;
    min-height: 105px !important;

    padding:
        14px
        15px !important;

    border:
        1px solid #dfe3e6 !important;

    border-radius:
        11px !important;

    background:
        #fff !important;

    box-shadow:
        0 1px 2px rgba(0,0,0,.025) !important;

    text-decoration:
        none !important;

    overflow:
        hidden !important;
}


/* ============================================================
   REIHENFOLGE / FARBEN
============================================================ */

/* Steuerungen */
.bma-points-kpi:nth-child(1) {
    border-top:
        3px solid #4f8df6 !important;
}


/* Schnittstellen */
.bma-points-kpi:nth-child(2) {
    border-top:
        3px solid #5c6670 !important;
}


/* Signale */
.bma-points-kpi:nth-child(3) {
    border-top:
        3px solid #e3a126 !important;
}


/* ============================================================
   TYPOGRAFIE
============================================================ */

.bma-points-kpi > span {
    margin:
        0
        0
        7px !important;

    color:
        #7e858c !important;

    font-size:
        9px !important;

    font-weight:
        900 !important;

    letter-spacing:
        .08em !important;

    text-transform:
        uppercase !important;
}


.bma-points-kpi > strong {
    margin:
        0
        0
        5px !important;

    color:
        #272d32 !important;

    font-size:
        21px !important;

    line-height:
        1 !important;

    font-weight:
        900 !important;
}


.bma-points-kpi > small {
    margin-top:
        auto !important;

    color:
        #8b9197 !important;

    font-size:
        9px !important;

    font-weight:
        700 !important;
}


/* Hover bewusst sehr ruhig */

.bma-points-kpi:hover {
    transform:
        translateY(-1px) !important;

    box-shadow:
        0 4px 12px rgba(0,0,0,.045) !important;
}


@media (max-width: 900px) {

    .bma-points-kpi-grid {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN · ABSTÄNDE FINAL
============================================================ */

/* Abstand Statusbar -> Navigationskacheln deutlich kleiner */
.bma-points-summary {
    margin-bottom: 8px !important;
}


/* Kachelgrid direkt an die Statusbar ziehen */
.bma-points-kpi-grid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* sicherstellen, dass kein alter Außenabstand greift */
.bma-points-summary + .bma-points-kpi-grid {
    margin-top: 0 !important;
}


/* gleiche Außenflucht links/rechts */
.bma-points-kpi-grid,
.bma-points-summary {
    width: 100% !important;
}


/* Kacheln selbst etwas kompakter */
.bma-points-kpi {
    min-height: 96px !important;
}



/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN
   NAV-KACHELN DIREKT UNTER STATUSBAR
============================================================ */

.bma-points-summary {
    margin-bottom: 6px !important;
}


/* Der komplette Navigationsblock wird direkt hochgezogen */
.bma-points-kpi-grid {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;

    transform:
        translateY(-28px);
}


/* Keine zusätzliche Leerstelle zwischen Summary und Grid */
.bma-points-summary + .bma-points-kpi-grid {
    margin-top: 0 !important;
}


/* Kacheln kompakt halten */
.bma-points-kpi {
    min-height: 92px !important;
}



/* ============================================================
   MAMO BMA · BEREICHSFARBEN · ZENTRAL V1
============================================================ */

:root {
    --bma-area-fire:
        #ef3d36;

    --bma-area-alarm:
        #d95878;

    --bma-area-power:
        #4f8df6;

    --bma-area-bus:
        #59636c;

    --bma-area-points:
        #46515a;
}


/* ============================================================
   SIGNALE & STEUERUNGEN · NAV-KACHELN
   Gleiche Flucht wie Feuerwehr
============================================================ */

.bma-points-kpi-grid {
    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap:
        10px !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;

    transform:
        none !important;
}


/* alle drei gehören zum selben Fachbereich */

.bma-points-kpi,
.bma-points-kpi:nth-child(1),
.bma-points-kpi:nth-child(2),
.bma-points-kpi:nth-child(3) {
    min-width:
        0 !important;

    min-height:
        92px !important;

    border:
        1px solid #dfe3e6 !important;

    border-top:
        3px solid
        var(--bma-area-points) !important;

    border-radius:
        11px !important;

    background:
        #fff !important;
}


/* Abstand exakt wie Feuerwehr:
   Statusbar -> Karten */

.bma-points-summary {
    margin-bottom:
        10px !important;
}


.bma-points-summary
+ .bma-points-kpi-grid {
    margin-top:
        0 !important;
}


@media (max-width: 900px) {

    .bma-points-kpi-grid {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · SIGNALE & STEUERUNGEN
   NAV-KACHELN AUF FEUERWEHR-MASTER · 4 SPALTEN
============================================================ */

.bma-points-kpi-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap:
        10px !important;

    width:
        100% !important;

    margin:
        0 !important;

    padding:
        0 !important;
}


/* identische Kartenbreite / Höhe wie Feuerwehr-Raster */

.bma-points-kpi {
    width:
        100% !important;

    min-width:
        0 !important;

    min-height:
        92px !important;

    box-sizing:
        border-box !important;
}


@media (max-width: 1200px) {

    .bma-points-kpi-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 900px) {

    .bma-points-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 600px) {

    .bma-points-kpi-grid {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · VERBINDLICHES 4ER RASTER
   Signale & Steuerungen = exakt Feuerwehr-Master
============================================================ */

.object-area .bma-points-kpi-grid {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    width:
        100% !important;

    max-width:
        none !important;

    min-width:
        0 !important;

    gap:
        10px !important;

    margin:
        0 !important;

    padding:
        0 !important;

    transform:
        none !important;
}


/* Jede Kachel exakt eine Grid-Spalte */

.object-area
.bma-points-kpi-grid
> .bma-points-kpi {
    width:
        auto !important;

    max-width:
        none !important;

    min-width:
        0 !important;

    grid-column:
        auto !important;
}


/* Desktop bleibt IMMER 4er */

@media (min-width: 1201px) {

    .object-area .bma-points-kpi-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

}


/* Erst darunter responsive */

@media (max-width: 1200px) {

    .object-area .bma-points-kpi-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 900px) {

    .object-area .bma-points-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 600px) {

    .object-area .bma-points-kpi-grid {
        grid-template-columns:
            1fr !important;
    }

}



/* ============================================================
   MAMO BMA · VERBINDLICHE BEREICHSFARBEN V1
============================================================ */

:root {
    --bma-area-center:      #343a40;
    --bma-area-detectors:   #4f8df6;
    --bma-area-power:       #2fa66a;
    --bma-area-fire:        #ef3d36;
    --bma-area-alarm:       #e58a2f;
    --bma-area-bus:         #66717b;
    --bma-area-points:      #315f73;
    --bma-area-replacement: #8763c7;
    --bma-area-deadlines:   #d5a11e;
}


/* ============================================================
   HAUPTKACHELN · NUR OBERER STREIFEN
============================================================ */

.bma-system-heart-card.bma-area-center {
    border-top-color:
        var(--bma-area-center) !important;
}

.bma-system-heart-card.bma-area-detectors {
    border-top-color:
        var(--bma-area-detectors) !important;
}

.bma-system-heart-card.bma-area-power {
    border-top-color:
        var(--bma-area-power) !important;
}

.bma-system-heart-card.bma-area-fire {
    border-top-color:
        var(--bma-area-fire) !important;
}

.bma-system-heart-card.bma-area-alarm {
    border-top-color:
        var(--bma-area-alarm) !important;
}

.bma-system-heart-card.bma-area-bus {
    border-top-color:
        var(--bma-area-bus) !important;
}

.bma-system-heart-card.bma-area-points {
    border-top-color:
        var(--bma-area-points) !important;
}

.bma-system-heart-card.bma-area-replacement {
    border-top-color:
        var(--bma-area-replacement) !important;
}

.bma-system-heart-card.bma-area-deadlines {
    border-top-color:
        var(--bma-area-deadlines) !important;
}



/* ============================================================
   MAMO BMA · VERBINDLICHE BEREICHSFARBEN
   UNTERLIEGENDE TECHNIKKARTEN V1

   Nur der obere Streifen wird eingefärbt.
   Statusbars bleiben unverändert.
============================================================ */


/* ------------------------------------------------------------
   FEUERWEHRTECHNIK
   FAT · FBF · FSD · FSE · FSK · ÜE
------------------------------------------------------------ */

.object-area
.bma-fire-compact-card:not(.bma-alarm-card):not(.bma-bus-card):not(.bma-power-card) {
    border-top-color:
        var(--bma-area-fire) !important;
}


/* ------------------------------------------------------------
   ALARMIERUNG
   akustisch · optisch · Sockelsignalgeber
------------------------------------------------------------ */

.object-area
.bma-fire-compact-card.bma-alarm-card {
    border-top-color:
        var(--bma-area-alarm) !important;
}


/* ------------------------------------------------------------
   BUS & MODULE
   BUS · Koppler · I/O · Peripherie · Relais
------------------------------------------------------------ */

.object-area
.bma-fire-compact-card.bma-bus-card {
    border-top-color:
        var(--bma-area-bus) !important;
}


/* ------------------------------------------------------------
   ENERGIEVERSORGUNG
   Netzteile · Akkus / Batterien
------------------------------------------------------------ */

.object-area
.bma-fire-compact-card.bma-power-card,
.object-area
.bma-power-card {
    border-top-color:
        var(--bma-area-power) !important;
}


/* ------------------------------------------------------------
   SIGNALE & STEUERUNGEN
   Alle Navigationskacheln = EIN Bereich = EINE Farbe
------------------------------------------------------------ */

.object-area
.bma-points-kpi,
.object-area
.bma-points-kpi:nth-child(1),
.object-area
.bma-points-kpi:nth-child(2),
.object-area
.bma-points-kpi:nth-child(3),
.object-area
.bma-points-kpi:nth-child(4) {
    border-top-color:
        var(--bma-area-points) !important;
}



/* ============================================================
   MAMO BMA · MELDERGRUPPEN + MELDER
   gleiche Bereichsfarbe wie Hauptkacheln
============================================================ */


/* Meldergruppen */

.object-area
.bma-group-compact-card,
.object-area
.bma-groups-compact-grid
.technology-system-card {
    border-top-color:
        var(--bma-area-detectors) !important;
}


/* Melder */

.object-area
.bma-detector-object-card,
.object-area
.detector-object-card,
.object-area
.bma-detector-card,
.object-area
.technology-system-card.bma-detector-card {
    border-top-color:
        var(--bma-area-detectors) !important;
}



/* ============================================================
   MAMO BMA · MELDER
   gleiche Systemfarbe wie Meldergruppen
============================================================ */

.object-area
.bma-detector-compact-card {
    border-top-color:
        var(--bma-area-detectors) !important;
}



/* ============================================================
   MAMO BMA · MELDERTAUSCH
   Fachkarte = gleiche Farbe wie Hauptkachel
============================================================ */

.object-area
.detector-population-overview-grid
> * {
    border-top-color:
        var(--bma-area-replacement) !important;
}



/* ============================================================
   MAMO RWA · VERBINDLICHE BEREICHSFARBEN V2
============================================================ */

:root {
    --rwa-color-control:      #343a40; /* Anthrazit */
    --rwa-color-zones:        #4f8df6; /* Blau */
    --rwa-color-groups:       #256b78; /* Petrol */
    --rwa-color-circuits:     #55738d; /* Stahlblau */

    --rwa-color-drives:       #2fa66a; /* Grün */
    --rwa-color-openings:     #2aa6a0; /* Türkis */

    --rwa-color-actuation:    #e58a2f; /* Orange */
    --rwa-color-power:        #d8a928; /* Amber */

    --rwa-color-ventilation:  #4898c8; /* Hellblau */
    --rwa-color-pneumatic:    #7a62b3; /* Violett */

    --rwa-color-mechanical:   #9b4a57; /* Bordeaux */
    --rwa-color-points:       #247687; /* Dunkelcyan */

    --rwa-color-lifecycle:    #c79618; /* Gold */
}


/* RWA Hauptkacheln */

.bma-system-heart-card.rwa-area-control {
    border-top-color:
        var(--rwa-color-control) !important;
}

.bma-system-heart-card.rwa-area-zones {
    border-top-color:
        var(--rwa-color-zones) !important;
}

.bma-system-heart-card.rwa-area-groups {
    border-top-color:
        var(--rwa-color-groups) !important;
}

.bma-system-heart-card.rwa-area-circuits {
    border-top-color:
        var(--rwa-color-circuits) !important;
}

.bma-system-heart-card.rwa-area-drives {
    border-top-color:
        var(--rwa-color-drives) !important;
}

.bma-system-heart-card.rwa-area-openings {
    border-top-color:
        var(--rwa-color-openings) !important;
}

.bma-system-heart-card.rwa-area-actuation {
    border-top-color:
        var(--rwa-color-actuation) !important;
}

.bma-system-heart-card.rwa-area-power {
    border-top-color:
        var(--rwa-color-power) !important;
}

.bma-system-heart-card.rwa-area-ventilation {
    border-top-color:
        var(--rwa-color-ventilation) !important;
}

.bma-system-heart-card.rwa-area-pneumatic {
    border-top-color:
        var(--rwa-color-pneumatic) !important;
}

.bma-system-heart-card.rwa-area-mechanical {
    border-top-color:
        var(--rwa-color-mechanical) !important;
}

.bma-system-heart-card.rwa-area-points {
    border-top-color:
        var(--rwa-color-points) !important;
}

.bma-system-heart-card.rwa-area-lifecycle {
    border-top-color:
        var(--rwa-color-lifecycle) !important;
}



/* ============================================================
   MAMO RWA · RAUCHBEREICHE · MASTER V1
============================================================ */

.rwa-zones-work-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin:28px 0 12px;
}

.rwa-zones-work-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
}

.rwa-zones-result-count {
    font-weight:700;
    color:#747b82;
}


/* FILTER */

.rwa-zones-filter {
    display:grid;
    grid-template-columns:minmax(260px,2fr) 1fr 1fr auto;
    gap:10px;
    align-items:end;

    padding:12px;
    margin:0 0 12px;

    border:1px solid #e1e4e7;
    border-radius:11px;
    background:#fff;
}

.rwa-zones-filter label {
    display:block;
    margin-bottom:6px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#7d848b;
}

.rwa-zones-filter input,
.rwa-zones-filter select {
    width:100%;
}

.rwa-zones-filter-actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    white-space:nowrap;
}

.rwa-zones-filter-actions > a {
    font-size:13px;
    font-weight:700;
    color:#858b91;
    text-decoration:none;
}


/* 4ER RASTER */

.rwa-zones-compact-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    width:100%;
}

.rwa-zone-card-shell {
    position:relative;
    min-width:0;
}

.rwa-zone-compact-card {
    display:flex;
    flex-direction:column;

    min-height:155px;
    height:100%;

    padding:14px 14px 46px;

    border:1px solid #e1e4e7;
    border-top:3px solid var(--rwa-color-zones);
    border-radius:11px;

    background:#fff;

    text-decoration:none;
    color:inherit;
}

.rwa-zone-card-top {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
}

.rwa-zone-card-top strong {
    display:block;
    font-size:15px;
    line-height:1.25;
}

.rwa-zone-card-top small {
    display:block;
    margin-top:3px;
    color:#8a9096;
    font-weight:700;
}

.rwa-zone-code {
    flex:0 0 auto;
    padding:4px 8px;

    border-radius:999px;
    background:#eef4ff;

    color:var(--rwa-color-zones);

    font-size:10px;
    font-weight:900;
    letter-spacing:.06em;
}


/* Standort-Chips */

.rwa-zone-tags {
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    margin-top:12px;
}

.rwa-zone-tags span {
    padding:4px 7px;
    border-radius:7px;
    background:#f1f2f3;

    color:#60666c;
    font-size:10px;
    font-weight:700;
}


/* Gruppen / Leitungen */

.rwa-zone-card-stats {
    display:flex;
    flex-wrap:wrap;
    gap:12px;

    margin-top:12px;

    color:#666d73;
    font-size:11px;
}

.rwa-zone-card-stats strong {
    color:#252a2e;
}


/* Entfernen immer unten rechts */

.rwa-zone-remove {
    position:absolute;
    right:9px;
    bottom:9px;

    min-height:28px;
    padding:5px 10px;

    border:0;
    border-radius:8px;

    background:#fff0f0;
    color:#e23a35;

    font-size:10px;
    font-weight:800;

    cursor:pointer;
}

.rwa-zone-remove.is-disabled {
    background:#f0f1f2;
    color:#b1b5b9;
    cursor:not-allowed;
}


/* Anlageformular */

.rwa-zone-create {
    margin-top:18px;
}


/* Responsive */

@media (max-width: 1250px) {

    .rwa-zones-compact-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .rwa-zones-filter {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 760px) {

    .rwa-zones-work-head,
    .rwa-zones-work-actions {
        align-items:stretch;
        flex-direction:column;
    }

    .rwa-zones-compact-grid,
    .rwa-zones-filter {
        grid-template-columns:1fr;
    }
}



/* ============================================================
   MAMO RWA · RAUCHBEREICHE · MASTER POLISH V1
============================================================ */

/* Arbeitskopf exakt kompakt wie BMA */

.rwa-zones-work-head {
    min-height:38px !important;
}


/* + Rauchbereich darf keine große Aktionskachel werden */

.rwa-zones-work-actions .object-data-save {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    min-width:0 !important;
    min-height:36px !important;
    height:36px !important;

    padding:0 14px !important;
    margin:0 !important;

    line-height:1 !important;
    white-space:nowrap !important;
}


/* Count und Button auf einer Linie */

.rwa-zones-work-actions {
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-end !important;
}


/* Filter ebenfalls auf BMA-Niveau kompakt halten */

.rwa-zones-filter .object-data-save {
    width:auto !important;
    min-height:36px !important;
    height:36px !important;
    padding:0 14px !important;
}


/* Kartenhöhe verbindlich */

.rwa-zone-compact-card {
    min-height:145px !important;
}


/* Bereichsfarbe verbindlich */

.rwa-zone-compact-card {
    border-top-color:
        var(--rwa-color-zones) !important;
}



/* ============================================================
   MAMO RWA · RAUCHBEREICH HINZUFÜGEN
   geschlossen vollständig ausblenden
============================================================ */

.rwa-zone-create:not([open]) {
    display:none !important;
}

.rwa-zone-create[open] {
    display:block !important;
}



/* ============================================================
   MAMO RWA · RAUCHBEREICHE
   BMA MELDERGRUPPEN = VERBINDLICHER CI-MASTER
============================================================ */


/* ------------------------------------------------------------
   Arbeitsbereich
------------------------------------------------------------ */

.rwa-zones-work-head.bma-groups-work-head {
    margin-top: 26px !important;
    margin-bottom: 10px !important;
}


/* Anzahl */

.rwa-zones-result-count {
    font-size: 12px !important;
    line-height: 1.2 !important;
}


/* Aktionsbutton exakt kompakt */

.rwa-zones-work-actions .object-data-save {
    width: auto !important;
    min-width: 0 !important;

    height: 31px !important;
    min-height: 31px !important;

    padding: 0 11px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
    line-height: 1 !important;
}


/* ------------------------------------------------------------
   FILTER · BMA COMPACT
------------------------------------------------------------ */

.rwa-zones-filter.bma-groups-filter {
    display: grid !important;

    grid-template-columns:
        minmax(300px, 2.4fr)
        minmax(150px, .85fr)
        minmax(150px, .85fr)
        auto !important;

    gap: 8px !important;

    padding: 9px 10px !important;
    margin: 0 0 10px !important;

    border-radius: 9px !important;
}


/* Labels kleiner */

.rwa-zones-filter label {
    margin-bottom: 4px !important;

    font-size: 8px !important;
    line-height: 1 !important;

    letter-spacing: .08em !important;
}


/* Inputs / Selects wie BMA */

.rwa-zones-filter input,
.rwa-zones-filter select {
    height: 31px !important;
    min-height: 31px !important;

    padding: 0 10px !important;

    border-radius: 7px !important;

    font-size: 10px !important;
    line-height: 1.1 !important;
}


/* Reset */

.rwa-zones-filter-actions > a {
    font-size: 9px !important;
    line-height: 1.1 !important;
}


/* Filterbutton */

.rwa-zones-filter-actions .object-data-save {
    height: 31px !important;
    min-height: 31px !important;

    padding: 0 11px !important;

    border-radius: 7px !important;

    font-size: 9px !important;
}


/* ------------------------------------------------------------
   KARTENRASTER
   Exakt wie aktueller BMA-Meldergruppen-Master
------------------------------------------------------------ */

.object-area .rwa-zones-compact-grid {
    display: grid !important;

    grid-template-columns:
        repeat(5, minmax(0, 1fr)) !important;

    gap: 9px !important;
}


/* ------------------------------------------------------------
   KARTE
------------------------------------------------------------ */

.object-area .rwa-zone-compact-card {
    min-width: 0 !important;

    min-height: 100px !important;
    height: 100% !important;

    padding:
        10px
        11px
        32px !important;

    border-radius: 9px !important;

    border-top:
        3px solid
        var(--rwa-color-zones) !important;
}


/* Titel */

.rwa-zone-card-top strong {
    font-size: 11px !important;
    line-height: 1.2 !important;
}


/* Kennung Z01 */

.rwa-zone-card-top small {
    margin-top: 2px !important;

    font-size: 8px !important;
    line-height: 1.1 !important;
}


/* RWA Badge */

.rwa-zone-code {
    padding: 3px 6px !important;

    border-radius: 7px !important;

    font-size: 7px !important;
    line-height: 1 !important;
}


/* Standort-Chips */

.rwa-zone-tags {
    gap: 4px !important;
    margin-top: 7px !important;
}

.rwa-zone-tags span {
    padding: 3px 5px !important;

    border-radius: 6px !important;

    font-size: 7px !important;
    line-height: 1.1 !important;
}


/* Gruppen / Leitungen */

.rwa-zone-card-stats {
    gap: 9px !important;

    margin-top: 7px !important;

    font-size: 8px !important;
    line-height: 1.15 !important;
}


/* Entfernen exakt kompakt */

.rwa-zone-remove {
    right: 7px !important;
    bottom: 7px !important;

    height: 23px !important;
    min-height: 23px !important;

    padding: 0 8px !important;

    border-radius: 7px !important;

    font-size: 8px !important;
}


/* ------------------------------------------------------------
   RESPONSIVE = GLEICHES VERHALTEN WIE BMA
------------------------------------------------------------ */

@media (max-width: 1350px) {

    .object-area .rwa-zones-compact-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 1050px) {

    .object-area .rwa-zones-compact-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

    .rwa-zones-filter.bma-groups-filter {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .rwa-zones-filter-search {
        grid-column: 1 / -1;
    }
}


@media (max-width: 760px) {

    .object-area .rwa-zones-compact-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

    .rwa-zones-filter.bma-groups-filter {
        grid-template-columns: 1fr !important;
    }

    .rwa-zones-filter-search {
        grid-column: auto;
    }
}


@media (max-width: 520px) {

    .object-area .rwa-zones-compact-grid {
        grid-template-columns:
            1fr !important;
    }
}


/* ============================================================
   RWA · GRUPPEN · COMPACT MASTER V1
   ============================================================ */

.rwa-groups-master {
    margin-top: 2px;
}

.rwa-groups-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 28px;
    border: 1px solid #dedbd7;
    border-radius: 10px;
    background: #fff;
}

.rwa-groups-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #2c3236;
    color: #fff;
    font-weight: 800;
}

.rwa-groups-info strong {
    display: block;
    margin-bottom: 3px;
}

.rwa-groups-info p {
    margin: 0;
    color: #74787b;
}

.rwa-groups-add {
    text-decoration: none;
    white-space: nowrap;
}

.rwa-groups-filter {
    margin-bottom: 18px;
}

.rwa-groups-filter-reset {
    align-self: end;
    padding-bottom: 11px;
    text-decoration: none;
    color: #777;
    white-space: nowrap;
}

.rwa-group-compact-card {
    border-top-color:
        var(--rwa-color-groups, #256b78);
}

.rwa-group-trade {
    color: var(--rwa-color-groups, #256b78);
    background: rgba(37, 107, 120, .09);
}

.rwa-group-compact-location span:first-child {
    font-weight: 700;
}

@media (min-width: 1550px) {
    .rwa-groups-compact-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}


/* ============================================================
   RWA · GRUPPEN · BMA MASTER ANGLEICHUNG V2
   ============================================================ */

/* INFOBOX KOMPAKT WIE BMA */

.object-area .rwa-groups-info {
    padding: 10px 12px !important;
    margin-bottom: 24px !important;
    gap: 10px !important;
    min-height: 0 !important;
}

.object-area .rwa-groups-info-icon {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
}

.object-area .rwa-groups-info strong {
    margin-bottom: 2px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

.object-area .rwa-groups-info p {
    margin: 0 !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
}


/* ARBEITSBEREICH EXAKTER BMA-STIL */

.object-area .rwa-groups-work-head {
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    align-items: center !important;
}

.object-area .rwa-groups-work-head > strong {
    color: #e8443d !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}

.object-area .rwa-groups-work-actions {
    font-size: 10px !important;
}


/* ADD BUTTON SCHMALER */

.object-area .rwa-groups-add {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    line-height: 30px !important;
}


/* FILTER WIE BMA */

.object-area .rwa-groups-filter {
    display: grid !important;
    grid-template-columns:
        minmax(0, 2.4fr)
        minmax(180px, .9fr)
        auto
        auto !important;

    gap: 10px !important;
    align-items: end !important;

    padding: 10px 12px !important;
    margin-bottom: 14px !important;
}

.object-area .rwa-groups-filter label {
    display: block !important;
    margin-bottom: 4px !important;

    color: #858a8e !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
}

.object-area .rwa-groups-filter input,
.object-area .rwa-groups-filter select {
    height: 32px !important;
    min-height: 32px !important;

    padding: 0 10px !important;

    font-size: 10px !important;
    border-radius: 8px !important;
}

.object-area .rwa-groups-filter-reset {
    padding: 0 2px 9px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
}

.object-area .rwa-groups-filter > button {
    width: auto !important;
    min-width: 72px !important;
    height: 32px !important;
    min-height: 32px !important;

    padding: 0 13px !important;

    border-radius: 8px !important;

    font-size: 9px !important;
}


/* KARTEN · PETROL STATT BLAU */

.object-area
.rwa-groups-compact-grid
.rwa-group-compact-card {
    border-top-color:
        var(--rwa-color-groups, #256b78) !important;
}

.object-area
.rwa-group-compact-card
.rwa-group-trade {
    color:
        var(--rwa-color-groups, #256b78) !important;

    background:
        rgba(37,107,120,.10) !important;
}


/* KARTENTEXT NOCH NÄHER AN BMA */

.object-area .rwa-group-compact-top strong {
    font-size: 11px !important;
}

.object-area .rwa-group-compact-top span {
    font-size: 8px !important;
}

.object-area .rwa-group-compact-location {
    gap: 5px !important;
}

.object-area .rwa-group-compact-location span {
    font-size: 8px !important;
}

.object-area .rwa-group-compact-footer {
    font-size: 8px !important;
}


/* RESPONSIVE */

@media (max-width: 1180px) {
    .object-area .rwa-groups-filter {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }

    .object-area .rwa-groups-filter-search {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 760px) {
    .object-area .rwa-groups-filter {
        grid-template-columns: 1fr !important;
    }

    .object-area .rwa-groups-filter-search {
        grid-column: auto !important;
    }
}


/* ============================================================
   RWA · LEITUNGEN · COMPACT MASTER V1
   ============================================================ */

.object-area
.rwa-circuits-compact-grid
.rwa-circuit-compact-card {
    border-top-color:
        var(--rwa-color-circuits, #55738d) !important;
}

.object-area
.rwa-circuit-compact-card
.rwa-circuit-trade {
    color:
        var(--rwa-color-circuits, #55738d) !important;

    background:
        rgba(85,115,141,.10) !important;
}

.object-area .rwa-circuits-filter {
    grid-template-columns:
        minmax(0,2fr)
        minmax(160px,.8fr)
        minmax(160px,.8fr)
        auto
        auto !important;
}

.object-area .rwa-circuits-add.is-disabled {
    opacity: .45;
    pointer-events: none;
}

@media (max-width: 1250px) {
    .object-area .rwa-circuits-filter {
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }

    .object-area .rwa-circuits-filter
    .bma-groups-filter-search {
        grid-column:
            1 / -1 !important;
    }
}

@media (max-width: 760px) {
    .object-area .rwa-circuits-filter {
        grid-template-columns:
            1fr !important;
    }

    .object-area .rwa-circuits-filter
    .bma-groups-filter-search {
        grid-column:
            auto !important;
    }
}


/* ============================================================
   RWA · LEITUNGEN · BMA MASTER ANGLEICHUNG V2
   ============================================================ */

.object-area .rwa-circuits-work-head {
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    align-items: center !important;
}

.object-area .rwa-circuits-work-head > strong {
    color: #e8443d !important;
    font-size: 8px !important;
    font-weight: 950 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
}

.object-area .rwa-circuits-work-actions {
    font-size: 10px !important;
    font-weight: 700 !important;
}

.object-area .rwa-circuits-add {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    line-height: 30px !important;
}


/* ============================================================
   RWA · LEITUNGEN · FILTERBAR FINAL V2
   BMA-MELDERGRUPPEN ALS MASTER
   ============================================================ */

.object-area .rwa-circuits-filter {
    display: grid !important;

    grid-template-columns:
        minmax(0, 2.35fr)
        minmax(150px, .85fr)
        minmax(150px, .85fr)
        minmax(150px, .85fr)
        auto
        auto !important;

    gap: 9px !important;
    align-items: end !important;

    padding: 10px 12px !important;
    margin-bottom: 14px !important;
}


/* Suche */

.object-area
.rwa-circuits-filter
.bma-groups-filter-search {
    min-width: 0 !important;
}


/* Labels exakt kompakt */

.object-area .rwa-circuits-filter label {
    display: block !important;

    margin-bottom: 4px !important;

    color: #858a8e !important;

    font-size: 7px !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
}


/* Inputs / Selects gleiche Höhe */

.object-area .rwa-circuits-filter input,
.object-area .rwa-circuits-filter select {
    width: 100% !important;

    height: 32px !important;
    min-height: 32px !important;

    padding: 0 10px !important;

    border-radius: 8px !important;

    font-size: 10px !important;
}


/* Reset */

.object-area
.rwa-circuits-filter
.rwa-groups-filter-reset {
    align-self: end !important;

    padding:
        0
        2px
        9px !important;

    white-space: nowrap !important;

    font-size: 9px !important;
    font-weight: 700 !important;
}


/* Filtern */

.object-area
.rwa-circuits-filter
> button {
    width: auto !important;
    min-width: 72px !important;

    height: 32px !important;
    min-height: 32px !important;

    padding: 0 13px !important;

    border-radius: 8px !important;

    font-size: 9px !important;
}


/* Responsive */

@media (max-width: 1250px) {

    .object-area .rwa-circuits-filter {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }

    .object-area
    .rwa-circuits-filter
    .bma-groups-filter-search {
        grid-column:
            1 / -1 !important;
    }
}


@media (max-width: 760px) {

    .object-area .rwa-circuits-filter {
        grid-template-columns:
            1fr !important;
    }

    .object-area
    .rwa-circuits-filter
    .bma-groups-filter-search {
        grid-column:
            auto !important;
    }
}


/* ============================================================
   MAMO RWA · DRIVE CARDS V1
   ============================================================ */

.technology-system-card.bma-fire-compact-card.rwa-drive-compact-card {
    border-top-color:
        var(--rwa-color-drives) !important;
}

.technology-system-card.bma-fire-compact-card.rwa-drive-compact-card::before {
    background:
        var(--rwa-color-drives) !important;
}


/* ============================================================
   MAMO RWA · DRIVE CARD FINAL COLOR V2
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-drive-compact-card {
    border-top-color:
        var(--rwa-color-drives) !important;
}


/* ============================================================
   MAMO RWA · DRIVE CARD AREA COLOR FINAL V3
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-drive-compact-card:not(.bma-alarm-card):not(.bma-bus-card):not(.bma-power-card) {
    border-top-color:
        var(--rwa-color-drives) !important;
}


/* ============================================================
   MAMO RWA · KOMPAKTE FELDHINWEISE V1
   ============================================================ */

.rwa-field-hint {
    display:block;
    margin-top:5px;
    font-size:10px !important;
    line-height:1.35 !important;
    color:#8a9096 !important;
    font-weight:500 !important;
}


/* ============================================================
   MAMO RWA · ANTRIEBE GRID V1
   Maximal 4 Karten pro Reihe
   ============================================================ */

.object-area
.bma-technical-compact-grid
> .rwa-drive-compact-card {
    min-width:0;
}

.object-area
.bma-technical-compact-grid:has(> .rwa-drive-compact-card) {
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1400px) {
    .object-area
    .bma-technical-compact-grid:has(> .rwa-drive-compact-card) {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1050px) {
    .object-area
    .bma-technical-compact-grid:has(> .rwa-drive-compact-card) {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .object-area
    .bma-technical-compact-grid:has(> .rwa-drive-compact-card) {
        grid-template-columns:
            1fr !important;
    }
}


/* ============================================================
   MAMO RWA · ANTRIEBSKARTEN
   Ausrichtung analog BMA-Komponentenkarten
   ============================================================ */

.object-area
.rwa-drive-compact-card
.technology-system-data > div {
    display:grid !important;
    grid-template-columns:
        92px
        minmax(0, 1fr) !important;
    align-items:start !important;
    column-gap:14px !important;
}

.object-area
.rwa-drive-compact-card
.technology-system-data > div > span {
    min-width:0 !important;
    text-align:left !important;
}

.object-area
.rwa-drive-compact-card
.technology-system-data > div > strong {
    min-width:0 !important;
    text-align:left !important;
    justify-self:start !important;
    overflow-wrap:anywhere !important;
}


/* ============================================================
   MAMO RWA · AUSLÖSUNG & BEDIENUNG V1
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-actuation-compact-card:not(.bma-alarm-card):not(.bma-bus-card):not(.bma-power-card) {
    border-top-color:
        var(--rwa-color-actuation) !important;
}


.object-area
.rwa-actuation-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;
}


.object-area
.rwa-actuation-compact-card
.technology-system-data > div {
    display:grid !important;
    grid-template-columns:
        92px
        minmax(0, 1fr) !important;
    align-items:start !important;
    column-gap:14px !important;
}


.object-area
.rwa-actuation-compact-card
.technology-system-data > div > span,
.object-area
.rwa-actuation-compact-card
.technology-system-data > div > strong {
    text-align:left !important;
    min-width:0 !important;
}


@media (max-width: 1400px) {
    .object-area
    .rwa-actuation-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 1050px) {
    .object-area
    .rwa-actuation-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }
}


@media (max-width: 700px) {
    .object-area
    .rwa-actuation-grid {
        grid-template-columns:
            1fr !important;
    }
}


/* ============================================================
   MAMO RWA · ENERGIEVERSORGUNG · POWER CARDS V1
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-power-compact-card {
    border-top-color:
        var(--rwa-color-power) !important;
}

.object-area
.rwa-power-compact-card
.technology-system-type {
    color:
        var(--rwa-color-power) !important;
}



/* ============================================================
   MAMO RWA · LÜFTUNG & WETTER · CARD FINAL COLOR V1
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-ventilation-compact-card:not(.bma-alarm-card):not(.bma-bus-card):not(.bma-power-card) {
    border-top-color:
        var(--rwa-color-ventilation) !important;
}


.object-area
.rwa-ventilation-compact-card
.technology-system-type {
    color:
        var(--rwa-color-ventilation) !important;
}



/* ============================================================
   MAMO RWA · LÜFTUNG & WETTER · EINHEITLICHE KARTENHÖHE
   ============================================================ */

.object-area
.bma-power-grid
.rwa-ventilation-compact-card {
    min-height: 325px !important;
    height: 325px !important;
    max-height: 325px !important;
}


/* ============================================================
   MAMO RWA · LÜFTUNG & WETTER · KARTENHÖHE FINAL V2
   ============================================================ */

.object-area
.bma-power-grid
.rwa-ventilation-compact-card {
    min-height: 300px !important;
    height: 300px !important;
    max-height: 300px !important;
}



/* ============================================================
   MAMO RWA · PNEUMATIK · CARD COLOR V1
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-pneumatic-compact-card:not(.bma-alarm-card):not(.bma-bus-card):not(.bma-power-card) {
    border-top-color:
        var(--rwa-color-pneumatic) !important;
}


.object-area
.rwa-pneumatic-compact-card
.technology-system-type {
    color:
        var(--rwa-color-pneumatic) !important;
}



/* ============================================================
   MAMO RWA · MASCHINELLE ENTRAUCHUNG · CARD COLOR V1
   ============================================================ */

.object-area
.technology-system-card.bma-fire-compact-card.rwa-mechanical-compact-card:not(.bma-alarm-card):not(.bma-bus-card):not(.bma-power-card) {
    border-top-color:
        var(--rwa-color-mechanical) !important;
}


.object-area
.rwa-mechanical-compact-card
.technology-system-type {
    color:
        var(--rwa-color-mechanical) !important;
}



/* ============================================================
   MAMO RWA · ANLAGENVERKNÜPFUNGEN · CARD COLOR V1
   ============================================================ */

.object-area
.technology-system-card.rwa-system-link-card {
    border-top-color: #137480 !important;
}



/* ============================================================
   MAMO RWA · SIGNALE & SCHNITTSTELLEN · POINT CARDS V1
   ============================================================ */

.object-area
.technology-system-card.rwa-point-compact-card {
    border-top-color: #137480 !important;
}



/* ============================================================
   MAMO ELA · VERSTÄRKER COMPACT CARD V2
   4er-Karte · reduzierte, aber informative Ansicht
   ============================================================ */

.object-area
.ela-amplifier-card-data
> div:first-child {
    display: none !important;
}


/*
 * Bereich / Raum gehört ins Detail.
 * In der Übersicht reichen Gebäude + Etage.
 */
.object-area
.ela-amplifier-card-data
> div:nth-child(4) {
    display: none !important;
}


/*
 * Datenzeilen kompakt halten.
 */
.object-area
.ela-amplifier-card-data {
    margin-top: 8px !important;
}


.object-area
.ela-amplifier-card-data
> div {
    min-height: 0 !important;
    padding: 5px 0 !important;
}


/*
 * Herstellerzeile kompakt.
 */
.object-area
.ela-amplifier-card-stats {
    margin-top: 6px !important;
    padding-bottom: 22px !important;
}


/*
 * Genug Platz für Entfernen unten rechts.
 */
.object-area
.bma-component-card-shell
> .rwa-circuit-compact-card {
    padding-bottom: 38px !important;
}



/* ============================================================
   MAMO ELA · ENERGIEVERSORGUNG · FINAL V1
   Referenz: BMA Energieversorgung
   ============================================================ */


/*
 * KPI-Karten:
 * ELA-Energieversorgung bewusst einheitlich grün.
 */

.object-area
.ela-power-summary
.bma-tech-summary-card {
    border-left-color:
        var(--bma-area-power) !important;
}


/*
 * 4 Netzteile pro Reihe – identisch zum BMA-Power-Grid.
 */

.object-area
.ela-power-grid {
    display:
        grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap:
        10px !important;

    align-items:
        start !important;
}


/*
 * Netzteilkarte:
 * gleicher Aufbau und gleiche feste Höhe wie BMA,
 * aber Power-Akzent verbindlich grün.
 */

.object-area
.technology-system-card
.ela-power-compact-card {
    height:
        315px !important;

    min-height:
        315px !important;

    max-height:
        315px !important;

    border-top-color:
        var(--bma-area-power) !important;
}


/*
 * Gewerkebadge auf der Netzteilkarte ebenfalls Power-Grün.
 */

.object-area
.ela-power-compact-card
.technology-system-type {
    color:
        var(--bma-area-power) !important;

    background:
        rgba(35, 168, 103, .10) !important;
}


/*
 * Falls ein späterer allgemeiner FIRE-Override die Farbe wieder
 * überschreibt, bleibt ELA-Power verbindlich grün.
 */

.object-area
.technology-system-card.bma-fire-compact-card.bma-power-card.ela-power-compact-card {
    border-top-color:
        var(--bma-area-power) !important;
}


/* Responsive wie bestehende technische Raster */

@media (max-width: 1400px) {

    .object-area
    .ela-power-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 1050px) {

    .object-area
    .ela-power-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
    }

}


@media (max-width: 700px) {

    .object-area
    .ela-power-grid {
        grid-template-columns:
            1fr !important;
    }

}
