/* =====================================================
   MINIALFA
   MÓDULO DE EMPLEADOS
===================================================== */


/* =====================================================
   PANEL PRINCIPAL
===================================================== */

.employees-panel {
    padding:
        clamp(20px, 3vw, 30px);

    background:
        var(--surface);

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

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);
}


/* =====================================================
   ENCABEZADO
===================================================== */

.employees-header {
    margin-bottom: 16px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 22px;
}


.employees-title {
    min-width: 0;
}


.employees-title h2 {
    margin:
        4px 0 5px;

    color:
        var(--brand-dark);

    font-size:
        clamp(
            1.25rem,
            2.2vw,
            1.55rem
        );

    line-height: 1.2;
}


.employees-title p {
    margin: 0;

    max-width: 560px;

    color:
        var(--muted);

    font-size: 0.9rem;

    line-height: 1.5;
}


/* =====================================================
   BARRA DE HERRAMIENTAS
===================================================== */

.employees-toolbar {
    margin-bottom: 14px;

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

    gap: 14px;

    position: relative;
    z-index: 6;
}


/* =====================================================
   BUSCADOR
===================================================== */

.employees-search {
    width:
        min(100%, 340px);

    position: relative;

    flex: 0 0 auto;
}


/* =====================================================
   ICONO DEL BUSCADOR
===================================================== */

.employees-search svg {
    position: absolute;

    top: 50%;
    left: 14px;

    z-index: 1;

    color:
        var(--muted);

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;

    stroke-linejoin: round;

    pointer-events: none;

    transform:
        translateY(-50%);
}


