html, body {
    font-family: Inter, Arial, sans-serif;
    background: #06101b;
    color: #eef4ff;
}

body {
    margin: 0;
}

a, .btn-link {
    color: #d7260f;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #f03b20 0%, #d7260f 100%);
    border: none;
    border-radius: 16px;
    padding: .75rem 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(215, 38, 15, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #ff4b2f 0%, #d7260f 100%);
}

.btn-secondary {
    color: #eef4ff;
    background: rgba(9, 22, 37, 0.95);
    border: 1px solid rgba(72, 109, 145, 0.35);
    border-radius: 16px;
    padding: .75rem 1.25rem;
    font-weight: 700;
}

.desktop-style-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
    background:
        radial-gradient(circle at top left, rgba(215, 38, 15, 0.12), transparent 30%),
        linear-gradient(180deg, #09131e 0%, #06101b 100%);
}

.desktop-sidebar {
    border-right: 1px solid rgba(72, 109, 145, 0.25);
    background: linear-gradient(180deg, rgba(10, 22, 37, 0.98) 0%, rgba(7, 17, 29, 0.98) 100%);
    padding-top: 1rem;
}

.desktop-header-wrap {
    padding: 1rem 1rem 0 1rem;
}

.desktop-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: 26px;
    border: 1px solid rgba(72, 109, 145, 0.28);
    background: linear-gradient(180deg, rgba(9, 22, 37, 0.98) 0%, rgba(7, 17, 29, 0.98) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.20);
}

.desktop-header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.desktop-header-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(215, 38, 15, 0.12);
    border: 1px solid rgba(215, 38, 15, 0.28);
    color: #ff7b68;
    font-weight: 800;
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
}

.brand-subtitle {
    color: #9eb3ca;
    font-size: .94rem;
}

.desktop-header-chips {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
}

.header-chip {
    padding: .55rem .85rem;
    border-radius: 999px;
    background: rgba(5, 14, 24, 0.96);
    border: 1px solid rgba(72, 109, 145, 0.28);
    color: #e4edf8;
    font-size: .88rem;
    font-weight: 600;
}

.desktop-content {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
}

.desktop-nav-brand {
    padding: 0 1rem .8rem 1rem;
}

.desktop-nav-inner {
    padding: 1rem 1rem;
    border-radius: 22px;
    background: rgba(9, 22, 37, 0.98);
    border: 1px solid rgba(72, 109, 145, 0.28);
}

.desktop-nav-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.desktop-nav-subtitle {
    color: #9eb3ca;
    font-size: .85rem;
}

.desktop-nav-scroll {
    padding: .2rem .45rem 1rem .45rem;
}

.desktop-nav-link {
    margin-bottom: .45rem;
    border-radius: 16px;
    padding: .82rem 1rem !important;
    color: #dce7f6;
    border: 1px solid transparent;
    background: rgba(5, 14, 24, 0.5);
}

.desktop-nav-link.active {
    background: rgba(9, 22, 37, 1);
    border-color: rgba(215, 38, 15, 0.4);
    box-shadow: inset 0 -2px 0 rgba(215, 38, 15, 0.95);
    color: #ffffff;
}

.hero-card, .section-card, .info-panel {
    background: linear-gradient(180deg, rgba(9, 22, 37, 0.98) 0%, rgba(7, 17, 29, 0.98) 100%);
    border: 1px solid rgba(72, 109, 145, 0.28);
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.desktop-hero-card {
    padding: 2rem;
    margin-bottom: 1.2rem;
}

.hero-card h1 {
    font-size: 2rem;
    margin-bottom: .75rem;
}

.hero-eyebrow {
    color: #ff735d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    margin-bottom: .8rem;
}

.hero-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

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

.info-panel, .section-card {
    padding: 1.4rem;
}

.desktop-panel h2, .section-header h1 {
    font-weight: 800;
}

.section-header p, .muted-text, .info-panel li, .trip-meta, .status-label, .brand-subtitle, .desktop-nav-subtitle {
    color: #9eb3ca;
}

.page-shell {
    max-width: 1200px;
}

.narrow-shell {
    max-width: 620px;
}

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

.single-column {
    grid-template-columns: 1fr;
}

.field-block {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.custom-input {
    background: #081423;
    color: #eef4ff;
    border: 1px solid #284563;
    border-radius: 16px;
    padding: .8rem .95rem;
}

.custom-input:focus {
    background: #0a1727;
    color: #eef4ff;
    border-color: #d7260f;
    box-shadow: 0 0 0 .2rem rgba(215, 38, 15, .15);
}

.upload-box-real, .upload-placeholder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px dashed #355372;
    border-radius: 18px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.upload-box-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(215, 38, 15, 0.12);
    color: #ff866f;
    font-size: 1.3rem;
}

.hidden-file-input {
    display: none;
}

.upload-button-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

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

.upload-details-grid, .search-shell {
    margin-top: 1rem;
}

.status-tile, .status-box {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(5, 14, 24, 0.95);
    border: 1px solid rgba(72, 109, 145, 0.24);
}

.info-message-box {
    margin-top: 1rem;
    color: #eef4ff;
}

.compact-field {
    max-width: 360px;
}

.trip-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-top: 1rem;
}

.trip-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(72, 109, 145, 0.24);
    background: linear-gradient(180deg, rgba(9, 22, 37, 0.98) 0%, rgba(7, 17, 29, 0.98) 100%);
    border-radius: 22px;
    color: #eef4ff;
    padding: 1rem 1.1rem;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.trip-card:hover {
    border-color: rgba(215, 38, 15, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.trip-main-row {
    display: grid;
    grid-template-columns: 130px 1fr 250px;
    gap: 1rem;
    align-items: center;
}

.trip-line-box {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.trip-line {
    font-size: 1.35rem;
    font-weight: 800;
}

.trip-number {
    color: #9eb3ca;
    font-size: .92rem;
}

.trip-route {
    font-size: 1rem;
    font-weight: 700;
}

.trip-badges {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.trip-badge {
    display: inline-flex;
    align-items: center;
    padding: .45rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(72, 109, 145, 0.24);
    background: rgba(5, 14, 24, 0.95);
    color: #dce7f6;
    font-size: .85rem;
}

.preview-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(72, 109, 145, 0.24);
    border-radius: 18px;
    background: rgba(5, 14, 24, 0.9);
}

.app-table {
    margin-bottom: 0;
    color: #eef4ff;
}

.app-table thead th {
    background: rgba(215, 38, 15, 0.12);
    border-bottom: 1px solid rgba(72, 109, 145, 0.24);
    white-space: nowrap;
}

.app-table td, .app-table th {
    border-color: rgba(72, 109, 145, 0.18);
    font-size: .92rem;
}

.muted-row {
    color: #9eb3ca;
    padding: 1rem !important;
}

#blazor-error-ui {
    background: #ffe5e0;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #111;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 1200px) {
    .desktop-style-shell {
        grid-template-columns: 270px 1fr;
    }

    .trip-main-row {
        grid-template-columns: 1fr;
    }

    .trip-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
    .desktop-style-shell {
        grid-template-columns: 1fr;
    }

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


.login-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(215, 38, 15, 0.12), transparent 28%),
        linear-gradient(180deg, #09131e 0%, #06101b 100%);
}

.login-card {
    width: 100%;
    max-width: 720px;
    padding: 2rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(9, 22, 37, 0.98) 0%, rgba(7, 17, 29, 0.98) 100%);
    border: 1px solid rgba(72, 109, 145, 0.28);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.login-users-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1.2rem;
}

.login-user-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(5, 14, 24, 0.95);
    border: 1px solid rgba(72, 109, 145, 0.24);
    color: #e5edf8;
}

.logout-btn {
    padding: .6rem .95rem;
}

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


.mock-login-scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #121417;
}

.mock-login-stage {
    width: min(980px, 100%);
    padding: 3.2rem;
    border-radius: 22px;
    background: #6f8697;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    position: relative;
}

.mock-login-stage::after {
    content: "";
    position: absolute;
    right: 70px;
    bottom: 55px;
    width: 280px;
    height: 180px;
    background: linear-gradient(135deg, rgba(16,22,28,.22), rgba(16,22,28,0));
    transform: skewY(22deg);
    filter: blur(6px);
    pointer-events: none;
}

.mock-login-card {
    width: min(620px, 100%);
    min-height: 330px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr .58fr;
    box-shadow: 0 18px 28px rgba(0,0,0,.18);
}

.mock-login-left {
    background: #f0f0f0;
    padding: 2.35rem 1.9rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mock-login-right {
    background: #1f2931;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mock-login-right::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255,255,255,.08);
}

.mock-logo-row {
    color: #6a6f75;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: .04em;
}

.mock-field {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    background: #d3d3d6;
    margin-bottom: 1rem;
    min-height: 52px;
}

.mock-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: .55;
}

.mock-input {
    border: none;
    background: transparent;
    outline: none;
    color: #777b81;
    font-size: 1rem;
    width: 100%;
}

.mock-input::placeholder {
    color: #8a8f96;
}

.mock-login-footer {
    margin-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #9aa0a7;
    font-size: .88rem;
}

.mock-login-button, .mock-mobile-login-btn {
    border: none;
    background: transparent;
    color: #f2f4f6;
    letter-spacing: .22em;
    font-size: 1.05rem;
    font-weight: 300;
}

.mock-login-button {
    z-index: 1;
}

.mock-mobile-login-btn {
    display: none;
    background: #1f2931;
    padding: .65rem 1rem;
    border-radius: 0;
}

.mock-login-users-hint {
    width: min(620px, 100%);
    margin: 1rem auto 0;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.mock-login-users-hint span {
    padding: .45rem .7rem;
    border-radius: 999px;
    background: rgba(18,20,23,.22);
    color: #eef4ff;
    font-size: .82rem;
}

@media (max-width: 760px) {
    .mock-login-stage {
        padding: 1.6rem;
    }

    .mock-login-card {
        grid-template-columns: 1fr;
    }

    .mock-login-right {
        display: none;
    }

    .mock-mobile-login-btn {
        display: inline-flex;
    }
}


/* Full-app redesign towards the provided login style */
html, body {
    background: #15171a !important;
    color: #2b333a;
}

.desktop-style-shell {
    min-height: 100vh;
    grid-template-columns: 250px 1fr;
    background: transparent !important;
    padding: 1.5rem;
    gap: 1.25rem;
}

.desktop-sidebar {
    background: #263038 !important;
    border-right: none !important;
    border-radius: 24px;
    padding: 1rem .75rem;
    box-shadow: 0 22px 34px rgba(0,0,0,.22);
}

.desktop-nav-inner {
    background: rgba(255,255,255,0.06) !important;
    border: none !important;
}

.desktop-nav-title {
    color: #f2f4f6;
}

.desktop-nav-link {
    background: rgba(255,255,255,0.04) !important;
    color: #dde5ec !important;
    border: none !important;
    border-radius: 14px !important;
}

.desktop-nav-link.active {
    background: rgba(255,255,255,0.12) !important;
    color: white !important;
    box-shadow: none !important;
    border-left: 3px solid #f2f4f6;
}

.desktop-header-wrap {
    padding: 0;
}

.desktop-header-card {
    background: #718899 !important;
    border: none !important;
    box-shadow: 0 24px 40px rgba(0,0,0,.2) !important;
    border-radius: 24px !important;
}

.desktop-header-logo {
    background: rgba(34,43,51,0.14) !important;
    border: none !important;
    color: #2a3138 !important;
}

.brand-title {
    color: #f4f6f8;
}

.brand-subtitle {
    color: rgba(244,246,248,.78) !important;
}

.header-chip {
    background: rgba(38,48,56,.9) !important;
    border: none !important;
    color: #f2f4f6 !important;
}

.logout-btn.btn-secondary {
    background: rgba(38,48,56,.95) !important;
    color: #f2f4f6 !important;
    border: none !important;
}

.desktop-content {
    padding: 1rem 0 2rem 0 !important;
}

.page-shell, .narrow-shell {
    max-width: none !important;
}

.hero-card, .section-card, .info-panel, .login-card {
    background: #f0f0f0 !important;
    color: #2d3338 !important;
    border: none !important;
    box-shadow: 0 22px 34px rgba(0,0,0,.18) !important;
}

.hero-card h1, .section-header h1, .desktop-panel h2, .trip-line, .trip-route {
    color: #2b333a !important;
}

.hero-eyebrow {
    color: #5d6975 !important;
}

.section-header p, .muted-text, .info-panel li, .trip-meta, .status-label, .trip-number, .mock-login-footer, .mock-logo-row {
    color: #7d848c !important;
}

.btn-primary {
    background: #263038 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.btn-secondary {
    background: #d3d3d6 !important;
    color: #2b333a !important;
    border: none !important;
    border-radius: 0 !important;
}

.custom-input {
    background: #d3d3d6 !important;
    color: #666d75 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.custom-input:focus {
    background: #cdced1 !important;
    color: #61676e !important;
    border: none !important;
}

.upload-box-real, .upload-placeholder, .preview-table-wrapper, .status-tile, .status-box, .trip-card, .login-user-card {
    background: #e3e3e5 !important;
    border: none !important;
    box-shadow: none !important;
    color: #2f363d !important;
}

.upload-box-real strong, .status-tile strong, .login-user-card strong {
    color: #2f363d !important;
}

.trip-card {
    border-radius: 18px !important;
}

.trip-badge {
    background: #263038 !important;
    color: #f3f5f7 !important;
    border: none !important;
}

.app-table {
    color: #2f363d !important;
}

.app-table thead th {
    background: #d3d3d6 !important;
    color: #46505a !important;
    border-bottom: none !important;
}

.app-table td, .app-table th {
    border-color: rgba(38,48,56,.08) !important;
}

.mock-login-scene {
    background: #15171a !important;
}

.mock-login-stage {
    background: #718899 !important;
}

.mock-login-card {
    box-shadow: 0 18px 30px rgba(0,0,0,.18) !important;
}

.mock-login-left {
    background: #f0f0f0 !important;
}

.mock-login-right {
    background: #263038 !important;
}

.mock-field {
    background: #d3d3d6 !important;
}

.mock-input {
    color: #7d848c !important;
}

.mock-login-button, .mock-mobile-login-btn {
    background: transparent !important;
    color: #f2f4f6 !important;
}

.login-users-grid, .mock-login-users-hint {
    margin-top: 1rem;
}

.mock-login-users-hint span {
    background: rgba(38,48,56,.84) !important;
    color: #f4f6f8 !important;
}


/* Desktop app typography pass */
html, body {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 14px;
}

.brand-title {
    font-size: 1.22rem !important;
    font-weight: 700 !important;
}

.brand-subtitle {
    font-size: .88rem !important;
}

.desktop-nav-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.desktop-nav-subtitle, .status-label, .trip-number, .trip-meta, .muted-text, .section-header p, .info-panel li {
    font-size: .86rem !important;
}

.desktop-nav-link {
    font-size: .97rem !important;
    padding: .72rem .95rem !important;
}

.hero-card h1, .section-header h1 {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
}

.desktop-panel h2 {
    font-size: 1.08rem !important;
    font-weight: 700 !important;
}

.btn-primary, .btn-secondary, .header-chip, .trip-badge {
    font-size: .9rem !important;
    font-weight: 600 !important;
}

.custom-input, .mock-input {
    font-size: .95rem !important;
}

.trip-line {
    font-size: 1.12rem !important;
}

.trip-route {
    font-size: .96rem !important;
    font-weight: 600 !important;
}

.app-table td, .app-table th {
    font-size: .87rem !important;
}

.mock-logo-row {
    font-size: .88rem !important;
}

.mock-login-button, .mock-mobile-login-btn {
    font-size: .98rem !important;
    letter-spacing: .18em !important;
}

.login-user-card, .mock-login-users-hint span {
    font-size: .84rem !important;
}


.search-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.compact-field-wide {
    min-width: 0;
}

.selected-trip-panel {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #e3e3e5;
    color: #2f363d;
}

.selected-trip-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .65rem;
}

