/* =====================================================
   MINIALFA
   GESTIONAR HORARIOS
===================================================== */


/* =====================================================
   MODAL
===================================================== */

.edit-schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    place-items: center;

    padding: 20px;
}

.edit-schedule-modal.show,
.edit-schedule-modal.is-open,
.edit-schedule-modal.active,
.edit-schedule-modal[aria-hidden="false"] {
    display: grid;
}

.edit-schedule-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(8, 25, 37, 0.72);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* =====================================================
   SVG
===================================================== */

.edit-schedule-modal svg {
    flex: 0 0 auto;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    vector-effect: non-scaling-stroke;
}


/* =====================================================
   TARJETA PRINCIPAL

   IMPORTANTE:
   Este tamaño NO cambia entre lista y edición.

   Además coincide con el ancho de Crear horario.
===================================================== */

.edit-schedule-card {
    position: relative;
    z-index: 1;

    width: min(100%, 900px);

    height: min(
        760px,
        calc(100vh - 40px)
    );

    max-height: calc(100vh - 40px);

    /*
        El scroll vuelve a pertenecer a la tarjeta.
        Así la X se comporta como en Crear horario
        y no queda flotando sobre el formulario.
    */
    overflow-x: hidden;
    overflow-y: auto;

    background: var(--surface);

    border: 1px solid rgba(214, 222, 229, 0.8);
    border-radius: 18px;

    box-shadow:
        0 28px 80px
        rgba(0, 0, 0, 0.30);

    scrollbar-width: thin;
    scrollbar-color: #bcc9d2 transparent;
    scrollbar-gutter: stable;
}

.edit-schedule-modal.show .edit-schedule-card,
.edit-schedule-modal.is-open .edit-schedule-card,
.edit-schedule-modal.active .edit-schedule-card {
    animation: editScheduleModalIn 0.22s ease-out;
}


/* =====================================================
   VISTAS

   Ya NO tienen scroll propio.
===================================================== */

#scheduleListView,
#scheduleFormView {
    width: 100%;
    min-height: 100%;

    overflow: visible;
}

#scheduleListView[hidden],
#scheduleFormView[hidden] {
    display: none !important;
}

#scheduleListView:not([hidden]) {
    display: flex;
    flex-direction: column;
}


/* =====================================================
   CERRAR

   Sigue formando parte del contenido de la tarjeta.
   Al desplazarnos hacia abajo se va junto con el header,
   igual que en Crear horario.
===================================================== */

.edit-schedule-close {
    position: absolute;
    top: 20px;
    right: 22px;
    z-index: 10;

    width: 42px;
    height: 42px;
    padding: 0;

    display: grid;
    place-items: center;

    color: var(--brand);
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 11px;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.edit-schedule-close:hover {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #e5a49f;

    box-shadow:
        0 6px 15px
        rgba(180, 35, 24, 0.10);

    transform: translateY(-1px);
}

.edit-schedule-close:active {
    transform: scale(0.94);
}


/* =====================================================
   ENCABEZADOS
===================================================== */

.edit-schedule-header,
.edit-form-header {
    flex: 0 0 auto;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfcfd 100%
        );

    border-bottom: 1px solid var(--border);
}

.edit-schedule-header {
    padding: 22px 78px 22px 24px;
}

.edit-form-header {
    min-height: 92px;
    padding: 20px 78px 20px 22px;

    display: flex;
    align-items: center;
    gap: 15px;
}

