html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table{
 border-collapse:separate!important;border-spacing:0!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td{
 box-sizing:border-box!important;
}

html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th.train-header{
 vertical-align:middle!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th.train-header .train-alert-icon,
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th.train-header .reduced-seat-icon{
 filter:none!important;text-shadow:none!important;box-shadow:none!important;
}

/* Refined timetable header: fewer unnecessary pixels and flat, clean typography. */
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th{
 height:44px!important;min-height:44px!important;
 padding:4px 4px!important;
 background:linear-gradient(180deg,#092b3a 0%,#082431 100%)!important;
 box-shadow:none!important;
 border-bottom:1px solid rgba(70,203,223,.32)!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th:first-child{
 background:#082431!important;box-shadow:5px 0 9px rgba(0,0,0,.23)!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo thead .train-num{
 font-weight:650!important;line-height:1.1!important;
 text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo thead .train-state{
 margin-top:2px!important;opacity:.86!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo th.gare-head{
 white-space:nowrap!important;
}
/* Replace circular legend ⓘ with a compact, quiet rounded-square ? icon. Functional semantics remain. */
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo .table-legend-btn{
 position:relative!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 width:17px!important;min-width:17px!important;max-width:17px!important;
 height:17px!important;min-height:17px!important;max-height:17px!important;
 padding:0!important;margin:0 0 0 5px!important;
 border:1px solid rgba(93,192,208,.45)!important;
 border-radius:5px!important;
 background:rgba(31,82,98,.28)!important;
 color:transparent!important;font-size:0!important;text-shadow:none!important;
 box-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo .table-legend-btn::after{
 content:"?"!important;position:static!important;
 color:#8bd9e8!important;font:600 11px/1 system-ui,sans-serif!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo .table-legend-btn:is(:hover,:focus-visible){
 outline:2px solid rgba(89,218,239,.45)!important;outline-offset:2px!important;
 border-color:#58d5e8!important;
}
@media(max-width:768px){
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th{
  height:42px!important;min-height:42px!important;padding:3px 3px!important;
 }
}

/* Tous les badges de voie du tableau partagent le même rendu.
   Le contour pointillé, le cyan atténué et l’astérisque signalent une estimation. */
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:has(:is(.voie-badge,.lb-table-track-est)){
 text-align:center!important;
 vertical-align:middle!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .voie-info:has(> .voie-badge){
 display:inline-flex!important;
 flex-direction:column!important;
 align-items:center!important;
 gap:0!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .delay-voie:has(> .voie-badge){
 margin-top:0!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td :is(.voie-badge,.lb-table-track-est){
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 box-sizing:border-box!important;
 width:max-content!important;
 max-width:100%!important;
 min-height:19px!important;
 margin:3px auto 0!important;
 padding:0 5px!important;
 border:1px solid rgba(43,224,241,.48)!important;
 border-radius:999px!important;
 background:rgba(0,157,187,.12)!important;
 color:#52ebf4!important;
 font:600 11px/17px Rajdhani,system-ui,sans-serif!important;
 letter-spacing:0!important;
 text-transform:none!important;
 white-space:nowrap!important;
 text-shadow:none!important;
 box-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .lb-table-track-est{
 border-style:dashed!important;
 border-color:rgba(104,205,222,.5)!important;
 background:rgba(42,146,164,.09)!important;
 color:#acdfe8!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .lb-table-track-est:focus-visible{
 outline:2px solid #76dded!important;
 outline-offset:2px!important;
}
@media(max-width:768px){
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody tr,
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td{
  height:37px!important;
  min-height:37px!important;
 }
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td :is(.voie-badge,.lb-table-track-est){
  min-height:17px!important;
  padding:0 4px!important;
  font-size:10px!important;
  line-height:15px!important;
 }
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo.lb-pinch-enabled table tbody td :is(.voie-badge,.lb-table-track-est){
 font-size:calc(10px * var(--lb-pinch-zoom,1))!important;
 line-height:calc(15px * var(--lb-pinch-zoom,1))!important;
 padding:0 calc(4px * var(--lb-pinch-zoom,1))!important;
}


/* A single compact legend replaces per-cell info icons on touch screens. */
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo:has(.lb-table-track-est)::after{
 content:"* Voie estimée selon historiques, non confirmée";
 display:block;margin:7px 8px 4px;padding:0;
 color:#96bcc6;font:600 11px/1.2 Rajdhani,system-ui,sans-serif;
 letter-spacing:.01em;text-align:left;
}

/* La Betaillere — timetable visual system, 2026-11-12.
   Single scoped finish for mobile+desktop. Data, status priorities, cell geometry
   and confirmed/estimated platform semantics remain untouched. */
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo{
  --lb-table-soft-text:#dceaf0;
  --lb-table-soft-station:#85d5df;
  --lb-table-line:rgba(83,161,176,.085);
  --lb-table-line-strong:rgba(91,186,202,.21);
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo .table-scroll{
  border-color:var(--lb-table-line-strong)!important;
  box-shadow:0 5px 16px rgba(0,0,0,.12)!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:not(:first-child){
  color:var(--lb-table-soft-text)!important;
  font-weight:500!important;
  text-shadow:none!important;
  font-variant-numeric:tabular-nums!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:first-child :is(.gare-label,.gare-link){
  color:var(--lb-table-soft-station)!important;
  font-weight:600!important;
  text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th{
  border-bottom-color:rgba(87,177,192,.22)!important;
  background:#092633!important;
  box-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table thead th:first-child{
  background:#082431!important;
  box-shadow:4px 0 8px rgba(0,0,0,.13)!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo thead .train-num{
  font-weight:650!important;
  text-shadow:none!important;
  filter:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td :is(.voie-badge,.lb-table-track-est){
  font-weight:600!important;
  text-shadow:none!important;
  box-shadow:none!important;
  border-color:rgba(74,174,191,.42)!important;
  background:rgba(39,115,132,.08)!important;
  color:#b5dfe7!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .lb-table-track-est{
  border-style:dashed!important;
  border-color:rgba(97,166,180,.48)!important;
  background:rgba(40,120,136,.06)!important;
  color:#9fc6cf!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:not(:first-child) :is(.delay-strike,.delayed,.retard,.deleted,.new-start,.added-stop){
  font-weight:650!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:first-child .wx{
  opacity:.52!important;
  text-shadow:none!important;
}
/* The date control is shared on desktop and mobile; preserve sizing and actions. */
html[data-lb-v4-live="1"] body.lb-v3 .table-date-nav{
  border-color:rgba(91,186,202,.23)!important;
  box-shadow:0 4px 12px rgba(0,0,0,.12)!important;
}
html[data-lb-v4-live="1"] body.lb-v3 .table-date-nav__date{
  font-weight:650!important;
  text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 .table-date-nav__hint{
  font-weight:550!important;
}
html[data-lb-v4-live="1"] body.lb-v3 :is(.table-date-nav__step,.table-date-nav__today){
  font-weight:600!important;
  text-shadow:none!important;
}
/* Keep active state, alert colors, train composition colors and existing hover markers. */


/* Central timetable status palette, 2026-11-12 — presentation only.
   Status classification is upstream. Delays, cancellations, added stops and
   exceptional termini retain their original semantic classes/attributes. */
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo{
 --lb-time-normal:#dceaf0;
 --lb-time-delay:#ffb02e;
 --lb-time-cancel:#ff6675;
 --lb-time-add:#5dedb3;
 --lb-time-terminal:#70c4ff;
 --lb-time-old:#7e9198;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td :is(.delay-strike,.gtfs-retard-base){
 color:var(--lb-time-old)!important;
 text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td :is(.delayed,.gtfs-retard-new,.retard){
 color:var(--lb-time-delay)!important;
 font-weight:650!important;
 text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .deleted{
 color:var(--lb-time-cancel)!important;
 text-decoration-color:var(--lb-time-cancel)!important;
 text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td .added-stop{
 color:var(--lb-time-add)!important;
 text-shadow:none!important;
}
html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td :is(.new-start,.new-end){
 color:var(--lb-time-terminal)!important;
 text-shadow:none!important;
}
@media (max-width:768px){
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:not(:first-child) :is(.delay-stack,.gtfs-retard){
   column-gap:1px!important;
   max-width:100%!important;
 }
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:not(:first-child) :is(.delay-stack,.gtfs-retard)>:is(.delay-strike,.gtfs-retard-base){
   font-size:9px!important;
 }
 html[data-lb-v4-live="1"] body.lb-v3 #trainInfo table tbody td:not(:first-child) :is(.delay-stack,.gtfs-retard)>:is(.delayed,.gtfs-retard-new){
   font-size:11px!important;
 }
}
