/* ===== RESET ===== */
*{
box-sizing:border-box;
margin:0;
padding:0;
}

body{
font-family:Arial, sans-serif;
background:#f4f6fb;
}

/* ===== LAYOUT PRINCIPAL ===== */

main{
padding:20px;
width:100%;
max-width:100%;
margin:0;
display:flex;
flex-direction:column;
gap:20px;
}

/* ===== GRID MAPA + GRAFICA ===== */

.map-grid{
display:grid;
grid-template-columns: 0.8fr 1.2fr;
gap:20px;
align-items:stretch;
width:100%;
}

.dias-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:6px;
font-size:14px;
}

@media (max-width:768px){

.map-grid{
grid-template-columns:1fr;
width:100%;
}

}

/* ===== CONTENEDOR MAPA ===== */

.map-container{
position:relative;
width:100%;
height:60vh;
border-radius:12px;
overflow:hidden;
border:2px solid #dde3ef;
}

.map-grid > div{
min-width:0;
}

@media (max-width:500px){

.map-container{
height:380px;
}

}

/* ===== MAPA ===== */

#map{
height:100%;
width:100%;
}

/* ===== TARJETAS ===== */

.card{
background:#ffffff;
border-radius:12px;
padding:20px;
box-shadow:0 4px 15px rgba(0,0,0,0.05);
border:1px solid #dde3ef;
}

.kpi-box.clientes .kpi-info p{
color:white;
font-weight:bold;
}

.kpi-box.km .kpi-info p{
color:white;
font-weight:bold;
}

.kpi-box.promedio .kpi-info p{
color:white;
font-weight:bold;
}

/* ===== HEADER ===== */

header{
background:linear-gradient(135deg,#1a3a5c,#0d2137);
color:white;
padding:20px 30px;
border-bottom:4px solid #e85d04;
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:20px;
}

/* ===== BOTONES ===== */

.header-actions{
display:flex;
gap:12px;
align-items:center;
margin-left:auto;
}

.header-actions .btn-header-main{
min-width:140px;
padding:8px 12px;
font-size:13px;
}

/* BOTON PRINCIPAL ARRIBA */

.header-actions .btn-add-main{
padding:6px 8px;
min-width:auto;
max-width:none;
}

.header-actions .btn-header-main{
min-width:170px;
justify-content:center;
}
.btn-header-main{
color:white;
border:none;
padding:12px 20px;
border-radius:8px;
font-weight:800;
cursor:pointer;
font-size:0.85rem;
transition:.25s;
display:flex;
align-items:center;
gap:6px;
}

.header-actions{
display:flex;
gap:12px;
margin-left:auto;
}

.btn-header-main:hover{
transform:translateY(-2px);
}

/* ===== TABLAS ===== */

.table-wrapper{
overflow-x:auto;
overflow-y:auto;
max-height:450px;
border:1px solid #dde3ef;
border-radius:12px;
width:100%;
}

/* CONTENEDOR DE TABLAS */

#tablesContainer{
display:flex;
flex-direction:column;
gap:20px;
width:100%;
}

table{
width:100%;
border-collapse:collapse;
font-size:0.8rem;
}

thead th{
position:sticky;
top:0;
background:#1a3a5c;
color:white;
padding:12px;
}

tbody td{
padding:10px;
border-bottom:1px solid #eee;
}

/* ===== RESPONSIVE ===== */

/* LAPTOP */
@media (max-width:1400px){

.map-container{
height:520px;
}

}

/* TABLET */

@media (max-width:1024px){

.map-grid{
grid-template-columns:1fr;
}

.map-container{
height:500px;
}

}

/* ===== FIX HEADER CELULAR ===== */

@media (max-width:768px){

header{
flex-direction:column;
align-items:center;
text-align:center;
gap:15px;
}

header h1{
font-size:1.2rem;
}

.header-actions{
width:100%;
display:flex;
flex-direction:column;
gap:10px;
}

/* TODOS LOS BOTONES MISMO ANCHO */

.btn-header-main{
width:100%;
max-width:100%;
flex:none;
justify-content:center;
}

}

/* ===== CELULAR PEQUEÑO ===== */

@media (max-width:480px){

.resumen-chip{
padding:6px 8px;
min-height:32px;
}

.resumen-chip-label{
font-size:10px;
}

.resumen-chip-value{
font-size:15px;
}

.resumen-grid-mini{
grid-template-columns:1fr;
}

.lead-result-actions{
grid-template-columns:1fr;
}

}
main{
padding:8px;
}

.map-container{
height:420px;
}

header h1{
font-size:1rem;
line-height:1.3;
}

.header-actions{
gap:6px;
}

.btn-header-main{
font-size:.75rem;
padding:6px 8px;
flex:1 1 48%;
}

}

.kpi-box p{
font-size:.75rem;
color:#ffffff;
margin-top:4px;
}

/* KPI DASHBOARD PRO */

.kpi-container{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:14px;
margin:15px 0 20px 0;
}

.kpi-box{
display:flex;
align-items:center;
gap:12px;
padding:16px;
border-radius:12px;
color:white;
box-shadow:0 6px 14px rgba(0,0,0,.18);
transition:transform .2s, box-shadow .2s;
}

.kpi-box:hover{
transform:translateY(-3px);
box-shadow:0 10px 20px rgba(0,0,0,.25);
}

/* ICONO */