.selected-trip-line {
    font-size: 1.18rem;
    font-weight: 700;
    color: #2b333a;
}

.selected-trip-number {
    font-size: .9rem;
    color: #727983;
}

.selected-trip-badges {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.selected-trip-card {
    outline: 2px solid rgba(38,48,56,.55);
}

.selected-route-meta {
    font-size: .88rem;
    color: #727983;
    margin-bottom: .25rem;
}

.selected-route-main {
    font-size: .98rem;
    font-weight: 600;
    color: #2b333a;
}

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


.meldung-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

.selected-trip-action {
    text-decoration: none;
}

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

    .full-width {
        grid-column: auto;
    }
}


.whatsapp-preview-box {
    margin-top: 1rem;
    padding: 1rem;
}

.whatsapp-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: .92rem;
    color: #2b333a;
}


.workflow-panel {
    margin-top: 1.25rem;
}

.workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 1rem;
    margin-top: 1rem;
}

.section-subheader {
    font-size: 0.95rem;
    font-weight: 600;
    color: #253241;
    margin-bottom: .75rem;
}

.workflow-preview-box {
    min-height: 100%;
}

.inline-box {
    margin-top: .75rem;
}

.compact-top-grid {
    margin-top: 0;
}

@media (max-width: 960px) {
    .workflow-grid {
        grid-template-columns: 1fr;
    }
}


.central-workspace-shell {
    gap: 1rem;
}

.desktop-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, .6fr) minmax(180px, .7fr) 140px;
    gap: .85rem;
    align-items: end;
    margin-bottom: 1rem;
}

.file-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .75rem;
}

.compact-upload-btn, .workspace-load-btn {
    white-space: nowrap;
}

.desktop-chip-grid {
    margin-bottom: 1rem;
}

.workspace-trip-list {
    max-height: 360px;
    overflow: auto;
}

.tabs-workspace-card {
    padding-top: .85rem;
}

.workspace-tabs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .85rem;
}

.workspace-tab {
    border: 1px solid rgba(37,50,65,.12);
    border-radius: 14px;
    background: #eef2f5;
    color: #334155;
    padding: .65rem 1rem;
    font-size: .95rem;
    font-weight: 600;
}

.workspace-tab.active {
    background: #ffffff;
    color: #162130;
    box-shadow: 0 8px 24px rgba(22,33,48,.08);
}

.tab-pane-wrap {
    border-top: 1px solid rgba(37,50,65,.08);
    padding-top: 1rem;
}

.compact-header h2 {
    font-size: 1.2rem;
    margin: 0;
}

.compact-header p {
    margin-top: .25rem;
}

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

@media (max-width: 760px) {
    .desktop-top-grid, .file-row {
        grid-template-columns: 1fr;
    }
}

.whatsapp-grid {
    margin-bottom: 1rem;
}

.selection-box {
    margin-bottom: 1rem;
}

.tab-action-row {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.pending-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pending-item-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #f7f9fb;
    border: 1px solid rgba(37,50,65,.08);
    border-radius: 14px;
    padding: .85rem 1rem;
}

.muted-inline {
    color: #64748b;
    font-size: .92rem;
}

.existing-file-row {
    margin-top: .25rem;
}

.whatsapp-three-col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

@media (max-width: 960px) {
    .whatsapp-three-col-grid {
        grid-template-columns: 1fr;
    }
}

.desktop-header-card-compact {
    align-items: center;
}

.meta-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 120px;
    gap: .1rem;
}

.meta-label {
    font-size: .72rem;
    color: #8fa2b7;
    line-height: 1;
}

.meta-value {
    font-size: .95rem;
    font-weight: 700;
    color: #eef4ff;
}

.header-ghost-btn {
    min-height: 40px;
    white-space: nowrap;
}

.inline-select-shell {
    display: grid;
    grid-template-columns: 1fr 40px 40px;
    gap: .4rem;
    align-items: center;
}

.line-inline-input {
    min-width: 0;
}

.inline-action-btn {
    height: 42px;
    border: 1px solid #284563;
    background: #081423;
    color: #eef4ff;
    border-radius: 12px;
    font-size: .9rem;
}

@media (max-width: 960px) {
    .desktop-header-card-compact {
        flex-direction: column;
        align-items: stretch;
    }

    .desktop-header-chips {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* --- Desktopnaher Excel-Reiter / Dropdown-Pfeile app-weit --- */
html, body {
    font-family: "Segoe UI", Arial, sans-serif;
}

select.custom-input,
.custom-select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.6rem !important;
    background-image: none !important;
}

.desktop-select-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.desktop-select-shell .custom-select-input {
    width: 100%;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.desktop-select-arrow {
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    border-left: 1px solid #284563;
    background: #0b1624;
    color: #e7eef8;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    font-size: .72rem;
    line-height: 1;
}

.compact-field-block label,
.excel-card-block label {
    font-size: .72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: .2rem;
}

.compact-text-input,
.compact-form-btn,
.custom-select-input,
.compact-grid-input,
.compact-grid-select {
    min-height: 34px !important;
    height: 34px !important;
    padding-top: .38rem !important;
    padding-bottom: .38rem !important;
    font-size: .82rem !important;
    border-radius: 12px !important;
}

.compact-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: .9rem !important;
    padding-right: .9rem !important;
    font-weight: 700;
}

.compact-mini-btn {
    min-height: 32px !important;
    padding: .4rem .75rem !important;
    font-size: .78rem !important;
    border-radius: 12px !important;
}

.compact-trash-btn {
    min-height: 32px !important;
    min-width: 32px !important;
    padding: .35rem .55rem !important;
    border-radius: 10px !important;
    line-height: 1;
}

.excel-workspace-card {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.excel-intro-card,
.excel-card-block {
    background: #f8fafc;
    border: 1px solid rgba(37,50,65,.08);
    border-radius: 18px;
    padding: .95rem 1rem;
}

.excel-title {
    font-size: .96rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .15rem;
}

.excel-subtitle,
.excel-list-status,
.bottom-info-text {
    color: #64748b;
    font-size: .78rem;
    line-height: 1.35;
}

.excel-block-head,
.excel-list-head-row {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: .75rem;
}

.excel-form-grid-top {
    display: grid;
    grid-template-columns: 0.7fr 0.95fr 0.95fr 1fr 1fr;
    gap: .55rem;
    margin-bottom: .6rem;
}

.excel-form-grid-bottom {
    display: grid;
    grid-template-columns: 1.2fr 1fr 160px 160px;
    gap: .55rem;
    align-items: end;
}

.compact-button-block {
    justify-content: flex-end;
}

.excel-filter-card {
    background: #f1f5f9;
    border: 1px solid rgba(37,50,65,.08);
    border-radius: 16px;
    padding: .75rem;
    margin-bottom: .8rem;
}

.excel-filter-row {
    display: grid;
    grid-template-columns: 220px 1fr auto auto;
    gap: .55rem;
    align-items: end;
}

.pending-filter-field,
.pending-search-field,
.small-button-block {
    min-width: 0;
}

.excel-counter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .55rem;
    color: #475569;
    font-size: .78rem;
}

.excel-table-wrap {
    overflow: auto;
    border: 1px solid rgba(37,50,65,.08);
    border-radius: 16px;
}

.excel-pending-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1300px;
    background: #ffffff;
}

.excel-pending-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #e2e8f0;
    color: #334155;
    font-size: .74rem;
    font-weight: 700;
    text-align: left;
    padding: .55rem .45rem;
    border-bottom: 1px solid rgba(37,50,65,.12);
}

.excel-pending-table tbody td {
    padding: .35rem;
    border-bottom: 1px solid rgba(226,232,240,.95);
    vertical-align: middle;
    background: #fff;
}

.pending-row-aw td {
    background: #fff8f6;
}

.pending-row-myk td {
    background: #f8fbff;
}

.table-select-shell .desktop-select-arrow {
    width: 28px;
    font-size: .66rem;
}

.excel-list-action-row {
    margin-top: .65rem;
    display: flex;
    justify-content: flex-start;
}

.excel-bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.05fr 1fr;
    gap: .75rem;
}

.small-card-block {
    min-height: 100%;
}

.excel-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .8rem;
}

.vertical-actions {
    flex-direction: column;
    align-items: stretch;
}

.bottom-action-label {
    position: relative;
    overflow: hidden;
}

.whatsapp-row-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: .65rem;
    align-items: end;
    margin-bottom: .85rem;
}

.error-box {
    background: #ffe5e0 !important;
    color: #7f1d1d !important;
}

@media (max-width: 1200px) {
    .excel-form-grid-top {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .excel-form-grid-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .excel-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .excel-filter-row,
    .whatsapp-row-grid {
        grid-template-columns: 1fr;
    }
}


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

.workspace-selected-trip-panel {
    margin-bottom: 1rem;
    border: 1px solid rgba(37,50,65,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.verbund-badge {
    color: #fff !important;
    border: none !important;
}

.verbund-myk {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
}

.verbund-aw {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
}

.pending-row-aw td {
    background: #ffe9e7 !important;
}

.pending-row-myk td {
    background: #eaf3ff !important;
}

.excel-pending-table tbody td:first-child {
    font-weight: 700;
}

.release-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 15, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.release-modal {
    width: min(860px, 100%);
    max-height: 84vh;
    overflow: auto;
    background: linear-gradient(180deg, rgba(9,22,37,.99) 0%, rgba(7,17,29,.99) 100%);
    border: 1px solid rgba(72,109,145,.28);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    padding: 1.1rem 1.2rem;
}

.release-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .9rem;
}

.release-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #eef4ff;
}

.release-subtitle {
    color: #9eb3ca;
    font-size: .85rem;
    margin-top: .2rem;
}

.release-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(72,109,145,.28);
    background: rgba(5,14,24,.85);
    color: #eef4ff;
    font-size: 1.1rem;
}

.release-list {
    display: grid;
    gap: .8rem;
}

.release-entry {
    border: 1px solid rgba(72,109,145,.22);
    border-radius: 18px;
    padding: .9rem 1rem;
    background: rgba(5,14,24,.5);
}

.release-version {
    color: #ff7b68;
    font-size: .88rem;
    font-weight: 800;
    margin-bottom: .45rem;
}

.release-entry ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #dce7f6;
    font-size: .85rem;
}


/* --- ausgewählte Fahrt deutlicher markieren --- */
.selected-trip-card {
    outline: none !important;
    border-color: rgba(215, 38, 15, 0.8) !important;
    background: linear-gradient(180deg, rgba(28, 43, 60, 0.98) 0%, rgba(16, 28, 42, 0.98) 100%) !important;
    box-shadow: 0 0 0 2px rgba(215, 38, 15, 0.22), 0 18px 32px rgba(0,0,0,0.22) !important;
    transform: translateY(-1px);
}

