.sc-table {
    width: 100%!important;
    border-spacing:  10px 7px!important;
    font-family: sans-serif;
}
.sc-table td {
    border: 1px solid #0000009c!important;
    border-radius: 5px;
    padding: 0.62rem;
}
.text-center {
    text-align: center;
}
.bg-green {
    background-color: #71d1a8;
}
.bg-pink {
    background-color: #f3c6c3;
}
.w-70 {
    width: 70%;
}
.w-15 {
    width: 15%;
}
.text-uppercase {
    text-transform: uppercase;
}

.hidden{
    display: none !important;
}

input[type="checkbox"].form-item,
input[type="checkbox"].posee_rtn,
.custom-control-input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    transform: none;
    accent-color: #6f8fc8;
}

.custom-control-label::before,
.custom-control-label::after {
    width: 16px;
    height: 16px;
    top: 0.14rem;
}

.custom-control-label {
    padding-top: 1px;
}

.student-enrollment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.student-enrollment-status--enrolled {
    color: #3f6d50;
    background: #e2f3e6;
    border-color: #c5e0cc;
}

.student-enrollment-status--waitlist {
    color: #7a6632;
    background: #fff2c8;
    border-color: #ead9a0;
}

.student-waitlist-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.student-waitlist-details {
    font-size: 12px;
    line-height: 1.35;
    color: #6c7891;
    word-break: break-word;
}

.student-waitlist-count {
    color: #93a0b8;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.student-waitlist-trigger {
    appearance: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.student-waitlist-trigger:hover,
.student-waitlist-trigger:focus {
    filter: brightness(0.98);
    box-shadow: 0 8px 18px rgba(122, 102, 50, 0.14);
    outline: none;
}

.student-waitlist-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.student-waitlist-picker-head {
    color: #5b6782;
    font-size: 13px;
    line-height: 1.45;
}

.student-waitlist-picker-btn {
    width: 100%;
    border: 1px solid #e2e8f2;
    border-radius: 12px;
    padding: 11px 13px;
    background: #f9fbff;
    color: #495671;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.student-waitlist-picker-btn:hover,
.student-waitlist-picker-btn:focus {
    background: #eef4ff;
    border-color: #c9d8ef;
    box-shadow: 0 10px 22px rgba(70, 96, 145, 0.12);
    transform: translateY(-1px);
    outline: none;
}

.student-waitlist-picker-name {
    font-weight: 600;
    color: #48546e;
}

.student-waitlist-picker-count {
    color: #8d99b0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.waitlist-search-wrap {
    position: relative;
    margin: 8px 0 10px;
}

.waitlist-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a1b8;
    font-size: 13px;
    pointer-events: none;
}

.waitlist-search-input {
    padding-left: 34px !important;
    border-color: #dbe3f0;
    background: #f8fbff;
    box-shadow: none;
}

.waitlist-search-input:focus {
    background: #ffffff;
    border-color: #aac0e5;
    box-shadow: 0 0 0 0.15rem rgba(126, 162, 232, 0.16);
}

.waitlist-candidate-row {
    padding: 6px 8px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.waitlist-candidate-row:hover {
    background: #f7faff;
}

.waitlist-candidate-hidden {
    display: none !important;
}

.waitlist-search-empty {
    display: none;
    padding: 10px 8px 2px;
    color: #7c879d;
    font-size: 13px;
}

.waitlist-search-empty.is-visible {
    display: block;
}

.waitlist-capacity-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    margin: 0 0 12px;
    border-radius: 10px;
    border: 1px solid #dfe8f5;
    background: #f8fbff;
}

.waitlist-capacity-box.is-ok {
    border-color: #cfe7d7;
    background: #f3fbf5;
}

.waitlist-capacity-box.is-warning {
    border-color: #ecd9aa;
    background: #fff9ea;
}

.waitlist-capacity-box.is-full {
    border-color: #f1c7c7;
    background: #fff4f4;
}

.waitlist-capacity-main {
    color: #46506a;
    font-size: 14px;
    font-weight: 600;
}

.waitlist-capacity-sub {
    color: #6c7891;
    font-size: 12px;
    line-height: 1.35;
}

.waitlist-manage-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #7b6a37;
    text-align: center;
}