.kpi-icon{
font-size:28px;
background:rgba(255,255,255,.2);
padding:10px;
border-radius:10px;
}

/* INFO */

.kpi-info span{
font-size:1.8rem;
font-weight:900;
display:block;
line-height:1;
color:#ffffff;
}

.kpi-box.clienteskm{
background: linear-gradient(135deg,#ff6a00,#ee0979);
color:white;
font-weight:700;
}

.kpi-info p{
font-size:.75rem;
letter-spacing:.5px;
opacity:.9;
margin-top:3px;
}

/* COLORES */

.kpi-box.clientes{
background:linear-gradient(135deg,#1d6f42,#2ecc71);
}

.kpi-box.km{
background:linear-gradient(135deg,#2a5298,#3498db);
}

.kpi-box.promedio{
background:linear-gradient(135deg,#8e44ad,#9b59b6);
}

.kpi-box.densidad{
background:linear-gradient(135deg,#3b2417,#6b3e26);
color:white;
}

.kpi-box.densidad p,
.kpi-box.densidad span,
.kpi-box.densidad .kpi-icon{
color:white;
}

.kpi-box.clientesruta{
background: linear-gradient(135deg,#ff7e00,#ffb347);
color:white;
font-weight:700;
}

/* CELULAR */

.kpi-box.densidad p{
color:#ffffff;
}

.kpi-box.densidad span{
color:#ffffff;
}

.kpi-box.densidad .kpi-icon{
color:#ffffff;
}

.kpi-box.kmcliente{
background: linear-gradient(135deg,#FFD600,#FFC107);
color:#000;
font-weight:700;
}

.kpi-box.cobertura{
background: linear-gradient(135deg,#00b4d8,#0077b6);
color:#fff;
font-weight:700;
}

.kpi-box.rutapotencial{
background: linear-gradient(135deg,#c1121f,#ff4d6d);
color:white;
font-weight:700;
}

.kpi-box.cobertura p{
color:#ffffff;
}

.kpi-box.cobertura span{
color:#ffffff;
}

.kpi-box.paradas{
background:linear-gradient(135deg,#ff6a00,#ff9e00);
}

.btn-prospect-main{
background:#FFD600;
color:#000;
font-weight:900;
}

@media (max-width:900px){

.kpi-container{
grid-template-columns:repeat(2,1fr);
}

}

@media (max-width:500px){

.kpi-container{
grid-template-columns:1fr;
}

.kpi-box{
padding:12px;
}

.kpi-icon{
font-size:22px;
}

.kpi-info span{
font-size:1.5rem;
}

}

@media (max-width:768px){

.map-grid{
grid-template-columns:1fr !important;
}

}

body{
width:100%;
overflow-x:hidden;
}

main{
padding:10px;
width:100%;
}

.card{
width:100%;
}

#tablesContainer{
width:100%;
}

.header-top{
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
flex-wrap:wrap;
}

.header-title{
display:flex;
flex-direction:column;
}

.header-subtitle{
color:var(--accent);
font-weight:900;
letter-spacing:1px;
margin-top:4px;
}

.header-actions .btn-add-main{
grid-column:1;
grid-row:1;
justify-self:center;
}

.header-actions .btn-del-main{
grid-column:2;
grid-row:2;
}

.header-actions .btn-add-main{
width:100%;
max-width:100%;
margin:0;
}

.header-actions button{
white-space:nowrap;
}

.btn-heat{
background:#ff5400;
}

/* CELULARES */

@media (max-width:600px){

header{
padding:15px;
}

.btn-header-main{
font-size:12px;
padding:8px 10px;
}

.map-container{
height:350px;
}

thead th,
tbody td{
font-size:12px;
padding:8px;
}

}

/* FIX RESPONSIVE GENERAL */

.map-grid,
.card,
.table-wrapper,
#tablesContainer,
.kpi-container{
min-width:0;
width:100%;
}

.header-actions .btn-add-main{
padding:8px 12px;
min-width:auto;
}

.btn-header-main{
display:flex;
align-items:center;
gap:6px;
padding:10px 16px;
border:none;
border-radius:10px;
font-weight:600;
cursor:pointer;
transition:all .25s ease;
color:white;
box-shadow:0 2px 6px rgba(0,0,0,0.2);
}

/* 🟢 EMPRESA */
.btn-empresa{
background:#2d9e5f;
}
.btn-empresa:hover{
background:#248a51;
transform:translateY(-2px);
}

/* 🔵 LEADS */
.btn-lead{
background:#0077b6;
}
.btn-lead:hover{
background:#005f8e;
transform:translateY(-2px);
}

/* 🟣 PROSPECTOS */
.btn-prospecto{
background:#6a4c93;
}

.btn-prospecto:hover{
background:#553b78;
transform:translateY(-2px);
}

/* ✏️ CORREGIR */
.btn-edit{
background:#1d6f42;
}

/* 🔴 BAJA */
.btn-danger{
background:#d00000;
}

#resumenBusquedaLeads{
margin-top:8px;
}

.resumen-panel-leads{
background:#f8fafc;
border:1px solid #dbe4f0;
border-radius:10px;
padding:8px 10px;
box-shadow:none;
}

.resumen-panel-header{
font-size:10px;
font-weight:900;
color:#1a3a5c;
margin-bottom:6px;
text-transform:uppercase;
letter-spacing:.3px;
}

.resumen-grid-mini{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:6px;
}

.resumen-chip{
background:white;
border:1px solid #e2e8f0;
border-radius:8px;
padding:6px 8px;
display:flex;
align-items:center;
justify-content:space-between;
gap:6px;
min-height:30px;
box-shadow:none;
}

.resumen-chip-label{
font-size:10px;
font-weight:700;
color:#475569;
line-height:1;
}

.resumen-chip-value{
font-size:14px;
font-weight:900;
color:#1a3a5c;
line-height:1;
min-width:18px;
text-align:right;
}

@media (max-width:700px){
.resumen-grid-mini{
grid-template-columns:1fr 1fr;
gap:6px;
}

.resumen-chip{
padding:5px 7px;
min-height:28px;
}

.resumen-chip-label{
font-size:9px;
}

.resumen-chip-value{
font-size:13px;
}
}

@media (max-width:480px){
.resumen-grid-mini{
grid-template-columns:1fr;
}
}

/* CONTENEDOR KPI SUPERIOR (PARADAS / CLIENTES / EXPORTAR) */
.route-master-panel{
display:flex;
align-items:center;
gap:18px;
flex-wrap:nowrap;
width:100%;
}

/* KPI pequeños (90 PARADAS / 84 DOMICILIOS) */
.route-master-panel .kpi-box{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
min-width:120px;
padding:14px 18px;
border-radius:10px;
text-align:center;
}

.route-master-panel .kpi-box .kpi-info span{
font-size:22px;
font-weight:900;
color:#fff;
}

.route-master-panel .kpi-box .kpi-info p{
font-size:11px;
margin-top:3px;
color:#fff;
}

.route-master-panel .btn-header-main{
width:fit-content;
flex:none;
padding:10px 14px;
}

.route-master-panel button{
margin-left:auto;
flex:0 0 auto;
padding:10px 16px;
white-space:nowrap;
max-width:fit-content;
}

/* KPI SUPERIOR CORRECTO */

.route-master-panel .kpi-box{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
min-width:120px;
padding:14px 18px;
border-radius:10px;
color:#fff;
}

.route-master-panel .kpi-box .kpi-info{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
}

.route-master-panel .kpi-box .kpi-info span{
font-size:22px;
font-weight:900;
color:#ffffff;
}

.route-master-panel .kpi-box .kpi-info p{
font-size:11px;
margin-top:4px;
color:#ffffff;
}

/* FORZAR ESTRUCTURA KPI SUPERIOR */

.route-master-panel .kpi-box .kpi-info{
display:block !important;
text-align:center;
}

.route-master-panel .kpi-box .kpi-info span,
.route-master-panel .kpi-box .kpi-info p{
display:block !important;
color:#ffffff !important;
}

/* ===== ARREGLO KPI SUPERIOR ===== */

.route-master-panel .kpi-box .kpi-info{
display:flex !important;
flex-direction:column !important;
align-items:center !important;
justify-content:center !important;
}

.route-master-panel .kpi-box .kpi-info span{
font-size:22px !important;
font-weight:900 !important;
color:#ffffff !important;
}

.route-master-panel .kpi-box .kpi-info p{
font-size:11px !important;
margin-top:4px !important;
color:#ffffff !important;
}

/* FIX DEFINITIVO KPI SUPERIOR */

.route-master-panel .kpi-box{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
min-width:120px;
padding:14px 18px;
border-radius:10px;
}

.route-master-panel .kpi-box .kpi-info span{
display:block;
font-size:22px;
font-weight:900;
color:#fff !important;
}

.route-master-panel .kpi-box .kpi-info p{
display:block;
font-size:11px;
margin-top:4px;
color:#fff !important;
opacity:1;
}

/* ===== FIX SOLO PARA LOS 2 INDICADORES SUPERIORES ===== */

.stops-indicator,
.clients-indicator{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
padding:12px 16px;
border-radius:8px;
min-width:120px;
}

/* NUMERO GRANDE */

.stops-indicator .stops-count,
.clients-indicator .stops-count{
font-size:22px;
font-weight:900;
color:#ffffff !important;
line-height:1;
}

/* TEXTO */

.stops-indicator .stops-label,
.clients-indicator .stops-label{
font-size:11px;
font-weight:800;
letter-spacing:.5px;
color:#ffffff !important;
margin-top:3px;
}

/* ===== TARJETA LEAD PRO ===== */

.lead-card{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 16px;
margin-bottom:10px;
border-radius:12px;
background:#ffffff;
border:1px solid #e3e8f0;
box-shadow:0 4px 10px rgba(0,0,0,0.05);
transition:.25s;
}

.lead-card:hover{
transform:translateY(-2px);
box-shadow:0 8px 18px rgba(0,0,0,0.12);
}

/* IZQUIERDA */

.lead-left{
display:flex;
flex-direction:column;
gap:4px;
}

.lead-header{
display:flex;
align-items:center;
gap:10px;
}

.lead-title{
font-weight:800;
font-size:15px;
color:#1e2a3a;
}

.lead-sub{
font-size:12px;
color:#6c757d;
}

/* BADGE ESTADO */

.lead-badge{
font-size:10px;
padding:3px 8px;
border-radius:20px;
color:white;
font-weight:700;
}

/* DERECHA BOTONES */

.lead-actions{
display:flex;
gap:8px;
}

/* BOTONES PRO */

.btn-action{
display:flex;
align-items:center;
gap:6px;
border:none;
padding:8px 12px;
border-radius:8px;
font-size:11px;
font-weight:800;
cursor:pointer;
transition:.2s;
}

/* SEGUIMIENTO */

.btn-follow{
background:#0077b6;
color:white;
}

.btn-follow:hover{
background:#005f8e;
}

/* CONVERTIR */

.btn-convert{
background:#2d9e5f;
color:white;
}

.btn-convert:hover{
background:#248a51;
}

/* MOBILE */

@media (max-width:600px){

.btn-action span{
display:none;
}

/* BOARD */

.pipeline-board{
display:flex;
gap:12px;
overflow-x:auto;
padding:10px;
}

/* COLUMNAS */

.pipeline-column{
background:#f4f6fb;
border-radius:12px;
padding:10px;
min-width:220px;
flex:1;
}

.pipeline-column h3{
font-size:12px;
font-weight:900;
margin-bottom:10px;
text-align:center;
}

/* DROP AREA */

.pipeline-drop{
min-height:300px;
display:flex;
flex-direction:column;
gap:8px;
}

/* TARJETA */

.pipeline-card{
background:white;
padding:10px;
border-radius:10px;
font-size:12px;
cursor:grab;
box-shadow:0 4px 8px rgba(0,0,0,0.08);
transition:.2s;
}

.pipeline-card:hover{
transform:scale(1.03);
}

.pipeline-card:active{
cursor:grabbing;
}

/* COLORES POR COLUMNA */

.pipeline-column:nth-child(1){border-top:4px solid #6c757d;}
.pipeline-column:nth-child(2){border-top:4px solid #f1c40f;}
.pipeline-column:nth-child(3){border-top:4px solid #25D366;}
.pipeline-column:nth-child(4){border-top:4px solid #3498db;}
.pipeline-column:nth-child(5){border-top:4px solid #2ecc71;}

}

.pipeline-board{
display:flex;
gap:12px;
overflow-x:auto;
padding:10px;
min-height:400px;
align-items:flex-start;
}

/* COLUMNAS */

.pipeline-column{
background:#f4f6fb;
border-radius:12px;
padding:10px;
min-width:220px;
flex:1;
min-height:350px;
display:flex;
flex-direction:column;
}

/* DROP ZONE */

.pipeline-drop{
flex:1;
min-height:250px;
display:flex;
flex-direction:column;
gap:8px;
}

.pipeline-title{
display:flex;
justify-content:space-between;
align-items:center;
font-size:11px;
font-weight:900;
margin-bottom:10px;
}

.pipeline-count{
background:#1e2a3a;
color:white;
padding:2px 6px;
border-radius:10px;
font-size:10px;
}

.badge-estado{
background:#0077b6;
color:white;
padding:2px 6px;
border-radius:8px;
font-size:10px;
}

.pipeline-card:active{
opacity:0.6;
transform:scale(1.05);
cursor:grabbing;
}

/* CONTENEDOR SUPERIOR */

.lead-top{
display:flex;
justify-content:space-between;
align-items:flex-start;
margin-bottom:10px;
}

.lead-card{
transition: all .25s ease;
}

.lead-card:hover{
transform: translateY(-4px);
box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.pipeline-card{
transition: all .2s ease;
}

.pipeline-card:hover{
transform: scale(1.03);
box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.btn-action:hover{
transform: scale(1.05);
opacity: 0.9;
}

.actividades-board > div{
flex:1;
background:#f4f6fb;
padding:10px;
border-radius:10px;
min-height:300px;
}



.actividad-card{
background:white;
padding:10px;
border-radius:10px;
margin-bottom:8px;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
transition:.2s;
}

.actividad-card:hover{
transform:translateY(-2px);
}

.act-hoy{border-left:4px solid #f1c40f;}
.act-vencido{border-left:4px solid #e74c3c;}
.act-ok{border-left:4px solid #2ecc71;}

.lead-card{
display:flex;
flex-direction:column;
justify-content:space-between;
}

/* 🔥 CONTENIDO SUPERIOR */
.lead-top{
min-height:60px;
}

/* 🔥 BOTONES SIEMPRE IGUALES */
.lead-actions-row{
display:grid;
grid-template-columns: 1fr 1fr;
gap:8px;
margin-top:10px;
}

/* 🔥 BOTONES BASE */
.btn-action{
width:100%;
height:40px;
display:flex;
align-items:center;
justify-content:center;
font-weight:700;
border-radius:8px;
}

.lead-title{
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
display:block;
}

.resumen-box{
display:flex;
gap:15px;
margin:10px 0;
}

.resumen-item{
flex:1;
background:linear-gradient(135deg,#1a3a5c,#2d9e5f);
color:white;
padding:12px;
border-radius:12px;
text-align:center;
font-size:14px;
font-weight:700;
box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.botones-filtro-leads{
display:flex;
flex-wrap:wrap;
gap:12px;
margin-top:14px;
}

.botones-filtro-leads button{
border:none;
border-radius:10px;
padding:10px 14px;
font-size:13px;
font-weight:800;
cursor:pointer;
color:white;
box-shadow:0 4px 10px rgba(0,0,0,0.12);
transition:all .22s ease;
display:flex;
align-items:center;
justify-content:center;
gap:6px;
min-width:150px;
}

.botones-filtro-leads button:hover{
transform:translateY(-2px);
box-shadow:0 8px 16px rgba(0,0,0,0.18);
filter:brightness(1.05);
}

.botones-filtro-leads button:nth-child(1){
background:#6c757d;
}

.botones-filtro-leads button:nth-child(2){
background:#d00000;
}

.botones-filtro-leads button:nth-child(3){
background:#2d9e5f;
}

.botones-filtro-leads button:nth-child(4){
background:#1a3a5c;
}

.botones-filtro-leads button:nth-child(5){
background:#0077b6;
}

.botones-filtro-leads button:nth-child(6){
background:#1d6f42;
}

.botones-filtro-leads button:nth-child(7){
background:#6a4c93;
}

.botones-filtro-leads button:nth-child(8){
background:#c1121f;
}

.botones-filtro-leads button:nth-child(9){
background:#ff5400;
}

@media (max-width:700px){

.botones-filtro-leads button{
flex:1 1 100%;
min-width:100%;
}

.busqueda-grid{
grid-template-columns:1fr;
}

.resumen-grid-mini{
grid-template-columns:1fr 1fr;
}

.lead-result-top{
flex-direction:column;
align-items:flex-start;
}

.lead-result-actions{
grid-template-columns:1fr 1fr;
}

}

@media (max-width:700px){
.kpi-grid-busqueda{
grid-template-columns:1fr !important;
}
}

:root {
    --primary: #1a3a5c; --accent: #e85d04; --prospect: #ffcc00; --bg: #f4f6fb;
    --card: #ffffff; --border: #dde3ef; --text: #1e2a3a; --success: #2d9e5f;
    --martes: #4CC9FE; --jueves: #9d4edd; --viernes: #f72585; --sabado: #ff5400;
    --danger: #d00000; --import: #0077b6; --edit: #0077b6; --info: #023e8a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); padding-bottom: 50px; }

header { 
    background: linear-gradient(135deg, var(--primary) 0%, #0d2137 100%); 
    color: #fff; padding: 20px 30px; border-bottom: 4px solid var(--accent); 
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; 
}

.header-actions { display: flex; gap: 15px; }
.btn-header-main { color: white; border: none; padding: 12px 22px; border-radius: 8px; font-weight: 800; cursor: pointer; font-size: 0.85rem; transition: 0.3s; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); }
.btn-add-main { background: var(--success); }
.btn-edit-main { background: var(--edit); }
.btn-del-main { background: var(--danger); }
.btn-header-main:hover { transform: translateY(-2px); filter: brightness(1.1); }

main{
padding:20px;
width:100%;
max-width:100%;
margin:0;
display:flex;
flex-direction:column;
gap:20px;
}
.card { background: var(--card); border-radius: 12px; padding: 20px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); border: 1px solid var(--border); position: relative; }

/* BUSCADOR SOBRE EL MAPA - ESTILO PROFESIONAL */
.map-container { position: relative; height: 550px; border-radius: 12px; overflow: hidden; border: 2px solid var(--border); }
#map { height: 100%; width: 100%; z-index: 1; }

.map-search-box {
    position: absolute; top: 15px; left: 15px; z-index: 1000;
    width: 90%; max-width:300px; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); padding: 15px; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.3);
}
.search-input-wrapper { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 10px; color: var(--primary); font-weight: bold; }
.map-search-input { 
    width: 90%; padding: 10px 10px 10px 35px; border-radius: 8px; border: 1px solid var(--border);
    font-size: 0.85rem; outline: none; transition: 0.3s;
}
.map-search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.1); }
.search-results-floating {
    max-height: 300px; overflow-y: auto; margin-top: 10px; border-radius: 8px;
    background: white; display: none; border: 1px solid var(--border);
}
.search-results-floating.active { display: block; }
.result-item {
    padding: 10px; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: 0.2s; font-size: 0.75rem;
}
.result-item:hover { background: #f8fafc; border-left: 4px solid var(--accent); }

.pipeline-column:nth-child(1){
background:linear-gradient(180deg,#f1f3f5,#e9ecef);
border-top:5px solid #6c757d;
}

.pipeline-column:nth-child(2){
background:linear-gradient(180deg,#fff3cd,#ffe69c);
border-top:5px solid #f1c40f;
}

.pipeline-column:nth-child(3){
background:linear-gradient(180deg,#e6fffa,#c3fae8);
border-top:5px solid #20c997;
}

.pipeline-column:nth-child(4){
background:linear-gradient(180deg,#e7f1ff,#cfe2ff);
border-top:5px solid #3498db;
}

.pipeline-column:nth-child(5){
background:linear-gradient(180deg,#e6ffed,#c3f7d1);
border-top:5px solid #2ecc71;
}

.pipeline-card{
background:white;
padding:12px;
border-radius:12px;
font-size:12px;
cursor:grab;
box-shadow:0 6px 14px rgba(0,0,0,0.08);
transition:.25s;
border-left:4px solid #0077b6;
}

.pipeline-card:hover{
transform:translateY(-3px) scale(1.02);
box-shadow:0 12px 24px rgba(0,0,0,0.15);
}

.sugerencias-busqueda-lead{
position:absolute;
top:100%;
left:0;
right:0;
background:white;
border:1px solid #d9e2ec;
border-radius:10px;
box-shadow:0 8px 24px rgba(0,0,0,0.12);
max-height:260px;
overflow-y:auto;
z-index:9999;
display:none;
margin-top:4px;
}

.sugerencia-lead-item{
padding:10px 12px;
border-bottom:1px solid #eef2f7;
cursor:pointer;
transition:.2s;
}

.sugerencia-lead-item:last-child{
border-bottom:none;
}

.sugerencia-lead-item:hover{
background:#f4f8fc;
}

.sugerencia-lead-titulo{
font-weight:800;
color:#1e2a3a;
font-size:13px;
}

.sugerencia-lead-sub{
font-size:11px;
color:#666;
margin-top:3px;
line-height:1.4;
}

.botones-filtro-leads{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:10px;
}


/* =========================================================
   PIPELINE PRO DE LEADS
========================================================= */

.pipeline-toolbar-pro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pipeline-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pipeline-check-pro {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #324b61;
  background: #f3f7fb;
  border: 1px solid #dbe6f0;
  border-radius: 12px;
  padding: 10px 14px;
}

.pipeline-top-resumen {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  min-width: 420px;
}

.pipeline-top-kpi {
  background: #f8fbff;
  border: 1px solid #d9e5ef;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.pipeline-top-kpi-value {
  font-size: 22px;
  font-weight: 900;
  color: #18324a;
}

.pipeline-top-kpi-label {
  font-size: 11px;
  font-weight: 800;
  color: #6c7b88;
  margin-top: 4px;
}

.pipeline-board-pro {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 10px;
}

.pipeline-column-pro {
  min-width: 300px;
  max-width: 300px;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.pipeline-column-header-pro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.pipeline-column-title-pro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 900;
  color: #1f2d3d;
}

.pipeline-column-count-pro {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #203040;
  color: #fff;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: 900;
}

.pipeline-column-mini-kpis {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
  color: #4a5c6d;
}

.pipeline-column-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #617181;
  margin-bottom: 10px;
}

.pipeline-drop-pro {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-empty-pro {
  background: rgba(255,255,255,0.55);
  border: 2px dashed rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  color: #6a7785;
}

.pipeline-card-pro {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: grab;
  transition: transform .15s ease, box-shadow .15s ease;
}

.pipeline-card-pro:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.pipeline-card-prioritario {
  box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.22), 0 8px 18px rgba(0,0,0,0.10);
}

.pipeline-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pipeline-card-title-wrap {
  flex: 1;
}

.pipeline-card-title {
  font-size: 14px;
  font-weight: 900;
  color: #1f2d3d;
  line-height: 1.2;
}

.pipeline-card-sub {
  font-size: 12px;
  color: #5e6f80;
  margin-top: 4px;
  font-weight: 700;
}

.pipeline-score-box {
  min-width: 58px;
  background: #0b84d8;
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 6px 8px;
}

.pipeline-score-label {
  display: block;
  font-size: 9px;
  font-weight: 900;
  opacity: .85;
  letter-spacing: .4px;
}

.pipeline-score-value {
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-top: 2px;
}

.pipeline-card-meta {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: #425466;
  font-weight: 700;
}

.pipeline-card-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pipeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
}

.chip-verde {
  background: #dff7ea;
  color: #127a46;
}

.chip-amarillo {
  background: #fff4cc;
  color: #9a6a00;
}

.chip-rojo {
  background: #fde3e3;
  color: #b42318;
}

.chip-morado {
  background: #f1e3fb;
  color: #7b2cbf;
}

.chip-neutro {
  background: #edf2f7;
  color: #506070;
}

.pipeline-card-ultima {
  margin-top: 10px;
  font-size: 11px;
  color: #536273;
  background: #f7fafc;
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.4;
}

.pipeline-card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.pipeline-card-actions button {
  border: none;
  border-radius: 10px;
  background: #1a3a5c;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  padding: 9px 8px;
  cursor: pointer;
  transition: .15s ease;
}

.pipeline-card-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .pipeline-top-resumen {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    min-width: auto;
    width: 100%;
  }
}


/* =========================
   IMPRESIÓN COTIZACIÓN
========================= */
.acciones-cotizacion-preview{
  display:flex;
  gap:12px;
  justify-content:flex-end;
  align-items:center;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #d9e2ec;
}

.btn-print-cot{
  background:linear-gradient(135deg, #0b5c8e, #08486e);
  color:#fff;
  border:none;
  border-radius:12px;
  padding:12px 18px;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(11,92,142,.22);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn-print-cot:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(11,92,142,.28);
}

.btn-print-cot:active{
  transform:translateY(0);
}

.btn-print-cot[disabled]{
  opacity:.7;
  cursor:not-allowed;
  transform:none;
}

/* Área imprimible */
#cotizacionPrintableWrap{
  background:#f7fafc;
  padding:12px;
  border-radius:16px;
}

/* Al imprimir */
@media print{
  body *{
    visibility:hidden !important;
  }

  #cotizacionPrintableWrap,
  #cotizacionPrintableWrap *{
    visibility:visible !important;
  }

  #cotizacionPrintableWrap{
    position:absolute !important;
    left:0 !important;
    top:0 !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
    background:#fff !important;
  }

  #cotizacionPDF{
    margin:0 auto !important;
    box-shadow:none !important;
    background:#fff !important;
  }

  .acciones-cotizacion-preview{
    display:none !important;
  }
}


.stops-indicator, .clients-indicator { color: white; padding: 10px 15px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.stops-indicator { background: var(--primary); }
.clients-indicator { background: var(--accent); border: 2px solid white; }
.stops-count { font-size: 1.5rem; font-weight: 900; }
.stops-label { font-size: 0.6rem; text-transform: uppercase; font-weight: bold; }

.master-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 2px solid #f0f2f5; }
.btn-master { background: var(--primary); color: white; border: none; padding: 10px 15px; border-radius: 8px; font-weight: 900; cursor: pointer; font-size: 0.7rem; transition: 0.2s; }

.controls-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.btn-group { display: flex; flex-direction: column; gap: 5px; background: #f8fafc; padding: 8px; border-radius: 10px; border: 1px solid #e2e8f0; }
.btn-toggle { width: 100%; padding: 8px; border-radius: 6px; border: none; font-weight: 800; cursor: pointer; font-size: 0.65rem; transition: 0.3s; color: white; }

.btn-lunes.on { background: var(--success); }
.btn-martes.on { background: var(--martes); color: #003049; }
.btn-miercoles.on { background: var(--primary); }
.btn-jueves.on { background: var(--jueves); }
.btn-viernes.on { background: var(--viernes); }
.btn-sabado.on { background: var(--sabado); }
.btn-prospectos.on { background: var(--prospect); color: #000; }
.btn-off { background: #cbd5e1 !important; color: #64748b !important; opacity: 0.6; transform: scale(0.95); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 33, 55, 0.85);
  display: none;

  justify-content: center;
  align-items: center; /* 🔥 CAMBIO CLAVE */

  overflow-y: auto;
  padding: 18px 14px;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.modal-content {
  background: white;
  border-radius: 20px;

  width: min(1100px, 95vw); /* 🔥 CAMBIO */
  max-width: 100%;

  padding: 35px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;

  margin: 0 auto;

  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}


/* =========================
   MODAL ESPECÍFICO: VISTA COTIZACIÓN
========================= */
#modalVistaCotizacion {
  align-items: flex-start !important;
  overflow-y: auto !important;
  padding: 18px 14px !important;
}

#modalVistaCotizacion .modal-content {
  width: min(1100px, 95vw) !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 auto !important;
  padding: 20px !important;
  position: relative;
}

#modalVistaCotizacion .modal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

#modalVistaCotizacion #vistaCotizacionContenido {
  overflow: visible !important;
}


/* ===== FIX DEFINITIVO MODAL ACTIVIDADES ===== */
#modalActividades .modal-content{
  width: 1100px !important;
  max-width: 95vw !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#modalActividades .modal-header{
  align-items: center !important;
  padding-top: 10px !important;
  overflow: visible !important;
}

#modalActividades .actividades-topbar{
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  margin-bottom:14px !important;
  width:100% !important;
}

#modalActividades .actividades-topbar-botones{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
}

#modalActividades .btn-ruta-visitas{
  background:#1f7a3d !important;
}

#modalActividades .filtro-actividades{
  display:flex !important;
  gap:8px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  width:100% !important;
}

#modalActividades .filtro-actividades button{
  border:1px solid #cfd8e3 !important;
  background:#fff !important;
  color:#1d2b3a !important;
  padding:6px 10px !important;
  border-radius:8px !important;
  font-weight:800 !important;
  cursor:pointer !important;
}

#modalActividades #resumenActividades{
  position: static !important;
  width: 100% !important;
}

#modalActividades .resumen-box{
  display:flex !important;
  gap:14px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  margin:0 0 12px 0 !important;
  padding:0 !important;
  background:transparent !important;
  border:none !important;
}

#modalActividades .actividades-board{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:14px !important;
  width:100% !important;
  margin-top:14px !important;
}

#modalActividades .actividades-board > div{
  min-width:0 !important;
  background:#eef2f7 !important;
  padding:12px !important;
  border-radius:12px !important;
  min-height:300px !important;
  box-sizing:border-box !important;
}

#modalActividades #actHoy,
#modalActividades #actPendientes,
#modalActividades #actCompletadas{
  min-height:100px !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
}

#modalActividades .actividad-card{
  width:100% !important;
  box-sizing:border-box !important;
}

#modalActividades .acciones-reportes{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-top:14px !important;
}

#modalActividades .acciones-reportes button{
  position:relative !important;
  left:auto !important;
  right:auto !important;
  top:auto !important;
  bottom:auto !important;
  transform:none !important;
  float:none !important;
}

/* =========================
   MEDIO MULTISELECT
========================= */
.medio-multiselect{
  position:relative;
  width:100%;
  margin-bottom:10px;
}

.medio-multiselect-btn{
  width:100%;
  min-height:48px;
  border:1px solid #d9e2ec;
  border-radius:14px;
  background:#f8fafc;
  padding:12px 44px 12px 14px;
  text-align:left;
  font-size:14px;
  font-weight:700;
  color:#243b53;
  cursor:pointer;
  position:relative;
  transition:.18s ease;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.medio-multiselect-btn:hover{
  border-color:#b8c7d9;
  background:#fff;
}

.medio-multiselect-btn::after{
  content:"▼";
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  color:#52667a;
  pointer-events:none;
}

.medio-multiselect.open .medio-multiselect-btn{
  border-color:#0b5c8e;
  background:#fff;
  box-shadow:0 0 0 3px rgba(11,92,142,.08);
}

.medio-multiselect.open .medio-multiselect-btn::after{
  content:"▲";
}

.medio-multiselect-menu{
  display:none;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:240px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #d9e2ec;
  border-radius:14px;
  box-shadow:0 14px 30px rgba(15,23,42,.12);
  padding:10px;
  z-index:5000;
}

.medio-multiselect.open .medio-multiselect-menu{
  display:block;
}

.medio-option{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  color:#243b53;
}

.medio-option:hover{
  background:#f4f8fb;
}

.medio-option input{
  cursor:pointer;
  transform:scale(1.05);
}

.medio-option span{
  flex:1;
}

/* ===============================
   MODAL PRO - NOTA / SEGUIMIENTO
================================= */

.modal-nota-pro {
  width: min(92vw, 720px);
  max-width: 720px;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.20),
    0 8px 18px rgba(0, 0, 0, 0.10);
  border: 1px solid #e6edf5;
}

.modal-header-nota {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px 18px 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
  border-bottom: 1px solid #dde7f1;
}

.modal-title-nota {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.15rem;
  font-weight: 900;
  color: #18324a;
  letter-spacing: 0.3px;
}

.modal-subtitle-nota {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6c7a89;
  letter-spacing: 0;
}

.btn-close-pro {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #6f7b86;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.btn-close-pro:hover {
  background: #55606a;
  transform: scale(1.04);
}

.nota-body-pro {
  padding: 22px 24px 10px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nota-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nota-label-pro {
  font-size: 0.92rem;
  font-weight: 800;
  color: #26435c;
  letter-spacing: 0.2px;
}

.nota-select-pro,
.nota-textarea-pro {
  width: 100%;
  border: 1px solid #cfd9e4;
  border-radius: 14px;
  background: #fbfdff;
  color: #243746;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nota-select-pro {
  height: 46px;
  padding: 0 14px;
  font-weight: 700;
}

.nota-textarea-pro {
  min-height: 145px;
  resize: vertical;
  padding: 14px 15px;
  line-height: 1.5;
}

.nota-select-pro:focus,
.nota-textarea-pro:focus {
  outline: none;
  border-color: #0b84d8;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 132, 216, 0.12);
}

.nota-footer-pro {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 24px 24px 24px;
  border-top: 1px solid #edf2f7;
  background: #ffffff;
  flex-wrap: wrap;
}

.btn-nota-cancelar,
.btn-nota-guardar {
  min-width: 150px;
  height: 46px;
  border: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 0 18px;
}

.btn-nota-cancelar {
  background: #7d8790;
  color: #fff;
}

.btn-nota-cancelar:hover {
  background: #626c74;
  transform: translateY(-1px);
}

.btn-nota-guardar {
  background: linear-gradient(135deg, #0b84d8 0%, #0867aa 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(11, 132, 216, 0.18);
}

.btn-nota-guardar:hover {
  background: linear-gradient(135deg, #0a76c1 0%, #07588f 100%);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .modal-nota-pro {
    width: 94vw;
    border-radius: 18px;
  }

  .modal-header-nota,
  .nota-body-pro,
  .nota-footer-pro {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nota-footer-pro {
    flex-direction: column;
  }

  .btn-nota-cancelar,
  .btn-nota-guardar {
    width: 100%;
  }
}

.modal-overlay.active .modal-nota-pro {
  animation: modalNotaIn 0.22s ease;
}

@keyframes modalNotaIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================
   IMPRESIÓN COTIZACIÓN PREVIEW
========================= */

.modal-header { display: flex; justify-content: space-between; align-items: flex-start;
padding-top: 10px;
overflow-y: visible; margin-bottom: 25px; border-bottom: 2px solid #f1f5f9; padding-bottom: 15px; }
.modal-title { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }

.input-edit { width: 100%; padding: 14px; margin-bottom: 15px; border: 1.5px solid #e2e8f0; border-radius: 12px; font-size: 0.95rem; background: #f8fafc; transition: 0.3s; }
.input-edit:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(26,58,92,0.1); }
.input-label { font-size: 0.75rem; font-weight: 800; color: #64748b; margin-bottom: 6px; display: block; text-transform: uppercase; }

.gps-section { background: #f0f7ff; border-radius: 15px; padding: 20px; margin-bottom: 20px; border: 1.5px dashed var(--info); }
.miniMapClass { height: 200px; width: 100%; border-radius: 10px; margin-top: 15px; border: 1px solid #ddd; }

#toast { position: fixed; top: 20px; right: 20px; background: var(--success); color: white; padding: 15px 25px; border-radius: 12px; transform: translateX(200%); transition: 0.4s; z-index: 10000; font-weight: bold; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
#toast.show { transform: translateX(0); }

.number-pin { color: white; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; border: 2px solid white; box-shadow: 0 3px 6px rgba(0,0,0,0.3); }

.table-wrapper { overflow: auto; max-height: 450px; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
thead th { position: sticky; top: 0; background: var(--primary); color: white; padding: 14px; text-align: left; z-index: 10; }
tbody td { padding: 12px; border-bottom: 1px solid #eee; }
.search-item { padding: 15px; border-radius: 10px; border-left: 6px solid #ccc; background: #fff; margin-bottom: 8px; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.search-item:hover { transform: translateX(8px); background: #f0f7ff; }