:root {
    --petrol: #0e494d;
    --petrol-dark: #07363a;
    --petrol-soft: #e8f1f2;

    --navy: #071941;
    --yellow: #ffb800;
    --green: #118847;
    --red: #d64545;
    --blue: #1967c2;

    --bg: #f4f7fa;
    --card: #ffffff;
    --line: #e3eaf1;
    --text: #071941;
    --muted: #7b8797;

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;

    --shadow-soft: 0 8px 24px rgba(7, 25, 65, .045);
    --shadow-card: 0 18px 55px rgba(7, 25, 65, .075);

    --sidebar-width: 166px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--petrol-dark), var(--petrol));
    color: #ffffff;
    padding: 26px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
}

.brand {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin: 0 0 50px 10px;
    line-height: 1;
}

.brand span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--yellow);
    border-radius: 99px;
    margin-left: 3px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    padding: 13px 12px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 13px;
    transition: .18s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,.10);
}

.nav-item.is-active {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 14px 28px rgba(255,184,0,.26);
}

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

.logout {
    margin-top: auto;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 14px 12px;
}

/* Layout */

.main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 30px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}

.page-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: -.6px;
    text-transform: uppercase;
    font-weight: 600;
}

.page-header p {
    margin: 8px 0 0;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--navy);
}

/* Toolbar */

.toolbar,
.fyzio-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.month-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--navy);
}

.month-icon {
    font-size: 14px;
}

.month-pill strong {
    font-size: 13px;
    font-weight: 500;
}

.month-input-clean {
    width: 23px;
    height: 23px;
    border: 0;
    background: transparent;
    color: transparent;
    cursor: pointer;
    padding: 0;
}

.month-input-clean::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
}

.btn,
.toolbar-btn,
.bottom-bar button,
.primary {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 17px;
    background: #ffffff;
    color: var(--text);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    transition: .18s ease;
}

.btn:hover,
.toolbar-btn:hover,
.bottom-bar button:hover,
.primary:hover {
    transform: translateY(-1px);
}

.primary,
.btn.primary,
.toolbar-btn.primary-action,
.bottom-bar button {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--navy);
}

/* Cards */

.kpi-grid {
    display: grid;
    gap: 18px;
}

.cards-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 22px;
}

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

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

.kpi-card {
    min-height: 150px;
    padding: 22px 22px 10px;
}

.kpi-card span {
    display: block;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 11px;
    color: var(--muted);
}

.kpi-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    margin: 10px 0 8px;
    font-weight: 650;
}

.kpi-card small {
    color: var(--muted);
    font-weight: 400;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy);
}

.metric-value {
    font-size: 30px;
    line-height: 1.05;
    font-weight: 650;
    margin: 14px 0 8px;
}

.metric-value.big {
    font-size: 42px;
}

.metric-change {
    font-size: 13px;
    font-weight: 500;
}

.good {
    color: var(--green);
}

.bad {
    color: var(--red);
}

.neutral {
    color: var(--muted);
}

.sparkline {
    height: 38px !important;
    width: 100% !important;
    margin-top: 8px;
}

/* Dashboard */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}

.panel {
    padding: 22px;
    min-height: 240px;
}

.panel h3 {
    margin: 0 0 16px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
}

.panel.wide {
    grid-column: span 2;
}

.panel canvas:not(.sparkline) {
    max-height: 290px;
}

.placeholder-widget {
    color: var(--muted);
    background: #f8fafc;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 18px;
}

/* Lists / Tables */

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-list div,
.finance-list div,
.traffic span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.finance-list b {
    font-size: 20px;
    font-weight: 600;
}

.highlight {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px !important;
    margin-top: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-weight: 400;
}

.data-table th {
    font-weight: 600;
    color: var(--navy);
    background: #fbfdff;
}

.pill {
    border-radius: 99px;
    padding: 5px 10px;
    font-weight: 500;
    font-size: 12px;
}

.pill.ok {
    background: #e7f6ed;
    color: var(--green);
}

.pill.warn {
    background: #fff4ce;
    color: #9b6c00;
}

.pill.danger {
    background: #ffe7e7;
    color: var(--red);
}

.ratio-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin-top: 16px;
}

.ratio-box b {
    display: block;
    font-size: 26px;
    font-weight: 650;
    margin-top: 6px;
}

.traffic {
    display: grid;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 99px;
    display: inline-block;
}

.green {
    background: #36a852;
}

.yellow {
    background: var(--yellow);
}

.notice-list p {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 8px 0;
}

/* Bottom bar */

.bottom-bar {
    margin-top: 22px;
    background: linear-gradient(90deg, var(--petrol-dark), var(--petrol));
    color: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    box-shadow: var(--shadow-card);
}

.bottom-bar strong {
    font-weight: 600;
}

.bottom-bar span {
    font-weight: 400;
}

/* Backend */

.admin-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: -8px 0 22px;
}

.admin-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    box-shadow: var(--shadow-soft);
}

.admin-tabs a.is-active {
    background: linear-gradient(135deg, var(--petrol-dark), var(--petrol));
    color: #ffffff;
    border-color: transparent;
}

.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #07363a, #0e494d);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 22px;
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.admin-hero h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 8px 0;
}

.admin-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    background: rgba(255,184,0,.16);
    color: #ffe39b;
    border: 1px solid rgba(255,184,0,.34);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 500;
    font-size: 12px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
}

.admin-grid.two-one {
    grid-template-columns: 1.4fr .9fr;
    margin-bottom: 20px;
}

.kpi-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.panel-head,
.panel-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-head a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.module-list {
    display: grid;
    gap: 10px;
}

.module-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdff;
}

.module-row strong,
.module-row span {
    display: block;
}

.module-row strong {
    font-weight: 600;
}

.module-row span {
    color: var(--muted);
    margin-top: 4px;
    font-weight: 400;
}

.module-row em {
    font-style: normal;
    background: #e7f6ed;
    color: var(--green);
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 500;
    font-size: 12px;
}

.dark-panel {
    background: linear-gradient(135deg, #07363a, #0e494d);
    color: #ffffff;
}

.dark-panel h3 {
    color: #ffffff;
}

.dark-panel p,
.dark-panel li {
    color: rgba(255,255,255,.82);
}

.check-list {
    margin: 0;
    padding-left: 20px;
    line-height: 1.9;
}

.status,
.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-weight: 500;
    font-size: 12px;
    background: #eef4f7;
    color: #42556a;
}

.status.imported,
.badge.success {
    background: #e7f6ed;
    color: var(--green);
}

.status.uploaded {
    background: #fff4ce;
    color: #9b6c00;
}

.badge.danger {
    background: #ffe7e7;
    color: var(--red);
}

/* Forms */

.upload-form,
.admin-form {
    display: grid;
    gap: 14px;
}

.upload-form label,
.admin-form label {
    display: grid;
    gap: 8px;
    font-weight: 500;
    font-size: 13px;
}

