/* Allgemeine Stile */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}


/* Header Background */
header {
    background-color: #f4f4f4;
    /* Darker blue background */
    color: #fff;
    padding: 15px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */


}

header nav {
    max-width: 960px;
    /* background-color: #fff; */
    /* background-color: #f4f4f4; */
    /* Slightly wider container */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    /* justify-content: center; */
    /* border-style: solid;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    border-radius: 10px;

}

/* Logo Container Styling */
.logo-container {
    display: flex;
    align-items: center;

    /* gap:100px; */
}

/* Logo Text Link */
.logo-container>a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    /* Verhindert Zeilenumbruch */


}

.logo-container a:hover {
    color: #3498db;
    filter: drop-shadow(16px 16px 16px rgba(135, 206, 250, 0.6));
}

/* Logo Image */
.logo-container img {
    display: block;
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* filter: drop-shadow(16px 16px 16px rgba(0, 0, 0, 0.2)); */


}

/* Navigation Links Styling */
header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    /* Space between nav items */
    white-space: nowrap;
    /* Verhindert Zeilenumbruch */

}

header nav ul li a {
    color: #fff;
    background-color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    background-color: #1a6190;
    color: #fff;
}



.container {
    max-width: 960px;
    /* Maximale Breite des Inhalts */
    margin: 20px auto;
    /* Zentriert mit etwas Abstand oben/unten */
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    flex: auto;
}

.dropdown-container {
    position: relative;
    display: inline-block;
}

/* Basis-Styling für beide Buttons */
#dropdown-btn,
#dropdown-btn-logistik {
    background-color: #f8f9fa;
    color: black;
    padding: 10px 16px;
    font-size: 14px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 27px;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
}

/* Größere + fett formatierte Plus-Zeichen */
#dropdown-btn span,
#dropdown-btn-logistik span {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* Dunkleres Blau beim Hover für beide Buttons */
#dropdown-btn:hover,
#dropdown-btn-logistik:hover {
    background-color: #ed7c00;
    color: white;
}


.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    border-radius: 4px;
}

.dropdown-menu a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 10px;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
    border-radius: 4px;
}

.show {
    display: block;
}

/* Dropdown-Menü für Auftrag erstellen */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    color: #3498db;
    font-size: 1em;
    cursor: pointer;
    padding: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f8f9fa;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 1px solid #3498db;
    border-radius: 4px;
}

.dropdown-content a {
    color: #333;
    padding: 10px 18px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #eaf6fb;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.arrow {
    border: solid rgb(89, 87, 87);
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transition: transform 0.2s;
    margin-left: 10px;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.up {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}

/* Wenn das Dropdown offen ist, Pfeil nach oben */
.dropdown:hover .arrow {
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
}





/* Footer Styling */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #777;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    /* Mehr Abstand zwischen den Logos */
}

footer img {
    height: 15px;
    /* Kleinere Höhe für die Logos */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

footer p {
    margin: 0;
    margin-top: 10px;
}

/* Formular Stile */
form {
    margin-top: 20px;
}

.form-section {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

}

.form-section h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.2em;
    color: #555;

}


.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    /* Label über dem Feld */
    margin-bottom: 5px;
    margin-left: 5px;
    color: #444;
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    /* Volle Breite des Containers */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    box-sizing: border-box;
    /* Padding wird in die Breite eingerechnet */
}

.form-group-rep_freigabe input[type="text"] {
    width: 100px;
    margin-left: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 5px;
}

.form-group textarea {
    min-height: 80px;
    /* Mindesthöhe für Textareas */
    resize: vertical;
    /* Nur vertikal vergrößerbar */
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
    /* Bessere Ausrichtung mit Text */
}

.form-group label.checkbox-label {
    display: inline-block;
    /* Label neben Checkbox */
    font-weight: normal;
}


.form-group .errorlist {
    /* Styling für Django Formularfehler */
    color: #dc3545;
    /* Rote Farbe für Fehler */
    list-style: none;
    padding: 5px 0 0 0;
    margin: 0;
    font-size: 0.9em;
}

button[type="submit"],
.button {
    background-color: #29a1f1;
    /* Grüner Button */
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
    /* Für .button Klasse */
    display: inline-block;
    /* Für .button Klasse */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
}

