﻿ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

li {
    position: relative;
}

.hamburger-menu {
    display: inline-block;
}

.hamburger-icon {
    font-size: 30px;
    cursor: pointer;
}

.menu-links {
    display: none; /* Menü standardmäßig versteckt */
    position: absolute;
    background-color: var(--secondary-color);
    padding: 10px;
    right: 0; /* Links vom Hamburger-Icon */
    z-index: 9999; /* Hoher z-index, damit das Menü im Vordergrund ist */
    white-space: nowrap; /* Verhindert Umbrüche */
    -webkit-box-shadow: 0px 3px 23px -1px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 3px 23px -1px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

    .menu-links a {
        display: block;
        color: var(--tertiary-color);
        padding: 10px;
        text-decoration: none;
    }

        .menu-links a:hover {
            color: var(--main-color)
        }

/* Optional: Stile für die Navigation, wenn das Menü in eine größere Navigation integriert ist */
.nav-item {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.scan-button-flex {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
    flex-direction: column;
}

.mobile-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0px;
}

/*.filter-panel {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 10px;
    -webkit-box-shadow: 0px 3px 10px -1px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 3px 10px -1px rgba(0, 0, 0, 0.3);
}*/

.filter-toggle {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

    .filter-toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.filter-content {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

    .filter-content.show {
        display: flex;
    }

.mobile-filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

    .mobile-filter-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.mobile-filter-label {
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-color);
}

.mobile-dropdown {
    padding: 10px;
    border-radius: 10px;
    background-color: var(--tertiary-color);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

    .mobile-dropdown:focus {
        outline: none;
    }

.floating-filter-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 10000;
    -webkit-box-shadow: 0px 3px 10px -1px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 3px 10px -1px rgba(0, 0, 0, 0.3);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    font-size: 14px;
}

.filter-chip-close {
    margin-left: 5px;
    cursor: pointer;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: var(--main-color);
}

    input:checked + .toggle-slider:before {
        transform: translateX(26px);
    }

.filter-dropdown-item {
    flex-direction: column;
    align-items: stretch !important;
}










/* Ab hier kommt Scoped-CSS, das ursprünglich aus der DeviceAssignment.razor.css kam */






.labeled-progress-bar {
    position: relative;
    width: 100%;
    padding-top: 3px;
    flex-grow: 1;
}

    .labeled-progress-bar progress {
        width: 100%;
        height: 24px;
        border-radius: 4px;
    }

.progress-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: #333;
    font-weight: 500;
    width: 100%; /* gleich breit wie progress */
    text-align: center; /* zentrieren */
    white-space: nowrap; /* kein Umbruch */
}

progress[value] {
    --color: #90ee90;
    --background: lightgrey;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--secondary-color);
    width: 100%;
    height: 40px;
    border-radius: 10px;
    background: var(--background);
}

    progress[value]::-webkit-progress-bar {
        border-radius: 10px;
        background: var(--background);
    }

    progress[value]::-webkit-progress-value {
        border-radius: 10px;
        background: var(--color);
    }

    progress[value]::-moz-progress-bar {
        border-radius: 10px;
        background: var(--color);
    }

.labeled-progress-bar > label {
    color: var(--secondary-color);
    margin-bottom: -32px;
    z-index: 20;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
}

.bold {
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
}

input {
    margin: 0.4rem;
}

ol.collection {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

.mobile-nav-headline > h1 {
    display: none;
}

.packing-flex {
    display: flex;
    justify-content: space-between;
}

/* Mobile Filter Panel - standardmäßig ausgeblendet */
.mobile-filter-panel {
    display: none;
}

/* Tabular Layout – Desktop */
@media screen and (min-width: 737px) {
    .item-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .attribute-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(var(--column-width-min), 1fr));
    }

    .part-information {
        --column-width-min: 10em;
    }

    .part-id {
        --column-width-min: 10em;
    }

    .vendor-information {
        --column-width-min: 8em;
    }

    .vendor-information2 {
        --column-width-min: 8em;
    }

    .quantity {
        --column-width-min: 8em;
    }

    .cost {
        --column-width-min: 5em;
    }

    .duty {
        --column-width-min: 5em;
    }

    .freight {
        --column-width-min: 5em;
    }

    .collection {
        border-top: 0px solid var(--tertiary-color2);
    }

    .attribute {
        border-right: 1px solid var(--tertiary-color2);
        border-bottom: 1px solid var(--tertiary-color2);
        padding: 10px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-left: 1px solid var(--tertiary-color2);
    }

    .collection-container > .item-container:first-child {
        font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
        border-radius: 10px 10px 0px 0px;
        border: none;
    }

        .collection-container > .item-container:first-child .attribute {
            display: flex;
            align-items: center;
            padding: 10px;
            text-overflow: initial;
            overflow: auto;
            white-space: normal;
        }

    .vendor-information {
        text-align: right;
    }
}

