:root {
    --tms-bg: #050b16;
    --tms-surface: #0d1729;
    --tms-surface-2: #111c31;
    --tms-primary: #3b82f6;
    --tms-primary-hover: #2563eb;
    --tms-success: #22c55e;
    --tms-warning: #f59e0b;
    --tms-danger: #ef4444;
    --tms-text: #ffffff;
    --tms-text-secondary: #dbe4f0;
    --tms-text-muted: #8fa1b8;
    --tms-border: rgba(255,255,255,.08);
}

/* =======================================================
GLOBAL
======================================================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Inter, Segoe UI, sans-serif;
    background: radial-gradient( circle at top left, #12305e 0%, #081423 30%, #050b16 100%);
    color: var(--tms-text);
}

#app {
    min-height: 100vh;
}

body {
    overflow-x: hidden;
}

/* =======================================================
SCROLLBAR
======================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #07111f;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 999px;
}

/* =========================================================
   SIDEBAR GRUNDLAYOUT
========================================================= */

/* =========================================================
   TSL SIDEBAR
========================================================= */

.tsl-sidebar {
    background: #0b1e37 !important;
    border-right: 1px solid #1d3554 !important;
}


/* =========================================================
   SIDEBAR LAYOUT
========================================================= */

.tsl-sidebar-layout {
    width: 100%;
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0b1e37;
}


/* =========================================================
   LOGO
========================================================= */

.tsl-logo {
    flex: 0 0 auto;
    padding: 28px 16px 22px 16px;
    background: #102c53;
}

.tsl-logo-title {
    color: #ffffff;
    font-size: 46px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

.tsl-logo-subtitle {
    margin-top: 9px;
    color: #8da2c2;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 3px;
    white-space: nowrap;
}


/* =========================================================
   NAVIGATION SCROLLBEREICH
========================================================= */

.tsl-nav-scroll {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px 12px 8px;
    background: #0b1e37;
    scrollbar-width: thin;
    scrollbar-color: #7085a5 transparent;
}


    /* Chrome / Edge */

    .tsl-nav-scroll::-webkit-scrollbar {
        width: 5px;
    }

    .tsl-nav-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .tsl-nav-scroll::-webkit-scrollbar-thumb {
        background: #7085a5;
        border-radius: 10px;
    }

        .tsl-nav-scroll::-webkit-scrollbar-thumb:hover {
            background: #8da1bf;
        }


/* =========================================================
   MUD NAV MENU
========================================================= */

.tsl-nav-menu {
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
}


/* =========================================================
   ABSCHNITTSÜBERSCHRIFTEN
========================================================= */

.tsl-nav-section {
    margin-top: 26px;
    margin-bottom: 7px;
    padding: 0 7px;
    color: #7489a8;
    font-size: 10px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 2px;
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.tsl-nav-menu .mud-nav-link {
    position: relative;
    width: 100%;
    min-height: 44px;
    margin: 2px 0;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
    color: #d7dfeb !important;
    background: transparent !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}


/* =========================================================
   NAVIGATION TEXT
========================================================= */

.tsl-nav-menu .mud-nav-link-text {
    margin: 0 !important;
    color: inherit !important;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   ICONS IN NAVIGATION AUSBLENDEN
========================================================= */

.tsl-nav-menu .mud-nav-link-icon {
    display: none !important;
}


/* =========================================================
   NAVIGATION HOVER
========================================================= */

.tsl-nav-menu .mud-nav-link:hover {
    color: #ffffff !important;
    background: rgba(35, 82, 145, 0.20) !important;
}


/* =========================================================
   AKTIVER NAVIGATIONSPUNKT
========================================================= */

.tsl-nav-menu .mud-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient( 90deg, #194a8d 0%, #123769 100% ) !important;
    border-left: 4px solid #3d8cff;
    padding-left: 20px !important;
}

    .tsl-nav-menu .mud-nav-link.active .mud-nav-link-text {
        color: #ffffff !important;
        font-weight: 700;
    }


/* =========================================================
   ABSTAND NACH LETZTEM MENÜPUNKT
========================================================= */

.tsl-nav-bottom-space {
    height: 16px;
}


/* =========================================================
   BENUTZERBEREICH UNTEN
========================================================= */

.tsl-user-panel {
    flex: 0 0 auto;
    width: 100%;
    min-height: 82px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 11px;
    box-sizing: border-box;
    background: #0e213c;
    border-top: 1px solid #263e60;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.10);
    z-index: 10;
}


/* =========================================================
   BENUTZER AVATAR
========================================================= */

.tsl-user-avatar {
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    background: #274265 !important;
    color: #ffffff !important;
    border: 1px solid #3c5a80;
    font-size: 15px !important;
    font-weight: 700 !important;
}


/* =========================================================
   BENUTZER INFORMATIONEN
========================================================= */

.tsl-user-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.tsl-user-name {
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsl-user-role {
    margin-top: 1px;
    color: #91a7c7;
    font-size: 10px;
    line-height: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tsl-user-email {
    margin-top: 2px;
    color: #607b9f;
    font-size: 8px;
    line-height: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   LOGOUT BUTTON
========================================================= */

.tsl-logout-button {
    flex: 0 0 38px;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    color: #9db1cf !important;
    background: #132a49 !important;
    border: 1px solid #304968 !important;
    border-radius: 8px !important;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
}

    .tsl-logout-button:hover {
        color: #ff7070 !important;
        background: rgba(255, 82, 82, 0.10) !important;
        border-color: rgba(255, 82, 82, 0.40) !important;
    }

    .tsl-logout-button .mud-icon-root {
        font-size: 19px !important;
    }
/* =======================================================
CONTENT
======================================================= */

.tsl-content-wrapper {
    padding: 50px 70px;
    max-width: 1500px;
}

.tsl-page-content {
    margin-top: 20px;
}

/* =======================================================
PAGE TITLE
======================================================= */

.tms-page-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    max-width: 1500px;
}

.tms-page-subtitle {
    margin-top: 6px;
    color: var(--tms-text-secondary);
}

/* =======================================================
TOPBAR
======================================================= */

.tsl-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.tsl-topbar-left {
    display: flex;
    flex-direction: column;
}

.tsl-topbar-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.tsl-search {
    width: 360px;
}

.topbar-icon {
    color: #cbd5e1 !important;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.topbar-user-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.topbar-user-role {
    color: #94a3b8;
    font-size: 12px;
}

/* =======================================================
PANELS
======================================================= */
/* =========================================
AUFTRAG ANLEGEN
========================================= */
.tms-panel {
    background: linear-gradient( 180deg, rgba(17,28,49,.98), rgba(10,18,32,.98) ) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
    min-height: 700px;
    padding: 0;
    overflow: hidden;
}

    .tms-panel .mud-input-label {
        color: #94a3b8 !important;
    }

    .tms-panel .mud-input {
        color: white !important;
    }

    .tms-panel .mud-select-input {
        color: white !important;
    }

    .tms-panel .mud-input-slot {
        color: white !important;
    }

    .tms-panel .mud-divider {
        border-color: rgba(255,255,255,.08) !important;
    }

    .tms-panel .mud-alert {
        background: rgba(59,130,246,.08) !important;
        color: #dbe4f0 !important;
    }

    .tms-panel .mud-picker {
        background: #111c31 !important;
    }

    .tms-panel .mud-icon-root {
        color: #94a3b8 !important;
    }






/* =========================================================
   GEMEINSAME MUDBLAZOR KOMPONENTEN
   ========================================================= */
/* =======================================================
   TOOLTIP
======================================================= */

.mud-tooltip {
    background: #111c31 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.40);
    font-size: 12px !important;
}


/* =======================================================
   INPUTS
======================================================= */

.mud-input-control {
    background: rgba(255,255,255,.02);
    border-radius: 12px;
}

.mud-input {
    color: #ffffff !important;
}

.mud-input-label {
    color: #94a3b8 !important;
}

.mud-input input {
    color: #ffffff !important;
}

    .mud-input input::placeholder,
    .mud-input-slot::placeholder {
        color: #94a3b8 !important;
        opacity: 1 !important;
    }


/* =======================================================
   INPUT ICONS
======================================================= */

.mud-input-control .mud-input-adornment .mud-icon-root {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.mud-input-control:hover .mud-input-adornment .mud-icon-root {
    color: #60a5fa !important;
}


/* =======================================================
   SELECT / DROPDOWN
======================================================= */

.mud-select {
    color: #ffffff !important;
}

.mud-select-input {
    color: #ffffff !important;
}

.mud-select .mud-icon-root {
    color: #94a3b8 !important;
}


/* =======================================================
   POPOVER / DROPDOWN MENÜ
======================================================= */

.mud-popover,
.mud-menu,
.mud-list {
    background: #111c31 !important;
    color: #ffffff !important;
}

.mud-list-item {
    color: #dbe4f0 !important;
}

    .mud-list-item:hover {
        background: rgba(59,130,246,.12) !important;
    }


/* =======================================================
   ICON BUTTONS
======================================================= */

.mud-icon-button {
    opacity: 1 !important;
}

    .mud-icon-button .mud-icon-root {
        opacity: 1 !important;
    }


/* =======================================================
   OUTLINED BUTTONS
======================================================= */

.mud-button-outlined {
    color: #cbd5e1 !important;
    border-color: rgba(148,163,184,.45) !important;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

    .mud-button-outlined .mud-icon-root {
        color: #94a3b8 !important;
    }

    .mud-button-outlined:hover {
        color: #ffffff !important;
        border-color: #3b82f6 !important;
        background: rgba(59,130,246,.10) !important;
    }

        .mud-button-outlined:hover .mud-icon-root {
            color: #60a5fa !important;
        }


/* =======================================================
   ALERTS / PICKER
======================================================= */

.mud-alert {
    background: rgba(255,255,255,.03) !important;
    color: #dbe4f0 !important;
}

.mud-picker {
    background: #111c31 !important;
    color: #ffffff !important;
}

/* ============================================================
   TSL TMS – PLANTAFEL / DISPOSITION
   ============================================================ */

.plantafel-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 32px;
}

/* WERKZEUGLEISTE */

.plantafel-toolbar {
    min-height: 68px;
    margin-bottom: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.plantafel-toolbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.plantafel-toolbar-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.10);
}

    .plantafel-toolbar-icon .mud-icon-root {
        font-size: 19px !important;
    }

.plantafel-toolbar-title {
    color: #dbe7f5;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .65px;
}

.plantafel-toolbar-subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
}

.plantafel-toolbar-right {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plantafel-global-search {
    width: 340px;
}

/* HAUPTBEREICH */

.plantafel-workspace {
    min-width: 0;
    display: grid;
    grid-template-columns: 280px minmax(650px, 1fr) 300px;
    align-items: start;
    gap: 14px;
}

.plantafel-orders-panel,
.plantafel-week-panel,
.plantafel-details-panel {
    min-width: 0;
    overflow: hidden;
}

/* ZÄHLER */

.plantafel-count,
.plantafel-day-count {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.09);
    border: 1px solid rgba(59, 130, 246, 0.10);
    font-size: 10px;
    font-weight: 750;
}

/* OFFENE AUFTRÄGE */

.plantafel-orders-search {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

.plantafel-orders-list {
    height: calc(100vh - 265px);
    min-height: 500px;
    padding: 9px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.40) transparent;
}

    .plantafel-orders-list::-webkit-scrollbar,
    .plantafel-details-content::-webkit-scrollbar {
        width: 5px;
    }

    .plantafel-orders-list::-webkit-scrollbar-track,
    .plantafel-details-content::-webkit-scrollbar-track,
    .plantafel-week-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .plantafel-orders-list::-webkit-scrollbar-thumb,
    .plantafel-details-content::-webkit-scrollbar-thumb,
    .plantafel-week-scroll::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(100, 116, 139, 0.35);
    }

/* AUFTRAGSKARTE */

.plantafel-order-card {
    position: relative;
    margin-bottom: 8px;
    padding: 11px;
    border-radius: 9px;
    background: rgba(9, 17, 29, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.075);
    cursor: grab;
    transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .plantafel-order-card:hover {
        border-color: rgba(59, 130, 246, 0.24);
        background: rgba(13, 24, 40, 0.88);
        transform: translateY(-1px);
    }

    .plantafel-order-card:active {
        cursor: grabbing;
    }

    .plantafel-order-card.selected {
        border-color: rgba(59, 130, 246, 0.50);
        background: rgba(59, 130, 246, 0.075);
        box-shadow: inset 3px 0 0 #3b82f6;
    }

.plantafel-order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.plantafel-order-number {
    color: #e4edf7;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .15px;
}

.plantafel-order-customer {
    max-width: 155px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #718198;
    font-size: 9.5px;
}

.plantafel-order-route {
    margin-top: 12px;
    padding-left: 2px;
}

.plantafel-route-point {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .plantafel-route-point > div:last-child {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .plantafel-route-point span {
        color: #52637a;
        font-size: 7.5px;
        font-weight: 750;
        letter-spacing: .65px;
    }

    .plantafel-route-point strong {
        margin-top: 1px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #b9c6d6;
        font-size: 10px;
        font-weight: 600;
    }

.plantafel-route-marker {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
}

    .plantafel-route-marker.start {
        background: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.10);
    }

    .plantafel-route-marker.end {
        background: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.10);
    }

.plantafel-route-line {
    width: 1px;
    height: 13px;
    margin: 2px 0 2px 5px;
    background: rgba(100, 116, 139, 0.25);
}

.plantafel-order-footer {
    margin-top: 11px;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(148, 163, 184, 0.055);
    color: #6f8198;
    font-size: 9px;
}

    .plantafel-order-footer > div {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .plantafel-order-footer .mud-icon-root {
        font-size: 13px !important;
    }

.plantafel-drag-icon {
    color: #43546b !important;
}

/* WOCHENPLANUNG */

.plantafel-week-panel {
    min-height: 600px;
}

.plantafel-week-total {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #66778e;
}

    .plantafel-week-total strong {
        color: #93c5fd;
        font-size: 13px;
        font-weight: 750;
    }

    .plantafel-week-total span {
        font-size: 9px;
    }

.plantafel-week-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.40) transparent;
}

    .plantafel-week-scroll::-webkit-scrollbar {
        height: 6px;
    }

.plantafel-week-grid {
    min-width: 900px;
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    align-items: stretch;
}

.plantafel-day {
    min-width: 0;
    min-height: calc(100vh - 265px);
    border-right: 1px solid rgba(148, 163, 184, 0.065);
}

    .plantafel-day:last-child {
        border-right: none;
    }

.plantafel-day-header {
    min-height: 57px;
    padding: 10px 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(5, 12, 22, 0.42);
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

.plantafel-day-name {
    color: #c9d5e4;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.plantafel-day-date {
    margin-top: 2px;
    color: #5f7189;
    font-size: 9px;
}

.plantafel-day-content {
    min-height: 520px;
    padding: 8px;
    background: rgba(3, 9, 17, 0.15);
}

/* TOURKARTE */

.plantafel-tour-card {
    position: relative;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(10, 19, 32, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.075);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

    .plantafel-tour-card:hover {
        border-color: rgba(59, 130, 246, 0.28);
        background: rgba(13, 25, 42, 0.95);
        transform: translateY(-1px);
    }

    .plantafel-tour-card.selected {
        border-color: rgba(59, 130, 246, 0.55);
        background: rgba(59, 130, 246, 0.075);
        box-shadow: inset 3px 0 0 #3b82f6;
    }

.plantafel-tour-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.plantafel-tour-number {
    color: #e5edf7;
    font-size: 10.5px;
    font-weight: 750;
}

.plantafel-tour-status-text {
    margin-top: 2px;
    color: #60728a;
    font-size: 8px;
}

/* STATUS */

.plantafel-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 3px;
    border-radius: 50%;
    background: #64748b;
}

    .plantafel-status-dot.planned {
        background: #38bdf8;
        box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.09);
    }

    .plantafel-status-dot.assigned {
        background: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.09);
    }

    .plantafel-status-dot.active {
        background: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.09);
    }

    .plantafel-status-dot.finished {
        background: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.09);
    }

    .plantafel-status-dot.cancelled {
        background: #ef4444;
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.09);
    }

