/* =========================================================
   PÁGINA EMPLEADOS
   ========================================================= */

.empleados-page {
    width: 100%;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.empleados-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.empleados-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.6px;
}

.empleados-description {
    margin: 6px 0 0;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   BOTÓN NUEVO EMPLEADO
   ========================================================= */

.btn-new-employee {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 10px 16px;

    background: var(--primary);
    border-color: var(--primary);

    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;
}

.btn-new-employee:hover,
.btn-new-employee:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* =========================================================
   TOTAL EMPLEADOS
   ========================================================= */

.employee-stat-wrapper {
    width: 100%;

    margin-bottom: 24px;
}

.employee-stat-card {
    display: flex;
    align-items: center;

    gap: 15px;

    width: 100%;
    min-height: 105px;

    padding: 20px;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow);
}

.employee-stat-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 11px;

    font-size: 20px;
}

.employee-stat-card span {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 11px;
}

.employee-stat-card strong {
    display: block;

    color: var(--text);

    font-size: 24px;

    line-height: 1;
}


/* =========================================================
   LISTADO
   ========================================================= */

.employees-list-card {
    overflow: hidden;

    width: 100%;

    background: #fff;

    border: 1px solid var(--border);
    border-radius: 13px;

    box-shadow: var(--shadow);
}


/* =========================================================
   HEADER LISTADO
   ========================================================= */

.employees-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 23px;

    border-bottom: 1px solid var(--border);
}