/* Mobile: Filter, Kopfbereich usw. */
@media (max-width: 640.98px) {

    .packing-flex {
        display: none !important; /* Desktop Filter ausblenden */
    }

    .mobile-filter-panel {
        display: block; /* Mobile Filter einblenden */
    }

    .mobile-title {
        /*padding: 0 16px;*/
        padding: 0;
    }

    .mobile-nav-headline {
        background: var(--main-color);
        border-radius: 20px;
        margin: 0;
        padding: 10px 0;
        text-align: center;
        box-shadow: 0 6px 20px -8px rgba(0,0,0,.35);
    }

        .mobile-nav-headline > h1 {
            display: block;
            margin: 0;
            color: #fff;
        }

    .filter-panel {
        background: var(--secondary-color);
        border-radius: 15px;
        padding: 10px;
        margin-bottom: 5px;
        box-shadow: 0px 3px 15px -1px rgba(0, 0, 0, 0.2);
    }

    .filter-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 5px 0;
        border-bottom: 1px solid var(--tertiary-color2);
    }

    .filter-toggle-icon {
        transition: transform 0.3s ease;
        font-size: 18px;
    }

        .filter-toggle-icon.expanded {
            transform: rotate(180deg);
        }

    .filter-content {
        display: none;
        animation: slideDown 0.3s ease-in-out;
    }

        .filter-content.show {
            display: block;
        }

    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }

        to {
            opacity: 1;
            max-height: 500px;
        }
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 34px;
        margin: 0;
    }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--tertiary-color2);
        transition: 0.4s;
        border-radius: 34px;
    }

        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
        }

    input:checked + .toggle-slider {
        background-color: var(--main-color);
    }

        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }

    .mobile-filter-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        border-bottom: 1px solid var(--tertiary-color2);
    }

        .mobile-filter-item:last-child {
            border-bottom: none;
        }

    .mobile-filter-label {
        font-size: 16px;
        font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
        color: var(--tertiary-color);
        flex: 1;
    }

    .mobile-dropdown {
        width: 100%;
        padding: 12px;
        border: 2px solid var(--tertiary-color2);
        border-radius: 10px;
        background: white;
        font-size: 16px;
        margin-top: 10px;
    }

        .mobile-dropdown:focus {
            border-color: var(--main-color);
            outline: none;
        }

    .floating-filter-btn {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: var(--main-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        z-index: 100;
        color: white;
        font-size: 24px;
    }

        .floating-filter-btn:hover {
            transform: scale(1.1);
            transition: transform 0.2s ease;
        }

    .filter-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 15px;
    }

    .filter-chip {
        background: var(--main-color);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .filter-chip-close {
        cursor: pointer;
        font-size: 16px;
    }
}

/* Desktop: Mobile-spezifische Elemente ausblenden */
@media (min-width: 641px) {
    .mobile-filter-panel,
    .floating-filter-btn {
        display: none !important;
    }
}









.desktop-packlist-new,
.mobile-packlist-new {
    margin: 0;
    padding: 0;
}


ol.mobile-packlist-new {
    margin: 0;
    padding: 0;
}

.mobile-row {
    position: relative;
    display: block;
    padding: 10px 12px;
    padding-right: 10px; /* Wichtig: Nicht zu viel Padding rechts! Der gesamte Block bekomm das ..  */
    margin-bottom: 6px;
    border: 1px solid var(--tertiary-color2);
    border-radius: 14px;
    background: #fff;
}

.mobile-main {
    /* kein flex mehr nötig */

    display: block; /* volle Zeilenbreite einnehmen */
    min-width: 0;
    width: 100%;
}













/* Stapel der beiden Pills oben rechts */
.mobile-badges {
    position: absolute;
    top: 10px;
    right: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* Der originale blau Badge */
.mobile-amount {
    /*padding: 4px 10px;*/
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 999px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Der NEUE, kleine Warn-Badge – gleiche Form & Größe */
.mobile-warning-badge {
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 999px;
    background: #f5b5b5; /* dezentes rot */
    color: #7b1e1e;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15); /* optional, wie der blaue */
}









/* normale Zusatzzeilen */
.secondary-line {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 2px;
}


.mobile-name {
    font-weight: 600;
}

/* Lagerinfo-Chip über volle Breite */
.warehouse-info {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 6px 8px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    white-space: normal;
    word-break: break-word;
}


/* Dezente Meta-Zeilen (Gewicht/Volumen, LastScan) */
.meta-line {
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--tertiary-color);
    opacity: 0.75;
}

/* LastScan leicht hervorgehoben */
.meta-lastscan {
    margin-bottom: 4px;
    font-style: italic;
}






/*.warehouse-info {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}*/

/* Dezente Warnkiste direkt darunter, gleiche Breite / Position */
/*.mobile-warning-chip {
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    display: block;
    background: #fff6f6;*/ /* sehr helles Rot */
/*border: 1px solid #f0c5c5;
    color: #7b1e1e;
    font-size: 0.85rem;
    box-shadow: none;*/ /* kein fetter Schatten */
/*}

.mobile-warning-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.mobile-warning-sub {
    font-weight: 400;
    opacity: 0.9;
}*/








.compact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.part-main {
    flex: 1;
    min-width: 0;
}

.main-line {
    font-weight: 600;
}

.secondary-line {
    font-size: 0.85rem;
    opacity: 0.8;
}

.part-amount {
    white-space: nowrap;
    margin-left: 0.75rem;
    display: flex;
    align-items: center;
}

    .part-amount .amount {
        font-weight: 600;
    }



/* Grid: 3 Spalten, 3 Reihen */
.packing-flex.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 8px 24px;
    align-items: end;
}