/* TOUR RESSOURCEN */

.plantafel-tour-resource {
    min-width: 0;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8292a7;
    font-size: 8.5px;
}

    .plantafel-tour-resource .mud-icon-root {
        flex: 0 0 auto;
        color: #53657d !important;
        font-size: 12px !important;
    }

    .plantafel-tour-resource span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.plantafel-tour-values {
    margin-top: 9px;
    padding-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(148, 163, 184, 0.055);
}

    .plantafel-tour-values > div {
        display: flex;
        align-items: baseline;
        gap: 3px;
    }

    .plantafel-tour-values strong {
        color: #b8c5d5;
        font-size: 9.5px;
        font-weight: 700;
    }

    .plantafel-tour-values span {
        color: #53657c;
        font-size: 7.5px;
    }

/* TOUR VERSCHIEBEN */

.plantafel-tour-actions {
    min-height: 26px;
    margin-top: 7px;
    padding-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(148, 163, 184, 0.045);
    color: #506178;
}

    .plantafel-tour-actions > span {
        font-size: 7.5px;
    }

    .plantafel-tour-actions .mud-icon-button {
        width: 24px !important;
        height: 24px !important;
        padding: 3px !important;
    }

    .plantafel-tour-actions .mud-icon-root {
        font-size: 15px !important;
    }

/* LEERER TAG */

.plantafel-day-empty {
    min-height: 95px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px dashed rgba(100, 116, 139, 0.12);
    border-radius: 7px;
    color: #45566d;
}

    .plantafel-day-empty .mud-icon-root {
        font-size: 19px !important;
    }

    .plantafel-day-empty span {
        font-size: 8.5px;
    }

/* TOURDETAILS */

.plantafel-details-panel {
    position: sticky;
    top: 14px;
}

.plantafel-details-content {
    max-height: calc(100vh - 205px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
}

.plantafel-details-empty {
    min-height: 360px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.plantafel-details-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #52657d;
    background: rgba(71, 85, 105, 0.08);
}

    .plantafel-details-empty-icon .mud-icon-root {
        font-size: 23px !important;
    }

.plantafel-details-empty strong {
    color: #9aabba;
    font-size: 11px;
    font-weight: 650;
}

.plantafel-details-empty span {
    max-width: 210px;
    margin-top: 5px;
    color: #596b82;
    font-size: 9px;
    line-height: 1.55;
}

.plantafel-detail-tour-head {
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.07);
}

    .plantafel-detail-tour-head > div {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .plantafel-detail-tour-head span:first-child {
        color: #53657c;
        font-size: 8px;
        font-weight: 750;
        letter-spacing: .65px;
    }

    .plantafel-detail-tour-head strong {
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #e1eaf5;
        font-size: 14px;
        font-weight: 750;
    }

.plantafel-detail-section {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.plantafel-detail-label {
    margin-bottom: 7px;
    color: #5d7088;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .65px;
}

.plantafel-detail-section .mud-button-root {
    margin-top: 6px;
}

/* AUSGEWÄHLTER AUFTRAG */

.plantafel-selected-order {
    margin: 11px;
    padding: 11px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.055);
    border: 1px solid rgba(59, 130, 246, 0.14);
}

.plantafel-selected-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

    .plantafel-selected-order-head strong {
        color: #dbe7f5;
        font-size: 10.5px;
        font-weight: 700;
    }

.plantafel-selected-order > span {
    display: block;
    margin-top: 1px;
    color: #71849a;
    font-size: 8.5px;
}

.plantafel-selected-order-route {
    margin: 9px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #9aabba;
    font-size: 8.5px;
}

    .plantafel-selected-order-route .mud-icon-root {
        color: #4f627a !important;
        font-size: 12px !important;
    }

/* DETAIL KENNZAHLEN */

.plantafel-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

    .plantafel-detail-metrics > div {
        padding: 12px 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-right: 1px solid rgba(148, 163, 184, 0.055);
    }

        .plantafel-detail-metrics > div:last-child {
            border-right: none;
        }

    .plantafel-detail-metrics strong {
        color: #d6e1ed;
        font-size: 12px;
        font-weight: 750;
    }

    .plantafel-detail-metrics span {
        margin-top: 2px;
        color: #56687f;
        font-size: 7px;
        font-weight: 750;
        letter-spacing: .5px;
    }

/* STOPPS */

.plantafel-detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .plantafel-detail-section-head > span {
        color: #64778e;
        font-size: 8px;
    }

.plantafel-stops {
    display: flex;
    flex-direction: column;
}

.plantafel-stop {
    min-width: 0;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.045);
}

    .plantafel-stop:last-child {
        border-bottom: none;
    }

.plantafel-stop-number {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.08);
    font-size: 8px;
    font-weight: 750;
}

.plantafel-stop-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .plantafel-stop-info strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #b6c4d4;
        font-size: 9px;
        font-weight: 650;
    }

    .plantafel-stop-info span {
        margin-top: 1px;
        color: #596c84;
        font-size: 7.5px;
    }

.plantafel-stop-weight {
    color: #667990;
    font-size: 7.5px;
    white-space: nowrap;
}

.plantafel-stops-empty {
    padding: 14px 0;
    color: #53657c;
    font-size: 8.5px;
    text-align: center;
}

.plantafel-detail-actions {
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

/* ALLGEMEINER LEERZUSTAND */

.plantafel-empty {
    min-height: 220px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #53657b;
}

    .plantafel-empty .mud-icon-root {
        margin-bottom: 9px;
        color: #40536b !important;
    }

    .plantafel-empty strong {
        color: #8fa0b3;
        font-size: 10px;
        font-weight: 650;
    }

    .plantafel-empty span {
        max-width: 190px;
        margin-top: 4px;
        color: #566980;
        font-size: 8.5px;
        line-height: 1.5;
    }

/* DIALOG */

.plantafel-dialog {
    padding: 4px 2px;
}

.plantafel-dialog-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

/* MUDBLAZOR INNERHALB DER PLANTAFEL */

.plantafel-page .mud-input-control {
    margin-top: 0 !important;
}

.plantafel-page .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.13) !important;
}

.plantafel-page .mud-input-control:hover .mud-input-outlined-border {
    border-color: rgba(96, 165, 250, 0.32) !important;
}

.plantafel-page .mud-input-root:focus-within .mud-input-outlined-border {
    border-color: rgba(59, 130, 246, 0.65) !important;
}

/* RESPONSIVE */

@media (max-width: 1500px) {
    .plantafel-workspace {
        grid-template-columns: 250px minmax(620px, 1fr) 275px;
        gap: 11px;
    }

    .plantafel-global-search {
        width: 290px;
    }

    .plantafel-week-grid {
        min-width: 850px;
    }
}

@media (max-width: 1250px) {
    .plantafel-workspace {
        grid-template-columns: 250px minmax(650px, 1fr);
    }

    .plantafel-details-panel {
        position: relative;
        top: auto;
        grid-column: 1 / -1;
    }

    .plantafel-details-content {
        max-height: none;
    }
}

@media (max-width: 900px) {
    .plantafel-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .plantafel-toolbar-right {
        width: 100%;
    }

    .plantafel-global-search {
        width: 100%;
    }

    .plantafel-workspace {
        display: flex;
        flex-direction: column;
    }

    .plantafel-orders-panel,
    .plantafel-week-panel,
    .plantafel-details-panel {
        width: 100%;
    }

    .plantafel-orders-list {
        height: auto;
        max-height: 430px;
        min-height: 0;
    }

    .plantafel-week-grid {
        min-width: 850px;
    }

    .plantafel-day {
        min-height: 500px;
    }
}

@media (max-width: 600px) {
    .plantafel-toolbar {
        padding: 11px;
    }

    .plantafel-week-grid {
        min-width: 800px;
    }
}


/* =========================================================
   TSL TMS - DASHBOARD
========================================================= */


/* =========================================================
   SEITE
========================================================= */

.dashboard-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 32px;
}


/* =========================================================
   SEITENKOPF
========================================================= */

.dashboard-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .dashboard-page-header h4 {
        margin: 0;
        color: #f8fafc !important;
        font-size: 26px !important;
        font-weight: 700 !important;
        letter-spacing: -0.4px;
    }


/* =========================================================
   ALLGEMEINER TEXT
========================================================= */

.dashboard-muted {
    color: #8190a5 !important;
    font-size: 12px;
}


/* =========================================================
   LADEZUSTAND
========================================================= */

.dashboard-loading {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   KPI GRID
========================================================= */

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}


/* =========================================================
   KPI KARTE
========================================================= */

.dashboard-kpi-card {
    position: relative;
    min-width: 0;
    min-height: 145px;
    padding: 19px 20px 18px;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 14px !important;
    background: linear-gradient( 145deg, rgba(18, 31, 52, 0.98), rgba(10, 19, 34, 0.98) ) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20);
    overflow: hidden;
}

    .dashboard-kpi-card::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        opacity: 0.55;
        background: linear-gradient( 90deg, transparent, rgba(59, 130, 246, 0.8), transparent );
    }


/* =========================================================
   KPI KOPF
========================================================= */

