Files

459 lines
39 KiB
CSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* ===================== TTA – thèmes ===================== */
:root, :root[data-theme="dark"] {
--bg:#0b1220; --panel:#121a2b; --panel2:#18233a; --line:#25324c; --text:#eef3fb; --muted:#a3b3ca; --faint:#6f819c;
--red:#f25656; --yellow:#f2b72b; --green:#2ec37a; --blue:#5b95ff; --grey:#7d8aa0; --orange:#ff9f1a;
--accent:#F4B400; --accent-ink:#14305E; --brand-ink:#ffffff; --brand-sub:#F4B400; --shadow:0 10px 30px rgba(0,0,0,.4); --tint:16%;
--navy:#14305E; --sun:#F4B400; --brand-red:#D62828;
}
:root[data-theme="light"] {
--bg:#eef2f7; --panel:#ffffff; --panel2:#f5f8fc; --line:#d8e0eb; --text:#0f1b2d; --muted:#4f5f76; --faint:#7d8ba0;
--red:#d42c2c; --yellow:#b07a00; --green:#12864a; --blue:#1d5fd1; --grey:#66748a; --orange:#c96a00;
--accent:#14305E; --accent-ink:#ffffff; --brand-ink:#14305E; --brand-sub:#14305E; --shadow:0 10px 30px rgba(20,35,60,.14); --tint:12%;
}
@media (prefers-color-scheme: light) {
:root[data-theme="auto"] {
--bg:#eef2f7; --panel:#ffffff; --panel2:#f5f8fc; --line:#d8e0eb; --text:#0f1b2d; --muted:#4f5f76; --faint:#7d8ba0;
--red:#d42c2c; --yellow:#b07a00; --green:#12864a; --blue:#1d5fd1; --grey:#66748a; --orange:#c96a00;
--accent:#14305E; --accent-ink:#ffffff; --brand-ink:#14305E; --brand-sub:#14305E; --shadow:0 10px 30px rgba(20,35,60,.14); --tint:12%;
}
}
* { box-sizing:border-box; }
html, body { height:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.35 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; overflow:hidden; -webkit-font-smoothing:antialiased; }
button, input { font:inherit; color:inherit; }
.app { height:100vh; display:flex; flex-direction:column; gap:12px; padding:14px 20px 10px; max-width:1920px; margin:0 auto; position:relative; }
.num-font, .live-time, .n, .pill .v { font-variant-numeric:tabular-nums; }
/* ===================== En-tête ===================== */
.top { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; }
.brand { display:flex; align-items:center; gap:12px; }
.logo-tile { width:54px; height:54px; flex:none; background:#fff; border-radius:14px; display:grid; place-items:center; box-shadow:0 0 0 1px rgba(20,48,94,.18), 0 6px 16px rgba(0,0,0,.18); }
.logo-tile img { width:50px; height:50px; display:block; }
.logo-tile.big { width:76px; height:76px; border-radius:19px; margin:0 auto 12px; } .logo-tile.big img { width:70px; height:70px; }
.brand-name { font:900 30px/0.95 "Arial Black", "Segoe UI Black", "Segoe UI", sans-serif; letter-spacing:1px; color:var(--brand-ink); }
.brand-sub { color:var(--brand-sub); font-size:11.5px; font-weight:800; margin-top:4px; letter-spacing:1.3px; }
.live { min-width:340px; text-align:center; background:var(--panel); border:1px solid var(--line); border-radius:16px; padding:8px 24px 9px; --lc:var(--green); border-bottom:3px solid var(--lc); }
.live.stale { --lc:var(--yellow); } .live.dead { --lc:var(--red); }
.live-label { display:flex; justify-content:center; align-items:center; gap:8px; color:var(--muted); font-size:11.5px; text-transform:uppercase; letter-spacing:1.2px; font-weight:700; }
.live-time { font-size:32px; line-height:1.08; font-weight:800; letter-spacing:1px; color:var(--lc); }
.live-sub { color:var(--muted); font-size:13px; min-height:18px; display:flex; justify-content:center; gap:14px; }
.dot { width:9px; height:9px; border-radius:50%; background:var(--lc); animation:pulse 2s infinite; }
.live.stale .dot, .live.dead .dot { animation:none; }
@keyframes pulse { 0% { box-shadow:0 0 0 0 color-mix(in srgb, var(--lc) 60%, transparent); } 70%,100% { box-shadow:0 0 0 8px transparent; } }
.progress { height:3px; background:var(--line); border-radius:3px; margin-top:6px; overflow:hidden; }
.progress i { display:block; height:100%; width:0; background:var(--lc); transition:width 1s linear; }
.actions { display:flex; gap:8px; justify-self:end; align-items:center; }
.btn { background:var(--panel); border:1px solid var(--line); padding:9px 15px; border-radius:11px; cursor:pointer; transition:.15s; font-weight:600; }
.btn:hover { border-color:var(--muted); background:var(--panel2); }
.btn.icon { padding:9px 12px; font-size:16px; line-height:1; }
.btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:700; }
.btn.primary:hover { filter:brightness(1.08); }
.btn.off { opacity:.5; }
.btn.mini { padding:4px 11px; font-size:12.5px; border-radius:8px; }
.session { display:flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--line); border-radius:999px; padding:8px 14px; cursor:pointer; font-weight:600; font-size:13.5px; max-width:300px; --sc:var(--grey); }
.session span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.session.ok { --sc:var(--green); } .session.ko { --sc:var(--red); border-color:color-mix(in srgb, var(--red) 55%, var(--line)); background:color-mix(in srgb, var(--red) var(--tint), var(--panel)); }
.session:hover { border-color:var(--muted); }
.sdot { width:9px; height:9px; border-radius:50%; background:var(--sc); flex:none; }
/* ===================== Barre : liste + compteurs ===================== */
.bar { display:grid; grid-template-columns:minmax(320px,1fr) auto; gap:16px; align-items:stretch; }
.editor { display:flex; gap:8px; }
.editor input { flex:1; min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:0 16px; font-size:15px; }
.source { background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:11px; padding:0 12px; font:inherit; font-weight:700; max-width:240px; cursor:pointer; }
.source option { background:var(--panel); color:var(--text); }
.source.on { border-color:var(--accent); color:var(--accent); background:color-mix(in srgb, var(--accent) var(--tint), var(--panel)); }
.source:focus { outline:2px solid var(--accent); outline-offset:-1px; }
.editor input:focus { outline:2px solid var(--accent); outline-offset:-1px; }
.tiles { display:flex; gap:8px; }
.tile { background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:6px 14px; min-width:104px; display:flex; align-items:center; gap:10px; cursor:pointer; text-align:left; transition:.15s; position:relative; overflow:hidden; }
.tile::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--c); }
.tile b { font-size:24px; line-height:1; color:var(--c); font-variant-numeric:tabular-nums; }
.tile span { color:var(--muted); font-size:12.5px; line-height:1.15; font-weight:600; }
.tile:hover { border-color:var(--c); }
.tile.active { background:color-mix(in srgb, var(--c) var(--tint), var(--panel)); border-color:var(--c); }
.tile.zero { opacity:.45; }
.red { --c:var(--red); } .yellow { --c:var(--yellow); } .green { --c:var(--green); } .blue { --c:var(--blue); } .grey { --c:var(--grey); }
.hiddenbar { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13.5px; padding:0 4px; }
.hiddenbar[hidden] { display:none; }
.hiddenbar button { background:none; border:0; color:var(--blue); font-weight:700; cursor:pointer; padding:0; }
.muted { color:var(--muted); font-size:13.5px; }
.ruset { display:flex; flex-wrap:wrap; align-items:center; gap:6px; padding:4px 0; }
.rus { flex:1; min-width:220px; background:var(--panel2); border:1px solid var(--line); border-radius:7px; padding:4px 8px; font:12.5px ui-monospace, Consolas, monospace; }
#banner { display:flex; flex-direction:column; gap:8px; } #banner:empty { display:none; }
.banner { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 16px; border-radius:12px; font-weight:600;
background:color-mix(in srgb, var(--red) var(--tint), var(--panel)); border:1px solid color-mix(in srgb, var(--red) 50%, var(--line)); }
.banner.info { background:color-mix(in srgb, var(--blue) var(--tint), var(--panel)); border-color:color-mix(in srgb, var(--blue) 50%, var(--line)); }
.filterbar { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; }
/* ===================== Tableau ===================== */
.board { flex:1; min-height:0; display:flex; flex-direction:column; gap:7px;
--cols:6px 150px 122px 140px minmax(180px,1.15fr) minmax(200px,1.25fr) minmax(170px,1.1fr) 112px 132px 34px; }
.cols { display:grid; grid-template-columns:var(--cols); gap:16px; align-items:center; }
.cols.head { color:var(--faint); font-size:11.5px; text-transform:uppercase; letter-spacing:1px; font-weight:700; padding-right:12px; }
.rows { flex:1; min-height:0; display:flex; flex-direction:column; gap:7px; overflow:auto; padding-right:2px; }
.row { flex:1 1 0; min-height:62px; max-height:96px; display:grid; grid-template-columns:var(--cols); gap:16px; align-items:center;
background:var(--panel); border:1px solid var(--line); border-radius:14px; padding-right:12px; overflow:hidden; transition:border-color .15s, background .15s; }
.row:hover { border-color:color-mix(in srgb, var(--c) 55%, var(--line)); }
.row .bar-c { align-self:stretch; background:var(--c); }
.row.red { background:linear-gradient(90deg, color-mix(in srgb, var(--red) var(--tint), transparent), transparent 45%), var(--panel); }
.cell { min-width:0; }
.cell .m { font-size:16px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cell .s { color:var(--muted); font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.cell .s b { color:var(--text); font-weight:650; }
.n { font-size:21px; font-weight:800; letter-spacing:.4px; }
.cell .t { color:var(--faint); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.6px; }
/* Pastille de statut (colonne de gauche) */
.pill { overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:1px; padding:6px 12px; border-radius:11px; min-height:48px;
background:color-mix(in srgb, var(--c) var(--tint), transparent); border:1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.pill .v { font-size:24px; font-weight:800; color:var(--c); line-height:1.05; white-space:nowrap; }
.pill .v small { font-size:13px; font-weight:700; margin-left:2px; }
.pill .v.word { font-size:17px; }
.pill .l { font-size:12px; font-weight:700; color:var(--c); opacity:.9; white-space:nowrap; text-transform:uppercase; letter-spacing:.4px; }
.trend { font-weight:800; font-size:13px; margin-left:8px; vertical-align:3px; letter-spacing:0; } .trend.up { color:var(--red); } .trend.down { color:var(--green); }
.warn { color:var(--red) !important; font-weight:700; } .mid { color:var(--yellow) !important; font-weight:700; } .okc { color:var(--green) !important; font-weight:700; }
.soft { color:var(--blue) !important; font-weight:600; }
.tag-int { display:inline-block; background:var(--red); color:#fff; font-size:11px; font-weight:800; border-radius:5px; padding:1px 6px; margin-left:6px; letter-spacing:.5px; vertical-align:1px; }
/* Pastille du dernier pointage : bleu / jaune / rouge (clignote) */
.ping-dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:7px; vertical-align:0; cursor:help; }
.ping-dot.ping-blue { background:var(--blue); } .ping-dot.ping-yellow { background:var(--yellow); }
.ping-dot.ping-red { background:var(--red); animation:blink 1.2s ease-in-out infinite; }
.ping-txt.ping-blue { color:var(--blue) !important; } .ping-txt.ping-yellow { color:var(--yellow) !important; font-weight:700; } .ping-txt.ping-red { color:var(--red) !important; font-weight:800; }
@keyframes blink { 50% { opacity:.3; } }
.del { border:0; background:transparent; color:var(--faint); width:30px; height:30px; border-radius:9px; cursor:pointer; font-size:15px; }
.del:hover { color:#fff; background:var(--red); }
/* Cartes d'accueil (connexion, liste vide) */
.empty { margin:auto; text-align:center; max-width:520px; background:var(--panel); border:1px solid var(--line); border-radius:18px; padding:28px 32px; box-shadow:var(--shadow); }
.empty h2 { margin:0 0 6px; font-size:21px; } .empty p { margin:0 0 16px; color:var(--muted); line-height:1.5; }
/* ===================== Pied ===================== */
.foot { display:flex; justify-content:space-between; align-items:center; gap:16px; color:var(--faint); font-size:12.5px; }
.ticker { background:transparent; border:0; display:flex; align-items:center; gap:10px; cursor:pointer; min-width:0; text-align:left; padding:3px 0; }
.ticker .tag { background:var(--panel); border:1px solid var(--line); border-radius:6px; padding:1px 8px; font-size:11px; text-transform:uppercase; letter-spacing:.7px; font-weight:700; color:var(--muted); flex:none; }
.ticker #ticker { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); font-weight:600; }
.legal { white-space:nowrap; }
/* ===================== Fenêtres flottantes ===================== */
.pop { position:absolute; z-index:20; background:var(--panel); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:16px 18px; }
.pop[hidden] { display:none; }
.pop h3 { margin:0 0 6px; font-size:16px; }
.pop h4 { margin:16px 0 6px; font-size:11.5px; text-transform:uppercase; letter-spacing:1px; color:var(--faint); }
#alertsPop { left:20px; bottom:42px; width:min(600px,calc(100vw - 40px)); max-height:55vh; overflow:auto; }
#log div { padding:7px 0; border-bottom:1px dashed var(--line); font-size:14px; }
#log time { color:var(--muted); margin-right:8px; font-variant-numeric:tabular-nums; }
.settings { top:76px; right:20px; width:min(460px,calc(100vw - 40px)); max-height:calc(100vh - 96px); overflow:auto; }
.row-set { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:4px 0; }
.sw { display:flex; align-items:center; gap:10px; padding:5px 0; cursor:pointer; flex:1; font-size:14px; }
.sw input[type=checkbox] { width:17px; height:17px; accent-color:var(--accent); flex:none; }
.ev { display:flex; align-items:center; gap:6px; }
.test { background:var(--panel2); border:1px solid var(--line); border-radius:8px; width:30px; height:28px; cursor:pointer; font-size:11px; }
.test:hover { border-color:var(--accent); }
.num { width:54px; background:var(--panel2); border:1px solid var(--line); border-radius:7px; padding:2px 6px; text-align:center; }
.thr { display:flex; gap:16px; flex-wrap:wrap; font-size:14px; padding:3px 0; } .thr label { display:flex; align-items:center; gap:6px; }
.thr.indent { margin-left:27px; }
.sq { display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:2px; }
.sq.y { background:var(--yellow); } .sq.r { background:var(--red); } .sq.b { background:var(--blue); }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.seg button { border:0; background:var(--panel2); padding:5px 12px; cursor:pointer; font-size:13px; font-weight:600; }
.seg button + button { border-left:1px solid var(--line); }
.seg button.on { background:var(--accent); color:var(--accent-ink); }
/* ===================== Debug ===================== */
.debug { position:fixed; z-index:15; left:0; right:0; bottom:0; height:var(--dbg-h); background:var(--panel); border-top:1px solid var(--line); box-shadow:var(--shadow);
display:grid; grid-template-columns:minmax(300px,440px) 1fr; grid-template-rows:auto minmax(0,1fr); gap:8px 12px; padding:10px 20px 12px; --dbg-h:min(38vh,340px); }
.debug[hidden] { display:none; }
.debug-head { grid-column:1 / -1; display:flex; align-items:center; gap:8px; } .debug-head .sp { flex:1; }
.sw.small { font-size:12.5px; flex:none; padding:0; gap:6px; color:var(--muted); }
.kvs { display:grid; grid-template-columns:auto 1fr; gap:3px 12px; font-size:12.5px; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:8px 10px; overflow:auto; align-content:start; }
.kvs span { color:var(--muted); } .kvs b { font-weight:600; word-break:break-word; font-variant-numeric:tabular-nums; } .kvs .bad { color:var(--red); }
.debug-log { min-height:0; overflow:auto; font:12px/1.45 ui-monospace, Consolas, monospace; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:6px 8px; }
.debug-log div { padding:1px 0; white-space:pre-wrap; word-break:break-word; }
.debug-log .t { color:var(--muted); margin-right:6px; }
.debug-log .warn { color:var(--yellow); } .debug-log .error { color:var(--red); font-weight:600; }
.debug-log .d { color:var(--muted); }
body.debug-on .app { padding-bottom:calc(min(38vh,340px) + 10px); }
/* ===================== Écrans plus petits ===================== */
@media (max-width:1380px) {
.board { --cols:6px 128px 100px 132px minmax(130px,1.1fr) minmax(150px,1.2fr) minmax(130px,1fr) 92px 112px 28px; }
.cols, .row { gap:12px; }
.tile span { display:none; } .tile { min-width:62px; }
.cell .m { font-size:15px; } .pill .v { font-size:21px; }
}
@media (max-width:1050px) {
body { overflow:auto; } .app { height:auto; min-height:100vh; }
.top { grid-template-columns:1fr; gap:10px; } .live { justify-self:stretch; } .actions { justify-self:start; flex-wrap:wrap; }
.bar { grid-template-columns:1fr; } .tiles { flex-wrap:wrap; }
.cols.head { display:none; } .rows { overflow:visible; }
.row { flex:none; max-height:none; grid-template-columns:6px 120px 1fr 30px; grid-template-areas:"b s n x" "b c c x" "b r r x" "b p p x" "b q q x"; row-gap:4px; padding:10px 8px 10px 0; }
.row > .bar-c { grid-area:b; } .row > .c-stat { grid-area:s; } .row > .c-num { grid-area:n; } .row > .del { grid-area:x; }
.row > .c-route { grid-area:r; } .row > .c-compo { grid-area:c; } .row > .c-pos { grid-area:p; } .row > .c-next { grid-area:q; }
.row > .c-dep, .row > .c-arr { display:none; }
.debug { grid-template-columns:1fr; grid-template-rows:auto auto minmax(0,1fr); --dbg-h:50vh; } body.debug-on .app { padding-bottom:calc(50vh + 10px); }
}
/* ===================== Écrans peu hauts (portables 768–900 px) : mode compact automatique ===================== */
@media (max-height:900px) and (min-width:1051px) {
.app { gap:8px; padding-top:10px; }
.logo-tile:not(.big) { width:44px; height:44px; border-radius:12px; } .logo-tile:not(.big) img { width:40px; height:40px; } .brand-name { font-size:25px; }
.live { padding:5px 20px 6px; } .live-time { font-size:25px; } .live-sub { font-size:12px; }
.board, .rows { gap:5px; }
.row { min-height:46px; border-radius:11px; }
.pill { min-height:38px; padding:3px 10px; } .pill .v { font-size:19px; } .pill .v.word { font-size:15px; } .pill .l { font-size:10.5px; }
.n { font-size:18px; } .cell .m { font-size:14.5px; } .cell .s { font-size:12.5px; margin-top:0; }
.tile { padding:4px 12px; } .tile b { font-size:20px; }
.editor input { font-size:14px; }
}
/* ===================== v1.5 : lignes cliquables, croix en 2 clics ===================== */
.row { position:relative; cursor:pointer; }
.row.sel { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; }
.tis { color:inherit; text-decoration:none; cursor:pointer; border-bottom:2px dotted color-mix(in srgb, var(--text) 35%, transparent); }
.tis:hover { color:var(--accent); border-bottom-color:var(--accent); }
.note-ic { font-size:14px; margin-left:6px; cursor:help; vertical-align:2px; }
.del.confirm { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:auto; height:34px; padding:0 14px; z-index:3;
background:var(--red); color:#fff; font-weight:800; font-size:13px; border-radius:10px; box-shadow:0 4px 14px rgba(0,0,0,.35); animation:pop .15s ease-out; }
@keyframes pop { from { transform:translateY(-50%) scale(.85); } to { transform:translateY(-50%) scale(1); } }
.c-num .t { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.btn.danger { background:var(--red); border-color:var(--red); color:#fff; }
.small { font-size:12px; }
.chip { display:inline-flex; align-items:center; gap:4px; background:var(--panel2); border:1px solid var(--line); border-radius:999px; padding:1px 9px; font-size:12px; font-weight:700; color:var(--text); text-transform:none; letter-spacing:0; }
.chip.soft { color:var(--muted); font-weight:600; }
/* ===================== Fiche du train (volet droit) ===================== */
.panel { position:fixed; z-index:22; top:0; right:0; bottom:0; width:min(460px,100vw); background:var(--panel); border-left:1px solid var(--line);
box-shadow:var(--shadow); padding:16px 18px 20px; overflow:auto; animation:slide .18s ease-out; }
.panel[hidden] { display:none; }
@keyframes slide { from { transform:translateX(30px); opacity:.4; } to { transform:none; opacity:1; } }
.p-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:10px; }
.p-num { font:900 24px/1.1 "Arial Black", "Segoe UI Black", sans-serif; letter-spacing:.5px; }
.p-status { display:flex; gap:14px; align-items:center; background:var(--panel2); border:1px solid var(--line); border-left:5px solid var(--c); border-radius:12px; padding:10px 12px; }
.p-status .pill { min-width:120px; }
.p-route { display:flex; flex-direction:column; min-width:0; } .p-route b { font-size:16px; } .p-route span { color:var(--muted); }
.p-reason { background:color-mix(in srgb, var(--blue) var(--tint), var(--panel)); border:1px solid color-mix(in srgb, var(--blue) 45%, var(--line)); border-radius:10px; padding:8px 12px; margin:10px 0 0; font-size:13.5px; }
.p-actions { display:flex; gap:8px; margin:12px 0 4px; flex-wrap:wrap; }
.panel h4 { margin:16px 0 6px; font-size:11.5px; text-transform:uppercase; letter-spacing:1px; color:var(--faint); display:flex; align-items:center; gap:8px; }
.p-kv { font-size:13.5px; }
.alts { display:flex; flex-wrap:wrap; gap:6px; }
.alt { background:var(--panel2); border:1px solid var(--line); border-radius:9px; padding:5px 10px; cursor:pointer; text-align:left; font-weight:700; font-size:13px; }
.alt small { display:block; font-weight:500; color:var(--muted); font-size:11px; }
.alt:hover { border-color:var(--accent); } .alt.on { border-color:var(--accent); background:color-mix(in srgb, var(--accent) var(--tint), var(--panel)); }
.p-day { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; }
.num.wide { width:auto; }
.causes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.causes li { background:var(--panel2); border:1px solid var(--line); border-radius:9px; padding:6px 10px; font-size:13.5px; }
.causes li small { display:block; color:var(--muted); font-size:12px; }
.note { width:100%; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:8px 10px; font:inherit; font-size:14px; resize:vertical; color:var(--text); }
.note:focus, .field:focus { outline:2px solid var(--accent); outline-offset:-1px; }
/* ===================== Fenêtres (listes, relève) ===================== */
.modal { position:fixed; inset:0; z-index:30; background:rgba(5,10,20,.55); display:grid; place-items:center; padding:20px; }
.modal[hidden] { display:none; }
.modal-box { background:var(--panel); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); padding:18px 20px; width:min(560px,100%); max-height:calc(100vh - 40px); overflow:auto; }
.modal-box.wide { width:min(1000px,100%); }
.modal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; } .modal-head h3 { margin:0; font-size:18px; }
.modal-foot { display:flex; gap:8px; align-items:center; margin-top:12px; flex-wrap:wrap; }
.lists-grid { display:grid; grid-template-columns:minmax(260px,1fr) 1.3fr; gap:18px; }
.lists-col h4, .lists-edit h4 { margin:10px 0 6px; font-size:11.5px; text-transform:uppercase; letter-spacing:1px; color:var(--faint); }
.li { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 10px; border:1px solid var(--line); border-radius:11px; margin-bottom:6px; background:var(--panel2); }
.li small { display:block; color:var(--muted); font-size:12px; } .li.on { border-color:var(--accent); } .li.editing { box-shadow:0 0 0 2px var(--accent) inset; }
.li-act { display:flex; gap:5px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.lists-edit { border-left:1px solid var(--line); padding-left:18px; display:flex; flex-direction:column; gap:6px; }
.field { width:100%; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:8px 12px; font:inherit; color:var(--text); }
.chips { display:flex; flex-wrap:wrap; gap:6px; min-height:28px; }
.chip.co button { border:0; background:none; color:var(--muted); cursor:pointer; font-size:15px; padding:0 0 0 2px; line-height:1; }
.chip.co button:hover { color:var(--red); }
.sugg { display:flex; flex-direction:column; gap:3px; max-height:220px; overflow:auto; }
.sg { display:flex; justify-content:space-between; gap:10px; text-align:left; background:var(--panel2); border:1px solid var(--line); border-radius:8px; padding:5px 10px; cursor:pointer; font-size:13px; }
.sg span { color:var(--muted); white-space:nowrap; } .sg:hover { border-color:var(--accent); } .sg.all { justify-content:center; font-weight:700; }
.report { background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 14px; font:12.5px/1.5 ui-monospace, Consolas, monospace; white-space:pre-wrap; max-height:52vh; overflow:auto; margin:10px 0 0; }
@media (max-width:820px) { .lists-grid { grid-template-columns:1fr; } .lists-edit { border-left:0; padding-left:0; } }
/* ===================== v1.6 : composition « véhicules-longueur-poids » ===================== */
.compo { color:var(--text); font-weight:800; letter-spacing:.3px; font-variant-numeric:tabular-nums; text-transform:none; }
.compos { display:flex; flex-direction:column; gap:6px; }
.cs { background:var(--panel2); border:1px solid var(--line); border-radius:9px; padding:6px 10px; display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:baseline; font-size:13.5px; }
.cs b { font-size:16px; font-variant-numeric:tabular-nums; grid-row:span 2; align-self:center; }
.cs small { color:var(--muted); font-size:12px; }
.cs.on { border-color:var(--accent); background:color-mix(in srgb, var(--accent) var(--tint), var(--panel)); }
/* ===================== v1.7 : trains arrivés (code couleur + section repliable) ===================== */
.arr-sec { flex:none; display:flex; flex-direction:column; gap:6px; }
#arrived:empty { display:none; }
.arr-head { display:flex; align-items:center; gap:10px; width:100%; background:var(--panel); border:1px dashed var(--line); border-radius:12px;
padding:9px 14px; cursor:pointer; text-align:left; font-size:14.5px; }
.arr-head:hover { border-color:var(--muted); }
.arr-sec.open .arr-head { border-style:solid; }
.arr-head .chev { color:var(--muted); width:12px; }
.arr-n { background:var(--panel2); border:1px solid var(--line); border-radius:999px; padding:0 9px; font-weight:800; font-variant-numeric:tabular-nums; }
.arr-sum { margin-left:auto; display:flex; align-items:center; gap:6px; color:var(--muted); font-size:13px; font-weight:600; }
.arr-sum i { width:10px; }
.dotc { width:10px; height:10px; border-radius:50%; background:var(--c); display:inline-block; }
.arr-list { display:flex; flex-direction:column; gap:6px; max-height:34vh; overflow:auto; padding-right:2px; }
.row.arrived { flex:none; min-height:54px; }
.row.arrived { background:color-mix(in srgb, var(--c) 6%, var(--panel)); }
.row.arrived .bar-c { background:repeating-linear-gradient(-45deg, var(--c) 0 4px, transparent 4px 8px); }
.row.arrived .pill { border-style:dashed; }
.row.arrived .pill .v { font-size:20px; }
.row.arrived .c-arr .m { color:var(--c); }
.row.red.arrived { background:color-mix(in srgb, var(--red) 9%, var(--panel)); }
/* ===================== v1.7 : colonne Composition ===================== */
.c-compo .m.compo { font-size:18px; font-weight:800; letter-spacing:.4px; font-variant-numeric:tabular-nums; }
.c-compo .nocompo { color:var(--orange) !important; font-size:13.5px; font-weight:800; white-space:normal; line-height:1.15; }
.c-compo .s { font-size:12px; }
.cols.head .hint { font-size:10px; letter-spacing:.3px; text-transform:none; font-weight:600; opacity:.8; }
.actions .btn { white-space:nowrap; }
@media (max-width:1380px) {
.c-compo .m.compo { font-size:16px; letter-spacing:0; }
.cols.head .hint { display:none; }
.actions { gap:6px; } .actions .btn { padding:8px 11px; } .session { max-width:200px; }
}
/* ===================== v1.8 : numéros liés, jours, stand-by ===================== */
.nums { margin-top:2px; display:flex; gap:6px; align-items:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.otns { font-size:13.5px; font-weight:700; color:var(--text); opacity:.82; font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; }
.tag-vo { font-size:11px; font-weight:800; color:var(--blue); text-transform:uppercase; letter-spacing:.4px; }
.pin { font-size:12px; font-weight:700; color:var(--muted); }
.day { display:inline-block; margin-left:4px; padding:0 5px; border-radius:5px; font-size:10.5px; font-weight:800; line-height:15px; vertical-align:1px;
background:color-mix(in srgb, var(--muted) 22%, transparent); color:var(--text); letter-spacing:.2px; cursor:help; }
.day.fut { background:color-mix(in srgb, var(--blue) 28%, transparent); }
.rel { font-size:12px; font-weight:700; color:var(--blue); margin-left:4px; white-space:nowrap; }
.rel.late { color:var(--red); }
.ping-dot.ping-stand { background:transparent; border:2px solid var(--muted); width:10px; height:10px; box-sizing:border-box; }
.ping-txt.ping-stand { color:var(--muted) !important; font-weight:700; }
.indent-p { margin:2px 0 6px 27px; }
/* ===================== v1.9 : recherche + signaler un bug ===================== */
.toolbar2 { display:flex; align-items:center; gap:12px; min-height:36px; }
.search { display:flex; align-items:center; gap:8px; flex:0 1 520px; background:var(--panel); border:1px solid var(--line); border-radius:11px; padding:0 10px; height:36px; cursor:text; }
.search:focus-within { outline:2px solid var(--accent); outline-offset:-1px; }
.search input { flex:1; min-width:0; border:0; background:transparent; font-size:14.5px; height:100%; outline:none; }
.search input::-webkit-search-cancel-button { display:none; }
.s-ic { opacity:.7; font-size:14px; }
.q-x { border:0; background:var(--panel2); color:var(--muted); border-radius:7px; width:24px; height:24px; cursor:pointer; }
.q-x:hover { color:#fff; background:var(--red); }
.q-count { color:var(--muted); font-weight:700; font-size:13px; white-space:nowrap; }
.toolbar2 .hiddenbar { margin-left:auto; }
.foot-r { display:flex; align-items:center; gap:14px; }
.bug { color:var(--muted); text-decoration:none; font-weight:700; border:1px solid var(--line); border-radius:8px; padding:2px 10px; white-space:nowrap; }
.bug:hover { color:var(--text); border-color:var(--muted); }
a.btn { text-decoration:none; display:inline-block; }
@media (max-height:900px) and (min-width:1051px) { .toolbar2 { min-height:32px; } .search { height:32px; } }
/* ===================== v2.0 : imprimer l'horaire ===================== */
.acts { display:flex; flex-direction:column; align-items:center; gap:2px; }
.prt { border:1px solid var(--line); background:var(--panel2); color:var(--text); width:30px; height:26px; border-radius:8px; cursor:pointer; font-size:15px; line-height:1; }
.prt:hover { color:#fff; background:var(--accent); }
.pr-ctrl { display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.pr-range { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.pr-range label { display:flex; align-items:center; gap:6px; font-weight:700; }
.pr-range select { background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:5px 8px; font:inherit; max-width:340px; }
.pr-opts { display:flex; flex-wrap:wrap; gap:4px 18px; }
.pr-prev { max-height:52vh; overflow:auto; border:1px solid var(--line); border-radius:12px; }
.tt { width:100%; border-collapse:collapse; font-size:13px; }
.tt th { position:sticky; top:0; background:var(--panel2); color:var(--faint); text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.6px; padding:7px 10px; border-bottom:1px solid var(--line); }
.tt td { padding:5px 10px; border-bottom:1px solid var(--line); font-variant-numeric:tabular-nums; white-space:nowrap; }
.tt td:first-child { white-space:normal; }
.tt tr.pass td { color:var(--muted); }
.tt tr.origin td, .tt tr.dest td, .tt tr.stop td { font-weight:700; color:var(--text); }
.tt tr.here td { background:color-mix(in srgb, var(--accent) var(--tint), transparent); }
.here-tag { color:var(--accent); font-size:12px; }
.tt i { color:var(--muted); }
/* ===================== v2.1 : impression modulable ===================== */
.pr-groups { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:6px 22px; background:var(--panel2); border:1px solid var(--line); border-radius:12px; padding:10px 14px; }
.pr-groups h5 { margin:0 0 6px; font-size:11px; text-transform:uppercase; letter-spacing:.9px; color:var(--faint); }
.pr-groups .sw.small { padding:3px 0; }
.pr-groups .seg { margin-bottom:6px; }
.pr-info { padding:10px 12px 8px; font-size:13px; line-height:1.55; border-bottom:1px solid var(--line); }
.pr-info b { color:var(--text); }
.tt td.dcol { font-weight:800; white-space:nowrap; color:var(--accent); }
.tt tr.newday td { border-top:2px solid color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tt .dd { font-size:11px; font-weight:800; color:var(--blue); }
@media (max-width:1050px) { .pr-groups { grid-template-columns:1fr; } }
/* ===================== v2.1.1 : la section « Arrivés » suit la liste (plus de vide au milieu) ===================== */
/* la liste ne prend que la hauteur de ses lignes (et défile s'il y en a trop) ; « Arrivés » vient juste dessous */
.board .rows { flex:0 1 auto; }
.rows .row { flex:0 0 auto; }
.rows:has(.empty) { flex:1 1 auto; }
/* v2.1.1 : dernière cause de retard (sous l'itinéraire) + détail dans la fiche */
.row .c-route .cause { font-size:11.5px; line-height:1.25; color:var(--yellow); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:1px; }
.row .c-route .cause b { font-weight:700; }
.causes li.c-total { background:none; border:none; padding:0 2px; font-size:12.5px; color:var(--muted); }
.causes li.last { border-color:var(--yellow); }
.causes .c-code { display:inline-block; min-width:22px; padding:0 5px; border-radius:5px; background:var(--line); font-size:12px; font-weight:700; text-align:center; }
/* v2.2 : « Parcours » (horaire complet à l'écran, depuis la fiche du train) */
.route-bar #prQ { flex:1; min-width:240px; background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:9px; padding:7px 11px; font:inherit; }
.route-bar #prQ:focus { outline:none; border-color:var(--accent); }
.modal.route .pr-prev { max-height:66vh; }
.pr-none { padding:14px 16px; margin:0; }
.route-info { border:1px solid var(--line); border-radius:10px; padding:7px 12px; }
.pill.stuck { border:1.5px dashed var(--c); }
/* ===================== v2.3 : taille d'affichage, alertes à l'écran, historique ===================== */
/* Taille d'affichage : tout le tableau de bord est mis à l'échelle (--z), la page garde la hauteur de l'écran */
body { zoom:var(--z, 1); }
.app { height:calc(100vh / var(--z, 1)); }
@media (max-width:1050px) { .app { height:auto; min-height:calc(100vh / var(--z, 1)); } }
.zoom { display:flex; align-items:center; background:var(--panel); border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.zoom button { background:transparent; border:0; padding:8px 10px; font-weight:800; font-size:15px; line-height:1; cursor:pointer; color:var(--text); }
.zoom button:hover:not(:disabled) { background:var(--panel2); }
.zoom button:disabled { opacity:.35; cursor:default; }
.zoom #zoomVal { font-size:12px; font-weight:700; min-width:46px; padding:8px 4px; color:var(--muted); font-variant-numeric:tabular-nums; }
/* Cloche : nombre d'alertes pas encore vues */
.bell { position:relative; }
.bell .badge { position:absolute; top:-6px; right:-6px; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:var(--red); color:#fff;
font:800 11px/19px "Segoe UI", sans-serif; text-align:center; box-shadow:0 0 0 2px var(--bg); }
.bell.has { border-color:color-mix(in srgb, var(--red) 55%, var(--line)); }
/* Historique */
#alertsPop.at-top { top:76px; right:20px; left:auto; bottom:auto; width:min(560px,calc(100vw - 40px)); max-height:70vh; }
.pop-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pop-head h3 { margin:0; }
#log { display:flex; flex-direction:column; gap:5px; margin-top:8px; }
#log .al { display:grid; grid-template-columns:auto auto 1fr; align-items:start; gap:9px; text-align:left; width:100%; cursor:pointer;
background:var(--panel2); border:1px solid var(--line); border-left:4px solid var(--lc, var(--line)); border-radius:9px; padding:6px 10px; color:var(--text); }
#log .al:hover { border-color:var(--accent); border-left-color:var(--lc, var(--accent)); }
#log .al time { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; padding-top:2px; white-space:nowrap; }
#log .al .tx b { display:block; font-size:13.5px; }
#log .al .tx small { display:block; color:var(--muted); font-size:12px; }
#log .al.unread { background:color-mix(in srgb, var(--lc, var(--accent)) 12%, var(--panel2)); }
.lv-red { --lc:var(--red); } .lv-yellow { --lc:var(--yellow); } .lv-green { --lc:var(--green); } .lv-blue { --lc:var(--blue); } .lv-grey { --lc:var(--faint); }
/* Alertes à l'écran : cartes en bas à droite, discrètes, empilées (la plus récente en haut) */
.toasts { position:fixed; right:18px; bottom:46px; z-index:40; display:flex; flex-direction:column; gap:8px; width:min(380px, calc(100vw - 36px)); pointer-events:none; }
.toast { pointer-events:auto; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:start; cursor:pointer;
background:var(--panel); border:1px solid var(--line); border-left:5px solid var(--lc, var(--accent)); border-radius:12px; padding:10px 10px 10px 12px;
box-shadow:var(--shadow); animation:toast-in .25s ease-out; }
.toast:hover { border-color:var(--accent); border-left-color:var(--lc, var(--accent)); }
.toast .ic { font-size:18px; line-height:1.2; }
.toast .tx b { display:block; font-size:14px; }
.toast .tx small { display:block; color:var(--text); opacity:.8; font-size:12.5px; margin-top:1px; }
.toast .tx time { display:block; color:var(--muted); font-size:11.5px; margin-top:3px; }
.toast .x { background:transparent; border:0; color:var(--muted); cursor:pointer; font-size:13px; padding:2px 4px; border-radius:6px; }
.toast .x:hover { background:var(--panel2); color:var(--text); }
.toast.out { opacity:0; transform:translateX(24px); transition:.25s; }
@keyframes toast-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
/* Ligne du train qui vient d'alerter : clignote quelques secondes */
.row.flash { animation:row-flash 1.1s ease-in-out 3; }
@keyframes row-flash { 50% { box-shadow:0 0 0 3px var(--accent), var(--shadow, none); } }