.selected-trip-card .trip-line,
.selected-trip-card .trip-number,
.selected-trip-card .trip-route,
.selected-trip-card .trip-meta {
    color: #fff7f5 !important;
}

/* --- alles runder --- */
.custom-input,
.btn,
.status-box,
.status-tile,
.trip-card,
.workspace-tab,
.selected-trip-panel,
.excel-card-block,
.excel-filter-card,
.excel-table-wrap,
.excel-pending-table thead th,
.excel-pending-table tbody td,
.release-modal,
.release-entry,
.release-close-btn,
.inline-action-btn,
.desktop-nav-link,
.header-chip,
.pending-item-row {
    border-radius: 14px !important;
}

.excel-pending-table thead th:first-child { border-top-left-radius: 14px !important; }
.excel-pending-table thead th:last-child { border-top-right-radius: 14px !important; }

/* --- Themenmodus --- */
.theme-light-mode {
    background: linear-gradient(180deg, #eef3f8 0%, #e6edf5 100%) !important;
}

.theme-light-mode .desktop-sidebar {
    background: linear-gradient(180deg, rgba(243,247,251,.98) 0%, rgba(233,240,247,.98) 100%) !important;
    border-right-color: rgba(148, 163, 184, 0.28) !important;
}

.theme-light-mode .desktop-header-card,
.theme-light-mode .desktop-nav-inner,
.theme-light-mode .hero-card,
.theme-light-mode .section-card,
.theme-light-mode .info-panel,
.theme-light-mode .excel-card-block,
.theme-light-mode .excel-intro-card,
.theme-light-mode .excel-filter-card,
.theme-light-mode .release-modal,
.theme-light-mode .release-entry {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(246,249,252,.98) 100%) !important;
    border-color: rgba(148,163,184,.24) !important;
    color: #243242 !important;
}

.theme-light-mode .brand-title,
.theme-light-mode .desktop-nav-title,
.theme-light-mode .section-header h1,
.theme-light-mode .compact-header h2,
.theme-light-mode .release-title,
.theme-light-mode .meta-value,
.theme-light-mode .trip-line,
.theme-light-mode .trip-number,
.theme-light-mode .trip-route,
.theme-light-mode .excel-title {
    color: #243242 !important;
}

.theme-light-mode .brand-subtitle,
.theme-light-mode .desktop-nav-subtitle,
.theme-light-mode .section-header p,
.theme-light-mode .status-label,
.theme-light-mode .release-subtitle,
.theme-light-mode .excel-subtitle,
.theme-light-mode .trip-meta,
.theme-light-mode .muted-inline,
.theme-light-mode .meta-label {
    color: #64748b !important;
}

.theme-light-mode .desktop-nav-link {
    background: rgba(255,255,255,.9) !important;
    color: #243242 !important;
    border-color: rgba(148,163,184,.18) !important;
}

.theme-light-mode .desktop-nav-link.active {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(215, 38, 15, 0.35) !important;
}

.theme-light-mode .header-chip,
.theme-light-mode .trip-card,
.theme-light-mode .selected-trip-panel,
.theme-light-mode .status-tile,
.theme-light-mode .status-box,
.theme-light-mode .pending-item-row {
    background: #ffffff !important;
    color: #243242 !important;
    border-color: rgba(148,163,184,.22) !important;
}

.theme-light-mode .trip-card {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05) !important;
}