.upload-form input,
.upload-form select,
.admin-form input,
.admin-form select,
.mapping-bar select,
.mapping-bar input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 13px;
    background: #ffffff;
    color: var(--text);
    font-weight: 400;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mapping-bar {
    display: grid;
    grid-template-columns: 1fr 220px auto;
    gap: 14px;
    align-items: end;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.import-panel {
    min-height: 520px;
}

.upload-panel {
    min-height: auto;
}

.flash {
    background: #e7f6ed;
    border: 1px solid #b6e6c7;
    color: #086b31;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    font-weight: 500;
}

/* Import / Preview */

.table-scroll {
    max-width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.preview-table {
    min-width: 900px;
}

.preview-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.mini-link {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 10px;
    background: #fff4c7;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.muted {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

/* Catalog / Settings */

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

.catalog-card {
    border: 1px solid var(--line);
    background: #fbfdff;
    border-radius: 18px;
    padding: 18px;
}

.catalog-card h4 {
    text-transform: uppercase;
    margin: 0 0 10px;
    color: var(--petrol);
    font-weight: 600;
}

.catalog-card span {
    display: inline-flex;
    margin: 4px 4px 4px 0;
    padding: 7px 9px;
    border-radius: 999px;
    background: #eef5f7;
    font-size: 12px;
    font-weight: 400;
}

.settings-list {
    display: grid;
    gap: 10px;
}

.settings-list div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.settings-list strong {
    text-transform: uppercase;
    font-weight: 600;
}

.steps {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.steps span {
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 14px;
    padding: 11px 13px;
    font-weight: 500;
}

/* Responsive */

@media (max-width: 1200px) {
    .cards-row,
    .cards-four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid,
    .admin-grid,
    .admin-grid.two-one {
        grid-template-columns: 1fr;
    }

    .panel.wide {
        grid-column: auto;
    }

    .kpi-grid.four,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-hero {
        display: block;
    }

    .admin-hero .btn {
        margin-top: 18px;
    }
}

@media (max-width: 760px) {
    :root {
        --sidebar-width: 100%;
    }

    .app-shell {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .brand {
        margin-bottom: 24px;
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .page-header {
        display: block;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .toolbar,
    .fyzio-toolbar {
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .cards-row,
    .cards-four,
    .kpi-grid.four,
    .catalog-grid,
    .form-grid,
    .mapping-bar {
        grid-template-columns: 1fr;
    }

    .bottom-bar {
        display: block;
    }

    .bottom-bar button {
        margin-top: 14px;
    }
}
/* FYZIO UI Refinement v2.1 */

body {
    font-weight: 450;
    background:
        radial-gradient(circle at top right, rgba(14,73,77,.06), transparent 30%),
        #f4f7fa;
}

.page-header h1 {
    font-size: 34px;
    font-weight: 750;
    letter-spacing: -.8px;
}

.page-header p {
    font-size: 16px;
    font-weight: 550;
    color: rgba(7,25,65,.78);
}

.metric-label,
.panel h3 {
    font-weight: 750;
    letter-spacing: .035em;
}

.metric-value {
    font-weight: 800;
    letter-spacing: -.5px;
}

.metric-change {
    font-weight: 650;
}

.nav-item {
    font-weight: 650;
}

.kpi-card,
.panel {
    border-radius: 20px;
    border: 1px solid rgba(7,25,65,.08);
    box-shadow:
        0 10px 26px rgba(7,25,65,.055),
        0 26px 70px rgba(7,25,65,.045);
}

.kpi-card {
    padding: 22px 22px 12px;
}

.panel {
    padding: 24px;
}

.btn,
.toolbar-btn,
.primary {
    font-weight: 700;
}

/* schöner Monatswechsler */

.fyzio-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
}

.month-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(7,25,65,.10);
    color: var(--navy);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(7,25,65,.055);
    transition: .18s ease;
}

.month-arrow:hover {
    transform: translateY(-1px);
    background: #fff8dc;
    border-color: rgba(255,184,0,.5);
}

.month-display {
    min-width: 172px;
    height: 42px;
    padding: 6px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid rgba(7,25,65,.10);
    box-shadow: 0 10px 26px rgba(7,25,65,.055);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.month-display span {
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
}

.month-display strong {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
    color: var(--navy);
    font-weight: 750;
}

.toolbar-btn {
    height: 42px;
    border-radius: 14px;
    padding: 0 18px;
    background: #ffffff;
    border: 1px solid rgba(7,25,65,.10);
    box-shadow: 0 10px 26px rgba(7,25,65,.055);
}

.toolbar-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}
.widgets-list-panel {
    margin-top: 24px;
}

.widget-active-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-weight: 500;
}

.widget-active-check input {
    width: 18px;
    height: 18px;
    min-height: 0;
}

.widget-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.widget-count {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--petrol-soft);
    color: var(--petrol);
    font-size: 12px;
    font-weight: 600;
}

.widget-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.widget-actions form {
    margin: 0;
}

.widget-action-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.widget-delete-btn {
    color: var(--red);
    border-color: rgba(214, 69, 69, .24);
}

.widget-delete-btn:hover {
    color: #ffffff;
    background: var(--red);
    border-color: var(--red);
}

.module-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eef5f7;
    color: var(--petrol);
    font-size: 11px;
    font-weight: 600;
}

.widget-title {
    font-weight: 600;
}
.manual-metric-preview {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin: 4px 0 18px;
}

.manual-metric-preview > div {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbfc;
}

.manual-metric-preview span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.manual-metric-preview strong {
    font-size: 15px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .manual-metric-preview {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   FYZIO Dashboard – echtes 12-Spalten-Raster
   ========================================================= */

.dashboard-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    margin-bottom: 22px;
}

.dashboard-widget {
    grid-column: span var(--widget-span, 3);
    min-width: 0;
}

.dashboard-card-layout .kpi-card {
    height: 100%;
}

.dashboard-content-layout .panel {
    height: 100%;
}

.dashboard-chart-widget {
    display: flex;
    flex-direction: column;
    min-height: 330px;
}

.dashboard-widget-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.dashboard-widget-head h3 {
    margin-bottom: 0;
}

.widget-unit {
    display: inline-flex;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.dashboard-widget-body {
    position: relative;
    flex: 1;
    min-height: 240px;
}

.dashboard-widget-body > canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
}

.metric-unit {
    font-size: .62em;
    font-weight: 650;
    color: inherit;
    white-space: nowrap;
}

.dashboard-secondary-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-secondary-layout > .panel {
    grid-column: span 6;
    min-width: 0;
}

.detail-panel {
    margin-top: 0;
}

.detail-name {
    font-weight: 650;
}

/*
 * Alte Rasterregeln neutralisieren.
 */

.cards-row,
.cards-four,
.dashboard-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.panel.wide {
    grid-column: auto;
}

/* große Tablets */

@media (max-width: 1350px) {
    .dashboard-widget[style*="--widget-span: 3"] {
        grid-column: span 4;
    }

    .dashboard-widget[style*="--widget-span: 4"] {
        grid-column: span 6;
    }

    .dashboard-widget[style*="--widget-span: 8"] {
        grid-column: span 12;
    }
}

/* Tablets */

@media (max-width: 1050px) {
    .dashboard-widget {
        grid-column: span 6 !important;
    }

    .dashboard-widget[style*="--widget-span: 12"],
    .dashboard-widget[style*="--widget-span: 8"] {
        grid-column: span 12 !important;
    }

    .dashboard-secondary-layout > .panel {
        grid-column: span 12;
    }
}

/* Mobil */

@media (max-width: 700px) {
    .dashboard-layout,
    .dashboard-secondary-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-widget,
    .dashboard-secondary-layout > .panel {
        grid-column: 1 / -1 !important;
    }

    .dashboard-chart-widget {
        min-height: 300px;
    }

    .dashboard-widget-body {
        min-height: 220px;
    }
}
/* Verbindliche Widget-Breiten */

.dashboard-layout {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 20px;
    width: 100%;
}

.dashboard-widget {
    min-width: 0;
    width: auto;
}

.dashboard-widget.widget-span-3 {
    grid-column: span 3 !important;
}

.dashboard-widget.widget-span-4 {
    grid-column: span 4 !important;
}

.dashboard-widget.widget-span-6 {
    grid-column: span 6 !important;
}

.dashboard-widget.widget-span-8 {
    grid-column: span 8 !important;
}

.dashboard-widget.widget-span-12 {
    grid-column: span 12 !important;
}

@media (max-width: 1200px) {
    .dashboard-widget.widget-span-3,
    .dashboard-widget.widget-span-4 {
        grid-column: span 6 !important;
    }

    .dashboard-widget.widget-span-6,
    .dashboard-widget.widget-span-8,
    .dashboard-widget.widget-span-12 {
        grid-column: span 12 !important;
    }
}

@media (max-width: 760px) {
    .dashboard-widget {
        grid-column: 1 / -1 !important;
    }
}
/* =========================================================
   FINALER FIX: Dashboard-Raster und Widget-Breiten
   Muss am absoluten Ende der app.css stehen
   ========================================================= */

.main {
    min-width: 0;
}

.main > .dashboard-layout,
.dashboard-card-layout,
.dashboard-content-layout {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: 20px !important;
    align-items: stretch;
}

.dashboard-layout > .dashboard-widget {
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
}

/* 25 Prozent */
.dashboard-layout > .widget-span-3 {
    grid-column: span 3 / span 3 !important;
}

/* 33 Prozent */
.dashboard-layout > .widget-span-4 {
    grid-column: span 4 / span 4 !important;
}

/* 50 Prozent */
.dashboard-layout > .widget-span-6 {
    grid-column: span 6 / span 6 !important;
}

/* 66 Prozent */
.dashboard-layout > .widget-span-8 {
    grid-column: span 8 / span 8 !important;
}

/* 100 Prozent */
.dashboard-layout > .widget-span-12 {
    grid-column: 1 / -1 !important;
}

/* Alte Dashboard-Regeln vollständig neutralisieren */
.dashboard-layout .panel.wide,
.dashboard-layout .kpi-card,
.dashboard-layout .panel {
    width: auto !important;
    max-width: none !important;
}

@media (max-width: 1200px) {
    .dashboard-layout > .widget-span-3,
    .dashboard-layout > .widget-span-4 {
        grid-column: span 6 / span 6 !important;
    }

    .dashboard-layout > .widget-span-6,
    .dashboard-layout > .widget-span-8,
    .dashboard-layout > .widget-span-12 {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 760px) {
    .main > .dashboard-layout,
    .dashboard-card-layout,
    .dashboard-content-layout {
        grid-template-columns: 1fr !important;
    }

    .dashboard-layout > .dashboard-widget {
        grid-column: 1 / -1 !important;
    }
}
/* =========================================================
   FYZIO – individuell einstellbare Widget-Höhen
   ========================================================= */

.dashboard-widget {
    height: var(--widget-height, 320px) !important;
    min-height: var(--widget-height, 320px) !important;
    max-height: var(--widget-height, 320px) !important;
    overflow: hidden;
}

/* KPI-Karten */

.dashboard-card-layout .kpi-card {
    display: flex;
    flex-direction: column;
    height: var(--widget-height, 180px) !important;
    min-height: var(--widget-height, 180px) !important;
    max-height: var(--widget-height, 180px) !important;
}

.dashboard-card-layout .sparkline {
    margin-top: auto;
    min-height: 34px;
    max-height: 48px;
}

/* Diagramm- und Tabellen-Widgets */

.dashboard-chart-widget {
    display: flex;
    flex-direction: column;
    height: var(--widget-height, 320px) !important;
    min-height: var(--widget-height, 320px) !important;
    max-height: var(--widget-height, 320px) !important;
}

.dashboard-widget-head {
    flex: 0 0 auto;
}

.dashboard-widget-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0 !important;
    overflow: hidden;
}

/* Chart.js exakt in die verfügbare Fläche einpassen */

.dashboard-widget-body > canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* Tabellen innerhalb eines Widgets scrollbar machen */

.dashboard-widget-body > .table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Inhalte nicht über den Rand hinausschieben */

.dashboard-widget .placeholder-widget {
    overflow: auto;
}

/* Auf Mobilgeräten Mindesthöhe beibehalten */

@media (max-width: 760px) {
    .dashboard-widget {
        height: auto !important;
        min-height: min(var(--widget-height, 320px), 320px) !important;
        max-height: none !important;
    }

    .dashboard-chart-widget {
        height: var(--widget-height, 320px) !important;
        min-height: var(--widget-height, 320px) !important;
    }
}
/* =========================================================
   FYZIO Importcenter
   ========================================================= */

.import-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 22px;
}

.upload-panel,
.import-process-panel {
    min-height: 100%;
}

.upload-format-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--petrol-soft);
    color: var(--petrol);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.modern-upload-form {
    gap: 18px;
}

.upload-dropzone {
    position: relative;
    border: 1px dashed rgba(14, 73, 77, .30);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(232, 241, 242, .34), rgba(255, 255, 255, .92));
    transition: .18s ease;
    overflow: hidden;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragging {
    border-color: var(--yellow);
    background: #fffaf0;
    transform: translateY(-1px);
}

.upload-dropzone.has-file {
    border-style: solid;
    border-color: rgba(17, 136, 71, .28);
    background: #f4fbf7;
}

.upload-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-file-label {
    min-height: 118px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
    cursor: pointer;
}

.upload-file-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--petrol);
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(14, 73, 77, .18);
}

.upload-file-content {
    min-width: 0;
}

.upload-file-content strong,
.upload-file-content small {
    display: block;
}

.upload-file-content strong {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-content small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.upload-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(7, 25, 65, .10);
    border-radius: 13px;
    background: #ffffff;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}

.upload-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8fbfc;
}

.upload-selection[hidden] {
    display: none;
}

.upload-selection > div {
    min-width: 0;
}

.upload-selection span,
.upload-selection strong {
    display: block;
}

.upload-selection span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.upload-selection strong {
    margin-top: 4px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-clear-btn {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12px;
}

.upload-submit-button {
    width: 100%;
    min-height: 46px;
    justify-content: center;
}

/* rechte Prozesskarte */

.import-process-panel {
    display: flex;
    flex-direction: column;
}

.process-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 184, 0, .15);
    border: 1px solid rgba(255, 184, 0, .28);
    color: #ffe49a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.import-process-panel > p {
    margin: 0 0 20px;
    line-height: 1.55;
}

.import-process {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.import-process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
}

.import-process-step > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--yellow);
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.import-process-step div {
    min-width: 0;
}

.import-process-step strong,
.import-process-step small {
    display: block;
}

.import-process-step strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.import-process-step small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .70);
    font-size: 11px;
}

/* Verlauf */

.import-history-panel {
    min-height: 0;
}

.import-history-head {
    margin-bottom: 16px;
}

.import-filter-bar {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.import-filter-bar label {
    display: grid;
    gap: 7px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
}

.import-filter-bar input,
.import-filter-bar select {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

.import-filter-reset {
    min-height: 40px;
    white-space: nowrap;
}

.import-table-scroll {
    border-radius: 16px;
}

.import-history-table {
    min-width: 1220px;
}

.upload-file-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 240px;
}

.upload-type-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--petrol-soft);
    color: var(--petrol);
    font-size: 12px;
    font-weight: 800;
}

.upload-file-cell div {
    min-width: 0;
}

.upload-file-cell strong,
.upload-file-cell small {
    display: block;
}

.upload-file-cell strong {
    max-width: 250px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-cell small {
    max-width: 250px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-type-badge {
    display: inline-flex;
    min-width: 42px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef4f7;
    color: #42556a;
    font-size: 10px;
    font-weight: 700;
}

.status.uploaded {
    background: #fff4ce;
    color: #9b6c00;
}

.status.imported {
    background: #e7f6ed;
    color: var(--green);
}

.status.failed {
    background: #ffe7e7;
    color: var(--red);
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.upload-delete-placeholder {
    color: var(--muted);
    opacity: .55;
    cursor: not-allowed;
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 240px;
    padding: 30px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: #fbfdff;
}

.empty-state-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--petrol-soft);
    color: var(--petrol);
    font-size: 24px;
}

.empty-state h4 {
    margin: 14px 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.empty-state p,
.table-empty-message {
    color: var(--muted);
    font-size: 12px;
}

.table-empty-message {
    padding: 18px;
    text-align: center;
}

@media (max-width: 1180px) {
    .import-top-grid {
        grid-template-columns: 1fr;
    }

    .import-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .upload-file-label {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .upload-file-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .upload-selection {
        grid-template-columns: 1fr;
    }

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

    .import-filter-reset {
        width: 100%;
    }
}
.upload-delete-form {
    display: inline-flex;
    margin: 0;
}

.upload-actions .widget-delete-btn {
    min-height: 34px;
}

.upload-actions .widget-delete-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #ffffff;
}
/* =========================================================
   FYZIO Export-Menü
   ========================================================= */

.export-menu {
    position: relative;
}

.export-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.export-chevron {
    font-size: 14px;
    line-height: 1;
    transition: transform .18s ease;
}

.export-menu-trigger[aria-expanded="true"] .export-chevron {
    transform: rotate(180deg);
}

.export-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1000;
    width: 300px;
    padding: 8px;
    border: 1px solid rgba(7, 25, 65, .10);
    border-radius: 17px;
    background: rgba(255, 255, 255, .98);
    box-shadow:
        0 18px 50px rgba(7, 25, 65, .14),
        0 6px 18px rgba(7, 25, 65, .08);
    backdrop-filter: blur(16px);
}

.export-menu-dropdown[hidden] {
    display: none;
}

.export-menu-dropdown a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 13px;
    color: var(--navy);
    text-decoration: none;
    transition:
        background .18s ease,
        transform .18s ease;
}