.topbar .button-menu-mobile {
    position: relative;
    z-index: 2201;
}

.left.side-menu .button-menu-mobile-topbar {
    z-index: 2202;
}

.ptl-calendar-route .topbar {
    z-index: 2200 !important;
    pointer-events: auto;
}

.ptl-calendar-route .side-menu.left {
    z-index: 2199 !important;
}

.ptl-waitlist-action-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.ptl-waitlist-action-grid .btn {
    margin: 0 !important;
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 0px solid #aaa;
    border-radius: 4px;
}

.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
    display: block;
    width: 100% !important;
    min-height: 37px;
    padding: 0.19rem 0.75rem !important;
    background-color: var(--cui-input-bg, #fff);
    border: 1px solid var(--cui-input-border-color, #b1b7c1);
    -moz-appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-weight: 500;
    color: #636466;
    font-size: 14px;
}

.select2-box-hidden {
    background-color: #fff0 !important;
    border: 0px solid var(--cui-input-border-color, #b1b7c1) !important;
}

.dataTables_paginate{
    float: right;
}

.dataTables_filter{
    text-align: right;
}

.dataTables_filter label{
    text-align: left;
}

.row-crge{
    display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        /* margin-right: -15px; */
        /* margin-left: -15px; */
}

.border-cajas{
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgb(0 0 0 / 12%);
}

.card-subir{
    height: 222px;
}

.card-examen{
    max-height: 240px;
    min-height: 240px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid black 0px;
    outline: 0;
    background: #f0f8ff00;
}

.select2-container--default .select2-selection--multiple {
    background-color:#ffffff00;
    border: 0px solid #aaa;
    border-radius: 4px;
    cursor: text;
}

@media (max-width: 1024px){
    .navbar-custom {
        padding-left: 10px;
        background-color: #666666;
    }
}

@media (max-width: 576px) {
    .colum-none {
        display: none !important;
    }

    .student-enrollment-status {
        width: 100%;
        max-width: 220px;
        white-space: normal;
        text-align: center;
    }

    .student-waitlist-summary {
        min-width: 170px;
    }

    .student-waitlist-details {
        font-size: 11px;
    }

    .ptl-waitlist-swal,
    .ptl-waitlist-action-swal {
        width: calc(100vw - 18px) !important;
        max-width: calc(100vw - 18px) !important;
        margin: 0 auto;
        padding: 1rem .75rem 1.1rem;
    }

    .ptl-waitlist-swal .swal2-title,
    .ptl-waitlist-action-swal .swal2-title {
        font-size: 1.1rem;
        line-height: 1.25;
    }

    .ptl-waitlist-swal .swal2-html-container,
    .ptl-waitlist-action-swal .swal2-html-container {
        margin: .75rem 0 0;
    }

    .ptl-waitlist-action-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .ptl-waitlist-action-grid .btn {
        width: 100%;
        min-height: 40px;
    }

    .waitlist-search-input {
        min-height: 40px;
        font-size: 14px;
    }

    #waitlistUserChecks {
        max-height: 44vh !important;
    }

    .waitlist-candidate-row {
        margin-bottom: 2px;
    }
}

@media (max-width: 600px) {
    table#nota th, table#nota td {
        font-size: 2.5vw !important;
    }
}

.check {
    margin-top: 8px;
    display: inline-block;
    transform: rotate(45deg);
    height: 24px;
    width: 12px;
    border-bottom: 5px solid #78b13f;
    border-right: 5px solid #78b13f;
}
  
.check-circle{
    border-radius: 100%;
    border: 2px solid #78b13f;
    width:50px;
    height:50px;
    text-align: center;
}

#modalVerEnlace.fade{
    z-index: 1051 !important;
}

#modalVerEnlace{
    z-index: 1052 !important;
}

@media (max-width: 390px){
    #modalEditarExamenes .btnEliminar{
        position: relative !important;
        margin-top: 10px !important;
    }
}

@media (max-width: 328px){
    #modalEditarExamenes .btnEliminar{
        position: relative !important;
        margin-top: 10px !important;
    }
    #modalEditarExamenes .btnDel{
        margin-right: -30px !important;
    }

    #modalEditarExamenes label[for="pdfEdit"], #modalEditarExamenes label[for="archivoEdit"] {
        margin-left: -8px;
        margin-right: 0px !important;
    }
}

