/* =========================================================
   PÁGINA RUTAS
   ========================================================= */

.rutas-page {
    width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.rutas-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.rutas-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.6px;
}

.rutas-description {
    margin: 6px 0 0;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   BOTÓN NUEVA RUTA
   ========================================================= */

.btn-new-route {
    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-route:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* =========================================================
   ESTADÍSTICAS
   ========================================================= */

.routes-stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;

    margin-bottom: 24px;
}

.route-stat-card {
    display: flex;
    align-items: center;

    gap: 15px;

    min-height: 105px;

    padding: 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 13px;

    box-shadow: var(--shadow);
}

.route-stat-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    font-size: 20px;
}

.route-stat-icon.blue {
    color: #2563eb;
    background: #eff6ff;
}

.route-stat-icon.green {
    color: #059669;
    background: #ecfdf5;
}

.route-stat-card span {
    display: block;

    margin-bottom: 3px;

    color: var(--text-muted);

    font-size: 11px;
}

.route-stat-card strong {
    color: var(--text);

    font-size: 24px;
}


/* =========================================================
   LISTADO
   ========================================================= */

.routes-list-card {
    overflow: hidden;

    width: 100%;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 13px;

    box-shadow: var(--shadow);
}

.routes-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    padding: 22px 23px;

    border-bottom: 1px solid var(--border);
}

.routes-list-header h3 {
    margin: 0;

    color: var(--text);

    font-size: 17px;
    font-weight: 700;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.route-search {
    position: relative;

    width: 260px;
}

.route-search i {
    position: absolute;

    top: 50%;
    left: 13px;

    color: #9aa2b1;

    transform: translateY(-50%);
}

.route-search input {
    width: 100%;
    height: 38px;

    padding: 0 13px 0 36px;

    background: #f8f9fc;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    font-size: 11px;
}

.route-search input:focus {
    background: #fff;

    border-color: #bfdbfe;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}


/* =========================================================
   TABLA
   ========================================================= */

.routes-table {
    min-width: 850px;

    margin: 0;
}

.routes-table thead th {
    padding: 14px 20px;

    color: #8a93a5;

    background: #fafbfc;

    border-bottom: 1px solid var(--border);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .8px;
}

.routes-table tbody td {
    padding: 17px 20px;

    vertical-align: middle;

    border-bottom: 1px solid var(--border);
}

.routes-table tbody tr:last-child td {
    border-bottom: 0;
}

.routes-table tbody tr:hover {
    background: #fafcff;
}


/* =========================================================
   NOMBRE RUTA
   ========================================================= */

.route-name {
    display: flex;
    align-items: center;

    gap: 11px;
}

.route-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 10px;

    font-size: 15px;
}

.route-name strong {
    display: block;

    color: var(--text);

    font-size: 11px;
}

.route-name span {
    display: block;

    margin-top: 3px;

    color: #9aa2b1;

    font-size: 9px;
}


/* =========================================================
   EMPLEADO
   ========================================================= */

.route-employee {
    display: flex;
    align-items: center;

    gap: 8px;

    white-space: nowrap;
}

.route-employee-avatar {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 8px;

    font-size: 8px;
    font-weight: 700;
}

.route-employee span {
    color: #697386;

    font-size: 10px;
}


/* =========================================================
   CLIENTES
   ========================================================= */

.clients-count {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 10px;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 600;
}

.clients-count i {
    font-size: 10px;
}


/* =========================================================
   MAPA
   ========================================================= */

.map-link {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #2563eb;

    text-decoration: none;

    font-size: 10px;
}

.map-link:hover {
    color: #1d4ed8;
}


/* =========================================================
   ACCIONES
   ========================================================= */

.route-actions {
    display: flex;
    justify-content: flex-end;

    gap: 5px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.routes-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 20px;

    border-top: 1px solid var(--border);
}

.routes-list-footer>span {
    color: #8a93a5;

    font-size: 10px;
}

.routes-pagination {
    display: flex;
    gap: 4px;
}

.pagination-btn {
    min-width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7b8497;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 6px;

    font-size: 10px;
}

.pagination-btn.active {
    color: #fff;

    background: var(--primary);

    border-color: var(--primary);
}

.pagination-btn.disabled {
    color: #c5cad3;
}


/* =========================================================
   EDITOR DE RUTA
   ========================================================= */

.route-editor {
    width: 100%;
}

.route-editor-header {
    margin-bottom: 24px;
}

.back-route-btn {
    display: block;

    margin-bottom: 18px;

    padding: 0;

    color: #697386;

    background: transparent;

    border: 0;

    font-size: 11px;

    cursor: pointer;
}

.back-route-btn:hover {
    color: var(--primary);
}

.route-editor-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 27px;
    font-weight: 700;
}

