/* iPad layout — control-hub (Jordan 11 Nov 2026, iPad Pro 12.9" landscape 1366 × 1024).
   Every rule starts with html.ed-touch. */

/* ---- No Back button on the Control Hub: it is the home page (Jordan 11 Nov 2026). ---- */
html.ed-touch body:has(.ch-health-strip) .ed-back-btn { display: none !important; }

/* ---- Health strip: the six status tabs and the two pills on ONE line, all the same
   height, centred on the same line (Jordan 11 Nov 2026). ---- */
html.ed-touch .ch-health-strip { flex-wrap: nowrap; align-items: center; gap: 8px; padding: 8px 10px; }
html.ed-touch .ch-health-dots { flex-wrap: nowrap; gap: 6px; min-width: 0; }
html.ed-touch .ch-sig { gap: 6px; flex-shrink: 0; }
html.ed-touch .ch-sig > div { display: flex; }
html.ed-touch .ch-h,
html.ed-touch .ch-pill {
    box-sizing: border-box; height: 34px; padding: 0 12px; margin: 0;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
}
html.ed-touch .ch-h { color: var(--mc-text-primary); }
html.ed-touch .ch-pill b { font-size: 14px; line-height: 1; }

/* ---- Flight board: slim header. Line 1 = title, count, Refresh all.
   Line 2 = the colour key, small and tidy (Jordan 11 Nov 2026). ---- */
html.ed-touch .ch-flightboard { overflow: hidden; }
html.ed-touch .ch-flightboard .mc-panel-header {
    flex-wrap: wrap; align-items: center; justify-content: flex-start;
    column-gap: 8px; row-gap: 6px; padding: 10px 12px;
}
html.ed-touch .ch-flightboard .mc-panel-title { order: 1; white-space: nowrap; font-size: 14px; }
html.ed-touch .ch-flightboard .fb-head-tools { display: contents !important; }
html.ed-touch .ch-flightboard .fb-head-tools > .text-xs {
    order: 2; margin-left: auto; white-space: nowrap;
    font-size: 12px; font-weight: 600; color: var(--mc-text-primary) !important;
}
html.ed-touch .ch-flightboard .fb-refresh-all {
    order: 3; height: 30px; padding: 0 10px !important; white-space: nowrap;
    font-size: 12px !important; color: var(--mc-accent) !important; border-color: var(--mc-accent) !important;
}
html.ed-touch .ch-flightboard .fb-legend {
    order: 4; flex: 1 1 100%; display: flex !important; flex-wrap: nowrap;
    gap: 12px !important; white-space: nowrap;
}
html.ed-touch .ch-flightboard .fb-key { font-size: 11px; font-weight: 600; color: var(--mc-text-primary); gap: 4px; }
html.ed-touch .ch-flightboard .fb-key i { width: 9px; height: 9px; }

/* ---- Flight board rows: time | details | chips, no cut-off chips, no side scroll. ---- */
html.ed-touch .ch-flightboard .fb-compact .fb-row {
    grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; align-items: start;
}
html.ed-touch .ch-flightboard .fb-compact .fb-time { font-size: 18px; }
html.ed-touch .ch-flightboard .fb-compact .fb-flt { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ed-touch .ch-flightboard .fb-compact .fb-who,
html.ed-touch .ch-flightboard .fb-compact .fb-drop { font-size: 13px; }
html.ed-touch .ch-flightboard .fb-compact .fb-sub { font-size: 11px; color: var(--mc-text-secondary); }
html.ed-touch .ch-flightboard .fb-compact .fb-tags { gap: 4px; }
html.ed-touch .ch-flightboard .fb-compact .fb-pax { font-size: 11px; padding: 3px 6px; }

/* ---- Panel headers: one line each. Title on the left, a short meta on the right that
   ends in "…" when space is short (Jordan 11 Nov 2026). ---- */
html.ed-touch .ch-grid .mc-panel-header:not(.ch-flightboard .mc-panel-header) {
    flex-wrap: nowrap; align-items: center; gap: 10px; min-width: 0;
}
html.ed-touch .ch-grid .mc-panel-header:not(.ch-flightboard .mc-panel-header) > .mc-panel-title {
    white-space: nowrap; flex-shrink: 0;
}
html.ed-touch .ch-grid .mc-panel-header:not(.ch-flightboard .mc-panel-header) > :not(.mc-panel-title) {
    min-width: 0; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Live Fleet Map meta: "2 vehicles tracked · 10:14:39" on one line, small. The page writes
   "Updated 10:14:39"; right-to-left trimming keeps the time and drops the word "Updated". */
html.ed-touch .ch-grid .mc-panel-header > .flex:has(#map-vehicle-count) { gap: 0 !important; margin-left: auto; }
html.ed-touch #map-vehicle-count,
html.ed-touch #map-last-update { font-size: 11px; white-space: nowrap; color: var(--mc-text-secondary) !important; font-variant-numeric: tabular-nums; }
html.ed-touch #map-vehicle-count { flex-shrink: 0; }
html.ed-touch #map-vehicle-count:has(+ #map-last-update:not(:empty))::after { content: "\00a0·\00a0"; }
html.ed-touch #map-last-update { flex-shrink: 0; max-width: 4.6em; overflow: hidden; direction: rtl; text-align: left; }