.theme-light-mode .selected-trip-card {
    background: linear-gradient(180deg, #fff6f2 0%, #fff0ea 100%) !important;
    border-color: rgba(215,38,15,.65) !important;
    box-shadow: 0 0 0 2px rgba(215,38,15,.16), 0 16px 24px rgba(15,23,42,.08) !important;
}

.theme-light-mode .selected-trip-card .trip-line,
.theme-light-mode .selected-trip-card .trip-number,
.theme-light-mode .selected-trip-card .trip-route,
.theme-light-mode .selected-trip-card .trip-meta {
    color: #243242 !important;
}

.theme-light-mode .custom-input,
.theme-light-mode .inline-action-btn,
.theme-light-mode .desktop-select-arrow,
.theme-light-mode .btn-secondary,
.theme-light-mode .release-close-btn {
    background: #ffffff !important;
    color: #243242 !important;
    border-color: rgba(148,163,184,.32) !important;
}

.theme-light-mode .desktop-select-arrow {
    border-left-color: rgba(148,163,184,.32) !important;
}


/* --- feinere Themenabstimmung --- */
.theme-dark-mode {
    background:
        radial-gradient(circle at top left, rgba(215, 38, 15, 0.08), transparent 30%),
        linear-gradient(180deg, #0b1320 0%, #0a111b 100%) !important;
}

.theme-dark-mode .desktop-sidebar {
    background: linear-gradient(180deg, #172535 0%, #142130 100%) !important;
}

.theme-dark-mode .desktop-header-card {
    background: linear-gradient(180deg, #8ea6bb 0%, #86a0b7 100%) !important;
    border-color: rgba(129, 156, 180, 0.22) !important;
}

.theme-dark-mode .section-card,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .excel-intro-card,
.theme-dark-mode .excel-filter-card,
.theme-dark-mode .status-box,
.theme-dark-mode .status-tile,
.theme-dark-mode .header-chip,
.theme-dark-mode .selected-trip-panel {
    background: linear-gradient(180deg, #162231 0%, #131d2b 100%) !important;
    border-color: rgba(96, 125, 156, 0.28) !important;
    color: #edf4fb !important;
}

.theme-dark-mode .workspace-tab {
    background: #192533 !important;
    color: #d9e4ef !important;
    border-color: rgba(96, 125, 156, 0.22) !important;
}

.theme-dark-mode .workspace-tab.active {
    background: #223244 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
}

.theme-dark-mode .trip-card,
.theme-dark-mode .pending-item-row {
    background: linear-gradient(180deg, #192636 0%, #162231 100%) !important;
    border-color: rgba(96, 125, 156, 0.22) !important;
    color: #edf4fb !important;
}

.theme-dark-mode .trip-meta,
.theme-dark-mode .brand-subtitle,
.theme-dark-mode .desktop-nav-subtitle,
.theme-dark-mode .status-label,
.theme-dark-mode .section-header p,
.theme-dark-mode .excel-subtitle,
.theme-dark-mode .meta-label,
.theme-dark-mode .muted-inline,
.theme-dark-mode .selected-route-meta,
.theme-dark-mode .release-subtitle {
    color: #a8bfd5 !important;
}

.theme-dark-mode .brand-title,
.theme-dark-mode .desktop-nav-title,
.theme-dark-mode .section-header h1,
.theme-dark-mode .compact-header h2,
.theme-dark-mode .trip-line,
.theme-dark-mode .trip-number,
.theme-dark-mode .trip-route,
.theme-dark-mode .selected-route-main,
.theme-dark-mode .selected-trip-line,
.theme-dark-mode .selected-trip-number,
.theme-dark-mode .meta-value,
.theme-dark-mode .release-title,
.theme-dark-mode .excel-title,
.theme-dark-mode .desktop-nav-link,
.theme-dark-mode .desktop-nav-link.active {
    color: #f3f7fb !important;
}

.theme-dark-mode .custom-input,
.theme-dark-mode .btn-secondary,
.theme-dark-mode .inline-action-btn,
.theme-dark-mode .desktop-select-arrow,
.theme-dark-mode .release-close-btn {
    background: #213042 !important;
    color: #edf4fb !important;
    border-color: rgba(96, 125, 156, 0.28) !important;
}

.theme-dark-mode .desktop-select-arrow {
    border-left-color: rgba(96, 125, 156, 0.28) !important;
}

.theme-dark-mode .excel-pending-table,
.theme-dark-mode .excel-pending-table tbody td {
    background: #182332 !important;
    color: #edf4fb !important;
    border-bottom-color: rgba(96, 125, 156, 0.18) !important;
}

.theme-dark-mode .excel-pending-table thead th {
    background: #223244 !important;
    color: #edf4fb !important;
    border-bottom-color: rgba(96, 125, 156, 0.24) !important;
}

.theme-dark-mode .pending-row-aw td {
    background: #362126 !important;
}

.theme-dark-mode .pending-row-myk td {
    background: #182c43 !important;
}

.theme-light-mode {
    background: linear-gradient(180deg, #eef3f8 0%, #e6edf4 100%) !important;
}

.theme-light-mode .desktop-sidebar {
    background: linear-gradient(180deg, #d7e1eb 0%, #ced9e4 100%) !important;
}

.theme-light-mode .desktop-header-card {
    background: linear-gradient(180deg, #8ea6bb 0%, #86a0b7 100%) !important;
}

.theme-light-mode .section-card,
.theme-light-mode .excel-card-block,
.theme-light-mode .excel-intro-card,
.theme-light-mode .excel-filter-card,
.theme-light-mode .status-box,
.theme-light-mode .status-tile,
.theme-light-mode .header-chip,
.theme-light-mode .selected-trip-panel {
    background: linear-gradient(180deg, #f7fafc 0%, #f0f5fa 100%) !important;
    border-color: rgba(148,163,184,.28) !important;
    color: #243242 !important;
}

.theme-light-mode .workspace-tab {
    background: #eef3f7 !important;
    color: #41556a !important;
    border-color: rgba(148,163,184,.24) !important;
}

.theme-light-mode .workspace-tab.active {
    background: #ffffff !important;
    color: #243242 !important;
}

.theme-light-mode .trip-card,
.theme-light-mode .pending-item-row {
    background: linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%) !important;
    border-color: rgba(148,163,184,.22) !important;
}

.theme-light-mode .custom-input,
.theme-light-mode .btn-secondary,
.theme-light-mode .inline-action-btn,
.theme-light-mode .desktop-select-arrow,
.theme-light-mode .release-close-btn {
    background: #eef3f7 !important;
    color: #243242 !important;
    border-color: rgba(148,163,184,.34) !important;
}

.theme-light-mode .desktop-select-arrow {
    border-left-color: rgba(148,163,184,.34) !important;
}

.theme-light-mode .excel-pending-table thead th {
    background: #dfe7f0 !important;
}

.theme-light-mode .excel-pending-table tbody td {
    background: #f8fbfd !important;
}

.theme-light-mode .pending-row-aw td {
    background: #fff1ef !important;
}

.theme-light-mode .pending-row-myk td {
    background: #edf5ff !important;
}


/* --- NH Insights / rotere Firmenoptik --- */
.desktop-header-logo-image {
    width: 84px !important;
    height: 56px !important;
    padding: .2rem .35rem;
    background: rgba(255,255,255,.06) !important;
}

.desktop-header-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mock-login-stage {
    background: linear-gradient(180deg, #7b8fa0 0%, #708497 100%) !important;
    border-radius: 30px !important;
}

.mock-login-card {
    border-radius: 24px !important;
    overflow: hidden;
}

.mock-login-left {
    background: #f4f4f5 !important;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.mock-login-right {
    background: linear-gradient(180deg, #2f3036 0%, #272b31 100%) !important;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.mock-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.4rem;
}

.mock-company-logo {
    width: min(360px, 100%);
    max-height: 92px;
    object-fit: contain;
    display: block;
}

.mock-field,
.mock-mobile-login-btn,
.mock-login-button,
.mock-input,
.mock-login-card,
.mock-login-stage,
.mock-login-left,
.mock-login-right,
.mock-field-icon {
    border-radius: 18px !important;
}

.mock-field {
    background: #d8d8dc !important;
}

.login-footer-clean {
    justify-content: flex-end !important;
}

.login-footer-clean span,
.login-users-grid,
.mock-login-users-hint,
.login-only-hint {
    display: none !important;
}

.mock-login-button,
.mock-mobile-login-btn {
    letter-spacing: .18em;
    font-weight: 500;
}

.theme-dark-mode {
    background:
        radial-gradient(circle at top left, rgba(232, 0, 28, 0.12), transparent 28%),
        linear-gradient(180deg, #14171c 0%, #111418 100%) !important;
}

.theme-dark-mode .desktop-sidebar {
    background: linear-gradient(180deg, #252d37 0%, #1f262f 100%) !important;
}

.theme-dark-mode .desktop-header-card {
    background: linear-gradient(180deg, #7b8fa0 0%, #708497 100%) !important;
}

.theme-dark-mode .desktop-nav-link.active {
    border-color: rgba(232, 0, 28, 0.42) !important;
    box-shadow: inset 0 -2px 0 rgba(232, 0, 28, 0.95) !important;
}

.theme-dark-mode .selected-trip-card {
    border-color: rgba(232, 0, 28, 0.8) !important;
    box-shadow: 0 0 0 2px rgba(232, 0, 28, 0.2), 0 18px 32px rgba(0,0,0,0.22) !important;
}

.theme-dark-mode .verbund-aw {
    background: linear-gradient(180deg, #ff3a3a 0%, #d91818 100%) !important;
}

.theme-dark-mode .verbund-myk {
    background: linear-gradient(180deg, #cc2233 0%, #a51523 100%) !important;
}

.theme-light-mode {
    background: linear-gradient(180deg, #eef1f4 0%, #e5eaef 100%) !important;
}

.theme-light-mode .desktop-sidebar {
    background: linear-gradient(180deg, #d9dfe6 0%, #d0d8e0 100%) !important;
}

.theme-light-mode .desktop-header-card {
    background: linear-gradient(180deg, #7b8fa0 0%, #708497 100%) !important;
}

.theme-light-mode .section-card,
.theme-light-mode .excel-card-block,
.theme-light-mode .excel-intro-card,
.theme-light-mode .excel-filter-card,
.theme-light-mode .status-box,
.theme-light-mode .status-tile,
.theme-light-mode .selected-trip-panel,
.theme-light-mode .trip-card {
    background: linear-gradient(180deg, #f4f6f8 0%, #ebeff3 100%) !important;
}

.theme-light-mode .desktop-nav-link.active {
    border-color: rgba(232, 0, 28, 0.34) !important;
    box-shadow: inset 0 -2px 0 rgba(232, 0, 28, 0.92) !important;
}

.theme-light-mode .selected-trip-card {
    background: linear-gradient(180deg, #fff2f2 0%, #ffe6e6 100%) !important;
    border-color: rgba(232,0,28,.58) !important;
    box-shadow: 0 0 0 2px rgba(232,0,28,.14), 0 14px 22px rgba(15,23,42,.08) !important;
}

.theme-light-mode .verbund-aw {
    background: linear-gradient(180deg, #ff3a3a 0%, #d91818 100%) !important;
}

.theme-light-mode .verbund-myk {
    background: linear-gradient(180deg, #cc2233 0%, #a51523 100%) !important;
}


/* --- Farbfeinschliff: anthrazit + helles Rot --- */
:root {
    --nh-red-soft: #d96a6f;
    --nh-red-soft-dark: #c75a5f;
    --nh-red-soft-light: #eb8c90;
    --nh-anthracite-1: #24282d;
    --nh-anthracite-2: #2d3238;
    --nh-anthracite-3: #363d45;
    --nh-light-grey-1: #f1f3f5;
    --nh-light-grey-2: #e8edf1;
    --nh-light-grey-3: #dde4ea;
}

.theme-dark-mode {
    background:
        radial-gradient(circle at top left, rgba(217, 106, 111, 0.12), transparent 28%),
        linear-gradient(180deg, #1f2227 0%, #1a1d22 100%) !important;
}

.theme-dark-mode .desktop-sidebar {
    background: linear-gradient(180deg, var(--nh-anthracite-3) 0%, var(--nh-anthracite-2) 100%) !important;
}

.theme-dark-mode .desktop-header-card {
    background: linear-gradient(180deg, #7a8088 0%, #6f7680 100%) !important;
}

.theme-dark-mode .section-card,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .excel-intro-card,
.theme-dark-mode .excel-filter-card,
.theme-dark-mode .status-box,
.theme-dark-mode .status-tile,
.theme-dark-mode .header-chip,
.theme-dark-mode .selected-trip-panel,
.theme-dark-mode .trip-card,
.theme-dark-mode .release-modal,
.theme-dark-mode .release-entry {
    background: linear-gradient(180deg, var(--nh-anthracite-2) 0%, var(--nh-anthracite-1) 100%) !important;
    border-color: rgba(217, 106, 111, 0.18) !important;
}

.theme-dark-mode .workspace-tab {
    background: #343941 !important;
    color: #f1f3f6 !important;
    border-color: rgba(217, 106, 111, 0.16) !important;
}

.theme-dark-mode .workspace-tab.active {
    background: #41474f !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.18) !important;
}

.theme-dark-mode .desktop-nav-link.active {
    border-color: rgba(217, 106, 111, 0.42) !important;
    box-shadow: inset 0 -2px 0 rgba(217, 106, 111, 0.95) !important;
}

.theme-dark-mode .custom-input,
.theme-dark-mode .btn-secondary,
.theme-dark-mode .inline-action-btn,
.theme-dark-mode .desktop-select-arrow,
.theme-dark-mode .release-close-btn {
    background: #3a4047 !important;
    color: #edf1f5 !important;
    border-color: rgba(217, 106, 111, 0.2) !important;
}

.theme-dark-mode .desktop-select-arrow {
    border-left-color: rgba(217, 106, 111, 0.2) !important;
}

.theme-dark-mode .selected-trip-card {
    border-color: rgba(217, 106, 111, 0.72) !important;
    box-shadow: 0 0 0 2px rgba(217, 106, 111, 0.18), 0 16px 28px rgba(0,0,0,0.22) !important;
}

.theme-dark-mode .verbund-aw,
.theme-dark-mode .verbund-myk {
    background: linear-gradient(180deg, var(--nh-red-soft-light) 0%, var(--nh-red-soft-dark) 100%) !important;
}

.theme-dark-mode .trip-card:hover,
.theme-dark-mode .header-ghost-btn:hover,
.theme-dark-mode .btn-secondary:hover {
    border-color: rgba(217, 106, 111, 0.36) !important;
}

.theme-light-mode {
    background: linear-gradient(180deg, var(--nh-light-grey-1) 0%, var(--nh-light-grey-2) 100%) !important;
}

.theme-light-mode .desktop-sidebar {
    background: linear-gradient(180deg, #e3e7eb 0%, #d8dee5 100%) !important;
}

.theme-light-mode .desktop-header-card {
    background: linear-gradient(180deg, #b5bcc5 0%, #adb5be 100%) !important;
}

.theme-light-mode .section-card,
.theme-light-mode .excel-card-block,
.theme-light-mode .excel-intro-card,
.theme-light-mode .excel-filter-card,
.theme-light-mode .status-box,
.theme-light-mode .status-tile,
.theme-light-mode .selected-trip-panel,
.theme-light-mode .trip-card,
.theme-light-mode .release-modal,
.theme-light-mode .release-entry {
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f5 100%) !important;
    border-color: rgba(217, 106, 111, 0.14) !important;
}

.theme-light-mode .workspace-tab {
    background: #eef2f5 !important;
    color: #4b5563 !important;
    border-color: rgba(217, 106, 111, 0.14) !important;
}

.theme-light-mode .workspace-tab.active {
    background: #ffffff !important;
    color: #26323f !important;
    box-shadow: 0 10px 24px rgba(38,50,63,.06) !important;
}

.theme-light-mode .desktop-nav-link.active {
    border-color: rgba(217, 106, 111, 0.32) !important;
    box-shadow: inset 0 -2px 0 rgba(217, 106, 111, 0.92) !important;
}

.theme-light-mode .custom-input,
.theme-light-mode .btn-secondary,
.theme-light-mode .inline-action-btn,
.theme-light-mode .desktop-select-arrow,
.theme-light-mode .release-close-btn {
    background: #edf1f4 !important;
    color: #243242 !important;
    border-color: rgba(217, 106, 111, 0.18) !important;
}

.theme-light-mode .desktop-select-arrow {
    border-left-color: rgba(217, 106, 111, 0.18) !important;
}

.theme-light-mode .selected-trip-card {
    background: linear-gradient(180deg, #fff7f7 0%, #fceced 100%) !important;
    border-color: rgba(217,106,111,.46) !important;
    box-shadow: 0 0 0 2px rgba(217,106,111,.10), 0 14px 22px rgba(15,23,42,.06) !important;
}

.theme-light-mode .verbund-aw,
.theme-light-mode .verbund-myk {
    background: linear-gradient(180deg, var(--nh-red-soft-light) 0%, var(--nh-red-soft-dark) 100%) !important;
}

.theme-light-mode .pending-row-aw td {
    background: #fff5f5 !important;
}

.theme-light-mode .pending-row-myk td {
    background: #f6f7f8 !important;
}

.section-header, .section-header h1, .section-header h2, .compact-header, .compact-header h2 { outline: none !important; box-shadow: none !important; border: none !important; }
.section-header:focus, .section-header h1:focus, .section-header h1:focus-visible, .compact-header:focus, .compact-header h2:focus { outline: none !important; box-shadow: none !important; border: none !important; }



.nav-action-row { margin-top: .35rem; }
.nav-action-btn { width: 100%; text-align: left; cursor: pointer; }
.account-modal { width: min(560px, 100%) !important; }
.admin-reset-list { display: grid; gap: .65rem; margin-top: .8rem; }
.admin-reset-row { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:.75rem .85rem; border:1px solid rgba(148,163,184,.18); border-radius:14px; background:rgba(255,255,255,.03); }
.admin-reset-name { font-weight:700; }
.admin-reset-role { color:#94a3b8; font-size:.82rem; margin-top:.15rem; }


/* --- 2026-04-19: bessere Lesbarkeit im Arbeitsbereich --- */
.desktop-top-grid label,
.status-label,
.file-row .custom-input,
.top-line-block .custom-input,
.top-tripno-block .custom-input {
    font-weight: 700;
}

.desktop-top-grid label {
    color: #dbe9f8;
    font-size: .95rem;
    letter-spacing: .01em;
}

.file-row .custom-input,
.top-line-block .custom-input,
.top-tripno-block .custom-input,
.compact-upload-btn,
.workspace-load-btn,
.inline-action-btn {
    min-height: 56px;
}

.file-row .custom-input,
.top-line-block .custom-input,
.top-tripno-block .custom-input {
    font-size: 1rem;
    border-color: rgba(129, 161, 191, 0.34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.compact-upload-btn,
.workspace-load-btn {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
    border-radius: 18px !important;
}

.workspace-load-btn {
    box-shadow: 0 14px 28px rgba(215, 38, 15, 0.22);
}

.status-tile {
    background: linear-gradient(180deg, rgba(16, 29, 44, 0.98) 0%, rgba(10, 21, 33, 0.98) 100%);
    border-color: rgba(102, 141, 182, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.16);
}

.status-label {
    color: #b8cbe0;
    font-size: .9rem;
}

.status-tile strong {
    display: block;
    margin-top: .22rem;
    font-size: 1.04rem;
    font-weight: 800;
    color: #f7fbff;
}

.trip-card {
    padding: 1.15rem 1.2rem;
    border-color: rgba(98, 131, 162, 0.28);
}

.trip-main-row {
    grid-template-columns: 140px minmax(0, 1fr) 320px;
    gap: 1.15rem;
}

.trip-line-box,
.trip-route-box {
    min-width: 0;
}

.trip-line {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.trip-number {
    color: #d7e6f7;
    font-size: 1rem;
    font-weight: 700;
}

.trip-route-line,
.selected-route-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    flex-wrap: wrap;
}

.trip-route,
.selected-route-main {
    font-size: 1.08rem;
    font-weight: 800;
    color: #f9fbff;
}

.trip-meta,
.selected-route-meta {
    display: none;
}

.trip-time-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .42rem .8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(34, 76, 118, 0.96) 0%, rgba(24, 56, 89, 0.96) 100%);
    border: 1px solid rgba(116, 166, 221, 0.44);
    color: #f2f8ff;
    font-size: .89rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(7, 18, 31, 0.18);
}

.trip-badges {
    gap: .65rem;
}

.trip-badge {
    min-height: 40px;
    padding: .55rem .85rem;
    border-radius: 14px;
    border: 1px solid rgba(116, 166, 221, 0.34);
    background: linear-gradient(180deg, rgba(25, 58, 92, 0.98) 0%, rgba(17, 40, 64, 0.98) 100%);
    color: #ffffff;
    font-size: .9rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(6, 15, 26, 0.16);
}

.trip-length-badge {
    border-color: rgba(160, 181, 203, 0.28);
    background: linear-gradient(180deg, rgba(29, 39, 52, 0.98) 0%, rgba(20, 29, 40, 0.98) 100%);
    color: #f2f6fb;
}

.selected-route-time {
    align-self: flex-start;
}

.inline-action-btn {
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .trip-main-row {
        grid-template-columns: 1fr;
    }

    .trip-badges {
        justify-content: flex-start;
    }
}

.theme-light-mode .desktop-top-grid label {
    color: #33465a;
}

.theme-light-mode .status-tile {
    background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
    border-color: rgba(179, 196, 213, 0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 24px rgba(38,50,63,.06);
}

.theme-light-mode .status-label {
    color: #5b6f84;
}

.theme-light-mode .status-tile strong,
.theme-light-mode .trip-route,
.theme-light-mode .selected-route-main {
    color: #243242;
}

.theme-light-mode .trip-number {
    color: #526578;
}

.theme-light-mode .trip-time-chip {
    background: linear-gradient(180deg, #eef5ff 0%, #e0ecfb 100%);
    border-color: rgba(156, 188, 223, 0.68);
    color: #224261;
    box-shadow: 0 10px 18px rgba(38,50,63,.05);
}

.theme-light-mode .trip-badge {
    background: linear-gradient(180deg, #eef5ff 0%, #deecff 100%);
    border-color: rgba(179, 204, 232, 0.8);
    color: #18354f;
    box-shadow: 0 10px 18px rgba(38,50,63,.05);
}

.theme-light-mode .trip-length-badge {
    background: linear-gradient(180deg, #f7f9fc 0%, #edf2f7 100%);
    border-color: rgba(208, 217, 226, 0.88);
    color: #243242;
}


/* --- 2026-04-19: Dashboard / Einstellungen / Login --- */
.sidebar-nav-shell {
    min-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-bottom-actions {
    padding: 0 1rem 1rem 1rem;
}

.sidebar-logout-btn {
    width: 100%;
    justify-content: center;
    font-weight: 800;
}

.settings-shell {
    display: grid;
    gap: 1rem;
}

.settings-hero-card,
.settings-panel-card {
    padding: 1.45rem;
}

.settings-summary-grid {
    margin-top: 1rem;
}

.settings-grid-two {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.settings-panel-head h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

.settings-panel-head p {
    margin: .35rem 0 0 0;
    color: #b8cbe0;
}

.settings-panel-kicker {
    color: #ff8b78;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .4rem;
}

.settings-form-grid {
    margin-top: 1rem;
}

.settings-action-row {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

.settings-save-btn,
.settings-reset-btn {
    font-weight: 800;
}

.settings-warning-box {
    margin-top: 1rem;
    border-color: rgba(255, 170, 92, 0.32);
}

.settings-reset-list {
    margin-top: 1rem;
}

.settings-reset-row {
    align-items: center;
}

.login-modern-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(232, 0, 28, 0.14), transparent 26%),
        radial-gradient(circle at bottom right, rgba(102, 141, 182, 0.18), transparent 24%),
        linear-gradient(180deg, #12161b 0%, #0f1317 100%);
}

.login-modern-card {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(118, 149, 179, 0.18);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    background: linear-gradient(180deg, rgba(26, 31, 37, 0.98) 0%, rgba(20, 25, 30, 0.98) 100%);
}

.login-modern-brand-panel {
    padding: 2.4rem 2.3rem;
    background:
        radial-gradient(circle at top left, rgba(232, 0, 28, 0.12), transparent 26%),
        linear-gradient(180deg, rgba(34, 41, 48, 0.98) 0%, rgba(24, 29, 34, 0.98) 100%);
    border-right: 1px solid rgba(118, 149, 179, 0.18);
}

.login-modern-logo-wrap {
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    margin-bottom: 1.4rem;
}

.login-modern-logo {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}

.login-modern-eyebrow {
    margin-bottom: .7rem;
}

.login-modern-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #f9fbff;
}

.login-modern-subtitle {
    margin-top: .85rem;
    max-width: 520px;
    color: #c8d6e5;
    font-size: 1rem;
    line-height: 1.6;
}

.login-modern-points {
    display: grid;
    gap: .8rem;
    margin-top: 1.5rem;
}

.login-modern-point {
    padding: .95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(118, 149, 179, 0.16);
    background: rgba(10, 18, 27, 0.42);
    color: #eff5ff;
    font-weight: 700;
}

.login-modern-form-panel {
    padding: 2.4rem 2.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(22, 27, 32, 0.98) 0%, rgba(17, 22, 28, 0.98) 100%);
}

.login-modern-form-kicker {
    color: #ff8b78;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-modern-form-title {
    margin-top: .55rem;
    font-size: 1.9rem;
    font-weight: 900;
    color: #f9fbff;
}

.login-modern-form-subtitle {
    margin-top: .4rem;
    color: #c1cfdd;
}

.login-modern-form {
    margin-top: 1.4rem;
    display: grid;
    gap: 1rem;
}

.login-modern-field-block label {
    color: #dce8f8;
    font-weight: 700;
}

.login-modern-input {
    min-height: 58px;
    font-size: 1rem;
}

.login-modern-status {
    margin-top: .2rem;
}

.login-modern-submit {
    min-height: 56px;
    font-size: 1rem;
    font-weight: 800;
    margin-top: .2rem;
}

.theme-dark-mode .section-card,
.theme-dark-mode .info-panel,
.theme-dark-mode .hero-card,
.theme-dark-mode .desktop-nav-inner,
.theme-dark-mode .desktop-header-card,
.theme-dark-mode .status-box,
.theme-dark-mode .workspace-tab,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .excel-filter-card,
.theme-dark-mode .excel-table-wrap,
.theme-dark-mode .release-entry {
    border-color: rgba(122, 151, 181, 0.22) !important;
}

.theme-dark-mode .section-card,
.theme-dark-mode .info-panel,
.theme-dark-mode .hero-card,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .excel-filter-card,
.theme-dark-mode .excel-table-wrap {
    box-shadow: 0 18px 36px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.02) !important;
}

.theme-dark-mode .desktop-nav-link,
.theme-dark-mode .workspace-tab,
.theme-dark-mode .status-box,
.theme-dark-mode .status-tile {
    background: linear-gradient(180deg, rgba(49, 56, 65, 0.96) 0%, rgba(40, 46, 54, 0.96) 100%) !important;
    color: #f2f6fb !important;
}

.theme-dark-mode .desktop-nav-link:hover,
.theme-dark-mode .workspace-tab:hover {
    border-color: rgba(217, 106, 111, 0.36) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.16) !important;
}

.theme-dark-mode .section-header p,
.theme-dark-mode .muted-text,
.theme-dark-mode .trip-meta,
.theme-dark-mode .status-label,
.theme-dark-mode .brand-subtitle,
.theme-dark-mode .desktop-nav-subtitle,
.theme-dark-mode .settings-panel-head p,
.theme-dark-mode .login-modern-form-subtitle,
.theme-dark-mode .login-modern-subtitle {
    color: #ced9e5 !important;
}

.theme-dark-mode .field-block label,
.theme-dark-mode .settings-panel-head h2,
.theme-dark-mode .section-header h1,
.theme-dark-mode .desktop-nav-title,
.theme-dark-mode .brand-title {
    color: #f9fbff !important;
}

.theme-light-mode .login-modern-shell {
    background:
        radial-gradient(circle at top left, rgba(232, 0, 28, 0.10), transparent 24%),
        radial-gradient(circle at bottom right, rgba(145, 176, 207, 0.16), transparent 24%),
        linear-gradient(180deg, #eef2f6 0%, #e8edf2 100%);
}

.theme-light-mode .login-modern-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
    border-color: rgba(186, 199, 214, 0.72);
    box-shadow: 0 24px 50px rgba(38,50,63,.10);
}

.theme-light-mode .login-modern-brand-panel,
.theme-light-mode .login-modern-form-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-color: rgba(186, 199, 214, 0.62);
}

.theme-light-mode .login-modern-title,
.theme-light-mode .login-modern-form-title {
    color: #243242;
}

.theme-light-mode .login-modern-subtitle,
.theme-light-mode .login-modern-form-subtitle,
.theme-light-mode .settings-panel-head p {
    color: #5d7083;
}

.theme-light-mode .login-modern-point {
    background: #f5f8fc;
    border-color: rgba(202, 214, 227, 0.84);
    color: #243242;
}

@media (max-width: 1100px) {
    .settings-grid-two,
    .login-modern-card {
        grid-template-columns: 1fr;
    }

    .login-modern-brand-panel {
        border-right: none;
        border-bottom: 1px solid rgba(118, 149, 179, 0.18);
    }
}

@media (max-width: 700px) {
    .login-modern-shell {
        padding: 1rem;
    }

    .login-modern-brand-panel,
    .login-modern-form-panel {
        padding: 1.4rem;
    }

    .login-modern-title {
        font-size: 1.6rem;
    }

    .sidebar-nav-shell {
        min-height: auto;
    }
}


/* --- 2026-04-19: dunkler Modus + Logo + Login-Fix --- */
.desktop-nav-logo-box {
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem .9rem;
    margin-bottom: .95rem;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(210, 219, 229, 0.9);
    box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

.desktop-nav-logo-box img {
    width: 100%;
    max-width: 210px;
    height: auto;
    display: block;
}

.desktop-header-logo-image {
    width: 210px !important;
    height: 64px !important;
    padding: .45rem .8rem !important;
    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(210, 219, 229, 0.9) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.12) !important;
}

.login-modern-card {
    grid-template-columns: minmax(420px, 1.08fr) minmax(360px, .92fr);
}

.login-modern-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-modern-logo-wrap {
    width: min(100%, 360px);
    height: 112px;
    padding: 1rem 1.25rem;
    justify-content: flex-start;
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(210, 219, 229, 0.9);
    box-shadow: 0 16px 30px rgba(0,0,0,.14);
}

.login-modern-logo {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-modern-form-panel {
    background: linear-gradient(180deg, rgba(28, 34, 40, 0.98) 0%, rgba(21, 26, 32, 0.98) 100%);
}

.login-modern-field-block label,
.login-modern-form-title,
.login-modern-form-subtitle,
.login-modern-title,
.login-modern-subtitle,
.login-modern-point {
    color: #f4f8fd !important;
}

.login-modern-input {
    background: rgba(56, 64, 74, 0.96) !important;
    color: #f4f8fd !important;
    border: 1px solid rgba(132, 161, 190, 0.30) !important;
    border-radius: 16px !important;
}

.login-modern-input::placeholder {
    color: #cad8e6 !important;
}

.login-modern-submit {
    background: linear-gradient(180deg, #f03b20 0%, #d7260f 100%) !important;
    color: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 24px rgba(215, 38, 15, 0.22) !important;
}

.theme-dark-mode .status-tile,
.theme-dark-mode .status-box,
.theme-dark-mode .trip-card,
.theme-dark-mode .section-card,
.theme-dark-mode .info-panel,
.theme-dark-mode .workspace-tab,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .excel-filter-card,
.theme-dark-mode .excel-table-wrap,
.theme-dark-mode .release-entry,
.theme-dark-mode .desktop-nav-inner,
.theme-dark-mode .desktop-header-card {
    color: #f5f8fc !important;
}

.theme-dark-mode .status-tile strong,
.theme-dark-mode .upload-box-real strong,
.theme-dark-mode .login-user-card strong,
.theme-dark-mode .admin-reset-name,
.theme-dark-mode .admin-reset-role,
.theme-dark-mode .section-subheader,
.theme-dark-mode .settings-panel-kicker,
.theme-dark-mode .settings-panel-head h2,
.theme-dark-mode .settings-panel-head p,
.theme-dark-mode .field-block label,
.theme-dark-mode .status-label,
.theme-dark-mode .desktop-nav-subtitle,
.theme-dark-mode .brand-subtitle,
.theme-dark-mode .muted-text,
.theme-dark-mode .section-header p,
.theme-dark-mode .info-panel li,
.theme-dark-mode .tab-pane-wrap,
.theme-dark-mode .status-box,
.theme-dark-mode .workspace-tab {
    color: #dfe9f5 !important;
}

.theme-dark-mode .status-tile strong,
.theme-dark-mode .settings-panel-head h2,
.theme-dark-mode .admin-reset-name,
.theme-dark-mode .section-header h1,
.theme-dark-mode .compact-header h2,
.theme-dark-mode .release-title,
.theme-dark-mode .brand-title,
.theme-dark-mode .desktop-nav-title {
    color: #f8fbff !important;
}

.theme-dark-mode .settings-panel-kicker {
    color: #ff9a8a !important;
}

.theme-dark-mode .custom-input {
    color: #f4f8fd !important;
}

.theme-dark-mode .custom-input::placeholder {
    color: #d4e0eb !important;
}

.theme-dark-mode .desktop-nav-logo-box,
.theme-dark-mode .desktop-header-logo-image,
.theme-dark-mode .login-modern-logo-wrap {
    background: rgba(255,255,255,.98) !important;
}

@media (max-width: 900px) {
    .desktop-header-logo-image {
        width: 180px !important;
        height: 58px !important;
    }

    .desktop-nav-logo-box img {
        max-width: 180px;
    }

    .login-modern-logo-wrap {
        width: min(100%, 320px);
        height: 98px;
    }
}


/* --- 2026-04-19: Logo-Flächen ruhiger machen --- */
.desktop-header-logo-image {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 190px !important;
    height: 58px !important;
}

.desktop-nav-logo-box,
.login-modern-logo-wrap {
    background: linear-gradient(180deg, rgba(210, 216, 223, 0.86) 0%, rgba(191, 199, 208, 0.86) 100%) !important;
    border: 1px solid rgba(146, 160, 176, 0.42) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,.08) !important;
}

.desktop-nav-logo-box {
    min-height: 70px;
}

.login-modern-logo-wrap {
    height: 104px;
}

.theme-dark-mode .desktop-header-logo-image {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.theme-dark-mode .desktop-nav-logo-box,
.theme-dark-mode .login-modern-logo-wrap {
    background: linear-gradient(180deg, rgba(198, 205, 213, 0.84) 0%, rgba(181, 190, 200, 0.84) 100%) !important;
    border-color: rgba(145, 160, 176, 0.34) !important;
}


.settings-textarea {
    min-height: 190px;
    resize: vertical;
}


.feedback-entry-list {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.feedback-entry-card {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(118, 149, 179, 0.20);
    background: rgba(8, 16, 24, 0.30);
}

.feedback-entry-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: .6rem;
    flex-wrap: wrap;
}

.feedback-entry-name {
    font-weight: 800;
    font-size: 1rem;
}

.feedback-entry-meta,
.feedback-entry-reply {
    color: #b9ccdf;
    font-size: .88rem;
}

.feedback-entry-text {
    white-space: pre-wrap;
    line-height: 1.55;
}

.theme-light-mode .feedback-entry-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-color: rgba(186, 199, 214, 0.62);
}

.theme-light-mode .feedback-entry-meta,
.theme-light-mode .feedback-entry-reply {
    color: #607385;
}


.settings-feedback-spotlight {
    border-color: rgba(215, 38, 15, 0.34) !important;
    box-shadow: 0 18px 36px rgba(215, 38, 15, 0.10), 0 18px 36px rgba(0,0,0,.16) !important;
}

.settings-feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.settings-feedback-message-block {
    margin-top: 1rem;
}

.settings-feedback-note {
    margin-top: 1rem;
    border-color: rgba(215, 38, 15, 0.24);
}

.settings-textarea-large {
    min-height: 220px;
}

.settings-primary-action {
    min-width: 220px;
}

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


/* --- 2026-04-20: mobile browser pass / responsive navigation --- */
.mobile-menu-toggle,
.mobile-sidebar-backdrop,
.mobile-sidebar-head {
    display: none;
}

@media (max-width: 960px) {
    html, body {
        overflow-x: hidden;
    }

    .desktop-style-shell {
        display: block !important;
        grid-template-columns: 1fr !important;
        padding: .75rem !important;
        gap: .75rem !important;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        position: fixed;
        top: .8rem;
        left: .8rem;
        z-index: 1101;
        border: none;
        border-radius: 14px;
        padding: .78rem 1rem;
        min-height: 48px;
        font-weight: 800;
        background: #263038;
        color: #f2f4f6;
        box-shadow: 0 14px 28px rgba(0,0,0,.24);
    }

    .desktop-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 320px);
        max-width: 320px;
        min-height: 100dvh;
        z-index: 1102;
        transform: translateX(-110%);
        transition: transform .22s ease;
        padding: 1rem .75rem 1.25rem !important;
        overflow-y: auto;
    }

    .desktop-sidebar.mobile-sidebar-open {
        transform: translateX(0);
    }

    .mobile-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(4, 10, 18, .62);
        border: 0;
    }

    .mobile-sidebar-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: .75rem;
        padding: .35rem .4rem .7rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    .mobile-sidebar-title {
        color: #f4f6f8;
        font-weight: 800;
        font-size: 1rem;
    }

    .mobile-sidebar-close {
        border: 0;
        border-radius: 12px;
        width: 42px;
        height: 42px;
        background: rgba(255,255,255,.08);
        color: #fff;
        font-size: 1.35rem;
        line-height: 1;
    }

    .desktop-header-wrap {
        padding-top: 3.8rem !important;
    }

    .desktop-header-card,
    .desktop-header-card-compact {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1rem !important;
        gap: .85rem !important;
        border-radius: 20px !important;
    }

    .desktop-header-brand {
        align-items: flex-start !important;
        gap: .75rem !important;
    }

    .desktop-header-logo {
        width: 48px !important;
        height: 48px !important;
        border-radius: 14px !important;
        flex: 0 0 auto;
    }

    .brand-title {
        font-size: 1.05rem !important;
        line-height: 1.2;
    }

    .brand-subtitle {
        font-size: .78rem !important;
        line-height: 1.35;
    }

    .desktop-header-chips {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem !important;
    }

    .header-chip,
    .header-ghost-btn {
        width: 100% !important;
        justify-content: center;
        min-height: 48px;
        border-radius: 14px !important;
    }

    .desktop-content {
        padding: .75rem 0 1.25rem 0 !important;
    }

    .section-card,
    .hero-card,
    .info-panel {
        border-radius: 18px !important;
        padding: 1rem !important;
    }

    .section-header h1,
    .hero-card h1 {
        font-size: 1.25rem !important;
        line-height: 1.25;
    }

    .section-header p {
        font-size: .88rem !important;
        line-height: 1.45;
    }

    .desktop-top-grid,
    .dashboard-grid,
    .status-grid,
    .template-grid,
    .form-grid,
    .workflow-grid,
    .excel-bottom-grid,
    .excel-form-grid-top,
    .excel-form-grid-bottom,
    .excel-filter-row,
    .whatsapp-row-grid,
    .whatsapp-three-col-grid,
    .settings-feedback-grid {
        grid-template-columns: 1fr !important;
    }

    .file-row {
        grid-template-columns: 1fr !important;
    }

    .top-load-btn-wrap,
    .compact-upload-btn,
    .workspace-load-btn {
        width: 100%;
    }

    .compact-upload-btn,
    .workspace-load-btn,
    .btn-primary,
    .btn-secondary,
    .inline-action-btn {
        min-height: 50px !important;
    }

    .inline-select-shell {
        grid-template-columns: 1fr 48px 48px !important;
    }

    .workspace-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .25rem;
        margin-inline: -.1rem;
    }

    .workspace-tab {
        flex: 0 0 auto;
        min-height: 46px;
        padding: .7rem .95rem;
        white-space: nowrap;
    }

    .tab-pane-wrap {
        padding-top: .85rem !important;
    }

    .tab-action-row,
    .excel-bottom-actions,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .trip-card {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .trip-main-row {
        grid-template-columns: 1fr !important;
        gap: .75rem !important;
    }

    .trip-route-line,
    .selected-route-main-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: .45rem !important;
    }

    .trip-badges {
        justify-content: flex-start !important;
    }

    .trip-line {
        font-size: 1.25rem !important;
    }

    .trip-route {
        font-size: .98rem !important;
    }

    .trip-time-chip {
        font-size: .82rem !important;
    }

    .workspace-trip-list {
        max-height: none !important;
    }

    .preview-table-wrapper,
    .excel-table-wrap {
        overflow: auto !important;
    }

    .app-table,
    .excel-pending-table {
        min-width: 720px;
    }

    .release-modal {
        width: 100% !important;
        max-height: 90dvh !important;
        border-radius: 18px !important;
        padding: 1rem !important;
    }

    .release-modal-head {
        gap: .75rem;
        align-items: flex-start;
    }

    .release-title {
        font-size: 1.15rem !important;
    }

    .login-modern-shell {
        padding: 1rem !important;
        min-height: 100dvh;
    }

    .login-modern-card {
        grid-template-columns: 1fr !important;
        border-radius: 20px !important;
        overflow: hidden;
    }

    .login-modern-brand-panel,
    .login-modern-form-panel {
        padding: 1.2rem !important;
    }

    .login-modern-title,
    .login-modern-form-title {
        font-size: 1.35rem !important;
    }

    .login-modern-submit {
        width: 100%;
        min-height: 50px;
    }
}

@media (max-width: 640px) {
    .desktop-header-chips {
        grid-template-columns: 1fr !important;
    }

    .page-shell,
    .central-workspace-shell {
        gap: .75rem !important;
    }

    .status-tile strong {
        font-size: .98rem !important;
    }

    .trip-badge {
        width: 100%;
        justify-content: center;
    }

    .meta-chip {
        min-width: 0 !important;
    }

    .compact-upload-btn,
    .workspace-load-btn,
    .login-modern-submit,
    .workspace-tab,
    .header-ghost-btn,
    .inline-action-btn {
        font-size: .95rem !important;
    }
}


/* --- 2026-04-20: mobile login focus pass --- */
.login-modern-submit {
    touch-action: manipulation;
}

@media (max-width: 820px) {
    .login-modern-shell {
        padding: calc(.9rem + env(safe-area-inset-top)) calc(.9rem + env(safe-area-inset-right)) calc(.9rem + env(safe-area-inset-bottom)) calc(.9rem + env(safe-area-inset-left)) !important;
        align-items: flex-start;
    }

    .login-modern-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        border-radius: 18px !important;
    }

    .login-modern-brand-panel {
        padding: 1rem 1rem .9rem !important;
        gap: .75rem;
    }

    .login-modern-logo-wrap {
        width: 76px !important;
        height: 76px !important;
        margin: 0 auto .4rem auto;
    }

    .login-modern-eyebrow,
    .login-modern-title,
    .login-modern-subtitle,
    .login-modern-form-head {
        text-align: center;
    }

    .login-modern-title {
        font-size: 1.18rem !important;
        margin-bottom: .35rem;
    }

    .login-modern-subtitle {
        font-size: .88rem !important;
        line-height: 1.45;
    }

    .login-modern-points {
        gap: .45rem;
    }

    .login-modern-point {
        padding: .7rem .8rem !important;
        border-radius: 14px !important;
        font-size: .85rem !important;
        line-height: 1.4;
    }

    .login-modern-form-panel {
        padding: 1rem !important;
    }

    .login-modern-form-title {
        font-size: 1.2rem !important;
    }

    .login-modern-form-subtitle {
        font-size: .85rem !important;
        line-height: 1.45;
    }

    .login-modern-form {
        gap: .85rem;
    }

    .login-modern-field-block {
        gap: .35rem;
    }

    .login-modern-field-block label {
        font-size: .82rem !important;
        font-weight: 800 !important;
    }

    .login-modern-input {
        min-height: 54px !important;
        font-size: 16px !important;
        padding: .9rem 1rem !important;
        border-radius: 14px !important;
    }

    .login-modern-submit {
        width: 100% !important;
        min-height: 54px !important;
        font-size: 1rem !important;
        border-radius: 14px !important;
    }

    .login-modern-status {
        font-size: .88rem !important;
    }
}

@media (max-width: 520px) {
    .login-modern-shell {
        padding: calc(.7rem + env(safe-area-inset-top)) calc(.7rem + env(safe-area-inset-right)) calc(.8rem + env(safe-area-inset-bottom)) calc(.7rem + env(safe-area-inset-left)) !important;
    }

    .login-modern-card {
        border-radius: 16px !important;
    }

    .login-modern-brand-panel {
        padding: .9rem .85rem .75rem !important;
    }

    .login-modern-points {
        display: none;
    }

    .login-modern-form-panel {
        padding: .9rem .85rem 1rem !important;
    }

    .login-modern-title,
    .login-modern-form-title {
        font-size: 1.08rem !important;
    }

    .login-modern-subtitle,
    .login-modern-form-subtitle {
        font-size: .82rem !important;
    }
}


/* --- 2026-04-20: server storage for WFW lists --- */
.server-dataset-box {
    margin-top: 1rem;
}

.server-dataset-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, auto);
    gap: .75rem;
    align-items: end;
    margin-top: .9rem;
}

.server-dataset-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .85rem;
}

.server-delete-btn {
    white-space: nowrap;
}

@media (max-width: 960px) {
    .server-dataset-actions,
    .server-dataset-meta {
        grid-template-columns: 1fr;
    }
}


/* --- 2026-04-20: notice banner and mail workflow --- */

.top-line-block .custom-input,
.top-tripno-block .custom-input,
.top-dienst-block .custom-input {
    width: 100%;
}

.app-global-notice {
    margin-bottom: 1rem;
    padding: .95rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(214, 38, 15, 0.12) 0%, rgba(214, 38, 15, 0.06) 100%);
    border: 1px solid rgba(214, 38, 15, 0.28);
    color: #f7fbff;
    font-weight: 700;
    line-height: 1.45;
}

.theme-light-mode .app-global-notice {
    color: #5e1f14;
    background: linear-gradient(180deg, rgba(215, 38, 15, 0.10) 0%, rgba(215, 38, 15, 0.05) 100%);
}

@media (max-width: 960px) {
    .app-global-notice {
        padding: .85rem .95rem;
        border-radius: 16px;
        font-size: .92rem;
    }
}


/* --- 2026-04-21: simpler WFW selection and clearer route display --- */
.dataset-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dataset-source-card {
    padding: 1rem !important;
}

.dataset-source-title {
    margin-bottom: .85rem;
}

.dataset-source-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .9rem;
}

.dataset-source-note {
    margin-top: .8rem;
    color: #c7d6e7;
    font-size: .88rem;
    line-height: 1.4;
}

.trip-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 1rem 0;
}

.app-global-notice {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(215, 38, 15, 0.24) 0%, rgba(215, 38, 15, 0.18) 100%) !important;
    border-color: rgba(255,255,255,.15) !important;
}

.theme-light-mode .app-global-notice {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(215, 38, 15, 0.82) 0%, rgba(180, 28, 10, 0.82) 100%) !important;
}

@media (max-width: 960px) {
    .dataset-source-grid,
    .trip-filter-grid {
        grid-template-columns: 1fr;
    }

    .dataset-source-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dataset-source-note {
        font-size: .84rem;
    }
}


.manual-copy-card {
    margin-top: 1rem;
}

.manual-copy-hint {
    margin-bottom: .75rem;
}

.manual-copy-textarea {
    min-height: 220px;
    resize: vertical;
    font-size: 16px;
    line-height: 1.45;
}

.manual-copy-actions {
    justify-content: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .manual-copy-textarea {
        min-height: 260px;
    }
}


/* --- 2026-04-21 evening patch: equal WFW controls, notes calendar and nav logout --- */
.dataset-source-card .field-block {
    min-width: 0;
}

.dataset-source-card .file-row,
.dataset-source-card .desktop-select-shell,
.dataset-source-card .custom-input,
.dataset-source-card .custom-select-input {
    width: 100%;
}

.dataset-source-card .file-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
}

.dataset-source-card .upload-button-label {
    min-width: 160px;
    justify-content: center;
}

.nav-logout-inline {
    justify-content: flex-start !important;
}

.notes-calendar-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-calendar-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.notes-calendar-list-wrap {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.notes-calendar-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.notes-calendar-row {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem .95rem;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}

.theme-light-mode .notes-calendar-row {
    background: rgba(15, 23, 42, .04);
    border-color: rgba(15, 23, 42, .08);
}

.redirect-note {
    margin: 1rem;
}

@media (max-width: 960px) {
    .notes-calendar-status-grid {
        grid-template-columns: 1fr;
    }

    .notes-calendar-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* v1.0.6: Kompakte Fahrten-Tabelle mit Mehrfachauswahl */
.trip-table-panel {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    overflow: hidden;
}

.trip-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .85rem;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
    background: rgba(241, 245, 249, .96);
}

.trip-table-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    color: #334155;
    font-size: .86rem;
}

.trip-table-hint {
    color: #64748b;
    font-size: .78rem;
}

.trip-table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .4rem;
}

.trip-table-scroll {
    max-height: 360px;
    overflow: auto;
}

.trip-select-table {
    width: 100%;
    min-width: 980px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.trip-select-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: .52rem .55rem;
    background: #e2e8f0;
    color: #334155;
    font-size: .75rem;
    font-weight: 800;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, .35);
}

.trip-select-table td {
    padding: .42rem .55rem;
    border-bottom: 1px solid rgba(226, 232, 240, .92);
    color: #1f2937;
    font-size: .84rem;
    vertical-align: middle;
}

.trip-table-row {
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

.trip-table-row:hover td {
    background: #f8fafc;
}

.trip-table-row.active-trip-row td {
    background: #fff7ed;
    box-shadow: inset 3px 0 0 #f97316;
}

.trip-table-row.checked-trip-row td {
    background: #ecfdf5;
}

.trip-check-col {
    width: 72px;
    text-align: center !important;
}

.trip-select-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #ef3b20;
    cursor: pointer;
}

.trip-line-cell,
.trip-number-cell {
    white-space: nowrap;
}

.trip-route-cell {
    min-width: 360px;
}

.trip-route-compact {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.theme-dark-mode .trip-table-panel {
    background: rgba(8, 18, 31, .96);
    border-color: rgba(148, 163, 184, .22);
}

.theme-dark-mode .trip-table-toolbar {
    background: rgba(15, 23, 42, .96);
    border-color: rgba(148, 163, 184, .20);
}

.theme-dark-mode .trip-table-summary,
.theme-dark-mode .trip-select-table td,
.theme-dark-mode .trip-route-compact {
    color: #e5edf7;
}

.theme-dark-mode .trip-table-hint {
    color: #9ca3af;
}

.theme-dark-mode .trip-select-table,
.theme-dark-mode .trip-select-table td {
    background: rgba(8, 18, 31, .98);
}

.theme-dark-mode .trip-select-table th {
    background: #111827;
    color: #e5edf7;
    border-color: rgba(148, 163, 184, .22);
}

.theme-dark-mode .trip-table-row:hover td {
    background: rgba(30, 41, 59, .95);
}

.theme-dark-mode .trip-table-row.active-trip-row td {
    background: rgba(124, 45, 18, .42);
}

.theme-dark-mode .trip-table-row.checked-trip-row td {
    background: rgba(6, 78, 59, .42);
}

@media (max-width: 900px) {
    .trip-table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .trip-table-actions {
        justify-content: stretch;
    }

    .trip-table-actions .btn {
        flex: 1 1 150px;
    }

    .trip-select-table {
        min-width: 820px;
    }

    .trip-table-scroll {
        max-height: 420px;
    }
}


/* v1.0.7: Fahrtenauswahl mit deutlicher Karten-Haptik und Markierung */
.trip-table-panel {
    background: rgba(248, 250, 252, .96);
    border: 1px solid rgba(37, 50, 65, .10);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.trip-table-toolbar {
    background: rgba(241, 245, 249, .98);
    border-bottom: 1px solid rgba(37, 50, 65, .10);
}

.trip-table-scroll {
    padding: .55rem .65rem .7rem;
    background: rgba(241, 245, 249, .58);
}

.trip-select-table {
    border-collapse: separate;
    border-spacing: 0 .46rem;
    background: transparent;
}

.trip-select-table th {
    border-bottom: 0;
    background: rgba(226, 232, 240, .96);
}

.trip-select-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.trip-select-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.trip-select-table td {
    padding: .62rem .6rem;
    background: #ffffff;
    border-top: 1px solid rgba(37, 50, 65, .08);
    border-bottom: 1px solid rgba(37, 50, 65, .08);
    transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.trip-select-table td:first-child {
    border-left: 1px solid rgba(37, 50, 65, .08);
    border-radius: 14px 0 0 14px;
    box-shadow: inset 4px 0 0 rgba(148, 163, 184, .35);
}

.trip-select-table td:last-child {
    border-right: 1px solid rgba(37, 50, 65, .08);
    border-radius: 0 14px 14px 0;
}

.trip-table-row:hover td {
    background: #f8fbff;
    border-color: rgba(59, 130, 246, .26);
}

.trip-table-row:hover td:first-child {
    box-shadow: inset 4px 0 0 rgba(59, 130, 246, .45);
}

.trip-table-row.active-trip-row td {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, .42);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .08);
}

.trip-table-row.active-trip-row td:first-child {
    box-shadow: inset 5px 0 0 #3b82f6, 0 10px 24px rgba(37, 99, 235, .08);
}

.trip-table-row.checked-trip-row td {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, .50);
    box-shadow: 0 12px 28px rgba(16, 185, 129, .12);
}

.trip-table-row.checked-trip-row td:first-child {
    box-shadow: inset 5px 0 0 #10b981, 0 12px 28px rgba(16, 185, 129, .12);
}

.trip-table-row.checked-trip-row.active-trip-row td {
    background: linear-gradient(90deg, rgba(236, 253, 245, 1), rgba(239, 246, 255, 1));
    border-color: rgba(16, 185, 129, .62);
}

.trip-check-col {
    width: 92px;
}

.trip-check-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-width: 56px;
    cursor: pointer;
}

.trip-check-state {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, .75);
    color: transparent;
    background: #f8fafc;
    font-size: .84rem;
    font-weight: 900;
    line-height: 1;
    transition: background .14s ease, color .14s ease, border-color .14s ease, transform .14s ease;
}

.trip-check-state.is-selected {
    color: #ffffff;
    background: #10b981;
    border-color: #10b981;
    transform: scale(1.04);
}

.trip-route-mainline {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.trip-route-compact {
    flex: 1 1 auto;
    min-width: 0;
}

.trip-state-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: .18rem .52rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .01em;
    white-space: nowrap;
}

.trip-state-badge.selected {
    color: #065f46;
    background: rgba(16, 185, 129, .16);
    border: 1px solid rgba(16, 185, 129, .35);
}

.trip-state-badge.active {
    color: #1d4ed8;
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .34);
}

.theme-dark-mode .trip-table-panel {
    background: rgba(15, 23, 42, .94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .20);
}

.theme-dark-mode .trip-table-scroll {
    background: rgba(7, 13, 23, .48);
}

.theme-dark-mode .trip-select-table,
.theme-dark-mode .trip-select-table td {
    background: transparent;
}

.theme-dark-mode .trip-select-table td {
    background: rgba(31, 41, 55, .92);
    border-color: rgba(148, 163, 184, .14);
}

.theme-dark-mode .trip-select-table td:first-child {
    box-shadow: inset 4px 0 0 rgba(148, 163, 184, .32);
}

.theme-dark-mode .trip-table-row:hover td {
    background: rgba(38, 55, 78, .96);
    border-color: rgba(96, 165, 250, .28);
}

.theme-dark-mode .trip-table-row.active-trip-row td {
    background: rgba(30, 64, 175, .24);
    border-color: rgba(96, 165, 250, .45);
}

.theme-dark-mode .trip-table-row.active-trip-row td:first-child {
    box-shadow: inset 5px 0 0 #60a5fa;
}

.theme-dark-mode .trip-table-row.checked-trip-row td {
    background: rgba(6, 78, 59, .46);
    border-color: rgba(52, 211, 153, .50);
}

.theme-dark-mode .trip-table-row.checked-trip-row td:first-child {
    box-shadow: inset 5px 0 0 #34d399;
}

.theme-dark-mode .trip-check-state {
    background: rgba(15, 23, 42, .95);
    border-color: rgba(148, 163, 184, .55);
}

.theme-dark-mode .trip-check-state.is-selected {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
}

.theme-dark-mode .trip-state-badge.selected {
    color: #bbf7d0;
    background: rgba(16, 185, 129, .18);
    border-color: rgba(52, 211, 153, .36);
}

.theme-dark-mode .trip-state-badge.active {
    color: #bfdbfe;
    background: rgba(96, 165, 250, .16);
    border-color: rgba(96, 165, 250, .34);
}

@media (max-width: 900px) {
    .trip-table-scroll {
        padding: .45rem;
    }

    .trip-select-table {
        min-width: 900px;
    }

    .trip-check-col {
        width: 78px;
    }

    .trip-route-mainline {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }
}


/* v1.0.11 Design-Politur: klarere Formfelder, Datumspicker und Serverstatus-Zeile */
.wfw-load-status-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: .95rem 1.15rem !important;
    border-radius: 18px !important;
}

.wfw-load-message {
    font-weight: 800 !important;
}

.wfw-load-trip-counter {
    display: inline-flex !important;
    align-items: center !important;
    gap: .28rem !important;
    white-space: nowrap !important;
    padding: .42rem .75rem !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, .07) !important;
    color: #1e293b !important;
    font-weight: 850 !important;
}

.theme-dark-mode .wfw-load-trip-counter {
    background: rgba(255, 255, 255, .10) !important;
    color: #f8fafc !important;
}

.app-date-input {
    min-height: 3.05rem !important;
    cursor: pointer !important;
}

.theme-light-mode .desktop-style-shell {
    background: #eef3f8 !important;
}

.theme-light-mode .section-card,
.theme-light-mode .inner-card,
.theme-light-mode .excel-card-block,
.theme-light-mode .tabs-workspace-card {
    border-color: rgba(148, 163, 184, .42) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08) !important;
}

.theme-light-mode .field-block label,
.theme-light-mode .compact-field-block label {
    color: #334155 !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
}

.theme-light-mode .custom-input,
.theme-light-mode .compact-text-input,
.theme-light-mode textarea.custom-input,
.theme-light-mode .desktop-select-shell,
.theme-light-mode .inline-select-shell {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #b7c4d4 !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 5px 14px rgba(15, 23, 42, .045) !important;
}

.theme-light-mode .custom-input::placeholder,
.theme-light-mode .compact-text-input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.theme-light-mode .custom-input:focus,
.theme-light-mode .compact-text-input:focus,
.theme-light-mode textarea.custom-input:focus,
.theme-light-mode .desktop-select-shell:focus-within,
.theme-light-mode .inline-select-shell:focus-within {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15), 0 8px 18px rgba(15, 23, 42, .08) !important;
    outline: none !important;
}

.theme-light-mode .desktop-select-arrow,
.theme-light-mode .inline-action-btn {
    color: #0f172a !important;
    border-left-color: rgba(100, 116, 139, .28) !important;
}

.theme-light-mode .btn,
.theme-light-mode button.btn {
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08) !important;
}

.theme-light-mode .trip-selection-haptic-panel .trip-table-scroll {
    background: linear-gradient(180deg, rgba(248, 250, 252, .96), rgba(241, 245, 249, .96)) !important;
    border: 1px solid rgba(148, 163, 184, .28) !important;
}

.theme-light-mode .trip-selection-haptic-panel .trip-click-row td {
    background: #ffffff !important;
    color: #1e293b !important;
}

.theme-light-mode .trip-selection-haptic-panel .trip-click-row:hover td {
    background: #eef6ff !important;
}

.theme-light-mode .trip-selection-haptic-panel .trip-click-row.selected-trip-row td {
    background: linear-gradient(90deg, #bfdbfe 0%, #e0ecff 100%) !important;
    color: #0b1f3a !important;
    border-color: #1d4ed8 !important;
}

@media (max-width: 760px) {
    .wfw-load-status-row {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    .wfw-load-trip-counter {
        white-space: normal !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .app-date-input {
        min-height: 3.25rem !important;
    }
}

/* v1.0.14 Archiv */
.archive-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.archive-table td {
    vertical-align: middle;
}
@media (max-width: 760px) {
    .archive-action-row {
        flex-direction: column;
        align-items: stretch;
    }
    .archive-action-row .btn {
        width: 100%;
    }
}


/* --- v1.0.16 Design-Schliff: einheitliche Flächen, Felder und Archiv-Benutzer --- */
:root {
    --aresog-card-bg: #ffffff;
    --aresog-card-bg-soft: #f8fafc;
    --aresog-border: #cbd5e1;
    --aresog-border-strong: #94a3b8;
    --aresog-text: #0f172a;
    --aresog-muted: #64748b;
    --aresog-accent: #d7260f;
    --aresog-accent-dark: #a91f11;
    --aresog-focus: #2563eb;
    --aresog-control-height: 48px;
}

.theme-light-mode .central-workspace-shell .section-card,
.theme-light-mode .tabs-workspace-card,
.theme-light-mode .excel-card-block,
.theme-light-mode .inner-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(148, 163, 184, .42) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .075) !important;
}

.theme-light-mode .section-header h1,
.theme-light-mode .section-header h2,
.theme-light-mode .excel-title,
.theme-light-mode .section-subheader {
    color: var(--aresog-text) !important;
    letter-spacing: -.01em !important;
}

.theme-light-mode .section-header p,
.theme-light-mode .excel-subtitle,
.theme-light-mode .dataset-source-note,
.theme-light-mode .muted-inline {
    color: var(--aresog-muted) !important;
}

.dataset-source-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
    align-items: stretch !important;
    gap: 1rem !important;
}

.dataset-source-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 255px !important;
    border-radius: 24px !important;
    padding: 1.1rem !important;
}

.dataset-source-card .field-block {
    min-height: 94px !important;
}

.dataset-source-title {
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    margin-bottom: .75rem !important;
    color: #172033 !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
}

.dataset-source-actions {
    margin-top: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .65rem !important;
}

.dataset-source-actions .btn,
.dataset-source-actions .compact-form-btn,
.dataset-source-actions .workspace-load-btn {
    width: 100% !important;
    min-height: var(--aresog-control-height) !important;
    justify-content: center !important;
    white-space: normal !important;
}

.theme-light-mode .dataset-source-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%) !important;
}

.theme-light-mode .dataset-source-card:first-child {
    border-left: 5px solid var(--aresog-accent) !important;
}

.theme-light-mode .server-dataset-box {
    border-left: 5px solid #334155 !important;
}

.file-row,
.desktop-select-shell,
.inline-select-shell {
    min-height: var(--aresog-control-height) !important;
}

.file-row {
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto) !important;
    align-items: stretch !important;
}

.file-row .upload-button-label,
.compact-upload-btn {
    min-height: var(--aresog-control-height) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.trip-filter-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
    gap: .8rem !important;
    align-items: stretch !important;
}

.field-block,
.compact-field-block,
.top-line-block,
.top-tripno-block,
.top-dienst-block {
    display: flex !important;
    flex-direction: column !important;
    gap: .38rem !important;
}

.field-block label,
.compact-field-block label {
    min-height: 20px !important;
    margin: 0 !important;
    color: #334155 !important;
    font-size: .84rem !important;
    font-weight: 900 !important;
}

.custom-input,
.compact-text-input,
select.custom-input,
textarea.custom-input,
.form-control.custom-input,
.app-date-input,
.inline-select-shell,
.desktop-select-shell {
    min-height: var(--aresog-control-height) !important;
    height: var(--aresog-control-height) !important;
    border-radius: 14px !important;
}

textarea.custom-input,
.notes-textarea {
    height: auto !important;
    min-height: 180px !important;
}

.theme-light-mode .custom-input,
.theme-light-mode .compact-text-input,
.theme-light-mode select.custom-input,
.theme-light-mode .desktop-select-shell,
.theme-light-mode .inline-select-shell {
    background: #ffffff !important;
    color: var(--aresog-text) !important;
    border: 1.5px solid var(--aresog-border) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 7px 17px rgba(15, 23, 42, .055) !important;
}

.theme-light-mode .custom-input:focus,
.theme-light-mode .compact-text-input:focus,
.theme-light-mode select.custom-input:focus,
.theme-light-mode .desktop-select-shell:focus-within,
.theme-light-mode .inline-select-shell:focus-within {
    border-color: var(--aresog-focus) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .14), 0 9px 20px rgba(15, 23, 42, .08) !important;
}

.theme-light-mode .inline-action-btn,
.theme-light-mode .desktop-select-arrow {
    min-height: calc(var(--aresog-control-height) - 2px) !important;
    height: calc(var(--aresog-control-height) - 2px) !important;
    background: #f1f5f9 !important;
    border-left: 1.5px solid var(--aresog-border) !important;
    color: #334155 !important;
}

.excel-form-grid-top,
.excel-form-grid-bottom {
    gap: .7rem !important;
    align-items: end !important;
}

.excel-form-grid-top {
    grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
}

.excel-form-grid-bottom {
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) minmax(170px, .75fr) minmax(170px, .75fr) !important;
}