.route-editor-header p {
    margin: 6px 0 0;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   TARJETAS EDITOR
   ========================================================= */

.route-editor-card {
    margin-bottom: 20px;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 13px;

    box-shadow: var(--shadow);
}

.route-editor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 23px;

    border-bottom: 1px solid var(--border);
}

.route-editor-card-header h3 {
    margin: 0;

    color: var(--text);

    font-size: 17px;
    font-weight: 700;
}

.route-editor-card-header p {
    margin: 5px 0 0;

    color: var(--text-muted);

    font-size: 10px;
}

.route-editor-body {
    padding: 25px;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

.route-editor-body label {
    display: block;

    margin-bottom: 7px;

    color: #4b5563;

    font-size: 11px;
    font-weight: 600;
}

.route-editor-body .form-control,
.route-editor-body .form-select {
    min-height: 40px;

    color: var(--text);

    border: 1px solid #e1e5ec;

    border-radius: 8px;

    font-size: 11px;
}

.route-editor-body .form-control:focus,
.route-editor-body .form-select:focus {
    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}

.input-icon {
    position: relative;
}

.input-icon>i {
    position: absolute;

    z-index: 2;

    top: 50%;
    left: 13px;

    color: #9aa2b1;

    transform: translateY(-50%);

    pointer-events: none;
}

.input-icon .form-control,
.input-icon .form-select {
    padding-left: 36px;
}

.field-help {
    display: block;

    margin-top: 6px;

    color: #9aa2b1;

    font-size: 9px;
}


/* =========================================================
   CONTADOR CLIENTES
   ========================================================= */

.selected-clients-counter {
    display: flex;
    align-items: baseline;

    gap: 5px;

    padding: 7px 11px;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 20px;

    font-size: 9px;
}

.selected-clients-counter strong {
    font-size: 13px;
}


/* =========================================================
   BUSCADOR CLIENTES
   ========================================================= */

.route-client-search {
    position: relative;

    margin-bottom: 15px;
}

.route-client-search i {
    position: absolute;

    top: 50%;
    left: 13px;

    color: #9aa2b1;

    transform: translateY(-50%);
}

.route-client-search input {
    width: 100%;
    height: 42px;

    padding: 0 14px 0 38px;

    background: #f8f9fc;

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    font-size: 11px;
}

.route-client-search input:focus {
    background: #fff;

    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .08);
}


/* =========================================================
   CLIENTES DISPONIBLES
   ========================================================= */

.available-clients {
    display: flex;

    flex-direction: column;

    gap: 7px;

    max-height: 280px;

    overflow-y: auto;
}

.available-client {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 12px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 9px;

    cursor: pointer;

    transition: all .15s ease;
}

.available-client:hover {
    background: #fafcff;

    border-color: #bfdbfe;
}

.available-client input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #fff;

    border: 1px solid #cdd3dd;

    border-radius: 5px;

    font-size: 11px;
}

.available-client input:checked+.custom-checkbox {
    background: var(--primary);

    border-color: var(--primary);
}

.available-client-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 700;
}

.available-client-info {
    flex: 1;

    min-width: 0;
}

.available-client-info strong {
    display: block;

    color: var(--text);

    font-size: 10px;
}

