/* =========================================================
   AGS ADMIN - ALTA CLIENTE ONEPAGE (CSS)
   Archivo externo para /admin/alta_cliente_onepage.html
   Mantiene el estilo original + mejoras
========================================================= */

/* ------------------ VARIABLES Y BASE ------------------ */
:root{
  --bg: radial-gradient(circle at top, #0d101f 0%, #090b14 55%, #04050a 100%);
  --surface: rgba(23, 26, 43, .85);
  --card: rgba(12,15,25,.85);
  --line: rgba(255,140,0,.08);
  --text: #f6f7fb;
  --muted: rgba(246,247,251,.55);
  --accent: #ff8a2b;
  --accent-soft: rgba(255,138,43,.14);
  --ok: #2ed47a;
  --warn: #f5a524;
  --danger: #ef476f;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

body{
  margin:0;
  background:var(--bg);
  background-attachment:fixed;
  color:var(--text);
  font:14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  min-height:100vh;
}

body.modo-100{
  --accent: #7dff9b;
  --accent-soft: rgba(125,255,155,.14);
}

a{
  color:inherit;
  text-decoration:none;
}

::-webkit-scrollbar{
  width:7px;
  height:7px;
}
::-webkit-scrollbar-track{
  background:rgba(0,0,0,.15);
}
::-webkit-scrollbar-thumb{
  background:rgba(109,93,252,.4);
  border-radius:999px;
}

/* ------------------ LAYOUT GENERAL ------------------ */

.max{
  max-width:1220px;
  margin:0 auto;
  padding:13px 16px;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
}

.between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

header.appbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(18px);
  background:rgba(9, 10, 19, 0.55);
  border-bottom:1px solid rgba(255,255,255,.03);
  box-shadow:0 14px 30px rgba(0,0,0,.32);
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(320px,0.95fr);
  gap:16px;
  align-items:flex-start;
  margin-top:9px;
  min-height:calc(100vh - 70px);
}

@media (max-width:1080px){
  .layout{
    grid-template-columns:1fr;
  }
}

/* sidebar derecha */
aside.right{
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ------------------ TARJETAS / CONTENEDORES ------------------ */

.card{
  background:var(--card);
  border:1px solid rgba(255,255,255,.03);
  border-radius:var(--radius-lg);
  padding:12px 12px 14px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.card__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

/* ------------------ CHIPS / BADGES ------------------ */

.chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.05);
  padding:6px 11px;
  border-radius:999px;
  background:rgba(15, 17, 30, .35);
  font-size:12px;
  line-height:1;
}

.chip input[type="checkbox"],
.chip input[type="radio"]{
  margin-right:4px;
}

.chip--accent{
  border-color:rgba(109,93,252,.5);
  background:radial-gradient(circle, rgba(109,93,252,.08) 0%, rgba(1,6,15,0) 100%);
  color:#fff;
  font-weight:500;
}

.badge{
  display:inline-block;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(12,15,25,.45);
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  line-height:1;
  white-space:nowrap;
}

.badge--accent{
  border-color:var(--accent);
  background:var(--accent-soft);
  color:var(--accent);
}

/* ------------------ TABS ------------------ */

.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.tab{
  border:1px solid rgba(255,255,255,.02);
  background:rgba(12,14,24,.4);
  color:var(--text);
  padding:6px 11px;
  border-radius:10px;
  cursor:pointer;
  transition:.14s ease;
  font-size:12.5px;
  display:flex;
  align-items:center;
  gap:5px;
}

.tab:hover{
  border-color:rgba(255,255,255,.15);
}

.tab.active{
  border-color:var(--accent);
  background:rgba(255,138,43,.06);
  box-shadow:0 0 0 2px rgba(255,138,43,.25) inset;
}

/* ------------------ FORM CONTROLS ------------------ */

label{
  font-size:11.5px;
  color:var(--muted);
  display:block;
  margin:5px 0 3px;
  letter-spacing:-.01em;
}

input,
select,
textarea{
  width:100%;
  background:rgba(7,9,16,.35);
  border:1px solid rgba(255,138,43,.25);
  border-radius:10px;
  color:var(--text);
  padding:9.5px 11px;
  outline:none;
  transition:.12s ease;
  backdrop-filter: blur(6px);
  font-family:inherit;
  font-size:13px;
}

input:focus,
select:focus,
textarea:focus{
  border:1px solid var(--accent);
  background:rgba(7,8,15,.55);
  box-shadow:0 0 0 3px rgba(255,138,43,.09);
}

input[readonly],
textarea[readonly]{
  opacity:.8;
  cursor:default;
}

/* mono */
.mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

/* grids */
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

@media (max-width:920px){
  .grid-3,
  .grid-4{
    grid-template-columns:1fr;
  }
}

/* ------------------ BOTONES ------------------ */

.btn{
  border:1px solid rgba(255,138,43,.12);
  background:rgba(12,15,25,.3);
  color:var(--text);
  padding:8px 14px;
  border-radius:12px;
  backdrop-filter: blur(12px);
  transition:.15s ease-out;
  cursor:pointer;
  font-size:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
}

.btn:hover{
  background:rgba(12,15,25,.6);
}

.btn:disabled{
  opacity:.5;
  cursor:default;
}

.btn--primary{
  border-color:var(--accent);
  background:linear-gradient(140deg, rgba(255,138,43,1) 0%, rgba(255,169,95,1) 100%);
  color:#10121a;
  box-shadow:0 14px 30px rgba(255,138,43,.28);
}

.btn--ok{
  border-color:rgba(60,193,121,.3);
  background:linear-gradient(180deg,#1e744c,#184b6a);
  color:#fff;
}

.btn--danger{
  border-color:var(--accent);
  background:linear-gradient(140deg,#ff8a2b 0%,#ffb567 100%);
  color:#0f1220;
  box-shadow:0 12px 30px rgba(255,138,43,.25);
}

.btn--warn{
  border-color:rgba(245,165,36,.35);
  background:linear-gradient(140deg,#f5a524 0%,#ffd27a 100%);
  color:#0f1220;
  box-shadow:0 12px 30px rgba(245,165,36,.25);
}

.btn--link{
  border:none;
  background:none;
  padding:0;
  color:var(--accent);
  box-shadow:none;
}

.btn.btn--xs{
  padding:4px 8px;
  font-size:.82rem;
  border-radius:10px;
}

.btn.btn--sm{
  padding:6px 10px;
  font-size:.86rem;
}

/* acciones flotantes abajo */
.actions-bottom{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  position:sticky;
  bottom:7px;
  background:linear-gradient(180deg, rgba(9,10,19,0) 0%, rgba(9,10,19,1) 55%);
  padding:12px 0 2px;
  z-index:40;
}

@media (max-width:720px){
  .actions-bottom{
    flex-wrap:wrap;
    justify-content:flex-start;
  }
}

/* ------------------ LISTAS / TEXTOS ------------------ */

.muted{
  color:var(--muted);
}

.hidden{
  display:none!important;
}

.list{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* ------------------ KPIs ------------------ */

.kpis{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.kpi{
  border:1px dashed rgba(255,255,255,.03);
  border-radius:12px;
  padding:9px 10px;
  text-align:center;
  background:radial-gradient(circle at 10% 10%, rgba(255,255,255,.015) 0%, rgba(0,0,0,0) 50%);
}

/* ------------------ TOAST ------------------ */

.toast{
  position:fixed;
  right:14px;
  bottom:14px;
  background:#1b1e34;
  border:1px solid rgba(255,255,255,.04);
  padding:10px 12px;
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s;
  z-index:9999;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
  font-size:13px;
}

.toast.show{
  opacity:1;
  pointer-events:auto;
}

/* ------------------ DROPZONES (OCR / IMPORT / ARCHIVOS) ------------------ */

.drop{
  border:1px dashed rgba(255,255,255,.05);
  border-radius:14px;
  padding:18px;
  text-align:center;
  background:radial-gradient(circle, rgba(13, 13, 21, 0.5), rgba(12, 12, 21,.1));
  transition:.14s ease;
}

.drop.is-drag{
  border-color:rgba(109,93,252,.6);
  box-shadow:0 0 0 2px rgba(109,93,252,.14);
}

/* OCR específico */
#polizaDrop .muted{
  font-size:12px;
}

/* Import CSV */
#impPreview{
  font-size:12px;
}

/* ------------------ TABLAS ------------------ */

.table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}

.table th,
.table td{
  border-bottom:1px solid rgba(255,255,255,.02);
  padding:8px 5px;
  text-align:left;
}

.table th{
  font-size:12px;
  color:var(--muted);
  font-weight:500;
}

.table tr:last-child td{
  border-bottom:none;
}

.table input,
.table select{
  padding:5px 7px;
  font-size:12px;
}

/* ------------------ BUSCADOR RÁPIDO ARRIBA ------------------ */

.top-actions{
  display:flex;
  gap:14px;
  align-items:center;
}

.quick-search-wrap{
  position:relative;
  min-width:240px;
  max-width:300px;
}

.quick-search-input{
  width:100%!important;
  background:radial-gradient(circle at 0% 0%, #1d2140 0%, #0f1220 45%, #0f1220 100%) !important;
  border:1px solid rgba(255,138,43,.5) !important;
  border-radius:999px !important;
  padding:7px 34px 7px 32px !important;
  color:var(--text) !important;
  font-size:13px !important;
  outline:none !important;
  box-shadow:0 0 0 rgba(0,0,0,0) !important;
  transition:.15s ease !important;
}

.quick-search-input:focus{
  border:1px solid var(--accent) !important;
  box-shadow:0 4px 22px rgba(255,138,43,.35);
}

.quick-search-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  opacity:.6;
  pointer-events:none;
}

.quick-search-clear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  border:none;
  background:rgba(0,0,0,.35);
  border-radius:999px;
  color:#fff;
  font-size:13px;
  line-height:20px;
  text-align:center;
  cursor:pointer;
  display:none;
}

.quick-results{
  position:absolute;
  top:110%;
  right:0;
  left:0;
  background:rgba(15,17,30,.96);
  backdrop-filter:blur(16px);
  border:1px solid rgba(255,138,43,.25);
  border-radius:12px;
  z-index:60;
  max-height:260px;
  overflow-y:auto;
  display:none;
  box-shadow:0 24px 40px rgba(0,0,0,.25);
}

.quick-item{
  display:flex;
  gap:10px;
  padding:8px 10px;
  cursor:pointer;
  transition:.15s ease;
  align-items:center;
}

.quick-item:hover{
  background:rgba(255,138,43,.14);
}

.quick-avatar{
  width:30px;
  height:30px;
  border-radius:10px;
  background:linear-gradient(150deg, #6d5dfc, #d662ff);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:600;
}

.quick-main{
  flex:1;
  min-width:0;
}

.quick-name{
  font-weight:500;
}

.quick-sub{
  font-size:11px;
  opacity:.7;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.quick-pill{
  background:rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.05);
  border-radius:999px;
  padding:2px 8px;
  font-size:10px;
  text-transform:uppercase;
}

/* ------------------ MODALES GENERALES ------------------ */

.modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:#0006;
  backdrop-filter:blur(2px);
  z-index:80;
}

.modal.show{
  display:grid;
}

.modal .panel{
  width:min(960px,96vw);
  max-height:92vh;
  overflow:auto;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 12px 14px;
  box-shadow:0 24px 50px rgba(0,0,0,.5);
}

/* ------------------ MODAL COTIZAR / COMPARATIVO ------------------ */

#cotizPolizaModal .cotiz-panel{
  width:min(1320px,96vw);
}

#cotizPolizaModal .cotiz-layout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr);
  gap:12px;
  align-items:start;
}