.excel-form-grid-top .field-block,
.excel-form-grid-bottom .field-block {
    min-width: 0 !important;
}

.compact-form-btn,
.compact-mini-btn,
.bottom-action-label {
    min-height: var(--aresog-control-height) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.theme-light-mode .btn-primary,
.theme-light-mode .workspace-load-btn {
    background: linear-gradient(180deg, var(--aresog-accent) 0%, var(--aresog-accent-dark) 100%) !important;
    border: 1px solid rgba(127, 29, 29, .35) !important;
    color: #ffffff !important;
}

.theme-light-mode .btn-secondary,
.theme-light-mode .compact-form-btn,
.theme-light-mode .compact-mini-btn {
    background: linear-gradient(180deg, #f8fafc 0%, #e7edf4 100%) !important;
    color: #172033 !important;
    border: 1px solid rgba(148, 163, 184, .45) !important;
}

.theme-light-mode .excel-card-block {
    border-radius: 22px !important;
}

.theme-light-mode .excel-list-head-row {
    border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
    padding-bottom: .75rem !important;
    margin-bottom: .85rem !important;
}

.archive-table th:nth-child(5),
.archive-table td:nth-child(5) {
    min-width: 170px !important;
}

.archive-user-pill {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 210px !important;
    padding: .28rem .62rem !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, .08) !important;
    color: #172033 !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.theme-dark-mode .archive-user-pill {
    background: rgba(255, 255, 255, .12) !important;
    color: #ffffff !important;
}

.theme-dark-mode .dataset-source-card,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .trip-selection-haptic-panel {
    border-color: rgba(148, 163, 184, .24) !important;
}

.theme-dark-mode .field-block label,
.theme-dark-mode .compact-field-block label,
.theme-dark-mode .dataset-source-title {
    color: #e5edf7 !important;
}

@media (max-width: 1200px) {
    .excel-form-grid-top {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .excel-form-grid-bottom {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 960px) {
    .dataset-source-grid,
    .trip-filter-grid,
    .excel-form-grid-top,
    .excel-form-grid-bottom {
        grid-template-columns: 1fr !important;
    }

    .dataset-source-card {
        min-height: auto !important;
    }

    .dataset-source-actions {
        grid-template-columns: 1fr !important;
    }

    .file-row {
        grid-template-columns: 1fr !important;
    }
}

/* --- v1.0.17: Design-Finish + Wetterblock --- */
:root {
    --aresog-field-height: 48px;
    --aresog-radius: 16px;
    --aresog-soft-border: rgba(148, 163, 184, .34);
    --aresog-soft-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.dataset-source-grid,
.trip-filter-grid,
.excel-form-grid-top,
.excel-form-grid-bottom,
.whatsapp-row-grid {
    align-items: stretch !important;
}

.dataset-source-card,
.excel-card-block,
.excel-intro-card,
.notes-calendar-card,
.weather-card,
.status-box.info-message-box,
.excel-filter-card {
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .055) !important;
}

.theme-light-mode .dataset-source-card,
.theme-light-mode .excel-card-block,
.theme-light-mode .excel-intro-card,
.theme-light-mode .notes-calendar-card,
.theme-light-mode .weather-card,
.theme-light-mode .excel-filter-card,
.theme-light-mode .status-box.info-message-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    border-color: rgba(148, 163, 184, .28) !important;
}

.theme-dark-mode .dataset-source-card,
.theme-dark-mode .excel-card-block,
.theme-dark-mode .excel-intro-card,
.theme-dark-mode .notes-calendar-card,
.theme-dark-mode .weather-card,
.theme-dark-mode .excel-filter-card,
.theme-dark-mode .status-box.info-message-box {
    background: linear-gradient(180deg, rgba(30, 41, 59, .74) 0%, rgba(15, 23, 42, .74) 100%) !important;
    border-color: rgba(148, 163, 184, .18) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .14) !important;
}

.dataset-source-grid {
    grid-template-columns: repeat(2, minmax(340px, 1fr)) !important;
}

.dataset-source-card {
    min-height: 270px !important;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto !important;
    gap: .65rem !important;
}

.dataset-source-card .field-block {
    min-height: auto !important;
}

.dataset-source-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: .25rem !important;
}