.employees-list-header h3 {
    margin: 0;

    color: var(--text);

    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.employee-search {
    position: relative;

    width: 260px;
}

.employee-search i {
    position: absolute;

    top: 50%;
    left: 13px;

    color: #9aa2b1;

    font-size: 13px;

    transform: translateY(-50%);
}

.employee-search input {
    width: 100%;
    height: 38px;

    padding: 0 13px 0 36px;

    color: var(--text);

    background: #f8f9fc;

    border: 1px solid var(--border);
    border-radius: 8px;

    outline: none;

    font-size: 11px;

    transition: all 0.2s ease;
}

.employee-search input:focus {
    background: #fff;

    border-color: #bfdbfe;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}


/* =========================================================
   TABLA
   ========================================================= */

.employees-table {
    min-width: 800px;

    margin: 0;
}

.employees-table thead th {
    padding: 14px 20px;

    color: #8a93a5;

    background: #fafbfc;

    border-bottom: 1px solid var(--border);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;

    white-space: nowrap;
}

.employees-table tbody td {
    padding: 17px 20px;

    vertical-align: middle;

    border-bottom: 1px solid var(--border);
}

.employees-table tbody tr:last-child td {
    border-bottom: 0;
}

.employees-table tbody tr {
    transition: background 0.15s ease;
}

.employees-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   NOMBRE EMPLEADO
   ========================================================= */

.employee-name {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 200px;
}

.employee-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 10px;

    font-size: 10px;
    font-weight: 700;
}

.employee-name strong {
    display: block;

    color: var(--text);

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   ROL
   ========================================================= */

.role-badge {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 600;
}

.role-badge i {
    font-size: 10px;
}


/* Empleado */

.role-employee {
    color: #2563eb;

    background: #eff6ff;
}


/* Administrador */

.role-admin {
    color: #7c3aed;

    background: #f5f3ff;
}


/* =========================================================
   USUARIO
   ========================================================= */

.employee-username {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #697386;

    font-size: 10px;

    white-space: nowrap;
}

.employee-username i {
    color: #9aa2b1;

    font-size: 14px;
}


/* =========================================================
   CONTRASEÑA
   ========================================================= */

.employee-password {
    display: flex;
    align-items: center;

    gap: 7px;
}

.password-hidden {
    color: #697386;

    font-size: 11px;

    letter-spacing: 2px;
}

.password-toggle {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #9aa2b1;

    background: transparent;

    border: 0;

    cursor: pointer;

    font-size: 12px;

    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}


/* =========================================================
   ACCIONES
   ========================================================= */

.employee-actions {
    display: flex;
    justify-content: flex-end;

    gap: 5px;
}

.action-btn {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7b8497;

    background: #f8f9fc;

    border: 1px solid var(--border);

    border-radius: 7px;

    cursor: pointer;

    font-size: 12px;

    transition: all 0.2s ease;
}

.action-btn:hover {
    color: var(--primary);

    background: var(--primary-soft);

    border-color: #dbeafe;
}

.action-btn.delete-employee:hover {
    color: #dc2626;

    background: #fef2f2;

    border-color: #fecaca;
}


/* =========================================================
   FOOTER
   ========================================================= */

.employees-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 20px;

    border-top: 1px solid var(--border);
}

.employees-list-footer>span {
    color: #8a93a5;

    font-size: 10px;
}

.employees-list-footer strong {
    color: var(--text);
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.employees-pagination {
    display: flex;
    align-items: center;

    gap: 4px;
}

.pagination-btn {
    min-width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 7px;

    color: #7b8497;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 6px;

    font-size: 10px;

    cursor: pointer;
}

.pagination-btn:hover {
    color: var(--primary);

    border-color: #bfdbfe;
}

.pagination-btn.active {
    color: #fff;

    background: var(--primary);

    border-color: var(--primary);
}

.pagination-btn.disabled {
    color: #c5cad3;

    cursor: default;
}


/* =========================================================
   MODAL
   ========================================================= */

.employee-modal {
    overflow: hidden;

    border: 0;

    border-radius: 14px;

    box-shadow:
        0 25px 60px rgba(17, 24, 39, 0.18);
}

.employee-modal .modal-header {
    padding: 22px 25px;

    border-bottom: 1px solid var(--border);
}

.employee-modal .modal-title {
    margin: 0;

    color: var(--text);

    font-size: 18px;
    font-weight: 700;
}

.employee-modal .modal-body {
    padding: 25px;
}

.employee-modal .modal-footer {
    padding: 16px 25px;

    border-top: 1px solid var(--border);
}


/* =========================================================
   LABELS
   ========================================================= */

.employee-modal label {
    display: block;

    margin-bottom: 7px;

    color: #4b5563;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   INPUTS
   ========================================================= */

.employee-modal .form-control,
.employee-modal .form-select {
    min-height: 40px;

    color: var(--text);

    background-color: #fff;

    border: 1px solid #e1e5ec;

    border-radius: 8px;

    font-size: 11px;
}

.employee-modal .form-control:focus,
.employee-modal .form-select:focus {
    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.08);
}


/* =========================================================
   INPUT CON ICONO
   ========================================================= */

.input-icon {
    position: relative;
}

.input-icon>i {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 13px;

    color: #9aa2b1;

    transform: translateY(-50%);

    font-size: 13px;

    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 36px;
}


/* =========================================================
   SELECT CON ICONO
   ========================================================= */

.select-icon .form-select {
    padding-left: 36px;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-input .form-control {
    padding-right: 42px;
}

.password-form-toggle {
    position: absolute;

    z-index: 3;

    top: 50%;
    right: 8px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #9aa2b1;

    background: transparent;

    border: 0;

    transform: translateY(-50%);

    cursor: pointer;

    font-size: 13px;
}

.password-form-toggle:hover {
    color: var(--primary);
}

.password-help {
    display: block;

    margin-top: 6px;

    color: #9aa2b1;

    font-size: 9px;
}


/* =========================================================
   BOTÓN PRINCIPAL MODAL
   ========================================================= */

.employee-modal .btn-primary {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    background: var(--primary);

    border-color: var(--primary);

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   MODAL ELIMINAR
   ========================================================= */

.employee-delete-modal {
    padding: 28px;

    text-align: center;

    border: 0;

    border-radius: 14px;
}

.delete-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    color: #dc2626;

    background: #fef2f2;

    border-radius: 50%;

    font-size: 19px;
}

.employee-delete-modal h5 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 16px;
    font-weight: 700;
}

.employee-delete-modal p {
    max-width: 280px;

    margin: 0 auto 20px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.6;
}

.delete-actions {
    display: flex;
    justify-content: center;

    gap: 8px;
}

.delete-actions .btn {
    min-width: 90px;

    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .empleados-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .empleados-header h2 {
        font-size: 23px;
    }

    .btn-new-employee {
        width: 100%;

        justify-content: center;
    }

    .employees-list-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .employee-search {
        width: 100%;
    }

    .employees-list-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .employees-pagination {
        width: 100%;

        justify-content: flex-end;
    }

}


/*EMPLADOS INICIO PAGINA CSS*/
/* =========================================================
   INICIO PANEL EMPLEADO
========================================================= */

.empleado-home-page {
    width: 100%;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.empleado-welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 35px;
}


.empleado-welcome-content h1 {
    margin: 6px 0 12px;

    color: #1f2a44;

    font-size: 34px;
    font-weight: 700;
}


.empleado-welcome-content h1 span {
    color: #6da7de;
}


.empleado-welcome-content p {
    max-width: 600px;

    margin: 0;

    color: #7b8494;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   FECHA
========================================================= */

.empleado-date-card {
    min-width: 260px;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px 20px;

    border: 1px solid #e8edf3;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(31, 42, 68, 0.05);
}


.empleado-date-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(109, 167, 222, 0.12);

    color: #6da7de;

    font-size: 20px;
}


.empleado-date-card span {
    display: block;

    margin-bottom: 3px;

    color: #9aa4b2;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}


.empleado-date-card strong {
    display: block;

    color: #1f2a44;

    font-size: 13px;
}


/* =========================================================
   TARJETA DESTACADA DE RUTAS
========================================================= */

.empleado-rutas-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 35px 40px;

    margin-bottom: 40px;

    border-radius: 20px;

    background:
        linear-gradient(135deg,
            #1f2a44,
            #2d416c);

    box-shadow:
        0 15px 35px rgba(31, 42, 68, 0.16);
}


.rutas-highlight-content {
    display: flex;
    align-items: center;
    gap: 22px;
}


.rutas-highlight-icon {
    width: 70px;
    height: 70px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.12);

    color: #8fc3ef;

    font-size: 30px;
}


.rutas-highlight-text .section-label {
    color: #9bc8ee;
}


.rutas-highlight-text h2 {
    margin: 5px 0 8px;

    color: #ffffff;

    font-size: 25px;
    font-weight: 700;
}


.rutas-highlight-text p {
    max-width: 580px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 14px;
    line-height: 1.7;
}


.empleado-rutas-btn {
    min-width: 165px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 20px;

    border: none;

    border-radius: 12px;

    background: #6da7de;

    color: #ffffff;

    font-weight: 600;

    text-decoration: none;

    transition: 0.25s ease;
}


.empleado-rutas-btn:hover {
    transform: translateY(-2px);

    background: #7db5e8;

    color: #ffffff;
}


.empleado-rutas-btn i {
    font-size: 18px;

    transition: transform 0.25s ease;
}


.empleado-rutas-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   SECCIÓN RESUMEN
========================================================= */

.empleado-summary-section {
    margin-bottom: 30px;
}


.empleado-section-heading {
    margin-bottom: 20px;
}


.empleado-section-heading h2 {
    margin: 5px 0 0;

    color: #1f2a44;

    font-size: 24px;
    font-weight: 700;
}


.empleado-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


/* =========================================================
   TARJETAS RESUMEN
========================================================= */

.empleado-summary-card {
    padding: 25px;

    border: 1px solid #e8edf3;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(31, 42, 68, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.empleado-summary-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(31, 42, 68, 0.08);
}


.summary-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}


.summary-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 21px;
}