.dashboard-kpi-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.dashboard-kpi-icon {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

    .dashboard-kpi-icon .mud-icon-root {
        font-size: 19px !important;
    }

.dashboard-kpi-title {
    color: #8e9db1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}


/* =========================================================
   KPI ICON FARBEN
========================================================= */

.dashboard-kpi-blue {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.14);
}

.dashboard-kpi-purple {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.14);
}

.dashboard-kpi-green {
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
}

.dashboard-kpi-orange {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.14);
}


/* =========================================================
   KPI WERT
========================================================= */

.dashboard-kpi-value {
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.05;
}

.dashboard-kpi-label {
    color: #718198;
    font-size: 11px;
}


/* =========================================================
   HAUPTBEREICH

   Links: Aufträge
   Rechts: Aktivität + Auslastung
========================================================= */

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-right-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-width: 0;
}


/* =========================================================
   MITTLERER BEREICH

   Links: Live Fahrzeuge
   Rechts: Betriebsstatus
========================================================= */

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    align-items: stretch;
    gap: 16px;
    margin-bottom: 16px;
}


/* =========================================================
   PANEL
========================================================= */

.dashboard-panel {
    min-width: 0;
    color: #e8eef7 !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 14px !important;
    background: linear-gradient( 180deg, rgba(16, 28, 48, 0.98), rgba(9, 18, 32, 0.98) ) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}


/* =========================================================
   PANEL HEADER
========================================================= */

.dashboard-panel-header {
    min-height: 67px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.09);
    background: rgba(255, 255, 255, 0.012);
}

.dashboard-panel-title {
    color: #e7edf6;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.85px;
    text-transform: uppercase;
}

.dashboard-panel-subtitle {
    margin-top: 3px;
    color: #718198;
    font-size: 11px;
}


/* =========================================================
   PANEL BUTTON
========================================================= */

.dashboard-panel-header .mud-button-root {
    min-width: auto;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
    font-size: 11px;
}

.dashboard-panel-header .mud-button-text-primary {
    color: #60a5fa !important;
}

    .dashboard-panel-header .mud-button-text-primary:hover {
        background: rgba(59, 130, 246, 0.08) !important;
    }


/* =========================================================
   AUFTRÄGE
========================================================= */

.dashboard-orders-panel {
    min-height: 410px;
}


/* =========================================================
   AUFTRAGSFILTER
========================================================= */

.dashboard-order-filter {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(5, 12, 23, 0.18);
}

    .dashboard-order-filter .mud-input-control {
        margin: 0 !important;
    }

    .dashboard-order-filter .mud-input-outlined-border {
        border-color: rgba(148, 163, 184, 0.15) !important;
    }

    .dashboard-order-filter .mud-input-root {
        color: #e5edf7 !important;
    }

        .dashboard-order-filter .mud-input-root::placeholder {
            color: #65758b !important;
        }

    .dashboard-order-filter .mud-input-adornment {
        color: #64748b !important;
    }


/* =========================================================
   TABELLEN WRAPPER
========================================================= */

.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
}


/* =========================================================
   DASHBOARD TABELLEN
========================================================= */

.dashboard-table,
.dashboard-table .mud-table-root,
.dashboard-table .mud-table-container {
    background: transparent !important;
}

    .dashboard-table .mud-table-head {
        background: rgba(5, 12, 23, 0.36) !important;
    }

        .dashboard-table .mud-table-head th {
            height: 41px;
            padding: 8px 12px !important;
            color: #73839a !important;
            background: rgba(5, 12, 23, 0.36) !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
            font-size: 10px !important;
            font-weight: 700 !important;
            letter-spacing: 0.45px;
            text-transform: uppercase;
            white-space: nowrap;
        }

    .dashboard-table .mud-table-row {
        background: transparent !important;
    }

        .dashboard-table .mud-table-row td {
            height: 51px;
            padding: 8px 12px !important;
            color: #d9e2ee !important;
            background: transparent !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.055) !important;
            font-size: 12px;
            vertical-align: middle;
        }

        .dashboard-table .mud-table-row:last-child td {
            border-bottom: none !important;
        }

        .dashboard-table .mud-table-row:hover {
            background: rgba(59, 130, 246, 0.055) !important;
        }

    .dashboard-table strong {
        color: #f1f5f9;
        font-weight: 600;
    }


/* =========================================================
   ROUTE
========================================================= */

.dashboard-route {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}


/* =========================================================
   LEERER ZUSTAND
========================================================= */

.dashboard-empty-state {
    min-height: 245px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

    .dashboard-empty-state .mud-icon-root {
        color: #43536a !important;
    }

.dashboard-empty-small {
    min-height: 145px;
}


/* =========================================================
   AKTIVITÄT
========================================================= */

.dashboard-activity-panel {
    min-height: 250px;
}


/* =========================================================
   STATUS LISTE
========================================================= */

.dashboard-status-list {
    width: 100%;
    padding: 4px 0;
}

.dashboard-status-row {
    min-height: 48px;
    padding: 8px 16px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.055);
    transition: background 0.15s ease;
}

    .dashboard-status-row:last-child {
        border-bottom: none;
    }

    .dashboard-status-row:hover {
        background: rgba(59, 130, 246, 0.045);
    }

    .dashboard-status-row > .mud-icon-root {
        font-size: 19px;
    }

.dashboard-status-icon {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

    .dashboard-status-icon .mud-icon-root {
        font-size: 16px !important;
    }

.dashboard-status-text {
    min-width: 0;
    color: #aeb9c8;
    font-size: 12px;
    font-weight: 500;
}

.dashboard-status-number {
    min-width: 28px;
    color: #f1f5f9;
    font-size: 17px;
    font-weight: 700;
    text-align: right;
}


/* =========================================================
   STATUS ICON FARBEN
========================================================= */

.dashboard-icon-blue {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
}

.dashboard-icon-purple {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
}

.dashboard-icon-green {
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
}

.dashboard-icon-orange {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
}


/* =========================================================
   FAHRZEUGAUSLASTUNG
========================================================= */

.dashboard-fleet-panel {
    min-height: 215px;
}

.dashboard-fleet-content {
    padding: 18px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
}


/* =========================================================
   AUSLASTUNGSKREIS
========================================================= */

.dashboard-fleet-circle {
    width: 106px;
    height: 106px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient( circle at center, #0c1728 57%, transparent 58% ), conic-gradient( #3b82f6 0deg, #3b82f6 calc(var(--fleet-progress, 0) * 3.6deg), rgba(148, 163, 184, 0.13) calc(var(--fleet-progress, 0) * 3.6deg), rgba(148, 163, 184, 0.13) 360deg );
}

/*
   Der Kreis bleibt auch ohne gesetzte CSS-Variable sauber.
   Die tatsächliche Prozentanzeige steht in der Mitte.
*/

.dashboard-fleet-circle-value {
    color: #f8fafc;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.dashboard-fleet-circle-label {
    margin-top: 5px;
    color: #718198;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}


/* =========================================================
   AUSLASTUNGSDETAILS
========================================================= */

.dashboard-fleet-details {
    min-width: 0;
}

.dashboard-fleet-detail-row {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.055);
    color: #8d9cb0;
    font-size: 11px;
}

    .dashboard-fleet-detail-row:last-child {
        border-bottom: none;
    }

    .dashboard-fleet-detail-row strong {
        color: #eef4fb;
        font-size: 15px;
    }


/* =========================================================
   AUSLASTUNG PROGRESS
========================================================= */

.dashboard-fleet-progress {
    padding: 0 18px 18px;
}

    .dashboard-fleet-progress .mud-progress-linear {
        height: 5px !important;
        border-radius: 20px;
        background: rgba(148, 163, 184, 0.10) !important;
    }


/* =========================================================
   HEUTIGE TOUREN
========================================================= */

.dashboard-tours-panel {
    margin-bottom: 16px;
}


/* =========================================================
   CHIPS
========================================================= */

.dashboard-panel .mud-chip {
    min-height: 23px;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   SCROLLBAR IN DASHBOARD TABELLEN
========================================================= */

.dashboard-table-wrapper::-webkit-scrollbar {
    height: 7px;
}

.dashboard-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.35);
    border-radius: 20px;
}

    .dashboard-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 116, 139, 0.55);
    }


/* =========================================================
   1500 PX
========================================================= */

@media (max-width: 1500px) {

    .dashboard-main-grid,
    .dashboard-secondary-grid {
        grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
    }

    .dashboard-table .mud-table-head th,
    .dashboard-table .mud-table-row td {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }
}


/* =========================================================
   1200 PX
========================================================= */

@media (max-width: 1200px) {

    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-right-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-secondary-grid {
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    }

    .dashboard-orders-panel {
        min-height: 0;
    }
}


/* =========================================================
   900 PX
========================================================= */

@media (max-width: 900px) {

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-right-column {
        grid-template-columns: 1fr;
    }

    .dashboard-fleet-content {
        grid-template-columns: 110px minmax(0, 1fr);
    }
}


/* =========================================================
   650 PX
========================================================= */

@media (max-width: 650px) {

    .dashboard-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .dashboard-page-header .mud-button-root {
            width: 100%;
        }

    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-card {
        min-height: 125px;
    }

    .dashboard-panel-header {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

        .dashboard-panel-header .mud-button-root {
            padding-left: 0;
        }

    .dashboard-fleet-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .dashboard-fleet-details {
        width: 100%;
    }

    .dashboard-status-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
    }
}
/* =========================================================
   PERSONAL KALENDER
   ========================================================= */

.calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-current-month {
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
}

.calendar-filter {
    display: flex;
    justify-content: flex-end;
}

    .calendar-filter .mud-input-control {
        min-width: 250px;
    }


/* =========================================================
   LEGENDE
   ========================================================= */

.calendar-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 16px;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: .85;
}

.calendar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.calendar-dot-holiday {
    background: #ef5350;
}

.calendar-dot-vacation {
    background: #42a5f5;
}

.calendar-dot-sick {
    background: #ffa726;
}

.calendar-dot-today {
    background: #66bb6a;
}


/* =========================================================
   KALENDER
   ========================================================= */

.calendar-container {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: transparent;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255, 255, 255, .035);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

    .calendar-weekdays > div {
        padding: 13px 12px;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        opacity: .7;
    }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
    position: relative;
    min-height: 145px;
    padding: 10px;
    border-right: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background .15s ease;
}

    .calendar-day:nth-child(7n) {
        border-right: none;
    }

    .calendar-day:hover {
        background: rgba(255, 255, 255, .025);
    }

.calendar-day-other-month {
    opacity: .35;
}

.calendar-day-weekend {
    background: rgba(255, 255, 255, .015);
}

.calendar-day-today {
    box-shadow: inset 0 0 0 2px rgba(102, 187, 106, .55);
}


/* =========================================================
   TAG HEADER
   ========================================================= */

.calendar-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
}

.calendar-day-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.calendar-day-today .calendar-day-number {
    background: #66bb6a;
    color: #101410;
}

.calendar-today-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: .65;
}


/* =========================================================
   TERMINE / EREIGNISSE
   ========================================================= */

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
}

    .calendar-event span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .calendar-event .mud-icon-root {
        flex-shrink: 0;
    }

.calendar-event-holiday {
    background: rgba(239, 83, 80, .15);
    color: #ef9a9a;
    border-left: 3px solid #ef5350;
}

.calendar-event-vacation {
    background: rgba(66, 165, 245, .15);
    color: #90caf9;
    border-left: 3px solid #42a5f5;
}

.calendar-event-sick {
    background: rgba(255, 167, 38, .15);
    color: #ffcc80;
    border-left: 3px solid #ffa726;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .calendar-toolbar {
        grid-template-columns: 1fr;
    }

    .calendar-navigation {
        justify-content: center;
    }

    .calendar-filter {
        justify-content: center;
    }

    .calendar-weekdays > div {
        font-size: 10px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .calendar-day {
        min-height: 110px;
        padding: 6px;
    }

    .calendar-event {
        font-size: 10px;
        padding: 4px;
    }
}
/* =========================================================
   DISPOSITION
   ========================================================= */

.dispo-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}


/* =========================================================
   TOUR KARTE
   ========================================================= */

.dispo-tour-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    background: linear-gradient( 145deg, rgba(18, 31, 52, 0.92), rgba(8, 17, 31, 0.96) );
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .dispo-tour-card:hover {
        transform: translateY(-2px);
        border-color: rgba(59, 130, 246, 0.30);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    }


/* =========================================================
   TOUR HEADER
   ========================================================= */

.dispo-tour-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(255, 255, 255, 0.012);
}


.dispo-tour-number {
    margin-bottom: 3px;
    color: #f8fafc;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}


.dispo-tour-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.14);
}

    .dispo-tour-icon .mud-icon-root {
        font-size: 19px !important;
    }


/* =========================================================
   TOUR INFORMATIONEN
   ========================================================= */