/* Standard: Checkbox + Label nebeneinander */
.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

    .filter-item input[type="checkbox"] {
        transform: scale(1.8);
    }

/* Gestapelt: Label oben, Control darunter (Sortierung / Subgruppe) */
.filter-item--stacked {
    flex-direction: column;
    align-items: flex-start;
}

    .filter-item--stacked .filter-select,
    .filter-item--stacked .rz-dropdown {
        width: 100%;
    }








/* Umbau auf mehrere Listen und Akkordeons */




.page-content {
    padding-top: 10px;
    padding-bottom: 150px; /* Höhe des Scan-Bereichs + etwas Luft */
}






.panel {
    margin-bottom: 12px;
    border-radius: 10px; /* weicher für mobile Optik */
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06); /* leichte Kontur für mehr Struktur */
}

    /* SUMMARY = Header des Panels */
    .panel > summary {
        list-style: none;
        cursor: pointer;
        padding: 12px 14px;
        font-weight: 600;
        font-size: 1.05rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* dezenter Abschnittshintergrund */
        background: #f7f9fb; /* leichte Grau-Blauton */
        border-bottom: 1px solid rgba(0,0,0,0.05);
        /* optischer Boost */
        letter-spacing: 0.2px;
    }

        /* iOS/Chrome Safari Marker entfernen */
        .panel > summary::-webkit-details-marker {
            display: none;
        }

        /* Hover für Desktop */
        .panel > summary:hover {
            background: #eef3f7;
        }

    /* Wenn Panel geöffnet ist → Header noch klarer abheben */
    .panel[open] > summary {
        background: #e8f1f7; /* etwas kräftiger */
        border-bottom-color: rgba(0,0,0,0.08);
    }






.panel-title {
    font-size: 14px;
}

.panel-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e5f3ff;
}

.panel-body {
    border-top: 1px solid #e0e0e0;
    /*padding: 8px 12px 10px;*/
    font-size: 13px;
}

.list-item {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .list-item:last-child {
        border-bottom: none;
    }






/* Zusätzlich gefundene Scans ohne Zuordnung */

.additional-articles-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 14px;
}

/* Grundbutton-Stil */
.btn-additional-articles {
    flex: 1;
    padding: 10px 6px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.25;
    cursor: pointer;
    border: none;
    white-space: normal;
    word-break: keep-all;
    text-align: center;
}

/* Primärer Button */
.btn-additional-primary {
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
}

/* Sekundär – neutral */
.btn-additional-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

/* Sekundär – destruktiv */
.btn-additional-danger {
    background: #f8e6e6;
    color: #8a1f1f;
    border: 1px solid #e3b1b1;
}

/* Optional: Visuelles Drücken */
.btn-additional-articles:active {
    transform: scale(0.97);
}











/* Scanhistorie (immer unten) */




.scan-history {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid #ddd;
    background: #ffffff;
    z-index: 100; /* über den Karten */
    padding: 6px 10px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.scan-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.scan-enter-btn {
    padding: 6px 12px;
    white-space: nowrap;
    height: 35px;
}

.scan-history-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scan-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scan-input {
    width: 100%;
}

.btn-small {
    height: 35px;
}

.scan-enter-button {
    width: 100%;
    justify-content: center;
    height: 32px;
}

.scan-error {
    min-height: 1.2rem; /* damit die UI nicht springt */
    font-size: 0.9rem;
}

/* Historie: horizontal scrollbar */
.history-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto; /* horizontales Scrollen */
    overflow-y: hidden;
    white-space: nowrap; /* nichts umbrechen */
    padding: 4px 0;
    scroll-behavior: smooth;
}