.edit-schedule-header span,
.edit-form-header > div > span {
    color: var(--accent-dark);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.edit-schedule-header h2,
.edit-form-header h2 {
    margin: 4px 0;

    color: var(--brand-dark);

    font-size: 1.35rem;
    line-height: 1.2;
}

.edit-schedule-header p,
.edit-form-header p {
    margin: 0;

    color: var(--muted);

    font-size: 0.85rem;
    line-height: 1.45;
}


/* =====================================================
   VOLVER
===================================================== */

.edit-back-button {
    min-height: 40px;
    padding: 8px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    flex: 0 0 auto;

    color: var(--brand);
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    font-size: 0.76rem;
    font-weight: 750;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.edit-back-button:hover {
    background: var(--surface-soft);
    border-color: #b9c7d1;

    transform: translateX(-2px);
}

.edit-back-button:active {
    transform:
        translateX(-1px)
        scale(0.97);
}


/* =====================================================
   TOOLBAR
===================================================== */

.edit-schedule-toolbar {
    flex: 0 0 auto;

    padding: 18px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.edit-toolbar-help {
    max-width: 280px;

    color: var(--muted);

    font-size: 0.74rem;
    line-height: 1.4;
}


/* =====================================================
   BUSCADORES
===================================================== */

.edit-schedule-search,
.edit-employee-search {
    position: relative;
}

.edit-schedule-search {
    width: min(100%, 390px);
}

.edit-employee-search {
    margin-bottom: 11px;
}

.edit-search-icon,
.edit-employee-search-icon {
    position: absolute;

    top: 50%;
    left: 15px;
    z-index: 3;

    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    color: var(--muted);

    pointer-events: none;

    transform: translateY(-50%);
}

#editScheduleSearch,
#editEmployeeSearch {
    width: 100%;
    min-height: 46px;

    padding:
        10px
        13px
        10px
        47px !important;

    color: var(--text);
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    appearance: textfield;
    -webkit-appearance: textfield;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

#editScheduleSearch::-webkit-search-decoration,
#editEmployeeSearch::-webkit-search-decoration {
    display: none;
}

#editScheduleSearch:hover,
#editEmployeeSearch:hover {
    border-color: #b8c6d0;
}

#editScheduleSearch:focus,
#editEmployeeSearch:focus {
    border-color: var(--accent);

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(8, 122, 131, 0.13);
}


/* =====================================================
   TABLA
===================================================== */

.edit-schedule-table-container {
    flex: 0 0 auto;

    min-height: 245px;

    margin: 0 22px 20px;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 13px;
}

.edit-schedule-table {
    width: 100%;
    min-width: 800px;

    border-collapse: collapse;
}

.edit-schedule-table th {
    padding: 12px 14px;

    color: #ffffff;
    background: var(--brand);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.045em;
    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.edit-schedule-table td {
    padding: 13px 14px;

    color: var(--text);

    border-bottom: 1px solid var(--border);

    font-size: 0.82rem;

    vertical-align: middle;
}

.edit-schedule-table tbody tr:last-child td {
    border-bottom: 0;
}

.edit-schedule-table tbody tr {
    cursor: pointer;

    transition:
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.edit-schedule-table tbody tr:hover {
    background: #f1f8f8;
}

.edit-schedule-table tbody tr.selected {
    background: #e2f3f3;

    box-shadow:
        inset 5px 0 0
        var(--accent);

    transform: translateX(2px);
}

.edit-schedule-table td strong {
    color: var(--brand-dark);
    font-weight: 750;
}


/* =====================================================
   ESTADOS
===================================================== */

.edit-status {
    min-height: 29px;
    padding: 4px 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    font-size: 0.72rem;
    font-weight: 800;
}

.edit-status.active {
    color: var(--success);
    background: var(--success-soft);
}

.edit-status.inactive {
    color: var(--danger);
    background: var(--danger-soft);
}


/* =====================================================
   SIN RESULTADOS / SIN HORARIOS

   Conserva la misma altura que el área de la tabla.
===================================================== */

.edit-empty-state {
    flex: 0 0 auto;

    min-height: 245px;

    margin: 0 22px 20px;
    padding: 32px 20px;

    display: grid;
    place-content: center;

    color: var(--muted);
    background: var(--surface-soft);

    border: 1px dashed var(--border);
    border-radius: 12px;

    text-align: center;
}

.edit-empty-state[hidden] {
    display: none !important;
}

.edit-empty-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 12px;

    display: grid;
    place-items: center;

    color: var(--brand);
    background: #edf2f4;

    border-radius: 50%;
}

.edit-empty-state strong,
.edit-empty-state span {
    display: block;
}

.edit-empty-state strong {
    color: var(--brand-dark);

    font-size: 0.96rem;
}

.edit-empty-state span {
    margin-top: 4px;

    color: var(--muted);

    font-size: 0.78rem;
}


/* =====================================================
   ACCIONES LISTA
===================================================== */

.edit-schedule-actions {
    flex: 0 0 auto;

    margin: auto 22px 22px;
    padding-top: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    border-top: 1px solid var(--border);
}

#scheduleSelectionHint {
    color: var(--muted);

    font-size: 0.76rem;
    line-height: 1.4;
}