.dispo-tour-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}


.dispo-info-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}


.dispo-info-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #8291a6;
    background: rgba(148, 163, 184, 0.07);
}


.dispo-info-label {
    margin-bottom: 2px;
    color: #718198;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
}


.dispo-info-value {
    overflow: hidden;
    color: #e5edf7;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   STOPPS
   ========================================================= */

.dispo-stopps {
    padding: 14px 16px 16px;
}


.dispo-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #7f8ea3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
}


    .dispo-section-title span {
        min-width: 19px;
        height: 19px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border-radius: 20px;
        color: #60a5fa;
        background: rgba(59, 130, 246, 0.12);
        font-size: 9px;
    }


/* =========================================================
   EINZELNER STOPP
   ========================================================= */

.dispo-stopp {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 7px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.018);
    transition: background .15s ease, border-color .15s ease;
}


    .dispo-stopp:last-child {
        margin-bottom: 0;
    }


    .dispo-stopp:hover {
        background: rgba(59, 130, 246, 0.05);
        border-color: rgba(59, 130, 246, 0.18);
    }


/* =========================================================
   STOPP NUMMER
   ========================================================= */

.dispo-stopp-number {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.12);
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   STOPP INHALT
   ========================================================= */

.dispo-stopp-content {
    min-width: 0;
    flex: 1;
}


.dispo-stopp-order {
    margin-bottom: 4px;
    color: #e7edf6;
    font-size: 11px;
    font-weight: 700;
}


.dispo-stopp-route {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #78889d;
    font-size: 10px;
}


    .dispo-stopp-route span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }


    .dispo-stopp-route .mud-icon-root {
        flex-shrink: 0;
        color: #526176 !important;
        font-size: 13px !important;
    }


/* =========================================================
   KEINE STOPPS
   ========================================================= */

.dispo-no-stopps {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.12);
    border-radius: 9px;
    color: #65758b;
    text-align: center;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1400px) {

    .dispo-tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .dispo-tour-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .dispo-tour-info {
        grid-template-columns: 1fr;
    }

    .dispo-stopp-route {
        flex-wrap: wrap;
    }
}


/* =========================================================
   AUFTRÄGE - MODERNE ÜBERSICHT
   ========================================================= */

.tms-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 32px;
}

.tms-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .tms-page-header h4 {
        margin: 0;
        color: #f8fafc !important;
        font-size: 26px !important;
        font-weight: 700 !important;
        letter-spacing: -0.4px;
    }

.orders-panel-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.orders-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(5, 12, 23, 0.18);
}

.orders-search {
    flex: 1;
    min-width: 250px;
}

.orders-status-filter {
    width: 190px;
    flex: 0 0 190px;
}

.orders-filter .mud-input-control {
    margin: 0 !important;
}

.orders-filter .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

.orders-filter .mud-input-root {
    color: #e5edf7 !important;
}

.orders-filter .mud-input-adornment {
    color: #64748b !important;
}

.orders-reset-button {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 8px !important;
    color: #718198 !important;
}

.orders-table-wrapper {
    position: relative;
}

.orders-table {
    width: 100%;
}

    .orders-table .mud-table-head {
        background: rgba(5, 12, 23, 0.50) !important;
    }

        .orders-table .mud-table-head th {
            height: 44px;
            padding: 9px 14px !important;
            color: #74849a !important;
            background: rgba(5, 12, 23, 0.50) !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.09) !important;
            font-size: 10px !important;
            font-weight: 700 !important;
            letter-spacing: .55px;
            text-transform: uppercase;
            white-space: nowrap;
        }

    .orders-table .mud-table-row {
        height: 55px;
        background: transparent !important;
        transition: background .13s ease;
    }

        .orders-table .mud-table-row td {
            padding: 9px 14px !important;
            color: #cbd5e1 !important;
            background: transparent !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.055) !important;
            font-size: 12px;
        }

        .orders-table .mud-table-row:hover {
            background: rgba(59, 130, 246, 0.045) !important;
        }

.orders-number {
    color: #eaf1fa;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1px;
}

.orders-location {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

    .orders-location span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.orders-location-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .orders-location-icon .mud-icon-root {
        font-size: 14px !important;
    }

.orders-location-start {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.10);
}

.orders-location-end {
    color: #34d399;
    background: rgba(16, 185, 129, 0.10);
}

.orders-route-column {
    width: 90px;
    text-align: center !important;
}

.orders-route-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #4d6078;
}

    .orders-route-line span {
        width: 15px;
        height: 1px;
        background: rgba(100, 116, 139, 0.35);
    }

    .orders-route-line .mud-icon-root {
        font-size: 14px !important;
    }

.orders-weight {
    color: #aebbc9;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.orders-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    color: #9aa8ba;
    background: rgba(148, 163, 184, 0.06);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.orders-status-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #64748b;
}

.orders-status-open {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.16);
    background: rgba(239, 68, 68, 0.07);
}

    .orders-status-open .orders-status-dot {
        background: #ef4444;
    }

.orders-status-planned {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.17);
    background: rgba(59, 130, 246, 0.07);
}

    .orders-status-planned .orders-status-dot {
        background: #3b82f6;
    }

.orders-status-running {
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.18);
    background: rgba(249, 115, 22, 0.07);
}

    .orders-status-running .orders-status-dot {
        background: #f97316;
    }

.orders-status-done {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.17);
    background: rgba(34, 197, 94, 0.07);
}

    .orders-status-done .orders-status-dot {
        background: #22c55e;
    }

.orders-actions-column {
    width: 120px;
    text-align: right !important;
}

.orders-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.orders-action-button {
    width: 30px !important;
    height: 30px !important;
    color: #75869c !important;
    border-radius: 7px !important;
}

    .orders-action-button:hover {
        color: #60a5fa !important;
        background: rgba(59, 130, 246, 0.09) !important;
    }

.orders-detail-panel {
    overflow: hidden;
}

.orders-detail-content {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) 40px minmax(180px, 1fr) minmax(120px, .7fr) minmax(120px, .7fr);
    align-items: center;
    gap: 16px;
    padding: 18px;
}

.orders-detail-item {
    min-width: 0;
}

.orders-detail-label {
    margin-bottom: 5px;
    color: #718198;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.orders-detail-value {
    overflow: hidden;
    color: #e5edf7;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.orders-detail-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #526176;
}

.orders-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.orders-table .mud-table-container::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.orders-table .mud-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.orders-table .mud-table-container::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.32);
    border-radius: 20px;
}

    .orders-table .mud-table-container::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 116, 139, 0.50);
    }

@media (max-width: 1200px) {
    .orders-detail-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .orders-detail-arrow {
        display: none;
    }
}

@media (max-width: 800px) {
    .orders-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .orders-search,
    .orders-status-filter {
        width: 100%;
        flex: none;
    }

    .orders-reset-button {
        width: 100% !important;
    }

    .orders-route-column {
        display: none;
    }

    .orders-detail-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .tms-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .tms-page-header .mud-button-root {
            width: 100%;
        }
}

@media (max-width: 550px) {
    .orders-panel-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .orders-detail-content {
        grid-template-columns: 1fr;
    }

    .orders-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .orders-detail-actions .mud-button-root {
            width: 100%;
        }
}
/* =========================================================
   AUFTRAG FORMULAR
   ========================================================= */

.order-form-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.order-form-section {
    margin-top: 16px;
}

.order-form-panel {
    min-width: 0;
    overflow: hidden;
}

.order-form-panel-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}

.order-form-panel-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.11);
}

    .order-form-panel-icon .mud-icon-root {
        font-size: 18px !important;
    }

.order-form-load-icon {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.11);
}

.order-form-unload-icon {
    color: #34d399;
    background: rgba(16, 185, 129, 0.11);
}

.order-form-content {
    padding: 18px;
}


/* =========================================================
   AUFTRAGSNUMMER INFO
   ========================================================= */

.order-form-number-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 11px 12px;
    border: 1px solid rgba(59, 130, 246, 0.11);
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.045);
}

.order-form-number-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.11);
}

.order-form-number-title {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.order-form-number-text {
    margin-top: 1px;
    color: #718198;
    font-size: 10px;
}


/* =========================================================
   ROUTE
   ========================================================= */

.order-form-section-label {
    margin: 0 0 9px 2px;
    color: #687991;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
}

.order-route-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
}

.order-route-connector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-route-connector-line {
    width: 12px;
    height: 1px;
    background: rgba(100, 116, 139, 0.32);
}

.order-route-connector-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.14);
    border-radius: 50%;
    color: #60a5fa;
    background: #0a1424;
}

    .order-route-connector-icon .mud-icon-root {
        font-size: 15px !important;
    }


/* =========================================================
   FORMULAR UNTERBEREICH
   ========================================================= */

.order-form-subsection {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, 0.07);
}

.order-form-subtitle {
    margin-bottom: 11px;
    color: #6f8097;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.order-form-panel .mud-input-control {
    margin-top: 0 !important;
}

.order-form-panel .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.13) !important;
}

.order-form-panel .mud-input-root {
    color: #e5edf7 !important;
}

.order-form-panel .mud-input-label {
    color: #7d8da2 !important;
}

.order-form-panel .mud-input-adornment {
    color: #65758b !important;
}

.order-form-panel .mud-input-control:hover
.mud-input-outlined-border {
    border-color: rgba(96, 165, 250, 0.30) !important;
}


/* =========================================================
   OPTIONEN
   ========================================================= */

.order-options-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    padding: 16px;
}

.order-option {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.012);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

    .order-option:hover {
        border-color: rgba(59, 130, 246, 0.18);
        background: rgba(59, 130, 246, 0.035);
    }

    .order-option > div:last-child {
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .order-option strong {
        color: #dbe4ef;
        font-size: 11px;
        font-weight: 650;
    }

    .order-option span {
        margin-top: 2px;
        overflow: hidden;
        color: #687991;
        font-size: 9px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .order-option .mud-checkbox {
        flex: 0 0 auto;
    }


/* =========================================================
   AKTIONSLEISTE
   ========================================================= */

.order-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid rgba(148, 163, 184, 0.09);
    border-radius: 12px;
    background: rgba(8, 17, 31, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 -5px 22px rgba(0, 0, 0, 0.16);
}

/* =========================================================
   AUFTRAG FORMULAR - ZUSATZFELDER
   ========================================================= */

.order-form-extra-fields {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.07);
}
/* =========================================================
   TOUR BEARBEITEN
   ========================================================= */

.tour-edit-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-edit-stop-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(59, 130, 246, 0.13);
    border-radius: 20px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.06);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}


/* =========================================================
   ZEITEN + KOSTEN
   ========================================================= */

.tour-edit-middle-grid {
    display: grid;
    grid-template-columns: minmax(340px, .8fr) minmax(500px, 1.2fr);
    gap: 16px;
    margin-top: 16px;
}

.tour-time-line {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tour-time-entry {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-time-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .tour-time-icon .mud-icon-root {
        font-size: 17px !important;
    }

.tour-time-start {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.11);
}

.tour-time-end {
    color: #34d399;
    background: rgba(16, 185, 129, 0.11);
}

.tour-time-label {
    color: #687991;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .6px;
}

.tour-time-value {
    margin-top: 3px;
    color: #dbe4ef;
    font-size: 12px;
    font-weight: 650;
}

.tour-time-divider {
    width: 28px;
    height: 1px;
    background: rgba(100, 116, 139, 0.28);
}


/* =========================================================
   AUFTRÄGE DER TOUR
   ========================================================= */

.tour-edit-orders-panel {
    overflow: hidden;
    margin-top: 16px;
}

.tour-orders-table {
    overflow-x: auto;
}

    .tour-orders-table .mud-table-root {
        background: transparent !important;
    }

    .tour-orders-table .mud-table-head {
        background: rgba(5, 12, 23, 0.48) !important;
    }

        .tour-orders-table .mud-table-head th {
            padding: 10px 14px !important;
            color: #718198 !important;
            background: transparent !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.08) !important;
            font-size: 9px !important;
            font-weight: 700 !important;
            letter-spacing: .55px;
            text-transform: uppercase;
        }

    .tour-orders-table .mud-table-row {
        background: transparent !important;
    }

        .tour-orders-table .mud-table-row:hover {
            background: rgba(59, 130, 246, 0.04) !important;
        }

        .tour-orders-table .mud-table-row td {
            padding: 10px 14px !important;
            color: #cbd5e1 !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.055) !important;
            font-size: 11px;
        }

.tour-order-position {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.09);
    font-size: 10px;
    font-weight: 700;
}

.tour-order-number {
    color: #e5edf7;
    font-size: 11px;
    font-weight: 700;
}