.history-item {
    flex: 0 0 auto; /* verhindert Umbruch */
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.scan-error {
    margin-top: 4px;
    font-size: 0.9rem;
}

/* Start/Stop unten, 50/50 */
/* Start/Stop schmaler, je 50 % Breite, blau aus btn-primary */
.scan-startstop-row {
    display: flex;
    gap: 6px;
    /*margin-top: 6px;*/
}



.scan-start-btn,
.scan-stop-btn {
    flex: 1 1 50%; /* je 50 % Breite */
    display: flex; /* damit wir sauber zentrieren können */
    align-items: center;
    justify-content: center;
    padding: 4px 0; /* vorher 6px – jetzt flacher */
    font-size: 0.85rem; /* etwas kleiner */
    height: 35px; /* genug Touch-Fläche, aber nicht so fett */
}
















@media (min-width: 737px) {
    .da-packlist-grid {
        display: grid;
        grid-template-columns: 60px /* Burger */
        minmax(220px, 3fr) /* Name */
        minmax(80px, 0.8fr) /* Anzahl */
        minmax(140px, 1.2fr) /* Standardlagerplatz */
        minmax(220px, 2fr) /* WarehouseInformation */
        minmax(80px, 0.8fr) /* Gewicht */
        minmax(80px, 0.8fr) /* Volumen */
        minmax(200px, 1.4fr); /* LastScan */
    }

        .da-packlist-grid .attribute {
            border-right: 1px solid var(--tertiary-color2);
            border-bottom: 1px solid var(--tertiary-color2);
            padding: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            border-left: 1px solid var(--tertiary-color2);
        }
}










/* 2025-09-23 NiBr Filter für Desktop; Erstmalig verwendet in WarehouseStoragePlaceArticleAssignment */



/* Container: 3–6 Spalten je nach Platz */
.filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(200px, 1fr));
    gap: 14px 18px;
    align-items: end;
    margin-bottom: 12px;
}

/* einzelnes Feld: Label oben, Control unten */
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* optional: leichtes Label-Tuning */
.filter-label {
    color: var(--tertiary-color);
    line-height: 1.2;
}

/* Checkbox-Felder: Label links, Box rechts oder darunter — hier: nebeneinander */
.filter-check {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Radzen-Dropdowns sollen die Spaltenbreite nutzen */
.filters .rz-dropdown, .filters .rz-dropdown * {
    max-width: 100%;
}

/* Radzen-Numerics für .input-form angepasst */
input.rz-inputtext.rz-numeric-input {
    margin: 0 !important;
}

/* Radzen-Callender breite angepasst */
.rz-calendar-view.rz-calendar-month-view {
    width: 100% !important;
}

div.rz-calender {
    width: 100% !important;
}

/* Kleine Screens: automatisch umbrechen */
@media (max-width: 1200px) {
    .filters {
        grid-template-columns: repeat(3, minmax(200px, 1fr));
    }
}

@media (max-width: 900px) {
    .filters {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
}

@media (max-width: 640px) {
    .filters {
        display: none;
    }
    /* deine mobile Variante übernimmt */
}

/* Button ganz rechts, bündig nach unten */
.filter-actions {
    justify-self: end;
    align-self: end;
}








.desktop-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .desktop-action-btn:hover:not(:disabled) {
        background-color: #2da3c7;
    }

    .desktop-action-btn:disabled,
    .desktop-action-btn[disabled] {
        background: #b0c7cf;
        color: #f0f0f0;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
        pointer-events: none; /* blockt wirklich jeden Klick */
        transition: none; /* keine Hover/Active-Animation */
    }

        .desktop-action-btn:disabled:hover,
        .desktop-action-btn:disabled:active,
        .desktop-action-btn:disabled:focus {
            background: #b0c7cf;
            color: #f0f0f0;
            box-shadow: none;
            outline: none;
            transform: none;
        }

.mobile-action-btn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.15);
}

    .mobile-action-btn:hover:not(:disabled) {
        background-color: #2da3c7;
    }

    .mobile-action-btn:disabled,
    .mobile-action-btn[disabled] {
        background-color: #b0c7cf;
        color: #f0f0f0;
        cursor: not-allowed;
        box-shadow: none;
        transform: none;
        pointer-events: none; /* <- blockt jedes Tap-Event */
        transition: none; /* keine Animation */
        -webkit-tap-highlight-color: transparent;
    }

        .mobile-action-btn:disabled:hover,
        .mobile-action-btn:disabled:active {
            background-color: #b0c7cf;
            transform: none;
        }



/* 2025-09-27 NiBr Tabelle für Massenartikelauswahl; Erstmalig verwendet in ArticleMassChooseComponent.razor */






/* ============ Breiteres Popup ============ */
/* Radzen Dialog */
.rz-dialog {
    width: 980px !important; /* Standardbreite */
    max-width: calc(100vw - 64px) !important; /* Randabstand */
}

@media (min-width: 1280px) {
    .rz-dialog {
        width: 1120px !important;
    }
    /* auf großen Screens */
}

.modal-dialog {
    /*2025-11-16 NiBr: Wieder auskommentiert, da es sonst an vielen Stellen schlecht aussieht.*/
    /*max-width: 980px;*/ /* gewünschte Breite */
    /*width: calc(100vw - 64px);*/ /* Seitenabstand */
}

