/* V4.2: compact rows and dispatch tables, not cards. */
#mission-counts,#pause-note,.focus-eyebrow,.focus-back,#call-popup{display:none!important}
.quick-bottom-left{display:flex;gap:8px;align-items:end;z-index:80}.quick-bottom-left .orb{position:relative;width:44px;height:44px;font-size:20px;padding:0 0 8px;border-width:1px;box-shadow:0 1px 5px #0005}.orb-missions{background:#176bb5!important}.nav-label{position:absolute;bottom:3px;left:0;right:0;font:700 8px system-ui;color:#fff}.v5-count{position:absolute;right:-3px;top:-4px;background:#24405f;border:1px solid white;border-radius:15px;min-width:17px;padding:2px;font:700 9px system-ui}.v5-count:empty{display:none}.quick-bottom-right{display:flex;gap:8px;align-items:center;z-index:75}.quick-bottom-right .orb,.quick-left .orb{width:38px;height:38px;border-width:1px;font-size:20px;box-shadow:0 1px 4px #0004}.quick-left{gap:7px}
#panel-left{left:6px;top:6px;bottom:0px;width:min(510px,44vw);border:2px solid #20282f;border-radius:5px;box-shadow:0 5px 17px #0006;background:#404040;z-index:54}#panel-left .panel-head{background:#0874e4;min-height:35px;padding:4px 8px;border:0}#panel-left .panel-head h2{font-size:15px;margin:0;font-weight:800}#panel-left .panel-head button{font-size:17px;background:transparent;border:0;width:26px;height:26px}#panel-left .panel-body{display:block;padding:0;gap:0;background:#404040}.v42-mission-line{display:grid;grid-template-columns:23px minmax(0,1fr) auto;gap:7px;align-items:center;width:100%;height:33px;min-height:33px;max-height:33px;border:0;border-bottom:1px solid #454545;border-radius:0;background:#333;color:#f5f5f5;padding:0 8px;text-align:left;cursor:pointer;box-shadow:none;overflow:hidden}.v42-mission-line:hover,.v42-mission-line:focus-visible{background:#3f515e;outline:1px solid #198fff;outline-offset:-1px}.v42-service-symbol{width:20px;height:20px;display:grid;place-items:center;background:#1271c6;border:1px solid #90b6d7;border-radius:50%;font-size:15px;color:white}.v42-line-title{font-size:12px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v42-line-state{font-size:11px;color:#c9c9c9;white-space:nowrap;font-weight:400}.v42-empty{font:12px system-ui;padding:12px;color:#b5b5b5;margin:0}
#v5-calls-panel{position:absolute;left:6px;top:6px;bottom:0px;width:min(510px,44vw);z-index:58;background:#3b3b3b;border:2px solid #232b35;border-radius:5px;display:flex;flex-direction:column;overflow:hidden}#v5-calls-panel.hidden{display:none}#v5-calls-panel .panel-head{background:#0a6ecb;min-height:35px;padding:5px 8px}#v5-calls-panel h2{font-size:15px;margin:0}.v5-call-intro{padding:10px;font-size:11px;color:#c1ccd7;line-height:1.4}#v5-calls-body{flex:1;overflow:auto;padding:0 8px}.v5-call{padding:9px 0;border-bottom:1px solid #656565;margin:0}.v5-call strong,.v5-call small{display:block;margin-bottom:4px}.v5-call small{font-size:10px;color:#b8c7d7}.v5-call strong{font-size:13px}.v5-call p{font-size:11px;line-height:1.4;margin:5px 0}.v5-call button{min-height:32px;font-size:11px;border-radius:3px;padding:6px 9px}#v5-calls-panel>.btn{margin:8px;min-height:30px;font-size:11px}.v5-empty{font-size:12px;color:#bac6d4}
.mission-focus{left:50%!important;right:auto!important;transform:translateX(-50%)!important;top:52px!important;bottom:62px!important;width:min(1110px,calc(100vw - 32px))!important;max-height:calc(100dvh - 114px);border:4px solid #202428;border-radius:7px;box-shadow:0 10px 35px #0008;background:#414141;z-index:70}.mission-focus-header{background:#0874e4!important;min-height:34px;height:34px;padding:3px 9px;border-radius:2px}.mission-focus-header h2{font:750 15px system-ui;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.mission-focus-header .focus-close{width:28px;height:28px;min-width:28px;border:0;background:transparent;border-radius:3px;padding:0;font-size:23px}.mission-focus-body{display:block;padding:8px 10px;overflow-y:auto;background:#414141;min-height:0;scrollbar-gutter:stable}.v42-mission-overview{display:flex;align-items:center;gap:9px;min-height:60px;margin:0 0 5px}.v42-mission-service{display:grid;place-items:center;width:43px;height:43px;flex:none;border:4px solid #263240;border-radius:50%;background:#0868bd;color:white;font-size:28px}.v42-mission-location{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;font-size:11px;color:#d9d9d9}.v42-mission-location strong{font-size:12px;font-weight:650}.v42-position{color:#aaa;font-size:9px}.v42-top-action{display:flex;align-items:end;flex-direction:column;gap:3px;min-width:109px}.v42-top-action>span{font-size:9px;color:#c9d2cc}.v42-top-action>strong{font-size:10px;color:#bdd3d2;font-weight:500}.v42-engage{display:inline-block;min-width:106px;min-height:30px;border:1px solid #78c382;border-radius:4px;padding:5px 14px;background:#389b49;color:white;font:750 12px system-ui;cursor:pointer}.v42-engage:disabled{opacity:.4;cursor:default}.v42-progress{height:3px;background:#303030;border-radius:0;margin:2px 0 8px;overflow:hidden}.v42-progress>div{height:100%;background:#43c7a5;transition:width .7s}.v42-table-section{margin:0 0 10px;border:1px solid #343434;border-radius:0;overflow:hidden}.v42-table-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:27px;padding:3px 7px;background:#747474;color:#fff;font:12px system-ui}.v42-table-caption>strong{font-size:12px;font-weight:650}.v42-family-filter{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:400;margin:0}.v42-family-filter select{font:10px system-ui;color:#fff;background:#4d4d4d;border:1px solid #b0b0b0;border-radius:2px;height:23px;padding:0 4px;max-width:150px}.v42-table-scroll{overflow-x:auto}.v42-table{width:100%;min-width:510px;border-collapse:collapse;table-layout:fixed;font:11px system-ui}.v42-table th{background:#252525;color:#eee;padding:4px 5px;height:24px;text-align:left;font-weight:600;white-space:nowrap;border:0}.v42-table th:first-child{width:56px}.v42-table th:nth-child(2){width:79px}.v42-table th:nth-child(4){width:95px}.v42-table th:last-child{width:138px}.v42-table td{height:34px;padding:3px 5px;background:#353535;border-bottom:1px solid #474747;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v42-table tr.selected td{background:#284c39}.v42-table tr.unavailable td{color:#aaa;background:#3b3b3b}.v42-table td.v42-silhouette{padding:2px 4px}.v42-silhouette img{display:block;object-fit:contain;width:48px;height:24px;max-width:48px;max-height:24px}.v42-vehicle-code{display:inline-block;background:#0871da;color:white;text-align:center;border-radius:3px;min-width:70px;max-width:calc(100% - 24px);padding:3px 8px;line-height:16px;font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.v42-crew{display:inline-grid;place-items:center;width:17px;height:17px;vertical-align:middle;margin-left:3px;border-radius:50%;background:#7d6438;color:white;font:700 10px system-ui}.v42-crew.ready{background:#2c9d56}.v42-family-sort{font:600 11px system-ui;color:#eee;background:none;border:0;cursor:pointer;padding:0}.v42-pick,.v42-recall{display:block;width:100%;min-height:25px;border:1px solid #9da1a5;border-radius:3px;background:#b3b3b3;color:#222;font:650 11px system-ui;padding:3px 6px;cursor:pointer}.v42-pick.selected,.v42-recall{color:#fff;background:#26974b;border-color:#60b876}.v42-pick:disabled,.v42-recall:disabled{opacity:.4}.v42-unavailable{font-size:10px;color:#b1b1b1}.v42-empty-cell{font-size:11px;color:#bababa;text-align:center}.v42-route-error,.v42-radio{font-size:11px;line-height:1.4;background:#54452c;border-left:3px solid #ce9d51;padding:8px;margin:6px 0}.v42-radio p{margin:5px 0}.v42-secondary{font-size:10px;color:#b9b9b9;line-height:1.4}.v42-secondary details{margin-top:4px}.v42-secondary summary{cursor:pointer;color:#c6c6c6}.v42-secondary p{font-size:11px;margin:6px 0}.v42-secondary a{color:#a8cbef}.v42-secondary ol{padding-left:17px}.v42-text-button{background:none;color:#b8d5eb;border:0;font:10px system-ui;padding:1px 0;cursor:pointer;text-decoration:underline}.v5-live{font-variant-numeric:tabular-nums}.vehicle-map-v2{background:transparent!important;border:0!important;box-shadow:none!important}.vehicle-map-v2 .vehicle-topview{width:24px;height:36px;transform-origin:50% 50%}.vehicle-map-v2 .vehicle-topview.vehicle-isometric{width:46px!important;height:28px!important;object-fit:contain!important;filter:drop-shadow(0 3px 6px rgba(0,0,0,0.65))!important;transition:transform 0.18s ease-out!important}.vehicle-marker-name{font-size:8px!important;background:#172a3ccc;padding:1px 3px;border-radius:2px;white-space:nowrap}.map-degraded{z-index:75}.v5-retry-map{border:1px solid #8c9cac;border-radius:3px;background:#34536b;color:white;padding:4px 7px;margin-left:7px;font-size:10px}
@media(max-height:520px){.mission-focus{top:4px!important;bottom:0px!important;max-height:calc(100dvh - 57px);width:calc(100vw - 14px)!important}.mission-focus-header{min-height:31px;height:31px}.mission-focus-header h2{font-size:13px}.mission-focus-body{padding:6px 8px}.v42-mission-overview{min-height:48px;margin-bottom:3px}.v42-mission-service{width:35px;height:35px;font-size:22px;border-width:3px}.v42-position{display:none}.v42-top-action{gap:2px}.v42-table-caption{min-height:25px;padding:2px 6px}.v42-table td{height:32px}.v42-progress{margin-bottom:6px}.v42-secondary{font-size:9px}#panel-left,#v5-calls-panel{bottom:0px}.v42-mission-line{height:31px;min-height:31px;max-height:31px}.v42-line-title{font-size:11px}.v42-line-state{font-size:10px}.quick-bottom-left .orb{width:39px;height:39px;font-size:18px}.quick-bottom-right .orb,.quick-left .orb{width:33px;height:33px;font-size:18px}.v42-tools{top:94px;left:44px}}
@media(max-width:700px){#panel-left,#v5-calls-panel{width:min(490px,60vw)}.v42-table th:first-child{width:48px}.v42-table th:nth-child(2){width:65px}.v42-table th:nth-child(4){width:73px}.v42-table th:last-child{width:112px}.v42-silhouette img{width:42px;height:22px}.v42-line-state{font-size:9px}.v42-line-title{font-size:10px}.v42-mission-line{gap:4px;padding:0 5px}}

/* Bords utiles iOS/Android et fenêtres au-dessus du clavier virtuel. */
#panel-left,#v5-calls-panel{left:calc(var(--sal) + 6px);top:calc(var(--sat) + 6px);bottom:0px}
.mission-focus{left:calc(var(--sal) + (100vw - var(--sal) - var(--sar))/2)!important;width:min(1110px,calc(100vw - var(--sal) - var(--sar) - 32px))!important}
.quick-left{left:max(6px,var(--sal))}.quick-bottom-right{right:max(12px,var(--sar))}
.modal-backdrop,#guide-overlay{top:var(--vv-top,0px);bottom:auto;height:var(--vv-height,100dvh);padding:max(6px,var(--sat)) max(12px,var(--sar)) max(6px,var(--sab)) max(12px,var(--sal))}
.modal-box,.onboarding-v2,.guide-dialog{max-height:calc(var(--vv-height,100dvh) - var(--sat) - var(--sab) - 16px);overflow-y:auto;overscroll-behavior:contain;max-width:100%}
.onboarding-v2 input{font-size:16px;scroll-margin:12px}
@media(max-height:520px){
 #panel-left,#v5-calls-panel{bottom:calc(var(--sab) + 53px)}
 .mission-focus{top:calc(var(--sat) + 4px)!important;bottom:calc(var(--sab) + 53px)!important;max-height:calc(100dvh - var(--sat) - var(--sab) - 57px);width:calc(100vw - var(--sal) - var(--sar) - 14px)!important}
 .onboarding-v2{padding:0 14px 10px}.onboarding-sub{font-size:12px;margin:6px 0}.onboarding-v2 h2{font-size:17px;margin:8px 0}.onboarding-v2 .field{margin-bottom:7px}.onboarding-actions{margin-top:7px}
}