.dataset-source-note {
    min-height: 44px !important;
    margin-top: .2rem !important;
}

.file-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 220px) !important;
    gap: .65rem !important;
}

.trip-filter-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
    gap: .82rem !important;
    margin-top: 1rem !important;
}

.custom-input,
.compact-text-input,
select.custom-input,
.form-control.custom-input,
.desktop-select-shell,
.inline-select-shell,
.app-date-input,
.file-row .upload-button-label,
.compact-form-btn,
.compact-mini-btn {
    min-height: var(--aresog-field-height) !important;
    height: var(--aresog-field-height) !important;
    border-radius: var(--aresog-radius) !important;
}

textarea.custom-input,
.notes-textarea {
    height: auto !important;
}

.desktop-select-shell,
.inline-select-shell {
    overflow: hidden !important;
}

.inline-select-shell .custom-input,
.desktop-select-shell .custom-input,
.desktop-select-shell select.custom-input {
    border: 0 !important;
    box-shadow: none !important;
    height: 100% !important;
    min-height: 100% !important;
}

.inline-action-btn,
.desktop-select-arrow {
    width: 48px !important;
    min-width: 48px !important;
    height: 100% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
}

.theme-light-mode .custom-input,
.theme-light-mode .compact-text-input,
.theme-light-mode .desktop-select-shell,
.theme-light-mode .inline-select-shell,
.theme-light-mode .app-date-input {
    background: #ffffff !important;
    color: #152033 !important;
    border: 1px solid #c9d4e2 !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.9), 0 8px 18px rgba(15, 23, 42, .045) !important;
}