.tour-order-location {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tour-order-location-icon {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .tour-order-location-icon .mud-icon-root {
        font-size: 13px !important;
    }

.tour-order-location-start {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.09);
}

.tour-order-location-end {
    color: #34d399;
    background: rgba(16, 185, 129, 0.09);
}

.tour-order-arrow {
    color: #526176 !important;
    font-size: 15px !important;
}


/* =========================================================
   KEINE AUFTRÄGE
   ========================================================= */

.tour-orders-empty {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 24px;
    color: #5e7088;
}

    .tour-orders-empty > .mud-icon-root {
        color: #40516a;
    }

    .tour-orders-empty div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .tour-orders-empty strong {
        color: #9eacbd;
        font-size: 11px;
        font-weight: 650;
    }

    .tour-orders-empty span {
        color: #65758b;
        font-size: 10px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .tour-edit-middle-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .tour-edit-header-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .tour-time-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .tour-time-divider {
        width: 1px;
        height: 18px;
        margin-left: 17px;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1150px) {

    .order-form-top-grid {
        grid-template-columns: 1fr;
    }

    .order-options-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 900px) {

    .order-route-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .order-route-connector {
        height: 34px;
        transform: rotate(90deg);
    }
}


@media (max-width: 600px) {

    .order-options-grid {
        grid-template-columns: 1fr;
    }

    .order-form-content {
        padding: 14px;
    }

    .order-form-actions {
        position: static;
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .order-form-actions .mud-button-root {
            width: 100%;
        }
}
/* =========================================================
   TSL TMS - GEMEINSAME LISTEN / STAMMDATEN / KOMMUNIKATION
   ========================================================= */

.tms-page {
    width: 100%;
    min-width: 0;
    padding-bottom: 32px;
}


/* =========================================================
   SEITENKOPF
   ========================================================= */

.tms-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

    .tms-page-header h4 {
        margin: 0;
        color: #f8fafc !important;
        font-size: 26px !important;
        font-weight: 700 !important;
        letter-spacing: -0.4px;
    }

.tms-page-description {
    margin-top: 5px !important;
    color: #718198 !important;
    font-size: 12px !important;
}


/* =========================================================
   LISTEN PANEL
   ========================================================= */

.tms-list-panel {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    border-radius: 14px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, 0.98), rgba(8, 16, 29, 0.98) ) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}

.tms-list-panel-header {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 17px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.tms-list-panel-title {
    color: #e8eef7;
    font-size: 13px;
    font-weight: 700;
}

.tms-list-panel-subtitle {
    margin-top: 3px;
    color: #66778e;
    font-size: 10px;
}

.tms-list-count {
    min-width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 9px;
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   DARK DATAGRID
   ========================================================= */

.tms-dark-grid {
    background: transparent !important;
    color: #cbd5e1 !important;
}

    .tms-dark-grid .mud-table-root {
        background: transparent !important;
    }

    .tms-dark-grid .mud-table-container {
        background: transparent !important;
    }

    .tms-dark-grid .mud-table-head {
        background: rgba(5, 12, 23, 0.50) !important;
    }

        .tms-dark-grid .mud-table-head .mud-table-cell {
            height: 43px !important;
            padding: 0 14px !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.09) !important;
            color: #718198 !important;
            font-size: 9px !important;
            font-weight: 700 !important;
            letter-spacing: 0.55px;
            text-transform: uppercase;
        }

    .tms-dark-grid .mud-table-body {
        background: transparent !important;
    }

    .tms-dark-grid .mud-table-row {
        background: transparent !important;
        transition: background 0.15s ease;
    }

        .tms-dark-grid .mud-table-row:hover {
            background: rgba(59, 130, 246, 0.045) !important;
        }

    .tms-dark-grid .mud-table-body .mud-table-cell {
        height: 50px !important;
        padding: 0 14px !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.055) !important;
        color: #c5d0df !important;
        font-size: 11px !important;
    }

    .tms-dark-grid .mud-table-row:last-child .mud-table-cell {
        border-bottom: none !important;
    }

    .tms-dark-grid .mud-icon-root {
        color: #718198;
    }

    .tms-dark-grid .mud-table-sort-label {
        color: #718198 !important;
    }

        .tms-dark-grid .mud-table-sort-label:hover {
            color: #cbd5e1 !important;
        }

    .tms-dark-grid .mud-table-sort-label-icon {
        color: #64748b !important;
    }

    .tms-dark-grid .mud-input {
        color: #dbe4ef !important;
    }

    .tms-dark-grid .mud-input-label {
        color: #718198 !important;
    }


/* =========================================================
   GEMEINSAME TEXTE
   ========================================================= */

.tms-muted {
    color: #65758b;
}

.tms-cell-strong {
    color: #e5edf7;
    font-weight: 650;
}


/* =========================================================
   FAHRER NACHRICHT
   ========================================================= */

.driver-message-panel {
    width: 100%;
    max-width: 850px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    border-radius: 14px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, 0.98), rgba(8, 16, 29, 0.98) ) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
}

.driver-message-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 17px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(5, 12, 23, 0.20);
}

.driver-message-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.10);
    color: #60a5fa;
}

    .driver-message-icon .mud-icon-root {
        color: #60a5fa !important;
        font-size: 18px !important;
    }

.driver-message-title {
    color: #e8eef7;
    font-size: 13px;
    font-weight: 700;
}

.driver-message-subtitle {
    margin-top: 3px;
    color: #66778e;
    font-size: 10px;
}

.driver-message-content {
    padding: 18px;
}

.driver-message-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}


/* =========================================================
   DARK INPUTS
   ========================================================= */

.tms-dark-input .mud-input-control {
    margin: 0 !important;
}

.tms-dark-input .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

.tms-dark-input:hover .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.28) !important;
}

.tms-dark-input .mud-input {
    color: #e2e8f0 !important;
}

.tms-dark-input .mud-input-label {
    color: #718198 !important;
}

.tms-dark-input .mud-icon-root {
    color: #718198 !important;
}

.tms-dark-input textarea {
    color: #e2e8f0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 650px) {

    .tms-page-header {
        align-items: stretch;
        flex-direction: column;
    }

        .tms-page-header .mud-button-root {
            width: 100%;
        }

    .driver-message-panel {
        max-width: none;
    }

    .driver-message-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .driver-message-actions .mud-button-root {
            width: 100%;
        }
}

/* =========================================================
   TOUREN
   ========================================================= */

.tms-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   TOUREN KENNZAHLEN
   ========================================================= */

.tour-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.tour-stat-card {
    min-width: 0;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px !important;
    border: 1px solid rgba(148, 163, 184, 0.09) !important;
    border-radius: 13px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, 0.96), rgba(9, 17, 30, 0.98) ) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.15) !important;
}

.tour-stat-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.09);
}

    .tour-stat-icon .mud-icon-root {
        color: #60a5fa !important;
        font-size: 19px !important;
    }

.tour-stat-content {
    min-width: 0;
}

.tour-stat-value {
    color: #f1f5f9;
    font-size: 21px;
    font-weight: 750;
    line-height: 1;
}

.tour-stat-label {
    margin-top: 6px;
    color: #718198;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   TOUREN FILTER
   ========================================================= */

.tour-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 210px 42px;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(5, 12, 23, 0.18);
}

.tour-filter-search,
.tour-filter-status {
    min-width: 0;
}

.tour-filter-bar .mud-input-control {
    margin: 0 !important;
}

.tour-filter-bar .mud-input-outlined {
    min-height: 40px !important;
}

.tour-filter-reset {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(148, 163, 184, 0.12) !important;
    border-radius: 9px !important;
    color: #718198 !important;
}

    .tour-filter-reset:hover {
        background: rgba(59, 130, 246, 0.08) !important;
        color: #93c5fd !important;
    }


/* =========================================================
   TOUREN TABELLE
   ========================================================= */

.tour-vehicle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d8e2ef;
}

    .tour-vehicle .mud-icon-root {
        color: #64748b !important;
        font-size: 15px !important;
    }

.tour-stop-count {
    min-width: 25px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 7px;
    background: rgba(148, 163, 184, 0.045);
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
}

.tms-row-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .tms-row-actions .mud-icon-button {
        width: 31px !important;
        height: 31px !important;
    }


/* =========================================================
   LEERZUSTAND
   ========================================================= */

.tour-empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.tour-empty-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 13px;
    background: rgba(59, 130, 246, 0.08);
}

    .tour-empty-icon .mud-icon-root {
        color: #60a5fa !important;
        font-size: 23px !important;
    }

.tour-empty-title {
    color: #dbe4ef;
    font-size: 13px;
    font-weight: 700;
}

.tour-empty-text {
    max-width: 380px;
    margin-top: 5px;
    color: #65758b;
    font-size: 11px;
    line-height: 1.55;
}


/* =========================================================
   TOUREN RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .tour-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 760px) {

    .tms-page-actions {
        width: 100%;
    }

        .tms-page-actions .mud-button-root {
            flex: 1;
        }

    .tour-filter-bar {
        grid-template-columns: 1fr;
    }

    .tour-filter-reset {
        width: 100% !important;
    }
}


@media (max-width: 520px) {

    .tour-stat-grid {
        grid-template-columns: 1fr;
    }

    .tms-page-actions {
        flex-direction: column-reverse;
    }

        .tms-page-actions .mud-button-root {
            width: 100%;
        }
}

/* =========================================================
   LIVEKARTE
   ========================================================= */

.live-map-page {
    padding-bottom: 40px;
}


/* =========================================================
   LIVE STATUS
   ========================================================= */

.live-map-status {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 9px;
    background: rgba(34, 197, 94, 0.055);
    color: #86efac;
    font-size: 10px;
    font-weight: 700;
}

.live-map-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, .55);
}

.live-map-status-divider {
    color: #475569;
}

.live-map-status-count {
    color: #718198;
    font-weight: 600;
}

.live-map-progress {
    margin-bottom: 15px;
}


/* =========================================================
   LIVE KPI
   ========================================================= */

.live-map-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 17px;
}

.live-map-stat-card {
    min-height: 75px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px !important;
    border: 1px solid rgba(148, 163, 184, .09) !important;
    border-radius: 13px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, .96), rgba(9, 17, 30, .98) ) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .14) !important;
}

.live-map-stat-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, .09);
}

    .live-map-stat-icon .mud-icon-root {
        color: #60a5fa !important;
        font-size: 18px !important;
    }

    .live-map-stat-icon.gps {
        background: rgba(34, 197, 94, .08);
    }

        .live-map-stat-icon.gps .mud-icon-root {
            color: #4ade80 !important;
        }

    .live-map-stat-icon.route {
        background: rgba(168, 85, 247, .08);
    }

        .live-map-stat-icon.route .mud-icon-root {
            color: #c084fc !important;
        }

    .live-map-stat-icon.moving {
        background: rgba(245, 158, 11, .08);
    }

        .live-map-stat-icon.moving .mud-icon-root {
            color: #fbbf24 !important;
        }

.live-map-stat-value {
    color: #f1f5f9;
    font-size: 20px;
    font-weight: 750;
    line-height: 1;
}

.live-map-stat-label {
    margin-top: 6px;
    color: #718198;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   KARTEN PANEL
   ========================================================= */

.live-map-panel {
    overflow: hidden;
    margin-bottom: 17px;
    border: 1px solid rgba(148, 163, 184, .10) !important;
    border-radius: 14px !important;
    background: #09111f !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18) !important;
}

.live-map-panel-header {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
    background: linear-gradient( 180deg, rgba(14, 25, 43, .98), rgba(10, 18, 32, .98) );
}

.live-map-panel-title {
    color: #e8eef7;
    font-size: 13px;
    font-weight: 700;
}

.live-map-panel-subtitle {
    margin-top: 3px;
    color: #66778e;
    font-size: 10px;
}


/* =========================================================
   LEGENDE
   ========================================================= */

.live-map-legend {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718198;
    font-size: 9px;
    font-weight: 600;
}

.live-map-legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 7px rgba(59, 130, 246, .5);
}

.live-map-legend-line {
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #3b82f6;
}


/* =========================================================
   LEAFLET KARTE
   ========================================================= */

.live-map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #08101c;
}

