.wp-block-column.centered-column {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* botones */
/* Botones principales mejorados */
/* Botones principales elegantes */
button.button-primary,
button.button-secondary {
    margin-top: 1.5em;
    padding: 0.65em 1.6em;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Botón primario: elegante con fondo oscuro y efecto sutil */
button.button-primary {
    background-color: #1e1e2f;
    color: #ffffff;
}

button.button-primary:hover {
    background-color: #2a2a40;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Botón secundario: claro, limpio y refinado */
button.button-secondary {
    background-color: #f4f4f6;
    color: #1e1e2f;
}

button.button-secondary:hover {
    background-color: #e5e5ea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1.5px);
}


/* fin botones */

/* Títulos */
h2 {
    font-size: 2em;
    font-weight: 600;
    color: #1e1e2f;
    text-align: left;
    margin-bottom: 1.5em;
}

/* Tabla de formulario */
table.form-table {
    width: 100%;
    border-collapse: collapse;
}

table.form-table th {
    text-align: left;
    width: 25%;
    padding: 0.75em 0;
    vertical-align: top;
}


table.form-table tr {
    border: 2px solid #f4f4f6;
    border-left: 0px;
    border-right: 0px;
}

/* table.form-table td {
    padding: 0.75em 0;
} */

/* Campos de horario */
.time-range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.time-range input[type="time"] {
    width: 120px;
    padding: 0.3em;
}

.time-range button.remove-time-range {
    background: #dc3545;
    color: #fff;
    border: none;
    font-size: 1em;
    padding: 0 0.5em;
    border-radius: 3px;
    cursor: pointer;
}

.time-range button.remove-time-range:hover {
    background: #bd2130;
}

table.form-table option{
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--medium);
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
}

table.form-table select {
    border-radius: 3px;
    padding: 10px;
}



/* Botón para agregar horario - versión elegante y compacta */
button.add-time-range {
    margin-top: 0.5em;
    background-color: #2a2a40;
    color: #ffffff;
    border: none;
    padding: 0.35em 0.9em;
    font-size: 0.875rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.3px;
}

button.add-time-range:hover {
    background-color: #3b3b56;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Lista de estudiantes */
ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 0.5em 0 0 0;
}


/* notice */
.notice {
    position: fixed ;
    max-width: 800px;
    margin: 1em auto;
    top: 0;
    right: 0;
    padding: 1em;
    border-left: 4px solid #ccd0d4;
    background-color: #f5f5f5;
    z-index: 1;
}

.notice-close-buttton{
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.notice-success {
    border-color: #46b450;
    background-color: #ecf9ec;
}

.notice-error {
    border-color: #dc3232;
    background-color: #fbeaea;
}

.notice button {
    transition: color 0.2s ease;
}

.notice button:hover {
    color: #000;
}

/* fin notice */



/* print recibos */

@media print {
    header, footer, .site-header, .site-footer, nav, .navigation, .wp-block-site-title, .wp-block-site-tagline {
        display: none !important;
    }
    #gt_float_wrapper{
        display: none !important;
    }
    
    body, html {
        margin: 0 !important;
        padding: 0 !important;
    }
    .wrap, .entry-content, main, .site-main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .co-teacher-receipts main > div:not(.entry-content){
        display: none !important;
    }
    
    .print-hide, .cky-btn-revisit-wrapper {
        display: none !important;
    }

    table, th, td {
        -webkit-print-color-adjust: exact !important; /* Chrome / Safari */
        color-adjust: exact !important;               /* Firefox */
        print-color-adjust: exact !important;         /* Especificación futura */
    }

    .attendance-cell,.legend  {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }


}

/* fin print recibos */




/* Popup de renovación */
/* Overlay oscurecido */
.renewal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}

/* Popup centrado */

.renewal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    width: 90%;
    background-color: #fff;
    border: 2px solid #dc3232;
    padding: 25px;
    z-index: 9999;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    animation: fadeIn 0.4s ease;
}