.card-calendar-school {
    background: linear-gradient(135deg, #fff8f3 0%, #f7fbff 50%, #f7fff6 100%);
    border: 1px solid #f1e8e2;
}

.calendar-top-title h4 {
    color: #4a5567;
    font-weight: 700;
}

.calendar-top-title p,
.calendar-help {
    color: #6c7891;
}

.calendar-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(247, 250, 255, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.calendar-loading-overlay.active {
    display: flex;
}

.calendar-loading-widget {
    position: relative;
    width: 78px;
    height: 78px;
}

.calendar-loading-ring {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 4px solid #dfe9fb;
    border-top-color: #7ea2e8;
    animation: calendar-ring-spin 0.9s linear infinite;
}

.calendar-loading-progress {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #4d5f84;
    letter-spacing: 0.1px;
}

@keyframes calendar-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.calendar-preview-box {
    background: #f8fbff;
    border: 1px solid #dfe8f5;
    border-radius: 10px;
    padding: 10px 12px;
    color: #4c5974;
}

#calendarAdminYear,
#calendarAdminMonthFocus,
#calendarBulkMonth,
#calendarParentYear,
#calendarAdminGroup,
#calendarParentGroup {
    color: #3f4a66 !important;
    background-color: #ffffff !important;
}

#calendarAdminYear option,
#calendarAdminMonthFocus option,
#calendarBulkMonth option,
#calendarParentYear option,
#calendarAdminGroup option,
#calendarParentGroup option {
    color: #3f4a66;
    background: #ffffff;
}

.calendar-admin-toolbar,
.calendar-parent-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    align-items: end;
}

.month-nav-actions .btn {
    white-space: nowrap;
}

.calendar-bulk-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.bulk-block {
    background: #ffffff;
    border: 1px solid #e7ebf5;
    border-radius: 12px;
    padding: 12px;
}

.bulk-block h6 {
    color: #4a5567;
    font-weight: 700;
}

.bulk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}

.bulk-action {
    display: flex;
    align-items: end;
}

.bulk-toggle-wrap {
    display: flex;
    align-items: end;
    padding-bottom: 8px;
}

.calendar-history-list {
    max-height: 180px;
    overflow: auto;
    border: 1px solid #eef2fb;
    border-radius: 10px;
    padding: 10px;
    background: #fbfdff;
}

.calendar-history-items {
    margin: 0;
    padding-left: 16px;
}

.calendar-history-items li {
    font-size: 12px;
    color: #4c5974;
    margin-bottom: 6px;
}

.parent-calendar-card {
    background: #ffffff;
    border: 1px solid #e7ebf5;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 4px 16px rgba(55, 71, 105, 0.08);
    margin-bottom: 14px;
}

.parent-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.parent-calendar-head > div:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.parent-calendar-head > div:last-child .btn {
    margin-left: 0 !important;
}

.parent-calendar-head h5 {
    color: #46506a;
    font-weight: 700;
}

.parent-calendar-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.child-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dfe3f1;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    color: #4c5974;
    background: #f8faff;
}

.parent-calendar-body .year-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-calendar-body.notes-only .calendar-day[data-has-note="0"] {
    opacity: 0;
    pointer-events: none;
}

.calendar-children-panel {
    background: #ffffff;
    border: 1px solid #ecedf5;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(55, 71, 105, 0.08);
}

.calendar-children-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.child-item {
    border: 1px solid #dfe3f1;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    color: #4c5974;
    font-weight: 600;
    text-align: left;
    transition: all 0.2s ease;
}

.child-item:hover,
.child-item.active {
    border-color: #9cb7ff;
    background: #eef3ff;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    color: #586079;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #d2d8e6;
}

.legend-lectivo { background: #d9f6df; }
.legend-festivo { background: #ffdfe9; }
.legend-nolectivo { background: #ffffff; }
.legend-bell { color: #d27a3f; }

.year-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.school-calendar-mount {
    width: 100%;
    overflow: hidden;
}

.month-card {
    background: #ffffff;
    border: 1px solid #e7ebf5;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(55, 71, 105, 0.08);
}

#schoolCalendarMount .month-card {
    cursor: zoom-in;
}

#schoolCalendarMount .year-calendar-grid.single-month {
    grid-template-columns: 1fr;
}

#schoolCalendarMount .year-calendar-grid.single-month .month-card {
    cursor: default;
    padding: 14px;
}

#schoolCalendarMount .year-calendar-grid.single-month .calendar-day {
    min-height: 52px;
}