.theme-light-mode .inline-action-btn,
.theme-light-mode .desktop-select-arrow {
    background: #eef3f8 !important;
    border-left: 1px solid #c9d4e2 !important;
    color: #172033 !important;
}

.theme-dark-mode .custom-input,
.theme-dark-mode .compact-text-input,
.theme-dark-mode .desktop-select-shell,
.theme-dark-mode .inline-select-shell,
.theme-dark-mode .app-date-input {
    background: rgba(51, 65, 85, .82) !important;
    color: #eef4fb !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: none !important;
}

.theme-dark-mode .inline-action-btn,
.theme-dark-mode .desktop-select-arrow {
    background: rgba(30, 41, 59, .88) !important;
    border-left: 1px solid rgba(148, 163, 184, .20) !important;
    color: #eef4fb !important;
}

.excel-form-grid-top {
    grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
}

.excel-form-grid-bottom {
    grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
}

.excel-form-grid-top .field-block,
.excel-form-grid-bottom .field-block,
.whatsapp-row-grid .field-block {
    min-width: 0 !important;
}

.excel-form-grid-bottom .compact-button-block .btn,
.excel-form-grid-top .compact-button-block .btn,
.whatsapp-row-grid .btn {
    width: 100% !important;
}

.trip-table-panel.workspace-trip-list {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.trip-table-toolbar {
    background: transparent !important;
    border: 0 !important;
}

.trip-table-scroll {
    background: transparent !important;
    border: 0 !important;
}

.trip-select-table th {
    background: transparent !important;
    border: 0 !important;
}

.trip-select-table td {
    border-left: 0 !important;
    border-right: 0 !important;
}

.weather-card {
    display: flex !important;
    flex-direction: column !important;
    gap: .95rem !important;
    padding: 1rem !important;
    border-radius: 22px !important;
}

.weather-card-head,
.weather-control-row {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: .85rem !important;
}

.weather-subtitle {
    color: #64748b !important;
    font-size: .86rem !important;
    margin-top: .15rem !important;
}

.theme-dark-mode .weather-subtitle {
    color: #aab6c7 !important;
}

.weather-region-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 54px !important;
    padding: .36rem .7rem !important;
    border-radius: 999px !important;
    background: rgba(215, 38, 15, .12) !important;
    color: #d7260f !important;
    font-weight: 950 !important;
}