.employees-search input {
    width: 100%;

    min-height: 46px;

    padding:
        10px
        14px
        10px
        43px;

    color:
        var(--text);

    background:
        #ffffff;

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

    border-radius: 11px;

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


.employees-search input::placeholder {
    color:
        #80909f;
}


.employees-search input:hover {
    border-color:
        #b9c7d1;
}


.employees-search input:focus {
    border-color:
        var(--accent);

    outline: none;

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


/* =====================================================
   CONTENEDOR DE TABLA
===================================================== */

.employees-table-container {
    width: 100%;

    max-height: calc(100vh - 315px);
    min-height: 300px;

    overflow: auto;

    position: relative;

    background:
        #ffffff;

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

    border-radius: 14px;

    scrollbar-width: thin;
}


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

.employees-table {
    width: 100%;

    min-width: 760px;

    border-collapse: collapse;

    table-layout: auto;
}


/* =====================================================
   CABECERA
===================================================== */

.employees-table th {
    position: sticky;
    top: 0;
    z-index: 5;

    padding:
        13px 15px;

    color:
        #ffffff;

    background:
        var(--brand);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 0.055em;

    text-align: left;

    text-transform: uppercase;

    white-space: nowrap;
}


.employees-table thead th {
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.10),
        0 5px 12px rgba(10, 40, 58, 0.10);
}


.employees-table th:first-child {
    padding-left: 18px;
}


.employees-table th:last-child {
    padding-right: 18px;
}


/* =====================================================
   CELDAS
===================================================== */

.employees-table td {
    padding:
        14px 15px;

    color:
        var(--text);

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

    font-size: 0.88rem;

    vertical-align: middle;

    transition:
        border-color 0.18s ease,
        color 0.18s ease;
}


.employees-table td:first-child {
    padding-left: 18px;
}


.employees-table td:last-child {
    padding-right: 18px;
}


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


/* =====================================================
   FILAS
===================================================== */

.employees-table tbody tr {
    position: relative;

    cursor: pointer;

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


.employees-table tbody tr:hover {
    background:
        #f1f8f8;

    transform:
        translateX(2px);
}


/* =====================================================
   FILA SELECCIONADA
===================================================== */

.employees-table tbody tr.selected,
.employees-table tbody tr.active,
.employees-table tbody tr.is-selected {
    background:
        #e2f3f3;

    box-shadow:
        inset 5px 0 0
        var(--accent),
        inset 0 0 0 1px
        rgba(8, 122, 131, 0.10);

    transform:
        translateX(3px);
}


.employees-table tbody tr.selected td,
.employees-table tbody tr.active td,
.employees-table tbody tr.is-selected td {
    border-bottom-color:
        #bddadb;
}


/* =====================================================
   AVATAR DEL EMPLEADO SELECCIONADO
===================================================== */

.employees-table tbody tr.selected .employee-avatar,
.employees-table tbody tr.active .employee-avatar,
.employees-table tbody tr.is-selected .employee-avatar {
    background:
        var(--accent-dark);

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

    transform:
        scale(1.05);
}


.employees-table tbody tr.selected .employee-code,
.employees-table tbody tr.active .employee-code,
.employees-table tbody tr.is-selected .employee-code {
    color:
        var(--accent-dark);
}


/* =====================================================
   CÓDIGO DE EMPLEADO
===================================================== */

.employee-code {
    color:
        var(--brand);

    font-weight: 800;

    white-space: nowrap;

    transition:
        color 0.18s ease;
}


/* =====================================================
   INFORMACIÓN DEL EMPLEADO
===================================================== */

.employee-person {
    min-width: 220px;

    display: flex;

    align-items: center;

    gap: 12px;
}


.employee-avatar {
    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    color:
        #ffffff;

    background:
        var(--brand);

    border-radius: 50%;

    font-size: 0.8rem;

    font-weight: 800;

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


.employee-info {
    min-width: 0;
}


.employee-info strong,
.employee-info span {
    display: block;
}


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

    font-size: 0.9rem;

    font-weight: 750;
}


.employee-info span {
    margin-top: 2px;

    overflow: hidden;

    color:
        var(--muted);

    font-size: 0.78rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* =====================================================
   BADGES
===================================================== */

.schedule-badge,
.status-badge {
    min-height: 29px;

    padding:
        4px 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 999px;

    font-size: 0.75rem;

    font-weight: 800;

    white-space: nowrap;
}


/* Horario */

.schedule-badge {
    color:
        #075985;

    background:
        #e7f2f8;
}


/* Estado activo */

.status-active {
    color:
        var(--success);

    background:
        var(--success-soft);
}


/* Estado inactivo */

.status-inactive {
    color:
        var(--danger);

    background:
        var(--danger-soft);
}


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

.employees-actions {
    margin-top: 0;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 10px;
}


.employee-action-button {
    min-height: 44px;

    padding:
        10px 16px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border:
        1px solid
        transparent;

    border-radius: 10px;

    font-size: 0.86rem;

    font-weight: 750;

    box-shadow:
        0 3px 10px
        rgba(23, 33, 43, 0.05);

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


/* Pequeño efecto al presionar */

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

    box-shadow:
        0 2px 5px
        rgba(23, 33, 43, 0.08);
}


/* =====================================================
   AGREGAR
===================================================== */

.add-button {
    color:
        #ffffff;

    background:
        var(--brand);

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


.add-button:hover {
    background:
        var(--brand-dark);

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

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

    transform:
        translateY(-2px);
}


/* =====================================================
   EDITAR
===================================================== */

.edit-button {
    color:
        #7a4f00;

    background:
        #fff7e6;

    border-color:
        #e9c879;
}


.edit-button:not(:disabled):hover {
    color:
        #623f00;

    background:
        #ffefc7;

    border-color:
        #d9ad47;

    box-shadow:
        0 7px 16px
        rgba(154, 77, 0, 0.12);

    transform:
        translateY(-2px);
}


/* =====================================================
   ELIMINAR
===================================================== */

.delete-button {
    color:
        #922018;

    background:
        var(--danger-soft);

    border-color:
        #e5a49f;
}


.delete-button:not(:disabled):hover {
    color:
        #7e1711;

    background:
        #ffd8d4;

    border-color:
        #d97b73;

    box-shadow:
        0 7px 16px
        rgba(180, 35, 24, 0.12);

    transform:
        translateY(-2px);
}


/* =====================================================
   BOTONES DESHABILITADOS
===================================================== */

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

    cursor: not-allowed;

    filter:
        grayscale(0.15);

    box-shadow: none;

    transform: none;
}


/* =====================================================
   TEXTO DE AYUDA
===================================================== */

.employees-selection-help {
    margin:
        9px 0 0;

    color:
        var(--muted);

    font-size: 0.77rem;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .employees-header {
        display: grid;

        grid-template-columns:
            1fr;

        align-items: stretch;
    }


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


    .employees-search {
        width: 100%;

        max-width: none;
    }


    .employees-actions {
        justify-content: flex-start;
    }


    .employees-table-container {
        max-height: calc(100vh - 360px);
    }

}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 700px) {

    .employees-panel {
        padding: 17px;
    }


    .employees-title p {
        font-size: 0.84rem;
    }


    .employees-actions {
        width: 100%;

        display: grid;

        grid-template-columns:
            1fr;
    }


    .employees-table-container {
        max-height: 56vh;
        min-height: 280px;
    }


    .employee-action-button {
        width: 100%;
    }


    .employees-selection-help {
        text-align: center;
    }

}


/* =====================================================
   MOVIMIENTO REDUCIDO
===================================================== */

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

    .employees-table tbody tr,
    .employee-avatar,
    .employee-action-button {
        transition: none;
    }

}


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


/* =====================================================
   BOTÓN IMPORTAR
===================================================== */

.import-button {
    color:
        var(--accent-dark);

    background:
        #eaf7f7;

    border-color:
        #9bcfd1;
}


.import-button:hover {
    color:
        #ffffff;

    background:
        var(--accent);

    border-color:
        var(--accent);

    box-shadow:
        0 7px 16px
        rgba(8, 122, 131, 0.16);

    transform:
        translateY(-2px);
}


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

.employee-import-modal {
    position:
        fixed;

    inset:
        0;

    z-index:
        1250;

    display:
        none;

    place-items:
        center;

    padding:
        16px;
}


.employee-import-modal.show,
.employee-import-modal[aria-hidden="false"] {
    display:
        grid;
}


/* =====================================================
   FONDO
===================================================== */

.employee-import-backdrop {
    position:
        absolute;

    inset:
        0;

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

    backdrop-filter:
        blur(3px);

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


/* =====================================================
   VENTANA
===================================================== */

.employee-import-window {
    position:
        relative;

    z-index:
        1;

    width:
        min(100%, 840px);

    max-height:
        min(92vh, 900px);

    display:
        grid;

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

    overflow:
        hidden;

    background:
        #ffffff;

    border:
        1px solid
        rgba(214, 222, 229, 0.82);

    border-radius:
        17px;

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


.employee-import-modal.show
.employee-import-window {
    animation:
        employeeImportIn
        0.22s ease-out;
}


@keyframes employeeImportIn {

    from {
        opacity:
            0;

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

    to {
        opacity:
            1;

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

}


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

.employee-import-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;
}


/* =====================================================
   ENCABEZADO
===================================================== */

.employee-import-header {
    padding:
        17px
        20px;

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        18px;

    background:
        #ffffff;

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


.employee-import-header-content {
    min-width:
        0;
}


.employee-import-header-content > span {
    display:
        block;

    color:
        var(--accent-dark);

    font-size:
        0.68rem;

    font-weight:
        800;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}


.employee-import-header h2 {
    margin:
        3px
        0
        4px;

    color:
        var(--brand-dark);

    font-size:
        1.23rem;

    line-height:
        1.2;
}


.employee-import-header p {
    max-width:
        600px;

    margin:
        0;

    color:
        var(--muted);

    font-size:
        0.78rem;

    line-height:
        1.48;
}


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

.employee-import-close {
    width:
        42px;

    height:
        42px;

    padding:
        0;

    display:
        grid;

    place-items:
        center;

    flex:
        0 0 auto;

    color:
        var(--brand);

    background:
        #ffffff;

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

    border-radius:
        10px;

    cursor:
        pointer;

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


.employee-import-close:hover {
    color:
        var(--danger);

    background:
        var(--danger-soft);

    border-color:
        #e5a49f;

    box-shadow:
        0 5px 12px
        rgba(196, 76, 67, 0.10);

    transform:
        translateY(-1px);
}


.employee-import-close:active {
    transform:
        scale(0.94);
}


/* =====================================================
   CUERPO
===================================================== */

.employee-import-body {
    overflow-y:
        auto;

    padding:
        18px
        20px;

    scrollbar-width:
        thin;
}


/* =====================================================
   DROPZONE
===================================================== */

.employee-import-dropzone {
    min-height:
        190px;

    padding:
        24px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        6px;

    color:
        var(--text);

    background:
        #f8fbfc;

    border:
        1.5px dashed
        #aebfc9;

    border-radius:
        13px;

    text-align:
        center;

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


.employee-import-dropzone.dragging {
    background:
        #edf8f8;

    border-color:
        var(--accent);

    box-shadow:
        inset 0 0 0 1px
        rgba(8, 122, 131, 0.10);

    transform:
        translateY(-1px);
}


.employee-import-file-icon {
    width:
        52px;

    height:
        52px;

    margin-bottom:
        3px;

    display:
        grid;

    place-items:
        center;

    color:
        var(--accent-dark);

    background:
        #e8f5f5;

    border-radius:
        14px;
}


.employee-import-dropzone > strong {
    color:
        var(--brand-dark);

    font-size:
        0.88rem;
}


.employee-import-dropzone > p {
    margin:
        0;

    color:
        var(--muted);

    font-size:
        0.75rem;
}


.employee-import-dropzone > small {
    margin-top:
        3px;

    color:
        #758590;

    font-size:
        0.66rem;
}


/* =====================================================
   SELECCIONAR ARCHIVO
===================================================== */

.employee-import-select-file {
    min-height:
        39px;

    margin-top:
        7px;

    padding:
        7px
        12px;

    color:
        var(--accent-dark);

    background:
        #ffffff;

    border:
        1px solid
        #8dc6c8;

    border-radius:
        9px;

    font-size:
        0.74rem;

    font-weight:
        750;

    cursor:
        pointer;

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


.employee-import-select-file:hover {
    color:
        #ffffff;

    background:
        var(--accent);

    border-color:
        var(--accent);

    transform:
        translateY(-1px);
}


/* =====================================================
   MENSAJES
===================================================== */

.employee-import-message[hidden] {
    display:
        none !important;
}


.employee-import-message {
    margin-top:
        12px;

    padding:
        10px
        11px;

    display:
        flex;

    align-items:
        flex-start;

    gap:
        8px;

    border-radius:
        9px;

    font-size:
        0.72rem;

    line-height:
        1.45;
}


.employee-import-error {
    color:
        #922018;

    background:
        var(--danger-soft);

    border:
        1px solid
        #edc1bc;
}


.employee-import-success {
    color:
        var(--success);

    background:
        var(--success-soft);

    border:
        1px solid
        #cbe7d5;
}


/* =====================================================
   ARCHIVO SELECCIONADO
===================================================== */

.employee-import-selected-file[hidden] {
    display:
        none !important;
}


.employee-import-selected-file {
    margin-top:
        12px;

    padding:
        10px
        11px;

    display:
        grid;

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

    align-items:
        center;

    gap:
        10px;

    background:
        #f8fafb;

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

    border-radius:
        10px;
}


.employee-import-selected-icon {
    width:
        38px;

    height:
        38px;

    display:
        grid;

    place-items:
        center;

    color:
        var(--accent-dark);

    background:
        #e8f5f5;

    border-radius:
        9px;
}


.employee-import-selected-data {
    min-width:
        0;
}


.employee-import-selected-data span,
.employee-import-selected-data strong,
.employee-import-selected-data small {
    display:
        block;
}


.employee-import-selected-data span {
    color:
        var(--muted);

    font-size:
        0.61rem;

    font-weight:
        700;

    text-transform:
        uppercase;
}


.employee-import-selected-data strong {
    margin-top:
        1px;

    overflow:
        hidden;

    color:
        var(--brand-dark);

    font-size:
        0.76rem;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.employee-import-selected-data small {
    margin-top:
        1px;

    color:
        var(--muted);

    font-size:
        0.65rem;
}


.employee-import-remove {
    min-height:
        34px;

    padding:
        6px
        9px;

    color:
        var(--danger);

    background:
        #ffffff;

    border:
        1px solid
        #e4b3ae;

    border-radius:
        8px;

    font-size:
        0.68rem;

    font-weight:
        750;

    cursor:
        pointer;
}


/* =====================================================
   PREVIEW
===================================================== */

.employee-import-preview[hidden] {
    display:
        none !important;
}


.employee-import-preview {
    margin-top:
        15px;

    padding-top:
        15px;

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


.employee-import-preview-header {
    margin-bottom:
        10px;

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        14px;
}


.employee-import-preview-header > div > span,
.employee-import-preview-header > div > strong {
    display:
        block;
}


.employee-import-preview-header > div > span {
    color:
        var(--accent-dark);

    font-size:
        0.63rem;

    font-weight:
        800;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;
}


.employee-import-preview-header > div > strong {
    margin-top:
        2px;

    color:
        var(--brand-dark);

    font-size:
        0.86rem;
}


.employee-import-preview-header > small {
    color:
        var(--muted);

    font-size:
        0.65rem;

    text-align:
        right;
}


/* =====================================================
   RESUMEN
===================================================== */

.employee-import-summary {
    margin-bottom:
        10px;

    display:
        grid;

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

    gap:
        8px;
}


.employee-import-summary article {
    padding:
        9px
        10px;

    background:
        #f8fafb;

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

    border-left:
        4px solid
        var(--brand);

    border-radius:
        8px;
}


.employee-import-summary span,
.employee-import-summary strong {
    display:
        block;
}


.employee-import-summary span {
    color:
        var(--muted);

    font-size:
        0.58rem;

    font-weight:
        700;

    text-transform:
        uppercase;
}


.employee-import-summary strong {
    margin-top:
        2px;

    color:
        var(--brand-dark);

    font-size:
        1.05rem;
}


.employee-import-summary-valid {
    border-left-color:
        var(--success) !important;
}


.employee-import-summary-valid strong {
    color:
        var(--success);
}


.employee-import-summary-duplicate {
    border-left-color:
        #b7791f !important;
}


.employee-import-summary-duplicate strong {
    color:
        #8a5a12;
}


.employee-import-summary-error {
    border-left-color:
        var(--danger) !important;
}


.employee-import-summary-error strong {
    color:
        var(--danger);
}


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

.employee-import-table-container {
    max-height:
        310px;

    overflow:
        auto;

    background:
        #ffffff;

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

    border-radius:
        10px;

    scrollbar-width:
        thin;
}


.employee-import-table {
    width:
        100%;

    min-width:
        650px;

    border-collapse:
        collapse;
}


.employee-import-table th {
    position:
        sticky;

    top:
        0;

    z-index:
        1;

    padding:
        9px
        10px;

    color:
        #ffffff;

    background:
        var(--brand);

    font-size:
        0.64rem;

    font-weight:
        800;

    letter-spacing:
        0.045em;

    text-align:
        left;

    text-transform:
        uppercase;
}


.employee-import-table td {
    padding:
        9px
        10px;

    color:
        var(--text);

    border-bottom:
        1px solid
        #e3e8ec;

    font-size:
        0.71rem;

    vertical-align:
        middle;
}


.employee-import-table tbody tr:last-child td {
    border-bottom:
        0;
}


.employee-import-table tbody tr.employee-import-row-invalid {
    background:
        #fff8f7;
}


.employee-import-table tbody tr.employee-import-row-duplicate {
    background:
        #fffaf0;
}


.employee-import-result {
    min-height:
        25px;

    padding:
        3px
        7px;

    display:
        inline-flex;

    align-items:
        center;

    border-radius:
        999px;

    font-size:
        0.62rem;

    font-weight:
        800;

    white-space:
        nowrap;
}


.employee-import-result-valid {
    color:
        var(--success);

    background:
        var(--success-soft);
}


.employee-import-result-duplicate {
    color:
        #8a5a12;

    background:
        #fff0c7;
}


.employee-import-result-invalid {
    color:
        var(--danger);

    background:
        var(--danger-soft);
}


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

.employee-import-note {
    margin-top:
        13px;

    padding:
        10px
        11px;

    display:
        flex;

    align-items:
        flex-start;

    gap:
        8px;

    color:
        #315e67;

    background:
        #eef7f8;

    border:
        1px solid
        #d1e7e9;

    border-left:
        4px solid
        var(--accent);

    border-radius:
        8px;
}


.employee-import-note svg {
    margin-top:
        1px;

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


.employee-import-note p {
    margin:
        0;

    font-size:
        0.68rem;

    line-height:
        1.5;
}


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

.employee-import-actions {
    padding:
        14px
        20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        9px;

    background:
        #ffffff;

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


.employee-import-secondary,
.employee-import-primary {
    min-height:
        41px;

    padding:
        8px
        13px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    border-radius:
        9px;

    font-size:
        0.75rem;

    font-weight:
        750;

    cursor:
        pointer;

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


.employee-import-secondary {
    color:
        var(--text);

    background:
        #ffffff;

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


.employee-import-secondary:hover {
    background:
        #f4f7f8;

    border-color:
        #b9c7d1;

    transform:
        translateY(-1px);
}


.employee-import-primary {
    color:
        #ffffff;

    background:
        var(--brand);

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


.employee-import-primary:not(:disabled):hover {
    background:
        var(--brand-dark);

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

    box-shadow:
        0 6px 14px
        rgba(10, 40, 58, 0.16);

    transform:
        translateY(-1px);
}


.employee-import-primary:disabled {
    opacity:
        0.42;

    cursor:
        not-allowed;
}


.employee-import-secondary:active,
.employee-import-primary:not(:disabled):active {
    transform:
        scale(0.97);
}


/* =====================================================
   CELDAS IMPORTADAS EN TABLA PRINCIPAL
===================================================== */

.employee-placeholder {
    color:
        var(--muted);

    font-size:
        0.78rem;

    font-style:
        italic;
}


.schedule-pending,
.status-pending {
    color:
        #687782;

    background:
        #eef2f4;
}


/* =====================================================
   FOCUS
===================================================== */

.import-button:focus-visible,
.employee-import-close:focus-visible,
.employee-import-select-file:focus-visible,
.employee-import-remove:focus-visible,
.employee-import-secondary:focus-visible,
.employee-import-primary:focus-visible {
    outline:
        3px solid
        rgba(8, 122, 131, 0.14);

    outline-offset:
        2px;
}


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

@media (max-width: 700px) {

    .employee-import-modal {
        padding:
            8px;
    }


    .employee-import-window {
        max-height:
            calc(100vh - 16px);
    }


    .employee-import-header,
    .employee-import-body,
    .employee-import-actions {
        padding-left:
            15px;

        padding-right:
            15px;
    }


    .employee-import-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .employee-import-preview-header {
        align-items:
            flex-start;

        flex-direction:
            column;
    }


    .employee-import-preview-header > small {
        text-align:
            left;
    }

}


@media (max-width: 480px) {

    .employee-import-summary {
        grid-template-columns:
            1fr;
    }


    .employee-import-selected-file {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }


    .employee-import-remove {
        grid-column:
            1 / -1;

        justify-self:
            start;
    }


    .employee-import-actions {
        display:
            grid;

        grid-template-columns:
            1fr;
    }


    .employee-import-secondary,
    .employee-import-primary {
        width:
            100%;
    }

}


/* =====================================================
   MOVIMIENTO REDUCIDO
===================================================== */

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

    .employee-import-window,
    .employee-import-dropzone,
    .employee-import-close,
    .employee-import-select-file,
    .employee-import-secondary,
    .employee-import-primary,
    .import-button {
        animation:
            none;

        transition:
            none;
    }

}


/* =====================================================
   AJUSTES - ESTADO BAJA
===================================================== */

.status-baja {
    color: #79530b;
    background: #fff0c7;
}


/* =====================================================
   BOTÓN DAR DE BAJA
===================================================== */

.baja-button {
    color: #805106;
    background: #fff5df;
    border-color: #e7c27c;
}

.baja-button:not(:disabled):hover {
    color: #ffffff;
    background: #a6680b;
    border-color: #a6680b;
    box-shadow:
        0 7px 16px
        rgba(154, 91, 11, 0.15);
    transform: translateY(-2px);
}


/* =====================================================
   FILA DE EMPLEADO EN BAJA
===================================================== */

.employees-table tbody tr[data-status="Baja"] {
    background: #fcfaf5;
}

.employees-table tbody tr[data-status="Baja"]:hover {
    background: #fff8e8;
}

.employees-table tbody tr[data-status="Baja"] .employee-avatar {
    background: #8b7445;
}


/* =====================================================
   MODAL - DAR DE BAJA
===================================================== */

.employee-baja-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;

    display: none;
    place-items: center;

    padding: 16px;
}

.employee-baja-modal.show,
.employee-baja-modal[aria-hidden="false"] {
    display: grid;
}

.employee-baja-backdrop {
    position: absolute;
    inset: 0;

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

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

.employee-baja-window {
    position: relative;
    z-index: 1;

    width: min(100%, 480px);
    padding: 24px;

    background: #ffffff;

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

    box-shadow:
        0 26px 70px
        rgba(0, 0, 0, 0.26);
}

.employee-baja-modal.show .employee-baja-window {
    animation:
        employeeBajaIn
        0.2s ease-out;
}

@keyframes employeeBajaIn {

    from {
        opacity: 0;
        transform:
            translateY(10px)
            scale(0.985);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

.employee-baja-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;
}

.employee-baja-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 15px;

    display: grid;
    place-items: center;

    color: #8a5708;
    background: #fff0c7;

    border-radius: 13px;
}

.employee-baja-content > span {
    display: block;

    color: #8a5708;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-baja-content h2 {
    margin: 4px 0 8px;

    color: var(--brand-dark);
    font-size: 1.3rem;
}

.employee-baja-content > p {
    margin: 0;

    color: var(--text);

    font-size: 0.86rem;
    line-height: 1.55;
}

.employee-baja-note {
    margin-top: 16px;
    padding: 11px 12px;

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

    color: #6f520f;
    background: #fff9eb;

    border: 1px solid #edd7a5;
    border-left: 4px solid #d3a13f;
    border-radius: 9px;

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

.employee-baja-note svg {
    margin-top: 1px;
}

.employee-baja-actions {
    margin-top: 22px;

    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.employee-baja-cancel,
.employee-baja-confirm {
    min-height: 41px;
    padding: 8px 14px;

    border-radius: 9px;

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

    cursor: pointer;

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

.employee-baja-cancel {
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
}

.employee-baja-cancel:hover {
    background: #f4f7f8;
    border-color: #b9c7d1;
}

.employee-baja-confirm {
    color: #ffffff;
    background: #a6680b;
    border: 1px solid #a6680b;
}

.employee-baja-confirm:not(:disabled):hover {
    background: #875207;
    border-color: #875207;

    box-shadow:
        0 6px 14px
        rgba(138, 87, 8, 0.18);

    transform: translateY(-1px);
}

.employee-baja-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.employee-baja-cancel:active,
.employee-baja-confirm:not(:disabled):active {
    transform: scale(0.97);
}


/* =====================================================
   FOCUS - BAJA
===================================================== */

.baja-button:focus-visible,
.employee-baja-cancel:focus-visible,
.employee-baja-confirm:focus-visible {
    outline:
        3px solid
        rgba(8, 122, 131, 0.14);

    outline-offset: 2px;
}


/* =====================================================
   RESPONSIVE - BAJA
===================================================== */

@media (max-width: 520px) {

    .employee-baja-window {
        padding: 20px;
    }

    .employee-baja-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .employee-baja-cancel,
    .employee-baja-confirm {
        width: 100%;
    }
}


/* =====================================================
   MOVIMIENTO REDUCIDO - BAJA
===================================================== */

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

    .employee-baja-window,
    .employee-baja-cancel,
    .employee-baja-confirm,
    .baja-button {
        animation: none;
        transition: none;
    }
}