.renewal-popup h4 {
    margin-top: 0;
    color: #dc3232;
    font-size: 1.3rem;
    margin-bottom: 0.6em;
}

.renewal-popup p {
    font-size: 1rem;
    margin-bottom: 1em;
}

.renewal-popup ul {
    padding-left: 1.2em;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #444;
}

/* Botón flotante de reapertura */
#popup-toggler {
    position: fixed;
    bottom: 15px;
    right: 70px;
    background-color: #2a2a40;
    color: #fff;
    padding: 10px 16px;
    font-size: 0.85rem;
    border-radius: 24px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
/* Fin Popup de renovación */


/* course files */

.course-data-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.course-data-entry {
    width: 100%;
    /* max-width: 60%; */
    padding: 15px 20px;
    border-radius: 8px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.course-data-entry.teacher {
    /* align-self: flex-start; */
    align-self: center;
    background-color: #e9f3ff;
}

.course-data-entry.student {
    align-self: flex-end;
    background-color: #fff4e6;
}

.course-data-entry p {
    margin: 5px 0;
}

.course-data-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.course-data-entry a {
    color: #0073aa;
    text-decoration: underline;
}

.course-upload-form {
    margin-top: 40px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
}

.course-upload-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.course-upload-form input[type="file"] {
    margin-top: 10px;
}

.course-upload-form button {
    margin-top: 15px;
}

.course-delete-form {
    margin-top: 10px;
}

/* Fin course files */



/* Estilo para cada solicitud de baja */
.termination-entry {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.2em;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.termination-entry:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.termination-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.termination-status {
    font-weight: 600;
    font-size: 1rem;
    color: #2a2a40;
}

.toggle-termination {
    background-color: #f4f4f6;
    color: #1e1e2f;
    border: none;
    padding: 0.4em 0.9em;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.toggle-termination:hover {
    background-color: #e5e5ea;
    transform: translateY(-1px);
}

.termination-details {
    display: none;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.termination-details p {
    margin-bottom: 0.8em;
}

.termination-details ul {
    padding-left: 1.2em;
    margin-bottom: 1em;
}

/* Fin Estilo para cada solicitud de baja */


/* my classes container */

.my-classes-container {

    margin: 0.2em auto;
    padding: 0.2em;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5em;
    color: #1e1e2f;
    font-weight: 600;
}

.class-card {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 1.2em 1.6em;
    margin-bottom: 2em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.class-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.class-title {
    font-size: 1.3rem;
    color: #2a2a40;
    margin-bottom: 0.5em;
}

.class-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1em;
}

.class-schedule {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.session-item {
    padding: 0.6em 0;
    border-top: 1px solid #f0f0f0;
    font-size: 0.95rem;
    color: #333;
}

.session-item:first-child {
    border-top: none;
}

.session-date {
    font-weight: 600;
    color: #1e1e2f;
}

.session-duration {
    color: #666;
    font-size: 0.85rem;
    margin-left: 0.5em;
}

/* fin my classes container */

/* course fallback content */
.course-fallback-content {
    max-width: 1200px;
    margin: 2em auto;
    padding: 2em;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.course-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 1.2em;
    color: #1e1e2f;
    font-weight: 600;
}

.course-description {
    font-size: 1rem;
    margin-bottom: 1.5em;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.course-details {
    list-style-type: none;
    padding-left: 0;
    font-size: 0.95rem;
    color: #333;
}

.course-details li {
    padding: 0.6em 0;
    border-top: 1px solid #f0f0f0;
}

.course-details li:first-child {
    border-top: none;
}

.course-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    margin-bottom: 2em;
    flex-wrap: wrap;
}

.course-banner__logo img {
    max-height: 80px;
    width: auto;
}

.course-banner__title {
    background-color: #f1f7ff;
    padding: 1em 1.5em;
    border-radius: 12px;
    flex: 1;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 400px;
}

.course-banner__title h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2962ff;
    line-height: 1.3;
}


/* fin course fallback content */


/* mejora diseño contact form */


.wpcf7-form h4 {
    font-size: 1.3rem;
    margin-bottom: 1.2em;
    color: #1e1e2f;
    font-weight: 600;
    text-align: center;
}

.wpcf7-form p {
    margin-bottom: 1.2em;
}

.wpcf7-form label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5em;
    color: #333;
}

.wpcf7-form-control {
    width: 100%;
    padding: 0.6em;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border-color 0.3s ease;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

.wpcf7-form-control:focus {
    border-color: #2a2a40;
    outline: none;
}

.wpcf7-submit {
    background-color: #2a2a40;
    color: #fff;
    padding: 0.65em 1.6em;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.wpcf7-submit:hover {
    background-color: #3b3b56;
    transform: translateY(-2px);
}


/* Diseño flexible de las etiquetas dentro del p */
.form-row p {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.5em;
}

/* Cada label se comporta como una columna */
.form-row p > label {
    flex: 1 1 calc(33.333% - 1em);
    display: flex;
    flex-direction: column;
}

/* Asegurar que los campos llenen el ancho del label */
.form-row p > label input,
.form-row p > label textarea,
.form-row p > label select {
    width: 100%;
    box-sizing: border-box;
}

/* Asegurar que el textarea tenga aspecto consistente */
.wpcf7-form textarea {
    resize: vertical;
    min-height: 6em;
}


/* fin diseño contact form */ 

.wc-block-components-text-input input[type=date]{
    background-color: #fff;
    border: 1px solid hsla(0, 0%, 7%, .8);
    border-radius: 4px;
    box-sizing: border-box;
    color: #2b2d2f;
    font-family: inherit;
    font-size: 1em;
    height: 3.125em;
    line-height: 1em;
    margin: 0;
    min-height: 0;
    padding: 1em .5em;
    width: 100%;
}

body .wc-block-components-form div.wc-block-components-address-form__custom-user-birthdate label {
    top: 0.9em;
    font-size: 0.8em;
}



.widefat.striped {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.widefat.striped thead {
    background-color: #f4f6f8;
}

.widefat.striped th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.widefat.striped td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.widefat.striped tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.widefat.striped tbody tr:hover {
    background-color: #f1f7ff;
    transition: background-color 0.2s ease-in-out;
}

.widefat.striped td:first-child {
    font-weight: 500;
    color: #222;
}




/* My students */

    .teacher-students {
        max-width: 1000px;
        margin: 0 auto 2em;
        padding: 1em;
    }
    .teacher-students__course {
        margin-bottom: 2em;
    }
    .teacher-students__table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 1em;
    }
    .teacher-students__table th,
    .teacher-students__table td {
        border: 1px solid #ccc;
        padding: 10px;
        text-align: left;
        vertical-align: middle;
    }
    .teacher-students__table th {
        background-color: #f9f9f9;
    }
    .teacher-students__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    .teacher-students__actions .button {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        text-decoration: none !important;
    }
    .teacher-students__actions .dashicons {
        font-size: 28px;
        padding: 5px;
        line-height: 1;
    }
    .teacher-students__schedule-count {
        font-size: 10px;
        background: #444;
        color: #fff;
        width: 15px;
        height: 15px;
        display: flex;
        padding: 0px 0px;
        border-radius: 15px;
        margin-left: -4px;
        margin-top: -6px;
        position: relative;
        top: -6px;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    @media screen and (max-width: 768px) {
        .teacher-students__table,
        .teacher-students__table thead,
        .teacher-students__table tbody,
        .teacher-students__table th,
        .teacher-students__table td,
        .teacher-students__table tr {
            display: block;
        }
        .teacher-students__table thead {
            display: none;
        }
        .teacher-students__table tr {
            margin-bottom: 1em;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
            background: #fff;
        }
        .teacher-students__table td {
            display: flex;
            justify-content: space-between;
            padding: 8px 10px;
            border: none;
            border-bottom: 1px solid #eee;
        }
        .teacher-students__table td:last-child {
            border-bottom: none;
        }
    }

/* fin My students */