.input-search-filter:disabled {
    background-color: #eee;
    color: #777;
    cursor: not-allowed;
}


@media (max-width: 640px) {
    .modal-dialog {
        padding-top: max(env(safe-area-inset-top), 6px); /* 2025-12-01 NiBr 7b79411a1b98444e84123d21417962c6: Mindestens 6px Padding oben, bei einem iPhone allerdings das, was notwendig ist, um die Notch abzubilden. */
        padding-right: 6px;
        padding-bottom: 6px;
        padding-left: 6px;
    }
}















/* ===== Mass-Select (nur mobile) ===== */
@media (max-width: 640px) {

    /* 2025-11-17 NiBr: Das Element vom Typen "main" soll in mobil keinen Rand bekommen; So haben wir mehr Displayfläche */
    main {
        margin: 0px !important;
    }

    .rz-dialog,
    .rz-dialog-wrapper,
    .rz-overlay,
    .rz-dialog-overlay {
        z-index: 9999 !important;
    }

    /* 1) Dialog: weniger Außenrand / volle Breite */
    .rz-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important; /* kein Außenabstand */
        border-radius: 0 !important; /* bündig am Rand */
    }

        .rz-dialog .rz-dialog-titlebar {
            padding-top: max(env(safe-area-inset-top), 6px); /* 2025-11-17 NiBr 7b79411a1b98444e84123d21417962c6: Mindestens 6px Padding oben, bei einem iPhone allerdings das, was notwendig ist, um die Notch abzubilden. */
            padding-right: 6px;
            padding-bottom: 6px;
            padding-left: 6px;
        }

        .rz-dialog .rz-dialog-content {
            padding: 6px 5px !important; /* weniger Innenabstand */
        }

    /* 2) & 3) Karten in mass-select kompakter */
    .mass-select {
        padding: 0 6px; /* näher an den Rand des Dialogs */
    }
        /* Karte selbst */
        .mass-select .ms-card {
            margin: 4px 0; /* weniger Abstand zwischen Karten */
            padding: 4px 12px; /* kompakter innen */
            border-radius: 14px; /* etwas weicher, aber platzsparend */
        }
        /* Falls du statt .ms-card andere Klassen hast,
     kannst du zusätzlich diese Fallback-Regel aktivieren: */
        /* .mass-select .card { margin:8px 0; padding:10px 12px; border-radius:14px; } */

        /* einzelne Zeilen/Paare innerhalb der Karte */
        .mass-select .ms-field {
            margin: 4px 0; /* weniger vertikaler Abstand je Feld */
        }

        .mass-select .ms-label {
            margin-bottom: 2px; /* Label dichter an den Wert */
            line-height: 1.2;
        }

        /* 4) Meta-Infos (Artikel/Ziel/Info) mit besserer Lesbarkeit */
        .mass-select .ms-meta {
            margin-bottom: 6px; /* Block-Abstand zu den Karten */
        }

            .mass-select .ms-meta > div {
                margin-bottom: 4px; /* mehr Luft zwischen Artikel/Ziel/Info */
            }
}


















/* 2025-11-25 NiBr Verfügbarkeiten */


.ag .filters {
    display: grid !important;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) minmax(240px, 1fr) auto;
    gap: 16px 20px;
    align-items: end; /* sorgt für gemeinsame Grundlinie */
}

/* Label + Control vertikal korrekt ausgerichtet */
.ag .filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    /* vereinheitlichte Höhe */
    .ag .filter-field input,
    .ag .filter-field .rz-dropdown,
    .ag .filter-field .rz-dropdown input,
    .ag .desktop-action-btn {
        height: 42px !important; /* gleiche Höhe für alle */
        line-height: 42px !important;
        box-sizing: border-box;
        margin: 0;
    }

        /* Radzen-DropDown korrekt vertikal ausrichten */
        .ag .filter-field .rz-dropdown .rz-dropdown-trigger {
            height: 42px !important;
            display: flex;
            align-items: center;
        }

/* Button bündig auf Linie */
.ag .filter-actions {
    align-self: end;
    justify-self: end;
}

/* Button nicht zu groß */
.ag .desktop-action-btn {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.desktop-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}



/* Legende unter dem Filterblock */
.ag .filter-legend {
    grid-column: 1 / -1; /* über komplette Breite der Grid-Zeile */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}

.ag .legend-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.ag .legend-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
    color: #333;
}

.ag .legend-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.ag .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* kleine Kreise für die Farben */
.ag .legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Farben an die bestehenden Zellen angelehnt */
.ag .legend-ok {
    background: #dff3df;
}

.ag .legend-low {
    background: #fff4cf;
}

.ag .legend-neg {
    background: #ffd8d6;
}

:root {
    --gantt-article: 210px; /* Artikelspalte etwas breiter */
    /* Rest bleibt wie gehabt */
    --gantt-cell: 1fr;
    --gantt-row-h: 46px;
    --lane-h: 22px;
    --lane-gap: 4px;
}

