.teacher-absence-setting-card .absence-setting-status-box {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    background: #f8fafc;
}
.teacher-absence-setting-card .badge {
    font-weight: 800;
}
.absence-timetable-placeholder {
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    padding: 36px;
    background: #fff;
}

.teacher-absence-grid-wrap {
    width: 100%;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    background: #fff;
}
.teacher-absence-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
}
.teacher-absence-grid th,
.teacher-absence-grid td {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    vertical-align: top;
    text-align: center;
}
.teacher-absence-grid th {
    background: #0f172a;
    color: #fff;
    font-weight: 800;
}
.teacher-absence-grid .hour-col {
    width: 130px;
    background: #f8fafc;
    color: #0f172a;
}
.teacher-session-card {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: 0.18s;
}
.teacher-session-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}
.teacher-session-card.is-absent {
    border-color: #dc2626;
    background: #fff1f2;
}
.session-time {
    font-size: 0.78rem;
    font-weight: 800;
    color: #f97316;
}
.absent-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-top: 4px;
}
.teacher-search-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.teacher-search-card span {
    display: block;
    color: #64748b;
    font-size: 0.85rem;
}
.teacher-search-card.active {
    border-color: #f97316;
    background: #fff7ed;
}

.absence-kpi-card {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 16px 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    height: 100%;
}
.absence-kpi-card span {
    display: block;
    color: #64748b;
    font-weight: 800;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}
.absence-kpi-card strong {
    display: block;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 900;
}
.absence-kpi-card.navy {
    border-color: #0f172a;
}
.absence-kpi-card.orange {
    border-color: #f97316;
    background: #fff7ed;
}
.absence-kpi-card.success {
    border-color: #16a34a;
    background: #f0fdf4;
}
.absence-kpi-card.danger {
    border-color: #dc2626;
    background: #fef2f2;
}
.absence-kpi-card.soft {
    background: #f8fafc;
}
.teacher-absence-table td {
    vertical-align: middle;
}
.absence-mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.76rem;
    font-weight: 800;
    border: 1px solid transparent;
}
.absence-mini-badge.green {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}
.absence-mini-badge.gray {
    color: #334155;
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.teacher-absence-profile {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 20px;
}
.teacher-absence-profile .teacher-avatar {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    flex: 0 0 auto;
}
.teacher-absence-profile h2 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    color: #0f172a;
    font-weight: 900;
}
.teacher-absence-profile span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}
.teacher-absence-profile strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
}
.absence-info-box {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    height: 100%;
}
.absence-info-box span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.absence-info-box strong {
    color: #0f172a;
    font-weight: 900;
    line-height: 1.4;
}
@media (max-width: 767px) {
    .teacher-absence-profile {
        align-items: flex-start;
        flex-direction: column;
    }
}

.teacher-absence-person-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    padding: 14px 16px;
    text-decoration: none;
    color: #0f172a;
    transition: 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.teacher-absence-person-card:hover,
.teacher-absence-person-card.active {
    border-color: #f97316;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.14);
    transform: translateY(-2px);
}

.teacher-absence-person-card strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 4px;
}

.teacher-absence-person-card span {
    display: block;
    font-size: 12px;
    color: #475569;
}

.teacher-absence-person-card small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}