#cotizPolizaModal .cotiz-left{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}

#cotizPolizaModal .cotiz-right{
  min-width:0;
}

@media (max-width:1080px){
  #cotizPolizaModal .cotiz-layout{
    grid-template-columns:1fr;
  }
}

#cotizPolizaModal .cotiz-files{
  border:1px solid rgba(255,255,255,.05);
  background:rgba(0,0,0,.18);
  border-radius:var(--radius-md);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  max-height:120px;
  overflow:auto;
}

#cotizPolizaModal .cotiz-file-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
}

#cotizPolizaModal .cotiz-quotes{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:230px;
  overflow:auto;
  border-radius:var(--radius-md);
}

#cotizPolizaModal .quote-card{
  border:1px solid rgba(255,255,255,.05);
  background:rgba(0,0,0,.18);
  border-radius:var(--radius-md);
  padding:10px 10px 9px;
}

#cotizPolizaModal .quote-card .quote-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

#cotizPolizaModal .quote-title{
  font-weight:700;
  font-size:13px;
}

#cotizPolizaModal .quote-meta{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}

#cotizPolizaModal .quote-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

#cotizPolizaModal .cotiz-preview{
  border-radius:var(--radius-lg);
  border:1px solid rgba(255,255,255,.06);
  background:rgba(0,0,0,.12);
  padding:10px;
  min-height:540px;
  overflow:auto;
}

