/* Gestión (escritorio) */
.shell { display: flex; min-height: calc(100vh - 30px); }
#side { width: 236px; flex: none; background: var(--navy-3); color: #C9D5E0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: block; padding: 20px 18px 16px; color: #D6E0E8; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.brand .logo { width: 100%; height: auto; display: block; }
.brand small { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8197AB; }
#nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.navbtn { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: #C9D5E0; text-decoration: none; font-weight: 500; border: 0; background: none; cursor: pointer; width: 100%; text-align: left; font-size: 14px; }
.navg { margin: 14px 12px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7F93A8; }
.navbtn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.navbtn.on { background: rgba(167, 184, 198, .16); color: #fff; }
.navbtn .n { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.navbtn .n.b { background: #3B5C84; }
.side-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.who { padding: 10px 12px 4px; display: flex; flex-direction: column; font-size: 12px; } .who b { color: #fff; } .who span { color: #8197AB; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 16px 26px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: 21px; } .top .sub { color: var(--mut); font-size: 12.5px; margin-top: 1px; }
.menu { display: none; font-size: 20px; }
.bcv { font-size: 12px; color: var(--mut); background: var(--soft); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.bcv b { color: var(--ink); }
.bellw { position: relative; }
.bell { position: relative; padding: 8px; } .bell b { position: absolute; top: 2px; right: 2px; background: var(--red); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; }
.bellp { position: absolute; right: 0; top: 44px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, .15); max-height: 420px; overflow-y: auto; z-index: 40; }
.bellp .it { display: block; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 13px; }
.bellp .it.unread { background: #F3F7FD; } .bellp .it:hover { background: var(--soft); } .bellp .it small { display: block; color: var(--mut); margin-top: 2px; }
#view { padding: 22px 26px 60px; max-width: 1480px; width: 100%; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); text-decoration: none; color: inherit; display: block; }
a.kpi:hover { border-color: #c9d4de; }
.kpi .l { font-size: 11.5px; color: var(--mut); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi .v { font: 700 25px/1.15 var(--f-h); color: var(--navy-3); margin-top: 6px; }
.kpi .s { font-size: 12px; color: var(--mut); margin-top: 3px; }
.kpi.warn .v { color: var(--orange); } .kpi.good .v { color: var(--green); } .kpi.bad .v { color: var(--red); }

.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.cols.eq { grid-template-columns: 1fr 1fr; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.att { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); align-items: center; text-decoration: none; color: inherit; }
.att:hover { background: var(--soft); } .att:last-child { border-bottom: 0; }
.att .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.att .dot.red { background: var(--red); } .att .dot.amber { background: var(--amber); } .att .dot.blue { background: var(--blue); } .att .dot.orange { background: var(--orange); }
.att .t { flex: 1; min-width: 0; } .att .t b { display: block; font-size: 13.5px; } .att .t span { font-size: 12px; color: var(--mut); }

.fl { display: grid; grid-template-columns: 82px 1fr auto; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); align-items: center; text-decoration: none; color: inherit; }
.fl:hover { background: var(--soft); } .fl:last-child { border-bottom: 0; }
.fl .d { font: 600 12px var(--f-b); color: var(--mut); text-transform: capitalize; } .fl .d b { display: block; font: 700 16px var(--f-h); color: var(--navy-3); }
.fl .rt { font-weight: 700; font-family: var(--f-h); letter-spacing: .02em; } .fl .mt { font-size: 12px; color: var(--mut); }

.feed { max-height: 380px; overflow-y: auto; }
.feed .e { padding: 9px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; display: flex; gap: 10px; }
.feed .e .k { width: 6px; border-radius: 3px; flex: none; background: var(--steel); }
.feed .e .k.pre { background: var(--violet); } .feed .e .k.pay { background: var(--orange); } .feed .e .k.exp { background: var(--teal); } .feed .e .k.sys { background: var(--green); }
.feed .e small { color: var(--mut); display: block; }

/* filtros */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--mut); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip span { opacity: .7; margin-left: 4px; }
.search { max-width: 280px; }

.rt { font-family: var(--f-h); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.idc { font-weight: 700; color: var(--navy); white-space: nowrap; }
.av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #DCE5EE; color: var(--navy); font-size: 10.5px; font-weight: 700; margin-right: -6px; border: 2px solid #fff; }
.av.PIC { background: var(--navy); color: #fff; } .av.SIC { background: #4E6E93; color: #fff; } .av.TCP { background: #C8D4DE; }
.own { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: #E6EDF4; color: var(--navy); text-transform: uppercase; letter-spacing: .04em; }
.own.red { background: #F1ECFA; color: var(--violet); }
.pos { color: var(--green); font-weight: 600; } .neg { color: var(--red); font-weight: 600; }
.pend { display: inline-flex; gap: 4px; }

/* cotizador */
.qgrid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.legs { display: flex; flex-direction: column; gap: 8px; }
.legrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 138px 108px 50px 24px; gap: 6px; align-items: center; }
.legrow .apin { padding-left: 8px; padding-right: 6px; }
.legrow .n { font-weight: 700; color: var(--mut); text-align: center; }
.legrow .h { font-size: 12px; color: var(--mut); text-align: right; }
.legpax { display: grid; grid-template-columns: 22px 84px minmax(0, 1fr) minmax(0, 220px); gap: 6px; align-items: center; margin: -2px 0 4px; }
.legpax .lpn { display: flex; align-items: center; gap: 4px; color: var(--mut); } .legpax .lpn svg { width: 15px; height: 15px; flex: none; } .legpax .lpn .inp { padding: 5px 6px; }
.legpax .chips { align-items: center; } .legpax .chip { padding: 3px 4px 3px 10px; cursor: default; display: inline-flex; align-items: center; gap: 2px; }
.legpax .chip .x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 4px; opacity: .8; }
.legpax select.inp, .legpax input.sm { padding: 5px 8px; font-size: 12.5px; } .legpax select.inp { width: auto; max-width: 210px; }
.lpx .lpleg { padding: 10px 0; border-bottom: 1px solid var(--line-2); } .lpx .lpleg:first-child { padding-top: 0; } .lpx .lpleg .pi { padding: 8px 0; }
.rm { border: 0; background: none; color: var(--mut); font-size: 18px; cursor: pointer; border-radius: 6px; }
.rm:hover { background: #FBE6E4; color: var(--red); }
.sect { font: 700 12px var(--f-b); text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin: 18px 0 8px; }
.extrow { display: grid; grid-template-columns: 1fr 120px 28px; gap: 6px; margin-bottom: 6px; }
.sum { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; position: sticky; top: 10px; }
.sum .ln { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.sum .ln.t { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font: 700 20px var(--f-h); color: var(--navy-3); }
.sum .ln.m { font-size: 12.5px; color: var(--mut); }
.mbar { height: 6px; border-radius: 3px; background: #E3E9EE; overflow: hidden; margin: 6px 0 2px; } .mbar i { display: block; height: 100%; background: var(--green); }
.mbar.low i { background: var(--red); }
.cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
.cmp td { padding: 6px 6px; border-bottom: 1px solid var(--line-2); }
.cmp tr { cursor: pointer; } .cmp tr:hover td { background: #EEF3F8; } .cmp tr.on td { background: #E4ECF6; font-weight: 600; }
.cmp tr.dis { opacity: .4; cursor: not-allowed; }

/* documento de cotización */
.doc { font-size: 13px; color: #222; }
.doc .dh { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 16px; color: var(--slate); }
.doc .dh .logo { width: 260px; height: auto; }
.doc .dh .meta { text-align: right; font-size: 12px; color: #444; } .doc .dh .meta b { font: 700 18px var(--f-h); color: var(--navy-3); display: block; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; }
.doc th, .doc td { padding: 7px 8px; border-bottom: 1px solid #e3e3e3; text-align: left; } .doc th { background: #F2F5F8; font-size: 11.5px; text-transform: uppercase; }
.doc .tot { font: 700 22px var(--f-h); color: var(--navy-3); text-align: right; }
.doc .terms { font-size: 11px; color: #666; margin-top: 18px; line-height: 1.5; }

/* caso */
.chd { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.chd .rtbig { font: 800 26px var(--f-h); color: var(--navy-3); letter-spacing: .02em; }
.chd .facts { display: flex; gap: 18px; flex-wrap: wrap; color: var(--mut); font-size: 13px; margin-top: 4px; } .chd .facts b { color: var(--ink); }
.steps { display: flex; gap: 0; margin: 4px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.steps div { flex: 1; padding: 9px 10px; font-size: 12px; font-weight: 600; color: var(--mut); text-align: center; border-right: 1px solid var(--line-2); position: relative; }
.steps div:last-child { border-right: 0; }
.steps div.done { color: var(--green); background: #F2FAF6; } .steps div.cur { color: #fff; background: var(--navy); }
.legi { display: grid; grid-template-columns: 26px 1fr 1fr 1fr 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.legi:last-child { border-bottom: 0; } .legi .n { width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.legi.ok .n { background: var(--green); color: #fff; } .legi .tm { font-size: 12px; color: var(--mut); } .legi .tm b { color: var(--ink); font-weight: 600; }
.slot { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.slot:last-child { border-bottom: 0; } .slot .rl { font-size: 12px; font-weight: 700; color: var(--mut); }
.warns { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mini { display: grid; gap: 6px; }
.mini .r { display: grid; grid-template-columns: 1fr 70px 80px 90px 28px; gap: 6px; align-items: center; }
.mini .r.on { grid-template-columns: 90px 60px 1fr 100px 28px; }
.pl .ln { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line-2); }
.pl .ln.t { font: 700 18px var(--f-h); border-bottom: 0; border-top: 2px solid var(--line); margin-top: 4px; padding-top: 10px; }
.pl .ln .e { color: var(--mut); font-size: 12px; margin-right: 10px; }
.pi { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line-2); align-items: center; }
/* Nómina · empleados: tarjetas plegables */
.nelist { display: grid; gap: 8px; margin-top: 4px; }
.necard { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.necard:hover { border-color: var(--steel); }
.necard.open { border-color: var(--navy); box-shadow: 0 2px 10px rgba(20, 40, 70, .08); }
.neh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.neh.new { cursor: default; }
.neh .t { flex: 1; min-width: 0; display: block; } .neh .t b { font-size: 14px; } .neh .t > span:not(.badge) { display: block; font-size: 12.5px; color: var(--mut); margin-top: 2px; }
.neav { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 12px var(--f-h); flex: none; }
.neav svg { width: 16px; height: 16px; }
.nego { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--navy); flex: none; }
.nego svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.neh[aria-expanded="true"] .nego svg { transform: rotate(180deg); }
.neb { padding: 2px 14px 14px; border-top: 1px solid var(--line-2); }
.pi:last-child { border-bottom: 0; } .pi .t { flex: 1; min-width: 0; } .pi .t b { font-size: 13.5px; } .pi .t div { font-size: 12px; color: var(--mut); }
.pi .a { text-align: right; font-weight: 700; white-space: nowrap; } .pi .a small { display: block; font-weight: 500; color: var(--mut); font-size: 11.5px; }
.chat { max-height: 420px; overflow-y: auto; padding: 14px 16px; }
.chatin { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line-2); }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rc { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rc .rcpt { cursor: zoom-in; } .rc .t { flex: 1; min-width: 0; font-size: 12.5px; } .rc .t b { font-size: 14px; display: block; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--mut); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--navy); border-color: var(--navy); }
.tab span { font-size: 11px; background: var(--line); border-radius: 99px; padding: 1px 6px; margin-left: 4px; }
.bars { display: flex; flex-direction: column; gap: 6px; }
/* Cierre del mes: filas de grupo plegables */
.tbl tr.ghd td { background: var(--line-2); cursor: pointer; font-size: 13px; }
.tbl tr.ghd:hover td { background: #E4EAEF; }
.gchev { display: inline-block; width: 14px; margin-right: 6px; color: var(--mut); transition: transform .15s; } .gchev.on { transform: rotate(90deg); }
/* Rentabilidad: utilidad por vuelo (barras divergentes desde cero; rayado = proyectada) */
.pchart { display: grid; gap: 2px; padding-top: 8px; padding-bottom: 12px; }
.prow { display: grid; grid-template-columns: minmax(170px, 240px) 1fr 120px; gap: 16px; align-items: center; padding: 8px 6px; border-radius: 8px; }
.prow:hover { background: var(--line-2); }
.prow .pl b { font-size: 13px; } .prow small { display: block; color: var(--mut); font-size: 11.5px; margin-top: 2px; }
.prow .pt { position: relative; height: 14px; }
.prow .pt .z { position: absolute; top: -6px; bottom: -6px; width: 1px; background: var(--steel); }
.prow .pt i, .plg i { display: block; border-radius: 4px; }
.prow .pt i { position: absolute; top: 0; height: 100%; }
.pt i.pos, .plg i.pos { background: var(--green); } .pt i.neg, .plg i.neg { background: var(--red); }
.pt i.pos.proj, .plg i.pos.proj { background: repeating-linear-gradient(135deg, var(--green) 0 4px, #8CCBAE 4px 7px); }
.pt i.neg.proj { background: repeating-linear-gradient(135deg, var(--red) 0 4px, #E7A39D 4px 7px); }
.prow .pv { text-align: right; } .prow .pv b { font-size: 14px; } .prow .pv b.neg { color: var(--red); }
.plg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); } .plg i { width: 14px; height: 8px; display: inline-block; margin-left: 8px; }
@media (max-width: 720px) { .prow { grid-template-columns: 1fr auto; gap: 6px 12px; } .prow .pt { grid-column: 1 / -1; grid-row: 2; } }
.bar { display: grid; grid-template-columns: 90px 1fr 80px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar .tr { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; display: flex; }
.bar .tr i { display: block; height: 100%; } .bar .tr i.c { background: #C9D4DE; } .bar .tr i.p { background: var(--green); } .bar .tr i.l { background: var(--red); }
.acgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.ac { padding: 16px; }
.ac h4 { font-size: 17px; } .ac .reg { font-family: var(--f-h); font-weight: 700; color: var(--slate); letter-spacing: .06em; }
.ac dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 12.5px; } .ac dt { color: var(--mut); } .ac dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, 1fr); } .cols, .cols.eq { grid-template-columns: 1fr; } .qgrid { grid-template-columns: 1fr; } .sum { position: static; } }
@media (max-width: 860px) {
  #side { position: fixed; left: -260px; z-index: 50; transition: left .2s; } body.nav-open #side { left: 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); }
  .menu { display: inline-flex; } .top { padding: 12px 16px; } #view { padding: 16px; } .kpis { grid-template-columns: 1fr 1fr; } .bcv { display: none; }
  .legpax { grid-template-columns: 20px 76px 1fr; } .legpax input.sm { grid-column: 2 / 4; }
  .legrow { grid-template-columns: 20px 1fr 1fr 28px; } .legrow .dt { grid-column: 2 / 4; } .legrow .tmn { grid-column: 2; } .legrow .h { grid-column: 3; text-align: left; }
  .legi { grid-template-columns: 26px 1fr 1fr; } .legi > :nth-child(4) { grid-column: 2; } .legi > :nth-child(5) { grid-column: 3; } .top #newQuote { padding: 8px 10px; }
  .bellp { width: 300px; right: -60px; }
}
.feed .e .k.rmk { background: var(--red); }
.hobs { display: flex; gap: 10px; flex-wrap: wrap; }
.hob { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; width: 76px; text-align: center; cursor: default; }
.hob[data-hob] { cursor: zoom-in; } .hob b { font-family: var(--f-h); font-size: 13px; margin-top: 4px; } .hob small { color: var(--green); font-weight: 600; }
.hob.miss b { color: var(--red); }
/* mapa */
.mapgrid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
.mapcard { overflow: hidden; }
#amap { height: calc(100vh - 210px); min-height: 420px; background: #E8EDF1; }
.maplg { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; color: var(--mut); border-top: 1px solid var(--line-2); align-items: center; }
.maplg .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.dot.en_vuelo, .acdot.en_vuelo, .acm.en_vuelo span { background: var(--blue); } .dot.escala, .acdot.escala, .acm.escala span { background: var(--green); }
.dot.pernocta, .acdot.pernocta, .acm.pernocta span { background: var(--amber); } .dot.en_tierra, .acdot.en_tierra, .acm.en_tierra span { background: var(--orange); }
.dot.base, .acdot.base, .acm.base span { background: var(--grey); }
.aclist { max-height: calc(100vh - 160px); overflow-y: auto; }
.acpos { padding: 12px 14px; cursor: pointer; } .acpos .badge { white-space: normal; line-height: 1.35; display: inline-block; max-width: 100%; } /* avisos largos (No coincide…) no se salen de la tarjeta */ .acpos:hover { border-color: #c9d4de; }
.acdot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.acdot svg, .acm svg { width: 18px; height: 18px; }
.acm { position: relative; width: 34px; height: 34px; }
.acm span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.acm b { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); background: var(--navy-3); color: #fff; font: 700 10.5px var(--f-b); padding: 1px 6px; border-radius: 4px; white-space: nowrap; letter-spacing: .03em; }
.leaflet-container { font-family: var(--f-b); isolation: isolate; z-index: 0; } /* sus capas (z-index 400–1000) no pasan por encima de los modales */
@media (max-width: 1100px) { .mapgrid { grid-template-columns: 1fr; } #amap { height: 60vh; } .aclist { max-height: none; } }
.extrow { grid-template-columns: 1fr 58px 92px 1fr 84px 28px; align-items: center; }
.extrow.hd { font-size: 11px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.extrow .r { text-align: right; font-size: 12.5px; }
@media (max-width: 860px) { .extrow { grid-template-columns: 1fr 54px 80px 28px; } .extrow [data-k=un], .extrow .r, .extrow.hd span:nth-child(4), .extrow.hd span:nth-child(5) { display: none; } }

.acph { display: flex; gap: 10px; flex-wrap: wrap; }
.acph > div { position: relative; width: 150px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.acph img { width: 150px; height: 75px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.acph .rm { position: absolute; top: 2px; right: 2px; background: rgba(255,255,255,.9); }
.ac .acimg { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center; border-radius: 8px; margin-bottom: 10px; display: block; }
/* clientes */
.yr { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #b6c2cc; }
.yr.on { background: #E3F4EC; color: var(--green); }
.yrgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.yrgrid > div { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.yrtot { font: 700 26px var(--f-h); color: var(--navy-3); }
.docs { display: flex; gap: 12px; flex-wrap: wrap; }
.doc1 { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 10px; min-width: 240px; }
.doc1 img, .doc1 .pdfi { width: 70px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.doc1 .pdfi { display: grid; place-items: center; background: #FBE6E4; color: var(--red); font-weight: 800; font-size: 13px; }
@media (max-width: 860px) { .yrgrid { grid-template-columns: 1fr 1fr; } }

/* ---------- accesos ---------- */
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 4px 0 14px; }
.kv span { display: block; font-size: 12px; color: var(--mut); } .kv b { font-weight: 600; }
.credbig { font: 800 30px var(--f-h); letter-spacing: .14em; text-align: center; color: var(--navy-3); background: #F3F6F9; border: 1px dashed var(--line); border-radius: 12px; padding: 14px; margin: 6px 0 10px; user-select: all; }
.tbl tr.bad td { background: #FEF6F5; }
.side-foot .who .linkbtn { color: #C9D5E0; font-size: 12px; padding: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } }
.ac .certs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.tbl th.sort { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sort i { font-style: normal; font-size: 10px; margin-left: 4px; opacity: .35; }
.tbl th.sort.on, .tbl th.sort:hover { color: var(--navy); } .tbl th.sort.on i { opacity: 1; }
.colink { color: var(--navy); font-weight: 600; text-decoration: none; } .colink:hover { text-decoration: underline; }
.ratein { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); margin: 4px 0; } .ratein .inp { width: 100px; padding: 4px 8px; }
.tbl th.c, .tbl td.c { text-align: center; }
/* La flecha de orden no ocupa espacio: el año queda centrado sobre su columna */
.tbl th.sort.c { position: relative; } .tbl th.sort.c i { position: absolute; }
.aptres { margin-top: 8px; max-height: 300px; overflow-y: auto; }
.aptrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line-2); }
.f .hint { font-weight: 400; font-size: 11.5px; }
.ac .nopartner { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #FEF3F2; border: 1px solid #FECDCA; color: #B42318; font-size: 12.5px; }
.ac .nopartner .ic { flex: none; } .ac .nopartner span { flex: 1; } .ac .nopartner .btn { flex: none; }
/* ---------- encuestas ---------- */
.svst { color: #E3A008; letter-spacing: 1px; } .svst span { color: #D3DAE1; }
.aspbar { display: grid; grid-template-columns: 1fr 120px 32px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.aspbar i { display: block; height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; } .aspbar i b { display: block; height: 100%; background: #E3A008; }
.svrep h2 { margin: 0 0 4px; } .svrep h3 { margin-top: 18px; } .svrep p { font-size: 13px; }
@media print { .svrep { padding: 0 12px; } }

/* editor de cuentas (empresa y tripulante) */
.acctf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; align-items: center; }
.acctf [hidden] { display: none; }

/* expediente del trip */
.dossier .dsh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; } .dossier .dsh:first-child { margin-top: 0; }
.dossier .dsh.sub { margin: 6px 0 2px; font-weight: 600; } .dossier .dsh.sub2 { margin: 2px 0 6px 14px; }
.dossier .dsd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0 5px 10px; border-left: 2px solid var(--line); font-size: 13px; }
.dossier .dsp { margin-left: 14px; } .dossier .dsa { padding: 2px 0 4px; border-bottom: 1px dashed var(--line-2); } .dossier .dsm { color: var(--amber); margin: 2px 0; }
/* Fases del vuelo por tramo */
.phases .phl { padding: 10px 16px; border-top: 1px solid var(--line-2); }
.phases .phh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.phases .phr { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 4px 0; font-size: 13px; }
.phases .phr > span { color: var(--mut); font-weight: 600; font-size: 12px; }

/* RMK: resumen arriba, tabla a todo el ancho */
.rmksum { margin-bottom: 16px; } .rmksum .bd { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.rmkk { display: flex; flex-direction: column; gap: 2px; min-width: 90px; } .rmkk span, .rmktop > span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.rmkk b { font-size: 22px; } .rmkk small { color: var(--mut); font-size: 12px; }
.rmktop { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; } .rmktop > div { display: flex; flex-wrap: wrap; gap: 6px; } .rmktop .badge b { margin-left: 2px; }
.rmktbl .nw { white-space: nowrap; } .rmkits { display: flex; flex-wrap: wrap; gap: 4px; } .rmkits .badge { font-weight: 500; }
.mnttbl td:nth-child(4) { min-width: 240px; } .mnttbl td:nth-child(2), .mnttbl td:nth-child(3), .mnttbl td:nth-child(5), .mnttbl td:nth-child(6), .mnttbl td:nth-child(7) { white-space: nowrap; }
/* Expediente completo del vuelo (un solo documento para imprimir o guardar en PDF) */
.xpfile { background: #fff; padding: 18px 22px; border-radius: 10px; }
.xps + .xps { margin-top: 26px; border-top: 2px solid var(--line, #DDE3EA); padding-top: 18px; }
.xph { font: 800 20px/1.2 var(--f-h); margin: 0 0 10px; color: #1F3A5F; }
.xps h3 { font-size: 14px; margin: 14px 0 6px; }
.xpt { font-size: 12px; margin: 6px 0 10px; }
.xpf { margin: 10px 0; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.xpimg { max-width: 100%; max-height: 80vh; object-fit: contain; border: 1px solid var(--line, #DDE3EA); }
.xpf figcaption { font-size: 11px; color: #5E6B78; margin-top: 4px; }
.xpend { margin-top: 20px; }
@media print {
  .xpfile { padding: 0; }
  .xps { break-before: page; page-break-before: always; border-top: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
  .xps:first-child { break-before: auto; page-break-before: auto; }
  .xpimg { max-height: 9.2in; border: 0; }
  .xpfile .qdoc, .xpfile .fdoc, .xpfile .svrep { box-shadow: none; }
}
/* Prueba ADS-B (Flightradar24) bajo cada tramo del itinerario */
.legi .adsb { grid-column: 2 / -1; font-size: 12px; color: var(--ink); background: #F1F6FA; border-radius: 8px; padding: 6px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.legi .adsb.bad { background: #FDF3F2; }
.legi .adsb.mut { color: var(--mut); background: transparent; padding: 0; }
.bellp .pushrow { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F6F8FA; font-size: 12.5px; }
.bellp .pushrow:empty { display: none; }
.hob small.mna { color: var(--amber, #A15C07); }

/* teléfono: barra superior compacta, estados en dos filas, itinerario sin desbordar y listas como tarjetas */
@media (max-width: 1200px) { .cols, .cols.eq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .top { gap: 8px; } .top .ttl { flex: 1; min-width: 0; } .top .sp { display: none; }
  .top h1 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .top .sub { display: none; }
  .top #newQuote span { display: none; } .top #newQuote { padding: 8px 10px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); } .steps div { border-bottom: 1px solid var(--line-2); padding: 8px 4px; }
  .card > .hd { flex-wrap: wrap; row-gap: 6px; }
  .legi { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); } .legi .tm { min-width: 0; overflow-wrap: anywhere; }
  .dossier .dsd { flex-wrap: wrap; } .dossier .dsd > .row { flex-wrap: wrap; }
  .mini .r { grid-template-columns: minmax(0, 1fr) 54px 64px 70px 24px; gap: 4px; } .mini .r.on { grid-template-columns: 70px 44px minmax(0, 1fr) 70px 24px; gap: 4px; }
  .card .bd details .tbl, .card .bd > .tbl { display: block; overflow-x: auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .kpi { min-width: 0; }
  .tabs { overflow-x: auto; scrollbar-width: none; } .tabs .tab { flex: none; white-space: nowrap; }
  .fl { grid-template-columns: 46px minmax(0, 1fr) auto; } .fl .rt, .fl .mt { overflow-wrap: anywhere; }
  .tbl.stk td { flex-wrap: wrap; } .tbl.stk td::before { margin-right: auto; } .tbl.stk .badge { white-space: normal; }
  .tblw.stk { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .tbl.stk thead { display: none; }
  .tbl.stk, .tbl.stk tbody, .tbl.stk tr, .tbl.stk td { display: block; width: auto; }
  .tbl.stk tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 10px 14px; }
  .tbl.stk tr.click:hover td { background: transparent; }
  .tbl.stk td { border: 0; padding: 3px 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; text-align: right; }
  .tbl.stk td::before { content: attr(data-l); color: var(--mut); font-size: 12px; text-align: left; flex: none; }
  .tbl.stk td:first-child { font-weight: 700; font-size: 15px; justify-content: flex-start; padding-bottom: 6px; } .tbl.stk td:first-child::before { display: none; }
  .tbl.stk td.e, .tbl.stk td.empty::before { display: none; } .tbl.stk td.empty { justify-content: center; }
}

/* Encuestas: un renglón por grupo (color, nombre, rango de nota y %) y la barra de proporción */
.npsx { display: grid; gap: 3px; margin-top: 8px; }
.npsx > div { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.npsx i { width: 9px; height: 9px; border-radius: 50%; flex: none; } .npsx span { flex: 1; min-width: 0; } .npsx small { color: var(--mut); font-size: 11.5px; }
.npsx b { font: 700 16px var(--f-h); }
.npsx .pro i { background: var(--green); } .npsx .pas i { background: var(--amber); } .npsx .det i { background: var(--red); }
.npsx .pro b { color: var(--green); } .npsx .pas b { color: var(--amber); } .npsx .det b { color: var(--red); }
.npsbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line-2); margin-top: 8px; }
.npsbar i { display: block; height: 100%; } .npsbar .pro { background: var(--green); } .npsbar .pas { background: var(--amber); } .npsbar .det { background: var(--red); }

/* Suscripción Wilco: tarjeta con el logo, el total del mes y su composición */
.wsub { background: linear-gradient(135deg, #0F2238 0%, #16304D 100%); color: #fff; border-radius: 16px; padding: 22px 26px; margin-bottom: 16px; box-shadow: 0 6px 24px rgba(15, 34, 56, .18); }
.wsub-top { display: flex; align-items: center; gap: 12px; }
.wsub-logo { height: 38px; width: auto; display: block; }
.wsub-nav { display: flex; align-items: center; gap: 10px; } .wsub-nav b { min-width: 140px; text-align: center; text-transform: capitalize; font-size: 15px; }
.wsub-nav .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; } .wsub-nav .btn:disabled { opacity: .35; }
.wsub-mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 22px 0 16px; flex-wrap: wrap; }
.wsub-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8FD9D7; font-weight: 600; }
.wsub-v { font-size: 44px; font-weight: 700; line-height: 1.1; margin: 4px 0; }
.wsub-s { font-size: 13px; color: #B8C7D6; }
.wsub-iss { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 12.5px; color: #B8C7D6; max-width: 420px; } .wsub-iss b { color: #fff; font-weight: 500; }
.wsub-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.1); gap: 2px; } .wsub-bar i { display: block; height: 100%; }
.wsub-leg { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: 13px; color: #C9D6E1; } .wsub-leg span { display: inline-flex; align-items: center; gap: 7px; } .wsub-leg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } .wsub-leg b { color: #fff; }
@media (max-width: 640px) { .wsub { padding: 18px; } .wsub-v { font-size: 34px; } .wsub-top { flex-wrap: wrap; } .wsub-nav b { min-width: 0; } }
.wsubt .wsub-q { display: none; }
@media (max-width: 640px) { .wsubt th:nth-child(2), .wsubt th:nth-child(3), .wsubt td:nth-child(2), .wsubt td:nth-child(3) { display: none; } .wsubt .wsub-q { display: block; } }
