/* ============================================================
   LOGITRAX - SISTEMA PC (EMPLEADOS)
   Color principal: #4d9eff
   Color acento:    #3a7bc8
   Fondo oscuro:    #133454
   Texto:           #2c3e50
   Fuente:          Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── BASE ───────────────────────────────────────────────────── */
body {
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
    overflow-x: hidden;
    background: #0d1b2a;
    color: #2c3e50;
}

/* ── FONDO ──────────────────────────────────────────────────── */
.bg-blur {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../../images/topw.webp') no-repeat center center;
    background-size: cover;
    filter: blur(10px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}

/* ── CONTENEDOR PRINCIPAL ───────────────────────────────────── */
.dakart-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.main-header { width: 100%; }

.header-banner {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.header-banner > img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.header-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(77,158,255,0.25));
    border-bottom: 3px solid #4d9eff;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo-img {
    height: 60px;
    filter: drop-shadow(0 0 8px #4d9eff) drop-shadow(0 0 16px #4d9eff);
}

.header-logo-text {
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #4d9eff, 0 0 22px #4d9eff;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 14px;
}

.header-user i { font-size: 20px; color: #4d9eff; }

/* Badge de solicitudes en header */
.header-sol-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #4d9eff;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.header-sol-badge:hover { background: #3a7bc8; }
.header-sol-badge i { font-size: 0.85rem; }

.btn-logout {
    background: #4d9eff;
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}
.btn-logout:hover { background: #3a7bc8; }

/* ── CONTENIDO PRINCIPAL ────────────────────────────────────── */
.main-content {
    flex: 1;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ── DASHBOARD CONTAINER ────────────────────────────────────── */
.dashboard-container {
    width: 92%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* ── TÍTULOS ────────────────────────────────────────────────── */
.dashboard-title {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}
.dashboard-title i { color: #4d9eff; margin-right: 8px; }

.dashboard-subtitle {
    color: #666;
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── ALERTAS ────────────────────────────────────────────────── */
.alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ── DASHBOARD CARDS ────────────────────────────────────────── */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.card {
    background: #fff;
    border: 1px solid #e0eaf5;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: block;
}
.card:hover {
    transform: translateY(-5px);
    border-color: #4d9eff;
    box-shadow: 0 8px 20px rgba(77,158,255,0.2);
}
.card-icon { font-size: 2.4rem; margin-bottom: 10px; }
.card-icon i { color: #4d9eff; }
.card h3 { color: #2c3e50; font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.card p  { color: #777; font-size: 0.78rem; }

/* ── BUSCADOR ───────────────────────────────────────────────── */
.buscador {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.buscador-input {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    padding: 0 12px;
    gap: 8px;
}
.buscador-input i { color: #4d9eff; }
.buscador-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #2c3e50;
    background: transparent;
}

/* ── FILTROS ────────────────────────────────────────────────── */
.filtros-card {
    background: #f9fbff;
    border: 1px solid #e0eaf5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}
.filtros-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.filtros-form .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}
.filtros-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #555;
    font-size: 0.85rem;
}

/* ── TABLA ──────────────────────────────────────────────────── */
.table-card {
    background: #fff;
    border: 1px solid #e0eaf5;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.table-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0eaf5;
    padding-bottom: 8px;
}
.table-card h3 i { color: #4d9eff; margin-right: 6px; }

.total-registros { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.total-registros i { color: #4d9eff; margin-right: 4px; }

.table-responsive { overflow-x: auto; }

.tabla-datos {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.tabla-datos th {
    background: #f0f6ff;
    padding: 10px;
    text-align: left;
    font-weight: 700;
    color: #4d9eff;
    border-bottom: 2px solid #e0eaf5;
    white-space: nowrap;
}
.tabla-datos td {
    padding: 10px;
    border-bottom: 1px solid #e0eaf5;
    color: #555;
    vertical-align: middle;
}
.tabla-datos tr:hover td { background: #f9fbff; }

/* ── ACCIONES ───────────────────────────────────────────────── */
.acciones { display: flex; gap: 6px; flex-wrap: wrap; }

.btn-editar {
    background: #4d9eff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-editar:hover { background: #3a7bc8; color: #fff; }

.btn-eliminar {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-eliminar:hover { background: #da190b; }

.btn-ver {
    background: #17a2b8;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}
.btn-ver:hover { background: #138496; color: #fff; }

.btn-entregar {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
}
.btn-entregar:hover { background: #218838; }

.btn-whatsapp {
    color: #25d366;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-whatsapp:hover { color: #128c7e; }

.btn-gps {
    color: #4d9eff;
    text-decoration: none;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-gps:hover { color: #3a7bc8; }

/* ── PAGINACIÓN ─────────────────────────────────────────────── */
.paginacion, .paginacion-pedidos {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-pag {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d0dce8;
    background: #fff;
    color: #4d9eff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-pag:hover  { background: #4d9eff; color: #fff; border-color: #4d9eff; }
.btn-pag.activo { background: #4d9eff; color: #fff; border-color: #4d9eff; }
.pagina-info    { font-size: 0.85rem; color: #666; }

/* ── FORMULARIOS ────────────────────────────────────────────── */
.form-card {
    background: #fff;
    border: 1px solid #e0eaf5;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.form-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eef2f5;
}
.form-section:last-of-type { border-bottom: none; }
.form-section h3 {
    font-size: 1rem;
    color: #4d9eff;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section h3 i { color: #4d9eff; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row.tres-cols { grid-template-columns: 1fr 1fr 1fr; }

.form-group { margin-bottom: 0; }
.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}
.form-group label i { color: #4d9eff; margin-right: 4px; }

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0dce8;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2c3e50;
    background: #f9fbff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #4d9eff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(77,158,255,0.1);
}

small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #888;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #555;
}
.checkbox-label input[type="checkbox"] { accent-color: #4d9eff; }

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── BOTONES PRINCIPALES ────────────────────────────────────── */
.btn-primary {
    background: #4d9eff;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s, transform 0.2s;
    font-family: inherit;
}
.btn-primary:hover { background: #3a7bc8; transform: translateY(-2px); color: #fff; }

.btn-secondary {
    background: #eef2f5;
    color: #4d9eff;
    border: 1px solid #d0dce8;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
    cursor: pointer;
}
.btn-secondary:hover { background: #4d9eff; color: #fff; border-color: #4d9eff; }

.dashboard-actions { text-align: center; margin-top: 16px; }

/* ── DATOS SIN RESULTADO ────────────────────────────────────── */
.sin-datos {
    text-align: center;
    color: #999;
    padding: 40px 32px;
}
.sin-datos i { font-size: 2.5rem; display: block; margin-bottom: 12px; color: #d0dce8; }

/* ── GPS ────────────────────────────────────────────────────── */
.gps-instrucciones { font-size: 0.85rem; color: #666; margin-bottom: 12px; }
.gps-instrucciones i { color: #4d9eff; margin-right: 4px; }

.gps-buscador {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.gps-buscador .form-control { flex: 1; min-width: 200px; }

#mapa-cliente, #mapa-destino, #mapa-gasto, #mapa-gasto-ver {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    border: 1px solid #d0dce8;
    margin: 12px 0;
    z-index: 0;
}
#mapa-cliente { height: 350px; }
.gps-coords { margin-top: 8px; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge-activo   { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-inactivo { background: #f8d7da; color: #721c24; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-propio   { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-rentado  { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-unica    { background: #e8f4ff; color: #004085; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-viajes   { background: #f0f0f0; color: #555; padding: 3px 10px; border-radius: 20px; font-size: 0.78rem; }

/* Badges de estado de pedidos/envíos */
.estado-asignado { color: #004085; background: #cce5ff; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.estado-en_ruta  { color: #155724; background: #d4edda; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.estado-pendiente{ color: #856404; background: #fff3cd; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.estado-entregado{ color: #0c5460; background: #d1ecf1; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.estado-cancelado{ color: #721c24; background: #f8d7da; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* Badges de tipos de gasto */
.badge-tipo { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.tipo-combustible  { background: #fff3cd; color: #856404; }
.tipo-cuota        { background: #e8f4ff; color: #004085; }
.tipo-hotel        { background: #d4edda; color: #155724; }
.tipo-restaurante  { background: #f8d7da; color: #721c24; }
.tipo-aceite       { background: #d1ecf1; color: #0c5460; }
.tipo-reparacion   { background: #e2d5f5; color: #4a0e6b; }
.tipo-otro         { background: #e2e3e5; color: #383d41; }

/* ── INFO CARDS (monitoreo) ─────────────────────────────────── */
.info-card, .mapa-card {
    background: #fff;
    border: 1px solid #e0eaf5;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
}
.info-card h3, .mapa-card h3 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #2c3e50;
    border-bottom: 1px solid #e0eaf5;
    padding-bottom: 8px;
}
.info-card h3 i, .mapa-card h3 i { color: #4d9eff; margin-right: 6px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.info-item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.info-label { font-weight: 600; color: #555; min-width: 100px; font-size: 0.85rem; }
.info-label i { color: #4d9eff; margin-right: 4px; }
.info-valor { color: #2c3e50; }

/* ── MONTOS ─────────────────────────────────────────────────── */
.monto { color: #4d9eff; font-weight: 700; }
.monto-grande { font-size: 1.4rem; font-weight: 800; color: #4d9eff; }
.total-acumulado { font-size: 1.2rem; font-weight: 700; color: #28a745; }

/* ── FOTOS ──────────────────────────────────────────────────── */
.foto-mini, .foto-miniatura img {
    width: 40px; height: 40px;
    object-fit: cover; border-radius: 6px;
    border: 1px solid #d0dce8;
}
.sin-foto, .sin-ubicacion { color: #aaa; font-style: italic; }

/* ── DETALLE ────────────────────────────────────────────────── */
.detalle-card { background: #fff; border: 1px solid #e0eaf5; border-radius: 16px; padding: 24px; }
.detalle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.detalle-item { padding: 8px 0; border-bottom: 1px solid #eef2f5; }
.detalle-item.full-width { grid-column: span 2; }
.detalle-label { font-weight: 600; color: #888; display: block; font-size: 0.78rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.detalle-valor { color: #2c3e50; font-size: 0.95rem; }
.detalle-foto { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e0eaf5; text-align: center; }
.detalle-foto h3 { margin-bottom: 12px; }
.foto-grande { max-width: 100%; max-height: 400px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.detalle-mapa { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e0eaf5; }

/* ── PROGRESO ENVÍOS ────────────────────────────────────────── */
.progreso-container { background: #f9fbff; border-radius: 10px; padding: 16px; }
.progreso-info { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 0.85rem; color: #555; }
.progreso-bar  { height: 22px; background: #e0eaf5; border-radius: 10px; overflow: hidden; }
.progreso-fill { height: 100%; background: #4d9eff; transition: width 0.3s; border-radius: 10px; }
.progreso-fill.excedido { background: #f44336; }
.alerta-peso   { margin-top: 10px; padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.alerta-ok     { background: #d4edda; color: #155724; }
.alerta-warn   { background: #fff3cd; color: #856404; }
.alerta-err    { background: #f8d7da; color: #721c24; }
.alerta-cap-ok { background: #d4edda; color: #155724; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin-top: 8px; }
.alerta-cap-err{ background: #f8d7da; color: #721c24; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin-top: 8px; }
.sugerencia-viajes { margin-top: 12px; padding: 12px; background: #e8f4ff; border: 1px solid #4d9eff; border-radius: 8px; font-size: 0.85rem; color: #004085; }

/* ── SALDOS ─────────────────────────────────────────────────── */
.saldo-card { background: #fff; border: 1px solid #e0eaf5; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.saldo-card h3 { font-size: 1rem; color: #2c3e50; margin-bottom: 16px; font-weight: 700; }
.saldo-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eef2f5; gap: 16px; flex-wrap: wrap; }
.saldo-row:last-child { border-bottom: none; }
.saldo-row.completo { opacity: 0.6; }
.saldo-info { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.saldo-nombre { font-weight: 700; color: #2c3e50; font-size: 0.9rem; }
.saldo-detalle { font-size: 0.8rem; color: #666; }
.saldo-pendiente { font-size: 0.8rem; color: #4d9eff; font-weight: 600; }
.saldo-barra-container { display: flex; align-items: center; gap: 8px; min-width: 160px; }
.saldo-barra { flex: 1; height: 14px; background: #e0eaf5; border-radius: 7px; overflow: hidden; }
.saldo-barra-fill { height: 100%; background: #4d9eff; border-radius: 7px; }
.saldo-barra-fill.completa { background: #28a745; }
.saldo-pct { font-size: 0.75rem; font-weight: 700; color: #555; min-width: 32px; text-align: right; }

/* ── PEDIDO SELECTOR ────────────────────────────────────────── */
.pedido-selector { background: #fff; border: 1px solid #e0eaf5; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.pedido-selector label { display: block; font-weight: 600; color: #2c3e50; margin-bottom: 10px; }
.pedido-selector-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pedido-selector-row .form-control { flex: 1; min-width: 200px; }

/* ── PARTIDAS ───────────────────────────────────────────────── */
.partida-card { background: #f9fbff; border: 1px solid #e0eaf5; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.partida-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; color: #4d9eff; font-size: 0.85rem; }
.btn-eliminar-partida { background: #f44336; color: #fff; border: none; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.partida-kg { font-size: 0.8rem; color: #28a745; font-weight: 600; margin-top: 6px; }
.peso-resumen { background: #f0f8ff; border: 1px solid #b8d9f8; border-radius: 10px; padding: 14px; margin-top: 14px; }
.peso-resumen-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: #2c3e50; margin-bottom: 6px; }
.capacidad-display { padding: 10px 14px; background: #f9fbff; border-radius: 8px; border: 1px solid #e0eaf5; font-size: 0.9rem; color: #555; }
.asig-cap-badge { background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.asignacion-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; color: #4d9eff; gap: 8px; }

/* ── TABLE-CARD-HEADER ──────────────────────────────────────── */
.table-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.partidas-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.partidas-header h4 { margin: 0; }
.items-resumen { background: #fff; border: 1px solid #e0eaf5; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.item-resumen-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #eef2f5; font-size: 0.85rem; flex-wrap: wrap; gap: 6px; }
.item-resumen-row:last-child { border-bottom: none; }
.item-nombre { font-weight: 600; color: #2c3e50; }
.item-detalle { color: #666; }
.info-text { font-size: 0.83rem; color: #666; margin-bottom: 14px; }
.info-text i { color: #4d9eff; margin-right: 4px; }

/* ── MAPA MONITOREO ─────────────────────────────────────────── */
.custom-marker { background: transparent !important; border: none !important; }
.mapa-info { font-size: 0.75rem; color: #888; margin-top: 8px; text-align: center; }
.badge-posicion { background: #e8f4ff; color: #004085; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; display: inline-flex; align-items: center; gap: 4px; }
.badge-gasto    { background: #f8d7da; color: #721c24; padding: 2px 8px; border-radius: 20px; font-size: 0.7rem; display: inline-flex; align-items: center; gap: 4px; }

/* ── LOGIN ──────────────────────────────────────────────────── */
.login-window {
    position: relative;
    z-index: 1;
    width: 460px;
    background: #fff;
    border: 2px solid #4d9eff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(77,158,255,0.3), 0 8px 32px rgba(0,0,0,0.3);
}
.login-banner { width: 100%; height: 160px; overflow: hidden; }
.login-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-header { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 12px; padding: 18px 0 0; background: #fff; width: 100%; }
.login-logo { max-height: 60px; filter: drop-shadow(0 0 8px #4d9eff); }
.login-title { color: #4d9eff; font-size: 32px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; }
.login-body { padding: 20px 35px 28px; }
.error-message { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; padding: 10px 14px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.input-group { display: flex; align-items: center; background: #f9fbff; border: 1px solid #d0dce8; border-radius: 10px; margin-bottom: 18px; transition: border 0.3s, box-shadow 0.3s; overflow: hidden; }
.input-group:focus-within { border-color: #4d9eff; box-shadow: 0 0 0 3px rgba(77,158,255,0.1); }
.input-icon { width: 46px; display: flex; justify-content: center; align-items: center; color: #4d9eff; font-size: 16px; flex-shrink: 0; border-right: 1px solid #e0eaf5; padding: 0 12px; height: 48px; }
.input-group input { flex: 1; padding: 13px 14px; background: transparent; border: none; outline: none; color: #2c3e50; font-size: 15px; }
.input-group input::placeholder { color: #aaa; font-size: 14px; }
.btn-login { width: 100%; padding: 13px; margin-top: 6px; background: #4d9eff; color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: background 0.3s, transform 0.2s; display: flex; justify-content: center; align-items: center; gap: 8px; font-family: inherit; }
.btn-login:hover { background: #3a7bc8; transform: translateY(-2px); }
.login-footer { margin-top: 22px; text-align: center; font-size: 13px; color: #4d9eff; letter-spacing: 0.5px; display: flex; justify-content: center; align-items: center; gap: 7px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.main-footer {
    width: 100%;
    background: #133454;
    border-top: 3px solid #4d9eff;
    padding: 12px 24px;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-content a { color: #4d9eff; text-decoration: none; font-weight: 600; transition: color 0.3s; }
.footer-content a:hover { color: #fff; }
.footer-content i { color: #4d9eff; margin-right: 5px; }

/* ── MODAL REPORTES ─────────────────────────────────────────── */
.modal-reportes { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); justify-content: center; align-items: center; }
.modal-reportes-content { background: #fff; border: 2px solid #4d9eff; border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); width: 90%; max-width: 550px; animation: modalFadeIn 0.3s ease; }
@keyframes modalFadeIn { from { opacity:0; transform:scale(0.95); } to { opacity:1; transform:scale(1); } }
.modal-reportes-header { background: #f0f6ff; padding: 16px 20px; border-bottom: 1px solid #e0eaf5; display: flex; justify-content: space-between; align-items: center; }
.modal-reportes-header h2 { color: #2c3e50; font-size: 1.2rem; font-weight: 700; margin: 0; }
.modal-reportes-header h2 i { color: #4d9eff; margin-right: 8px; }
.modal-reportes-close { background: none; border: none; color: #aaa; font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.modal-reportes-close:hover { color: #4d9eff; }
.modal-reportes-body { padding: 20px; max-height: 500px; overflow-y: auto; }
.directorio { background: #f9fbff; border-radius: 12px; border: 1px solid #e0eaf5; overflow: hidden; }
.directorio-header { background: #f0f6ff; padding: 10px 16px; border-bottom: 1px solid #e0eaf5; display: flex; align-items: center; gap: 8px; }
.directorio-header i { color: #4d9eff; font-size: 1.1rem; }
.directorio-header span { color: #555; font-size: 0.85rem; }
.lista-reportes { list-style: none; padding: 8px 0; }
.reporte-item { border-bottom: 1px solid #eef2f5; }
.reporte-item:last-child { border-bottom: none; }
.reporte-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: #555; transition: all 0.2s; cursor: pointer; }
.reporte-link:hover { background: #f0f6ff; color: #4d9eff; padding-left: 24px; }
.reporte-link i { font-size: 1.1rem; min-width: 24px; color: #4d9eff; }
.reporte-nombre { flex: 1; font-weight: 500; }
.cargando, .sin-reportes { text-align: center; color: #aaa; padding: 40px; }
.modal-reportes-footer { padding: 16px 20px; border-top: 1px solid #e0eaf5; text-align: center; }
.btn-cerrar { background: #4d9eff; color: #fff; border: none; padding: 8px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s; font-family: inherit; }
.btn-cerrar:hover { background: #3a7bc8; }
.modal-reportes-body::-webkit-scrollbar { width: 6px; }
.modal-reportes-body::-webkit-scrollbar-track { background: #f9fbff; }
.modal-reportes-body::-webkit-scrollbar-thumb { background: #4d9eff; border-radius: 3px; }

/* ── ADMIN DIVIDER ──────────────────────────────────────────── */
.admin-divider { border: 0; height: 2px; background: linear-gradient(90deg, #4d9eff, #3a7bc8, #4d9eff); margin: 30px 0 20px 0; }
.admin-section-title { color: #2c3e50; font-size: 1.5rem; font-weight: 800; text-align: center; margin: 20px 0 25px 0; letter-spacing: 2px; }
.admin-section-title i { color: #4d9eff; margin-right: 12px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-banner { height: 90px; }
    .header-logo-img { height: 40px; }
    .header-logo-text { font-size: 20px; }
    .header-user span { display: none; }
    .btn-logout { padding: 5px 10px; font-size: 12px; }
    .main-content { padding: 16px; }
    .dashboard-container { width: 98%; padding: 20px 16px; }
    .dashboard-cards { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .card { padding: 16px 8px; }
    .card-icon { font-size: 1.8rem; }
    .card h3 { font-size: 0.85rem; }
    .card p  { display: none; }
    .form-row, .form-row.tres-cols { grid-template-columns: 1fr; }
    .buscador, .gps-buscador, .filtros-form { flex-direction: column; align-items: stretch; }
    .buscador-input, .gps-buscador .form-control { width: 100%; }
    .tabla-datos th, .tabla-datos td { padding: 7px 6px; font-size: 0.78rem; }
    .acciones { flex-direction: column; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .info-grid { grid-template-columns: 1fr; }
    .detalle-grid { grid-template-columns: 1fr; }
    .detalle-item.full-width { grid-column: span 1; }
    .footer-content { flex-direction: column; gap: 6px; text-align: center; }
    .login-window { width: 95%; }
    #mapa-cliente { height: 250px; }
}

@media (max-width: 480px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── LANGUAGE SELECTOR ──────────────────────────────────── */
.lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}
.lang-selector-btn {
    background: rgba(77,158,255,0.15);
    border: 1px solid rgba(77,158,255,0.5);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.lang-selector-btn:hover { background: rgba(77,158,255,0.35); }
.lang-arrow { font-size: 0.55rem; transition: transform 0.2s; display: inline-block; }
.lang-selector.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    min-width: 150px;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid #e0eaf5;
}
.lang-selector.open .lang-dropdown { display: block; }
.lang-dropdown form { margin: 0; }
.lang-dropdown button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 16px;
    text-align: left;
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.lang-dropdown button:hover { background: #f0f6ff; color: #4d9eff; }
.lang-dropdown button.lang-active { background: #e8f4ff; color: #4d9eff; font-weight: 700; }
.lang-dropdown hr { margin: 0; border: none; border-top: 1px solid #eef2f5; }