.summary-icon-routes {
    background: rgba(109, 167, 222, 0.12);
    color: #6da7de;
}


.summary-icon-clients {
    background: rgba(52, 168, 83, 0.10);
    color: #34a853;
}


.summary-icon-deliveries {
    background: rgba(255, 166, 77, 0.12);
    color: #f59e42;
}


.summary-label {
    color: #9aa4b2;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


.summary-number {
    display: block;

    margin-bottom: 8px;

    color: #1f2a44;

    font-size: 34px;
    font-weight: 700;
}


.empleado-summary-card p {
    margin: 0;

    color: #8a94a3;

    font-size: 13px;
}


/* =========================================================
   MENSAJE INFORMATIVO
========================================================= */

.empleado-info-message {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 20px 24px;

    border: 1px solid rgba(109, 167, 222, 0.22);
    border-radius: 16px;

    background: rgba(109, 167, 222, 0.06);
}


.empleado-info-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #6da7de;

    color: #ffffff;

    font-size: 19px;
}


.empleado-info-message strong {
    display: block;

    margin-bottom: 4px;

    color: #1f2a44;

    font-size: 14px;
}


.empleado-info-message p {
    margin: 0;

    color: #7b8494;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 992px) {

    .empleado-welcome-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .empleado-date-card {
        width: 100%;
        min-width: auto;
    }


    .empleado-rutas-highlight {
        align-items: flex-start;
        flex-direction: column;
    }


    .empleado-rutas-btn {
        width: 100%;
    }


    .empleado-summary-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 576px) {

    .empleado-welcome-content h1 {
        font-size: 28px;
    }


    .empleado-rutas-highlight {
        padding: 28px 22px;
    }


    .rutas-highlight-content {
        align-items: flex-start;
        flex-direction: column;
    }


    .rutas-highlight-text h2 {
        font-size: 22px;
    }


    .empleado-summary-grid {
        grid-template-columns: 1fr;
    }


    .empleado-summary-card {
        padding: 22px;
    }


    .empleado-info-message {
        align-items: flex-start;
        padding: 18px;
    }

}