.export-menu-dropdown a:hover {
    background: #f5f8fa;
    transform: translateY(-1px);
}

.export-menu-dropdown a + a {
    margin-top: 4px;
}

.export-menu-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #ffe8e8;
    color: #b62f2f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.export-menu-icon.excel {
    background: #e5f5eb;
    color: #157347;
}

.export-menu-dropdown strong,
.export-menu-dropdown small {
    display: block;
}

.export-menu-dropdown strong {
    font-size: 13px;
    font-weight: 750;
}

.export-menu-dropdown small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

/* Druckansicht */

@media print {
    .sidebar,
    .page-header .toolbar,
    .admin-tabs,
    .bottom-bar {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body {
        background: #ffffff !important;
    }

    .panel,
    .kpi-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* Mobil */

@media (max-width: 760px) {
    .export-menu {
        width: 100%;
    }

    .export-menu-trigger {
        width: 100%;
    }

    .export-menu-dropdown {
        left: 0;
        right: auto;
        width: min(100%, 320px);
    }
}
.employee-preview-table th,
.employee-preview-table td {
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
}

.employee-preview-table tbody tr {
    height: auto !important;
    min-height: 0 !important;
}
.employee-detail-table {
    min-width: 1250px;
}

.employee-detail-table th {
    white-space: nowrap;
}

.employee-detail-table td {
    vertical-align: middle;
}

.employee-name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
}

.employee-name-cell small {
    color: var(--muted, #6f7c86);
    font-size: 11px;
}

.employee-detail-table .status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.employee-chart-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.employee-chart-card {
    grid-column: span 4;
    min-height: 340px;
}

.employee-chart-wide {
    grid-column: span 8;
}

.employee-chart-full {
    grid-column: span 12;
}

.employee-chart-body {
    position: relative;
    height: 255px;
    padding-top: 10px;
}

.employee-role-chart {
    height: 330px;
}

.employee-chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1100px) {
    .employee-chart-card,
    .employee-chart-wide {
        grid-column: span 6;
    }

    .employee-chart-full {
        grid-column: span 12;
    }
}

@media (max-width: 760px) {
    .employee-chart-card,
    .employee-chart-wide,
    .employee-chart-full {
        grid-column: span 12;
    }
}
.absence-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.absence-summary-card {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.absence-summary-card span {
    color: var(--muted, #6f7c86);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.absence-summary-card strong {
    font-size: 30px;
    color: #092348;
}

.absence-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.absence-list {
    display: flex;
    flex-direction: column;
}

.absence-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(9, 35, 72, 0.08);
}

.absence-list-row:last-child {
    border-bottom: 0;
}

.absence-list-row div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.absence-list-row small {
    color: var(--muted, #6f7c86);
}

.absence-badge,
.absence-days {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.absence-krankheit,
.absence-days.danger {
    background: #fde7e9;
    color: #b42334;
}

.absence-urlaub {
    background: #e4f6ed;
    color: #18794e;
}

.absence-fortbildung {
    background: #e7efff;
    color: #315ea8;
}

.absence-sonstiges,
.absence-days {
    background: #f3f0ff;
    color: #6941c6;
}

.empty-dashboard-message {
    padding: 22px 0;
    color: var(--muted, #6f7c86);
}

@media (max-width: 1050px) {
    .absence-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 620px) {
    .absence-summary-grid {
        grid-template-columns: 1fr;
    }
}
.employee-list-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) repeat(3, 180px);
    gap: 14px;
    margin-bottom: 18px;
    align-items: center;
}

.employee-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(9, 35, 72, 0.12);
    border-radius: 12px;
    background: #fff;
}

.employee-search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.employee-list-toolbar select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(9, 35, 72, 0.12);
    border-radius: 12px;
    background: #fff;
}

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

.employee-directory-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(9, 35, 72, 0.09);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.employee-directory-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 181, 0, 0.65);
    box-shadow: 0 14px 30px rgba(9, 35, 72, 0.08);
}

.employee-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0e494d;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.employee-card-content {
    flex: 1;
    min-width: 0;
}

.employee-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.employee-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.employee-card-head strong {
    color: #092348;
}

.employee-card-head small,
.employee-card-meta,
.employee-card-footer {
    color: var(--muted, #6f7c86);
    font-size: 12px;
}

.employee-card-meta,
.employee-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
}

.employee-card-footer {
    padding-top: 10px;
    border-top: 1px solid rgba(9, 35, 72, 0.07);
}

.forecast-yes {
    color: #18794e;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .employee-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-list-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .employee-directory,
    .employee-list-toolbar {
        grid-template-columns: 1fr;
    }
}
.employee-profile-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.employee-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.employee-profile-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.employee-profile-avatar {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #0e494d;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
}

.employee-profile-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.employee-profile-title-row h2 {
    margin: 0;
    color: #092348;
}

.employee-profile-identity p {
    margin: 8px 0 4px;
    color: var(--muted, #6f7c86);
}

.employee-profile-email {
    color: #0e494d;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.employee-profile-score {
    min-width: 150px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 181, 0, 0.12);
    text-align: center;
}

.employee-profile-score span,
.employee-profile-score small {
    display: block;
    color: var(--muted, #6f7c86);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.employee-profile-score strong {
    display: block;
    margin: 4px 0;
    color: #092348;
    font-size: 34px;
}

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

.employee-profile-kpi {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4px 12px;
    min-height: 120px;
}

.employee-profile-kpi span {
    grid-column: 1 / -1;
    color: var(--muted, #6f7c86);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.employee-profile-kpi strong {
    color: #092348;
    font-size: 28px;
}

.employee-profile-kpi small {
    padding-bottom: 5px;
    color: var(--muted, #6f7c86);
}

.employee-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.employee-data-list {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.employee-data-list > div {
    display: grid;
    grid-template-columns: minmax(130px, 42%) 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(9, 35, 72, 0.08);
}

.employee-data-list > div:last-child {
    border-bottom: 0;
}

.employee-data-list dt {
    color: var(--muted, #6f7c86);
    font-size: 12px;
    font-weight: 700;
}

.employee-data-list dd {
    margin: 0;
    color: #092348;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.employee-rating-panel {
    margin-bottom: 18px;
}

.employee-rating-total {
    color: #0e494d;
    font-size: 22px;
}

.employee-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
}

.employee-rating-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-rating-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.employee-rating-label span {
    color: #092348;
    font-weight: 700;
}

.employee-rating-label strong {
    color: #0e494d;
}

.employee-rating-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(9, 35, 72, 0.08);
}

.employee-rating-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #0e494d,
        #ffb500
    );
}

.employee-absence-table-wrap {
    overflow-x: auto;
}

@media (max-width: 1050px) {
    .employee-profile-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .employee-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-profile-score {
        width: 100%;
    }

    .employee-profile-grid,
    .employee-rating-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .employee-profile-actions {
        flex-direction: column;
    }

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

    .employee-profile-identity {
        align-items: flex-start;
    }

    .employee-profile-avatar {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 17px;
        font-size: 23px;
    }

    .employee-data-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
.employee-profile-actions {
    align-items: center;
}

.employee-profile-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.employee-month-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-month-form label {
    color: var(--muted, #6f7c86);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.employee-month-form select {
    min-width: 130px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(9, 35, 72, 0.12);
    border-radius: 12px;
    background: #fff;
    color: #092348;
    font-weight: 700;
}

.employee-history-panel,
.employee-history-table-panel {
    margin-bottom: 18px;
}

.employee-history-chart {
    position: relative;
    height: 340px;
}

.employee-history-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.employee-history-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.employee-history-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted, #6f7c86);
    font-size: 12px;
    font-weight: 700;
}

.history-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #0e494d;
}

.history-dot.hours {
    background: #ffb500;
}

.history-dot.rating {
    background: #667085;
}

.employee-history-table tr.is-current-month {
    background: rgba(255, 181, 0, 0.07);
}

.employee-history-link {
    color: #0e494d;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.employee-history-link:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .employee-profile-actions {
        align-items: stretch;
    }

    .employee-month-form {
        justify-content: space-between;
    }

    .employee-month-form select {
        flex: 1;
    }

    .employee-history-chart {
        height: 280px;
    }
}
.employee-detail-link {
    color: #092348;
    font-weight: 800;
    text-decoration: none;
}

.employee-detail-link:hover {
    color: #0e494d;
    text-decoration: underline;
}
/* =========================================================
   MITARBEITER – AUTOMATISCHE PRÜFUNG / RED FLAGS
   ========================================================= */

.employee-health-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(9, 35, 72, 0.08);
}

.employee-health-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
}

.employee-health-panel.employee-health-success::before {
    background: #2f9e68;
}

.employee-health-panel.employee-health-info::before {
    background: #4589d7;
}

.employee-health-panel.employee-health-warning::before {
    background: #ffb500;
}

.employee-health-panel.employee-health-critical::before {
    background: #d84747;
}

.employee-health-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.employee-health-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 18px;
    background: rgba(47, 158, 104, 0.12);
    color: #24794f;
    font-size: 24px;
    font-weight: 900;
}

.employee-health-warning .employee-health-status-icon {
    background: rgba(255, 181, 0, 0.16);
    color: #946900;
}

.employee-health-critical .employee-health-status-icon {
    background: rgba(216, 71, 71, 0.12);
    color: #b42f2f;
}

.employee-health-info .employee-health-status-icon {
    background: rgba(69, 137, 215, 0.12);
    color: #326cae;
}

.employee-health-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--muted, #6f7c86);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-health-heading h3 {
    margin: 0;
    color: #092348;
    font-size: 21px;
}

.employee-health-heading p {
    margin: 6px 0 0;
    color: var(--muted, #6f7c86);
    line-height: 1.55;
}

.employee-health-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    overflow: hidden;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 16px;
    background: rgba(9, 35, 72, 0.025);
}

.employee-health-summary > div {
    min-width: 78px;
    padding: 12px 14px;
    border-right: 1px solid rgba(9, 35, 72, 0.08);
    text-align: center;
}

.employee-health-summary > div:last-child {
    border-right: 0;
}

.employee-health-summary strong {
    display: block;
    color: #092348;
    font-size: 22px;
    line-height: 1;
}

.employee-health-summary span {
    display: block;
    margin-top: 5px;
    color: var(--muted, #6f7c86);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.employee-flag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.employee-flag-card {
    position: relative;
    padding: 17px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 17px;
    background: rgba(9, 35, 72, 0.018);
}

.employee-flag-card::before {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #4589d7;
    content: "";
}

.employee-flag-card.employee-flag-warning::before {
    background: #ffb500;
}

.employee-flag-card.employee-flag-critical::before {
    background: #d84747;
}

.employee-flag-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.employee-flag-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(9, 35, 72, 0.06);
    color: #52606d;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.employee-flag-level {
    color: #4589d7;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-flag-warning .employee-flag-level {
    color: #946900;
}

.employee-flag-critical .employee-flag-level {
    color: #b42f2f;
}

.employee-flag-card h4 {
    margin: 0 0 7px;
    color: #092348;
    font-size: 15px;
}

.employee-flag-card p {
    margin: 0;
    color: var(--muted, #6f7c86);
    font-size: 12px;
    line-height: 1.55;
}

.employee-health-success-message {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(47, 158, 104, 0.15);
    border-radius: 16px;
    background: rgba(47, 158, 104, 0.07);
}

.employee-health-success-message > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    background: #2f9e68;
    color: #fff;
    font-weight: 900;
}

