﻿/* 2026-03-01 NiBr: 79e015d045aa41278358380b57bd6686 jaas.css: Zentral gekapselte CSS-Datei mit den allermeisten / perspektivisch allen Styles. */

/* ── Theme Toggle Button ── */

.jt-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--jt-border-default, #e6e6e6);
    background: var(--jt-bg-surface, #fff);
    color: var(--jt-fg-secondary, #555);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

    .jt-theme-toggle:hover {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        border-color: var(--main-color);
        color: var(--main-color);
    }

    .jt-theme-toggle .material-symbols-outlined {
        font-size: 20px;
    }

.jt-staging-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #b00000;
    color: #fff;
    border-bottom: 2px solid #ffffff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.jt-staging-banner__inner {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.jt-staging-banner__text {
    font-weight: 900;
    letter-spacing: 0.6px;
    font-size: 14px;
    text-transform: uppercase;
}

.jt-info-banner {
    position: sticky;
    top: 0;
    z-index: 999; /* unter Staging */
    width: 100%;
    background: linear-gradient(90deg, #2f9fb8 0%, #4db6cc 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

    /* Wenn Staging aktiv ist → nach unten schieben */
    .jt-info-banner.with-staging {
        top: 34px; /* Höhe deines Staging-Banners */
    }

.jt-info-banner__inner {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    gap: 10px;
}

.jt-info-banner__text {
    font-weight: 700;
    letter-spacing: 0.4px;
    font-size: 13px;
    text-transform: none; /* weniger alarmistisch */
}

.jt-info-banner__hint {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: help;
    user-select: none;
}

    .jt-info-banner__hint:hover {
        background: rgba(255,255,255,0.28);
    }



.jt-popover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: flex-start; /* statt center */
    justify-content: center;
    padding-top: 60px; /* Abstand vom oberen Rand */
    padding-left: 16px;
    padding-right: 16px;
    z-index: 9999;
}

.jt-popover {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 14px 14px 12px 14px;
}

.jt-popover-title {
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 8px;
}

.jt-popover-body {
    font-size: 13px;
    line-height: 1.35;
    white-space: pre-line;
    color: #222;
}

.jt-popover-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}






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: 15px 0;
    border-bottom: 1px solid var(--jt-border-subtle, rgba(0,0,0,0.06));
}

    .mobile-filter-item:last-child {
        border-bottom: none;
    }

.mobile-filter-label {
    font-size: 16px;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
    color: var(--jt-fg-default, #222);
    flex: 1;
}

.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: var(--jt-border-default, #ccc);
    transition: 0.4s;
    border-radius: 34px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: var(--jt-fg-inverse, white);
        transition: 0.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;
}

/* 2026-03-15 NiBr: Entfernt, da es das UI ziemlich aufbläht */
/*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: 10px;
        border-radius: 10px;
        background-color: var(--jt-bg-surface-2, #f8fafb);
    }

        .mobile-filter-item:hover {
            background-color: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        }

    .mobile-filter-label {
        font-weight: bold;
        font-size: 14px;
        color: var(--jt-fg-default, #222);
    }

    .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: 10px; /* Höhe des Scan-Bereichs + etwas Luft */
}

/* ── Page-Content: Desktop kein übermäßiges Bottom-Padding ── */

@media (min-width: 769px) {
    .page-content {
        padding-bottom: 10px;
    }
}



.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) */




/* ── Zeilen 1184–1259 ersetzen: scan-history + history-item ── */

.scan-history {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--jt-border-default, #ddd);
    background: var(--jt-bg-surface, #ffffff);
    z-index: 100;
    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;
    font-size: 0.9rem;
}

/* Historie: horizontal scrollbar */
.history-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 4px 0;
    scroll-behavior: smooth;
}