/* Rahmen & Panel */
.availability-wrapper {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 3px 10px -1px rgba(0,0,0,0.3);
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
}

.availability-grid {
    width: 100%; /* 0000 */

    position: relative;
    border: 1px solid var(--tertiary-color2);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px -1px rgba(0,0,0,0.15);
}

/* Kopfzeile */
.availability-head {
    display: grid;
    grid-template-columns: var(--gantt-article) repeat(auto-fit, minmax(0, var(--gantt-cell)));
}

/* Header-Zellen: Datum + Wochentag untereinander */
.head-day-cell {
    flex-direction: column; /* statt nur zentriert in einer Zeile */
    gap: 2px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.head-date {
    font-weight: 600;
}

.head-weekday {
    font-size: 0.8rem;
    color: #666;
}

.availability-empty {
    grid-column: 1 / -1; /* über die volle Breite des Grids */
    padding: 18px 16px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    background: #fff;
    border-top: 1px solid var(--tertiary-color2);
}

/* Datenzeile */
.availability-row {
    display: grid;
    grid-template-columns: var(--gantt-article) repeat(auto-fit, minmax(0, var(--gantt-cell)));
    width: 100%;
    position: relative;
    /* Gesamthöhe = Zahlenbereich + (Anzahl Lanes * (lane-h + gap)) + Unterabstand */
    min-height: calc(var(--gantt-row-h) + var(--booking-rows, 1) * (var(--lane-h) + var(--lane-gap)) + 8px);
}


.article-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 16px; /* mehr Luft links */
    padding-right: 12px; /* etwas Luft rechts */
    padding-top: 6px; /* vertikal entspannter */
    padding-bottom: 6px;
    border: 1px solid var(--tertiary-color2);
    font-weight: 600;
    background: #fff;
}


.day-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tertiary-color2);
    position: relative;
    padding-bottom: calc(var(--booking-rows, 1) * (var(--lane-h) + var(--lane-gap)));
}

/* Mengenfarben */
.v-ok {
    background: #dff3df;
    color: #0d572b;
}

.v-low {
    background: #fff4cf;
    color: #755f00;
}

.v-neg {
    background: #ffd8d6;
    color: #7a0b00;
}

/* Layer nur über dem Tagesbereich (rechts von der Artikelspalte) */
.bookings-layer {
    position: absolute;
    left: calc(var(--gantt-article) + 1px); /* +1px für die Gitterlinie, optional */
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none; /* klickt nicht die Balken, optional */
    /* box-sizing sorgt dafür, dass %-Breiten passen */
    box-sizing: border-box;
}


/* Buchungsbalken */
.booking {
    position: absolute;
    height: var(--lane-h);
    border-radius: 6px;
    background: #cfe8ff;
    color: #0b2a4a;
    padding: 2px 6px;
    font-size: .8rem;
    line-height: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    z-index: 5; /* über den Zahlen */
}


/* AG2 = Availability Group 2 = Transponierte Listenansicht */
/* Prefix ag2 = Availability Grid 2 (transponiert) */

.ag2 .ag2-grid {
    display: grid;
    width: 100%;
}

/* Kopf */
.ag2 .ag2-head {
    border: 1px solid var(--tertiary-color2);
    border-radius: 12px 12px 0 0;
    background: var(--secondary-color);
    box-shadow: 0 3px 10px -1px rgba(0,0,0,.08);
}

.ag2 .ag2-hcell {
    padding: 10px 12px;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
    color: var(--tertiary-color);
    border-right: 1px solid var(--tertiary-color2);
}

    .ag2 .ag2-hcell:last-child {
        border-right: none;
    }

/* Zeilen */
.ag2 .ag2-row {
    border-left: 1px solid var(--tertiary-color2);
    border-right: 1px solid var(--tertiary-color2);
}

    .ag2 .ag2-row:last-child {
        border-bottom: 1px solid var(--tertiary-color2);
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }

/* Zellen */
.ag2 .ag2-cell {
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--tertiary-color2);
    border-right: 1px solid var(--tertiary-color2);
}

    .ag2 .ag2-cell:last-child {
        border-right: none;
    }

/* Datum / Tag optisch ruhiger */
.ag2 .ag2-date {
    color: #444;
}

.ag2 .ag2-week {
    color: #666;
}

/* Mengen-Zellen mittig; Farbklassen kommen aus v-ok / v-low / v-neg */
.ag2 .ag2-qty {
    text-align: center;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
}


/* Farben auch für transponierte Ansicht aktivieren */
.ag2-cell.v-ok,
.day-cell.v-ok {
    background: #dff3df;
    color: #0d572b;
}

.ag2-cell.v-low,
.day-cell.v-low {
    background: #fff4cf;
    color: #755f00;
}

.ag2-cell.v-neg,
.day-cell.v-neg {
    background: #ffd8d6;
    color: #7a0b00;
}