/* Sheet (1 hoja) */
.cmp-sheet{
  background:#fff;
  color:#111;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  padding:18px 18px 14px;
  max-width:900px;
  margin:0 auto;
}

.cmp-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding-bottom:10px;
  margin-bottom:12px;
}

.cmp-title{
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
}

.cmp-sub{
  margin-top:4px;
  font-size:12px;
  color:#555;
}

.cmp-badge{
  border:1px solid rgba(0,0,0,.12);
  padding:5px 10px;
  border-radius:999px;
  font-size:11px;
  white-space:nowrap;
  background:rgba(0,0,0,.02);
}

.cmp-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}

@media (max-width:860px){
  .cmp-grid{ grid-template-columns:1fr; }
}

.cmp-card{
  border:1px solid rgba(0,0,0,.1);
  border-radius:12px;
  padding:10px 12px;
  background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(250,250,252,1) 100%);
}

.cmp-card.best{
  border-color:rgba(16,185,129,.55);
  box-shadow:0 0 0 2px rgba(16,185,129,.16) inset;
}

.cmp-card .cmp-ins{
  font-weight:800;
  font-size:13px;
}
.cmp-card .cmp-total{
  font-weight:900;
  font-size:18px;
  margin-top:6px;
}
.cmp-card .cmp-mini{
  font-size:11px;
  color:#555;
  margin-top:4px;
}

