/* Cartes conducteur lues par le tachygraphe */
.trips-cards { padding: 0 14px 10px; flex-shrink: 0; }
.trips-cards-title { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.trips-cards-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.trips-card {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface2); font-size: 13px;
}
.trips-card svg, .seg-card svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink2); }
.trips-card-who { display: flex; align-items: baseline; gap: 4px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.trips-card-who strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.trips-card-who .mono { flex-shrink: 0; }
.trips-card.is-muted .trips-card-who { white-space: normal; }
.trips-card-meta { font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
.trips-card.is-alert {
  border-color: color-mix(in srgb, var(--status-alerte) 45%, var(--line-soft));
  background: color-mix(in srgb, var(--status-alerte) 8%, var(--surface));
}
.trips-card.is-alert, .trips-card.is-alert :is(svg, .trips-card-meta) { color: color-mix(in srgb, var(--status-alerte) 78%, var(--ink)); }
.trips-card.is-muted, .trips-cards-note { color: var(--ink3); }
.trips-cards-note { margin: 0; padding: 0 14px 10px; font-size: 12px; }
.seg-card {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 4px 6px;
  margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--ink); white-space: normal;
}
.seg-card > svg { grid-column: 1; }
.seg-card.is-muted { color: var(--ink3); }
.seg-card-text, .seg-card-alert { grid-column: 2; min-width: 0; }
.seg-card-when { white-space: nowrap; }
.seg-card-alert {
  justify-self: start; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700;
  color: color-mix(in srgb, var(--status-alerte) 78%, var(--ink));
  background: color-mix(in srgb, var(--status-alerte) 10%, transparent);
}

/* Nouvelle interface */
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-cards { padding: 12px 16px; border-bottom: 1px solid var(--sim-line); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-cards-title { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sim-muted); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-card { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--sim-pale); color: var(--sim-ink); font-size: 13px; }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-card svg { color: var(--sim-primary); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-card-meta { color: var(--sim-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-card.is-alert { background: var(--sim-alert-bg); color: var(--sim-alert-ink); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-card.is-alert :is(svg, .trips-card-meta) { color: var(--sim-alert-ink); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen :is(.trips-card.is-muted, .trips-cards-note) { color: var(--sim-muted); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-card.is-muted svg { color: var(--sim-muted); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .trips-cards-note { padding: 10px 16px; border-bottom: 1px solid var(--sim-line); font-size: 12px; font-weight: 700; }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .seg-card { margin-top: 3px; color: var(--sim-ink); font-size: 12.5px; font-weight: 650; }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .seg-card svg { color: var(--sim-primary); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .seg-card.is-muted { color: var(--sim-muted); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .seg-card.is-muted svg { color: var(--sim-muted); }
html:root[data-interface=nouvelle]:not(#sim) body .trips-screen .seg-card-alert { background: var(--sim-alert-bg); color: var(--sim-alert-ink); }
.trips-screen .seg-select > .seg-card { display: grid; }