#tmsMap {
    width: 100%;
    height: 100%;
    min-height: 500px;
}


    /* Leaflet Controls */

    #tmsMap .leaflet-control-zoom {
        overflow: hidden;
        border: 1px solid rgba(148, 163, 184, .15) !important;
        border-radius: 9px !important;
        box-shadow: 0 5px 18px rgba(0, 0, 0, .25) !important;
    }

        #tmsMap .leaflet-control-zoom a {
            width: 32px !important;
            height: 32px !important;
            line-height: 32px !important;
            border-bottom-color: rgba(148, 163, 184, .10) !important;
            background: rgba(9, 17, 31, .96) !important;
            color: #cbd5e1 !important;
        }

            #tmsMap .leaflet-control-zoom a:hover {
                background: #111e33 !important;
                color: #60a5fa !important;
            }

    #tmsMap .leaflet-control-attribution {
        background: rgba(5, 11, 22, .82) !important;
        color: #64748b !important;
        font-size: 8px !important;
    }

        #tmsMap .leaflet-control-attribution a {
            color: #60a5fa !important;
        }


    /* =========================================================
   LEAFLET POPUP
   ========================================================= */

    #tmsMap .leaflet-popup-content-wrapper {
        border: 1px solid rgba(148, 163, 184, .13);
        border-radius: 11px;
        background: #0d1829;
        color: #dbe4ef;
        box-shadow: 0 12px 35px rgba(0, 0, 0, .38);
    }

    #tmsMap .leaflet-popup-tip {
        background: #0d1829;
    }

    #tmsMap .leaflet-popup-content {
        margin: 13px 15px;
        color: #cbd5e1;
        font-family: inherit;
        font-size: 10px;
        line-height: 1.55;
    }

        #tmsMap .leaflet-popup-content pre {
            margin: 0 !important;
            color: #cbd5e1 !important;
            font-family: inherit !important;
            font-size: 10px !important;
            white-space: pre-line;
        }

    #tmsMap .leaflet-popup-close-button {
        color: #64748b !important;
    }


/* =========================================================
   FAHRZEUGLISTE
   ========================================================= */

.live-vehicle-panel {
    margin-top: 0;
}

.live-vehicle-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-vehicle-gps-summary {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #718198;
    font-size: 9px;
    font-weight: 600;
}

    .live-vehicle-gps-summary .mud-icon-root {
        color: #4ade80 !important;
        font-size: 14px !important;
    }


/* =========================================================
   DARK MUD TABLE
   ========================================================= */

.tms-dark-table {
    background: transparent !important;
    color: #cbd5e1 !important;
}

    .tms-dark-table .mud-table-container {
        background: transparent !important;
    }

    .tms-dark-table .mud-table-head {
        background: rgba(5, 12, 23, .48) !important;
    }

        .tms-dark-table .mud-table-head .mud-table-cell {
            height: 42px !important;
            padding: 0 13px !important;
            border-bottom: 1px solid rgba(148, 163, 184, .08) !important;
            color: #718198 !important;
            font-size: 8.5px !important;
            font-weight: 700 !important;
            letter-spacing: .5px;
            text-transform: uppercase;
        }

    .tms-dark-table .mud-table-body .mud-table-row {
        background: transparent !important;
        transition: background .15s ease;
    }

        .tms-dark-table .mud-table-body .mud-table-row:hover {
            background: rgba(59, 130, 246, .04) !important;
        }

    .tms-dark-table .mud-table-body .mud-table-cell {
        min-height: 50px !important;
        padding: 9px 13px !important;
        border-bottom: 1px solid rgba(148, 163, 184, .055) !important;
        color: #c5d0df !important;
        font-size: 10.5px !important;
    }


/* =========================================================
   FAHRZEUG
   ========================================================= */

.live-vehicle-name {
    display: flex;
    align-items: center;
    gap: 9px;
}

.live-vehicle-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(59, 130, 246, .08);
}

    .live-vehicle-icon .mud-icon-root {
        color: #60a5fa !important;
        font-size: 15px !important;
    }

.live-vehicle-plate {
    color: #e5edf7;
    font-size: 10.5px;
    font-weight: 700;
}

.live-vehicle-number {
    margin-top: 2px;
    color: #64748b;
    font-size: 8.5px;
}


/* =========================================================
   TOUR / STOPP
   ========================================================= */

.live-tour-number {
    color: #93c5fd;
    font-weight: 650;
}

.live-stop-number {
    min-width: 23px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 6px;
    background: rgba(148, 163, 184, .04);
    color: #cbd5e1;
    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   ORT
   ========================================================= */

.live-next-city {
    color: #d7e0ec;
    font-size: 10.5px;
}

.live-next-company {
    margin-top: 2px;
    color: #64748b;
    font-size: 8.5px;
}


/* =========================================================
   GPS STATUS
   ========================================================= */

.live-gps-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 650;
}

.live-gps-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.live-gps-state.online {
    color: #86efac;
}

    .live-gps-state.online .live-gps-dot {
        background: #22c55e;
        box-shadow: 0 0 7px rgba(34, 197, 94, .45);
    }

.live-gps-state.offline {
    color: #64748b;
}

    .live-gps-state.offline .live-gps-dot {
        background: #475569;
    }


/* =========================================================
   UPDATE
   ========================================================= */

.live-update-time {
    color: #aebccc;
    font-size: 9.5px;
}

.live-update-clock {
    margin-top: 2px;
    color: #64748b;
    font-size: 8.5px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.live-map-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
}

.live-map-empty-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 11px;
    background: rgba(59, 130, 246, .08);
}

    .live-map-empty-icon .mud-icon-root {
        color: #60a5fa !important;
    }

.live-map-empty-title {
    color: #dbe4ef;
    font-size: 12px;
    font-weight: 700;
}

.live-map-empty-text {
    max-width: 350px;
    margin-top: 4px;
    color: #64748b;
    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .live-map-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .live-map-status {
        align-self: flex-start;
    }

    .live-map-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-map-container,
    #tmsMap {
        height: 420px;
        min-height: 420px;
    }
}

@media (max-width: 500px) {

    .live-map-stat-grid {
        grid-template-columns: 1fr;
    }

    .live-map-legend {
        flex-wrap: wrap;
    }

    .live-map-container,
    #tmsMap {
        height: 360px;
        min-height: 360px;
    }
}

/* =========================================================
   TOUR FORMULAR
   ========================================================= */

.tour-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 16px;
    align-items: start;
}

.tour-form-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.tour-form-sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.tms-form-panel {
    overflow: visible;
    border: 1px solid rgba(148, 163, 184, .09) !important;
    border-radius: 13px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, .96), rgba(9, 17, 30, .98) ) !important;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .14) !important;
}

.tms-form-panel-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .07);
}

.tms-form-section-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(59, 130, 246, .08);
}

    .tms-form-section-icon .mud-icon-root {
        color: #60a5fa !important;
        font-size: 17px !important;
    }

.tms-form-panel-title {
    color: #e5edf7;
    font-size: 12px;
    font-weight: 700;
}

.tms-form-panel-subtitle {
    margin-top: 3px;
    color: #65758b;
    font-size: 9.5px;
}

.tms-form-panel-body {
    padding: 17px 16px 18px;
}


/* =========================================================
   DARK INPUTS
   ========================================================= */

.tms-dark-input {
    width: 100%;
}

    .tms-dark-input .mud-input-control {
        width: 100%;
    }

    .tms-dark-input .mud-input {
        color: #dbe4ef !important;
    }

    .tms-dark-input input,
    .tms-dark-input textarea {
        color: #dbe4ef !important;
    }

        .tms-dark-input input::placeholder,
        .tms-dark-input textarea::placeholder {
            color: #4f6075 !important;
            opacity: 1;
        }

    .tms-dark-input .mud-input-label {
        color: #718198 !important;
    }

    .tms-dark-input .mud-input-adornment {
        color: #64748b !important;
    }

        .tms-dark-input .mud-input-adornment .mud-icon-root {
            color: #64748b !important;
        }


    /* =========================================================
   OUTLINED INPUT BORDER
   ========================================================= */

    .tms-dark-input .mud-input-outlined-border {
        border-color: rgba(148, 163, 184, .14) !important;
    }

    .tms-dark-input:hover .mud-input-outlined-border {
        border-color: rgba(96, 165, 250, .32) !important;
    }

    .tms-dark-input
    .mud-input-outlined.mud-input-focused
    .mud-input-outlined-border {
        border-color: #3b82f6 !important;
    }


/* =========================================================
   TOUR SUMMARY
   ========================================================= */

.tour-form-summary {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .09) !important;
    border-radius: 13px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, .96), rgba(9, 17, 30, .98) ) !important;
    box-shadow: 0 7px 24px rgba(0, 0, 0, .14) !important;
}

.tour-form-summary-header {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .07);
    color: #dbe4ef;
    font-size: 11px;
    font-weight: 700;
}

    .tour-form-summary-header .mud-icon-root {
        color: #60a5fa !important;
    }

.tour-form-summary-body {
    padding: 8px 14px 14px;
}

.tour-summary-row {
    min-height: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .055);
}

.tour-summary-label {
    color: #65758b;
    font-size: 9.5px;
}

.tour-summary-value {
    overflow: hidden;
    color: #cbd5e1;
    font-size: 9.5px;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tour-summary-divider {
    height: 1px;
    margin: 10px 0 13px;
    background: rgba(148, 163, 184, .07);
}


/* =========================================================
   SUMMARY METRICS
   ========================================================= */

.tour-summary-metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tour-summary-metric {
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, .07);
    border-radius: 9px;
    background: rgba(148, 163, 184, .025);
    text-align: center;
}

.tour-summary-metric-value {
    color: #e5edf7;
    font-size: 15px;
    font-weight: 750;
}

.tour-summary-metric-label {
    margin-top: 3px;
    color: #5f7086;
    font-size: 8px;
}


/* =========================================================
   INFO PANEL
   ========================================================= */

.tour-form-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px !important;
    border: 1px solid rgba(59, 130, 246, .11) !important;
    border-radius: 12px !important;
    background: rgba(59, 130, 246, .035) !important;
    box-shadow: none !important;
}

.tour-form-info-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(59, 130, 246, .08);
}

    .tour-form-info-icon .mud-icon-root {
        color: #60a5fa !important;
    }

.tour-form-info-title {
    color: #b9c9dc;
    font-size: 10px;
    font-weight: 700;
}

.tour-form-info-text {
    margin-top: 4px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.55;
}


/* =========================================================
   ACTION BAR
   ========================================================= */

.tour-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid rgba(148, 163, 184, .07);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .tour-form-layout {
        grid-template-columns: 1fr;
    }

    .tour-form-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {

    .tour-form-sidebar {
        display: flex;
    }

    .tour-form-actions {
        flex-direction: column-reverse;
    }

        .tour-form-actions .mud-button-root {
            width: 100%;
        }
}

/* =========================================================
   BENUTZERVERWALTUNG
   ========================================================= */

.user-page {
    padding-bottom: 40px;
}


/* =========================================================
   HEADER
   ========================================================= */

.user-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.user-page-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-page-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid rgba(139, 92, 246, .18);
    background: rgba(139, 92, 246, .09);
}

    .user-page-icon .mud-icon-root {
        color: #a78bfa !important;
        font-size: 24px !important;
    }

.user-page-title {
    margin: 0 !important;
    font-weight: 700 !important;
    letter-spacing: -.4px;
}

.user-page-subtitle {
    margin-top: 3px !important;
    color: #718198 !important;
}

.user-new-button {
    min-height: 40px;
    border-radius: 9px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}


/* =========================================================
   KPI / STATISTIK
   ========================================================= */

.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 17px;
}

.user-stat-card {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px !important;
    border: 1px solid rgba(148, 163, 184, .09) !important;
    border-radius: 13px !important;
    background: linear-gradient( 180deg, rgba(14, 25, 43, .96), rgba(9, 17, 30, .98) ) !important;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .14) !important;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .user-stat-card:hover {
        transform: translateY(-1px);
        border-color: rgba(148, 163, 184, .16) !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, .18) !important;
    }

.user-stat-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
}

    .user-stat-icon .mud-icon-root {
        font-size: 21px !important;
    }

.user-stat-icon-blue {
    background: rgba(59, 130, 246, .09);
}

    .user-stat-icon-blue .mud-icon-root {
        color: #60a5fa !important;
    }

.user-stat-icon-green {
    background: rgba(34, 197, 94, .09);
}

    .user-stat-icon-green .mud-icon-root {
        color: #4ade80 !important;
    }

.user-stat-icon-purple {
    background: rgba(139, 92, 246, .10);
}

    .user-stat-icon-purple .mud-icon-root {
        color: #a78bfa !important;
    }

.user-stat-icon-orange {
    background: rgba(245, 158, 11, .09);
}

    .user-stat-icon-orange .mud-icon-root {
        color: #fbbf24 !important;
    }

.user-stat-content {
    min-width: 0;
}

.user-stat-value {
    color: #f8fafc;
    font-size: 23px;
    line-height: 1.05;
    font-weight: 750;
    letter-spacing: -.4px;
}

.user-stat-label {
    margin-top: 5px;
    color: #718198;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   HAUPTPANEL
   ========================================================= */

.user-panel {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .09) !important;
    border-radius: 14px !important;
    background: linear-gradient( 180deg, rgba(13, 23, 40, .98), rgba(8, 16, 29, .99) ) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .15) !important;
}