/* Custom-Dialoge */

.dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Fallback Z-Index 1000, damit wir grundsätzlich schonmal über anderen liegen*/
}

.dialog-overlay-high {
    z-index: 1001;
}

.dialog-overlay-higher {
    z-index: 1501;
}

.dialog-overlay-highest {
    z-index: 9999;
}


/* 2025-12-01 NiBr: Wenn wir bewusst das Fenster oben schweben lassen wollen, nehmen wir diese Klasse mit ins DIV rein. */
.dialog-overlay-top {
    align-items: flex-start; /* oben statt Mitte */
    padding-top: max(env(safe-area-inset-top), 15px);
}




/* Box insgesamt kompakter, weicher, typischer Card-Look */
.dialog-box {
    background: #fff;
    padding: 16px 18px 14px;
    border-radius: 14px;
    width: 95%;
    /* max-width: 320px; */
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

/* Text sauber, mit mehr Luft und besserer Zeilenhöhe */
.dialog-text {
    margin-bottom: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
}

.dialog-buttons {
    display: flex;
    gap: 6px;
}




/* Kamera-Dialog im Overlay-Stil */

.scan-dialog {
    width: min(100vw - 24px, 520px);
    margin: 0 auto;
    padding: 12px 16px 16px;
    border-radius: 16px;
}

.scan-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

    .scan-dialog-header .scan-dialog-title-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

.scan-dialog-title {
    font-size: 18px;
    font-weight: 600;
}

.scan-dialog-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
}

.scan-dialog-body {
    border-radius: 12px;
    overflow: hidden;
}

    /* hilft, dass das Video sauber einrastet */
    .scan-dialog-body video,
    .scan-dialog-body canvas,
    .scan-dialog-body img {
        display: block;
        width: 100%;
        height: auto;
    }
















/* 2025-11-18 NiBr: Hier beginnt der Code für die monatliche Zeiterfassung */
/* Mobile first: Hinweis anzeigen, Tabelle ausblenden */
.tt-monthly-mobile-warning {
    padding: 16px;
    font-size: 14px;
}

.tt-monthly-main {
    display: none;
    padding-top: 20px;
    /* Einheitliches Spaltenraster (15 Spalten) */
    --tt-cols: 60px /*  1 Tag */
    90px /*  2 Datum */
    70px /*  3 IN */
    70px /*  4 OUT */
    70px /*  5 DIFF */
    1.3fr /*  6 Vorgang */
    1.1fr /*  7 Zeitart */
    1fr /*  8 Schicht */
    70px /*  9 SOLL */
    70px /* 10 IST */
    70px /* 11 AZK */
    100px /* 12 Mehrungen */
    1.7fr /* 13 Kommentar */
    95px /* 14 Abgeschickt */
    95px; /* 15 Bestätigt */
}

/* Ab Desktopbreite: Tabelle anzeigen, Hinweis ausblenden */
@media (min-width: 1024px) {
    .tt-monthly-main {
        display: block;
    }

    .tt-monthly-mobile-warning {
        display: none;
    }
}

.tt-monthly-header {
    margin-bottom: 10px;
    font-weight: 600;
}

.tt-monthly-body {
}

/* === Tabellenbasis === */

.tt-monthly-body-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* Generische Grid-Zeile (alle nutzen dasselbe Raster) */
.tt-grid-row {
    display: grid;
    grid-template-columns: var(--tt-cols);
    column-gap: 4px;
    align-items: center;
}

/* Oberste Gruppen-Headerzeile (Tag/Datum/Erbrachte Zeit/…) */
.tt-header-group-row {
    composes: tt-grid-row;
    /* fallback, falls "composes" nicht unterstützt wird: */
    display: grid;
    grid-template-columns: var(--tt-cols);
    column-gap: 4px;
    align-items: center;
    background-color: #e9ecef;
    border-bottom: 1px solid #dcdcdc;
    font-size: 13px;
    font-weight: 600;
}

    .tt-header-group-row > div {
        padding: 6px 10px;
        border-right: 1px solid #dcdcdc;
        text-align: center;
    }

        .tt-header-group-row > div:last-child {
            border-right: none;
        }

/* Gruppen-Header gezielt auf Spalten legen */
.tt-hg-tag {
    grid-column: 1;
    text-align: left;
}

.tt-hg-datum {
    grid-column: 2;
    text-align: left;
}

.tt-hg-erbracht {
    grid-column: 3 / span 3;
}

.tt-hg-vorgang {
    grid-column: 6;
    text-align: left;
}

.tt-hg-zeitart {
    grid-column: 7;
    text-align: left;
}

.tt-hg-schicht {
    grid-column: 8;
    text-align: left;
}

.tt-hg-vertraglich {
    grid-column: 9 / span 3;
}

.tt-hg-mehrungen {
    grid-column: 12;
}

