/* Abwesenheiten — Status-Badges */
.badge-entschuldigt {
    background-color: #28a745 !important;
    color: #fff;
}
.badge-unentschuldigt {
    background-color: var(--fux-red, #B4003A) !important;
    color: #fff;
}
.badge-offen {
    background-color: #ffc107 !important;
    color: #212529;
}

/* Statistik-Badges */
.badge-stat {
    font-size: 14px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Abwesenheits-Tabelle */
.absence-table {
    border-collapse: separate;
    border-spacing: 0;
}
.absence-table thead th {
    background-color: var(--fux-dark, #1B2A4A);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 16px;
    border: none;
    position: sticky;
    top: 0;
}
.absence-table thead th.sortable {
    cursor: pointer;
    user-select: none;
}
.absence-table thead th.sortable:hover {
    background-color: var(--fux-blue, #254F7B);
}
.absence-table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    font-size: 15px;
}
.absence-table tbody tr:hover {
    background-color: rgba(37, 79, 123, 0.05);
}
.absence-table tbody tr:last-child td {
    border-bottom: none;
}

/* Modal */
#absence-report-modal .modal-header {
    background-color: var(--fux-dark, #1B2A4A);
    color: #fff;
}
#absence-report-modal .modal-header .btn-close {
    filter: invert(1);
}
#absence-report-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .absence-stats {
        flex-direction: column;
    }
    .absence-stats .btn {
        width: 100%;
        margin-left: 0 !important;
    }
    .absence-table thead th,
    .absence-table tbody td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .badge-stat {
        font-size: 12px;
        padding: 6px 10px;
    }
}