.theme-dark-mode .weather-region-pill {
    background: rgba(255, 255, 255, .10) !important;
    color: #ffffff !important;
}

.weather-location-field {
    flex: 1 1 auto !important;
}

.weather-refresh-field {
    flex: 0 0 220px !important;
}

.weather-current-card {
    display: grid !important;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr) !important;
    gap: .85rem !important;
    align-items: stretch !important;
}

.weather-main-value,
.weather-metric-grid > div,
.weather-hint-box {
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    background: rgba(255, 255, 255, .62) !important;
}

.theme-dark-mode .weather-main-value,
.theme-dark-mode .weather-metric-grid > div,
.theme-dark-mode .weather-hint-box {
    background: rgba(15, 23, 42, .50) !important;
    border-color: rgba(148, 163, 184, .18) !important;
}

.weather-main-value {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: .25rem !important;
    padding: 1rem !important;
}

.weather-main-value span {
    font-size: 2rem !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    color: #172033 !important;
}

.theme-dark-mode .weather-main-value span {
    color: #ffffff !important;
}

.weather-main-value strong {
    font-size: 1.05rem !important;
}

.weather-main-value small {
    color: #64748b !important;
    font-weight: 700 !important;
}

.theme-dark-mode .weather-main-value small {
    color: #aab6c7 !important;
}

.weather-metric-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .65rem !important;
}

.weather-metric-grid > div {
    padding: .85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: .22rem !important;
}

.weather-metric-grid span {
    color: #64748b !important;
    font-size: .76rem !important;
    font-weight: 800 !important;
}

.theme-dark-mode .weather-metric-grid span {
    color: #aab6c7 !important;
}

.weather-metric-grid strong {
    font-size: .98rem !important;
    color: #172033 !important;
}

.theme-dark-mode .weather-metric-grid strong {
    color: #ffffff !important;
}

.weather-hint-box {
    padding: .85rem 1rem !important;
    font-weight: 900 !important;
    color: #172033 !important;
}

.theme-dark-mode .weather-hint-box {
    color: #ffffff !important;
}

.weather-message {
    margin: 0 !important;
}

@media (max-width: 1200px) {
    .dataset-source-grid,
    .trip-filter-grid,
    .excel-form-grid-top,
    .excel-form-grid-bottom,
    .whatsapp-row-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .weather-current-card,
    .weather-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .dataset-source-grid,
    .trip-filter-grid,
    .excel-form-grid-top,
    .excel-form-grid-bottom,
    .whatsapp-row-grid,
    .weather-current-card,
    .weather-metric-grid {
        grid-template-columns: 1fr !important;
    }

    .file-row,
    .weather-control-row {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .weather-refresh-field {
        flex-basis: auto !important;
    }
}