.history-item {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--jt-border-default, #ccc);
    border-radius: 4px;
    background: var(--jt-bg-surface, #fff);
    color: var(--jt-fg-default, #222);
    cursor: pointer;
}

    .history-item:hover {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        border-color: var(--main-color);
        color: var(--main-color);
    }

.scan-error {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--jt-fg-default, #222);
}

/* 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 */
}


/* ── Scan-History: Desktop kompakt, fixed, Sidebar-aware ── */

@media (min-width: 769px) {
    .scan-history {
        position: fixed;
        left: 280px;
        right: 10px;
        bottom: 10px;
        border: 1px solid var(--jt-border-default, #e6e6e6);
        border-radius: 14px;
        background: var(--jt-bg-surface, #ffffff);
        padding: 8px 16px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        margin-top: 0;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        z-index: 100;
    }

    .scan-history-inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .scan-controls {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 14px;
        width: 100%;
    }

    .scan-row {
        flex: 0 0 auto;
        gap: 8px;
    }

    .scan-error {
        flex: 0 0 auto;
        margin-top: 0;
        min-height: auto;
    }

    .history-list {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ── Desktop Tabelle (alpl-table) ──
   Genutzt von: WarehouseStoragePlaceArticleAssignment
   und allen zukünftigen Seiten mit tabellarischer Darstellung
   innerhalb einer alpd-card.
   ══════════════════════════════════════════════════════════ */

.alpl-desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 6px 40px 6px;
    max-width: none;
}

.alpl-table {
    border: 1px solid var(--jt-border-light, #efefef);
    border-radius: 10px;
    overflow: hidden;
}

.alpl-table-header {
    display: grid;
    align-items: center;
    padding: 8px 14px;
    background: var(--jt-bg-surface-3, #f5f7f9);
    font-size: 12px;
    font-weight: 700;
    color: var(--jt-fg-tertiary, #888888);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--jt-border-light, #efefef);
}

.alpl-table-row {
    display: grid;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--jt-border-light, #f5f5f5);
    font-size: 14px;
    color: var(--jt-fg-default, #333333);
    transition: background 0.12s ease;
}

    .alpl-table-row:last-child {
        border-bottom: none;
    }

    .alpl-table-row:not(.alpl-table-header):hover {
        background: var(--jt-bg-surface-hover, rgba(0,0,0,0.02));
    }

.alpl-cell-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}











@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;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.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;
    }











/* ── Tab-Untertitel (Desktop, innerhalb RadzenTabs) ── */

.jt-tab-title {
    text-align: center;
    font-size: 13px;
    color: var(--jt-fg-muted, #aaa);
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════════════
   Gemeinsame Detail-View Klassen (jt-*)
   Genutzt von: ArticleInstanceDetailView,
                ArticleLocationProtocolDetailView,
                und allen zukünftigen Detail-Seiten.
   ══════════════════════════════════════════════════════════ */

/* ── Desktop Layout Container ── */

.jt-detail-desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 6px 40px 6px;
    max-width: none;
    overflow-x: hidden;
}

/* ── Header mit Aktion (Edit/Add neben Headline) ── */

.jt-header-with-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jt-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--main-color);
    background: transparent;
    transition: all 0.15s ease;
}

    .jt-header-action:hover {
        background: rgba(128,128,128,0.1);
    }

    .jt-header-action .material-symbols-outlined {
        font-size: 20px;
    }

/* ── Editable Fields (hover-Stift bei editierbaren Zeilen) ── */

.jt-field-editable {
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 6px;
    padding: 4px 6px;
    margin: -4px -6px;
}

    .jt-field-editable:hover {
        background: rgba(128,128,128,0.06);
    }

.jt-edit-icon {
    font-size: 14px !important;
    vertical-align: middle;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--main-color);
}

.jt-field-editable:hover .jt-edit-icon {
    opacity: 0.6;
}

/* Spezialfall: customeredit-flex-label-input als editable */
.jt-field-editable.customeredit-flex-label-input {
    padding: 0;
    margin: 0 0 10px 0;
    border-radius: 8px;
}

.jt-field-editable .customeredit-flex-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .jt-field-editable .customeredit-flex-input .input-form {
        flex: 1;
        min-width: 0;
    }

    .jt-field-editable .customeredit-flex-input .jt-edit-icon {
        flex-shrink: 0;
        margin-left: 0;
    }

/* ── Text Box (Kommentar, Standortbeschreibung etc.) ── */

.jt-text-box {
    padding: 10px 12px;
    border: 1px solid var(--jt-border-light, #efefef);
    border-radius: 10px;
    background: var(--jt-bg-inset, #fafafa);
    font-size: 14px;
    line-height: 1.5;
    color: var(--jt-fg-default, #333333);
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

/* ── Text Box: Clamped Variants (max-height + overflow) ── */

.jt-text-box-clamped {
    max-height: 200px;
    overflow-y: auto;
}

.jt-text-box-clamped-lg {
    max-height: 300px;
    overflow-y: auto;
}




.jt-placeholder {
    color: var(--jt-fg-placeholder, #bbb);
    font-style: italic;
}

/* ── Subsection (Trennlinie innerhalb einer Spalte) ── */

.jt-subsection {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(128,128,128,0.1);
}

/* ── Empty Hint (Info-Box ohne Daten) ── */

.jt-empty-hint {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(128,128,128,0.04);
    color: var(--jt-fg-muted, #999999);
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* ── Badge (Zähler) ── */

.jt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-width: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--main-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* ── Entries Table (Scancodes, Artikel, Buchungen etc.) ── */

.jt-entries-table {
    border: 1px solid var(--jt-border-light, #efefef);
    border-radius: 10px;
    overflow: hidden;
}

.jt-entries-header {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--jt-bg-surface-3, #f5f7f9);
    font-size: 12px;
    font-weight: 700;
    color: var(--jt-fg-tertiary, #888888);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--jt-border-light, #efefef);
}

.jt-entries-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--jt-border-light, #f5f5f5);
    font-size: 14px;
    color: var(--jt-fg-default, #333333);
    transition: background 0.12s ease;
}

    .jt-entries-row:last-child {
        border-bottom: none;
    }

    .jt-entries-row:hover {
        background: var(--jt-bg-surface-hover, rgba(128,128,128,0.04));
    }

.jt-entries-row-clickable {
    cursor: pointer;
}

    .jt-entries-row-clickable:hover {
        background: var(--jt-bg-surface-active, rgba(128,128,128,0.06));
    }

.jt-entries-cell {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jt-entries-cell-action {
    width: 120px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Remove Button (inline in Tabellen) ── */

.jt-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--jt-status-danger-border, #e0d0d0);
    border-radius: 8px;
    background: transparent;
    color: var(--jt-status-danger-fg, #a94442);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .jt-remove-btn:hover {
        background: var(--jt-status-danger-bg, #fdf2f2);
        border-color: #d9534f;
    }

/* ── Remove Inline Icon (X neben Vorgängen etc.) ── */

.jt-remove-inline {
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    color: var(--jt-status-danger-fg, #a94442);
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

    .jt-remove-inline:hover {
        opacity: 1;
    }

/* ── Delete Button (Löschen-Aktion) ── */

.jt-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 2px solid #d9534f;
    border-radius: 10px;
    background: transparent;
    color: var(--jt-status-danger-fg, #d9534f);
    font-size: 14px;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .jt-delete-btn:hover {
        background: #d9534f;
        color: #fff;
    }

/* ── Actions Row + Divider (Desktop Footer) ── */

.jt-actions-divider {
    border: none;
    border-top: 1px solid rgba(128,128,128,0.12);
    margin: 4px 0 0 0;
}

.jt-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 4px;
}

/* ── Readonly Multiline ── */

.jt-readonly-multiline {
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--jt-border-input, var(--tertiary-color2));
    border-radius: 10px;
    background: var(--jt-input-bg, #fff);
    color: var(--jt-input-text, var(--tertiary-color));
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
    cursor: default;
    opacity: 0.7;
}


/* ══════════════════════════════════════════════════════════
   Gemeinsame Card-Klassen (jt-card-*)
   Genutzt von: ArticleLocationProtocolDetailView,
                TimeTrackingPresetsTabComponent,
                und allen zukünftigen Seiten mit Cards.
   ══════════════════════════════════════════════════════════ */

.jt-card {
    background: var(--jt-bg-surface, #fff);
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.jt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--jt-border-light, #f0f0f0);
    background: var(--jt-bg-surface-3, #f5f7f9);
}

.jt-card-title {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jt-fg-default, #333);
}

.jt-card-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--main-color, #3bb0c9);
    border-radius: 99px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.jt-card-body {
    padding: 14px 18px;
}

.jt-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jt-fg-tertiary, #888);
}

/* ══════════════════════════════════════════════════════════
   Gemeinsame Suchbereich-Klassen (jt-search-*)
   Genutzt von: ArticleLocationProtocolsPage,
                TimeTrackingPresetsTabComponent,
                und allen zukünftigen Seiten mit Suche.
   ══════════════════════════════════════════════════════════ */

.jt-search-card {
    padding: 0 !important;
    overflow: hidden;
}

.jt-search-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

    .jt-search-toggle:active {
        background: var(--jt-bg-surface-active, rgba(0, 0, 0, 0.03));
    }

.jt-search-toggle-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.jt-search-toggle-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--jt-fg-default, #333);
}

.jt-search-toggle-icon {
    font-size: 1.4rem;
    color: var(--jt-fg-muted, #999);
    transition: transform 0.2s;
}

.jt-filter-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--main-color, #3bb0c9);
    border-radius: 99px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.jt-search-body {
    padding: 0 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--jt-border-light, #f0f0f0);
    padding-top: 14px;
}

.jt-search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jt-search-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jt-fg-tertiary, #888);
}

.jt-search-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--jt-input-border, #ddd);
    border-radius: 8px;
    background: var(--jt-input-bg, #fafafa);
    color: var(--jt-input-text, #333);
    transition: border-color 0.15s;
    box-sizing: border-box;
}

    .jt-search-input:focus {
        outline: none;
        border-color: var(--main-color, #3bb0c9);
        box-shadow: 0 0 0 3px var(--jt-input-focus-ring, rgba(100, 196, 221, 0.25));
        background: var(--jt-input-bg, #fff);
    }

    .jt-search-input::placeholder {
        color: var(--jt-input-placeholder, #bbb);
    }

.jt-search-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.jt-result-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--jt-fg-muted, #999);
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════
   Gemeinsame Filter-Grid-Klassen (jt-filter-*)
   Desktop-Filterbereich innerhalb Cards.
   ══════════════════════════════════════════════════════════ */

.jt-filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px 20px;
    align-items: start;
}

.jt-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}














/* 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 */
    105px /*  2 Datum */
    70px /*  3 IN */
    70px /*  4 OUT */
    70px /*  5 DIFF */
    1.3fr /*  6 Vorgang */
    1fr /*  7 Schicht */
    34px /*  8 R */
    70px /*  9 SOLL */
    70px /* 10 IST */
    70px /* 11 AZK */
    100px /* 12 Mehrungen */
    1.7fr /* 13 Kommentar */
    34px /* 14 K */
    160px; /* 15 Aktion */
}

/* 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;
}

.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-schicht {
    grid-column: 7;
    text-align: left;
}

/* NEU: Reise-Spalte (R) */
.tt-hg-reise {
    grid-column: 8;
    text-align: center;
}

/* Vertragliche Zeiten rutschen um 1 nach rechts */
.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-markierung {
    grid-column: 14;
    text-align: center;
}

.tt-hg-aktion {
    grid-column: 15;
}

/* 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;
        }

/* R und K optisch identisch */
.tt-travel-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 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;
}

/* Markierung */
.tt-monthly-body-table-content-row--marked {
    background-color: #c1e7f1 !important;
}

.tt-day--marked > .tt-day-details {
    background-color: #c1e7f1;
}

/* === 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-week-contract-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 16px;
    padding: 12px 14px;
    margin: 10px 0 14px 0;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fafafa;
}

.tt-week-contract-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.65;
    text-align: left;
}

.tt-week-contract-value {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px; /* oder 20px, wenn du es luftiger willst */
}

/* Linker Button */
.tt-actions-left button {
    /* falls du später Styles übernimmst, hier clean */
}

/* Rechte Button-Gruppe */
.tt-actions-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* VON / BIS weiter nach links ziehen */
.time-input {
    width: calc(100% - 8px);
    max-width: calc(100% - 8px);
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    display: block;
}

.tt-monthly-body-table-content-row > div:nth-child(3),
.tt-monthly-body-table-content-row > div:nth-child(4),
.tt-day-row > div:nth-child(3),
.tt-day-row > div:nth-child(4) {
    padding-left: 2px;
    padding-right: 10px;
    overflow: hidden;
}

    .tt-monthly-body-table-content-row > div:nth-child(3) .time-input,
    .tt-monthly-body-table-content-row > div:nth-child(4) .time-input,
    .tt-day-row > div:nth-child(3) .time-input,
    .tt-day-row > div:nth-child(4) .time-input {
        width: calc(100% + 9px);
        max-width: calc(100% + 9px);
        margin-left: -2px;
    }







.jt-info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 8px;
    border-radius: 999px;
    background: #2aa8c7; /* Jobtura-Blau; passt zu deinem Header */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    cursor: help;
    user-select: none;
}

.tt-field-value-with-info {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .tt-field-value-with-info span {
        font-variant-numeric: tabular-nums;
    }

.tt-placeholder {
    font-weight: 700;
    opacity: 0.6;
}



.tt-mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tt-mobile-stat {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 12px 12px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.tt-mobile-stat-head {
    display: flex;
    align-items: flex-start; /* WICHTIG */
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.tt-mobile-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    line-height: 1.2;
}

.tt-mobile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

/* Info-Badge kompakter für Mobile */
.jt-info-badge-compact {
    height: 16px;
    padding: 0 7px;
    font-size: 10px;
    line-height: 16px;
}




.tt-monthly-header {
    margin-bottom: 20px;
}

.tt-monthly-header-title {
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.tt-monthly-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 15px;
    align-items: start;
    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: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
}

.tt-field-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

    .tt-field-label 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;
}

.tt-dropdown {
    width: 100%;
    max-width: 100%;
}

    /* RadzenDropDown Container */
    .tt-dropdown .rz-dropdown {
        width: 100%;
        height: 34px;
        border-radius: 6px;
    }

    /* Radzen interne "Input"-Fläche */
    .tt-dropdown .rz-dropdown-label {
        text-align: right;
        /*line-height: 34px;
        font-size: 13px;*/
    }

    /* Optional: Pfeilbereich harmonisieren */
    .tt-dropdown .rz-dropdown-trigger {
        height: 34px;
    }

.tt-dropdown-month {
    width: 220px;
    max-width: 220px;
}

.tt-monthly-header-grid .rz-dropdown-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.tt-process-cell {
    display: flex;
}

.tt-process-button {
    width: 100%;
    text-align: left;
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 10px;
    border-radius: 4px;
}

.tt-process-empty {
    opacity: 0.6;
}

.tt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tt-modal {
    width: 520px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.tt-modal-header, .tt-modal-footer {
    padding: 12px 16px;
}

.tt-modal-body {
    padding: 16px;
}

.tt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.tt-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid #eee;
}

.tt-modal-close {
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
}

.tt-modal-title {
    font-weight: 600;
}


.tt-allowances-modal {
    width: 680px;
}

.tt-allowances-meta {
    padding: 10px 16px 0 16px;
}

.tt-allowances-meta-left {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.tt-allowances-meta-label {
    font-weight: 600;
}

.tt-allowances-meta-value {
    font-family: inherit;
}

.tt-allowances-grid {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 4px 12px; /* war 8px 12px */
    padding: 12px 16px; /* war 16px */
}

.tt-allowances-grid-header-left,
.tt-allowances-grid-header-right {
    font-weight: 700;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.tt-allowances-grid-header-right {
    text-align: right;
    padding-right: 10px; /* gleiche Innenkante wie Input-Padding */
}

.tt-allowances-name {
    padding: 2px 0;
}
/* war 4px 0 */

.tt-allowances-hours {
    display: flex;
    justify-content: flex-end;
}

.tt-allowances-input {
    width: 120px;
    text-align: right;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
}

/* optische Lücke ohne Input */
.tt-allowances-spacer {
    height: 10px;
}


.tt-modal-backdrop {
    z-index: 20000;
}

.tt-modal {
    z-index: 20001;
}

.tt-muted {
    color: #8a8a8a;
}

.btn-disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}
/* ============================= */
/* 2026-01-07 Monatszettel (Mobile + Tablet / Compact) */
/* ============================= */

/* Root: Platz nach unten (iOS Keyboard / Bottom Bars) */
.tt-monthly-root {
    padding-bottom: 140px;
}

/* Abstand unter der Tab-Icon-Leiste */
.tt-monthly-content {
    margin-top: 12px;
}

/* Sichtbarkeit wird im Razor per Switch geregelt; hier keine doppelten Regeln */
.tt-mobile {
    display: block;
}

.tt-desktop {
    display: block;
}

/* ============================= */
/* Mobile / Compact Container */
/* ============================= */

.tt-monthly-mobile {
    /* Schmaler Rand links/rechts für Mobile */
    padding: 0 6px;
    box-sizing: border-box;
}

/* ============================= */
/* Header / Filter Card */
/* ============================= */

.tt-mobile-header-card {
    background: #fff;
    border: 1px solid var(--tertiary-color2);
    border-radius: 16px;
    padding: 12px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 12px; /* Abstand zu Actions */
}

.tt-mobile-field {
    margin-bottom: 10px;
}

.tt-mobile-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tertiary-color);
}

.tt-mobile-dropdown {
    width: 100%;
}

.tt-mobile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    margin-top: 8px;
}

/* ============================= */
/* Actions (Mobile: nur Speichern oben) */
/* ============================= */

.tt-m-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px; /* Abstand zum Body */
}

    .tt-m-actions .tt-actions-left,
    .tt-m-actions .tt-actions-right {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .tt-m-actions .btn {
        flex: 1 1 140px;
    }

/* ============================= */
/* Week Card */
/* ============================= */

.tt-m-week {
    border: 1px solid var(--tertiary-color2);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    margin: 0 0 12px 0;
}

    /* Native Marker killen (WebKit) */
    .tt-m-week > summary::-webkit-details-marker,
    .tt-m-day > summary::-webkit-details-marker {
        display: none;
    }

/* Week Summary: eigener Pfeil + Titelzeile */
.tt-m-week-summary {
    cursor: pointer;
    padding: 12px 12px;
    padding-left: 34px; /* Platz für Pfeil */
    background: #f7f9fb;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: relative;
    list-style: none; /* native marker (Firefox) */
}

    .tt-m-week-summary::marker {
        content: "";
    }

    .tt-m-week-summary::before {
        content: "▾";
        position: absolute;
        left: 12px;
        top: 14px;
        font-size: 14px;
        color: #666;
        line-height: 1;
    }

/* Week Completed: leichtes Grün als Ampel-Effekt (Summary + Card) */
.tt-m-week.tt-m-week-complete {
    border-color: rgba(46, 160, 67, 0.35);
}

    .tt-m-week.tt-m-week-complete > .tt-m-week-summary {
        background: #e9f7ec;
    }

.tt-m-week:not([open]) > .tt-m-week-summary::before {
    transform: rotate(-90deg);
}

.tt-m-week-title {
    font-weight: 700;
}

.tt-m-week-range {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 2px;
}

.tt-m-week-contract {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: #fff;
}

.tt-m-week-contract-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
}

.tt-m-week-contract-label {
    font-weight: 600;
    opacity: 0.7;
}

.tt-m-week-contract-value {
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================= */
/* Day Cards */
/* ============================= */

.tt-m-days {
    padding: 10px 12px 12px;
}

.tt-m-day {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    margin: 0 0 10px 0;
}

/* Day Summary: eigener Pfeil + Inhalt */
.tt-m-day-summary {
    cursor: pointer;
    padding: 12px 12px;
    padding-left: 34px; /* Platz für Pfeil */
    position: relative;
    list-style: none; /* native marker (Firefox) */
}

    .tt-m-day-summary::marker {
        content: "";
    }

    .tt-m-day-summary::before {
        content: "▾";
        position: absolute;
        left: 12px;
        top: 14px;
        font-size: 14px;
        color: #666;
        line-height: 1;
    }

.tt-m-day:not([open]) > .tt-m-day-summary::before {
    transform: rotate(-90deg);
}

.tt-m-day-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tt-m-day-date {
    min-width: 140px;
}

.tt-m-day-weekday {
    font-weight: 700;
}

.tt-m-day-d {
    font-size: 0.9rem;
    opacity: 0.8;
}

.tt-m-day-kpis {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tt-m-chip {
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 999px;
    padding: 6px 10px;
    background: #fafafa;
    min-width: 74px;
    text-align: center;
}

.tt-m-chip-label {
    font-size: 0.70rem;
    opacity: 0.65;
    line-height: 1.0;
}

.tt-m-chip-value {
    font-weight: 800;
    line-height: 1.2;
}

.tt-m-day-bottom {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.tt-m-inline {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.tt-m-inline-label {
    font-weight: 700;
    opacity: 0.65;
}

.tt-m-inline-value {
    font-weight: 600;
    text-align: right;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-m-day-body {
    padding: 10px 10px 12px;
    border-top: 1px dashed rgba(0,0,0,0.12);
    background: #fcfcfc;
}

/* Sections im Day-Body */
.tt-m-section {
    margin-bottom: 12px;
}

.tt-m-section-title {
    font-weight: 800;
    margin-bottom: 0;
}

.tt-m-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.tt-m-section-diff {
    font-weight: 800;
    opacity: 0.75; /* wie tt-m-entry-diff */
    white-space: nowrap;
}


/* ============================= */
/* Mobile: Action Buttons stacked */
/* ============================= */

.tt-m-section-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}








/* ============================= */
/* Zeitfelder */
/* ============================= */

.tt-m-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
}

.tt-m-time-field {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 8px 10px;
    background: #fff;
}

.tt-m-time-label {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.tt-m-time-value {
    font-weight: 800;
}

.tt-m-time-input {
    width: 100%;
    height: 42px;
    font-size: 16px; /* iOS: verhindert Zoom */
}

.tt-m-fullbtn {
    width: 100%;
    height: 44px;
    font-size: 16px;
}

/* ============================= */
/* Entry Cards */
/* ============================= */

.tt-m-entry-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    padding: 10px 10px;
    background: #fff;
    margin-bottom: 10px;
}

.tt-m-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.tt-m-entry-type {
    font-weight: 800;
}

.tt-m-entry-diff {
    font-weight: 800;
    opacity: 0.75;
}

.tt-m-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 10px;
}

.tt-m-entry-field-wide {
    grid-column: 1 / -1;
}

.tt-m-entry-label {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.tt-m-entry-value {
    font-weight: 700;
}

.tt-m-entry-input {
    width: 100%;
    height: 42px;
    font-size: 16px;
}

/* ============================= */
/* Tablet Tuning (Compact) */
/* ============================= */

@media (min-width: 641px) and (max-width: 1023.98px) {

    /* Tablet darf etwas mehr Rand haben */
    .tt-monthly-mobile {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Header: Stats in 4 Spalten */
    .tt-mobile-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 12px;
    }

    /* Actions: eine Zeile */
    .tt-m-actions {
        flex-wrap: nowrap;
        align-items: center;
    }

        .tt-m-actions .tt-actions-left {
            flex: 0 0 auto;
        }

        .tt-m-actions .tt-actions-right {
            flex: 1 1 auto;
            justify-content: flex-end;
        }

        .tt-m-actions .btn {
            flex: 0 0 auto;
            min-width: 160px;
        }

    /* Week-Contract: 2 Spalten */
    .tt-m-week-contract {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 18px;
    }

    .tt-m-week-contract-row {
        padding: 2px 0;
    }

    /* Day-Top: weniger Wrap */
    .tt-m-day-date {
        min-width: 220px;
    }

    .tt-m-day-kpis {
        justify-content: flex-end;
        gap: 8px;
    }

    .tt-m-chip {
        min-width: 92px;
        padding: 6px 12px;
    }

    /* Zeitfelder: 4 Spalten */
    .tt-m-time-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 12px;
    }

    /* Entry-Grid: 3 Spalten */
    .tt-m-entry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 12px;
    }

    .tt-m-time-input,
    .tt-m-entry-input {
        height: 40px;
    }
}

/* ============================= */
/* 2026-01-07 Feintuning: KPIs unter Datum + linker Rand weg */
/* ============================= */

/* 1) Den linken „toten“ Rand nicht mehr auf den ganzen Summary-Block anwenden */
.tt-m-day-summary {
    padding-left: 12px; /* war 34px */
}

    /* Pfeil bleibt links – Position anpassen, weil wir padding-left reduziert haben */
    .tt-m-day-summary::before {
        left: 12px; /* bleibt sauber am Rand */
    }

/* 2) Nur die ERSTE Zeile (Wochentag/Datum) bekommt Einrückung wegen Pfeil */
.tt-m-day-top {
    display: flex;
    flex-direction: column; /* KPIs unter Datum */
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding-left: 22px; /* Platz für Pfeil nur hier */
}

/* Date-Block soll die volle Breite nehmen */
.tt-m-day-date {
    min-width: 0; /* war 140px -> verhindert komische Spaltenlogik */
}

/* 3) KPIs eine Zeile, direkt unter Datum, volle Breite */
.tt-m-day-kpis {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* eine Zeile erzwingen */
    justify-content: space-between;
    gap: 8px;
    margin-left: 0; /* sicherstellen: kein Versatz */
}

/* Chips: gleich breit, kompakt */
.tt-m-chip {
    flex: 1 1 0;
    min-width: 0; /* damit nicht umbricht */
    padding: 6px 8px;
}

/* Label/Value optisch etwas ruhiger */
.tt-m-chip-label {
    font-size: 0.68rem;
}

.tt-m-chip-value {
    font-size: 0.95rem;
}

/* ============================= */
/* Mobile: Eintragstypen (Produktiv / Pause) - FIXED für tt-m-entry-card */
/* ============================= */

.tt-m-entry-card {
    position: relative;
    overflow: hidden;
}

    /* Linke Akzentleiste */
    .tt-m-entry-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: rgba(0,0,0,0.10);
    }

/* Produktiv */
.tt-m-entry-card--work::before {
    background: rgba(46, 125, 50, 0.65);
}

.tt-m-entry-card--work .tt-m-entry-type-badge {
    background: rgba(46, 125, 50, 0.12);
    border-color: rgba(46, 125, 50, 0.22);
    color: rgba(46, 125, 50, 0.95);
}

/* Pause */
.tt-m-entry-card--break::before {
    background: rgba(245, 124, 0, 0.70);
}

.tt-m-entry-card--break .tt-m-entry-type-badge {
    background: rgba(245, 124, 0, 0.14);
    border-color: rgba(245, 124, 0, 0.25);
    color: rgba(245, 124, 0, 0.95);
}







.tt-m-chip {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
}

    .tt-m-chip:nth-child(1) { /* SOLL */
        background: rgba(33, 150, 243, 0.06);
    }

    .tt-m-chip:nth-child(2) { /* IST */
        background: rgba(76, 175, 80, 0.06);
    }

    .tt-m-chip:nth-child(3) { /* AZK */
        background: rgba(156, 39, 176, 0.06);
    }














/* =========================================================
   Absences Table (Desktop)
   - 2-level header (Group + Sub)
   - responsive grid like monthly table (mix of px + fr)
   ========================================================= */

.tt-absences-table {
    /* 13 Spalten: 1 Aktionen, 2 Art, 3 Start, 4 Ende, 5 Gesamt, 6 Betroffen, 7 Urlaub,
       8 Gutschreiben, 9 Abziehen, 10 Auswirkung, 11 Status, 12 Angefragt, 13 Bearbeitet */

    --tt-abs-cols: 44px /*  1 Aktionen */
    minmax(120px, 1.1fr) /*  2 Art */
    minmax(115px, 0.9fr) /*  3 Start */
    minmax(115px, 0.9fr) /*  4 Ende */
    72px /*  5 Gesamt */
    80px /*  6 Betroffen */
    72px /*  7 Urlaub */
    110px /*  8 Gutschreiben */
    110px /*  9 Abziehen */
    minmax(120px, 1.0fr) /* 10 Auswirkung */
    90px /* 11 Status */
    110px /* 12 Angefragt */
    110px; /* 13 Bearbeitet */

    --tt-abs-grid-gap: 4px;
    --tt-abs-menu-size: 34px;
}

/* optional: verhindert “Seite wird breiter als Viewport” */
.tt-absences-table {
    max-width: 100%;
    overflow-x: auto;
}

    /* Basis-Grid (Header + Body) */
    .tt-absences-table .tt-abs-grid {
        display: grid;
        grid-template-columns: var(--tt-abs-cols);
        column-gap: var(--tt-abs-grid-gap);
        align-items: center;
    }

    /* Header: Group row (H1) */
    .tt-absences-table .tt-header-group-row.tt-abs-grid {
        font-weight: 700;
    }

    /* Header-Zellen wie beim Monatszettel */
    .tt-absences-table .tt-header-group-row > div,
    .tt-absences-table .tt-header-sub-row > div {
        padding: 6px 10px;
        border-right: 1px solid #dcdcdc;
        text-align: center;
        white-space: nowrap;
    }

        .tt-absences-table .tt-header-group-row > div:last-child,
        .tt-absences-table .tt-header-sub-row > div:last-child {
            border-right: none;
        }

    /* Group header row (H1) bekommt die Monatszettel-Optik */
    .tt-absences-table .tt-header-group-row {
        background-color: #e9ecef;
        border-bottom: 1px solid #dcdcdc;
        font-size: 13px;
    }

    /* Sub header row (H2) */
    .tt-absences-table .tt-header-sub-row {
        background-color: #f5f5f5;
        border-bottom: 1px solid #dcdcdc;
        font-size: 11px;
        text-transform: uppercase;
    }

/* H1: Gruppenspalten platzieren (du brauchst dafür entsprechende Klassen im Razor) */
.tt-hg-abs-actions {
    grid-column: 1;
}

.tt-hg-abs-art {
    grid-column: 2;
    text-align: left;
}

.tt-hg-abs-zeitraum {
    grid-column: 3 / span 2;
    text-align: left;
}

.tt-hg-abs-tage {
    grid-column: 5 / span 3;
}

.tt-hg-abs-stunden {
    grid-column: 8 / span 2;
}

.tt-hg-abs-auswirkung {
    grid-column: 10;
    text-align: left;
}

.tt-hg-abs-bearb {
    grid-column: 11 / span 3;
}

/* Body rows */
.tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div {
    padding: 6px 10px;
    border-right: 1px solid #e0e0e0;
    font-size: 13px;
}

    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:last-child {
        border-right: none;
    }

    /* Zahlen-Spalten rechts + tabellarische Ziffern */
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(5),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(6),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(7),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(8),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(9) {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    /* Textspalten links */
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(2),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(3),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(4),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(10),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(11),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(12),
    .tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > div:nth-child(13) {
        text-align: left;
    }

/* Actions: Dropdown/ContextMenu darf nicht geclippt werden */
.tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid,
.tt-absences-table .tt-monthly-body-table-content-row.tt-abs-grid > .tt-abs-actions-cell {
    overflow: visible;
}

.tt-absences-table .tt-abs-actions-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-absences-table .tt-abs-menu-button {
    min-width: var(--tt-abs-menu-size);
    min-height: var(--tt-abs-menu-size);
    padding: 0;
}



/* ── Absences: Kontextmenü-Button (Hamburger pro Zeile) ── */

.tt-abs-menu-button {
    min-width: var(--tt-abs-menu-size, 34px) !important;
    min-height: var(--tt-abs-menu-size, 34px) !important;
    width: var(--tt-abs-menu-size, 34px) !important;
    height: var(--tt-abs-menu-size, 34px) !important;
    padding: 0 !important;
    border-radius: var(--jt-radius-sm, 8px) !important;
    border: 1px solid var(--jt-border-default, #e6e6e6) !important;
    background: var(--jt-bg-surface, #fff) !important;
    color: var(--jt-fg-secondary, #555) !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .tt-abs-menu-button:hover {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04)) !important;
        border-color: var(--main-color) !important;
        color: var(--main-color) !important;
    }

    .tt-abs-menu-button .rz-button-icon {
        font-size: 18px !important;
    }




/* =========================================================
   Mobile Abwesenheiten – Layout Tuning
   ========================================================= */

/* Auf sehr schmalen Screens: 1 Spalte statt 2 (sonst gequetscht) */
@media (max-width: 420px) {

    .tt-abs-mobile .tt-m-entry-grid {
        grid-template-columns: 1fr;
    }

    .tt-abs-mobile .tt-m-entry-field-wide {
        grid-column: 1 / -1;
    }
}

@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;
    }
}

/* Radzen ContextMenu: z-index global, nicht über CSS-Var in .tt-absences-table */
.rz-context-menu {
    z-index: 2000;
}


/* Radzen ContextMenu über allem */
.rz-context-menu {
    z-index: var(--tt-abs-z-contextmenu);
}

/* ---------------------------------
   Desktop Action Bar
--------------------------------- */

.tt-abs-actionbar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin: 6px 0 12px 0;
}

.tt-abs-actionbar-button {
    padding: 10px 16px;
}

/* ---------------------------------
   Mobile Abwesenheiten – Statusfarben
--------------------------------- */

/* Default (Fallback) */
.tt-m-entry-card {
    border-left: 4px solid #d1d5db; /* neutral grau */
}

/* Bestätigt */
.tt-m-entry-card--status-confirmed {
    border-left-color: #4CAF50; /* grün */
}

/* Offen */
.tt-m-entry-card--status-open {
    border-left-color: #FACC15; /* gelb */
}

/* Optional: Abgelehnt */
.tt-m-entry-card--status-rejected {
    border-left-color: #EF4444; /* rot */
}

/* Optional: Storniert */
.tt-m-entry-card--status-cancelled {
    border-left-color: #9CA3AF; /* grau */
}

.tt-m-entry-grid .tt-m-entry-value {
    font-variant-numeric: tabular-nums;
}

.tt-warning-box {
    background: #fff7ed;
    border: 1px solid #facc15;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}

.tt-warning-hint {
    font-size: 12px;
    color: #92400e;
    margin-bottom: 8px;
}

.tt-info-box {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}





/* Reisetag: Mobile Day-Card */
.tt-m-day.tt-m-day--travel > .tt-m-day-summary {
    background-color: rgba(255, 192, 203, 0.30);
}

.tt-m-day-summary--marked {
    background-color: #c1e7f1 !important;
}

.tt-m-day-body--marked {
    background-color: #c1e7f1;
}

/* Reisetag: Desktop (Zebra sicher übersteuern) */
.tt-day.tt-day--travel > .tt-day-summary {
    background-color: rgba(255, 192, 203, 0.30) !important;
}

/* Checkbox-Zeile */
.tt-travel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.tt-travel-checkbox {
    width: 18px;
    height: 18px;
}

.tt-travel-label {
    font-weight: 600;
    opacity: 0.85;
}

.tt-travel-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

    .tt-travel-col input {
        width: 18px;
        height: 18px;
    }


.tt-holiday {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14px;
    cursor: default;
}


.dialog-box-wide {
    max-width: 720px;
}

.mt-10 {
    margin-top: 10px;
}

.dialog-errorbox {
    margin-top: 6px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 0, 0.25);
    background: rgba(255, 0, 0, 0.05);
    max-height: 180px;
    overflow: auto;
    font-family: monospace;
    font-size: 12px;
}



.release-result-row {
    display: grid;
    grid-template-columns: auto 1fr; /* Label nur so breit wie nötig, Value beginnt direkt danach */
    gap: 4px;
    margin-top: 6px;
    align-items: baseline;
}

.release-result-label {
    font-weight: 600;
}

.release-result-value {
    justify-self: start; /* nicht nach rechts schieben */
    text-align: left; /* linksbündig */
    font-variant-numeric: tabular-nums;
}

.tt-changelog {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.85;
    user-select: none;
}

    .tt-changelog:hover {
        opacity: 1.0;
    }

.tt-monthly-mobile .tt-changelog {
    font-size: 16px;
    margin-left: 8px;
}




/* Overlay */
.changelog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

/* Dialog Box */
.changelog-dialog {
    background: #fff;
    width: 900px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* Header */
.changelog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #e6e6e6;
}

.changelog-title {
    font-size: 20px;
    font-weight: 700;
}

.changelog-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

    .changelog-close:hover {
        opacity: 0.8;
    }

.changelog-body {
    flex: 1;
    padding: 14px 18px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    line-height: 1.35;
}

/* Footer */
.changelog-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    border-top: 1px solid #e6e6e6;
}

.changelog-indicator {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.8;
    user-select: none;
}

    .changelog-indicator:hover {
        opacity: 1;
    }


.tt-undo-month-dialog {
    padding-top: 18px;
    padding-bottom: 18px;
}

.tt-undo-month-header {
    margin-bottom: 12px;
}

.tt-undo-month-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.tt-undo-month-subtitle {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.tt-undo-month-body {
    margin-top: 8px;
}

.tt-undo-month-password {
    width: 100%;
    font-family: Consolas, Monaco, monospace;
    background: #f7f7f7;
    border: 1px solid #ccc;
}

.tt-undo-month-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 13px;
    color: #777;
    cursor: pointer;
    user-select: none;
}

.tt-undo-month-toggle-checkbox {
    width: 14px;
    height: 14px;
}

.tt-undo-month-toggle-text {
    line-height: 1.1;
}

.tt-undo-month-error {
    margin-top: 8px;
    font-size: 13px;
    color: #a94442;
}

.tt-undo-month-buttons {
    margin-top: 14px;
}

.tt-undo-month-confirm {
    min-width: 120px;
}

.tt-undo-month-cancel {
    min-width: 120px;
}


/* 2026-03-14 NiBr Zielradar */

/* ══════════════════════════════════════════════════════════
   Header (global, wird auch von anderen Seiten genutzt)
   ══════════════════════════════════════════════════════════ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 6px 6px 0 6px;
    margin-bottom: 22px;
}

.nav-headline-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.nav-headline {
    flex-shrink: 0;
}

.mobile-title {
    margin-top: 18px;
    margin-bottom: 18px;
}

.mobile-nav-headline {
    margin-bottom: 0;
}







.scan-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.scan-result-action {
    display: flex;
    text-decoration: none;
}

.scan-result-actions .btn-primary {
    justify-content: flex-start;
    padding-left: 20px;
    padding-right: 20px;
}








/* 2026-03-19 NiBr ArticleInstanceDetailView Mobile */

/* ---------- Mobile Base ---------- */

.aidm-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 6px 20px 6px;
    box-sizing: border-box;
}

.aidm-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.aidm-section-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333333;
}

.aidm-subtitle {
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #555555;
}

/* ---------- Hero ---------- */

.aidm-card-hero {
    padding: 0;
    overflow: hidden;
}

.aidm-image-wrap {
    width: 100%;
    background: #f5f5f5;
    border-bottom: 1px solid #ececec;
}

.aidm-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

.aidm-image-placeholder {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,0.45);
    font-size: 15px;
    background: linear-gradient(180deg, #f6f6f6 0%, #ededed 100%);
}

.aidm-hero-body {
    padding: 12px;
}

.aidm-title {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #222222;
    margin-bottom: 12px;
}

/* ---------- Meta Rows ---------- */

.aidm-meta-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aidm-meta-list-top {
    margin-top: 10px;
}

.aidm-meta-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .aidm-meta-row:last-child {
        border-bottom: none;
    }

.aidm-meta-label {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    line-height: 1.3;
}

.aidm-meta-value {
    font-size: 15px;
    color: #222222;
    line-height: 1.35;
    word-break: break-word;
    padding-left: 4px;
}

/* ---------- Chips ---------- */

.aidm-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aidm-chip {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    font-size: 14px;
    color: #333333;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

/* ---------- Status ---------- */

.aidm-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.aidm-pill {
    min-width: 72px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
}

.aidm-pill-ok {
    border-color: #cfe9d1;
    box-shadow: 0 0 0 3px rgba(120,200,140,0.18);
}

.aidm-pill-danger {
    border-color: #f3c7c7;
    box-shadow: 0 0 0 3px rgba(230,120,120,0.18);
}

/* ---------- Comment ---------- */

.aidm-comment-box {
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    color: #333333;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------- Stock ---------- */

.aidm-stock-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.aidm-stock-box {
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 14px 12px;
    background: rgba(255,255,255,0.6);
    text-align: center;
}

.aidm-stock-label {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    margin-bottom: 6px;
}

.aidm-stock-value {
    font-size: 26px;
    font-weight: 700;
    color: #222222;
    line-height: 1;
}

.aidm-stock-negative {
    color: #a94442;
}

.aidm-stock-zero {
    color: #8a6d3b;
}

.aidm-stock-hint {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #999999;
}

.aidm-booking-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aidm-booking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .aidm-booking-row:last-child {
        border-bottom: none;
    }

.aidm-booking-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aidm-booking-qty {
    flex-shrink: 0;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}






/* ---------- Empty ---------- */

.aidm-empty {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.03);
    color: rgba(0,0,0,0.55);
    font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (min-width: 769px) {
    .aidm-page {
        display: none;
    }
}

.aidm-image-wrap {
    width: 100%;
    background: #f5f5f5;
    border-bottom: 1px solid #ececec;
    position: relative;
}

.aidm-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0;
}

.aidm-image {
    width: 100%;
    min-width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
    scroll-snap-align: start;
}

.aidm-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6f6f6 0%, #ededed 100%);
}

.aidm-image-placeholder-compact {
    min-height: 118px;
    padding: 16px;
}

.aidm-image-empty-btn {
    width: 100%;
    min-height: 86px;
    border: 1px dashed #d4d4d4;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    box-sizing: border-box;
}

.aidm-image-empty-icon {
    font-size: 28px;
    line-height: 1;
    color: #7c7c7c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aidm-image-empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    text-align: center;
}

.aidm-image-empty-subtitle {
    font-size: 13px;
    color: #666666;
    text-align: center;
    line-height: 1.25;
}

.aidm-image-action {
    height: 40px;
    min-width: 40px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.65);
    background: rgba(35,35,35,0.60);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.aidm-image-action-overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}


/* ---------- Not Found State ---------- */

.aidm-not-found {
    text-align: center;
    padding: 32px 16px;
}

.aidm-not-found-icon {
    margin-bottom: 12px;
}

    .aidm-not-found-icon .material-symbols-outlined {
        font-size: 56px;
        color: #ccc;
    }

.aidm-not-found-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: #333333;
}

.aidm-not-found-text {
    margin-bottom: 20px;
    color: rgba(0,0,0,0.55);
    font-size: 14px;
}

.aidm-not-found-action {
    display: inline-block;
    text-decoration: none;
    color: #fff;
}

    .aidm-not-found-action:hover,
    .aidm-not-found-action:visited,
    .aidm-not-found-action:active,
    .aidm-not-found-action:focus {
        color: #fff;
        text-decoration: none;
    }


/* ---------- Dashboard Header Fix ---------- */
/* Mobile: Nur im Dashboard den Header als Block, damit Menü/Headline korrekt stapeln */
@media (max-width: 768px) {
    .dashboard-page.header-mobile > .header {
        display: block;
    }
}

/* Radzen-Dropdown-Popup über dialog-overlay-highest (z-index: 9999) rendern */
.rz-popup {
    z-index: 10001 !important;
}


/* ══════════════════════════════════════════════════════════
   Radzen Tabs – modernes Pill-Design (global)
   Zuvor dupliziert in ALPD + AIDV Scoped CSS.
   ══════════════════════════════════════════════════════════ */

.rz-tabview {
    width: 100%;
}

.rz-tabview-panel {
    padding: 30px 40px 40px 40px;
}

.rz-tabview-top > .rz-tabview-nav {
    padding: 6px 16px;
    gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: transparent;
}

    .rz-tabview-top > .rz-tabview-nav li {
        border: none !important;
        margin: 0;
    }

        .rz-tabview-top > .rz-tabview-nav li > a {
            border: none !important;
            border-radius: 10px;
            padding: 8px 20px;
            font-size: 15px;
            font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
            color: #666;
            background: transparent;
            transition: all 0.18s ease;
        }

            .rz-tabview-top > .rz-tabview-nav li > a:hover {
                background: rgba(0,0,0,0.04);
                color: #333;
            }

    .rz-tabview-top > .rz-tabview-nav .rz-tabview-selected > a,
    .rz-tabview.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected > a {
        background: var(--main-color) !important;
        color: #fff !important;
        border: none !important;
        border-bottom: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

.rz-tabview-title {
    text-transform: none;
    font-size: 15px;
    padding: 0;
    font-family: TitilliumWeb-SemiBold, Arial, sans-serif;
}

/* ── Dialog-Defaults (global) ── */

.dialog-box {
    max-width: 520px;
}

.scan-dialog {
    max-width: 520px;
}

/* ── Toggle-Gruppe (global) ── */

.aidm-toggle-group {
    display: inline-flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.aidm-toggle-btn {
    padding: 6px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: default;
    user-select: none;
    transition: background 0.15s, color 0.15s;
}

.aidm-toggle-inactive {
    background: #f5f5f5;
    color: #bbb;
}

.aidm-toggle-active.aidm-toggle-ok {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.aidm-toggle-active.aidm-toggle-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.aidm-empty-inline {
    color: #999;
    font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   ArticleInstanceDetailView – Scoped Styles
   (Radzen Tabs, Dialoge und Toggles → jaas.css global)
   ══════════════════════════════════════════════════════════ */

/* ── Desktop Layout ── */

.aidv-desktop {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 6px 40px 6px;
    max-width: none;
}

.aidv-tab-title {
    text-align: center;
    font-size: 13px;
    color: #aaa;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

/* ── Header mit Aktion (Edit/Add neben Headline) ── */

.aidv-header-with-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aidv-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--main-color);
    background: transparent;
    transition: all 0.15s ease;
}

    .aidv-header-action:hover {
        background: rgba(0,0,0,0.06);
    }

    .aidv-header-action .material-symbols-outlined {
        font-size: 20px;
    }

/* ── Editable Fields ── */

.aidv-field-editable {
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 6px;
    padding: 4px 6px;
    margin: -4px -6px;
}

    .aidv-field-editable:hover {
        background: rgba(0,0,0,0.04);
    }

.aidv-edit-icon {
    font-size: 14px !important;
    vertical-align: middle;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--main-color);
}

.aidv-field-editable:hover .aidv-edit-icon {
    opacity: 0.6;
}

.aidv-field-editable.customeredit-flex-label-input {
    padding: 0;
    margin: 0 0 10px 0;
    border-radius: 8px;
}

.aidv-field-editable .customeredit-flex-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .aidv-field-editable .customeredit-flex-input .input-form {
        flex: 1;
        min-width: 0;
    }

    .aidv-field-editable .customeredit-flex-input .aidv-edit-icon {
        flex-shrink: 0;
        margin-left: 0;
    }

/* ── Text Box (Kommentar) ── */

.aidv-text-box {
    padding: 10px 12px;
    border: 1px solid #efefef;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

.aidv-placeholder {
    color: #bbb;
    font-style: italic;
}

/* ── Subsection ── */

.aidv-subsection {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

/* ── Empty Hint ── */

.aidv-empty-hint {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0,0,0,0.02);
    color: #999999;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* ── Entries Table (Scancodes, Buchungen) ── */

.aidv-entries-table {
    border: 1px solid #efefef;
    border-radius: 10px;
    overflow: hidden;
}

.aidv-entries-header {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: #f5f7f9;
    font-size: 12px;
    font-weight: 700;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #efefef;
}

.aidv-entries-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    transition: background 0.12s ease;
}

    .aidv-entries-row:last-child {
        border-bottom: none;
    }

    .aidv-entries-row:hover {
        background: rgba(0,0,0,0.02);
    }

.aidv-entries-cell-code {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aidv-entries-cell-action {
    width: 120px;
    text-align: right;
    flex-shrink: 0;
}

/* ── Remove Button ── */

.aidv-remove-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #e0d0d0;
    border-radius: 8px;
    background: transparent;
    color: #a94442;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .aidv-remove-btn:hover {
        background: #fdf2f2;
        border-color: #d9534f;
    }

/* ── Remove Inline Icon (für Vorgänge) ── */

.aidv-remove-inline {
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    color: #a94442;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

    .aidv-remove-inline:hover {
        opacity: 1;
    }

/* ── Stock Desktop Grid ── */

.aidv-stock-desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 500px;
}

.aidv-stock-desktop-box {
    padding: 16px 20px;
    border: 1px solid #efefef;
    border-radius: 12px;
    background: #fafafa;
    text-align: center;
}

.aidv-stock-desktop-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.aidv-stock-desktop-value {
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.aidv-stock-desktop-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
}
/* ── Page Header (Unterseiten im MainLayout) ──
   Kompakter Seitentitel + Zurück-Link für Content-Seiten
   die innerhalb des MainLayout (mit Sidebar) leben.
   ══════════════════════════════════════════════════════════ */

.jt-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 6px 16px 6px;
    gap: 16px;
}

.jt-page-header-title > h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--jt-fg-default, #222);
}

.jt-page-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.jt-page-header-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--jt-fg-secondary, #555);
    background: var(--jt-bg-surface, #fff);
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: var(--jt-radius-md, 10px);
    text-decoration: none;
    transition: all var(--jt-transition, 0.15s ease);
}

    .jt-page-header-link:hover {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        border-color: var(--main-color);
        color: var(--main-color);
    }

@media (max-width: 640.98px) {
    .jt-page-header {
        display: none;
    }
}



@media (max-width: 640.98px) {

    /* 1. Dashboard-Page schiebt sich um die Header-Höhe nach unten */
    .dashboard-page.header-mobile {
        padding-top: 80px;
    }

        /* 2. Der äußere Balken wird als BLOCK fixiert. So zerschießt es keine anderen DOM-Elemente! */
        .dashboard-page.header-mobile > .header {
            position: fixed !important;
            top: 0 !important;
            left: 0;
            right: 0;
            height: 80px;
            background-color: var(--secondary-color);
            z-index: 10000;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            display: block !important; /* WICHTIG: Block, nicht Flex. */
            padding: 0 20px;
            margin: 0;
        }

            /* 3. Der innere Container nimmt sich die vollen 100% der 80px Höhe und Breite. 
          Erst hier drinnen nutzen wir Flexbox für Logo / Suche */
            .dashboard-page.header-mobile > .header > div:first-child {
                width: 100% !important;
                height: 100% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: space-between !important;
            }

        /* 4. Logo exakt verankert */
        .dashboard-page.header-mobile .dashboard-brand-mobile {
            display: flex !important;
            align-items: center;
            flex: 0 0 auto;
        }

            .dashboard-page.header-mobile .dashboard-brand-mobile .timeclock-img {
                height: 50px;
                width: 50px;
                margin: 0;
                display: block;
            }

        /* 5. Scan-Leiste als starrer Block nach rechts */
        .dashboard-page.header-mobile .scan-header {
            display: flex !important;
            align-items: center;
            flex: 0 0 auto;
            margin-left: auto !important; /* Zwingt alles in die rechte Ecke */
            padding: 0;
        }

        /* 6. Eventuell störende Titelzeilen im Fixed-Header auf Mobile verbergen */
        .dashboard-page.header-mobile .header > .nav-headline {
            display: none !important;
        }

        /* 7. Kein Abstand zwischen Fixed-Header-Bereich und Tiles */
        .dashboard-page.header-mobile + .dashboard-kachel {
            margin-top: 0 !important;
        }
}


.dashboard-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ══════════════════════════════════════════════════════════
   Radzen Tabs – Kompaktes Layout
   Reduziert Padding auf Panels und Tab-Navigation,
   damit der Inhalt mehr Platz bekommt.
   ══════════════════════════════════════════════════════════ */

.rz-tabview-panel {
    padding: 8px 4px !important;
}

.rz-tabview-top > .rz-tabview-nav li > a {
    padding: 8px 12px !important;
    font-size: 0.85rem;
}

@media (max-width: 640.98px) {
    .rz-tabview-panel {
        padding: 4px 0 !important;
    }

    .rz-tabview-top > .rz-tabview-nav li > a {
        padding: 6px 8px !important;
        font-size: 0.8rem;
    }

    .rz-tabview-top > .rz-tabview-nav {
        gap: 2px;
    }
}

/* ══════════════════════════════════════════════════════════
   Gemeinsame Desktop-Card (alpd-*) + Mobile-Such/Filter (alp-*)
   2026-03-26 NiBr: Aus ArticleLocationProtocol Scoped-CSS
   hierher verschoben, damit alle Seiten sie nutzen können.
   ══════════════════════════════════════════════════════════ */

/* ── Desktop Card ── */

.alpd-card {
    background: var(--jt-bg-surface, #fff);
    border: 1px solid var(--jt-border-default, #e6e6e6);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.alpd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--jt-border-light, #f0f0f0);
    background: var(--jt-bg-surface-3, #f5f7f9);
}

.alpd-card-title {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--jt-fg-default, #333);
}

.alpd-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--main-color, #3bb0c9);
    border-radius: 99px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.alpd-card-body {
    padding: 14px 18px;
}

.alpd-field-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jt-fg-tertiary, #888);
}

.alpd-actions-divider {
    border: none;
    border-top: 1px solid var(--jt-border-subtle, rgba(0,0,0,0.08));
    margin: 4px 0 0 0;
}

.alpd-actions-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 4px;
}

/* ── Desktop Filter-Grid (alpl-*) ── */

.alpl-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 20px;
    align-items: end;
}

.alpl-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alpl-filter-field-sort {
    grid-column: 1 / -1;
}

.alpl-result-hint {
    text-align: center;
    font-size: 13px;
    color: var(--jt-fg-muted, #999);
    padding: 2px 0;
}

@media (max-width: 1100px) {
    .alpl-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .alpl-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Mobile Suchbereich (alp-*) ── */

.alp-search-card {
    padding: 0 !important;
    overflow: hidden;
}

.alp-search-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

    .alp-search-toggle:active {
        background: var(--jt-bg-surface-active, rgba(0, 0, 0, 0.03));
    }

.alp-search-toggle-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.alp-search-toggle-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--jt-fg-default, #333);
}

.alp-search-toggle-icon {
    font-size: 1.4rem;
    color: var(--jt-fg-muted, #999);
    transition: transform 0.2s;
}

.alp-filter-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: var(--main-color, #3bb0c9);
    border-radius: 99px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.alp-search-body {
    padding: 0 18px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--jt-border-light, #f0f0f0);
    padding-top: 14px;
}

.alp-search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alp-search-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--jt-fg-tertiary, #888);
}

.alp-search-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--jt-input-border, #ddd);
    border-radius: 8px;
    background: var(--jt-input-bg, #fafafa);
    color: var(--jt-input-text, #333);
    transition: border-color 0.15s;
    box-sizing: border-box;
}

    .alp-search-input:focus {
        outline: none;
        border-color: var(--main-color, #3bb0c9);
        box-shadow: 0 0 0 3px var(--jt-input-focus-ring, rgba(100, 196, 221, 0.25));
        background: var(--jt-input-bg, #fff);
    }

    .alp-search-input::placeholder {
        color: var(--jt-input-placeholder, #bbb);
    }

.alp-search-dropdown {
    width: 100% !important;
}

.alp-search-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.alp-result-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--jt-fg-muted, #999);
    margin-bottom: 8px;
}

/* ── Sort-Chips ── */

.alp-sort-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.alp-sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--jt-fg-secondary, #555);
    background: var(--jt-bg-surface-2, #f3f3f3);
    border: 1px solid var(--jt-border-default, #e0e0e0);
    border-radius: 99px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    line-height: 1;
}

    .alp-sort-chip:hover {
        background: var(--jt-bg-surface-active, #eaeaea);
        border-color: var(--jt-border-default, #ccc);
    }

    .alp-sort-chip:active {
        transform: scale(0.96);
    }

.alp-sort-chip-active {
    color: #fff;
    background: var(--main-color, #3bb0c9);
    border-color: var(--main-color, #3bb0c9);
}

    .alp-sort-chip-active:hover {
        background: var(--main-color, #3bb0c9);
        border-color: var(--main-color, #3bb0c9);
        filter: brightness(0.92);
    }

.alp-sort-chip-icon {
    font-size: 1rem !important;
    line-height: 1;
}

/* ── Checkbox Items (shared) ── */

.ttp-checkbox-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.ttp-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--jt-fg-secondary, #555);
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

    .ttp-checkbox-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--main-color, #3bb0c9);
        margin: 0;
        cursor: pointer;
    }

@media (max-width: 640.98px) {
    .ttp-checkbox-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ══════════════════════════════════════════════════════════
   Zentrale Pagination (jt-pagination-*)
   2026-03-28 NiBr: Aus WarehouseStoragePlaceArticleAssignment
   Scoped-CSS hierher verschoben, damit alle Seiten sie nutzen können.
   ══════════════════════════════════════════════════════════ */

.jt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 18px;
    font-size: 13px;
    color: var(--jt-fg-secondary, #555);
    border-top: 1px solid var(--jt-border-light, #f0f0f0);
}

.jt-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--jt-border-default, #e0e0e0);
    border-radius: 10px;
    background: var(--jt-bg-surface, #fff);
    color: var(--jt-fg-default, #333);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

    .jt-pagination-btn:hover:not(:disabled) {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        border-color: var(--main-color);
        color: var(--main-color);
    }

    .jt-pagination-btn:disabled {
        opacity: 0.3;
        cursor: default;
        pointer-events: none;
    }

.jt-pagination-info {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding: 0 10px;
    color: var(--jt-fg-secondary, #666);
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .jt-pagination {
        padding: 12px 6px;
        gap: 6px;
    }

    .jt-pagination-btn {
        width: 40px;
        height: 40px;
    }
}

/* ══════════════════════════════════════════════════════════
   Zentrale Desktop-Tabelle (jt-table-*)
   2026-03-28 NiBr: Vereinheitlicht für alle Desktop-Tabellen.
   Genutzt von: WarehouseStoragePlaceArticleAssignment,
                ArticleLocationProtocolsPage,
                und allen zukünftigen Seiten mit tabellarischer Darstellung.
   ══════════════════════════════════════════════════════════ */

.jt-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--jt-border-light, #efefef);
    border-radius: 10px;
    overflow: hidden;
}

.jt-table-header {
    display: grid;
    align-items: center;
    padding: 10px 14px;
    background: var(--jt-bg-surface-3, #f5f7f9);
    font-size: 12px;
    font-weight: 700;
    color: var(--jt-fg-tertiary, #888888);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--jt-border-light, #efefef);
}

.jt-table-row {
    display: grid;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--jt-border-light, #f5f5f5);
    font-size: 14px;
    color: var(--jt-fg-default, #333333);
    transition: background 0.12s ease;
}

    .jt-table-row:last-child {
        border-bottom: none;
    }

    .jt-table-row:not(.jt-table-header):hover {
        background: var(--jt-bg-surface-hover, rgba(0,0,0,0.02));
    }

.jt-table-row-clickable {
    cursor: pointer;
}

    .jt-table-row-clickable:hover {
        background: var(--jt-bg-surface-hover, rgba(0, 0, 0, 0.025));
    }

/*    .jt-table-row-clickable > div {
        padding: 12px 14px;
        font-size: 14px;
        color: var(--jt-fg-secondary, #333333);
    }*/

.jt-cell-name-text {
    font-weight: 600;
    color: var(--jt-fg-default, #222222);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jt-cell-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jt-cell-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.jt-cell-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jt-table-chevron {
    font-size: 20px;
    color: var(--jt-fg-muted, #ccc);
    transition: color 0.15s;
}

.jt-table-row-clickable:hover .jt-table-chevron {
    color: var(--main-color, #3bb0c9);
}

/* ══════════════════════════════════════════════════════════
   BurgerMenu Trigger – einheitlicher Button-Style
   ══════════════════════════════════════════════════════════ */

.bm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bm-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--jt-border-default, #e0e0e0);
    border-radius: 8px;
    background: var(--jt-bg-surface, #fff);
    color: var(--jt-fg-secondary, #555);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    user-select: none;
}

    .bm-trigger:hover {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        border-color: var(--main-color);
        color: var(--main-color);
    }

/* ══════════════════════════════════════════════════════════
   Scan-Error: Theme-aware Farbe
   ══════════════════════════════════════════════════════════ */

.scan-error-text {
    color: var(--jt-status-danger-fg, #E57373);
}

/* ── Scan-Enter-Button: Schrift immer weiß (Dark-Mode Fix) ── */

.scan-enter-btn {
    color: #fff !important;
}


/* ── Kontextmenü-Button (RadzenButton) ──
   Einheitlicher Stil für ☰-Buttons die ein ContextMenu öffnen.
   Verwendet in: RentalConfirmation, Absences, etc.
   ══════════════════════════════════════════════════════════════ */

.jt-context-menu-btn.rz-button {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--jt-border-default, #e6e6e6);
    background: var(--jt-bg-surface, #fff);
    color: var(--jt-fg-secondary, #555);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    flex-shrink: 0;
}

    .jt-context-menu-btn.rz-button:hover {
        background: var(--jt-bg-surface-active, rgba(0,0,0,0.04));
        border-color: var(--main-color);
        color: var(--main-color);
    }

    .jt-context-menu-btn.rz-button .rz-button-icon-left {
        font-size: 20px;
        margin: 0;
    }

/* ══════════════════════════════════════════════════════════
   Zentrale Dialog-Inputs (jt-dialog-input, jt-dialog-textarea)
   2026-03-29 NiBr: Native Inputs die optisch an Radzen-Dropdowns
   angeglichen sind (Höhe, Border, Radius, Dark-Mode via CSS-Vars).
   ══════════════════════════════════════════════════════════ */

.jt-dialog-input {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 4px 10px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    color: var(--rz-input-color, inherit);
    background: var(--rz-input-background-color, transparent);
    border: 1px solid var(--rz-input-border, rgba(255,255,255,0.2));
    border-radius: var(--rz-border-radius, 4px);
    outline: none;
    transition: border-color 0.15s ease;
}

    .jt-dialog-input:focus {
        border-color: var(--rz-primary, #1e88e5);
    }

    .jt-dialog-input::placeholder {
        color: var(--rz-input-placeholder-color, rgba(255,255,255,0.35));
    }

.jt-dialog-textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 70px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    color: var(--rz-input-color, inherit);
    background: var(--rz-input-background-color, transparent);
    border: 1px solid var(--rz-input-border, rgba(255,255,255,0.2));
    border-radius: var(--rz-border-radius, 4px);
    outline: none;
    resize: vertical;
    transition: border-color 0.15s ease;
}

    .jt-dialog-textarea:focus {
        border-color: var(--rz-primary, #1e88e5);
    }

    .jt-dialog-textarea::placeholder {
        color: var(--rz-input-placeholder-color, rgba(255,255,255,0.35));
    }