.month-title {
    color: #46506a;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
}

.week-head,
.month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.week-head span {
    text-align: center;
    font-size: 11px;
    color: #8290ad;
    font-weight: 700;
}

.day-empty {
    min-height: 38px;
}

.calendar-day {
    border: 1px solid #dde4f3;
    border-radius: 10px;
    min-height: 42px;
    position: relative;
    padding: 3px 4px 4px 4px;
    color: #3f4a66;
    font-size: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.calendar-day .day-number {
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.calendar-day.editable {
    cursor: pointer;
}

.calendar-day.locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.calendar-day.editable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(56, 70, 101, 0.16);
}

@media (hover: hover) {
    .calendar-day[data-tooltip] {
        position: relative;
    }

    .calendar-day[data-tooltip]:hover::after,
    .calendar-day[data-tooltip]:focus-visible::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 10px);
        transform: translateX(-50%);
        min-width: 120px;
        max-width: 220px;
        padding: 8px 10px;
        border-radius: 10px;
        background: #1f2942;
        color: #f8fbff;
        font-size: 12px;
        line-height: 1.35;
        white-space: pre-line;
        text-align: center;
        box-shadow: 0 8px 20px rgba(22, 31, 54, 0.24);
        z-index: 20;
        pointer-events: none;
    }

    .calendar-day[data-tooltip]:hover::before,
    .calendar-day[data-tooltip]:focus-visible::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: calc(100% + 4px);
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #1f2942;
        z-index: 20;
        pointer-events: none;
    }
}

.day-lectivo {
    background: #d9f6df;
    border-color: #b4e2be;
}

.day-festivo {
    background: #ffdfe9;
    border-color: #f2b8ca;
}

.day-nolectivo {
    background: #ffffff;
}

.calendar-day.weekend-day {
    background: #d9242e;
    border-color: #b0151f;
}

.calendar-day.weekend-day .day-number {
    color: #ffffff;
}

.day-note-btn {
    border: 1px solid #efcdb3;
    background: #fff7ef;
    color: #d27a3f;
    position: absolute;
    right: 4px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    padding: 0;
    line-height: 1;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.day-note-btn:focus-visible {
    outline: 2px solid #d27a3f;
    outline-offset: 2px;
}

.day-note-fallback {
    font-size: 8px;
    display: inline-block;
    margin-left: 0;
}

.ptl-mobile-festivo-sub {
    font-size: 14px;
    font-weight: 600;
    color: #33466f;
}

/* En vista Padre, la campana también se mantiene en esquina inferior derecha. */
.parent-calendar-body .day-note-btn {
    color: #c86a2d;
    font-size: 10px;
    border-color: #efcdb3;
    background: #fff7ef;
    right: 4px;
    bottom: 2px;
    left: auto;
    top: auto;
    transform: none;
    animation: bell-soft-pulse 1.8s ease-in-out infinite;
}

.parent-calendar-body .calendar-day {
    padding-top: 3px;
}

.calendar-day.weekend-day .day-note-btn {
    color: #fff2d8;
}

@keyframes bell-soft-pulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

.calendar-parent-toolbar .btn,
.calendar-bulk-toolbar .btn,
.calendar-admin-toolbar .btn {
    min-height: 42px;
}

@media (hover: none), (pointer: coarse) {
    #schoolCalendarMount .day-note-btn {
        width: 20px;
        height: 20px;
        right: 2px;
        bottom: 2px;
        font-size: 12px;
    }

    #schoolCalendarMount .day-note-fallback {
        font-size: 10px;
    }
}