.tt-hg-kommentar {
    grid-column: 13;
    text-align: left;
}

.tt-hg-freigabe {
    grid-column: 14 / span 2;
}

/* Zweite Headerzeile mit Unterspalten */
.tt-header-sub-row {
    display: grid;
    grid-template-columns: var(--tt-cols);
    column-gap: 4px;
    align-items: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #dcdcdc;
    font-size: 11px;
    text-transform: uppercase;
}

    .tt-header-sub-row > div {
        padding: 4px 6px;
        border-right: 1px solid #e0e0e0;
        text-align: center;
        white-space: nowrap;
    }

        .tt-header-sub-row > div:last-child {
            border-right: none;
        }

/* Body-Zeilen (Tages-Summary + Detailzeilen) */
.tt-monthly-body-table-content-row,
.tt-day-row {
    display: grid;
    grid-template-columns: var(--tt-cols);
    column-gap: 4px;
    align-items: center;
    font-size: 13px;
}

    .tt-monthly-body-table-content-row > div,
    .tt-day-row > div {
        padding: 6px 10px;
        border-right: 1px solid #e0e0e0;
    }

        .tt-monthly-body-table-content-row > div:last-child,
        .tt-day-row > div:last-child {
            border-right: none;
        }

/* Zebra-Streifen: auf Tagesebene (Summary) */
.tt-monthly-body-table-content > .tt-day:nth-child(odd) > .tt-day-summary {
    background-color: #ffffff;
}

.tt-monthly-body-table-content > .tt-day:nth-child(even) > .tt-day-summary {
    background-color: #f9f9f9;
}

.tt-day-summary:hover {
    background-color: #eef7ff;
}

/* === Wochen-Schachtelung === */

.tt-week {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
}

    .tt-week > summary::-webkit-details-marker,
    .tt-day > summary::-webkit-details-marker {
        display: none;
    }

.tt-week-header {
    padding: 8px 12px;
    background-color: #f0f4f8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .tt-week-header::before {
        content: "▾";
        font-size: 14px;
        margin-right: 8px;
        color: #666;
        transform: translateY(1px);
    }

.tt-week:not([open]) > .tt-week-header::before {
    transform: rotate(-90deg) translateY(1px);
}

.tt-week .tt-monthly-body-table {
    border: none;
    border-top: 1px solid #e0e0e0;
    border-radius: 0;
}

.tt-monthly-body-table-content {
}

/* === Tages-Schachtelung === */

.tt-day {
    border-bottom: 1px solid #eaeaea;
}

    .tt-day:last-child {
        border-bottom: none;
    }

.tt-day-summary {
    cursor: pointer;
}

    .tt-day-summary > div:first-child {
        position: relative;
        padding-left: 22px;
    }

        .tt-day-summary > div:first-child::before {
            content: "▾";
            position: absolute;
            left: 6px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            color: #999;
        }

.tt-day:not([open]) > .tt-day-summary > div:first-child::before {
    transform: translateY(-50%) rotate(-90deg);
}

.tt-day-details {
    border-top: 1px dashed #e0e0e0;
    background-color: #fcfcfc;
    font-size: 12px;
}

.tt-day-row > div {
    padding-top: 0px;
    padding-bottom: 0px;
    border-top: none;
}



/* Container für die Buttons */
.tt-monthly-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

/* Linker Button */
.tt-actions-left button {
    /* falls du später Styles übernimmst, hier clean */
}

/* Rechte Button-Gruppe */
.tt-actions-right {
    display: flex;
    gap: 10px;
}






.tt-monthly-header {
    margin-bottom: 20px;
}

.tt-monthly-header-title {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

/* 3 Spalten: 1/3 – 1/3 – 1/3 */
.tt-monthly-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 40px;
    padding: 16px 20px;
    border-radius: 10px;
    background-color: #f5f7fa;
    border: 1px solid #e0e0e0;
}

.tt-header-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tt-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
}

    .tt-field label {
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

.tt-field-value {
    font-size: 13px;
    font-weight: normal; /* statt fett */
    text-align: right;
    color: #333;
}

/* kompaktere Inputs im Header */
.tt-input-small {
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}

/* deine globale .input hat margin-bottom – hier rausnehmen */
.tt-monthly-header-grid .input {
    margin-bottom: 0;
}




/* Alle Dropdowns auf max. 200px begrenzen */
.tt-monthly-header select {
    max-width: 200px;
    width: auto; /* wichtig: NICHT 100% */
    justify-self: end; /* Grid-Item an rechten Rand der Spalte */
    box-sizing: border-box;
}

    /* Für Firefox extra notwendig */
    .tt-monthly-header select option {
        text-align: right;
    }

/* Optional: gleiche Höhe für Header-Inputs */
.tt-input-small {
    height: 32px;
    padding: 4px 8px;
    font-size: 13px;
}



.tt-spacer-a {
    margin-top:20px;
}
 