/* =========================================================
   PANEL HEADER
   ========================================================= */

.user-panel-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
}

.user-panel-title {
    font-size: 15px !important;
    font-weight: 700 !important;
}

.user-panel-subtitle {
    margin-top: 2px !important;
    color: #64748b !important;
    font-size: 11px !important;
}

.user-panel-status {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    border: 1px solid rgba(34, 197, 94, .14);
    border-radius: 8px;
    background: rgba(34, 197, 94, .055);
    color: #86efac;
    font-size: 10px;
    font-weight: 700;
}

.user-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, .55);
}


/* =========================================================
   FILTER
   ========================================================= */

.user-filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 180px 160px 42px;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .08);
    background: rgba(6, 13, 24, .30);
}

.user-filter-search,
.user-filter-select {
    min-width: 0;
}

.user-filter-bar .mud-input-control {
    margin: 0 !important;
}

.user-filter-bar .mud-input-outlined {
    border-radius: 8px !important;
}

.user-filter-bar .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, .13) !important;
}

.user-filter-bar .mud-input-root:hover
.mud-input-outlined-border {
    border-color: rgba(148, 163, 184, .25) !important;
}

.user-filter-bar .mud-input-root.mud-input-root-focused
.mud-input-outlined-border {
    border-color: #8b5cf6 !important;
}

.user-filter-reset {
    width: 40px !important;
    height: 40px !important;
    border: 1px solid rgba(148, 163, 184, .13) !important;
    border-radius: 8px !important;
}


/* =========================================================
   DATAGRID
   ========================================================= */

.user-table-wrapper {
    width: 100%;
    overflow: hidden;
}

.user-data-grid {
    background: transparent !important;
}

    .user-data-grid .mud-table-container {
        background: transparent !important;
    }

    .user-data-grid table {
        background: transparent !important;
    }

    .user-data-grid .mud-table-head {
        background: rgba(5, 12, 22, .72) !important;
    }

        .user-data-grid .mud-table-head .mud-table-cell {
            height: 42px;
            color: #718198 !important;
            font-size: 10px !important;
            font-weight: 700 !important;
            letter-spacing: .35px;
            text-transform: uppercase;
            border-bottom: 1px solid rgba(148, 163, 184, .09) !important;
        }

    .user-data-grid .mud-table-body .mud-table-row {
        transition: background-color .15s ease;
    }

        .user-data-grid .mud-table-body .mud-table-row:hover {
            background: rgba(139, 92, 246, .035) !important;
        }

    .user-data-grid .mud-table-body .mud-table-cell {
        height: 61px;
        border-bottom: 1px solid rgba(148, 163, 184, .055) !important;
        color: #cbd5e1;
        font-size: 12px;
    }


/* =========================================================
   BENUTZER
   ========================================================= */

.user-person {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    flex: 0 0 auto;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.user-person-data {
    min-width: 0;
}

.user-person-name {
    color: #e5e7eb !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    white-space: nowrap;
}

.user-person-username {
    display: block;
    margin-top: 1px !important;
    color: #64748b !important;
    font-size: 10px !important;
}


/* =========================================================
   EMAIL
   ========================================================= */

.user-email {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #94a3b8;
    font-size: 11px;
}

    .user-email .mud-icon-root {
        color: #526177 !important;
        font-size: 15px !important;
    }


/* =========================================================
   ROLLE
   ========================================================= */

.user-role-chip {
    height: 24px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
}


/* =========================================================
   FAHRERZUORDNUNG
   ========================================================= */

.user-driver-name {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
}

.user-driver-number {
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
}

.user-driver-warning {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fbbf24;
    font-size: 10px;
    font-weight: 600;
}

    .user-driver-warning .mud-icon-root {
        color: #fbbf24 !important;
        font-size: 14px !important;
    }


/* =========================================================
   LETZTER LOGIN
   ========================================================= */

.user-login-date {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
}

.user-login-time {
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
}

.user-never-login {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 10px;
}

    .user-never-login .mud-icon-root {
        color: #526177 !important;
        font-size: 14px !important;
    }


/* =========================================================
   STATUS
   ========================================================= */

.user-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
}

.user-status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.user-status-active {
    border: 1px solid rgba(34, 197, 94, .14);
    background: rgba(34, 197, 94, .06);
    color: #86efac;
}

    .user-status-active .user-status-indicator {
        background: #22c55e;
        box-shadow: 0 0 6px rgba(34, 197, 94, .45);
    }

.user-status-inactive {
    border: 1px solid rgba(239, 68, 68, .14);
    background: rgba(239, 68, 68, .055);
    color: #fca5a5;
}

    .user-status-inactive .user-status-indicator {
        background: #ef4444;
    }


/* =========================================================
   AKTIONEN
   ========================================================= */

.user-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.user-action-button {
    width: 31px !important;
    height: 31px !important;
    border-radius: 7px !important;
    transition: background-color .15s ease, transform .15s ease;
}

    .user-action-button:hover {
        transform: translateY(-1px);
        background: rgba(148, 163, 184, .07) !important;
    }


/* =========================================================
   LEERER ZUSTAND
   ========================================================= */

.user-empty-state {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.user-empty-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 14px;
    background: rgba(139, 92, 246, .07);
    border: 1px solid rgba(139, 92, 246, .12);
}

    .user-empty-icon .mud-icon-root {
        color: #8b5cf6 !important;
        font-size: 25px !important;
    }

.user-muted {
    color: #64748b !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .user-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-filter-bar {
        grid-template-columns: minmax(250px, 1fr) 160px 150px 42px;
    }
}


@media (max-width: 900px) {

    .user-page-header {
        align-items: flex-start;
    }

    .user-filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .user-filter-search {
        grid-column: 1 / -1;
    }

    .user-filter-reset {
        width: 100% !important;
    }
}


@media (max-width: 700px) {

    .user-page-header {
        flex-direction: column;
    }

    .user-new-button {
        width: 100%;
    }

    .user-stat-grid {
        grid-template-columns: 1fr;
    }

    .user-panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .user-filter-bar {
        grid-template-columns: 1fr;
    }

    .user-filter-search {
        grid-column: auto;
    }

    .user-filter-reset {
        width: 100% !important;
    }
}


@media (max-width: 520px) {

    .user-page-heading {
        align-items: flex-start;
    }

    .user-page-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .user-page-title {
        font-size: 23px !important;
    }

    .user-stat-card {
        min-height: 72px;
    }
}

/* =========================================================
   BENUTZER - FORMULARSEITEN
   Neuer Benutzer / später Benutzer bearbeiten
========================================================= */

.user-form-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 30px 40px;
}


/* =========================================================
   HEADER
========================================================= */

.user-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.user-page-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-page-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 92, 255, 0.28);
    border-radius: 11px;
    background: rgba(98, 72, 220, 0.15);
    color: #a88cff;
}

    .user-page-icon .mud-icon-root {
        font-size: 22px;
    }

.user-page-title {
    margin: 0 !important;
    color: #f7f9ff !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px;
}

.user-page-subtitle {
    margin-top: 4px !important;
    color: #7185a6 !important;
    font-size: 13px !important;
}

.user-form-back-button {
    height: 38px;
    padding: 0 18px !important;
    border-color: #30415b !important;
    border-radius: 7px !important;
    color: #dbe5f5 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}


/* =========================================================
   FEHLERMELDUNG
========================================================= */

.user-form-error {
    margin-bottom: 20px !important;
    border-radius: 8px !important;
}


/* =========================================================
   HAUPTLAYOUT
========================================================= */

.user-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(310px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.user-form-main,
.user-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}


/* =========================================================
   CARDS
========================================================= */

.user-form-card {
    overflow: hidden;
    background: #0d192c !important;
    border: 1px solid #1c2b42;
    border-radius: 11px !important;
    box-shadow: none !important;
}

.user-form-card-header {
    min-height: 72px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #101e33;
    border-bottom: 1px solid #1b2a41;
}

.user-form-card-content {
    padding: 20px;
}

.user-form-card-title {
    margin: 0 !important;
    color: #f1f5fc !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.user-form-card-subtitle {
    margin-top: 3px !important;
    color: #6e82a2 !important;
    font-size: 11px !important;
}


/* =========================================================
   SECTION ICONS
========================================================= */

.user-form-section-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

    .user-form-section-icon .mud-icon-root {
        font-size: 19px;
    }

.user-form-icon-blue {
    background: rgba(47, 128, 237, 0.13);
    color: #58a2ff;
}

.user-form-icon-purple {
    background: rgba(113, 79, 230, 0.15);
    color: #a58aff;
}

.user-form-icon-green {
    background: rgba(0, 196, 140, 0.12);
    color: #1bdba2;
}

.user-form-icon-orange {
    background: rgba(232, 166, 28, 0.13);
    color: #ffc241;
}


/* =========================================================
   MUDBLAZOR INPUTS
========================================================= */

.user-form-page .mud-input-control {
    margin-top: 0;
}

.user-form-page .mud-input-control-input-container {
    background: transparent;
}

.user-form-page .mud-input-outlined {
    color: #e7edf8 !important;
}

.user-form-page .mud-input-outlined-border {
    border-color: #2a3a53 !important;
}

.user-form-page .mud-input-root:hover
.mud-input-outlined-border {
    border-color: #435b7d !important;
}

.user-form-page
.mud-input-control.mud-input-control-margin-dense
.mud-input-outlined-with-label {
    margin-top: 0;
}

.user-form-page .mud-input-slot {
    color: #e5ebf6 !important;
    font-size: 13px !important;
}

.user-form-page input {
    color: #e5ebf6 !important;
}

    .user-form-page input::placeholder {
        color: #566b8a !important;
        opacity: 1;
    }

.user-form-page .mud-input-label {
    color: #7589a8 !important;
    font-size: 12px !important;
}

.user-form-page
.mud-input-control.mud-input-focused
.mud-input-label {
    color: #7d8cff !important;
}

.user-form-page
.mud-input-control.mud-input-focused
.mud-input-outlined-border {
    border-color: #6658e8 !important;
}

.user-form-page .mud-input-adornment {
    color: #6f84a4 !important;
}

    .user-form-page .mud-input-adornment .mud-icon-root {
        font-size: 19px;
    }


/* =========================================================
   SELECT
========================================================= */

.user-form-page .mud-select {
    color: #e7edf8 !important;
}

.user-form-page .mud-select-input {
    color: #e7edf8 !important;
}


/* =========================================================
   PASSWORT HINWEIS
========================================================= */

.user-password-info,
.user-driver-info {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: #657b9d;
    font-size: 11px;
}

    .user-password-info .mud-icon-root,
    .user-driver-info .mud-icon-root {
        color: #526d94;
        font-size: 16px;
    }


/* =========================================================
   ROLLENBESCHREIBUNG
========================================================= */

.user-role-description {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 16px;
    padding: 13px;
    background: #0a1627;
    border: 1px solid #1a2a42;
    border-radius: 8px;
}

.user-role-description-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 82, 226, 0.14);
    border-radius: 8px;
    color: #9884ff;
}

    .user-role-description-icon .mud-icon-root {
        font-size: 18px;
    }

.user-role-description-title {
    margin-bottom: 3px;
    color: #dce5f4;
    font-size: 12px;
    font-weight: 700;
}