.cmp-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:12px;
}

.cmp-table th,
.cmp-table td{
  border-bottom:1px solid rgba(0,0,0,.08);
  padding:8px 8px;
  vertical-align:top;
}

.cmp-table th{
  text-align:left;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#444;
  background:rgba(0,0,0,.02);
  position:sticky;
  top:0;
}

.cmp-table .cmp-cov{
  font-weight:700;
  color:#111;
  width:34%;
}

.cmp-cell .cmp-cell-main{
  font-weight:700;
}
.cmp-cell .cmp-cell-sub{
  font-size:11px;
  color:#555;
  margin-top:2px;
}

.cmp-foot{
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:11px;
  color:#666;
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:10px;
}

@media print{
  body.print-comparativo{
    background:#fff !important;
  }

  body.print-comparativo *{
    visibility:hidden !important;
  }

  body.print-comparativo #cotizComparativoPreview,
  body.print-comparativo #cotizComparativoPreview *{
    visibility:visible !important;
  }

  body.print-comparativo #cotizComparativoPreview{
    position:fixed !important;
    inset:0 !important;
    padding:0 !important;
    margin:0 !important;
    overflow:visible !important;
    background:#fff !important;
    border:none !important;
    border-radius:0 !important;
  }

  body.print-comparativo .cmp-sheet{
    box-shadow:none !important;
    border:none !important;
    border-radius:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:16px !important;
  }
}

/* modal genérico para sala del cliente */
#salaClienteModal .panel{
  width:min(1100px,96vw);
}

#salaClienteModal .sala-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,0.9fr);
  gap:10px;
}

@media (max-width:980px){
  #salaClienteModal .sala-layout{
    grid-template-columns:1fr;
  }
}

#salaClienteModal .sala-chat-box{
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,.04);
  background:rgba(10,12,20,.85);
  min-height:260px;
  display:flex;
  flex-direction:column;
}

#salaClienteModal .sala-chat-messages{
  flex:1;
  overflow:auto;
  padding:8px 10px;
  font-size:13px;
}

#salaClienteModal .sala-chat-input{
  border-top:1px solid rgba(255,255,255,.04);
  padding:8px;
  display:flex;
  gap:8px;
}

#salaClienteModal textarea{
  resize:vertical;
  min-height:60px;
}

/* ------------------ MODAL DIRECCIÓN “RELIQUIA” ------------------ */

#dirModal .panel{
  width:min(960px,96vw);
}

#dirModal h3{
  margin-top:0;
  margin-bottom:4px;
}

#dirModal small{
  font-size:11px;
}

#dirModal .dir-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr);
  gap:10px;
}