button[type="submit"]:hover,
.button:hover {
    background-color: #296d9a;
    /* Dunkleres Grün beim Hover */
}


button[type="button"],
.button {
    background-color: #29a1f1;
    /* Grüner Button */
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    /* Für .button Klasse */
    display: inline-block;
    /* Für .button Klasse */
    font-size: 13px;
}

button[type="button"]:hover,
.button:hover {
    background-color: #296d9a;
    /* Dunkleres Grün beim Hover */
}

/* Hover-Effekt für "Alle entfernen" Button */
#remove-main-image {
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-left: 10px;
    border-radius: 25px;
    background-color: #dc3545;
}

#remove-main-image.hidden {
    display: none !important;
}

#remove-main-image:hover {
    background-color: #a71d2a !important;
    transform: scale(1.05);
}



input[type="file"]::file-selector-button {
    background-color: #29a1f1;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #296d9a;
}

/* Für Radio-Buttons und Checkboxen */
.radio-inline {
    display: inline-block;
    margin-right: 1rem;
}

.checkbox-label {
    margin-left: 0.5rem;
}



/* Spezifische Stile (optional) */
.hidden-field {
    display: none;
    /* Zum Verstecken von Feldern */
}

/* Kamera/Upload Vorschau (optional) */
#image-preview-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#image-preview-container img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ddd;
    padding: 2px;
}

/* Tabellen Stile (für Liste) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 12px;
}

th {
    background-color: #e9e9e9;
    font-weight: lighter;
    color: #5a5959;
}

tbody tr:nth-child(odd) {
    background-color: #f4f4f4;
    /* Zebrastreifen */
}

tbody tr:hover {
    background-color: #f1f1f1;
    /* Hover-Effekt */
}

/* Styling für das Label "Bilder hochladen:" */
/* Angenommen, dies ist ein <label> Tag vor dem File-Input */
label[for="{{ bild_form.bild.id_for_label }}"] {
    display: block;
    /* Falls es inline ist */
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
    /* Passend zu den anderen Labels */
}


/* Styling für das Datei-Auswahl-Feld (den Input selbst) */
/* Dies kann schwierig zu stylen sein, wir versuchen es direkt */
input[type="file"] {
    display: inline-block;
    /* Stellt sicher, dass es inline ist */
    /* margin-bottom: 10px; */
    /* Abstand nach unten */
}

/* Versteckt den "Keine Datei ausgewählt" Text */
#main-input-group input[type="file"] {
    color: transparent;
    width: auto;
}

#main-input-group input[type="file"]::-webkit-file-upload-button {
    visibility: visible;
}

/* Die ::file-selector-button Styles sind bereits oben definiert (Zeile 445-459) */


/* Styling für den "Weiteres Bild hinzufügen" Button */
/* Angenommen, dies ist ein <button> mit einer Klasse oder ein <a> */
/* Wenn es ein Button ist: */
button.add-image-button {
    /* Fügen Sie diese Klasse zu Ihrem Button hinzu */
    background-color: #29a1f1;
    /* Passende Farbe */
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    /* Oder 14px, je nach Wunsch */
    text-decoration: none;
    /* Falls es ein Link ist */
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    /* Abstand nach unten */
}

button.add-image-button:hover {
    background-color: #296d9a;
    /* Dunklere Farbe beim Hover */
}