.user-role-description-text {
    color: #697e9e;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   KONTOSTATUS
========================================================= */

.user-active-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.user-active-title {
    color: #e5ebf6;
    font-size: 13px;
    font-weight: 700;
}

.user-active-description {
    margin-top: 3px;
    color: #667b9c;
    font-size: 11px;
    line-height: 1.4;
}

.user-account-state {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.user-account-state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.user-account-state-active {
    background: rgba(0, 196, 140, 0.07);
    border: 1px solid rgba(0, 196, 140, 0.15);
    color: #58d9b0;
}

    .user-account-state-active
    .user-account-state-dot {
        background: #00d99a;
    }

.user-account-state-inactive {
    background: rgba(255, 75, 75, 0.07);
    border: 1px solid rgba(255, 75, 75, 0.15);
    color: #ef8585;
}

    .user-account-state-inactive
    .user-account-state-dot {
        background: #ff5252;
    }


/* =========================================================
   HINWEIS CARD
========================================================= */

.user-form-hint {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px !important;
    background: rgba(52, 112, 201, 0.06) !important;
    border: 1px solid rgba(76, 134, 220, 0.15);
    border-radius: 9px !important;
    box-shadow: none !important;
}

    .user-form-hint > .mud-icon-root {
        margin-top: 1px;
        color: #5f91db;
        font-size: 19px;
    }

.user-form-hint-title {
    color: #a8b9d1;
    font-size: 11px;
    font-weight: 700;
}

.user-form-hint-text {
    margin-top: 3px;
    color: #607594;
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   ACTION BAR
========================================================= */

.user-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding: 14px 16px !important;
    background: #0d192c !important;
    border: 1px solid #1c2b42;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.user-form-actions-info {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #647998;
    font-size: 11px;
}

    .user-form-actions-info .mud-icon-root {
        color: #59749b;
    }

.user-form-actions-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-form-cancel-button {
    min-width: 110px;
    border-color: #30415b !important;
    border-radius: 6px !important;
    color: #aab9ce !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.user-form-save-button {
    min-width: 165px;
    background: linear-gradient( 135deg, #654ce6 0%, #714fe8 100% ) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 18px rgba(92, 68, 220, 0.18) !important;
}

    .user-form-save-button:hover {
        background: linear-gradient( 135deg, #7058ec 0%, #7c5af0 100% ) !important;
    }


/* =========================================================
   SWITCH
========================================================= */

.user-form-page .mud-switch {
    margin-right: -7px;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {

    .user-form-layout {
        grid-template-columns: 1fr;
    }

    .user-form-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-form-hint {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {

    .user-form-page {
        padding: 18px 14px 30px;
    }

    .user-form-header {
        align-items: flex-start;
    }

    .user-page-title {
        font-size: 24px !important;
    }

    .user-page-icon {
        width: 38px;
        height: 38px;
    }

    .user-form-sidebar {
        display: flex;
    }

    .user-form-card-content {
        padding: 16px;
    }

    .user-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-form-actions-buttons {
        width: 100%;
    }

    .user-form-cancel-button,
    .user-form-save-button {
        flex: 1;
    }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 480px) {

    .user-form-header {
        flex-direction: column;
    }

    .user-form-back-button {
        width: 100%;
    }

    .user-form-actions-buttons {
        flex-direction: column-reverse;
    }

    .user-form-cancel-button,
    .user-form-save-button {
        width: 100%;
    }
}

/* =========================================================
   BENUTZER BEARBEITEN - LOADING
========================================================= */

.user-form-loading {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #7185a6;
}


/* =========================================================
   KONTOINFORMATIONEN
========================================================= */

.user-account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.user-account-info-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    background: #0a1627;
    border: 1px solid #1a2a42;
    border-radius: 8px;
}

.user-account-info-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(100, 82, 226, .11);
    color: #8f80ed;
}

    .user-account-info-icon .mud-icon-root {
        font-size: 18px;
    }

.user-account-info-content {
    min-width: 0;
}

.user-account-info-label {
    margin-bottom: 3px;
    color: #667b9c;
    font-size: 10px;
    font-weight: 600;
}

.user-account-info-value {
    color: #dce5f4;
    font-size: 11px;
    font-weight: 600;
}

.user-account-info-empty {
    color: #637694;
    font-weight: 500;
}

.user-account-info-id {
    grid-column: 1 / -1;
}

.user-account-id-value {
    overflow: hidden;
    color: #8293ac;
    font-family: monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   PASSWORT CARD
========================================================= */

.user-password-card-text {
    margin-bottom: 14px !important;
    color: #697e9e !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
}

.user-password-button {
    min-height: 37px;
    border-color: #30415b !important;
    border-radius: 7px !important;
    color: #b8c5d8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .user-account-info-grid {
        grid-template-columns: 1fr;
    }

    .user-account-info-id {
        grid-column: auto;
    }
}

/* =========================================================
   FAHRER FORMULAR - NEU / BEARBEITEN
========================================================= */

.fahrer-form-page {
    width: 100%;
    max-width: none;
    padding: 28px 32px 36px 32px !important;
    background: transparent !important;
    color: #f3f6fb !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


    /* =========================================================
   SEITENTITEL
========================================================= */

    .fahrer-form-page .mud-typography-h4 {
        margin: 0;
        color: #ffffff !important;
        font-size: 30px !important;
        line-height: 38px !important;
        font-weight: 700 !important;
    }


    /* =========================================================
   BEREICHSÜBERSCHRIFTEN
========================================================= */

    .fahrer-form-page .mud-typography-h6 {
        color: #f4f7fb !important;
        font-size: 17px !important;
        line-height: 24px !important;
        font-weight: 700 !important;
    }


    /* =========================================================
   TRENNLINIEN
========================================================= */

    .fahrer-form-page .mud-divider {
        border-color: #20324b !important;
        opacity: 1 !important;
    }


    /* =========================================================
   FORMULARFELDER
========================================================= */

    .fahrer-form-page .mud-input-control {
        color: #ffffff !important;
    }

    .fahrer-form-page .mud-input-control-input-container {
        background: transparent !important;
    }


    /* Outlined Border */

    .fahrer-form-page .mud-input-outlined-border {
        border-color: #2b405e !important;
        border-width: 1px !important;
        border-radius: 7px !important;
    }


    /* Hover */

    .fahrer-form-page
    .mud-input-control:hover
    .mud-input-outlined-border {
        border-color: #496789 !important;
    }


    /* Fokus */

    .fahrer-form-page
    .mud-input-control.mud-input-control-margin-dense
    .mud-input-outlined:focus-within
    .mud-input-outlined-border,
    .fahrer-form-page
    .mud-input-outlined:focus-within
    .mud-input-outlined-border {
        border-color: #4b8cff !important;
    }


    /* =========================================================
   INPUT HINTERGRUND
========================================================= */

    .fahrer-form-page .mud-input {
        background: #0d1c31 !important;
        color: #ffffff !important;
        border-radius: 7px !important;
    }


    /* =========================================================
   EINGEGEBENER TEXT
========================================================= */

    .fahrer-form-page input,
    .fahrer-form-page textarea {
        color: #ffffff !important;
        font-size: 14px !important;
    }


    /* =========================================================
   LABEL
========================================================= */

    .fahrer-form-page .mud-input-label {
        color: #8fa5c5 !important;
        font-size: 13px !important;
    }

    .fahrer-form-page
    .mud-input-control
    .mud-input-label-inputcontrol {
        color: #8fa5c5 !important;
    }


    /* Fokus Label */

    .fahrer-form-page
    .mud-input-control:focus-within
    .mud-input-label {
        color: #6da5ff !important;
    }


    /* =========================================================
   PLACEHOLDER
========================================================= */

    .fahrer-form-page input::placeholder,
    .fahrer-form-page textarea::placeholder {
        color: #617796 !important;
        opacity: 1 !important;
    }


    /* =========================================================
   DATEPICKER / INPUT ICONS
========================================================= */

    .fahrer-form-page .mud-input-adornment {
        color: #8299ba !important;
    }

        .fahrer-form-page .mud-input-adornment .mud-icon-root {
            color: #8299ba !important;
        }

    .fahrer-form-page .mud-icon-button {
        color: #8299ba;
    }


    /* =========================================================
   DISABLED FELDER
========================================================= */

    .fahrer-form-page .mud-input.mud-disabled {
        background: #0a1728 !important;
        opacity: 0.65;
    }

    .fahrer-form-page .mud-disabled input {
        color: #6d829f !important;
    }


    /* =========================================================
   INFO ALERTS
========================================================= */

    .fahrer-form-page .mud-alert {
        background: rgba(45, 123, 246, 0.07) !important;
        color: #a9c3e8 !important;
        border: 1px solid rgba(65, 139, 255, 0.22) !important;
        border-radius: 7px !important;
        box-shadow: none !important;
    }

        .fahrer-form-page .mud-alert .mud-alert-icon {
            color: #4c92ff !important;
        }

    .fahrer-form-page .mud-alert-message {
        color: #a9c3e8 !important;
    }


    /* =========================================================
   CHECKBOX
========================================================= */

    .fahrer-form-page .mud-checkbox {
        color: #879bb9 !important;
    }

        .fahrer-form-page .mud-checkbox .mud-icon-root {
            color: inherit !important;
        }

        .fahrer-form-page .mud-checkbox span {
            color: #dce5f1;
        }


    /* =========================================================
   BUTTONS
========================================================= */

    .fahrer-form-page .mud-button-filled-primary {
        min-height: 40px;
        padding-left: 18px;
        padding-right: 18px;
        background: #5b43e8 !important;
        color: #ffffff !important;
        border-radius: 6px !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

        .fahrer-form-page .mud-button-filled-primary:hover {
            background: #6952ee !important;
        }


    /* Outlined Buttons */

    .fahrer-form-page .mud-button-outlined {
        min-height: 40px;
        color: #aebdd2 !important;
        border-color: #314865 !important;
        border-radius: 6px !important;
    }

        .fahrer-form-page .mud-button-outlined:hover {
            color: #ffffff !important;
            background: #14253d !important;
            border-color: #496382 !important;
        }


    /* =========================================================
   GRID ABSTÄNDE
========================================================= */

    .fahrer-form-page .mud-grid {
        margin-top: 0 !important;
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 960px) {

    .fahrer-form-page {
        padding: 20px !important;
    }

        .fahrer-form-page .mud-typography-h4 {
            font-size: 26px !important;
        }
}


@media (max-width: 600px) {

    .fahrer-form-page {
        padding: 16px !important;
    }

        .fahrer-form-page .mud-typography-h4 {
            font-size: 23px !important;
        }
}

/* =========================================================
   LARGE DESKTOP / 34" ULTRAWIDE
   Optimierung für 2560px / 3440px / 4K
   ========================================================= */

@media (min-width: 2200px) {

    /* Globale Grundgröße */
    html {
        font-size: 18px;
    }

    /* Seitenabstände */
    .tms-page {
        padding: 28px 32px;
    }

    /* Seitenüberschriften */
    .tms-page-header {
        margin-bottom: 24px;
    }

        .tms-page-header .mud-typography-h4 {
            font-size: 2.1rem !important;
        }

        .tms-page-header .mud-typography-body2 {
            font-size: 0.95rem !important;
        }


    /* =====================================================
       DASHBOARD KPI
       ===================================================== */

    .dashboard-kpi-grid {
        gap: 20px;
    }

    .dashboard-kpi-card {
        min-height: 120px;
        padding: 22px 24px !important;
    }

    .dashboard-kpi-top {
        gap: 15px;
        margin-bottom: 17px;
    }

    .dashboard-kpi-icon {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
    }

        .dashboard-kpi-icon .mud-icon-root {
            font-size: 25px !important;
        }

    .dashboard-kpi-title {
        font-size: 14px;
    }

    .dashboard-kpi-value {
        font-size: 40px;
    }

    .dashboard-kpi-label {
        font-size: 14px;
    }


    /* =====================================================
       PANELS
       ===================================================== */

    .dashboard-main-grid,
    .dashboard-secondary-grid {
        gap: 22px;
        margin-bottom: 22px;
    }

    .dashboard-right-column {
        gap: 22px;
    }

    .dashboard-panel {
        border-radius: 17px !important;
    }

    .dashboard-panel-header {
        min-height: 82px;
        padding: 18px 23px;
    }

    .dashboard-panel-title {
        font-size: 14px;
    }

    .dashboard-panel-subtitle {
        font-size: 13px;
    }

    .dashboard-panel-header .mud-button-root {
        font-size: 13px;
    }


    /* =====================================================
       TOUREN
       ===================================================== */

    .tour-stat-grid {
        gap: 18px;
        margin-bottom: 24px;
    }

    .tour-stat-card {
        min-height: 105px;
        gap: 17px;
        padding: 19px 21px !important;
    }

    .tour-stat-icon {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

        .tour-stat-icon .mud-icon-root {
            font-size: 25px !important;
        }

    .tour-stat-value {
        font-size: 28px;
    }

    .tour-stat-label {
        font-size: 13px;
    }


    /* =====================================================
       FILTER
       ===================================================== */

    .tour-filter-bar {
        grid-template-columns: minmax(350px, 1fr) 270px 52px;
        gap: 14px;
        padding: 17px 20px;
    }

        .tour-filter-bar .mud-input-outlined {
            min-height: 48px !important;
        }

    .tour-filter-reset {
        width: 48px !important;
        height: 48px !important;
    }


    /* =====================================================
       MUDBLAZOR INPUTS
       ===================================================== */

    .mud-input-root,
    .mud-input-slot,
    .mud-input-label,
    .mud-select-input,
    .mud-typography-body1,
    .mud-typography-body2 {
        font-size: 0.95rem;
    }

    .mud-button-root {
        font-size: 0.9rem;
    }

    .mud-chip {
        font-size: 0.82rem;
    }


    /* =====================================================
       TABELLEN
       ===================================================== */

    .mud-table-cell {
        font-size: 14px !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .mud-table-head .mud-table-cell {
        font-size: 13px !important;
    }
}