:root {
  --navy: #0A2350;
  --navy-2: #1456C7;
  --amber: #1456C7; /* antes ámbar: la plataforma usa azul y blanco institucional */
  --amber-ink: #8a5300;
  --bg: #F4F7FC;
  --card: #ffffff;
  --ink: #16191f;
  --muted: #5d6573;
  --line: #dde1e7;
  --ok: #1f7a44;
  --ok-bg: #e5f4ea;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --warn-bg: #fff4dc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 4px 14px rgba(20, 33, 61, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
}
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.logo { width: 26px; height: 18px; border-radius: 3px; background:
  repeating-linear-gradient(90deg, var(--amber) 0 5px, #c47d00 5px 7px); }
.who { font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; opacity: .9; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 16px; padding-bottom: 80px; }
.narrow { max-width: 520px; margin: 0 auto; }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 140px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
label .req { color: var(--bad); margin-left: 2px; }
.field { margin-bottom: 14px; }
input, select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(34, 51, 92, .15); }
.invalid { border-color: var(--bad) !important; background: var(--bad-bg); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.hint.bad { color: var(--bad); font-weight: 600; }
.hint.ok { color: var(--ok); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .5px; }
input.mono { text-transform: uppercase; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { flex: 1; border: 0; background: transparent; padding: 11px 6px; font: inherit; font-weight: 600; color: var(--muted); min-height: 46px; cursor: pointer; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button.on { background: var(--navy); color: #fff; }
.seg.invalid { border-color: var(--bad); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 10px; padding: 12px 16px; min-height: 46px;
  font: inherit; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid rgba(255,255,255,.4); padding: 6px 10px; min-height: 34px; font-weight: 600; font-size: 13px; }
.btn.danger { background: #fff; color: var(--bad); border: 1.5px solid var(--bad); }
.btn.small { padding: 6px 10px; min-height: 34px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.big { min-height: 64px; font-size: 19px; border-radius: 14px; }
.btn.start { background: var(--ok); }
.btn.stop { background: var(--bad); }
.btn.amber { background: var(--amber); color: #1c1300; }
.stack > * + * { margin-top: 10px; }
.cont-box { border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fafbfc; }
.cont-box h4 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.timer { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; color: var(--navy); }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ok); font-size: 14px; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.kpi .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--muted); }
.kpi.hl { background: var(--navy); color: #fff; border-color: var(--navy); }
.kpi.hl .l { color: rgba(255,255,255,.75); }
.notice { background: var(--warn-bg); border: 1px solid #f3d38c; color: #5c3b00; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.error-box { background: var(--bad-bg); border: 1px solid #f2b8b5; color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.error-box ul { margin: 6px 0 0; padding-left: 18px; }
.list .item { border-top: 1px solid var(--line); padding: 10px 0; }
.list .item:first-child { border-top: 0; }
.item .t { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.chip { white-space: nowrap; display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--navy); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--amber-ink); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--amber); }
.tbl-wrap { overflow: auto; max-height: calc(100vh - 230px); min-height: 240px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #f0f2f5; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 800; background: #f7f8fa; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #f7f9fc; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar .field { margin: 0; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; max-width: 90vw; z-index: 50; }
#toast.show { opacity: 1; transform: translateX(-50%); }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(20, 33, 61, .45); }
dialog .dh { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
dialog .db { padding: 16px; max-height: 70vh; overflow: auto; }
dialog .df { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-eye:hover { background: #eef0f4; color: var(--navy); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; flex: 0 0 auto; }
@media (max-width: 520px) {
  .who .name { display: none; }
  .brand { font-size: 15px; }
  .grid2 { grid-template-columns: 1fr; }
  .wrap { padding: 12px; }
  .timer { font-size: 38px; }
}

/* ---- Llegadas al Patio ---- */
.logo.pin { width: 18px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--amber); box-shadow: inset 0 0 0 5px var(--amber), inset 0 0 0 9px var(--navy); }
.big-turno { font-size: 72px; line-height: 1; font-weight: 900; color: var(--navy); font-variant-numeric: tabular-nums; }
.state-ok { border-color: var(--ok); }
.btn.huge { min-height: 84px; font-size: 21px; border-radius: 16px; }
.geo-step { display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
td.turno { font-size: 20px; font-weight: 900; color: var(--navy); width: 56px; text-align: center; }
tr.first td { background: #fff8e6; }
.actions { display: flex; gap: 6px; }
.sub { font-size: 12.5px; color: var(--muted); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.chip.eng { background: #e3ecfb; color: #1d4ed8; }

/* Logo Trans Beris */
.brand-logo { height: 34px; width: auto; border-radius: 6px; background: #fff; padding: 2px 3px; display: block; }
.login-logo { display: block; width: 140px; height: auto; margin: 8px auto 6px; }

/* ---- Solicitudes, viajes y calendario ---- */
.chip.full { background: var(--navy); color: #fff; }
.chip.rc { background: #e0f2fe; color: #0369a1; }
.selbar { position: sticky; top: 64px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f3d38c; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.alertas { background: var(--bad-bg); border: 1px solid #f2b8b5; border-radius: 10px; padding: 8px 12px; margin: 8px 0 12px; }
.alerta { color: var(--bad); font-weight: 700; font-size: 14px; }
.alerta + .alerta { margin-top: 6px; }
.alerta .sub { font-weight: 500; }
.prop { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.prop.con-alerta { border-color: #f2b8b5; }
.prop .alertas { margin-bottom: 0; }
dialog.wide { width: min(760px, 96vw); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 14px; margin-bottom: 14px; background: #f7f8fa; border-radius: 10px; padding: 10px 12px; }
.info-grid span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; }
.info-grid .full { grid-column: 1 / -1; }
tr.late td { background: #fdf1f0; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 160px; }
.day.today { border: 2px solid var(--amber); }
.day .dh { font-weight: 800; text-transform: capitalize; font-size: 14px; display: flex; justify-content: space-between; }
.day .dh span { color: var(--muted); font-weight: 600; }
.day .dc { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.vcard { border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; padding: 6px 7px; margin-bottom: 6px; cursor: pointer; font-size: 13px; background: #fffdf7; }
.vcard:hover { box-shadow: var(--shadow); }
.vcard.asignado { border-left-color: var(--ok); background: #f6fbf8; }
.vcard.en_ruta { border-left-color: #1d4ed8; background: #f5f8ff; }
.vcard.entregado { border-left-color: #9aa3b2; background: #f7f8fa; opacity: .8; }
.vcard .t { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 3px; }
.vcard .c { font-weight: 700; }
.porarmar { font-size: 12.5px; font-weight: 700; color: var(--amber-ink); background: var(--warn-bg); border: 1px dashed #f3d38c; border-radius: 8px; padding: 6px; cursor: pointer; text-align: center; }
@media (max-width: 900px) {
  .cal { grid-template-columns: 1fr; }
  .day { min-height: 0; }
  .info-grid { grid-template-columns: 1fr; }
}

td .actions { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px; }
td .actions .btn.small { padding: 5px 8px; font-size: 12.5px; min-height: 30px; }
.sinfecha { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 8px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid3 { grid-template-columns: 1fr; } }

.viaje-op{text-align:left;border-left:5px solid var(--ok,#2e7d32)}
.viaje-op .live{display:inline-block}
.cont-op{padding:8px 0;border-top:1px solid var(--line,#e3e3e3)}
.dest-op{padding:10px 0;border-top:1px solid var(--line,#e3e3e3);display:grid;gap:4px}
.dest-op .btn{justify-self:start;margin-top:4px}
.state-ok-txt{color:var(--ok,#2e7d32);font-weight:700;margin:14px 0 0}

/* Tablas largas: encabezado y columna de acciones fijos; la barra horizontal queda a la vista */
th { z-index: 2; }
tr > td:last-child:has(> .actions), tr:first-child > th:last-child:empty { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 8px -8px rgba(15,23,42,.25); z-index: 1; }
tr:first-child > th:last-child:empty { background: #f0f2f5; z-index: 3; }
tr.late > td:last-child:has(> .actions) { background: #fdf1f0; }
tr.clk:hover > td:last-child:has(> .actions) { background: #f6f8fb; }
tr.clk { cursor: pointer; }
tr.clk:hover > td { background: #f6f8fb; }
td.cut { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
td.cut .sub { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .tbl-wrap { max-height: none; } }
.dest-box { border: 1px solid #e3e7ee; border-radius: 10px; padding: 10px 12px; margin-top: 6px; background: #fafbfd; }
.dest-box summary { cursor: pointer; }
.dest-box[open] summary { margin-bottom: 4px; }
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-bottom: 8px; }
.vcard.dia { margin: 0; padding: 9px 10px; font-size: 13.5px; }
.vcard.dia .c { font-size: 14.5px; margin: 2px 0; }
.vcard .vfoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }

/* ---- App en el celular (Android / iPhone) ---- */
@media (display-mode: standalone) { body { overscroll-behavior-y: contain; } }
.tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 700px) {
  body { font-size: 15px; }
  .top { padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); gap: 8px; }
  .brand span { font-size: 15px; }
  .brand-logo { height: 30px; }
  .who { gap: 6px; flex-wrap: nowrap; }
  .who .btn.ghost { padding: 5px 8px; font-size: 12px; min-height: 32px; }
  .wrap { padding: 10px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .tabs { position: sticky; top: calc(50px + env(safe-area-inset-top)); z-index: 8; background: var(--bg); margin: -10px -10px 12px; padding: 0 6px; }
  .tabs button { padding: 12px 12px; font-size: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .kpi { padding: 10px 12px; }
  .kpi .v { font-size: 20px; }
  .kpi .l { font-size: 12px; }
  .toolbar { gap: 8px; }
  .toolbar > .field { flex: 1 1 100%; }
  .toolbar > .btn { flex: 1 1 auto; }
  .toolbar > div[style*="flex:1"]:empty, .toolbar > div[style*="flex: 1"]:empty { display: none; }
  .toolbar > b { flex: 1 1 100%; }
  /* tablas como tarjetas */
  .tbl-wrap { border: 0; background: transparent; overflow: visible; max-height: none; min-height: 0; }
  .tbl-wrap table, .tbl-wrap tbody, .tbl-wrap tr, .tbl-wrap td { display: block; width: 100%; }
  .tbl-wrap tr:has(> th) { display: none; }
  .tbl-wrap tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; box-shadow: var(--shadow); position: relative; }
  .tbl-wrap tr.late { border-color: #f2b8b5; }
  .tbl-wrap tr.first { border-color: var(--amber); }
  .tbl-wrap tr.total { background: #f7f8fa; }
  .tbl-wrap td { border: 0; padding: 4px 12px; white-space: normal; text-align: left !important; max-width: none !important; }
  .tbl-wrap td[data-l]:not(:empty)::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
  .tbl-wrap td:empty { display: none; }
  .tbl-wrap td:has(> input[type=checkbox]:only-child) { position: absolute; top: 6px; right: 6px; width: auto; padding: 4px; }
  .tbl-wrap td:has(> input[type=checkbox]:only-child)::before { display: none; }
  .tbl-wrap td input[type=checkbox] { width: 24px; height: 24px; }
  .tbl-wrap td.turno { width: auto; text-align: left; font-size: 24px; }
  tr > td:last-child:has(> .actions) { position: static; box-shadow: none; background: transparent !important; }
  td .actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
  td .actions .btn.small, .actions .btn.small { min-height: 40px; padding: 8px 12px; font-size: 13.5px; flex: 1 1 auto; }
  /* barra de selección abajo, al alcance del pulgar */
  .selbar { position: fixed; top: auto; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 14px 14px 0 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(20,33,61,.18); }
  .selbar .btn { flex: 1 1 auto; min-height: 44px; }
  /* ventanas como hoja inferior */
  dialog, dialog.wide { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; }
  dialog .db { max-height: calc(92dvh - 130px); }
  dialog .df { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  dialog .df .btn { flex: 1 1 auto; }
  .mosaico { grid-template-columns: 1fr; }
  .cal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 6px; }
  .cal .day { flex: 0 0 82%; scroll-snap-align: start; }
  #toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 700px) {
  .who .btn.ghost { white-space: nowrap; }
  .toolbar:has(> [data-vista]) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
  .toolbar:has(> [data-vista]) > * { flex: 0 0 auto; }
}
@media (max-width: 520px) {
  .brand span { display: none; }
}
/* avance del viaje (operador) */
.pasos { display: flex; flex-direction: column; gap: 8px; }
.paso { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.paso b { flex: 1; }
.paso .hora { font-size: 13px; color: var(--muted); }
.paso.hecho { background: #eef8f1; border-color: #b9e0c6; }
.paso.hecho .hora { color: #1e7a3c; font-weight: 700; }
.paso.off { opacity: .5; }
.paso-btn { font-size: 18px; }

/* ---- Sistemas de Operación TCB: estilo azul y blanco (nov 2026) ---- */
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2, .brand span, .kpi .v, .big-turno { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }
h1, h2 { color: var(--navy); }
.btn { background: var(--navy-2); border-radius: 12px; }
.btn:hover { background: #0F47A8; }
.btn.secondary { color: var(--navy-2); border-color: #CBD6E8; }
.btn.secondary:hover { background: #EAF1FB; }
.btn.amber { background: var(--navy-2); color: #fff; }
.btn.ghost { color: inherit; }
.card { border-color: #DCE5F2; border-radius: 16px; box-shadow: 0 1px 2px rgba(10, 35, 80, .05), 0 6px 18px rgba(10, 35, 80, .06); }
.kpi.hl { background: var(--navy); }
.tabs button.on { color: var(--navy-2); border-bottom-color: var(--navy-2); }
.chip { background: #EAF1FB; color: #0F47A8; }
.chip.full { background: var(--navy); color: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px #DCE7FA; }
.vcard { background: #F8FAFE; }
.brand-logo { background: #fff; border-radius: 8px; padding: 2px; }

/* dentro de la plataforma: sin encabezado ni pestañas (se navega con el menú lateral) */
html.embed .top, html.embed .tabs { display: none !important; }
html.embed .wrap { padding-top: 20px; }

/* ---- Vista compacta (nov 2026): fichas y controles más chicos ---- */
.kpi { padding: 10px 12px; }
.kpi .v { font-size: 22px; }
.kpis { gap: 10px; }
@media (max-width: 700px) {
  body { font-size: 14px; line-height: 1.4; }
  h1 { font-size: 18px; margin-bottom: 10px; } h2 { font-size: 15.5px; } h3 { font-size: 13px; }
  .card { padding: 12px; margin-bottom: 12px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .kpi { padding: 7px 9px; border-radius: 10px; }
  .kpi .v { font-size: 17px; line-height: 1.2; }
  .kpi .l { font-size: 10.5px; line-height: 1.25; }
  .btn { min-height: 38px; padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
  .btn.small { min-height: 32px; padding: 5px 9px; font-size: 12.5px; }
  .btn.block { min-height: 40px; }
  input, select, textarea { min-height: 40px; padding: 7px 10px; border-radius: 9px; }
  label { font-size: 13px; }
  .field { margin-bottom: 10px; }
  .toolbar { gap: 6px; margin-bottom: 10px; }
  .vcard, .vcard.dia { padding: 7px 9px; font-size: 12.5px; border-radius: 9px; margin-bottom: 6px; }
  .vcard.dia .c { font-size: 13.5px; }
  .vcard .vfoot { margin-top: 4px; padding-top: 4px; }
  .mosaico { gap: 6px; }
  .chip { font-size: 11px; padding: 1px 7px; }
  .tbl-wrap tr { margin-bottom: 8px; padding: 4px 0; border-radius: 10px; }
  .tbl-wrap td { padding: 3px 10px; }
  .tbl-wrap td.turno { font-size: 18px; }
  td .actions .btn.small, .actions .btn.small { min-height: 34px; padding: 6px 10px; font-size: 12.5px; }
  .notice, .error-box { font-size: 13px; padding: 8px 10px; }
  .big-turno { font-size: 56px; }
}
@media (max-width: 700px) {
  .toolbar > .field { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .toolbar > .field label { font-size: 12px; margin-bottom: 2px; }
  input, select { min-height: 38px; padding: 6px 9px; }
}

/* selector de vista del calendario: en celular, tres botones cortos que caben sin desplazarse */
.vistabar .sh { display: none; }
@media (max-width: 700px) {
  .toolbar.vistabar { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow: visible !important; flex-wrap: wrap !important; }
  .vistabar .vlabel { display: none; }
  .vistabar .btn { width: 100%; padding: 6px 4px; justify-content: center; }
  .vistabar .lg { display: none; } .vistabar .sh { display: inline; }
}
.login-seg { margin-bottom: 14px; }
.pin-input { font-size: 24px; letter-spacing: .4em; text-align: center; }
.tipos-inc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipos-inc button { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; font: inherit; font-weight: 600; color: var(--navy); min-height: 48px; text-align: left; cursor: pointer; }
.tipos-inc button span { font-size: 20px; }
.tipos-inc button.on { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }
.fotos-inc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fotos-inc:empty { display: none; }
.fotos-inc div { position: relative; }
.fotos-inc img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: #eef0f4; cursor: pointer; }
.fotos-inc.ro img { width: 110px; height: 110px; }
.fotos-inc button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-weight: 700; cursor: pointer; }
.rep-op { border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; text-align: left; }
.rep-op .t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rep-tr { border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.rep-tr.ok { border-left-color: var(--ok); }
.per-g { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 2px; }
.per-g b { font-size: 13px; margin-bottom: 2px; }
/* Bitácora y corte semanal */
.tabs.bit-tabs { margin: 4px 0 12px; }
html.embed .tabs.bit-tabs { display: flex !important; }
.bitl { display: inline-block; min-width: 26px; padding: 2px 6px; border-radius: 6px; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
table.bit-grid td.c, table.bit-grid th.c { text-align: center; padding: 6px 4px; }
table.bit-grid th.c { font-size: 12px; text-transform: capitalize; }
table.bit-grid td.c[role="button"] { cursor: pointer; }
table.bit-grid td.c[role="button"]:hover { background: #eef3fc; }
td.bitc.rev { box-shadow: inset 0 0 0 2px #e0a200; border-radius: 6px; }
td.bitc.aj .bitl { outline: 2px dashed rgba(10,35,80,.45); outline-offset: 1px; }
table.bit-grid .sub, td .sub { font-size: 11px; color: var(--muted); }
b.lnk { cursor: pointer; text-decoration: underline dotted; }
table.bit-corte td.n, table.bit-corte th.n, table.bit-grid td.n, table.bit-grid th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.bit-corte tr.tot td { font-weight: 800; border-top: 2px solid var(--navy); background: #f4f7fc; }
.bit-print-head, .bit-firmas { display: none; }
@media print {
  @page { size: letter landscape; margin: 12mm; }
  body { background: #fff; }
  .top, .tabs, .bit-no-print, .toolbar, #toast { display: none !important; }
  .wrap { padding: 0 !important; max-width: none !important; }
  .tbl-wrap { overflow: visible !important; box-shadow: none !important; border: 0 !important; }
  table.bit-corte { font-size: 11.5px; width: 100%; }
  table.bit-corte th { background: #e9eef7 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bit-print-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; font-size: 12.5px; }
  .bit-print-head img { height: 46px; }
  .bit-firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; text-align: center; font-size: 12px; }
  .bit-firmas div { border-top: 1px solid #000; padding-top: 4px; }
}

/* ---- Lista de turnos · vista suave (nov 2026) ---- */
.cola-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cola-tit h2 { margin: 0 0 2px; font-size: 22px; letter-spacing: -.01em; }
.cola-sub { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cola-sub b { color: var(--navy); font-weight: 700; }
.cola-acc { display: flex; gap: 8px; }
.cola-acc .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 600; border-radius: 10px; box-shadow: none; }
.cola-acc .btn.secondary { border: 1px solid #D5DEEC; background: #fff; }
.cola-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #E6ECF5; border-radius: 16px; box-shadow: 0 1px 2px rgba(10,35,80,.04), 0 8px 24px rgba(10,35,80,.05); }
.op { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid #EEF2F8; }
.op:first-child { border-top: 0; }
.op.first { background: linear-gradient(90deg, #F2F7FF, #fff 70%); border-radius: 16px 16px 0 0; }
.op.vacio { color: var(--muted); justify-content: center; padding: 28px; }
.op-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #EEF3FB; color: var(--navy); font: 700 15px "Space Grotesk", Inter, sans-serif; }
.op.first .op-n { background: var(--navy-2); color: #fff; }
.op-b { flex: 1; min-width: 0; }
.op-name { font-weight: 600; font-size: 15.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-meta { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.op-meta .u { color: var(--navy); font-weight: 600; }
.op-meta .w-md { color: #9a6500; }
.op-meta .w-hi { color: #b4441b; font-weight: 600; }
.op-nota { margin-top: 4px; font-size: 12.5px; color: #8a6a1f; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #EEF3FB; color: #3a5a8f; white-space: nowrap; }
.tag.sig { background: #E3EDFD; color: var(--navy-2); }
.tag.am { background: #FFF4DC; color: #8a5a00; }
.tag.rj { background: #fdecec; color: #b42318; }
.tag.ok { background: #E6F5EC; color: #1f7a44; }
.tag.bad { background: #FDECEA; color: #a3281c; }
.op-acc { flex: none; display: flex; align-items: center; gap: 4px; }
.op-acc .btn.small { min-height: 36px; padding: 6px 14px; border-radius: 10px; font-weight: 600; font-size: 13px; background: #fff; color: var(--navy-2); border: 1px solid #CFDBEE; }
.op-acc .btn.small:hover { background: #F0F5FD; }
.op.first .op-acc .btn.small { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.mas { position: relative; }
.mas summary { list-style: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; user-select: none; }
.mas summary::-webkit-details-marker { display: none; }
.mas summary:hover, .mas[open] summary { background: #EEF3FB; color: var(--navy); }
.mas-m { position: absolute; right: 0; top: 40px; z-index: 20; min-width: 190px; background: #fff; border: 1px solid #E3E9F3; border-radius: 12px; box-shadow: 0 10px 30px rgba(10,35,80,.14); padding: 6px; display: flex; flex-direction: column; }
.mas-m button { text-align: left; border: 0; background: none; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.mas-m button:hover { background: #F2F6FC; }
.mas-m button.rojo { color: #b4441b; }
.cola-h3 { margin: 26px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.cola-rec { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #E6ECF5; border-radius: 14px; }
.cola-rec li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #EEF2F8; font-size: 14px; }
.cola-rec li:first-child { border-top: 0; }
.cola-rec li > div { flex: 1; min-width: 0; }
.cola-rec .op-meta { margin-top: 1px; font-size: 12.5px; }
.lnk-btn { border: 0; background: none; color: var(--navy-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 4px; white-space: nowrap; }
.lnk-btn:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .cola-head { align-items: stretch; margin-bottom: 10px; }
  .cola-tit h2 { font-size: 18px; }
  .cola-sub { font-size: 12.5px; }
  .cola-acc { width: 100%; }
  .cola-acc .btn { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 13.5px; }
  .cola-acc .btn.secondary { flex: 0 0 auto; }
  .cola-list { border-radius: 14px; }
  .op { gap: 10px; padding: 12px 6px 12px 12px; align-items: flex-start; }
  .op-n { width: 30px; height: 30px; font-size: 14px; margin-top: 1px; }
  .op-b { flex: 1 1 0; }
  .op-name { font-size: 15px; }
  .op-meta { font-size: 12.5px; gap: 0 10px; }
  .op-meta .m { display: none; }
  .op-acc { gap: 0; margin-top: -2px; }
  .op-acc .btn.small { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }
  .op-acc .lg, .tag.sig { display: none; }
  .mas summary { width: 30px; }
  .op.first { border-radius: 14px 14px 0 0; }
  .cola-rec li { flex-wrap: wrap; gap: 4px 10px; padding: 10px 12px; }
  .cola-rec li > div { flex-basis: 100%; }
}

/* ===== Estilo suave (nov 2026): toda la app de Control de Tráfico ===== */
:root { --line: #E3E9F2; --soft: #F5F8FD; --shadow: 0 1px 2px rgba(10,35,80,.04), 0 8px 24px rgba(10,35,80,.05); }
h1 { font-weight: 600; letter-spacing: -.01em; }
h2 { font-weight: 600; }
h3 { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; color: var(--muted); }
.card { border-color: var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.btn { font-weight: 600; border-radius: 10px; min-height: 42px; padding: 9px 16px; font-size: 14.5px; transition: background .15s, border-color .15s; }
.btn.secondary { border: 1px solid #D3DDEB; color: var(--navy-2); background: #fff; }
.btn.secondary:hover { background: var(--soft); border-color: #C3D2E8; }
.btn.danger { border: 1px solid #F0CFC6; color: #B4441B; background: #fff; }
.btn.danger:hover { background: #FDF3F0; }
.btn.small { min-height: 32px; padding: 5px 11px; font-size: 13px; border-radius: 9px; }
input, select, textarea { border: 1px solid #D3DDEB; border-radius: 10px; min-height: 42px; padding: 9px 12px; }
label { font-weight: 500; color: var(--muted); font-size: 13.5px; }
.seg { border: 0; background: #EDF1F7; border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border-radius: 9px; font-weight: 500; min-height: 40px; }
.seg button + button { border-left: 0; }
.seg button.on { background: #fff; color: var(--navy-2); font-weight: 600; box-shadow: 0 1px 3px rgba(10,35,80,.12); }
.kpi { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.kpi .v { font-weight: 600; color: var(--navy); }
.kpi .l { font-weight: 500; }
.kpi.hl { background: #fff; color: var(--ink); border-color: #C9DAF5; box-shadow: inset 3px 0 0 var(--navy-2), var(--shadow); }
.kpi.hl .v { color: var(--navy-2); }
.kpi.hl .l { color: var(--muted); }
.chip { font-weight: 600; padding: 2px 9px; }
.chip.full { background: #E3EDFD; color: var(--navy-2); }
.notice { background: #FFF8EA; border: 0; color: #6B4700; border-radius: 12px; }
.error-box { border: 0; border-radius: 12px; }
.tabs { border-bottom: 1px solid var(--line); gap: 2px; }
.tabs button { font-weight: 500; border-bottom-width: 2px; margin-bottom: -1px; }
.tabs button.on { font-weight: 600; }
.tbl-wrap { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
th { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; background: #F8FAFD; color: var(--muted); border-bottom: 1px solid #EEF2F8; }
td { border-bottom-color: #F0F3F8; }
tr.click:hover td { background: #F7FAFE; }
tr.first td { background: #F2F7FF; }
tr.total td { font-weight: 700; background: #F8FAFD; }
td.turno { font-weight: 700; }
.vcard { border-radius: 12px; }
dialog { border-radius: 18px; box-shadow: 0 24px 60px rgba(10,35,80,.2); }
dialog::backdrop { background: rgba(10, 35, 80, .32); backdrop-filter: blur(2px); }
dialog .dh { font-weight: 600; font-size: 16.5px; border-bottom-color: #EEF2F8; padding: 16px 18px; }
dialog .db { padding: 18px; }
dialog .df { border-top-color: #EEF2F8; padding: 12px 18px 16px; }
#toast { border-radius: 12px; font-weight: 500; background: var(--navy); box-shadow: 0 10px 30px rgba(10,35,80,.2); }
.top { box-shadow: 0 2px 10px rgba(10,35,80,.08); }
/* celular: las tablas se ven como fichas con la etiqueta a la izquierda (sin mayúsculas) */
@media (max-width: 700px) {
  .tbl-wrap { box-shadow: none; }
  .tbl-wrap tr { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 0; }
  .tbl-wrap tr.first { border-color: #C9DAF5; }
  .tbl-wrap td[data-l]:not(:empty) { position: relative; padding-left: calc(32% + 16px); min-height: 26px; }
  .tbl-wrap td[data-l]:not(:empty)::before { position: absolute; left: 12px; top: 5px; width: 32%; font: 500 12px/1.35 Inter, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); }
  .tbl-wrap td[data-l=""]::before { content: none; }
  .tbl-wrap td .actions { flex-wrap: wrap; }
}
.mas-m .rojo { color: #b4441b; }
td .op-acc { justify-content: flex-start; }
td .op-acc .btn.small { background: var(--navy-2); color: #fff; border: 0; }
td .op-acc .btn.small.secondary { background: #fff; color: var(--navy-2); border: 1px solid #CFDBEE; }
.btn.amber { background: #fff; color: var(--navy-2); border: 1px solid #D3DDEB; }
.btn.amber:hover { background: var(--soft); }

/* barra superior clara (vista del operador y app de movedores) */
.top { background: #fff; color: var(--navy); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(10,35,80,.05); }
.top .btn.ghost { color: var(--navy-2); border: 1px solid #D3DDEB; background: #fff; font-weight: 500; }
.top .btn.ghost:hover { background: var(--soft); }
.who .name { opacity: 1; color: var(--muted); }
.btn.start { background: #1F8A50; }
.btn.big { border-radius: 14px; font-weight: 600; }

/* Aviso del GPS y vista «Confirmar posición» */
.aviso-gps { display: block; margin-top: 5px; border: 0; background: #FFF4DC; color: #8a5a00; font: 600 12px Inter, system-ui, sans-serif; padding: 3px 8px; border-radius: 999px; cursor: pointer; text-align: left; }
.aviso-gps:hover { background: #FFE9B8; }
.pos-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.pos-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #EEF2F8; }
.pos-h img { width: 40px; height: 40px; }
.pos-h b { display: block; color: var(--navy); font-size: 16px; }
.pos-h span { color: var(--muted); font-size: 13px; }
.pos-mapa { height: 300px; background: #E8EDF4; }
.pos-pin { width: 22px; height: 22px; border-radius: 50%; background: #1456C7; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(20,86,199,.25), 0 2px 6px rgba(0,0,0,.3); }
.pos-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px 16px; }
.pos-datos div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pos-datos .full { grid-column: 1 / -1; }
.pos-datos span { font-size: 12px; color: var(--muted); }
.pos-datos b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pos-pie { font-size: 11.5px; color: var(--muted); padding: 0 16px 12px; }
@media (max-width: 700px) { .pos-mapa { height: 240px; } .pos-datos { grid-template-columns: 1fr; } }

.pos-datos small { font-size: 11px; color: var(--muted); }

.pos-mapa { position: relative; }
.pos-mini { position: absolute !important; right: 10px; bottom: 10px; width: 120px; height: 120px; border: 2px solid #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.3); z-index: 500; overflow: hidden; }
.pos-pin.chico { width: 12px; height: 12px; border-width: 2px; box-shadow: 0 0 0 4px rgba(20,86,199,.25); margin: 5px; }
@media (max-width: 700px) { .pos-mini { width: 96px; height: 96px; } }

/* ===== Tablas sin barra horizontal y fichas más ligeras (nov 2026) ===== */
/* El texto de las celdas se acomoda en varias líneas en lugar de empujar la tabla a la derecha. */
th, td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
td .mono, td.mono { white-space: nowrap; overflow-wrap: normal; }
td.num, th.num, td .chip, td .tag, td .btn, td .bitl { white-space: nowrap; overflow-wrap: normal; }
table.bit-grid th, table.bit-grid td { white-space: nowrap; overflow-wrap: normal; } /* la bitácora sí necesita su cuadrícula completa */
td { padding: 11px 10px; }
th { padding: 9px 10px; }
td .sub, td.sub { font-size: 12.5px; color: var(--muted); }
td b { font-weight: 600; }
/* chips: más chicos y suaves */
.chip { font-size: 11.5px; font-weight: 600; padding: 1px 8px; line-height: 1.6; letter-spacing: 0; }
.chip.ok { background: #E8F5EE; color: #1F7A44; }
.chip.bad { background: #FDEEEC; color: #A3281C; }
.chip.warn { background: #FFF5DE; color: #8A5A00; }
.chip.full { background: #E3EDFD; color: var(--navy-2); }
/* fichas de resumen (KPIs): más bajas */
.kpis { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.kpi { padding: 8px 12px; border-radius: 12px; box-shadow: none; }
.kpi .v { font-size: 19px; font-weight: 600; line-height: 1.25; }
.kpi .l { font-size: 12px; }
.kpi.hl { box-shadow: inset 3px 0 0 var(--navy-2); }
/* botones dentro de tablas: discretos */
td .btn.small, td .op-acc .btn.small { min-height: 30px; padding: 4px 12px; font-size: 12.5px; border-radius: 8px; font-weight: 600; }

/* Viajes: 6 columnas que caben en pantalla */
table.vtab { table-layout: fixed; width: 100%; }
table.vtab col.c-v { width: 13%; } table.vtab col.c-c { width: 22%; } table.vtab col.c-cli { width: 20%; }
table.vtab col.c-t { width: 11%; } table.vtab col.c-a { width: 21%; } table.vtab col.c-x { width: 13%; }
table.vtab .v-eco { font-size: 20px; font-weight: 800; letter-spacing: .01em; color: var(--ink, #16191f); line-height: 1.15; margin-bottom: 4px; }
table.vtab .v-eco.perm { font-size: 16px; } table.vtab .v-eco.none { font-size: 14px; font-weight: 600; color: var(--muted, #6b7280); }
table.vtab .v-id .mono { font-size: 12.5px; }
table.vtab td { font-size: 13.5px; }
.v-id { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.v-id .mono { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.v-fecha { margin-top: 4px; color: var(--ink-2, #334); font-size: 13px; }
.v-conts > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.v-conts .mono { font-size: 12.5px; }
.v-conts .chip { font-size: 10.5px; padding: 0 6px; }
.v-tar b { font-size: 14px; }
.v-tar .sub { font-size: 11.5px; }
/* iPad (30/11/2026): «Operador: $3,420» se encimaba con los contenedores; la tarifa puede bajar de renglón */
table.vtab td.v-tar, .v-tar .sub, .v-tar .chip { white-space: normal; overflow-wrap: normal; }
.v-tar .chip { font-size: 10.5px; margin-top: 2px; }
.v-est-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 4px; }
.v-est-h .sub { font-size: 11.5px; }
.v-est b { display: block; font-size: 13.5px; line-height: 1.3; }
.v-est .chip { margin: 3px 4px 0 0; }
table.vtab td .op-acc { flex-wrap: nowrap; justify-content: flex-end; gap: 2px; }
table.vtab .mas summary { width: 28px; }
/* Encabezado alineado con el contenido: la última columna (acciones) no es fija en esta tabla, así que su encabezado vacío
   tampoco (antes se veía como un bloque gris desplazado); Tarifa y Contenedores con aire entre ellas. */
table.vtab tr:first-child > th:last-child:empty { position: sticky; right: auto; box-shadow: none; background: #F8FAFD; }
table.vtab th, table.vtab td { padding-left: 12px; padding-right: 12px; }
table.vtab td.v-tar, table.vtab th.num { padding-right: 20px; }
@media (max-width: 1100px) { table.vtab col.c-v { width: 17%; } table.vtab col.c-x { width: 12%; } }
@media (max-width: 700px) { table.vtab { table-layout: auto; } table.vtab colgroup { display: none; } }
@media (max-width: 700px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
  .kpi { padding: 6px 8px; border-radius: 10px; }
  .kpi .v { font-size: 16px; }
  .kpi .l { font-size: 11px; line-height: 1.25; }
}
.rojo { color: #b4441b; }

/* Gastos del viaje (Liquidaciones) */
.gas-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 10px; }
.gas-res div { background: var(--bg, #f4f6fa); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.gas-res span { font-size: 12px; color: var(--muted, #667); } .gas-res b { font-size: 16px; } .gas-res b.warn { color: var(--amber-ink, #92400e); }
.tipos-inc.gas button.on { border-color: var(--navy); background: #e8eefb; color: var(--navy); }
.rep-op.gas-it { border-left-color: var(--line); } .rep-op.gas-it .chip { margin-right: 4px; }

/* Importación / exportación en la lista de viajes */
.chip.impo { background: #EEF2F7; color: #334E7A; }
.chip.expo { background: #E8F5EE; color: #1F7A44; }
.notice.bad { background: #fdecec; color: #8a1c13; }
/* Vacíos y demoras (27/11/2026) */
tr.fila-mal td { background: #FFF5F4; }
.kpi.bad .v { color: #B42318; }