@media (max-width: 1200px) {
    .year-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .calendar-admin-toolbar,
    .calendar-parent-toolbar,
    .bulk-grid {
        grid-template-columns: 1fr;
    }

    .calendar-parent-toolbar .align-self-end,
    .bulk-action {
        align-self: stretch !important;
    }

    .calendar-parent-toolbar .btn,
    .bulk-action .btn {
        width: 100%;
    }

    .calendar-legend {
        gap: 8px;
    }

    .parent-calendar-head {
        flex-direction: column;
        align-items: stretch;
    }

    .parent-calendar-head > div:last-child {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .parent-calendar-head .btn {
        width: 100%;
    }

    .parent-calendar-body .year-calendar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .year-calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 48px;
        border-radius: 8px;
    }

    .month-card {
        padding: 8px;
        border-radius: 12px;
    }

    .month-title {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .week-head,
    .month-days {
        gap: 4px;
    }

    .week-head span {
        font-size: 10px;
    }

    .legend-item {
        font-size: 12px;
    }

    .day-note-btn {
        right: 3px;
        bottom: 2px;
        font-size: 12px;
    }

    .calendar-children-panel,
    .bulk-block {
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .calendar-day {
        min-height: 44px;
        font-size: 11px;
        padding: 3px;
    }

    .calendar-day .day-number {
        font-size: 11px;
    }

    .day-empty {
        min-height: 34px;
    }

    .calendar-top-title h4 {
        font-size: 18px;
    }

    .calendar-help {
        font-size: 12px;
    }

    .child-item {
        padding: 9px 10px;
        font-size: 13px;
    }
}

:root {
    --ptl-surface: #ffffff;
    --ptl-surface-soft: #f7f9fc;
    --ptl-surface-accent: #fbfcfe;
    --ptl-border-soft: #e3e9f3;
    --ptl-border-strong: #d4deec;
    --ptl-text-main: #1f2430;
    --ptl-text-soft: #5f6c82;
    --ptl-primary-soft: #eef4ff;
    --ptl-shadow-soft: 0 8px 24px rgba(56, 70, 101, 0.08);
    --ptl-shadow-hover: 0 12px 28px rgba(56, 70, 101, 0.12);
}

body {
    background: linear-gradient(180deg, #f6f8fb 0%, #f3f6fb 100%);
    color: var(--ptl-text-main);
}

body,
p,
span,
td,
th,
label,
small,
.text-muted,
.form-control,
.form-select,
.select2-container,
.dropdown-menu,
.page-title-box .breadcrumb-item,
.page-title-box .breadcrumb-item a {
    color: var(--ptl-text-main);
}

.text-muted,
.student-waitlist-details,
.waitlist-capacity-sub,
.calendar-help,
.calendar-top-title p,
.student-waitlist-picker-head {
    color: var(--ptl-text-soft) !important;
}

.content-page > .content {
    padding: 22px 20px;
}

.topbar {
    backdrop-filter: blur(10px);
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(222, 230, 242, 0.9);
    box-shadow: 0 8px 26px rgba(31, 45, 74, 0.06);
    min-height: 68px;
}

.topbar .button-menu-mobile,
.left.side-menu .button-menu-mobile-topbar {
    width: 40px;
    height: 40px;
    line-height: 1;
    border-radius: 12px;
    background: var(--ptl-surface-soft);
    color: #51607d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.topbar .button-menu-mobile:hover,
.left.side-menu .button-menu-mobile-topbar:hover {
    background: var(--ptl-primary-soft);
    color: #39548f;
    box-shadow: 0 8px 18px rgba(74, 103, 168, 0.16);
    transform: translateY(-1px);
}

.nav-user img,
.sidebar-user img {
    box-shadow: 0 10px 24px rgba(57, 76, 115, 0.16);
}

.left.side-menu {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    border-right: 1px solid #e6edf7;
    box-shadow: 10px 0 24px rgba(44, 56, 85, 0.05);
}

.topbar-left .bg-logo {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #ebf0f8;
}

.sidebar-user {
    margin: 12px;
    padding: 14px 12px;
    border: 1px solid var(--ptl-border-soft);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--ptl-shadow-soft);
}

.sidebar-user h6 {
    color: #42506f;
    font-weight: 700;
}

#sidebar-menu > ul > li > a {
    border-radius: 12px;
    margin: 2px 10px;
    padding: 10px 14px;
    color: var(--ptl-text-main);
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#sidebar-menu > ul > li > a:hover,
#sidebar-menu > ul > li > a.active {
    background: var(--ptl-primary-soft);
    color: #39548f !important;
    box-shadow: inset 0 0 0 1px rgba(148, 175, 226, 0.42);
    transform: translateX(1px);
}

.page-title-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--ptl-border-soft);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfcff 55%, #f6f9ff 100%);
    box-shadow: var(--ptl-shadow-soft);
}