.employee-health-success-message strong {
    color: #1f7048;
}

.employee-health-success-message p {
    margin: 3px 0 0;
    color: #527564;
    font-size: 12px;
}

.employee-recommendations {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(9, 35, 72, 0.08);
}

.employee-recommendations-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.employee-recommendations-head h4 {
    margin: 0;
    color: #092348;
    font-size: 17px;
}

.employee-recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.employee-recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(14, 73, 77, 0.05);
}

.employee-recommendation-item.is-high-priority {
    background: rgba(216, 71, 71, 0.065);
}

.employee-recommendation-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 8px;
    background: #0e494d;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.employee-recommendation-item.is-high-priority
.employee-recommendation-check {
    background: #d84747;
}

.employee-recommendation-item p {
    margin: 2px 0 0;
    color: #344655;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .employee-health-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .employee-health-summary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .employee-flag-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .employee-health-header {
        grid-template-columns: 1fr;
    }

    .employee-health-status-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
        font-size: 19px;
    }

    .employee-health-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .employee-health-summary > div {
        min-width: 0;
        padding: 11px 6px;
    }

    .employee-health-summary strong {
        font-size: 18px;
    }
}
/* =========================================================
   MITARBEITER – ZIELERREICHUNG
   ========================================================= */

.employee-target-panel {
    margin-bottom: 18px;
}

.employee-target-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.employee-target-header h3 {
    margin: 0;
    color: #092348;
    font-size: 21px;
}

.employee-target-header p {
    margin: 6px 0 0;
}

.employee-target-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 76px;
    flex: 0 0 96px;
    border-radius: 20px;
    background: rgba(9, 35, 72, 0.06);
}

.employee-target-score strong {
    color: #092348;
    font-size: 27px;
    line-height: 1;
}

.employee-target-score span {
    margin-top: 5px;
    color: var(--muted, #6f7c86);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.employee-target-score-success {
    background: rgba(47, 158, 104, 0.11);
}

.employee-target-score-success strong {
    color: #24794f;
}

.employee-target-score-warning {
    background: rgba(255, 181, 0, 0.15);
}

.employee-target-score-warning strong {
    color: #946900;
}

.employee-target-score-critical {
    background: rgba(216, 71, 71, 0.11);
}

.employee-target-score-critical strong {
    color: #b42f2f;
}

.employee-target-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 17px;
    background: rgba(9, 35, 72, 0.02);
}

.employee-target-summary > div {
    padding: 14px;
    border-right: 1px solid rgba(9, 35, 72, 0.08);
    text-align: center;
}

.employee-target-summary > div:last-child {
    border-right: 0;
}

.employee-target-summary strong {
    display: block;
    color: #092348;
    font-size: 22px;
}

.employee-target-summary span {
    display: block;
    margin-top: 5px;
    color: var(--muted, #6f7c86);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.employee-target-summary .is-success strong {
    color: #24794f;
}

.employee-target-summary .is-warning strong {
    color: #946900;
}

.employee-target-summary .is-critical strong {
    color: #b42f2f;
}

.employee-target-summary .is-neutral strong {
    color: #667085;
}

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

.employee-target-card {
    padding: 18px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 18px;
    background: rgba(9, 35, 72, 0.018);
}

.employee-target-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.employee-target-label {
    display: block;
    color: #092348;
    font-size: 15px;
    font-weight: 850;
}

.employee-target-card-head p {
    max-width: 420px;
    margin: 5px 0 0;
    color: var(--muted, #6f7c86);
    font-size: 11px;
    line-height: 1.5;
}

.employee-target-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(102, 112, 133, 0.1);
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-target-success .employee-target-status {
    background: rgba(47, 158, 104, 0.12);
    color: #24794f;
}

.employee-target-warning .employee-target-status {
    background: rgba(255, 181, 0, 0.16);
    color: #946900;
}

.employee-target-critical .employee-target-status {
    background: rgba(216, 71, 71, 0.12);
    color: #b42f2f;
}

.employee-target-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.employee-target-values > div {
    padding: 11px;
    border-radius: 13px;
    background: rgba(9, 35, 72, 0.035);
}

.employee-target-values span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted, #6f7c86);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.employee-target-values strong {
    color: #092348;
    font-size: 13px;
}

.employee-target-values strong.is-positive {
    color: #24794f;
}

.employee-target-values strong.is-negative {
    color: #b42f2f;
}

.employee-target-progress {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: rgba(9, 35, 72, 0.08);
}

.employee-target-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #667085;
    transition: width 0.45s ease;
}

.employee-target-success .employee-target-progress span {
    background: #2f9e68;
}

.employee-target-warning .employee-target-progress span {
    background: #ffb500;
}

.employee-target-critical .employee-target-progress span {
    background: #d84747;
}

@media (max-width: 920px) {
    .employee-target-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .employee-target-header {
        align-items: flex-start;
    }

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

    .employee-target-summary > div:nth-child(2) {
        border-right: 0;
    }

    .employee-target-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(9, 35, 72, 0.08);
    }
}

@media (max-width: 520px) {
    .employee-target-header {
        flex-direction: column;
    }

    .employee-target-score {
        width: 100%;
        height: 66px;
        flex-basis: auto;
    }

    .employee-target-values {
        grid-template-columns: 1fr;
    }

    .employee-target-card-head {
        flex-direction: column;
    }
}
/* =========================================================
   MITARBEITER – AUTOMATISCHE TRENDBEWERTUNG
   ========================================================= */

.employee-trend-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.employee-trend-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: #667085;
}

.employee-trend-panel-success::before {
    background: #2f9e68;
}

.employee-trend-panel-warning::before {
    background: #ffb500;
}

.employee-trend-panel-critical::before {
    background: #d84747;
}

.employee-trend-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.employee-trend-header h3 {
    margin: 0;
    color: #092348;
    font-size: 21px;
}

.employee-trend-header p {
    margin: 6px 0 0;
}

.employee-trend-period {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(9, 35, 72, 0.06);
    color: #52606d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-trend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.employee-trend-card {
    padding: 17px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 18px;
    background: rgba(9, 35, 72, 0.018);
}

.employee-trend-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.employee-trend-title {
    display: block;
    margin-bottom: 5px;
    color: #092348;
    font-size: 15px;
    font-weight: 850;
}

.employee-trend-label {
    color: #667085;
    font-size: 11px;
}

.employee-trend-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 13px;
    background: rgba(102, 112, 133, 0.1);
    color: #667085;
    font-size: 22px;
    font-weight: 900;
}

.employee-trend-success .employee-trend-icon {
    background: rgba(47, 158, 104, 0.12);
    color: #24794f;
}

.employee-trend-warning .employee-trend-icon {
    background: rgba(255, 181, 0, 0.16);
    color: #946900;
}

.employee-trend-critical .employee-trend-icon {
    background: rgba(216, 71, 71, 0.12);
    color: #b42f2f;
}

.employee-trend-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.employee-trend-values > div {
    padding: 10px;
    border-radius: 12px;
    background: rgba(9, 35, 72, 0.035);
}

.employee-trend-values span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted, #6f7c86);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.employee-trend-values strong {
    color: #092348;
    font-size: 12px;
}

.employee-trend-values strong.is-positive {
    color: #24794f;
}

.employee-trend-values strong.is-negative {
    color: #b42f2f;
}

.employee-trend-percent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(14, 73, 77, 0.05);
}

.employee-trend-percent span {
    color: #52606d;
    font-size: 10px;
    font-weight: 750;
}

.employee-trend-percent strong {
    color: #0e494d;
    font-size: 12px;
}

.employee-trend-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}

.employee-trend-months > div {
    padding: 9px;
    border: 1px solid rgba(9, 35, 72, 0.07);
    border-radius: 11px;
    text-align: center;
}

.employee-trend-months span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted, #6f7c86);
    font-size: 8px;
    font-weight: 800;
}

.employee-trend-months strong {
    color: #092348;
    font-size: 11px;
}

.employee-trend-empty {
    padding: 18px;
    border-radius: 14px;
    background: rgba(9, 35, 72, 0.035);
    color: var(--muted, #6f7c86);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 1100px) {
    .employee-trend-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .employee-trend-header {
        flex-direction: column;
    }

    .employee-trend-values {
        grid-template-columns: 1fr;
    }

    .employee-trend-months {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   MITARBEITER – ZENTRALE KENNZAHLEN-AMPEL
   ========================================================= */

.employee-traffic-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.employee-traffic-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: #88929d;
}

.employee-traffic-panel-success::before {
    background: #2f9e68;
}

.employee-traffic-panel-warning::before {
    background: #ffb500;
}

.employee-traffic-panel-critical::before {
    background: #d84747;
}

.employee-traffic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.employee-traffic-header h3 {
    margin: 0;
    color: #092348;
    font-size: 21px;
}

.employee-traffic-header p {
    margin: 6px 0 0;
}

.employee-traffic-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 78px;
    flex: 0 0 104px;
    border-radius: 20px;
    background: rgba(102, 112, 133, 0.1);
}

.employee-traffic-score strong {
    color: #52606d;
    font-size: 27px;
    line-height: 1;
}

.employee-traffic-score span {
    margin-top: 6px;
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.employee-traffic-score-success {
    background: rgba(47, 158, 104, 0.12);
}

.employee-traffic-score-success strong {
    color: #24794f;
}

.employee-traffic-score-warning {
    background: rgba(255, 181, 0, 0.16);
}

.employee-traffic-score-warning strong {
    color: #946900;
}

.employee-traffic-score-critical {
    background: rgba(216, 71, 71, 0.12);
}

.employee-traffic-score-critical strong {
    color: #b42f2f;
}

.employee-traffic-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 17px;
    background: rgba(9, 35, 72, 0.02);
}

.employee-traffic-summary > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    column-gap: 9px;
    padding: 14px;
    border-right: 1px solid rgba(9, 35, 72, 0.08);
}

.employee-traffic-summary > div:last-child {
    border-right: 0;
}

.employee-traffic-summary-dot {
    display: block;
    width: 12px;
    height: 12px;
    grid-row: 1 / span 2;
    border-radius: 50%;
    background: #88929d;
    box-shadow: 0 0 0 5px rgba(136, 146, 157, 0.12);
}

.employee-traffic-summary .is-success
.employee-traffic-summary-dot {
    background: #2f9e68;
    box-shadow: 0 0 0 5px rgba(47, 158, 104, 0.12);
}

.employee-traffic-summary .is-warning
.employee-traffic-summary-dot {
    background: #ffb500;
    box-shadow: 0 0 0 5px rgba(255, 181, 0, 0.14);
}

.employee-traffic-summary .is-critical
.employee-traffic-summary-dot {
    background: #d84747;
    box-shadow: 0 0 0 5px rgba(216, 71, 71, 0.12);
}

.employee-traffic-summary strong {
    color: #092348;
    font-size: 21px;
    line-height: 1;
}