/* Wenn es ein Link (<a>) ist, der wie ein Button aussieht, verwenden Sie auch diese Styles */
a.add-image-button {
    background-color: #29a1f1;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

a.add-image-button:hover {
    background-color: #296d9a;
}


/* Styling für den Tipp-Text */
.upload-tip {
    /* Fügen Sie dem Element mit dem Tipp diese Klasse hinzu */
    font-size: 0.9em;
    color: #555;
    margin-left: 10px;
    /* Abstand zum Button */
    display: inline-block;
    /* Nebeneinander mit dem Button */
    vertical-align: middle;
    /* Vertikale Ausrichtung */
}

.form-group-antrag {
    margin-bottom: 15px;
}

/* Styling für den Gewährleistung Antrag Radio Button augustin gmbh*/
.form-group-antrag label.radio-label {
    font-weight: bold;
    margin-bottom: 0;
}


.status-select,
.status-select-reparatur,
.status-select-logistik,
.status-select-ruecknahmeschein {
    padding: 5px 5px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 10px;
    transition: background-color 0.3s ease;
    background-color: #f5f5f5;
    color: white;
}

select {
    cursor: pointer;
}



/* Farben je nach Status */
.status-eingegangen {
    background-color: #00a0f0;
    /* Hellgrau */
}

.status-in_bearbeitung {
    background-color: #ed7c00;
    /* Hellgelb */
}

.status-abgeschlossen {
    /* background-color: #00E200; Hellgrün */
    background-color: #00cd00;
}

.status-storniert {
    background-color: #ee0000;
    /* Hellrot */
}

.status-nicht_befundet {
    background-color: #B0BEC5;
}

.status-befundet {
    background-color: #00a0f0;
}

.status-beauftragt {
    background-color: #ed7c00;
}

.status-fertig {
    background-color: #00cd00;
}

.status-verschrotten {
    background-color: #ee0000;
}




#status_filter option {
    background-color: white !important;
    color: black !important;
    font-size: 10px !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 6px 12px !important;
}

.alert {
    margin-top: 10px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Abstand zwischen Icon und Text */
    padding: 8px 12px;
    background: #f3f3f3;
    border-radius: 20px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}

.logout-btn svg {
    width: 20px;
    height: 20px;
}

.logout-btn:hover {
    background: #ed7c00;
    /* schönes Rot */
    color: white;
    transform: translateY(-2px);
}

.logout-btn:active {
    transform: translateY(0);
    background: #ed7c00;
}

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-buttons a {
    margin-right: 10px;
    border-radius: 25px;
    font-size: 12px;
}

.right-buttons button {
    margin-left: auto;
    border-radius: 25px;
    background: #ed7c00;
    font-size: 12px;
}

.right-buttons button:hover {
    background: #bd6201;
}

.disabled {
    pointer-events: none;
    opacity: 0.1;
    cursor: not-allowed;
    background-color: #ee0000;
}

.button-success {
    background-color: #00cd00 !important;
    color: white !important;
}


#reset-filter-link,
#reset-filter-link_reparatur {
    padding: 5px 10px;
    background-color: #ed7c00;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 10px;
    display: none;
}

.filter-select-wrapper {
    position: relative;
    display: inline-block;
}

.filter-select-wrapper select {
    padding-right: 28px !important;
}

.filter-select-wrapper.is-left select {
    padding-left: 28px !important;
    padding-right: 10px !important;
}

.filter-reset-btn {
    display: none;
    position: absolute;
    right: -13px;
    top: 5%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #ced4da;
    background-color: #ed7c00;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

button.filter-reset-btn {
    background-color: #ed7c00 !important;
    border-color: #ed7c00 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.filter-select-wrapper button.filter-reset-btn {
    background-color: #ed7c00 !important;
    border: 1px solid #ed7c00 !important;
    border-radius: 50% !important;
    color: #fff !important;
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.filter-select-wrapper.is-left .filter-reset-btn {
    left: 6px;
    right: auto;
}

.filter-reset-btn:hover {
    background-color: #bd6201;
    border-color: #bd6201;
    color: #fff;
}

button.filter-reset-btn:hover {
    background-color: #bd6201 !important;
    border-color: #bd6201 !important;
    color: #fff !important;
}

.filter-select-wrapper button.filter-reset-btn:hover {
    background-color: #bd6201 !important;
    border-color: #bd6201 !important;
    color: #fff !important;
}

.filter-reset-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(237, 124, 0, 0.25);
}

#reset-filter-link:hover,
#reset-filter-link_reparatur:hover {
    background-color: #bd6201;
    /* dunkleres Grau */
}






/* Responsive: Tablet landscape and below */
@media (max-width: 1024px) {
    header nav {
        padding: 5px 12px;
    }

    header nav ul {
        gap: 10px;
    }

    .logo-container img {
        height: 40px;
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        /* Horizontal scroll for wide tables */
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 6px;
        font-size: 14px;
    }

    .dropdown-menu {
        min-width: 180px;
    }

    .status-select {
        font-size: 10px;
        padding: 5px 5px;
    }
}