.page-title-box .page-title {
    color: #42506f;
    font-weight: 700;
}

.page-title-box .breadcrumb {
    margin-bottom: 0;
}

.page-title-box .breadcrumb-item,
.page-title-box .breadcrumb-item a {
    color: var(--ptl-text-soft);
}

.table-responsive,
.card,
.modal-content,
.dropdown-menu,
.border-cajas {
    border: 1px solid var(--ptl-border-soft);
    border-radius: 16px;
    box-shadow: var(--ptl-shadow-soft);
}

.table-responsive {
    background: var(--ptl-surface);
    padding: 8px 8px 4px;
}

.modal-content,
.dropdown-menu,
.card {
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid #e5ebf4;
    background: #f8faff;
    color: #303749;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.table td,
.table th {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
    background: #fbfdff;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(56, 70, 101, 0.12);
}

.form-control,
.form-select,
textarea.form-control,
.select2-container {
    border-radius: 12px !important;
}

.form-control,
.form-select,
textarea.form-control {
    min-height: 40px;
    border-color: var(--ptl-border-strong);
    background: var(--ptl-surface-accent);
    color: var(--ptl-text-main);
    box-shadow: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #9ab7ec;
    background: #ffffff;
    box-shadow: 0 0 0 0.18rem rgba(126, 162, 232, 0.14);
}

.select2-container {
    background: var(--ptl-surface-accent);
    border-color: var(--ptl-border-strong);
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 8px 4px;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--ptl-border-strong);
    border-radius: 10px;
    background: #f8fbff;
    min-height: 36px;
}

.dataTables_wrapper .paginate_button {
    border-radius: 10px !important;
}

.dataTables_wrapper .paginate_button.current,
.dataTables_wrapper .paginate_button:hover {
    background: var(--ptl-primary-soft) !important;
    border-color: #cbd9f0 !important;
    color: #39548f !important;
}

.dropdown-menu .dropdown-item {
    border-radius: 10px;
    color: var(--ptl-text-main);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: #f5f8fe;
    color: #354f89;
}

.attendance-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.attendance-register-btn,
.attendance-report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    margin: 0 !important;
}

.attendance-register-btn {
    min-width: 210px;
}

.attendance-report-btn {
    min-width: 48px;
    padding-left: 14px;
    padding-right: 14px;
}

@media (max-width: 992px) {
    .content-page > .content {
        padding: 18px 14px;
    }

    .page-title-box {
        padding: 12px 13px;
        border-radius: 14px;
    }

    .table-responsive {
        padding: 6px 6px 2px;
    }
}

