:root {
    --navy: #022362;
    --navy-deep: #011847;
    --blue-dark: #014cb7;
    --blue: #0269e9;
    --blue-bright: #0a73ff;
    --pink: #e91563;

    --surface-page: #eef3fa;
    --surface-card: rgba(255, 255, 255, 0.96);
    --surface-soft: #f7f9fd;
    --surface-blue: #edf4ff;

    --text-main: #0b1f46;
    --text-muted: #5e6f8e;
    --text-light: #92a2bd;

    --border: #dde6f2;
    --border-strong: #cbd8ea;

    --success: #0a9b63;
    --danger: #c92f55;

    --shadow-soft: 0 18px 50px rgba(2, 35, 98, 0.08);
    --shadow-card: 0 10px 30px rgba(2, 35, 98, 0.05);

    --radius-small: 12px;
    --radius-medium: 20px;
    --radius-large: 28px;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--text-main);
    background: var(--surface-page);
}

body {
    min-height: 100vh;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.login-body {
    height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(10, 115, 255, .10), transparent 26%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3fa 100%);
}

.login-shell {
    height: 100dvh;
    display: grid;
    grid-template-columns: minmax(440px, 1.08fr) minmax(420px, .92fr);
}

.login-brand {
    min-width: 0;
    padding: clamp(28px, 3.4vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 15%, rgba(10, 115, 255, .38), transparent 30%),
        linear-gradient(135deg, #0458d1 0%, #022362 32%, #011847 100%);
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 360px;
    height: 360px;
    border: 42px solid rgba(233, 21, 99, .16);
    border-radius: 50%;
}

.login-brand-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(24px, 4vh, 48px);
}

.login-logo-wrap {
    display: grid;
    gap: 18px;
}

.login-logo {
    width: min(320px, 72%);
    max-height: 96px;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: brightness(0) invert(1);
}

.login-eyebrow,
.login-kicker,
.topbar-kicker,
.section-kicker,
.sidebar-caption {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 11px;
    font-weight: 800;
}

.login-eyebrow {
    color: #8fc3ff;
}

.login-hero-copy {
    display: grid;
    gap: 18px;
    max-width: 640px;
}

.login-brand h1 {
    margin: 0;
    font-size: clamp(52px, 5vw, 78px);
    letter-spacing: -.06em;
    line-height: .92;
}

.login-description {
    margin: 0;
    max-width: 560px;
    color: #cedcf0;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.55;
}

.login-feature-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pill {
    min-height: 34px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,.08);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-platform,
.sidebar-bottom,
.welcome-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2ed596;
    box-shadow: 0 0 0 5px rgba(46, 213, 150, .12);
}

.login-panel {
    min-width: 0;
    padding: clamp(20px, 2.8vw, 40px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(100%, 470px);
    padding: clamp(26px, 2.6vw, 38px);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--surface-card);
    box-shadow: var(--shadow-soft);
}

.mobile-logo-wrap {
    display: none;
    margin-bottom: 22px;
}

.mobile-logo {
    width: 180px;
    display: block;
}

.login-kicker,
.topbar-kicker,
.section-kicker {
    color: var(--blue);
}

.login-card h2 {
    margin: 10px 0 10px;
    font-size: clamp(34px, 3vw, 52px);
    letter-spacing: -.05em;
    line-height: .98;
}

.login-help {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.55;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
}

.login-form input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-small);
    outline: none;
    color: var(--text-main);
    background: #ffffff;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(2, 105, 233, .10);
    transform: translateY(-1px);
}

.button-primary,
.button-secondary {
    border: 0;
    border-radius: var(--radius-small);
    font-weight: 800;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        opacity .16s ease;
}

.button-primary {
    min-height: 56px;
    margin-top: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-bright));
    box-shadow: 0 14px 30px rgba(2, 105, 233, .22);
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(2, 105, 233, .28);
}

.button-secondary {
    min-height: 42px;
    padding: 0 16px;
    color: var(--navy);
    background: var(--surface-blue);
}

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

.login-footer {
    margin: 20px 0 0;
    text-align: center;
    color: var(--text-light);
    font-size: 12px;
}

.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: var(--radius-small);
    font-size: 13px;
    line-height: 1.5;
}

.alert-error {
    color: #8b1735;
    background: #fff0f4;
    border: 1px solid #f5bfd0;
}

.alert-success {
    color: #08633f;
    background: #ecfbf5;
    border: 1px solid #b6ead6;
}

.app-body {
    background: linear-gradient(180deg, #f5f8fc 0%, #eef3fa 100%);
}

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

.sidebar {
    min-height: 100vh;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background: linear-gradient(180deg, var(--navy), var(--navy-deep));
}

.sidebar-brand {
    display: block;
}

.sidebar-logo {
    width: 168px;
    max-width: 100%;
    display: block;
    filter: brightness(0) invert(1);
}

.sidebar-caption {
    margin-top: 10px;
    color: #7fa3d0;
}

.sidebar-navigation {
    margin-top: 34px;
    display: grid;
    gap: 8px;
}

.navigation-item {
    min-height: 46px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    color: #bfd0e4;
    font-size: 14px;
    font-weight: 700;
}

.navigation-item-active {
    color: #ffffff;
    background: rgba(10, 115, 255, .22);
    box-shadow: inset 3px 0 0 var(--blue-bright);
}

.navigation-item-disabled {
    cursor: default;
    opacity: .62;
}

.navigation-symbol {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, .11);
    font-size: 11px;
    font-weight: 900;
}

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

.navigation-section {
    margin: 0 13px 4px;
    color: #7092bc;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
    font-weight: 900;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 18px 12px 4px;
    color: #a8bfd9;
}

.workspace {
    min-width: 0;
}

.topbar {
    min-height: 84px;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
}

.topbar-left h1 {
    margin: 4px 0 0;
    font-size: 24px;
    letter-spacing: -.03em;
}

.topbar-account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-details {
    display: grid;
    text-align: right;
}

.account-details strong {
    font-size: 13px;
}

.account-details span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.workspace-content {
    padding: 26px 28px 28px;
}

.welcome-panel {
    padding: 24px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: var(--radius-large);
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 18%, rgba(233, 21, 99, .18), transparent 24%),
        linear-gradient(135deg, var(--navy), var(--blue-dark));
    box-shadow: var(--shadow-soft);
}

.welcome-panel h2 {
    margin: 8px 0 8px;
    font-size: clamp(24px, 2.7vw, 38px);
    letter-spacing: -.04em;
}

.welcome-panel p {
    max-width: 760px;
    margin: 0;
    color: #d0ddf1;
    line-height: 1.55;
}

.welcome-panel .section-kicker {
    color: #8fc3ff;
}

.welcome-status {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
}

.stat-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card,
.content-card {
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.stat-card {
    min-height: 138px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-medium);
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    margin-top: 12px;
    font-size: 34px;
    letter-spacing: -.045em;
}

.stat-foot {
    margin-top: auto;
    color: var(--text-light);
    font-size: 12px;
}

.dashboard-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 18px;
}

.content-card {
    padding: 24px;
    border-radius: var(--radius-medium);
}

.card-heading {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.card-heading h3 {
    margin: 6px 0 0;
    font-size: 21px;
    letter-spacing: -.025em;
}

.status-badge {
    padding: 7px 11px;
    border-radius: 999px;
    color: #087149;
    background: #e9faf3;
    font-size: 11px;
    font-weight: 900;
}

.system-list {
    margin: 0;
}

.system-list div {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
}

.system-list dt {
    color: var(--text-muted);
    font-size: 13px;
}

.system-list dd {
    margin: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 800;
}

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

.module-row {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.module-row > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--blue);
    background: var(--surface-blue);
    font-size: 11px;
    font-weight: 900;
}

.module-row div {
    display: grid;
    gap: 3px;
}

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

.module-row small {
    color: var(--text-muted);
    font-size: 11px;
}

