.login-page {
    background-color: #f4f6f9;
}

.table > tbody > tr.row-vigente > * {
    background-color: #d4edda;
}

.check-pagado {
    color: #198754;
    font-weight: 700;
}

.cruz-vencido {
    color: #dc3545;
    font-weight: 700;
}

.site-footer {
    display: block;
    width: 100%;
    margin-top: 3rem;
    padding: 1.5rem 0;
    color: #ffffff;
    background-color: #6c757d;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.site-footer a:hover {
    color: #ced4da;
    text-decoration: underline;
}

.site-logo {
    display: block;
    width: auto;
    height: 72px;
    max-width: 290px;
    object-fit: contain;
}

.site-header {
    background-color: #f1f3f5 !important;
    border-bottom: 1px solid #ced4da;
}

.site-header .text-white {
    color: #075477 !important;
    font-weight: 600;
}

.site-header .btn-outline-light {
    color: #ffffff;
    background-color: #075477;
    border-color: #075477;
}

.site-header .btn-outline-light:hover {
    color: #ffffff;
    background-color: #06415d;
    border-color: #06415d;
}

.navbar .container {
    position: relative;
    min-height: 80px;
}

.navbar .navbar-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
}

.navbar-user-actions {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.navbar-user-actions > * {
    pointer-events: auto;
}

.navbar-action-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tutor-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tutor-header .navbar-brand {
    position: static;
    flex: 0 1 auto;
    transform: none;
}

.tutor-header .navbar-user-actions {
    position: static;
    flex: 0 1 auto;
    gap: 0.75rem;
    pointer-events: auto;
}

.tutor-header .navbar-action-group {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .tutor-header .container {
        gap: 0.5rem;
    }

    .tutor-header .site-logo {
        max-width: 145px;
    }

    .tutor-header .navbar-user-actions {
        min-width: 0;
    }

    .tutor-header .navbar-user-actions .text-white {
        max-width: 7rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        height: 58px;
        max-width: 165px;
    }

    .navbar .container {
        min-height: 68px;
    }

    .navbar .navbar-brand {
        left: 50%;
    }
}

.login-card {
    border: none;
    border-radius: 0.75rem;
}

.login-logo {
    display: block;
    width: auto;
    height: 96px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.dashboard-card {
    border-radius: 0.75rem;
    background-color: #f3f8fa;
    border: 1px solid #dfecef;
    color: #212529;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.dashboard-config-section {
    border-top: 1px solid #ced4da;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.calendar-weekdays {
    margin-bottom: 0.35rem;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.calendar-day {
    min-height: 5.5rem;
}

.calendar-day button {
    display: flex;
    width: 100%;
    min-height: 5.5rem;
    padding: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #dee2e6;
    border-radius: 0.35rem;
    color: #212529;
    background-color: #ffffff;
    text-align: left;
}

.calendar-day button:hover {
    border-color: #075477;
    background-color: #f3f8fa;
}

.menu-calendar-grid .calendar-day a,
.menu-calendar-grid .calendar-day-disabled {
    display: flex;
    width: 100%;
    min-height: 5.5rem;
    padding: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #dee2e6;
    border-radius: 0.35rem;
    color: #212529;
    background-color: #ffffff;
    text-decoration: none;
}

.menu-calendar-grid .calendar-day a:hover {
    border-color: #075477;
    background-color: #f3f8fa;
}

.menu-calendar-grid .calendar-day a:focus {
    border-color: #075477;
    outline: 2px solid rgba(7, 84, 119, 0.25);
}

.menu-calendar-grid .calendar-day a:has(.menu-day-preview) {
    position: relative;
}

.menu-day-preview {
    display: none;
    position: absolute;
    z-index: 10;
    top: -0.4rem;
    left: 50%;
    width: min(22rem, 75vw);
    padding: 0.75rem;
    transform: translateX(-50%);
    border: 2px solid #075477;
    border-radius: 0.45rem;
    color: #212529;
    background-color: #ffffff;
    box-shadow: 0 0.75rem 1.5rem rgba(33, 37, 41, 0.22);
    text-align: left;
}

.menu-calendar-grid .calendar-day a:hover .menu-day-preview,
.menu-calendar-grid .calendar-day a:focus .menu-day-preview {
    display: block;
}

.menu-day-preview-item + .menu-day-preview-item {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #dee2e6;
}

.menu-day-preview-date {
    display: block;
    margin-bottom: 0.45rem;
    color: #075477;
    text-transform: capitalize;
}

.menu-day-preview-item strong,
.menu-day-preview-item span {
    display: block;
}

.menu-day-preview-item strong {
    margin-bottom: 0.25rem;
    color: #075477;
}

.menu-day-preview-item span {
    font-size: 0.78rem;
    line-height: 1.35;
}

.menu-calendar-grid .calendar-day-disabled {
    color: #842029;
    background-color: #f8d7da;
    border-color: #dc3545;
}

.menu-calendar-grid .calendar-day-selected a {
    border-width: 2px;
    border-color: #075477;
}

@media (max-width: 575.98px) {
    .menu-calendar-grid .calendar-day a,
    .menu-calendar-grid .calendar-day-disabled {
        min-height: 4.2rem;
        padding: 0.35rem;
    }

    .menu-day-preview {
        width: min(18rem, 80vw);
    }
}

.calendar-day-muted button {
    color: #adb5bd;
    background-color: #f8f9fa;
}

.calendar-day-holiday button {
    border-color: #dc3545;
    color: #842029;
    background-color: #f8d7da;
}

.calendar-day-holiday small {
    margin-top: 0.35rem;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .calendar-weekdays {
        font-size: 0.65rem;
    }

    .calendar-day,
    .calendar-day button {
        min-height: 4.2rem;
    }

    .calendar-day button {
        padding: 0.35rem;
    }

    .calendar-day-holiday small {
        font-size: 0.65rem;
    }
}

.export-grid-toolbar {
    padding: 0.75rem 0.75rem 0;
}

.export-grid-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.excel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: #ffffff;
    background-color: #198754;
    border-radius: 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.pdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    color: #ffffff;
    background-color: #dc3545;
    border-radius: 0.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.student-photo {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    box-sizing: border-box;
    object-fit: cover;
    display: block;
    padding: 4px;
    border: 1px solid #adb5bd;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(33, 37, 41, 0.16);
}

.student-photo-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.delete-photo-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background-color: rgba(33, 37, 41, 0.78);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.delete-photo-button:hover {
    background-color: #dc3545;
}