@media (max-width: 576px) {
    .navbar-custom {
        min-height: 62px;
    }

    .content-page > .content {
        padding: 14px 10px;
    }

    .sidebar-user {
        margin: 10px;
        padding: 12px 10px;
    }

    .page-title-box {
        padding: 11px 12px;
        margin-bottom: 14px;
    }

    .table td,
    .table th {
        padding-top: 0.62rem;
        padding-bottom: 0.62rem;
    }

    .btn {
        min-height: 38px;
    }

    .ptl-student-waitlist-picker-swal {
        width: calc(100vw - 18px) !important;
        max-width: calc(100vw - 18px) !important;
        margin: 0 auto;
    }

    .student-waitlist-picker-btn {
        padding: 10px 11px;
    }

    .attendance-card-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .attendance-register-btn,
    .attendance-report-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .topbar {
        top: 10px !important;
        left: 12px !important;
        right: 12px !important;
    }

    .navbar-custom {
        padding-left: 12px !important;
        padding-right: 12px;
        min-height: 60px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-custom > ul {
        display: flex;
        align-items: center;
        margin-bottom: 0;
    }

    .navbar-custom > .menu-left {
        order: 1;
        margin-right: auto;
    }

    .navbar-custom > .float-right {
        order: 2;
        float: none !important;
        margin-left: auto !important;
    }

    .navbar-custom > .menu-left li,
    .navbar-custom > .float-right li {
        float: none !important;
    }

    .topbar .button-menu-mobile {
        margin-top: 0;
    }

    .notification-list .nav-link {
        line-height: 1;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-user {
        margin: 0;
    }

    .left.side-menu .button-menu-mobile-topbar {
        top: 14px;
        right: -46px;
        border-radius: 0 12px 12px 0;
    }

    .ptl-calendar-route .topbar {
        top: 10px !important;
    }
}

@media (max-width: 767px) {
    #wrapper.enlarged .left.side-menu,
    .ptl-calendar-route #wrapper.enlarged .left.side-menu,
    .enlarged .left.side-menu,
    .ptl-calendar-route .enlarged .left.side-menu {
        margin-left: 0 !important;
    }

    .ptl-calendar-route .side-menu.left {
        top: 0;
        bottom: 0;
    }
}

.ptl-mobile-only {
    display: none !important;
}

.ptl-parent-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ptl-parent-avatar {
    width: 60px;
    max-width: 60px !important;
    border-radius: 14px;
    flex: 0 0 60px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(56, 70, 101, 0.12);
}

.ptl-parent-summary-body {
    min-width: 0;
}

.ptl-parent-summary-name {
    font-size: 14px;
    font-weight: 700;
    color: #44506b;
    line-height: 1.25;
    word-break: break-word;
}

.ptl-parent-summary-email {
    font-size: 12px;
    color: #6b7891;
    line-height: 1.35;
    word-break: break-word;
}

.ptl-parent-summary-meta {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: #7b879c;
    line-height: 1.35;
}

.ptl-parent-summary-meta span {
    display: block;
    word-break: break-word;
}

@media (max-width: 768px) {
    .ptl-mobile-only {
        display: block !important;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive > h6,
    .table-responsive > h6 form,
    .card-body > h6,
    .card-body > h6 form {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
    }

    .table-responsive > h6 .btn,
    .table-responsive > h6 form .btn,
    .table-responsive > h6 form .btn-sm,
    .table-responsive > h6 form label.btn,
    .card-body > h6 .btn,
    .card-body > h6 form .btn,
    .card-body > h6 form label.btn {
        margin: 0 !important;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        width: 100%;
        text-align: left;
    }

    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin-bottom: 0;
        font-size: 12px;
    }

    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        text-align: center;
    }

    .dataTables_wrapper .paginate_button {
        margin: 2px !important;
        min-width: 36px;
    }

    .table td,
    .table th {
        font-size: 12px;
    }

    .table td .btn,
    .table td a.btn,
    .table td label.btn {
        white-space: normal;
    }

    .modal-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 12px;
        padding-right: 12px;
    }

    .modal-header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .modal-title {
        font-size: 20px;
        line-height: 1.2;
    }

    .modal-footer {
        gap: 8px;
        flex-wrap: wrap-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
    }

    .page-title-box .page-title {
        font-size: 18px;
    }

    .ptl-route-padres .table td:last-child {
        white-space: normal;
    }

    .ptl-route-padres .table td:last-child .btn {
        width: 100%;
    }

    .ptl-route-padres .ptl-parent-summary {
        align-items: flex-start;
    }

    .ptl-route-padres .ptl-parent-avatar {
        width: 52px;
        max-width: 52px !important;
        flex-basis: 52px;
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .page-title-box .breadcrumb {
        display: none;
    }

    .select2,
    .select2-container {
        width: 100% !important;
        max-width: 100%;
    }

    .table-responsive > h6 .btn,
    .table-responsive > h6 form .btn,
    .table-responsive > h6 form .btn-sm,
    .table-responsive > h6 form label.btn,
    .card-body > h6 .btn,
    .card-body > h6 form .btn,
    .card-body > h6 form label.btn {
        width: 100%;
    }

    .page-title-box .page-title {
        font-size: 16px;
    }

    .table td,
    .table th {
        font-size: 11px;
    }

    .ptl-route-padres .table td:first-child {
        width: 34px;
        text-align: center;
    }

    .ptl-route-padres .ptl-parent-summary-name {
        font-size: 13px;
    }

    .ptl-route-padres .ptl-parent-summary-email {
        font-size: 11px;
    }

    .ptl-route-padres .ptl-parent-summary-meta {
        font-size: 10px;
    }
}