.employee-traffic-summary small {
    margin-top: 3px;
    color: var(--muted, #6f7c86);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

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

.employee-traffic-card {
    position: relative;
    padding: 17px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 18px;
    background: rgba(9, 35, 72, 0.018);
}

.employee-traffic-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.employee-traffic-card-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.employee-traffic-light {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin-top: 3px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: #88929d;
    box-shadow:
        0 0 0 4px rgba(136, 146, 157, 0.13),
        0 4px 8px rgba(9, 35, 72, 0.08);
}

.employee-traffic-success .employee-traffic-light {
    background: #2f9e68;
    box-shadow:
        0 0 0 4px rgba(47, 158, 104, 0.14),
        0 4px 8px rgba(9, 35, 72, 0.08);
}

.employee-traffic-warning .employee-traffic-light {
    background: #ffb500;
    box-shadow:
        0 0 0 4px rgba(255, 181, 0, 0.16),
        0 4px 8px rgba(9, 35, 72, 0.08);
}

.employee-traffic-critical .employee-traffic-light {
    background: #d84747;
    box-shadow:
        0 0 0 4px rgba(216, 71, 71, 0.14),
        0 4px 8px rgba(9, 35, 72, 0.08);
}

.employee-traffic-category {
    display: block;
    margin-bottom: 3px;
    color: var(--muted, #6f7c86);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.employee-traffic-card h4 {
    margin: 0;
    color: #092348;
    font-size: 15px;
}

.employee-traffic-status-label {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(136, 146, 157, 0.11);
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-traffic-success
.employee-traffic-status-label {
    background: rgba(47, 158, 104, 0.12);
    color: #24794f;
}

.employee-traffic-warning
.employee-traffic-status-label {
    background: rgba(255, 181, 0, 0.16);
    color: #946900;
}

.employee-traffic-critical
.employee-traffic-status-label {
    background: rgba(216, 71, 71, 0.12);
    color: #b42f2f;
}

.employee-traffic-value {
    margin-bottom: 7px;
    color: #092348;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.employee-traffic-card p {
    min-height: 36px;
    margin: 0;
    color: var(--muted, #6f7c86);
    font-size: 11px;
    line-height: 1.55;
}

.employee-traffic-footer {
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid rgba(9, 35, 72, 0.07);
}

.employee-traffic-footer span {
    color: #667085;
    font-size: 10px;
    font-weight: 850;
}

.employee-traffic-success
.employee-traffic-footer span {
    color: #24794f;
}

.employee-traffic-warning
.employee-traffic-footer span {
    color: #946900;
}

.employee-traffic-critical
.employee-traffic-footer span {
    color: #b42f2f;
}

@media (max-width: 900px) {
    .employee-traffic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .employee-traffic-header {
        align-items: flex-start;
    }

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

    .employee-traffic-summary > div:nth-child(2) {
        border-right: 0;
    }

    .employee-traffic-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(9, 35, 72, 0.08);
    }
}

@media (max-width: 520px) {
    .employee-traffic-header {
        flex-direction: column;
    }

    .employee-traffic-score {
        width: 100%;
        height: 66px;
        flex-basis: auto;
    }

    .employee-traffic-card-head {
        flex-direction: column;
    }

    .employee-traffic-status-label {
        margin-left: 27px;
    }
}
/* =========================================================
   MITARBEITER – FÜHRUNGSKRÄFTE-COCKPIT
   ========================================================= */

.employee-manager-panel {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.employee-manager-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: #88929d;
}

.employee-manager-panel-success::before {
    background: #2f9e68;
}

.employee-manager-panel-info::before {
    background: #4589d7;
}

.employee-manager-panel-warning::before {
    background: #ffb500;
}

.employee-manager-panel-critical::before {
    background: #d84747;
}

.employee-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.employee-manager-header h3 {
    margin: 0;
    color: #092348;
    font-size: 21px;
}

.employee-manager-header p {
    margin: 6px 0 0;
}

.employee-manager-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-manager-action-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 76px;
    flex: 0 0 104px;
    border-radius: 20px;
    background: rgba(102, 112, 133, 0.1);
}

.employee-manager-action-count strong {
    color: #52606d;
    font-size: 27px;
    line-height: 1;
}

.employee-manager-action-count span {
    margin-top: 6px;
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.employee-manager-action-count-success {
    background: rgba(47, 158, 104, 0.12);
}

.employee-manager-action-count-success strong {
    color: #24794f;
}

.employee-manager-action-count-info {
    background: rgba(69, 137, 215, 0.12);
}

.employee-manager-action-count-info strong {
    color: #326cae;
}

.employee-manager-action-count-warning {
    background: rgba(255, 181, 0, 0.16);
}

.employee-manager-action-count-warning strong {
    color: #946900;
}

.employee-manager-action-count-critical {
    background: rgba(216, 71, 71, 0.12);
}

.employee-manager-action-count-critical strong {
    color: #b42f2f;
}

.employee-manager-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 17px;
    background: rgba(9, 35, 72, 0.02);
}

.employee-manager-summary > div {
    padding: 14px;
    border-right: 1px solid rgba(9, 35, 72, 0.08);
    text-align: center;
}

.employee-manager-summary > div:last-child {
    border-right: 0;
}

.employee-manager-summary strong {
    display: block;
    color: #092348;
    font-size: 22px;
    line-height: 1;
}

.employee-manager-summary span {
    display: block;
    margin-top: 5px;
    color: var(--muted, #6f7c86);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
}

.employee-manager-summary .is-critical strong {
    color: #b42f2f;
}

.employee-manager-summary .is-high strong {
    color: #946900;
}

.employee-manager-summary .is-medium strong {
    color: #326cae;
}

.employee-manager-summary .is-positive strong {
    color: #24794f;
}

.employee-manager-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(14, 73, 77, 0.045);
}

.employee-manager-toolbar strong {
    display: block;
    color: #092348;
    font-size: 13px;
}

.employee-manager-toolbar div > span {
    display: block;
    margin-top: 3px;
    color: var(--muted, #6f7c86);
    font-size: 10px;
}

.employee-manager-urgent-badge {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(216, 71, 71, 0.12);
    color: #b42f2f;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-manager-action-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.employee-manager-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(9, 35, 72, 0.08);
    border-radius: 18px;
    background: rgba(9, 35, 72, 0.018);
}

.employee-manager-action-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    background: rgba(102, 112, 133, 0.11);
    color: #667085;
    font-size: 13px;
    font-weight: 900;
}

.employee-manager-action-critical
.employee-manager-action-number {
    background: rgba(216, 71, 71, 0.13);
    color: #b42f2f;
}

.employee-manager-action-high
.employee-manager-action-number {
    background: rgba(255, 181, 0, 0.17);
    color: #946900;
}

.employee-manager-action-medium
.employee-manager-action-number {
    background: rgba(69, 137, 215, 0.12);
    color: #326cae;
}

.employee-manager-action-positive
.employee-manager-action-number {
    background: rgba(47, 158, 104, 0.12);
    color: #24794f;
}

.employee-manager-action-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.employee-manager-action-category {
    display: block;
    margin-bottom: 3px;
    color: var(--muted, #6f7c86);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.employee-manager-action h4 {
    margin: 0;
    color: #092348;
    font-size: 15px;
}

.employee-manager-priority {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(102, 112, 133, 0.1);
    color: #667085;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-manager-action-critical
.employee-manager-priority {
    background: rgba(216, 71, 71, 0.12);
    color: #b42f2f;
}

.employee-manager-action-high
.employee-manager-priority {
    background: rgba(255, 181, 0, 0.16);
    color: #946900;
}

.employee-manager-action-medium
.employee-manager-priority {
    background: rgba(69, 137, 215, 0.12);
    color: #326cae;
}

.employee-manager-action-positive
.employee-manager-priority {
    background: rgba(47, 158, 104, 0.12);
    color: #24794f;
}

.employee-manager-description {
    margin: 8px 0 0;
    color: var(--muted, #6f7c86);
    font-size: 11px;
    line-height: 1.55;
}

.employee-manager-next-step {
    margin-top: 12px;
    padding: 12px 13px;
    border-radius: 13px;
    background: rgba(14, 73, 77, 0.05);
}

.employee-manager-next-step span {
    display: block;
    margin-bottom: 4px;
    color: #648084;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.employee-manager-next-step strong {
    color: #0e494d;
    font-size: 11px;
    line-height: 1.5;
}

.employee-manager-action-critical
.employee-manager-next-step {
    background: rgba(216, 71, 71, 0.055);
}

.employee-manager-action-critical
.employee-manager-next-step span {
    color: #a75b5b;
}

.employee-manager-action-critical
.employee-manager-next-step strong {
    color: #963232;
}

.employee-manager-action-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.employee-manager-action-meta > div {
    padding: 10px 11px;
    border-radius: 12px;
    background: rgba(9, 35, 72, 0.035);
}

.employee-manager-action-meta span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted, #6f7c86);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.employee-manager-action-meta strong {
    color: #344655;
    font-size: 10px;
}

.employee-manager-more-info {
    margin-top: 13px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(9, 35, 72, 0.035);
    color: var(--muted, #6f7c86);
    font-size: 10px;
    text-align: center;
}

.employee-manager-more-info strong {
    color: #092348;
}

.employee-manager-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(47, 158, 104, 0.15);
    border-radius: 17px;
    background: rgba(47, 158, 104, 0.07);
}

.employee-manager-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: #2f9e68;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.employee-manager-empty strong {
    color: #1f7048;
}

.employee-manager-empty p {
    margin: 4px 0 0;
    color: #527564;
    font-size: 11px;
}

@media (max-width: 700px) {
    .employee-manager-header {
        align-items: flex-start;
    }

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

    .employee-manager-summary > div:nth-child(2) {
        border-right: 0;
    }

    .employee-manager-summary > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(9, 35, 72, 0.08);
    }
}

@media (max-width: 560px) {
    .employee-manager-header {
        flex-direction: column;
    }

    .employee-manager-action-count {
        width: 100%;
        height: 66px;
        flex-basis: auto;
    }

    .employee-manager-header-meta {
        width: 100%;
    }

    .employee-manager-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-manager-action {
        grid-template-columns: 1fr;
    }

    .employee-manager-action-head {
        flex-direction: column;
    }

    .employee-manager-action-meta {
        grid-template-columns: 1fr;
    }
}
/* Ausfallplanung – gemeinsame Modulnavigation und robuste Buttons */
.absence-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 7px;
    border: 1px solid rgba(14, 73, 77, .12);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.absence-tab,
.toolbar-btn,
.btn,
.ap-btn,
.al-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
}

.absence-tab {
    padding: 10px 16px;
    border-radius: 11px;
    background: #eef5f5;
    color: var(--petrol);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.absence-tab:hover {
    background: #dfeeee;
    transform: translateY(-1px);
}

.absence-tab.is-active {
    background: var(--petrol);
    color: #fff;
    box-shadow: 0 8px 20px rgba(14, 73, 77, .18);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button.toolbar-btn,
a.toolbar-btn {
    box-sizing: border-box;
}

@media (max-width: 760px) {
    .absence-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .absence-tab {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .absence-tabs {
        grid-template-columns: 1fr;
    }
}


/* Auth, Benutzer und Rechte */
.auth-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#07363a,#0e494d)}
.auth-card{width:min(440px,100%);background:#fff;border-radius:24px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.auth-brand{font-size:38px;font-weight:800;color:#0e494d}.auth-brand span{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ffb800;margin-left:4px}
.auth-card h1{margin:28px 0 6px}.auth-card>p{color:#7b8797;margin:0 0 22px}.auth-card label{display:grid;gap:7px;margin:15px 0;font-weight:700}.auth-card input{height:48px;border:1px solid #dbe4e9;border-radius:12px;padding:0 14px;font-size:15px}.auth-submit{width:100%;height:48px;border:0;border-radius:12px;background:#0e494d;color:#fff;font-weight:800;font-size:15px;cursor:pointer}.auth-error{padding:12px;border-radius:10px;background:#fdebec;color:#9b1c1c}.auth-card small{display:block;margin-top:18px;color:#7b8797}
.sidebar-user{margin-top:auto;padding:14px 12px 6px;display:grid;gap:3px}.sidebar-user strong{font-size:13px}.sidebar-user span{font-size:11px;color:rgba(255,255,255,.7)}.logout-form{margin:0}.logout{display:block;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}
.admin-actions,.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:18px}.form-panel{padding:24px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{display:grid;gap:7px;font-weight:700}.form-grid input,.form-grid select{height:44px;border:1px solid var(--line);border-radius:11px;padding:0 12px;background:#fff}.check-row{display:flex;align-items:flex-start;gap:10px;margin:14px 0}.check-row input{margin-top:3px}.check-row span{display:grid}.check-row small{color:var(--muted);font-weight:400}.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}.permission-grid fieldset{border:1px solid var(--line);border-radius:14px;padding:14px}.permission-grid legend{padding:0 8px;font-weight:800;color:var(--petrol)}.table-wrap{overflow:auto}.panel table{width:100%;border-collapse:collapse}.panel th,.panel td{padding:13px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}.status-pill.ok{background:#eaf8f2;color:#087443}.status-pill.off{background:#fdebec;color:#a32727}
@media(max-width:800px){.form-grid,.permission-grid{grid-template-columns:1fr}}


/* ================================================================
   FYZIO Cloud 2.0 · Phase 1 · Executive Cockpit & Design-System
   ================================================================ */
.brand-logo{display:flex;align-items:center;height:54px;margin:0 8px 34px;padding:4px 2px;text-decoration:none}.brand-logo img{display:block;width:132px;max-width:100%;height:44px;object-fit:contain;object-position:left center;filter:none}.sidebar{overflow-y:auto}.sidebar-user{margin-top:auto;padding:18px 12px 4px;display:grid;gap:3px}.sidebar-user strong{font-size:13px}.sidebar-user span{font-size:11px;color:rgba(255,255,255,.7)}.logout-form{margin:0}.logout{display:block;width:100%;border:0;background:transparent;text-align:left;cursor:pointer}.page-header{align-items:center}.toolbar-btn,.month-arrow,.month-display{min-height:42px}.toolbar-btn{display:inline-flex;align-items:center;justify-content:center;line-height:1}.month-arrow{display:inline-flex;align-items:center;justify-content:center;width:42px;border:1px solid var(--line);border-radius:14px;background:#fff;text-decoration:none;font-size:24px;box-shadow:var(--shadow-soft)}.month-display{display:grid;align-content:center;min-width:146px;padding:7px 15px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-soft)}.month-display span{font-size:9px;text-transform:uppercase;color:var(--muted);letter-spacing:.08em}.month-display strong{font-size:13px;line-height:1.15}.ceo-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:24px 28px;border-radius:24px;background:linear-gradient(135deg,#07363a,#0e494d);color:#fff;box-shadow:0 22px 55px rgba(7,54,58,.18)}.ceo-hero h2{margin:5px 0 7px;font-size:28px}.ceo-hero p{margin:0;color:rgba(255,255,255,.76);max-width:760px}.ceo-eyebrow,.ceo-card-kicker{font-size:10px;font-weight:800;letter-spacing:.13em}.ceo-eyebrow{color:#ffb500}.ceo-hero-logo{display:flex;align-items:center;justify-content:center;width:170px;height:72px;padding:10px 14px;border-radius:18px;background:rgba(255,255,255,.08)}.ceo-hero-logo img{max-width:100%;max-height:52px;object-fit:contain}.ceo-kpi-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;margin-bottom:18px}.ceo-kpi{min-height:128px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-card);overflow:hidden}.ceo-kpi-label{font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.ceo-kpi-value{margin:14px 0 18px;font-size:24px;font-weight:750;letter-spacing:-.03em;white-space:nowrap}.ceo-kpi-value small{font-size:13px}.ceo-kpi-bar{height:5px;border-radius:999px;background:#edf2f5;overflow:hidden}.ceo-kpi-bar span{display:block;height:100%;border-radius:inherit;background:var(--petrol)}.tone-red .ceo-kpi-bar span{background:var(--red)}.tone-green .ceo-kpi-bar span{background:var(--green)}.tone-yellow .ceo-kpi-bar span{background:var(--yellow)}.tone-blue .ceo-kpi-bar span{background:var(--blue)}.tone-purple .ceo-kpi-bar span{background:#7b4fc5}.ceo-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}.ceo-span-4{grid-column:span 4}.ceo-span-5{grid-column:span 5}.ceo-span-6{grid-column:span 6}.ceo-span-7{grid-column:span 7}.ceo-span-8{grid-column:span 8}.ceo-span-12{grid-column:span 12}.ceo-card{min-height:0;padding:20px}.ceo-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.ceo-card-head h3{margin:4px 0 0;font-size:16px;text-transform:none}.ceo-card-head a{font-size:12px;font-weight:700;color:var(--blue);text-decoration:none}.ceo-card-kicker{color:var(--muted)}.ceo-chart-lg{height:285px}.ceo-chart-md{height:250px}.daily-stack{display:grid;gap:10px}.daily-stack>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px;border-radius:14px;background:#f5f8fa}.daily-stack span{font-size:12px;color:var(--muted)}.daily-stack strong{font-size:17px}.daily-stack .danger{background:#fff0f0;color:var(--red)}.capacity-list,.risk-list{display:grid;gap:12px}.capacity-row{display:grid;grid-template-columns:150px 1fr 90px;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.capacity-row:last-child{border-bottom:0}.capacity-row>div:first-child{display:grid;gap:3px}.capacity-row span{font-size:11px;color:var(--muted)}.capacity-row b{text-align:right;font-size:12px}.capacity-meter{height:9px;border-radius:999px;background:#e8eef2;overflow:hidden}.capacity-meter span{display:block;height:100%;background:var(--green)}.capacity-meter span.yellow{background:var(--yellow)}.capacity-meter span.red{background:var(--red)}.risk-item{display:flex;gap:12px;padding:13px 14px;border-radius:14px;background:#f7f9fb}.risk-item i{width:9px;height:9px;margin-top:4px;border-radius:50%;background:var(--green);flex:0 0 auto}.risk-item>div{display:grid;gap:4px}.risk-item strong{font-size:13px}.risk-item span{font-size:12px;color:var(--muted)}.risk-red{background:#fff1f1}.risk-red i{background:var(--red)}.risk-yellow{background:#fff8e6}.risk-yellow i{background:var(--yellow)}.ceo-empty{padding:28px;border:1px dashed var(--line);border-radius:14px;text-align:center;color:var(--muted)}.status-pill{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:#eaf6f1;color:var(--petrol);font-size:11px;font-weight:700}.text-danger{color:var(--red)}.ceo-table td,.ceo-table th{vertical-align:middle}@media(max-width:1450px){.ceo-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){.ceo-span-4,.ceo-span-5,.ceo-span-6,.ceo-span-7,.ceo-span-8{grid-column:span 12}.ceo-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ceo-hero-logo{display:none}}@media(max-width:760px){.main{padding:18px}.page-header{align-items:flex-start;flex-direction:column}.fyzio-toolbar{flex-wrap:wrap}.ceo-kpi-grid{grid-template-columns:1fr}.ceo-hero{padding:20px}.capacity-row{grid-template-columns:1fr}.capacity-row b{text-align:left}.brand-logo img{width:118px}}

/* ================================================================
   FYZIO Cloud 2.0 · Phase 2 · Therapeuten- & Mitarbeiter-Cockpit
   ================================================================ */
.module-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:7px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow-soft)}
.module-tab{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:11px;background:#eef5f5;color:var(--petrol);font-size:12px;font-weight:800;line-height:1.15;text-decoration:none;text-align:center;white-space:nowrap;transition:.18s ease}
.module-tab:hover{background:#dfeeee;transform:translateY(-1px)}.module-tab.is-active{background:var(--petrol);color:#fff;box-shadow:0 8px 20px rgba(14,73,77,.18)}
.module-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:22px 26px;border-radius:23px;background:linear-gradient(135deg,#07363a,#0e494d);color:#fff;box-shadow:0 20px 48px rgba(7,54,58,.16)}
.module-hero h2{margin:5px 0 7px;font-size:25px}.module-hero p{max-width:820px;margin:0;color:rgba(255,255,255,.76)}.module-eyebrow{color:var(--yellow);font-size:10px;font-weight:900;letter-spacing:.13em}
.hero-score{display:grid;gap:4px;min-width:175px;padding:15px 18px;border:1px solid rgba(255,255,255,.12);border-radius:17px;background:rgba(255,255,255,.08);text-align:right}.hero-score span{font-size:10px;color:rgba(255,255,255,.7);text-transform:uppercase}.hero-score strong{font-size:23px}
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;margin-bottom:18px}.dashboard-kpi{position:relative;min-height:122px;padding:16px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow-card)}.dashboard-kpi>span{display:block;min-height:24px;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.dashboard-kpi strong{display:block;margin-top:10px;font-size:21px;letter-spacing:-.03em;line-height:1.2}.dashboard-kpi strong small{font-size:11px}.dashboard-kpi i{position:absolute;right:0;bottom:0;left:0;height:5px;background:var(--petrol)}.dashboard-kpi.tone-green i{background:var(--green)}.dashboard-kpi.tone-red i{background:var(--red)}.dashboard-kpi.tone-yellow i{background:var(--yellow)}.dashboard-kpi.tone-blue i{background:var(--blue)}.dashboard-kpi.tone-purple i{background:#7b4fc5}
.dashboard-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px}.dashboard-card{min-width:0;padding:20px}.dashboard-card.span-3{grid-column:span 3}.dashboard-card.span-4{grid-column:span 4}.dashboard-card.span-5{grid-column:span 5}.dashboard-card.span-6{grid-column:span 6}.dashboard-card.span-7{grid-column:span 7}.dashboard-card.span-8{grid-column:span 8}.dashboard-card.span-12{grid-column:span 12}.dashboard-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}.dashboard-card-head>div>span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.11em}.dashboard-card-head h3{margin:4px 0 0;font-size:15px;text-transform:none}.dashboard-card-head>a{color:var(--blue);font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}.chart-height-lg{height:280px}.chart-height-md{height:235px}.chart-height-sm{height:190px}
.ranking-list{display:grid}.ranking-list>a{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:53px;padding:8px 2px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}.ranking-list>a:last-child{border-bottom:0}.ranking-list>a:hover span{color:var(--blue)}.ranking-list b{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:#e8f4f1;color:var(--petrol);font-size:11px}.ranking-list span{display:grid;gap:2px;min-width:0;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranking-list small{color:var(--muted);font-size:9px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.ranking-list strong{font-size:11px;white-space:nowrap}.ranking-list.warning b{background:#fff4d6;color:#9b6900}.ranking-list.danger b{background:#fdecec;color:var(--red)}
.dashboard-empty{padding:22px;border:1px dashed var(--line);border-radius:13px;color:var(--muted);font-size:11px;text-align:center}.dashboard-table th{font-size:9px;letter-spacing:.03em;text-transform:uppercase}.dashboard-table td{font-size:11px}.dashboard-table a{color:var(--petrol);text-decoration:none}.dashboard-table tr:hover td{background:#f9fbfc}
@media(max-width:1450px){.dashboard-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-card.span-3{grid-column:span 6}}
@media(max-width:1080px){.dashboard-card.span-4,.dashboard-card.span-5,.dashboard-card.span-6,.dashboard-card.span-7,.dashboard-card.span-8{grid-column:span 12}.module-hero{align-items:flex-start}.hero-score{min-width:150px}}
@media(max-width:760px){.module-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.module-tab{white-space:normal}.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-card.span-3{grid-column:span 12}.module-hero{flex-direction:column}.hero-score{width:100%;text-align:left}.chart-height-lg,.chart-height-md{height:230px}}
@media(max-width:480px){.module-tabs,.dashboard-kpi-grid{grid-template-columns:1fr}}


/* ================================================================
   FYZIO Cloud 2.0 · Phase 3 Korrektur · gemeinsame Modulnavigation
   ================================================================ */
.module-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;padding:7px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:var(--shadow-soft)}
.module-tab{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:0;border-radius:11px;background:#eef5f5;color:var(--petrol);font-size:12px;font-weight:800;line-height:1.15;text-decoration:none;text-align:center;white-space:nowrap;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.module-tab:hover{background:#dfeeee;color:var(--petrol);transform:translateY(-1px)}
.module-tab.is-active{background:var(--petrol);color:#fff;box-shadow:0 8px 20px rgba(14,73,77,.18)}
.module-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 18px}
.module-actions .toolbar-btn{min-height:42px;padding:10px 14px;border-radius:11px}
.module-actions .toolbar-btn.primary{background:var(--petrol);border-color:var(--petrol);color:#fff}
/* Alte, lokale Navigationsstile neutralisieren */
.fc-tabs,.ap-tabs,.absence-tabs{display:none!important}
@media(max-width:760px){.module-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.module-tab{width:100%;white-space:normal}.module-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.module-actions .toolbar-btn{width:100%}}
@media(max-width:480px){.module-tabs,.module-actions{grid-template-columns:1fr}}

/* FYZIO Cloud 2.0 · Phase 4 Operations Cockpits */
.ops-commandbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.ops-tabs{display:flex;gap:8px;flex-wrap:wrap}.module-tab{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border:1px solid #dce5e9;border-radius:11px;background:#fff;color:#0e494d;font-weight:800;text-decoration:none;box-shadow:0 4px 14px rgba(14,73,77,.05)}.module-tab:hover,.module-tab.is-active{background:#0e494d;color:#fff;border-color:#0e494d}.ops-live{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:#fff;font-size:11px;font-weight:900;letter-spacing:.05em;color:#52646b}.ops-live span{width:8px;height:8px;border-radius:50%;background:#ffb500}.ops-live.is-live span{background:#20a46b;box-shadow:0 0 0 5px rgba(32,164,107,.12)}.ops-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 28px;margin-bottom:16px;border-radius:20px;background:linear-gradient(125deg,#0d4448,#116068);color:#fff;box-shadow:0 15px 35px rgba(14,73,77,.18)}.ops-kicker,.ops-panel-head span{font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.ops-hero h2{margin:5px 0 4px;font-size:27px}.ops-hero p{margin:0;color:rgba(255,255,255,.74)}.ops-health{min-width:250px;padding:16px 19px;border:1px solid rgba(255,255,255,.2);border-radius:15px;background:rgba(255,255,255,.09)}.ops-health span,.ops-health small{display:block;color:rgba(255,255,255,.7);font-size:11px}.ops-health strong{display:block;margin:4px 0;font-size:20px}.ops-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.ops-kpi-card,.ops-panel{background:#fff;border:1px solid #e2e9ec;border-radius:17px;box-shadow:0 8px 22px rgba(22,54,67,.05)}.ops-kpi-card{padding:18px}.ops-kpi-top{display:flex;justify-content:space-between;color:#64777e;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.ops-kpi-top b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#edf6f5;color:#0e494d}.ops-kpi-card>strong{display:block;margin:13px 0 10px;color:#0c3f43;font-size:27px}.ops-kpi-card>strong small{font-size:13px}.ops-kpi-foot{display:flex;align-items:center;gap:6px;color:#7b8b91;font-size:11px}.status-dot{width:7px;height:7px;border-radius:50%;background:#20a46b}.ops-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:16px}.ops-panel{padding:18px;min-width:0}.ops-span-2{grid-column:auto}.ops-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:14px}.ops-panel-head span{color:#74868c}.ops-panel-head h3{margin:4px 0 0;color:#123e43;font-size:16px}.ops-chip{padding:7px 10px;border-radius:999px;background:#eef6f5;color:#0e494d!important;font-size:10px!important}.ops-chart{height:275px}.ops-pipeline-panel{margin-bottom:16px}.ops-pipeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px}.ops-stage{padding:12px;border:1px solid #e4ebed;border-radius:12px;background:#fafcfc}.ops-stage>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:#334f55}.ops-progress{height:6px;margin-top:11px;border-radius:9px;background:#e7eded;overflow:hidden}.ops-progress i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#0e494d,#ffb500)}.ops-table{width:100%;border-collapse:collapse;font-size:12px}.ops-table th{padding:10px;text-align:left;color:#62767c;font-size:10px;text-transform:uppercase;border-bottom:1px solid #dfe7e9}.ops-table td{padding:12px 10px;border-bottom:1px solid #edf1f2;color:#385158}.ops-table td strong,.ops-table td small{display:block}.ops-table td strong{color:#0d464b}.ops-table td small{margin-top:3px;color:#8a989d}.ops-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#edf5f4;color:#0e494d;font-weight:800}.ops-alerts{display:flex;flex-direction:column;gap:10px}.ops-alert{display:flex;gap:10px;padding:12px;border-radius:12px;background:#f7faf9}.ops-alert>span{flex:0 0 8px;height:8px;margin-top:5px;border-radius:50%;background:#20a46b}.ops-alert.warning>span{background:#ffb500}.ops-alert.danger>span{background:#d84b4b}.ops-alert strong{color:#173f44;font-size:12px}.ops-alert p{margin:3px 0 0;color:#718187;font-size:11px;line-height:1.45}@media(max-width:1100px){.ops-kpi-grid{grid-template-columns:repeat(2,1fr)}.ops-grid{grid-template-columns:1fr}.ops-hero{align-items:flex-start}.ops-health{min-width:220px}}@media(max-width:700px){.ops-commandbar,.ops-hero{align-items:stretch;flex-direction:column}.ops-kpi-grid{grid-template-columns:1fr}.ops-health{min-width:0}.module-tab{flex:1}.ops-chart{height:230px}}

/* FYZIO Cloud 2.0 · Phase 5 Enterprise Administration */
.admin-module-tabs{margin-bottom:18px}.phase5-admin-hero,.system-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:25px 28px;margin-bottom:16px;border-radius:21px;background:linear-gradient(125deg,#07363a,#0e5a60);color:#fff;box-shadow:0 16px 38px rgba(14,73,77,.18)}.phase5-admin-hero span,.system-hero span{color:#ffb500;font-size:10px;font-weight:900;letter-spacing:.12em}.phase5-admin-hero h2,.system-hero h2{margin:5px 0;font-size:27px}.phase5-admin-hero p,.system-hero p{margin:0;color:rgba(255,255,255,.72)}.system-hero>strong{display:grid;place-items:center;min-width:105px;height:72px;border:1px solid rgba(255,255,255,.2);border-radius:16px;background:rgba(255,255,255,.08);font-size:23px}.phase5-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.phase5-kpis article{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow-soft)}.phase5-kpis span,.phase5-kpis small{display:block;color:var(--muted);font-size:10px;font-weight:800}.phase5-kpis strong{display:block;margin:10px 0 5px;color:var(--petrol);font-size:24px}.phase5-launchpad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.phase5-launchpad a{display:grid;gap:5px;min-height:96px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:var(--shadow-soft);transition:.18s}.phase5-launchpad a:hover{transform:translateY(-2px);border-color:#9fc2c3}.phase5-launchpad b{color:var(--petrol);font-size:15px}.phase5-launchpad span{color:var(--muted);font-size:11px}.phase5-grid{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(0,1.5fr);gap:16px}.phase5-form{height:max-content}.full-label{display:grid;gap:7px;margin:15px 0;font-weight:700}.full-label textarea{padding:12px;border:1px solid var(--line);border-radius:11px}.row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.row-actions form{margin:0}.row-actions a,.row-actions button{border:0;background:transparent;color:var(--blue);font-size:11px;font-weight:800;cursor:pointer;text-decoration:none}.phase5-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.notification-center{padding:8px 18px}.notification-item{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:15px;padding:17px 4px;border-bottom:1px solid var(--line)}.notification-item>i{width:9px;height:9px;border-radius:50%;background:#7f9298}.notification-item.is-unread{background:linear-gradient(90deg,#f0f8f6,transparent)}.notification-item.is-unread>i{background:#ffb500;box-shadow:0 0 0 5px rgba(255,181,0,.13)}.notification-item span{color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.06em}.notification-item h3{margin:4px 0;font-size:14px}.notification-item p{margin:0;color:#64767d;font-size:11px}.notification-item a{display:inline-block;margin-top:7px;color:var(--blue);font-size:11px;font-weight:800}.audit-action{display:inline-flex;padding:5px 8px;border-radius:8px;background:#edf5f4;color:var(--petrol);font-size:10px;font-weight:800}.health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}.health-card{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff}.health-card i{width:10px;height:10px;border-radius:50%;background:#d84b4b}.health-card.is-ok i{background:#20a46b;box-shadow:0 0 0 5px rgba(32,164,107,.12)}.health-card div{display:grid;gap:3px}.health-card strong{font-size:12px}.health-card span{color:var(--muted);font-size:10px}.system-checklist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.system-checklist div{display:flex;align-items:center;gap:10px;padding:14px;border-radius:13px;background:#f5f8f8}.system-checklist b{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:9px;background:var(--petrol);color:#fff}.system-checklist span{font-size:11px;font-weight:700}@media(max-width:1200px){.phase5-kpis{grid-template-columns:repeat(3,1fr)}.health-grid{grid-template-columns:repeat(2,1fr)}.phase5-grid{grid-template-columns:1fr}}@media(max-width:760px){.phase5-admin-hero,.system-hero,.phase5-toolbar{align-items:stretch;flex-direction:column}.phase5-kpis,.phase5-launchpad,.health-grid,.system-checklist{grid-template-columns:1fr}.notification-item{grid-template-columns:10px 1fr}.notification-item form{grid-column:2}}


/* Phase 5.1 / Master-Initializer */
.import-module-help{margin:14px 0;padding:12px 14px;border-radius:12px;background:#eef6f5;color:#0e494d;font-size:13px;line-height:1.5}
.reset-warning{margin:16px 0;padding:16px;border-left:5px solid #e6535f;background:#fff3f4;border-radius:12px;color:#7d2430}
.initializer-steps{display:grid;gap:10px;margin:18px 0;padding-left:24px}.btn.danger{background:#b8323f;color:#fff;border-color:#b8323f}

/* Phase 5.6 visual polish */
.dashboard-layout{gap:18px}.panel,.dashboard-card{border-radius:20px!important}.dashboard-card-head h3{letter-spacing:-.015em}.chart-height-lg,.chart-height-md{position:relative}
.dashboard-kpi strong{letter-spacing:-.025em}.module-hero{box-shadow:0 16px 38px rgba(14,73,77,.15)}
.ranking-list a{transition:.16s}.ranking-list a:hover{transform:translateX(3px);background:rgba(255,181,0,.07)}
.data-table tbody tr:nth-child(even) td{background:rgba(14,73,77,.018)}.data-table tbody tr:hover td{background:rgba(255,181,0,.065)!important}

/* Phase 5.30 Planning Enterprise */
.planning-tabs{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.planning-hero{margin-bottom:14px}.planning-kpis{display:grid;grid-template-columns:repeat(8,minmax(120px,1fr));gap:10px;margin-bottom:14px}.planning-kpi{background:#fff;border:1px solid rgba(14,73,77,.1);border-radius:16px;padding:16px;box-shadow:0 10px 28px rgba(14,73,77,.06);position:relative;overflow:hidden}.planning-kpi:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:#0e494d}.planning-kpi.green:after{background:#63c697}.planning-kpi.orange:after{background:#ffbd57}.planning-kpi.red:after{background:#ef858b}.planning-kpi span{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#65787b;font-weight:800}.planning-kpi strong{display:block;margin-top:8px;font-size:22px;color:#082f35}.planning-grid{display:grid;gap:14px;margin-bottom:14px}.planning-grid-3{grid-template-columns:1.05fr 1.2fr 1fr}.planning-grid-2{grid-template-columns:2.2fr 1fr}.planning-card{background:#fff;border:1px solid rgba(14,73,77,.1);border-radius:18px;padding:16px;box-shadow:0 10px 30px rgba(14,73,77,.055)}.planning-card>header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.planning-card header small{font-size:10px;letter-spacing:.1em;color:#718286;font-weight:900}.planning-card h3{margin:2px 0 0;color:#082f35}.plan-comparison>div{margin:13px 0}.plan-comparison span{font-size:12px;color:#5d7073}.plan-comparison strong{float:right;color:#082f35}.plan-comparison i{display:block;clear:both;height:10px;border-radius:9px;background:linear-gradient(90deg,#63c697 var(--w),#e8eff0 var(--w));margin-top:7px}.plan-comparison i.loss{background:linear-gradient(90deg,#ef858b var(--w),#e8eff0 var(--w))}.planning-bars{height:210px;display:flex;align-items:end;gap:8px;padding:16px 4px 4px}.planning-bars>div{flex:1;text-align:center;font-size:10px}.planning-bars i{display:block;height:min(160px,calc(var(--planned)*2px));min-height:8px;border-radius:7px 7px 2px 2px;background:linear-gradient(to top,#6d9fe3 0 52%,#dfeaf7 52%);position:relative}.planning-bars b{font-size:9px;color:#64777a}.planning-map{min-height:210px;position:relative;border-radius:14px;background:radial-gradient(circle at 25% 30%,#e8f5f1,transparent 35%),radial-gradient(circle at 76% 66%,#fef0c9,transparent 32%),#f3f7f7;overflow:hidden}.map-pin{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);border-radius:50% 50% 50% 0;transform:translate(-50%,-50%) rotate(-45deg);background:#0e494d;color:#fff;box-shadow:0 8px 18px rgba(14,73,77,.22);display:grid;place-items:center}.map-pin b{transform:rotate(45deg)}.map-pin span{display:none;position:absolute;transform:rotate(45deg);white-space:nowrap;background:#fff;color:#0e494d;padding:7px 9px;border-radius:9px;top:45px;left:20px;box-shadow:0 8px 18px rgba(0,0,0,.12);z-index:3}.map-pin:hover span{display:block}.planning-table{width:100%;border-collapse:collapse;font-size:12px}.planning-table th{background:#f1f6f6;color:#52676a;padding:11px 9px;text-align:left;white-space:nowrap}.planning-table td{padding:11px 9px;border-bottom:1px solid #edf1f2;white-space:nowrap}.planning-table td:first-child strong,.planning-table td:first-child small{display:block}.metric-pill{display:inline-flex;padding:5px 8px;border-radius:999px;font-weight:800}.metric-pill.green{background:#e2f5eb;color:#137347}.metric-pill.orange{background:#fff0c9;color:#8a6200}.metric-pill.red{background:#fde0e1;color:#b13039}.metric-pill.neutral{background:#eef3f4;color:#627477}.planning-alerts{display:grid;gap:9px}.planning-alert{display:flex;gap:10px;padding:12px;border-radius:13px;background:#f4f7f7}.planning-alert>span{width:9px;height:9px;border-radius:50%;margin-top:5px}.planning-alert.red{background:#fff0f0}.planning-alert.red>span{background:#e4535c}.planning-alert.orange{background:#fff8e6}.planning-alert.orange>span{background:#ffb500}.planning-alert.green{background:#eaf7f0}.planning-alert.green>span{background:#42b77b}.planning-alert p{margin:2px 0 0;color:#67777a;font-size:12px}.tour-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tour-grid article{border:1px solid #e5eded;border-radius:14px;padding:14px;background:#fbfdfd}.tour-grid article>div{display:flex;justify-content:space-between;gap:8px}.tour-grid span{font-size:11px;color:#697b7e}.tour-grid p{font-size:12px;margin:7px 0}.planning-modal[hidden]{display:none}.planning-modal{position:fixed;inset:0;background:rgba(6,39,43,.7);z-index:9999;display:grid;place-items:center;padding:20px}.planning-modal-card{width:min(850px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.planning-modal-card>header{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;background:#0e494d;color:#fff}.planning-modal-card header h3{margin:3px 0}.planning-modal-card header button{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:9px 12px}.planning-modal-card form{padding:22px}.planning-modal-card .span-2{grid-column:1/-1}.empty{color:#718184;font-size:13px;padding:20px;text-align:center}@media(max-width:1400px){.planning-kpis{grid-template-columns:repeat(4,1fr)}.planning-grid-3{grid-template-columns:1fr 1fr}.planning-grid-3>.planning-card:last-child{grid-column:1/-1}}@media(max-width:900px){.planning-kpis{grid-template-columns:repeat(2,1fr)}.planning-grid-3,.planning-grid-2{grid-template-columns:1fr}.tour-grid{grid-template-columns:1fr}}

/* Phase 5.31 · Gemeinsamer Optica-Import */
.import-impact-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(120px,1fr));
  gap:10px;
  margin:14px 0;
}
.import-impact-grid>div{
  min-height:72px;
  padding:12px 14px;
  border:1px solid rgba(14,73,77,.12);
  border-radius:14px;
  background:linear-gradient(145deg,#f7fbfa,#eef6f5);
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
}
.import-impact-grid small{
  color:#64777a;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.import-impact-grid strong{
  color:#0e494d;
  font-size:1.08rem;
}
.import-combined-note{
  margin:12px 0 4px;
  padding:13px 15px;
  border-left:4px solid #ffb500;
  border-radius:12px;
  background:#fff7dc;
  color:#314b4e;
  line-height:1.5;
}
@media(max-width:1100px){.import-impact-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.import-impact-grid{grid-template-columns:1fr;}}

/* Phase 5.32 – Planning cockpit refinement */
.planning-number{display:inline-flex;align-items:center;gap:4px}
.planning-number:after{content:"?";display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;font-size:9px;font-weight:900;background:rgba(14,73,77,.08);color:#0e494d;opacity:0;transition:opacity .15s ease}
.planning-number:hover:after{opacity:1}
.planning-kpi strong.planning-number{font-size:21px}
.planning-quality-card .plan-comparison strong{cursor:pointer}
.planning-grid-2{grid-template-columns:minmax(0,2.35fr) minmax(330px,1fr)}
.planning-risk-card{background:linear-gradient(180deg,#fff,#fbfdfd)}
.risk-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.risk-summary>div{padding:13px 15px;border-radius:14px;background:#f2f7f7;border:1px solid #e3eeee}
.risk-summary span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#708184;font-weight:850}
.risk-summary strong{display:block;margin-top:5px;font-size:24px;color:#0e494d}
.planning-alert{width:100%;border:0;text-align:left;align-items:center;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.planning-alert:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(14,73,77,.09)}
.planning-alert .alert-icon{width:27px;height:27px;display:grid;place-items:center;flex:0 0 27px;margin:0;border-radius:50%;font-weight:950;color:#fff}
.planning-alert.red .alert-icon{background:#df5861}.planning-alert.orange .alert-icon{background:#ffb500;color:#5a4200}.planning-alert.green .alert-icon{background:#42b77b}
.planning-alert i{margin-left:auto;font-style:normal;font-size:10px;font-weight:850;color:#718285}
.time-flag{width:34px;height:34px;border-radius:50%;border:0;display:grid;place-items:center;font-size:16px;font-weight:950;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.time-flag:hover{transform:scale(1.08);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.time-flag.green{background:#dff4e8;color:#15804e}.time-flag.orange{background:#fff0c9;color:#8a6200}.time-flag.red{background:#fde0e1;color:#b13039}.time-flag.neutral{background:#eef3f4;color:#7a8a8d}
.planning-table th,.planning-table td{text-align:center}.planning-table th:first-child,.planning-table td:first-child{text-align:left}
.planning-table td{vertical-align:middle}
.planning-table tbody tr:hover{background:#fbfdfd}
.planning-modal{backdrop-filter:blur(8px)}
.planning-tour-dialog{width:min(1080px,96vw);border:1px solid rgba(255,255,255,.45)}
.planning-tour-dialog>header,.planning-detail-dialog>header{padding:24px 28px;background:linear-gradient(135deg,#0e494d,#17666a)}
.planning-tour-dialog>header p,.planning-detail-dialog>header p{margin:6px 0 0;color:rgba(255,255,255,.78);font-size:13px}
.planning-tour-dialog form{padding:24px 28px 28px;display:grid;gap:16px}
.tour-form-section{padding:18px;border-radius:18px;background:#f8fbfb;border:1px solid #e4eeee}
.tour-form-title{display:flex;align-items:center;gap:11px;margin-bottom:15px}
.tour-form-title>span{width:30px;height:30px;border-radius:10px;background:#ffb500;color:#4e3900;display:grid;place-items:center;font-weight:950}
.tour-form-title strong,.tour-form-title small{display:block}.tour-form-title small{color:#748588;margin-top:2px}
.planning-tour-dialog .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.planning-tour-dialog label{display:grid;gap:7px;font-weight:800;color:#173f42}
.planning-tour-dialog input,.planning-tour-dialog select,.planning-tour-dialog textarea{width:100%;border:1px solid #cfdddd;border-radius:13px;padding:12px 13px;background:#fff;color:#173f42;font:inherit;box-sizing:border-box}
.planning-tour-dialog input:focus,.planning-tour-dialog select:focus,.planning-tour-dialog textarea:focus{outline:3px solid rgba(255,181,0,.18);border-color:#ffb500}
.employee-multi-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding:4px}
.employee-check{display:flex!important;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e2ebec;border-radius:12px;background:#fff;cursor:pointer;font-weight:500!important}
.employee-check:hover{border-color:#9fc8c9;background:#f4fbfa}.employee-check input{width:17px!important;height:17px!important;flex:0 0 auto}.employee-check span strong,.employee-check span small{display:block}.employee-check span small{color:#7b8a8d;margin-top:2px}
.tour-note textarea{min-height:100px;border-radius:15px!important;resize:vertical}
.tour-form-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:3px}
.tour-form-actions .primary{border:0;border-radius:13px;background:#ffb500;color:#4a3500;font-weight:900;padding:12px 20px;cursor:pointer}
.planning-detail-dialog{width:min(820px,95vw)}
.planning-detail-body{padding:25px 28px 30px;display:grid;gap:16px}
.detail-status{display:flex;gap:14px;align-items:flex-start;padding:17px;border-radius:16px;background:#f5f8f8}.detail-status>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:20px;font-weight:950;flex:0 0 38px}.detail-status strong{font-size:17px}.detail-status p{margin:5px 0 0;color:#5e7174;line-height:1.55}.detail-status.green{background:#eaf7f0}.detail-status.green>span{background:#42b77b;color:#fff}.detail-status.orange{background:#fff7df}.detail-status.orange>span{background:#ffb500;color:#523b00}.detail-status.red{background:#fff0f0}.detail-status.red>span{background:#df5861;color:#fff}.detail-status.neutral>span{background:#dfe8e9;color:#66787b}
.detail-metric-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.detail-metric{padding:15px;border-radius:14px;border:1px solid #e4eded;background:#fff}.detail-metric span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#718285;font-weight:900}.detail-metric strong{display:block;margin-top:6px;font-size:20px;color:#0e494d}.detail-metric.red{background:#fff0f0}.detail-metric.red strong{color:#b13039}.detail-metric.orange{background:#fff8e6}.detail-metric.orange strong{color:#8a6200}.detail-metric.green{background:#eaf7f0}.detail-metric.green strong{color:#137347}
.detail-explanation{padding:18px 20px;border-radius:16px;background:#fff8df;border-left:5px solid #ffb500}.detail-explanation h4{margin:0 0 9px;color:#173f42}.detail-explanation p{margin:7px 0;color:#4f6466;line-height:1.6}
@media(max-width:1100px){.planning-grid-2{grid-template-columns:1fr}.employee-multi-list{grid-template-columns:1fr}}
@media(max-width:720px){.planning-tour-dialog .form-grid{grid-template-columns:1fr}.planning-tour-dialog .span-2{grid-column:auto}.detail-metric-grid{grid-template-columns:1fr}.planning-tour-dialog form,.planning-detail-body{padding:18px}.planning-tour-dialog>header,.planning-detail-dialog>header{padding:20px}}

/* Phase 5.34: sortierbare Planungstabelle */
.planning-table .table-sort{appearance:none;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;padding:0;display:inline-flex;align-items:center;gap:5px;cursor:pointer;white-space:nowrap}
.planning-table .table-sort:hover{color:#0e494d}
.planning-table .table-sort span{font-size:11px;color:#8a9a9c;min-width:10px}
.planning-table .table-sort[data-direction="asc"] span,.planning-table .table-sort[data-direction="desc"] span{color:#ffb500}