.edit-schedule-action-buttons {
    display: flex;
    gap: 8px;
}

.edit-action-button {
    min-height: 40px;
    padding: 8px 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 0.79rem;
    font-weight: 750;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.edit-action-button.edit-button {
    color: #714d00;
    background: #fff8e8;

    border-color: #e4c478;
}

.edit-action-button.delete-button {
    color: var(--danger);
    background: var(--danger-soft);

    border-color: #e5aaa5;
}

.edit-action-button:not(:disabled):hover {
    box-shadow:
        0 6px 14px
        rgba(23, 33, 43, 0.08);

    transform: translateY(-2px);
}

.edit-action-button:not(:disabled):active {
    transform:
        translateY(1px)
        scale(0.97);
}

.edit-action-button:disabled {
    opacity: 0.42;

    cursor: not-allowed;

    box-shadow: none;

    transform: none;
}


/* =====================================================
   CONFIRMAR ELIMINACIÓN
===================================================== */

.edit-delete-confirm {
    flex: 0 0 auto;

    margin: 0 22px 20px;
    padding: 15px;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;
    gap: 13px;

    color: #6f1711;
    background: var(--danger-soft);

    border: 1px solid #e5aaa5;
    border-radius: 12px;
}

.edit-delete-confirm[hidden] {
    display: none !important;
}

.edit-delete-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: var(--danger);
    background: #ffffff;

    border-radius: 10px;
}

.edit-delete-content {
    min-width: 0;
}

.edit-delete-content strong {
    display: block;

    color: #721c15;
}

.edit-delete-content p {
    margin: 2px 0 0;

    font-size: 0.77rem;
}

.edit-delete-confirm-actions {
    display: flex;
    gap: 8px;
}

.edit-confirm-cancel,
.edit-confirm-delete {
    min-height: 39px;
    padding: 7px 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 9px;

    font-size: 0.78rem;
    font-weight: 750;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.edit-confirm-cancel {
    color: var(--text);
    background: #ffffff;

    border: 1px solid var(--border);
}

.edit-confirm-delete {
    color: #ffffff;
    background: var(--danger);

    border: 1px solid var(--danger);
}

.edit-confirm-cancel:hover,
.edit-confirm-delete:hover {
    transform: translateY(-1px);
}

.edit-confirm-cancel:active,
.edit-confirm-delete:active {
    transform: scale(0.97);
}


/* =====================================================
   FORMULARIO
===================================================== */

#editScheduleForm {
    padding: 24px;
}

.edit-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px 20px;
}

.edit-full-field {
    grid-column: 1 / -1;
}

.edit-field {
    min-width: 0;

    display: grid;
    align-content: start;
    gap: 7px;
}

.edit-field > label,
.edit-field-heading label {
    color: var(--text);

    font-size: 0.81rem;
    font-weight: 750;
}

.edit-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.edit-field-heading > span {
    color: var(--muted);

    font-size: 0.70rem;
    font-weight: 650;
}


/* =====================================================
   INPUTS / SELECTS
===================================================== */

.edit-field input:not([type="checkbox"]),
.edit-field select {
    width: 100%;
    min-height: 46px;

    padding: 10px 13px;

    color: var(--text);
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.edit-field input:not([type="checkbox"]):hover,
.edit-field select:hover {
    border-color: #b8c6d0;
}

.edit-field input:not([type="checkbox"]):focus,
.edit-field select:focus {
    border-color: var(--accent);

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(8, 122, 131, 0.13);
}

.edit-select-wrapper {
    position: relative;
}

.edit-select-wrapper select {
    padding-right: 42px;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.edit-select-wrapper::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 16px;

    width: 7px;
    height: 7px;

    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);

    pointer-events: none;

    transform:
        translateY(-65%)
        rotate(45deg);
}


