/* === Feedback-Meldungen === */
#az-feedback, #az-arbeitszeiten-modal #az-feedback {
    display: none;
    padding: 12px;
    margin: 16px 0;
    border-radius: 6px;
    font-weight: 600;
    position: relative;
    z-index: 10001;
}

.az-feedback-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.az-feedback-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Loading-Anzeige === */
#az-loading {
    padding: 10px 15px;
    margin: 16px 0;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    font-weight: bold;
    color: #856404;
}

/* === Buttons === */
.az-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.az-button:hover {
    background-color: #005177;
}

/* === Input / Select Felder === */
.az-input,
.az-select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* === Formular-Layout === */
.az-form label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

/* === Checkbox Styling === */
.az-checkbox-label {
    margin-top: 15px;
    font-weight: 600;
    display: block;
}

.az-disabled {
    background-color: #f0f0f0;
    color: #999;
}

/* === Modal === */
.az-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow-y: auto;
}

.az-modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
}

/* === Modal Close Button === */
.az-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

/* === Tabelle === */
#az-arbeitszeiten-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

#az-arbeitszeiten-tabelle th,
#az-arbeitszeiten-tabelle td {
    border: 1px solid #ccc;
    padding: 10px 12px;
    text-align: left;
}

#az-arbeitszeiten-tabelle th {
    background-color: #f4f4f4;
}

/* === Filter-Bereich === */
.az-filter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1em;
    margin: 1em 0;
}

.az-filter-container label {
    font-weight: 600;
}

.az-filter-container select {
    min-width: 150px;
}

.az-filter-container button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 4px;
    cursor: pointer;
}

.az-filter-container button:hover {
    background-color: #005f8d;
}

/* === Select2 Styling === */
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 14px;
    cursor: text;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e6f2ff;
    color: #003366;
    border: 1px solid #b3d7ff;
    border-radius: 4px;
    padding: 5px 10px;
    margin: 4px 6px 0 0;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #003366;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.select2-container--default .select2-results__option {
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e2f0ff;
    color: #000;
}

.select2-container--default .select2-results__option--selected {
    background-color: #d9edf7;
    color: #005a94;
    font-weight: bold;
}

.select2-container--default .select2-results__option--selected::before {
    content: "✔";
    color: #0073aa;
    font-weight: bold;
    margin-right: 8px;
}

/* === Responsive Modal Anpassung === */
@media (max-width: 600px) {
    .az-modal-content {
        padding: 20px;
        font-size: 14px;
    }
}
.az-close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.az-close-modal:hover {
    color: #0073aa;
}
.az-row-krank td {
    color: red !important;
}

#az-arbeitszeiten-tabelle td {
    color: #000;
    font-size: 14px;
}
.az-row-krank {
    color: red;
}