#tabs {
    /* border: 1px solid #ccc; */
    font-size: 12px;
}


#tabs input[type="radio"] {
    display: none;
}

#tab1+label,
#tab2+label,
#tab3+label {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #e9e9e9;
    cursor: pointer;
    border: 1px solid #ccc;
    border-bottom: none;
    /* box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.1); */
    font-weight: 500;
    margin-bottom: 30px;

}

#tab1+label:hover,
#tab2+label:hover,
#tab3+label:hover {
    background-color: #ed7c00;

}

#tabs input[type="radio"]:checked+label {
    border-bottom: none;
    background-color: #f9f9f9;
    /* padding-top: 14px;
        transition: all 0.15s ; */
    box-shadow: none;

}

#content1,
#content2,
#content3 {
    display: none;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Scrollbar verstecken aber Scroll-Funktion beibehalten */
    -ms-overflow-style: none !important;
    /* IE und Edge */
    scrollbar-width: none !important;
    /* Firefox */
}

/* Scrollbar verstecken für Chrome, Safari und Opera */
#content1::-webkit-scrollbar,
#content2::-webkit-scrollbar,
#content3::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

/* Auch für alle Kind-Elemente innerhalb der Content-Container */
#content1 *,
#content2 *,
#content3 * {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

#content1 *::-webkit-scrollbar,
#content2 *::-webkit-scrollbar,
#content3 *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

#tab1:checked~#content1,
#tab2:checked~#content2,
#tab3:checked~#content3 {
    display: block;
}

/* Responsive: Tablet portrait and small tablets */
@media (max-width: 768px) {
    header nav {
        gap: 8px;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-container>a {
        font-size: 1.2em;
    }

    #dropdown-btn,
    #dropdown-btn-logistik {
        padding: 8px 12px;
    }
}

/* Responsive: Phones */
@media (max-width: 600px) {

    header {
        padding: 0px;
    }

    header nav {
        max-width: 100%;
    }
    
    header nav ul {
        gap: 8px;
    }

    header nav ul li a {
        padding: 6px 10px;
        font-size: 0.9em;
    }

    .logo-container img {
        height: 24px;
    }

    .container {
        margin: 6px;
        padding: 12px;
        box-shadow: none;
        border-radius: 27px;
    }

    form {
        margin-top: 12px;
    }

    .form-section {
        padding: 10px;
        margin-bottom: 12px;
        border-radius: 16px;
        box-shadow: none;
    }

    .form-section h2 {
        font-size: 12px;
        padding-bottom: 8px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        margin-left: 2px;
        margin-bottom: 4px;
        font-size: 10px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group input[type="date"],
    .form-group select,
    .form-group textarea {
        padding: 8px 10px;
        border-radius: 16px;
        font-size: 10px;
    }

    .form-group textarea {
        min-height: 70px;
    }

    .form-group .errorlist {
        font-size: 0.85em;
    }

    .dropdown-menu a {
        font-size: 10px;
        /* bigger than default for touch */
        padding: 10px 12px;
    }

    .dropdown-content {
        min-width: 180px;
    }

    th,
    td {
        padding: 6px 8px;
        font-size: 8px;
    }

    button[type="submit"],
    .button {
        box-sizing: border-box;
    }

    .form-group-rep_freigabe input[type="text"] {
        width: 80px;
    }

    .upload-tip {
        display: block;
        margin-left: 0;
        margin-top: 6px;
    }

    footer {
        margin-top:0px;
        padding: 5px 10px;
        gap: 1px;

    }

    footer .logo-container {
        gap: 20px;
        width: 30%;
    }

    footer img {
        height: 12px;
    }

    footer p {
        margin-bottom: 0;
        font-size: 8px;
    }

    .actions {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .actions .button {
        font-size: 8px;
    }

    #dropdown-btn,
    #dropdown-btn-logistik {
        font-size: 10px;
        padding: 3px 7px;
    }
    .dropdown-content {

        display: block;
    }

    #tab1+label,
    #tab2+label,
    #tab3+label {
        font-size: 10px;
        padding: 6px 10px;
        margin-bottom: 10px;

    }

    #content1, #content2, #content3 {
        max-height: 530px;
    }
}