@media (max-width:880px){
  #dirModal .dir-grid{
    grid-template-columns:1fr;
  }
}

/* contenedor del mapa */
#map{
  width:100%;
  height:320px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.05);
}

/* lista de direcciones en ficha cliente */
#listaDirecciones{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:10px;
}

#listaDirecciones .card{
  border:1px solid rgba(255,255,255,.02);
  background:rgba(9,11,19,.4);
}

/* versión addr-item usada por el modal JS v2 */
.addr-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  padding:8px 10px;
  border-radius:var(--radius-lg);
  background:rgba(13,15,24,.8);
  border:1px solid rgba(255,255,255,.04);
}

.addr-item .muted.mono{
  font-size:11px;
}

/* ------------------ HIJOS / DEPENDIENTES ------------------ */

#listaHijos .card{
  border:1px solid rgba(255,255,255,.02);
  background:rgba(9,11,19,.4);
}

/* ------------------ COBERTURAS (PÓLIZA) ------------------ */

.coberturas-list,
#coberturasList{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* Soportar varios nombres por si cambiamos JS */
.cobertura-row,
.cov-row{
  display:grid;
  grid-template-columns:2.2fr repeat(4,minmax(0,1fr)) auto;
  gap:6px;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(10,12,20,.9);
  border:1px solid rgba(255,255,255,.04);
  align-items:flex-end;
}

@media (max-width:980px){
  .cobertura-row,
  .cov-row{
    grid-template-columns:1fr 1fr;
  }
}

.cobertura-row label,
.cov-row label{
  margin-bottom:2px;
}

.cobertura-row input,
.cobertura-row select,
.cov-row input,
.cov-row select{
  padding:6px 8px;
  font-size:12px;
}

.cobertura-row .btn,
.cov-row .btn{
  padding:4px 8px;
}

/* ------------------ CENTRO DIGITAL (ARCHIVOS PÓLIZA / CLIENTE) ------------------ */

.digital-center-list,
#digitalCenterList{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
}

.digital-file-pill{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 8px;
  border-radius:10px;
  background:rgba(15,17,30,.8);
  border:1px solid rgba(255,255,255,.05);
}

.digital-file-pill-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.digital-file-pill-main .muted{
  font-size:11px;
}

/* ------------------ TIMELINE / HISTORIAL ------------------ */

#timeline{
  list-style:none;
  padding-left:0;
  margin:0;
}

#timeline li{
  position:relative;
  padding-left:16px;
  margin-bottom:6px;
  font-size:13px;
}

#timeline li::before{
  content:"";
  position:absolute;
  left:4px;
  top:6px;
  width:6px;
  height:6px;
  border-radius:999px;
  background:var(--accent);
}

/* ------------------ ZONAS DE AUTOS / PERSONAS ASEGURABLES ------------------ */

.autos-list,
#autosClienteList{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:8px;
  font-size:12px;
}

.auto-item{
  border-radius:10px;
  border:1px solid rgba(255,255,255,.04);
  background:rgba(10,12,22,.85);
  padding:7px 9px;
  display:flex;
  justify-content:space-between;
  gap:8px;
}

.auto-item-main{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.auto-item-main .muted{
  font-size:11px;
}

.personas-asegurables-list,
#personasAsegurablesList{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:8px;
  font-size:12px;
}

.persona-item{
  border-radius:10px;
  border:1px solid rgba(255,255,255,.04);
  background:rgba(10,12,22,.85);
  padding:7px 9px;
  display:flex;
  justify-content:space-between;
  gap:8px;
}

/* ------------------ RESPONSIVE AJUSTES EXTRA ------------------ */

@media (max-width:640px){
  header.appbar .between{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .top-actions{
    width:100%;
    justify-content:space-between;
  }
  .quick-search-wrap{
    flex:1;
  }
}

#clienteQuickResults {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  background:#111;
  border-radius:8px;
  border:1px solid #333;
  z-index:5000;
  max-height:220px;
  overflow-y:auto;
  display:none;
}
#clienteQuickResults.on {
  display:block;
}
#clienteQuickResults .item {
  padding:8px 12px;
  border-bottom:1px solid #222;
  cursor:pointer;
}
#clienteQuickResults .item:hover {
  background:#222;
}
#clienteQuickResults .item.empty,
#clienteQuickResults .item.error {
  color:#999;
  text-align:center;
}
