/* Breiko Fleet · Tacógrafo (09/10/2026) — ver js/tacografo.js */
.tg { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tg > .btn { align-self: flex-start; }
.tg-tenue { color: var(--text-muted); }
.tg-mal { color: var(--accent-red); }
.tg-link { color: var(--accent-primary); font-size: var(--letra-sm); white-space: nowrap; }

/* Subida */
.tg-drop { display: flex; gap: 16px; align-items: center; padding: 22px 24px; border: 2px dashed var(--border-accent);
  border-radius: var(--radius-md); background: var(--accent-primary-dim); cursor: pointer; transition: var(--transicion-ui); color: var(--text-primary); }
.tg-drop:hover, .tg-drop.sobre { background: rgba(0, 159, 227, 0.25); border-color: var(--accent-primary); }
.tg-drop.compacta { padding: 12px 16px; font-size: var(--letra-sm); }
.tg-drop.compacta .tg-sub { display: none; }
.tg-drop-ico { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-primary); color: #fff; font-size: var(--letra-xl); font-weight: 700; }
.tg-drop.compacta .tg-drop-ico { width: 32px; height: 32px; flex-basis: 32px; font-size: var(--letra-lg); }
.tg-sub { color: var(--text-secondary); font-size: var(--letra-sm); margin-top: 4px; }

/* Pestañas y paneles */
.tg-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; }
.tg-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-secondary); padding: 10px 14px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tg-tab.on { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }
.tg-panel, .tg-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 16px; overflow-x: auto; min-width: 0; }
.tg-card h3 { margin: 0 0 12px; font-size: var(--letra-lg); }
.tg-vacio { text-align: center; padding: 36px 20px; color: var(--text-secondary); }
.tg-vacio h3 { color: var(--text-primary); margin: 8px 0; }
.tg-vacio p { max-width: 560px; margin: 0 auto; line-height: 1.5; }
.tg-aviso { background: var(--accent-orange-dim); border: 1px solid rgba(255, 152, 0, .35); color: var(--text-primary);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: var(--letra-sm); margin-bottom: 12px; }
.tg-sinf { margin-top: 12px; font-size: var(--letra-sm); color: var(--text-secondary); }
.tg-nota { font-size: var(--letra-sm); color: var(--text-secondary); line-height: 1.5; }

/* Tablas */
.tg-tabla { width: 100%; border-collapse: collapse; font-size: var(--letra-sm); }
.tg-tabla th { text-align: left; font-size: var(--letra-2xs); color: var(--text-muted);
  padding: 8px 10px; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.tg-tabla td { padding: 9px 10px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; color: var(--text-primary); }
.tg-tabla tr:last-child td { border-bottom: 0; }
.tg-fila { cursor: pointer; }
.tg-fila:hover td { background: var(--bg-card-hover); }

.tg-chip { display: inline-block; padding: 2px 9px; border-radius: var(--radius-full); font-size: var(--letra-xs); font-weight: 600; white-space: nowrap; }
.tg-chip.verde { background: var(--accent-green-dim); color: #6ee7a0; }
.tg-chip.naranja { background: var(--accent-orange-dim); color: #fdba74; }
.tg-chip.rojo { background: var(--accent-red-dim); color: #fca5a5; }
.tg-chip.gris { background: rgba(148, 163, 184, .15); color: var(--text-secondary); }

/* Cabecera y KPI */
.tg-cab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tg-cab h2 { margin: 0; font-size: var(--letra-xl); }
.tg-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tg-kpi { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); padding: 14px; min-width: 0; }
.tg-kpi .l { font-size: var(--letra-xs); color: var(--text-muted); }
.tg-kpi .n { font-size: var(--letra-xl); font-weight: 700; margin: 4px 0 6px; color: var(--text-primary); }
.tg-sem { height: 6px; border-radius: 3px; background: var(--bg-elevated); overflow: hidden; margin-bottom: 6px; }
.tg-sem > div { height: 100%; border-radius: 3px; }
.tg-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

/* Calendario */
.tg-cal-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tg-cal-cab h3 { margin: 0; }
.tg-cal-cab select { text-transform: capitalize; }
.tg-ley { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--letra-xs); color: var(--text-secondary); margin-bottom: 10px; }
.tg-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.tg-ley i.sin { border: 1px dashed var(--text-muted); }
.tg-ley i.vu { border: 1px dashed var(--accent-primary); }
.tg-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tg-dow { text-align: center; font-size: var(--letra-2xs); font-weight: 700; color: var(--text-muted); padding-bottom: 2px; }
.tg-c { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 6px 7px; min-height: 74px;
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; transition: var(--transicion-ui); min-width: 0; }
.tg-c:hover { border-color: var(--border-accent); }
.tg-c.vacio { background: transparent; cursor: default; opacity: .55; }
.tg-c.vu { border-style: dashed; border-color: var(--border-accent); }
.tg-c.alerta { border-color: rgba(239, 83, 80, .6); background: rgba(239, 83, 80, .07); }
.tg-c.sel { border-color: var(--accent-primary); box-shadow: 0 0 0 2px var(--accent-primary-glow); }
.tg-c-d { font-size: var(--letra-xs); font-weight: 700; color: var(--text-secondary); }
.tg-c-n { font-size: var(--letra-lg); font-weight: 700; color: var(--text-primary); }
.tg-c-sub { font-size: var(--letra-2xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-bang { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-red); color: #fff; font-size: var(--letra-2xs);
  align-items: center; justify-content: center; vertical-align: 1px; }
.tg-barra { display: block; width: 100%; height: 7px; margin-top: auto; border-radius: 2px; background: rgba(148, 163, 184, .12); }

/* Detalle del día */
.tg-tot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--letra-sm); color: var(--text-secondary); margin-bottom: 10px; }
.tg-tot b { color: var(--text-primary); }
.tg-horas { display: flex; justify-content: space-between; font-size: var(--letra-2xs); color: var(--text-muted); margin: 3px 0 10px; }
.tg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }

@media (max-width: 1100px) {
  .tg-dos { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .tg-drop { padding: 14px; gap: 12px; font-size: var(--letra-sm); }
  .tg-grid { gap: 3px; }
  .tg-c { min-height: 52px; padding: 4px; }
  .tg-c-sub { display: none; }
  .tg-c-n { font-size: var(--letra-xs); }
  .tg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-kpi .n { font-size: var(--letra-xl); }
}

/* Revisión e inspección (09/10/2026) */
.tg-cab .btn { white-space: nowrap; }
.tg-tab .tg-chip { margin-left: 4px; padding: 0 7px; font-size: var(--letra-2xs); }
.tg-diag { background: var(--bg-surface); border: 1px solid var(--border-card); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; font-size: var(--letra-sm); }
.tg-diag.ok { border-color: rgba(76, 175, 80, .4); background: var(--accent-green-dim); }