@media (max-width: 1180px) {
    .login-shell {
        grid-template-columns: minmax(360px, 1fr) minmax(380px, .95fr);
    }

    .login-brand h1 {
        font-size: clamp(42px, 4.5vw, 64px);
    }

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

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

@media (max-width: 920px) {
    .login-body {
        height: auto;
        overflow: auto;
    }

    .login-shell {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: auto;
        padding-bottom: 28px;
    }

    .login-panel {
        padding-top: 0;
        padding-bottom: 28px;
    }

    .mobile-logo-wrap {
        display: block;
    }

    .app-shell {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 12px;
    }

    .sidebar-logo {
        width: 44px;
    }

    .sidebar-caption,
    .navigation-item:not(.navigation-item-active) {
        display: none;
    }

    .navigation-item {
        justify-content: center;
        padding: 0;
    }

    .navigation-item-active {
        font-size: 0;
    }

    .sidebar-bottom {
        justify-content: center;
        font-size: 0;
    }
}

@media (max-width: 680px) {
    .login-brand {
        display: none;
    }

    .login-panel {
        padding: 16px;
        min-height: 100vh;
    }

    .login-card {
        width: 100%;
        padding: 24px 20px;
    }

    .topbar {
        padding: 16px 18px;
        align-items: flex-start;
    }

    .account-details {
        display: none;
    }

    .workspace-content {
        padding: 18px;
    }

    .welcome-panel {
        padding: 22px;
        align-items: flex-start;
        flex-direction: column;
    }

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

/* ================================================================
   ELKONEXA ORIGINALLOGO
   Keine Farbfilter oder künstliche Einfärbung.
   ================================================================ */

.login-logo,
.mobile-logo,
.sidebar-logo {
    filter: none !important;
    opacity: 1;
}

.login-logo {
    width: min(350px, 82%);
    height: auto;
    max-height: 150px;
    object-fit: contain;
    object-position: left center;
}

.mobile-logo {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.sidebar-logo {
    width: 190px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}


/* === ELKONEXA UI FEINSCHLIFF BEGIN === */

/* Login allgemein kompakter */
.login-shell {
    grid-template-columns: minmax(460px, 1.03fr) minmax(420px, 0.97fr);
}

.login-brand {
    padding: clamp(24px, 2.6vw, 38px);
}

.login-brand::before {
    right: -120px;
    bottom: -120px;
    width: 390px;
    height: 390px;
    border: 34px solid rgba(233, 21, 99, .12);
}

.login-brand-inner {
    gap: 26px;
}

/* Logo klar lesbar auf heller Fläche */
.login-logo-wrap {
    display: inline-grid;
    gap: 12px;
    padding: 18px 22px;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(1, 24, 71, .20);
}

.login-logo,
.mobile-logo,
.sidebar-logo {
    filter: none !important;
    opacity: 1;
}

.login-logo {
    width: min(240px, 68%);
    max-height: 104px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.login-eyebrow {
    color: #014cb7;
    font-size: 10px;
    letter-spacing: .14em;
}

/* Linke Texte kleiner und klarer */
.login-hero-copy {
    gap: 14px;
    max-width: 560px;
}

.login-brand h1 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: .96;
    letter-spacing: -.05em;
}

.login-description {
    max-width: 520px;
    color: #eef4ff;
    font-size: 15px;
    line-height: 1.45;
}

.login-feature-row {
    gap: 8px;
}

.feature-pill {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
}

/* Status etwas ruhiger */
.login-platform {
    font-size: 12px;
    color: #ffffff;
}

/* Rechte Seite kompakter */
.login-panel {
    padding: 24px 28px;
}

.login-card {
    width: min(100%, 520px);
    padding: 30px 34px;
    border-radius: 26px;
    box-shadow: 0 16px 42px rgba(2, 35, 98, .08);
}

.mobile-logo-wrap {
    margin-bottom: 18px;
}

.mobile-logo {
    width: 170px;
    height: auto;
}

.login-kicker {
    font-size: 11px;
}

.login-card h2 {
    margin: 8px 0 8px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.02;
    letter-spacing: -.04em;
}

.login-help {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.45;
    color: #536788;
}

.login-form {
    gap: 10px;
}

.login-form label {
    font-size: 12px;
    color: #0b1f46;
}

.login-form input {
    height: 50px;
    padding: 0 14px;
    border: 1px solid #c7d2e3;
    border-radius: 14px;
    font-size: 15px;
}

.login-form input:focus {
    border-color: #0269e9;
    box-shadow: 0 0 0 4px rgba(2, 105, 233, .10);
}

.button-primary {
    min-height: 50px;
    margin-top: 12px;
    border-radius: 14px;
    font-size: 15px;
}

.login-footer {
    margin-top: 16px;
    font-size: 12px;
}

/* Sidebar-Logo ebenfalls klar lesbar */
.sidebar-brand {
    display: inline-block;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 24px rgba(1, 24, 71, .20);
    width: fit-content;
}

.sidebar-logo {
    width: 158px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar-caption {
    margin-top: 12px;
    color: #89a6cf;
    font-size: 10px;
}

/* Titel im Adminbereich kleiner */
.topbar {
    min-height: 76px;
    padding: 16px 24px;
}

.topbar-kicker {
    font-size: 10px;
}

.topbar-left h1 {
    margin-top: 3px;
    font-size: 22px;
    line-height: 1.1;
}

.workspace-content {
    padding: 22px 24px 24px;
}

.welcome-panel {
    padding: 22px 24px;
    border-radius: 24px;
}

.welcome-panel h2 {
    margin: 6px 0 8px;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.08;
}

.welcome-panel p {
    font-size: 14px;
    line-height: 1.5;
}

.welcome-status {
    padding: 10px 14px;
    font-size: 12px;
}

.stat-grid {
    margin-top: 16px;
    gap: 14px;
}

.stat-card {
    min-height: 120px;
    padding: 18px;
}

.stat-label {
    font-size: 12px;
}

.stat-card strong {
    margin-top: 10px;
    font-size: 28px;
}

.stat-foot {
    font-size: 11px;
}

.dashboard-grid {
    margin-top: 16px;
    gap: 16px;
}

.content-card {
    padding: 20px;
    border-radius: 18px;
}

.card-heading {
    margin-bottom: 14px;
}

.card-heading h3 {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.15;
}

.section-kicker {
    font-size: 10px;
}

.system-list div {
    min-height: 40px;
}

.system-list dt,
.system-list dd {
    font-size: 12px;
}

.module-row {
    padding: 10px 12px;
}

.module-row strong {
    font-size: 12px;
}

.module-row small {
    font-size: 10px;
}

/* Tablet */
@media (max-width: 1180px) {
    .login-brand h1 {
        font-size: clamp(34px, 3.8vw, 50px);
    }

    .login-card h2 {
        font-size: clamp(22px, 2vw, 30px);
    }

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

/* Mobil */
@media (max-width: 920px) {
    .login-panel {
        padding: 18px;
    }

    .login-card {
        padding: 24px 22px;
    }

    .sidebar-brand {
        padding: 8px;
    }

    .sidebar-logo {
        width: 42px;
    }

    .topbar-left h1 {
        font-size: 20px;
    }
}

@media (max-width: 680px) {
    .login-card h2 {
        font-size: 26px;
    }

    .login-form input,
    .button-primary {
        height: 48px;
    }

    .workspace-content {
        padding: 18px;
    }

    .welcome-panel h2 {
        font-size: 24px;
    }
}

/* === ELKONEXA UI FEINSCHLIFF END === */


/* === ELKONEXA LOGIN LOGO BOX BEGIN === */

.login-logo-wrap {
    display: block;
    width: min(420px, 92%);
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(1, 24, 71, .20);
}

.login-logo {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    object-fit: contain;
    object-position: center center;
    filter: none !important;
    opacity: 1;
}

.login-eyebrow {
    display: none !important;
}

.login-brand-inner {
    gap: 20px;
}

.login-hero-copy {
    gap: 12px;
}

.login-brand h1 {
    margin-top: 0;
}

@media (max-width: 920px) {
    .login-logo-wrap {
        width: min(340px, 100%);
        padding: 8px 10px;
    }
}

/* === ELKONEXA LOGIN LOGO BOX END === */


/* === ELKONEXA VERWALTUNGSMODULE BEGIN === */

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

.page-heading h2 {
    margin: 6px 0 6px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.035em;
}

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

.button-link {
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-card,
.form-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.table-card {
    overflow: hidden;
}

.filter-bar {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.filter-bar input,
.filter-bar select,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
}

.filter-bar input {
    max-width: 320px;
    height: 42px;
    padding: 0 13px;
}

.filter-bar select {
    width: 180px;
    height: 42px;
    padding: 0 12px;
}

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

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

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

.data-table th,
.data-table td {
    padding: 15px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    color: var(--text-muted);
    background: #fbfcfe;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 900;
}

.data-table td {
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.data-table td strong,
.data-table td small {
    display: block;
}

.data-table td small {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.table-action {
    width: 1%;
    white-space: nowrap;
    text-align: right !important;
}

.button-small {
    min-height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--navy);
    background: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.button-small:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.role-tag {
    padding: 5px 8px;
    border-radius: 999px;
    color: #1552a4;
    background: #edf4ff;
    font-size: 10px;
    font-weight: 800;
}

.status-label {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
}

.status-active {
    color: #087149;
    background: #e9faf3;
}

.status-inactive {
    color: #66758d;
    background: #edf1f6;
}

.status-suspended {
    color: #9a2444;
    background: #fff0f4;
}

.muted-text {
    color: var(--text-light);
    font-size: 12px;
}

.empty-state {
    padding: 44px !important;
    text-align: center !important;
    color: var(--text-muted);
}

.pagination-bar {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    background: var(--surface-soft);
    font-size: 12px;
}

.pagination-bar > div {
    display: flex;
    gap: 8px;
}

.form-card {
    padding: 22px;
}

.compact-form-card {
    padding: 20px;
}

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

.form-field {
    display: grid;
    gap: 7px;
}

.form-field > span {
    color: var(--text-main);
    font-size: 12px;
    font-weight: 800;
}

.form-field input,
.form-field select {
    height: 46px;
    padding: 0 13px;
}

.form-field textarea {
    min-height: 90px;
    padding: 12px 13px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(2, 105, 233, .09);
}

.form-section {
    margin: 22px 0 0;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.form-section legend {
    padding: 0 12px 0 0;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 900;
}

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

.selection-card {
    min-height: 74px;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    cursor: pointer;
}

.selection-card:has(input:checked) {
    border-color: var(--blue);
    background: var(--surface-blue);
}

.selection-card input {
    margin-top: 3px;
}

.selection-card span {
    display: grid;
    gap: 3px;
}

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

.selection-card small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.selection-card em {
    color: var(--danger);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.checkbox-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
}

.form-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.form-actions .button-primary,
.form-actions .button-secondary {
    min-width: 180px;
    margin: 0;
    padding: 0 18px;
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 18px;
    align-items: start;
}

.side-management {
    display: grid;
    gap: 18px;
}

.flash-message {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
}

.flash-success {
    color: #087149;
    border: 1px solid #b6ead6;
    background: #e9faf3;
}

.flash-error {
    color: #9a2444;
    border: 1px solid #f5bfd0;
    background: #fff0f4;
}

.info-message {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid #bcd7fa;
    border-radius: 11px;
    color: #174e91;
    background: #edf5ff;
    font-size: 12px;
    line-height: 1.5;
}

.permission-groups {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.permission-group {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
}

.permission-group h3 {
    margin: 0 0 12px;
    font-size: 13px;
}

.permission-group > div {
    display: grid;
    gap: 8px;
}

.permission-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.permission-row input {
    margin-top: 3px;
}

.permission-row span {
    display: grid;
    gap: 2px;
}

.permission-row strong {
    font-size: 11px;
}

.permission-row small {
    color: var(--text-muted);
    font-size: 9px;
}

@media (max-width: 1150px) {
    .permission-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .page-heading,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
        max-width: none;
    }

    .form-grid,
    .role-selection-grid,
    .permission-groups {
        grid-template-columns: 1fr;
    }

    .data-table th,
    .data-table td {
        padding: 12px;
    }
}

/* === ELKONEXA ARTIKELVARIANTEN UI BEGIN === */

.item-catalog-management {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.catalog-section-card {
    min-width: 0;
}

.catalog-section-description {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.catalog-count-badge {
    min-width: 36px;
    height: 36px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--navy);
    background: var(--surface-soft);
    font-size: 12px;
    font-weight: 900;
}

.catalog-create-panel,
.catalog-record {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
}

.catalog-create-panel {
    margin-top: 16px;
    background: var(--surface-soft);
}

.catalog-create-panel > summary,
.catalog-record > summary {
    cursor: pointer;
    list-style: none;
}

.catalog-create-panel > summary::-webkit-details-marker,
.catalog-record > summary::-webkit-details-marker {
    display: none;
}

.catalog-create-panel > summary {
    padding: 15px 17px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.catalog-create-panel[open] > summary {
    border-bottom: 1px solid var(--border);
}

.catalog-edit-form {
    padding: 18px;
}

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

.catalog-wide {
    grid-column: 1 / -1;
}

.catalog-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.catalog-record-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.catalog-record {
    overflow: hidden;
}

.catalog-record > summary {
    min-height: 64px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.catalog-record[open] > summary {
    border-bottom: 1px solid var(--border);
    background: #fbfcfe;
}

.catalog-record-title {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.catalog-record-title strong,
.catalog-record-title small {
    overflow-wrap: anywhere;
}

.catalog-record-title strong {
    color: var(--navy);
    font-size: 13px;
}

.catalog-record-title small {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.catalog-record-body {
    background: #ffffff;
}

.catalog-status-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.catalog-status-active {
    color: #087149;
    background: #e9faf3;
}

.catalog-status-inactive {
    color: #805b00;
    background: #fff5d6;
}

.catalog-status-archived {
    color: #6a3340;
    background: #fbe9ed;
}

.catalog-archive-form {
    padding: 0 18px 18px;
    display: flex;
    justify-content: flex-end;
}

.catalog-empty {
    margin: 16px 0 0;
    padding: 15px;
    border: 1px dashed var(--border-strong);
    border-radius: 11px;
    color: var(--text-muted);
    background: #fbfcfe;
    font-size: 13px;
}

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

@media (max-width: 680px) {
    .catalog-form-grid {
        grid-template-columns: 1fr;
    }

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

    .catalog-record > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-actions,
    .catalog-archive-form {
        justify-content: stretch;
    }

    .catalog-actions button,
    .catalog-archive-form button {
        width: 100%;
    }
}

/* === ELKONEXA ARTIKELVARIANTEN UI END === */

/* === ELKONEXA VERWALTUNGSMODULE END === */

/* === ELKONEXA UNTERNEHMENSMODUL BEGIN === */

.company-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(290px, .55fr);
    gap: 18px;
    align-items: start;
}

.company-side-column {
    display: grid;
    gap: 18px;
}

.company-address-grid {
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(120px, .6fr);
}

.company-wide-field {
    grid-column: 1 / -1;
}

.company-logo-preview {
    min-height: 190px;
    padding: 18px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    color: var(--text-muted);
    background:
        linear-gradient(
            135deg,
            #f9fbff,
            #f1f5fb
        );
    text-align: center;
    font-size: 12px;
}

.company-logo-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.company-logo-form {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.company-logo-form input[type="file"] {
    height: auto;
    padding: 10px;
    font-size: 11px;
}

.field-help {
    color: var(--text-muted);
    font-size: 10px;
}

.company-logo-delete {
    margin-top: 10px;
}

.button-danger-soft {
    min-height: 40px;
    width: 100%;
    padding: 0 14px;
    border: 1px solid #f2bdcb;
    border-radius: 11px;
    color: #a32649;
    background: #fff3f6;
    font-weight: 800;
}

.button-danger-soft:hover {
    background: #ffe8ee;
}

.number-sequence-card {
    margin-top: 18px;
}

.card-description {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.card-description code {
    padding: 2px 5px;
    border-radius: 5px;
    color: var(--navy);
    background: var(--surface-blue);
}

.number-sequence-table input,
.number-sequence-table select {
    width: 100%;
    min-width: 120px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
}

.number-sequence-table input:focus,
.number-sequence-table select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(2, 105, 233, .08);
}

.number-sequence-table td:nth-child(1) {
    min-width: 180px;
}

.number-sequence-table td:nth-child(2) {
    min-width: 210px;
}

.number-preview {
    display: inline-block;
    min-width: 150px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #1552a4;
    background: var(--surface-blue);
    font-size: 11px;
    font-weight: 800;
}

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

    .company-side-column {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .company-side-column,
    .company-address-grid {
        grid-template-columns: 1fr;
    }

    .company-wide-field {
        grid-column: auto;
    }
}

/* === ELKONEXA UNTERNEHMENSMODUL END === */

/* === ELKONEXA ROLLENANLAGE BEGIN === */

.role-description-field {
    margin-top: 16px;
}

.permission-row:has(input:checked) {
    color: var(--navy);
}

.permission-row input:checked + span strong {
    color: var(--blue);
}

/* === ELKONEXA ROLLENANLAGE END === */

/* === ELKONEXA AUDITPROTOKOLL BEGIN === */

.audit-immutable-label {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #acdaca;
    border-radius: 999px;
    color: #087149;
    background: #e9faf3;
    font-size: 11px;
    font-weight: 900;
}

.audit-filter-grid {
    padding: 18px;
    display: grid;
    grid-template-columns:
        minmax(250px, 1.4fr)
        repeat(3, minmax(150px, .8fr))
        minmax(130px, .6fr)
        minmax(130px, .6fr);
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.audit-filter-grid input,
.audit-filter-grid select {
    height: 42px;
}

.audit-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.audit-filter-actions .button-primary,
.audit-filter-actions .button-secondary {
    min-height: 42px;
    margin: 0;
    padding: 0 18px;
}

.audit-module-tag {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #1552a4;
    background: #edf4ff;
    font-size: 10px;
    font-weight: 900;
}

.audit-table td {
    max-width: 310px;
}

.audit-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(310px, .6fr);
    gap: 18px;
    align-items: start;
}

.audit-detail-side {
    display: grid;
    gap: 18px;
}

.audit-change-table td {
    width: 40%;
    vertical-align: top;
}

.audit-change-table td:first-child {
    width: 20%;
}

.audit-change-table pre,
.audit-metadata {
    margin: 0;
    max-width: 100%;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #1a2945;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 11px;
    line-height: 1.5;
}

.audit-metadata {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

@media (max-width: 1250px) {
    .audit-filter-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .audit-detail-layout {
        grid-template-columns: 1fr;
    }

    .audit-detail-side {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .audit-filter-grid,
    .audit-detail-side {
        grid-template-columns: 1fr;
    }

    .audit-filter-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .audit-filter-actions a,
    .audit-filter-actions button {
        width: 100%;
    }
}

/* === ELKONEXA AUDITPROTOKOLL END === */

/* === ELKONEXA KUNDENMODUL BEGIN === */

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

.customer-statistics article {
    padding: 16px 18px;
    display: grid;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.customer-statistics span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

.customer-statistics strong {
    color: var(--navy);
    font-size: 24px;
    letter-spacing: -.03em;
}

.customer-filter-bar {
    padding: 16px 18px;
    display: grid;
    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(160px, .6fr)
        minmax(160px, .6fr)
        auto;
    gap: 12px;
    align-items: end;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.customer-filter-bar input,
.customer-filter-bar select {
    height: 42px;
}

.customer-filter-actions {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-filter-actions .button-secondary {
    min-height: 42px;
    margin: 0;
    padding: 0 17px;
}

.customer-table td {
    max-width: 300px;
}

.status-blocked {
    color: #9a2444;
    background: #fff0f4;
}

.status-archived {
    color: #5e6878;
    background: #eceff3;
}

.customer-reference-field {
    margin-top: 20px;
}

.customer-wide-field {
    grid-column: 1 / -1;
}

.form-section-description {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.customer-edit-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(290px, .55fr);
    gap: 18px;
    align-items: start;
}

.customer-side-column {
    display: grid;
    gap: 18px;
}

.customer-warning-text {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
}

.customer-submodule-card {
    margin-top: 18px;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.customer-submodule-card > .card-heading {
    padding-left: 22px;
    padding-right: 22px;
}

.customer-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.customer-count-badge {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #1552a4;
    background: var(--surface-blue);
    font-size: 11px;
    font-weight: 900;
}

.customer-inline-form {
    margin: 20px 22px 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--border);
}

.customer-inline-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.customer-inline-heading h4 {
    margin: 4px 0 0;
    font-size: 17px;
}

.customer-checkbox-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inline-delete-form {
    margin-left: 5px;
    display: inline-flex;
}

.button-small-danger {
    color: #a32649;
    border-color: #f2bdcb;
    background: #fff3f6;
}

.button-small-danger:hover {
    color: #8f173a;
    border-color: #e99ab1;
    background: #ffe8ee;
}

@media (max-width: 1100px) {
    .customer-edit-layout {
        grid-template-columns: 1fr;
    }

    .customer-side-column {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .customer-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .customer-statistics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .customer-side-column,
    .customer-filter-bar,
    .customer-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .customer-filter-search,
    .customer-wide-field {
        grid-column: auto;
    }

    .customer-filter-actions {
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .customer-statistics {
        grid-template-columns: 1fr;
    }

    .customer-inline-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* === ELKONEXA KUNDENMODUL END === */

/* === ELKONEXA REALER SERVERSTATUS BEGIN === */

.real-server-status {
    margin-top: 18px;
}

.server-status-heading {
    align-items: flex-start;
}

.server-status-subtitle {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.server-status-actions {
    display: flex;
    gap: 10px;
}

.server-status-actions .button-primary,
.server-status-actions .button-secondary {
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
}

.server-metric-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.server-metric-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.server-metric-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.server-metric-heading span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
}

.server-metric-heading strong {
    color: var(--navy);
    font-size: 17px;
}

.server-progress {
    height: 8px;
    margin: 13px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe7f3;
}

.server-progress span {
    display: block;
    min-width: 2px;
    height: 100%;
    border-radius: inherit;
}

.server-progress-normal {
    background: #1fa878;
}

.server-progress-warning {
    background: #e3a325;
}

.server-progress-critical {
    background: #d94568;
}

.server-metric-card dl {
    margin: 0;
    display: grid;
    gap: 7px;
}

.server-metric-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.server-metric-card dt {
    color: var(--text-muted);
    font-size: 10px;
}

.server-metric-card dd {
    margin: 0;
    color: var(--text-main);
    font-size: 10px;
    font-weight: 800;
}

.server-detail-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.server-detail-grid article {
    padding: 13px;
    display: grid;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.server-detail-grid span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.server-detail-grid strong {
    color: var(--navy);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.server-detail-grid small {
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.4;
}

.speedtest-panel {
    margin-top: 14px;
    padding: 17px;
    display: grid;
    grid-template-columns:
        minmax(220px, .75fr)
        minmax(0, 1.25fr);
    gap: 18px;
    align-items: center;
    border: 1px solid #cbdcf4;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #f6f9ff,
            #eef5ff
        );
}

.speedtest-panel h4 {
    margin: 4px 0 6px;
    color: var(--navy);
    font-size: 17px;
}

.speedtest-panel small {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.45;
}

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

.speedtest-values article {
    padding: 13px;
    display: grid;
    gap: 5px;
    border: 1px solid #d5e1f3;
    border-radius: 11px;
    background: rgba(255, 255, 255, .82);
}

.speedtest-values span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.speedtest-values strong {
    color: var(--navy);
    font-size: 15px;
}

.server-process-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.server-process-grid > section {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.server-process-heading {
    padding: 13px 15px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-soft);
}

.server-process-heading h4 {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
}

.server-process-heading span {
    color: var(--text-muted);
    font-size: 9px;
}

.compact-server-table th,
.compact-server-table td {
    padding: 9px 10px;
    font-size: 10px;
}

.compact-server-table td small {
    font-size: 8px;
}

.server-status-footer {
    margin-top: 14px;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 9px;
}

.dashboard-lower-grid {
    margin-top: 18px;
}

.dashboard-card-button {
    margin-top: 18px;
}

/* === ELKONEXA REALER SERVERSTATUS END === */

/* === ELKONEXA BACKUPVERWALTUNG BEGIN === */

.backup-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(290px, .55fr);
    gap: 18px;
    align-items: start;
}

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

.backup-scope-grid article {
    padding: 14px;
    display: grid;
    gap: 7px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.backup-scope-grid strong {
    color: var(--navy);
    font-size: 12px;
}

.backup-scope-grid span {
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.backup-current-status {
    margin-top: 16px;
    padding: 15px;
    display: grid;
    gap: 5px;
    border: 1px solid #cbdcf4;
    border-radius: 12px;
    background: #f5f9ff;
}

.backup-current-status > span {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.backup-current-status > strong {
    color: var(--navy);
    font-size: 13px;
}

.backup-current-status > small {
    color: var(--text-muted);
    font-size: 9px;
}

.backup-create-form {
    margin-top: 16px;
}

.backup-create-form .button-primary {
    min-height: 44px;
}

.backup-create-form .button-primary:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.backup-local-warning {
    margin-top: 16px;
}

.backup-history-card {
    margin-top: 18px;
}

.backup-history-heading {
    padding: 18px 20px;
}

@media (max-width: 1250px) {
    .server-metric-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 1050px) {
    .server-process-grid,
    .backup-layout {
        grid-template-columns: 1fr;
    }

    .speedtest-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .server-metric-grid,
    .server-detail-grid,
    .speedtest-values,
    .backup-scope-grid {
        grid-template-columns: 1fr;
    }

    .server-status-heading,
    .server-process-heading,
    .server-status-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .server-status-actions {
        width: 100%;
        flex-direction: column;
    }

    .server-status-actions a {
        width: 100%;
    }
}

/* === ELKONEXA BACKUPVERWALTUNG END === */

/* === ELKONEXA SPEEDTEST-AUTOMATIK BEGIN === */

.speedtest-run-form {
    margin-top: 13px;
}

.speedtest-run-form .button-secondary {
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
}

.speedtest-run-form .button-secondary:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.speedtest-error {
    margin-top: 10px;
}

/* === ELKONEXA SPEEDTEST-AUTOMATIK END === */

/* === ELKONEXA MITARBEITERMODUL BEGIN === */

.employee-identity-strip {
    margin-bottom: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #cfddf0;
    border-radius: 12px;
    background: #f4f8fe;
}

.employee-identity-strip span,
.employee-identity-strip small {
    color: var(--text-muted);
    font-size: 10px;
}

.employee-identity-strip strong {
    color: var(--navy);
    font-size: 16px;
}

.employee-notes-field {
    margin-top: 16px;
}

.employee-company-notice {
    margin-bottom: 18px;
}

.employee-account-button {
    width: 100%;
    margin-top: 16px;
}

.employee-danger-card {
    border-color: #f1c6cf;
    background: #fffafb;
}

.employee-danger-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.button-danger {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #bb2948;
    border-radius: 10px;
    background: #c92d50;
    color: #ffffff;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

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

.compact-checkbox-filter {
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-main);
    font-size: 10px;
    font-weight: 800;
}

.compact-checkbox-filter input {
    margin: 0;
}

.employee-filter-bar select {
    min-width: 165px;
}

.speedtest-ajax-message {
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.45;
}

@media (max-width: 850px) {
    .employee-identity-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-filter-bar select {
        min-width: 0;
    }
}

/* === ELKONEXA MITARBEITERMODUL END === */

/* === ELKONEXA ARTIKELMODUL START === */

.item-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.item-filter-bar select {
    min-width: 150px;
}

.item-type-label {
    width: max-content;
    margin-bottom: 5px;
    padding: 4px 8px;
    display: block;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.item-type-product {
    background: #e8f0ff;
    color: #1c55ab;
}

.item-type-service {
    background: #f5eaff;
    color: #7442a8;
}

.item-type-text {
    background: #edf0f4;
    color: #526174;
}

.item-company-notice {
    margin-bottom: 18px;
}

.item-identity-strip {
    margin-bottom: 18px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8faff;
}

.item-identity-strip span,
.item-identity-strip small {
    color: var(--text-muted);
    font-size: 10px;
}

.item-identity-strip strong {
    color: var(--text-main);
    font-size: 13px;
}

.item-description-field {
    margin-top: 16px;
}

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

.item-minimum-stock-grid {
    margin-top: 16px;
}

.item-management-grid {
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(280px, 0.75fr);
}

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

.item-currency-notice {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.item-price-button {
    width: 100%;
    margin-top: 15px;
}

.item-danger-card {
    border-color: #f1c6cf;
    background: #fffafb;
}

.item-danger-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.6;
}

.item-archive-button {
    width: 100%;
    margin-top: 16px;
}

.item-master-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        minmax(0, 1fr)
    );
    gap: 18px;
    align-items: start;
}

.master-data-list {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.master-data-entry {
    padding: 15px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcff;
}

.master-data-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.master-data-entry-header strong {
    color: var(--text-main);
    font-size: 12px;
}

@media (max-width: 1250px) {
    .item-master-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .item-management-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 850px) {
    .item-heading-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .item-filter-bar select {
        min-width: 0;
    }

    .item-identity-strip {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* === ELKONEXA ARTIKELMODUL END === */

/* === ELKONEXA DYNAMISCHE ARTIKELPROFILE START === */

.dynamic-category-profile-info {
    margin-bottom: 18px;
    padding: 13px 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    border: 1px solid #bfd2f3;
    border-radius: 12px;
    background: #f3f7ff;
}

.dynamic-category-profile-info strong {
    color: var(--text-main);
    font-size: 12px;
}

.dynamic-category-profile-info span {
    color: var(--text-muted);
    font-size: 10px;
}

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

.dynamic-attribute-field[hidden] {
    display: none;
}

.dynamic-attribute-field {
    min-width: 0;
}

.dynamic-attribute-field textarea {
    min-height: 110px;
}

.dynamic-attribute-field select[multiple] {
    min-height: 130px;
}

.dynamic-field-origin {
    margin-top: 5px;
    display: block;
    color: #8090a5;
    font-size: 9px;
}

.required-marker {
    color: #bd223d;
}

.dynamic-boolean-field {
    min-height: 46px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
}

.category-profile-create-card {
    margin-bottom: 20px;
}

.category-profile-list {
    display: grid;
    gap: 16px;
}

.category-profile-card {
    padding: 0;
    overflow: hidden;
}

.category-profile-summary {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    list-style: none;
    background: #f8faff;
}

.category-profile-summary::-webkit-details-marker {
    display: none;
}

.category-profile-summary > span:first-child {
    display: grid;
    gap: 4px;
}

.category-profile-summary strong {
    color: var(--text-main);
    font-size: 13px;
}

.category-profile-summary small {
    color: var(--text-muted);
    font-size: 10px;
}

.category-profile-summary-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.category-profile-content {
    padding: 20px;
    display: grid;
    gap: 22px;
    border-top: 1px solid var(--border);
}

.category-settings-form {
    display: grid;
    gap: 16px;
}

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

.category-toggle-grid {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 10px;
}

.compact-category-toggle-grid {
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
}

.category-field-list {
    display: grid;
    gap: 14px;
}

.category-field-entry {
    background: #fbfcff;
}

.category-field-entry .master-data-entry-header small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 9px;
}

@media (max-width: 1250px) {
    .dynamic-attribute-grid,
    .category-definition-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

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

@media (max-width: 750px) {
    .dynamic-attribute-grid,
    .category-definition-grid,
    .category-toggle-grid,
    .compact-category-toggle-grid {
        grid-template-columns: 1fr;
    }

    .category-profile-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-profile-summary-tags {
        justify-content: flex-start;
    }
}

/* === ELKONEXA DYNAMISCHE ARTIKELPROFILE END === */

/* ELKONEXA BIDIRECTIONAL PRICE CALCULATOR */

.item-price-calculator {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.item-price-mode-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(33, 94, 185, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            rgba(33, 118, 255, 0.07),
            rgba(219, 46, 116, 0.04)
        );
}

.item-price-mode-heading > div:first-child {
    display: grid;
    gap: 5px;
}

.item-price-mode-heading small {
    color: var(--text-muted);
    line-height: 1.5;
}

.item-price-mode-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item-price-mode-selection label {
    min-height: 40px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(33, 94, 185, 0.18);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
}

.item-price-mode-selection input {
    accent-color: #216ee8;
}

.item-price-input-grid {
    align-items: start;
}

.calculated-price-field {
    background: rgba(38, 61, 91, 0.055) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed;
}

.item-price-calculation-summary {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 12px;
    margin: 0;
}

.item-price-calculation-summary > div {
    padding: 14px 16px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(33, 94, 185, 0.12);
    border-radius: 12px;
    background: rgba(33, 118, 255, 0.035);
}

.item-price-calculation-summary dt {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.item-price-calculation-summary dd {
    margin: 0;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 750;
}

.item-price-button {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .item-price-mode-heading {
        flex-direction: column;
    }

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

@media (max-width: 560px) {
    .item-price-mode-selection {
        display: grid;
        width: 100%;
    }

    .item-price-calculation-summary {
        grid-template-columns: 1fr;
    }
}

/* ELKONEXA ITEM MEDIA MANAGEMENT */

.item-media-management {
    margin-top: 22px;
}

.item-media-security-notice {
    margin-bottom: 18px;
    padding: 13px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    border: 1px solid rgba(33, 94, 185, 0.18);
    border-radius: 12px;
    background: rgba(33, 118, 255, 0.055);
}

.item-media-security-notice strong {
    color: var(--text-main);
}

.item-media-security-notice span {
    color: var(--text-muted);
}

.item-media-upload-columns,
.item-media-lists {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 18px;
}

.item-media-lists {
    margin-top: 22px;
}

.item-media-upload-panel,
.item-media-list-section {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #ffffff;
}

.item-media-public-panel {
    border-top: 4px solid #246fe5;
}

.item-media-internal-panel {
    border-top: 4px solid #172a4d;
    background: #fbfcff;
}

.item-media-panel-heading,
.item-media-list-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.item-media-panel-heading > div,
.item-media-list-heading > div {
    display: grid;
    gap: 6px;
}

.item-media-panel-heading h4,
.item-media-list-heading h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
}

.item-media-panel-heading small,
.item-media-list-heading span {
    color: var(--text-muted);
    font-size: 10px;
}

.item-media-visibility-badge,
.item-media-primary-badge,
.item-media-internal-badge {
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.item-media-visibility-badge.public,
.item-media-primary-badge {
    background: #e8f1ff;
    color: #155bbd;
}

.item-media-visibility-badge.internal,
.item-media-internal-badge {
    background: #e7ebf2;
    color: #172a4d;
}

.item-media-upload-form {
    display: grid;
    gap: 14px;
}

.item-media-form-grid {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.item-media-primary-option {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8faff;
}

.item-media-list-section {
    display: grid;
    align-content: start;
    gap: 12px;
}

.item-media-entry {
    padding: 13px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.item-media-entry.internal {
    background: #fafbfe;
}

.item-media-preview {
    width: 112px;
    height: 92px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f2f5fa;
}

.item-media-preview a {
    width: 100%;
    height: 100%;
    display: flex;
}

.item-media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-media-document-icon {
    align-items: center;
    justify-content: center;
    color: #155bbd;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.item-media-document-icon.internal {
    color: #172a4d;
}

.item-media-details {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.item-media-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.item-media-title-line strong {
    color: var(--text-main);
    overflow-wrap: anywhere;
}

.item-media-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    color: var(--text-muted);
    font-size: 9px;
}

.item-media-details p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.item-media-filename,
.item-media-uploader {
    color: #7d899b;
    overflow-wrap: anywhere;
}

.item-media-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.item-media-actions form {
    margin: 0;
}

@media (max-width: 1200px) {
    .item-media-upload-columns,
    .item-media-lists {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .item-media-form-grid {
        grid-template-columns: 1fr;
    }

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

    .item-media-preview {
        width: 100%;
        height: 180px;
    }
}

/* Personalverwaltung / HR */
.hr-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hr-summary-card {
    min-width: 0;
}

.hr-summary-card h3 {
    margin-top: 0.25rem;
}

.hr-account-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.hr-account-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hr-account-list > div:last-child {
    border-bottom: 0;
}

.hr-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hr-module-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hr-module-card span,
.hr-module-card small {
    color: var(--text-muted);
}

.hr-module-card strong {
    font-size: 2rem;
    line-height: 1;
}

.hr-foundation-notice {
    margin-top: 1rem;
}

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

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

@media (max-width: 640px) {
    .hr-module-grid {
        grid-template-columns: 1fr;
    }
}

/* Mitarbeiter: Suche, Abteilung und Personalaktenaktion */
.employee-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 185px;
}

.employee-filter-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.employee-name-search {
    flex: 1 1 320px;
    min-width: 280px;
}

.employee-filter-field input,
.employee-filter-field select {
    width: 100%;
}

.employee-archive-filter {
    align-self: flex-end;
    min-height: 42px;
}

.employee-table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.employee-personnel-file-button {
    white-space: nowrap;
}

.employee-edit-button {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .employee-filter-field,
    .employee-name-search {
        width: 100%;
        min-width: 100%;
    }

    .employee-archive-filter {
        align-self: flex-start;
    }

    .employee-table-actions {
        justify-content: flex-start;
    }
}
/* Personalakte: vollständige HR-Eingabe- und Dokumentoberfläche */
.hr-personnel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.hr-personnel-nav a {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.hr-entry-section {
    margin: 0 0 1rem;
    scroll-margin-top: 1rem;
}

.hr-entry-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
    list-style: none;
}

.hr-entry-section > summary::-webkit-details-marker {
    display: none;
}

.hr-entry-section > summary small {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.hr-entry-section[open] > summary {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.hr-entry-form {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--surface-muted, rgba(127, 127, 127, 0.06));
}

.form-field-wide {
    grid-column: 1 / -1;
}

.hr-subheading {
    margin: 1.25rem 0 0.6rem;
}

.hr-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hr-document-card {
    display: grid;
    grid-template-columns: minmax(150px, 36%) 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    background: var(--surface-color);
}

.hr-document-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    overflow: hidden;
    background: rgba(127, 127, 127, 0.08);
}

.hr-document-preview img,
.hr-document-preview iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 210px;
    border: 0;
    object-fit: contain;
}

.hr-document-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 170px;
    text-align: center;
}

.hr-document-icon strong {
    font-size: 1.35rem;
}

.hr-document-details {
    min-width: 0;
    padding: 1rem;
}

.hr-document-details h4 {
    margin: 0 0 0.45rem;
    overflow-wrap: anywhere;
}

.hr-document-details p {
    margin: 0 0 0.7rem;
    color: var(--text-muted);
}

.hr-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.6rem;
}

.hr-document-meta span {
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.12);
    font-size: 0.75rem;
}

.hr-document-details > small {
    display: block;
    margin-bottom: 0.8rem;
    overflow-wrap: anywhere;
    color: var(--text-muted);
}

.hr-document-details .form-actions {
    align-items: center;
}

.hr-document-details .form-actions form {
    margin: 0;
}

.hr-history-list {
    display: grid;
    gap: 0.75rem;
}

.hr-history-list article {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hr-history-list article:last-child {
    border-bottom: 0;
}

.hr-history-list time {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.hr-history-list p {
    margin: 0.25rem 0 0;
}

.success-message {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(55, 150, 90, 0.35);
    border-radius: 0.7rem;
    background: rgba(55, 150, 90, 0.12);
}

@media (max-width: 1050px) {
    .hr-document-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hr-document-card {
        grid-template-columns: 1fr;
    }

    .hr-document-preview {
        min-height: 180px;
    }
}

/* Personalakte: monatliche Arbeitszeittabelle */
.hr-month-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.hr-month-picker {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
}

.hr-month-picker label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.hr-month-picker input {
    min-width: 170px;
}

.hr-month-table-scroll {
    overflow-x: auto;
}

.hr-month-time-table {
    min-width: 1320px;
    table-layout: fixed;
}

.hr-month-time-table th:nth-child(1) {
    width: 125px;
}

.hr-month-time-table th:nth-child(2),
.hr-month-time-table th:nth-child(3) {
    width: 135px;
}

.hr-month-time-table th:nth-child(4) {
    width: 125px;
}

.hr-month-time-table th:nth-child(5),
.hr-month-time-table th:nth-child(6) {
    width: 130px;
}

.hr-month-time-table th:nth-child(7) {
    width: 400px;
}

.hr-month-time-table td {
    padding: 0.45rem;
    vertical-align: middle;
}

.hr-month-time-table input {
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.6rem;
}

.hr-month-date-cell {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface-color);
}

.hr-month-date-cell strong,
.hr-month-date-cell small {
    display: block;
}

.hr-month-date-cell small {
    margin-top: 0.15rem;
    color: var(--text-muted);
}

.hr-month-time-table tr.is-weekend td {
    background: rgba(127, 127, 127, 0.075);
}

.hr-month-time-table tr.is-weekend .hr-month-date-cell {
    background: var(--surface-muted, #f5f6f8);
}

.hr-month-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.hr-month-save-bar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 760px) {
    .hr-month-toolbar,
    .hr-month-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .hr-month-picker {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Personalakte: echte Unterseiten und moderne Arbeitszeit */
.hr-personnel-tabs {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid rgba(29, 78, 145, 0.13);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(29, 57, 98, 0.07);
    scrollbar-width: thin;
}

.hr-personnel-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #193a66;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
    transition:
        background 140ms ease,
        color 140ms ease,
        transform 140ms ease,
        box-shadow 140ms ease;
}

.hr-personnel-tab:hover {
    background: rgba(31, 105, 219, 0.08);
    transform: translateY(-1px);
}

.hr-personnel-tab.is-active {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        #0867df,
        #123d8d
    );
    box-shadow:
        0 7px 18px
        rgba(13, 75, 170, 0.24);
}

.hr-active-section-heading {
    margin: 0 0 12px;
}

.hr-active-section-heading h3 {
    margin: 2px 0 0;
    font-size: 20px;
}

.hr-page-section {
    display: block;
    margin: 0 0 18px;
    padding: 20px;
    border: 1px solid rgba(29, 78, 145, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 12px 34px
        rgba(28, 54, 94, 0.07);
}

.hr-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 17px;
    padding: 0 0 13px;
    border-bottom:
        1px solid
        rgba(31, 79, 146, 0.12);
}

.hr-page-heading span {
    font-size: 16px;
    font-weight: 800;
}

.hr-page-heading small {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 650;
}

.hr-month-toolbar {
    padding: 11px;
    border:
        1px solid
        rgba(31, 84, 160, 0.12);
    border-radius: 14px;
    background:
        rgba(235, 243, 255, 0.82);
}

.hr-month-time-table {
    width: 100%;
    min-width: 960px;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
}

.hr-month-time-table thead th {
    padding: 0 6px 5px;
    border: 0;
    color: #536985;
    font-size: 9px;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.hr-month-time-table th:nth-child(1) {
    width: 105px;
}

.hr-month-time-table th:nth-child(2),
.hr-month-time-table th:nth-child(3) {
    width: 82px;
}

.hr-month-time-table th:nth-child(4) {
    width: 90px;
}

.hr-month-time-table th:nth-child(5),
.hr-month-time-table th:nth-child(6) {
    width: 92px;
}

.hr-month-time-table th:nth-child(7) {
    width: auto;
}

.hr-month-time-table tbody td {
    padding: 7px 5px;
    border-top:
        1px solid
        rgba(45, 108, 201, 0.15);
    border-bottom:
        1px solid
        rgba(45, 108, 201, 0.15);
    background: #e8f2ff;
    vertical-align: middle;
}

.hr-month-time-table tbody td:first-child {
    padding-left: 11px;
    border-left:
        1px solid
        rgba(45, 108, 201, 0.15);
    border-radius: 13px 0 0 13px;
}

.hr-month-time-table tbody td:last-child {
    padding-right: 11px;
    border-right:
        1px solid
        rgba(45, 108, 201, 0.15);
    border-radius: 0 13px 13px 0;
}

.hr-month-time-table tbody tr:hover td {
    background: #d9eaff;
    border-color:
        rgba(26, 94, 198, 0.30);
}

.hr-month-time-table tbody tr.has-entry td {
    background: #ddf3e8;
    border-color:
        rgba(37, 142, 96, 0.20);
}

.hr-month-time-table tbody tr.is-weekend td {
    background: #fff0d5;
    border-color:
        rgba(204, 135, 35, 0.20);
}

.hr-month-time-table
tbody tr.is-weekend.has-entry td {
    background: #eaf0dc;
}

.hr-month-time-table input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 5px 7px;
    border:
        1px solid
        rgba(39, 83, 144, 0.19);
    border-radius: 8px;
    background:
        rgba(255, 255, 255, 0.96);
    font-size: 11px;
    box-shadow: none;
}

.hr-month-time-table input:focus {
    border-color:
        rgba(14, 92, 205, 0.58);
    outline:
        3px solid
        rgba(14, 92, 205, 0.10);
}

.hr-month-time-table input[type="time"] {
    appearance: textfield;
    -webkit-appearance: textfield;
}

.hr-month-time-table
input[type="time"]::-webkit-calendar-picker-indicator {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}

.hr-month-date-cell {
    position: static;
    background: inherit;
}

@media (max-width: 800px) {
    .hr-page-section {
        padding: 14px;
    }
}

/* ========================================================= */
/* ELKONEXA DESIGN CANDIDATE COMPACT V1                      */
/* ========================================================= */

.erp-density-compact {
    --ui-radius-xs: 6px;
    --ui-radius-sm: 9px;
    --ui-radius-md: 13px;
    --ui-control-height: 34px;
    --ui-gap-xs: 5px;
    --ui-gap-sm: 8px;
    --ui-gap-md: 12px;
}

.erp-density-compact .app-shell {
    grid-template-columns: 216px minmax(0, 1fr);
}

.erp-density-compact .sidebar {
    padding: 14px 12px;
}

.erp-density-compact .sidebar-logo {
    width: 146px;
}

.erp-density-compact .sidebar-caption {
    margin-top: 6px;
    font-size: 9px;
}

.erp-density-compact .sidebar-navigation {
    margin-top: 20px;
    gap: 4px;
}

.erp-density-compact .navigation-item {
    min-height: 38px;
    padding: 0 9px;
    gap: 9px;
    border-radius: 9px;
    font-size: 12px;
}

.erp-density-compact .navigation-symbol {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    font-size: 9px;
}

.erp-density-compact .navigation-divider {
    margin: 9px 0;
}

.erp-density-compact .navigation-section {
    margin: 0 9px 2px;
    font-size: 8px;
}

.erp-density-compact .sidebar-bottom {
    padding: 10px 8px 2px;
    font-size: 10px;
}

.erp-density-compact .topbar {
    min-height: 62px;
    padding: 10px 18px;
    gap: 14px;
}

.erp-density-compact .topbar-kicker {
    font-size: 8px;
}

.erp-density-compact .topbar-left h1 {
    margin-top: 2px;
    font-size: 19px;
}

.erp-density-compact .topbar-account {
    gap: 0;
}

.erp-density-compact .topbar-account form {
    margin: 0;
}

.erp-density-compact .workspace-content {
    padding: 15px 18px 20px;
}

.erp-density-compact .page-heading {
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}

.erp-density-compact .page-heading h2 {
    margin: 3px 0 2px;
    font-size: 23px;
}

.erp-density-compact .page-heading p:not(.section-kicker) {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
}

.erp-density-compact .section-kicker {
    font-size: 8px;
}

.erp-density-compact .button-primary,
.erp-density-compact .button-secondary,
.erp-density-compact .button-small {
    min-width: 0;
    min-height: var(--ui-control-height);
    margin-top: 0;
    padding: 6px 10px;
    border-radius: var(--ui-radius-sm);
    font-size: 11px;
    line-height: 1.15;
}

.erp-density-compact .button-primary {
    box-shadow: 0 7px 16px rgba(2, 105, 233, 0.18);
}

.erp-density-compact .form-actions {
    gap: 6px;
}

.erp-density-compact .form-card,
.erp-density-compact .table-card,
.erp-density-compact .content-card {
    border-radius: var(--ui-radius-md);
    box-shadow: 0 8px 24px rgba(2, 35, 98, 0.055);
}

.erp-density-compact .form-card {
    padding: 15px;
}

.erp-density-compact .form-grid {
    gap: 10px;
}

.erp-density-compact .form-field {
    gap: 4px;
}

.erp-density-compact .form-field > span,
.erp-density-compact .filter-bar label {
    font-size: 10px;
}

.erp-density-compact input,
.erp-density-compact select {
    min-height: var(--ui-control-height);
    padding: 5px 9px;
    border-radius: var(--ui-radius-sm);
    font-size: 11px;
}

.erp-density-compact textarea {
    padding: 8px 9px;
    border-radius: var(--ui-radius-sm);
    font-size: 11px;
}

.employee-page-heading > div:first-child > p:not(.section-kicker) {
    display: none;
}

.employee-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.employee-list-card {
    overflow: hidden;
}

.employee-filter-bar {
    display: grid !important;
    grid-template-columns:
        minmax(240px, 1.7fr)
        minmax(130px, 0.75fr)
        minmax(190px, 1.15fr)
        auto
        auto;
    align-items: end;
    gap: 8px !important;
    padding: 12px 14px !important;
}

.employee-filter-field,
.employee-name-search {
    min-width: 0 !important;
    gap: 4px !important;
}

.employee-filter-field label {
    font-size: 10px !important;
}

.employee-archive-filter {
    align-self: end;
    min-height: 34px !important;
    padding: 5px 9px !important;
    border-radius: 9px;
    font-size: 10px;
}

.employee-table-wrap {
    width: 100%;
    overflow: visible;
}

.employee-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

.employee-table th,
.employee-table td {
    padding: 9px 10px !important;
}

.employee-table th {
    font-size: 8.5px !important;
}

.employee-table td {
    font-size: 11px;
    vertical-align: middle;
}

.employee-table th:nth-child(1) {
    width: 14%;
}

.employee-table th:nth-child(2) {
    width: 17%;
}

.employee-table th:nth-child(3) {
    width: 31%;
}

.employee-table th:nth-child(4) {
    width: 15%;
}

.employee-table th:nth-child(5) {
    width: 9%;
}

.employee-table th:nth-child(6) {
    width: 14%;
}

.employee-table td strong {
    font-size: 11.5px;
}

.employee-table td small {
    margin-top: 2px;
    font-size: 9.5px !important;
    line-height: 1.3;
}

.employee-table .tag-list {
    gap: 4px;
}

.employee-table .role-tag {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 8.5px;
    line-height: 1.15;
}

.employee-table-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 5px !important;
}

.employee-table-actions .button-small {
    width: 100%;
    justify-content: center;
    min-height: 29px;
    padding: 5px 7px;
    font-size: 9.5px;
}

.hr-personnel-compact-heading {
    margin-bottom: 8px !important;
}

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

.hr-personnel-tabs {
    display: grid !important;
    grid-template-columns:
        repeat(auto-fit, minmax(86px, 1fr));
    gap: 4px !important;
    margin-bottom: 9px !important;
    padding: 5px !important;
    overflow: visible !important;
    border-radius: 11px !important;
}

.hr-personnel-tab {
    min-height: 31px !important;
    padding: 5px 6px !important;
    border-radius: 7px !important;
    font-size: 9.5px !important;
    white-space: nowrap;
}

.hr-page-section {
    margin-bottom: 10px !important;
    padding: 13px !important;
    border-radius: 13px !important;
}

.hr-page-heading {
    margin-bottom: 8px !important;
    padding-bottom: 7px !important;
}

.hr-page-heading span {
    font-size: 13px !important;
}

.hr-page-heading small {
    font-size: 8.5px !important;
}

.hr-entry-form {
    margin-bottom: 10px !important;
    padding: 10px !important;
    border-radius: 10px !important;
}

.hr-month-toolbar {
    display: grid !important;
    grid-template-columns:
        auto
        minmax(235px, 1fr)
        auto
        auto;
    align-items: end !important;
    gap: 6px !important;
    margin-bottom: 7px !important;
    padding: 7px !important;
    border-radius: 10px !important;
}

.hr-month-picker {
    display: grid !important;
    grid-template-columns:
        auto minmax(125px, 165px) auto;
    align-items: end !important;
    gap: 5px !important;
}

.hr-month-picker label {
    padding-bottom: 8px;
    font-size: 9px !important;
}

.hr-month-picker input {
    width: 100%;
    min-width: 0 !important;
}

.hr-time-save-top {
    white-space: nowrap;
}

.hr-month-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.hr-month-time-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed !important;
    border-spacing: 0 4px !important;
}

.hr-month-time-table thead th {
    padding: 0 3px 3px !important;
    font-size: 7.5px !important;
}

.hr-month-time-table th:nth-child(1) {
    width: 72px !important;
}

.hr-month-time-table th:nth-child(2),
.hr-month-time-table th:nth-child(3) {
    width: 64px !important;
}

.hr-month-time-table th:nth-child(4),
.hr-month-time-table th:nth-child(5),
.hr-month-time-table th:nth-child(6) {
    width: 56px !important;
}

.hr-month-time-table th:nth-child(7) {
    width: auto !important;
}

.hr-month-time-table tbody td {
    padding: 3px 2px !important;
}

.hr-month-time-table input {
    width: 100%;
    min-width: 0 !important;
    height: 28px !important;
    padding: 3px 5px !important;
    border-radius: 6px !important;
    font-size: 9.5px !important;
}

.hr-month-date-cell {
    position: static !important;
}

.hr-month-date-cell strong {
    font-size: 10px;
}

.hr-month-date-cell small {
    font-size: 8px;
}

.hr-month-save-bar {
    position: sticky;
    bottom: 6px;
    z-index: 5;
    margin-top: 7px !important;
    padding: 6px 8px;
    border: 1px solid rgba(31, 84, 160, 0.14);
    border-radius: 9px;
    background: rgba(250, 252, 255, 0.96);
    box-shadow: 0 6px 18px rgba(22, 54, 102, 0.10);
}

.hr-month-save-bar p {
    font-size: 9px !important;
    line-height: 1.3;
}

@media (max-width: 1180px) {
    .employee-filter-bar {
        grid-template-columns:
            minmax(220px, 1fr)
            minmax(130px, 0.7fr)
            minmax(180px, 1fr);
    }

    .employee-archive-filter,
    .employee-filter-bar > button,
    .employee-filter-bar > .text-link {
        justify-self: start;
    }

    .employee-table-wrap {
        padding: 10px;
    }

    .employee-table,
    .employee-table tbody,
    .employee-table tr,
    .employee-table td {
        display: block;
        width: 100%;
    }

    .employee-table thead {
        display: none;
    }

    .employee-table tbody {
        display: grid;
        gap: 8px;
    }

    .employee-table tbody tr {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 7px 12px;
        padding: 11px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: #ffffff;
    }

    .employee-table tbody td {
        padding: 0 !important;
        border: 0 !important;
    }

    .employee-table tbody td::before {
        display: block;
        margin-bottom: 3px;
        color: var(--text-muted);
        font-size: 7.5px;
        font-weight: 850;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .employee-table tbody td:nth-child(1)::before {
        content: "Personalnummer";
    }

    .employee-table tbody td:nth-child(2)::before {
        content: "Mitarbeiter";
    }

    .employee-table tbody td:nth-child(3)::before {
        content: "Rollen";
    }

    .employee-table tbody td:nth-child(4)::before {
        content: "Beschäftigung";
    }

    .employee-table tbody td:nth-child(5)::before {
        content: "Status";
    }

    .employee-table tbody td:nth-child(6) {
        grid-column: 1 / -1;
    }

    .employee-table-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .hr-month-time-table,
    .hr-month-time-table thead,
    .hr-month-time-table tbody {
        display: block;
        width: 100%;
    }

    .hr-month-time-table thead tr,
    .hr-month-time-table tbody tr {
        display: grid;
        grid-template-columns:
            70px repeat(5, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
    }

    .hr-month-time-table thead th,
    .hr-month-time-table tbody td {
        display: block;
        width: auto !important;
    }

    .hr-month-time-table thead th:nth-child(7),
    .hr-month-time-table tbody td:nth-child(7) {
        grid-column: 1 / -1;
    }

    .hr-month-time-table tbody tr {
        margin-bottom: 5px;
        padding: 5px;
        border: 1px solid rgba(45, 108, 201, 0.15);
        border-radius: 9px;
        background: #e8f2ff;
    }

    .hr-month-time-table tbody td {
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
}

@media (max-width: 760px) {
    .erp-density-compact .app-shell {
        grid-template-columns: 1fr;
    }

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

    .employee-table tbody tr {
        grid-template-columns: 1fr;
    }

    .employee-table tbody td:nth-child(6) {
        grid-column: auto;
    }

    .hr-personnel-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hr-month-toolbar {
        grid-template-columns: 1fr auto 1fr !important;
    }

    .hr-month-picker {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .hr-month-toolbar > a:first-child {
        grid-column: 1;
        grid-row: 2;
    }

    .hr-time-save-top {
        grid-column: 2;
        grid-row: 2;
    }

    .hr-month-toolbar > a:last-child {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }
}

/* ========================================================= */
/* ENDE ELKONEXA DESIGN CANDIDATE COMPACT V1                 */
/* ========================================================= */