.available-client-info span {
    display: block;

    margin-top: 3px;

    overflow: hidden;

    color: #9aa2b1;

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.available-client-phone {
    color: #697386;

    font-size: 9px;

    white-space: nowrap;
}

.available-client-phone i {
    margin-right: 3px;

    color: #9aa2b1;
}


/* =========================================================
   CLIENTES SELECCIONADOS
   ========================================================= */

.selected-clients-section {
    margin-top: 28px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.selected-clients-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 14px;
}

.selected-clients-title h4 {
    margin: 0;

    color: var(--text);

    font-size: 15px;
    font-weight: 700;
}

.drag-info {
    color: #9aa2b1;

    font-size: 9px;
}

.drag-info i {
    margin-right: 4px;
}


/* =========================================================
   LISTA SORTABLE
   ========================================================= */

.selected-clients-list {
    display: flex;

    flex-direction: column;

    gap: 8px;

    min-height: 70px;
}

.selected-route-client {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 9px;

    cursor: grab;

    transition: all .15s ease;
}

.selected-route-client:hover {
    border-color: #bfdbfe;

    box-shadow: 0 3px 10px rgba(17, 24, 39, .04);
}

.selected-route-client.dragging {
    opacity: .45;
}

.drag-handle {
    color: #b0b7c3;

    cursor: grab;

    font-size: 15px;
}

.selected-client-number {
    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 700;
}

.selected-client-info {
    flex: 1;
}

.selected-client-info strong {
    display: block;

    color: var(--text);

    font-size: 10px;
}

.selected-client-info span {
    display: block;

    margin-top: 3px;

    color: #9aa2b1;

    font-size: 9px;
}


/* =========================================================
   HORA ENTREGA
   ========================================================= */

.delivery-time {
    width: 110px;
}

.delivery-time label {
    margin-bottom: 3px;

    color: #9aa2b1;

    font-size: 8px;
}

.delivery-time input {
    width: 100%;
    height: 32px;

    padding: 0 8px;

    color: var(--text);

    background: #f8f9fc;

    border: 1px solid var(--border);

    border-radius: 6px;

    font-size: 10px;
}


/* =========================================================
   ELIMINAR CLIENTE SELECCIONADO
   ========================================================= */

.remove-route-client {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #9aa2b1;

    background: transparent;

    border: 0;

    cursor: pointer;
}

.remove-route-client:hover {
    color: #dc2626;
}


/* =========================================================
   VACÍO
   ========================================================= */

.empty-route-clients {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    min-height: 130px;

    padding: 20px;

    color: #9aa2b1;

    background: #fafbfc;

    border: 1px dashed #dce1e8;

    border-radius: 9px;

    text-align: center;
}

.empty-route-clients i {
    margin-bottom: 8px;

    font-size: 23px;
}

.empty-route-clients strong {
    color: #697386;

    font-size: 10px;
}

.empty-route-clients span {
    margin-top: 4px;

    font-size: 9px;
}


/* =========================================================
   GUARDAR
   ========================================================= */

.route-save-area {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 10px;
    margin-bottom: 30px;
}

.btn-save-route {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 10px 18px;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   MODAL VER RUTA
   ========================================================= */

.route-view-modal {
    overflow: hidden;

    border: 0;

    border-radius: 15px;

    box-shadow:
        0 25px 60px rgba(17, 24, 39, .2);
}

.route-view-modal .modal-header {
    padding: 22px 25px;

    border-bottom: 1px solid var(--border);
}

.route-view-modal .modal-title {
    margin: 0;

    color: var(--text);

    font-size: 19px;
    font-weight: 700;
}

.modal-header-actions {
    display: flex;
    align-items: center;

    gap: 15px;
}

.modal-map-btn {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 7px 11px;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 7px;

    text-decoration: none;

    font-size: 9px;
    font-weight: 600;
}

.modal-map-btn:hover {
    color: #1d4ed8;
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.route-view-body {
    padding: 25px;
}


/* =========================================================
   EMPLEADO
   ========================================================= */

.route-view-employee {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

    padding: 13px 15px;

    background: #f8f9fc;

    border: 1px solid var(--border);

    border-radius: 9px;
}

.route-view-employee-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #2563eb;

    background: #eff6ff;

    border-radius: 9px;

    font-size: 15px;
}

.route-view-employee span {
    display: block;

    margin-bottom: 3px;

    color: #9aa2b1;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .6px;
}

.route-view-employee strong {
    color: var(--text);

    font-size: 12px;
}


/* =========================================================
   TIMELINE
   ========================================================= */

.route-timeline {
    display: flex;

    align-items: stretch;

    gap: 0;

    overflow-x: auto;

    padding-bottom: 10px;
}

.route-stop {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 250px;

    flex: 1;

    padding: 0 15px;
}

.route-stop:first-child {
    padding-left: 0;
}

.route-stop:last-child {
    padding-right: 0;
}


/* línea horizontal */

.route-stop:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 18px;
    right: -1px;

    width: 30px;

    height: 1px;

    background: #dbe1e8;
}


/* número */

.route-stop-number {
    position: relative;

    z-index: 2;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    color: #fff;

    background: var(--primary);

    border-radius: 50%;

    font-size: 10px;
    font-weight: 700;
}

.route-stop-time {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 10px;
    font-weight: 700;
}

.route-stop-content h4 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}