/* =====================================================
   VALIDACIÓN
===================================================== */

.edit-field-error {
    display: none;

    color: var(--danger);

    font-size: 0.72rem;
    font-weight: 650;
}

.edit-field.has-error .edit-field-error {
    display: block;
}

.edit-field.has-error input {
    border-color: var(--danger);
}


/* =====================================================
   HORARIO DE COMIDA
===================================================== */

.edit-meal-section {
    padding: 16px;

    background: #f8fbfc;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.edit-meal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.edit-meal-header > div {
    min-width: 0;
}

.edit-meal-eyebrow {
    display: block;

    margin-bottom: 2px;

    color: var(--accent-dark);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.edit-meal-header strong {
    display: block;

    color: var(--brand-dark);

    font-size: 0.9rem;
    font-weight: 750;
}

.edit-optional-badge {
    flex: 0 0 auto;

    padding: 4px 8px;

    color: var(--muted);
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 700;
}

.edit-meal-description {
    margin: 6px 0 14px;

    color: var(--muted);

    font-size: 0.76rem;
    line-height: 1.45;
}

.edit-meal-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* =====================================================
   DÍAS
===================================================== */

.edit-days {
    display: grid;

    grid-template-columns:
        repeat(7, minmax(0, 1fr));

    gap: 9px;
}

.edit-day-option {
    position: relative;

    min-height: 64px;
    padding: 9px 6px;

    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;

    color: var(--muted);
    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 10px;

    cursor: pointer;
    user-select: none;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.edit-day-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.edit-day-option span {
    font-size: 0.89rem;
    font-weight: 800;
}

.edit-day-option small {
    font-size: 0.64rem;
    font-weight: 650;
}

.edit-day-option:hover {
    color: var(--accent-dark);
    background: #f1f8f8;

    border-color: #acd0d1;

    transform: translateY(-1px);
}

.edit-day-option:has(input:checked) {
    color: #ffffff;
    background: var(--accent-dark);

    border-color: var(--accent-dark);

    transform: translateY(-2px);
}


/* =====================================================
   EMPLEADOS
===================================================== */

.edit-employee-counter {
    padding: 5px 9px;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    color: #075985;
    background: #e7f2f8;

    border-radius: 999px;

    font-size: 0.72rem;

    white-space: nowrap;
}

.edit-employees {
    padding: 14px;

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 12px;
}

.edit-employee-list {
    max-height: 240px;

    overflow-y: auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;

    scrollbar-width: thin;
}

.edit-employee-item {
    position: relative;

    min-width: 0;
    min-height: 58px;

    padding: 9px 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 10px;

    cursor: pointer;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.edit-employee-item:hover {
    background: #f7fbfb;

    border-color: #b5d2d3;

    transform: translateY(-1px);
}

.edit-employee-item > input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.edit-employee-person {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-employee-person > div:last-child {
    min-width: 0;
}

.edit-employee-avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: #ffffff;
    background: var(--brand);

    border-radius: 50%;

    font-size: 0.7rem;
    font-weight: 800;

    transition:
        background-color 0.16s ease,
        transform 0.16s ease;
}

.edit-employee-person strong,
.edit-employee-person span {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.edit-employee-person strong {
    color: var(--brand-dark);

    font-size: 0.80rem;
    font-weight: 750;
}

.edit-employee-person span {
    margin-top: 1px;

    color: var(--muted);

    font-size: 0.71rem;
}

.edit-employee-check {
    width: 26px;
    height: 26px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: transparent;
    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 8px;

    transition:
        color 0.16s ease,
        background-color 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.edit-employee-item:has(> input:checked) {
    background: #e8f4f5;

    border-color: #93c6c9;
}

.edit-employee-item:has(> input:checked)
.edit-employee-avatar {
    background: var(--accent-dark);

    transform: scale(1.03);
}

.edit-employee-item:has(> input:checked)
.edit-employee-check {
    color: #ffffff;
    background: var(--accent-dark);

    border-color: var(--accent-dark);

    transform: scale(1.04);
}


/* =====================================================
   NOTA
===================================================== */

.edit-schedule-note {
    margin-top: 12px;
    padding: 11px 13px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: #075985;
    background: #edf7fb;

    border: 1px solid #cfe4ee;
    border-radius: 10px;
}

.edit-schedule-note svg {
    margin-top: 1px;
}

.edit-schedule-note span {
    font-size: 0.75rem;
    line-height: 1.45;
}


/* =====================================================
   ACCIONES FORMULARIO
===================================================== */

.edit-form-actions {
    margin-top: 22px;
    padding-top: 18px;

    display: flex;
    justify-content: flex-end;
    gap: 10px;

    border-top: 1px solid var(--border);
}

.edit-form-cancel,
.edit-form-save {
    min-height: 43px;
    padding: 9px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 10px;

    font-size: 0.84rem;
    font-weight: 750;

    transition:
        background-color 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.edit-form-cancel {
    color: var(--text);
    background: #ffffff;

    border: 1px solid var(--border);
}

.edit-form-save {
    color: #ffffff;
    background: var(--brand);

    border: 1px solid var(--brand);
}

.edit-form-cancel:hover {
    background: var(--surface-soft);

    border-color: #b9c7d1;

    transform: translateY(-2px);
}

.edit-form-save:hover {
    background: var(--brand-dark);

    border-color: var(--brand-dark);

    box-shadow:
        0 7px 16px
        rgba(10, 40, 58, 0.18);

    transform: translateY(-2px);
}

.edit-form-cancel:active,
.edit-form-save:active {
    transform:
        translateY(1px)
        scale(0.97);
}


/* =====================================================
   CAMBIO DE VISTA
===================================================== */

.edit-view-enter {
    animation:
        editViewEnter
        0.22s ease-out;
}

@keyframes editViewEnter {

    from {
        opacity: 0;

        transform:
            translateY(8px)
            scale(0.995);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =====================================================
   APERTURA
===================================================== */

@keyframes editScheduleModalIn {

    from {
        opacity: 0;

        transform:
            translateY(12px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 760px) {

    .edit-schedule-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-toolbar-help {
        display: none;
    }

    .edit-schedule-search {
        width: 100%;
    }

    .edit-employee-list {
        grid-template-columns: 1fr;
    }

    .edit-delete-confirm {
        grid-template-columns:
            auto minmax(0, 1fr);
    }

    .edit-delete-confirm-actions {
        grid-column: 1 / -1;

        justify-content: flex-end;
    }
}


@media (max-width: 680px) {

    .edit-schedule-modal {
        padding: 10px;
    }

    .edit-schedule-card {
        width: 100%;

        height: calc(100vh - 20px);
        max-height: calc(100vh - 20px);

        border-radius: 15px;
    }

    .edit-schedule-header,
    .edit-schedule-toolbar,
    .edit-form-header,
    #editScheduleForm {
        padding: 16px;
    }

    .edit-schedule-header,
    .edit-form-header {
        padding-right: 68px;
    }

    .edit-schedule-close {
        top: 14px;
        right: 14px;
    }

    .edit-schedule-table-container,
    .edit-empty-state,
    .edit-schedule-actions {
        margin-inline: 16px;
    }

    .edit-schedule-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .edit-schedule-action-buttons,
    .edit-form-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .edit-form-grid,
    .edit-meal-grid {
        grid-template-columns: 1fr;
    }

    .edit-full-field {
        grid-column: auto;
    }

    .edit-days {
        grid-template-columns:
            repeat(4, 1fr);
    }
}


@media (max-width: 430px) {

    .edit-days {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .edit-schedule-action-buttons,
    .edit-form-actions {
        grid-template-columns: 1fr;
    }

    .edit-back-button span {
        display: none;
    }
}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .edit-schedule-card,
    .edit-schedule-table tbody tr,
    .edit-day-option,
    .edit-employee-item,
    .edit-action-button,
    .edit-view-enter {
        animation: none;

        transition: none;
    }
}