.route-stop-details {
    display: flex;

    flex-direction: column;

    gap: 6px;
}

.route-stop-details span {
    color: #697386;

    font-size: 9px;

    line-height: 1.5;
}

.route-stop-details i {
    width: 14px;

    color: #9aa2b1;
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

.route-view-modal .modal-footer {
    justify-content: flex-start;

    padding: 14px 25px;

    color: #8a93a5;

    border-top: 1px solid var(--border);

    font-size: 9px;
}


/* =========================================================
   MODAL ELIMINAR
   ========================================================= */

.route-delete-modal {
    padding: 28px;

    text-align: center;

    border: 0;

    border-radius: 14px;
}

.route-delete-modal h5 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 16px;
}

.route-delete-modal p {
    margin: 0 auto 20px;

    color: var(--text-muted);

    font-size: 10px;

    line-height: 1.6;
}

.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;
}

.delete-actions {
    display: flex;
    justify-content: center;

    gap: 8px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {

    .rutas-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .rutas-header h2 {
        font-size: 23px;
    }

    .btn-new-route {
        width: 100%;

        justify-content: center;
    }

    .routes-stats {
        grid-template-columns: 1fr;
    }

    .routes-list-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .route-search {
        width: 100%;
    }

    .routes-list-footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .routes-pagination {
        width: 100%;

        justify-content: flex-end;
    }

    .route-editor-header h2 {
        font-size: 23px;
    }

    .route-editor-body {
        padding: 18px;
    }

    .route-editor-card-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .selected-clients-title {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .selected-route-client {
        align-items: flex-start;
    }

    .delivery-time {
        width: 85px;
    }

    .available-client-phone {
        display: none;
    }

    .route-save-area {
        flex-direction: column-reverse;
    }

    .route-save-area .btn {
        width: 100%;
    }

    .route-view-modal .modal-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .modal-header-actions {
        width: 100%;

        justify-content: space-between;
    }

    .route-view-body {
        padding: 18px;
    }

    .route-stop {
        min-width: 220px;
    }

}


/*RUTAS EMPLEADOS CSS*/

/* =========================================================
   PÁGINA RUTAS - PANEL EMPLEADO
========================================================= */

.empleado-rutas-page {
    width: 100%;
    padding-bottom: 25px;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.empleado-rutas-header {
    margin-bottom: 25px;
}

.empleado-rutas-header h1 {
    margin: 5px 0 8px;

    color: #1f2a44;

    font-size: 30px;
    font-weight: 700;
}

.empleado-rutas-header p {
    margin: 0;

    color: #7b8494;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   RESUMEN
========================================================= */

.rutas-resumen {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 16px;

    margin-bottom: 25px;

    border: 1px solid #e8edf3;
    border-radius: 16px;

    background: #ffffff;
}

.rutas-resumen-icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(109, 167, 222, 0.12);

    color: #6da7de;

    font-size: 21px;
}

.rutas-resumen span {
    display: block;

    margin-bottom: 3px;

    color: #9aa4b2;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.8px;
}

.rutas-resumen strong {
    color: #1f2a44;

    font-size: 15px;
}


/* =========================================================
   LISTA DE RUTAS
========================================================= */

.empleado-rutas-list {
    display: grid;
    gap: 16px;
}


/* =========================================================
   CARD RUTA
========================================================= */

.empleado-ruta-card {
    padding: 20px;

    border: 1px solid #e8edf3;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(31, 42, 68, 0.05);
}

.ruta-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.ruta-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: rgba(109, 167, 222, 0.12);

    color: #6da7de;

    font-size: 23px;
}


/* =========================================================
   PERÍODO
========================================================= */

.ruta-periodo {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 11px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}

.ruta-manana {
    background: rgba(245, 158, 66, 0.12);
    color: #d98218;
}

.ruta-tarde {
    background: rgba(109, 167, 222, 0.12);
    color: #4b89c1;
}


/* =========================================================
   CONTENIDO RUTA
========================================================= */

.ruta-label {
    display: block;

    margin-bottom: 5px;

    color: #9aa4b2;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.ruta-card-content h2 {
    margin: 0 0 10px;

    color: #1f2a44;

    font-size: 21px;
    font-weight: 700;
}

.ruta-card-content p {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0 0 22px;

    color: #7b8494;

    font-size: 13px;
}

.ruta-card-content p i {
    color: #6da7de;
}


/* =========================================================
   BOTÓN VER RUTA
========================================================= */

.btn-ver-ruta {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: none;
    border-radius: 13px;

    background: #1f2a44;

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.25s ease;
}

.btn-ver-ruta:hover {
    background: #2d416c;
    transform: translateY(-2px);
}

.btn-ver-ruta i {
    font-size: 17px;
}


/* =========================================================
   MODAL
========================================================= */

.empleado-ruta-modal {
    border: none;
    border-radius: 22px;

    overflow: hidden;
}


/* =========================================================
   HEADER MODAL
========================================================= */

.ruta-modal-header {
    align-items: flex-start;

    padding: 22px 20px;

    border-bottom: 1px solid #edf0f4;

    background: #ffffff;
}

.modal-ruta-label {
    display: block;

    margin-bottom: 5px;

    color: #6da7de;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.ruta-modal-header h2 {
    margin: 0 0 8px;

    color: #1f2a44;

    font-size: 22px;
    font-weight: 700;
}

.modal-ruta-periodo {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #d98218;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   INFO MODAL
========================================================= */

.ruta-modal-info {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    margin-bottom: 16px;

    border-radius: 15px;

    background: #f6f9fc;
}

.ruta-modal-info-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(109, 167, 222, 0.12);

    color: #6da7de;

    font-size: 19px;
}

.ruta-modal-info span {
    display: block;

    margin-bottom: 3px;

    color: #9aa4b2;

    font-size: 10px;
    font-weight: 700;
}

.ruta-modal-info strong {
    color: #1f2a44;

    font-size: 14px;
}


/* =========================================================
   INSTRUCCIÓN COPIAR
========================================================= */

.copiar-instruccion {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 12px 0;

    margin-bottom: 10px;

    color: #7b8494;

    font-size: 12px;
}

.copiar-instruccion i {
    color: #6da7de;
    font-size: 16px;
}


/* =========================================================
   CLIENTES
========================================================= */

.ruta-clientes-lista {
    display: grid;
    gap: 15px;
}

.cliente-ruta-card {
    padding: 18px;

    border: 1px solid #e8edf3;
    border-radius: 18px;

    background: #ffffff;
}

.cliente-ruta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.cliente-orden {
    width: 33px;
    height: 33px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #1f2a44;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.cliente-hora {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #d98218;

    font-size: 13px;
    font-weight: 700;
}

.cliente-hora i {
    font-size: 15px;
}


/* =========================================================
   NOMBRE CLIENTE
========================================================= */

.cliente-ruta-card h3 {
    margin: 0 0 20px;

    color: #1f2a44;

    font-size: 18px;
    font-weight: 700;
}


/* =========================================================
   INFORMACIÓN CLIENTE
========================================================= */

.cliente-info-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin-bottom: 16px;
}

.cliente-info-icon {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #f3f6f9;

    color: #6da7de;

    font-size: 16px;
}

.cliente-info-item>div:last-child {
    min-width: 0;
    flex: 1;
}

.cliente-info-item span {
    display: block;

    margin-bottom: 4px;

    color: #9aa4b2;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.8px;
}


/* =========================================================
   TEXTO COPIABLE
========================================================= */

.copy-text {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 0;

    border: none;

    background: transparent;

    color: #43516a;

    font-size: 13px;

    text-align: left;

    cursor: pointer;
}

.copy-text:hover {
    color: #6da7de;
}

.copy-text i {
    flex-shrink: 0;

    color: #9aa4b2;

    font-size: 14px;
}


/* =========================================================
   BOTÓN MAPA
========================================================= */

.btn-ir-mapa {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 8px;

    border: 1px solid rgba(109, 167, 222, 0.28);
    border-radius: 12px;

    background: rgba(109, 167, 222, 0.07);

    color: #4d8dc7;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.25s ease;
}

.btn-ir-mapa:hover {
    background: #6da7de;

    border-color: #6da7de;

    color: #ffffff;
}

.btn-ir-mapa i:last-child {
    font-size: 13px;
}


/* =========================================================
   FOOTER MODAL
========================================================= */

.ruta-modal-footer {
    padding: 15px 20px;

    border-top: 1px solid #edf0f4;
}

.btn-cerrar-ruta {
    width: 100%;
    height: 48px;

    border: 1px solid #e1e7ee;
    border-radius: 12px;

    background: #ffffff;

    color: #596579;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}


/* =========================================================
   SIN RUTAS
========================================================= */

.sin-rutas {
    padding: 45px 25px;

    text-align: center;

    border: 1px dashed #dce3eb;
    border-radius: 20px;

    background: #ffffff;
}

.sin-rutas-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 18px;

    background: rgba(109, 167, 222, 0.10);

    color: #6da7de;

    font-size: 28px;
}

.sin-rutas h2 {
    margin-bottom: 8px;

    color: #1f2a44;

    font-size: 19px;
}

.sin-rutas p {
    margin: 0;

    color: #7b8494;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 576px) {

    .empleado-rutas-page {
        padding-bottom: 10px;
    }

    .empleado-rutas-header h1 {
        font-size: 27px;
    }

    .empleado-ruta-card {
        padding: 18px;
        border-radius: 18px;
    }

    .empleado-ruta-modal {
        border-radius: 0;
    }

    .modal-body {
        padding: 18px 16px;
    }

    .ruta-modal-header {
        padding: 20px 16px;
    }

    .cliente-ruta-card {
        padding: 16px;
    }

}


/* =========================================
   TURNO TARDE
   ========================================= */

.ruta-tarde {
    background-color: #1f3b5b;
    color: #ffffff;
}

.ruta-tarde i {
    color: #ffffff;
}



.alert-mapa-no-asignado {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 15px;

    width: 360px;
    padding: 18px 20px;

    background: #fff;
    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);

    border-left: 5px solid #dc3545;

    opacity: 0;
    visibility: hidden;
    transform: translateX(120%);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
}

.alert-mapa-no-asignado.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.alert-mapa-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8d7da;
    border-radius: 50%;

    color: #dc3545;
    font-size: 21px;

    flex-shrink: 0;
}

.alert-mapa-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.alert-mapa-content strong {
    font-size: 16px;
    color: #212529;
}

.alert-mapa-content span {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

@media (max-width: 576px) {

    .alert-mapa-no-asignado {
        top: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }

}