/* ---------- Recherche générale de l'administrateur (search.js, owner 2026-11-29, design-lab/planning-liste-maquette.html) ----------
   Ordinateur : barre « Recherche globale Ctrl K » sous le logo ; téléphone et tablette : la loupe de l'en-tête.
   La fenêtre : champ en haut, résultats en trois groupes (Courses, Clients et chauffeurs, Pages), ligne choisie en doré clair. */
.gs-bar { display: none; }
/* Ordinateur : « Recherche globale  Ctrl K » sous le logo, dans la barre de gauche, sur toutes les pages (owner, 2026-11-29) ;
   la barre du haut de la page (vide sur ordinateur) disparaît. Téléphone et tablette : la loupe de l'en-tête. */
@media (min-width: 1000px) {
  .tabs.mode-tabs > .gs-bar { order: -1; margin-top: -12px !important; display: flex; align-items: center; gap: 8px; width: auto; height: 40px; margin: 0 0 14px; padding: 0 8px 0 12px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--bg); color: var(--muted); font: inherit; font-size: 13.5px; text-align: start; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; flex: none; }
  html body .top .gs-ico { display: none; }
  .top.top-gs { display: none; }
}
/* Transferts (administrateur) : la recherche de la liste laisse la place au titre et aux boutons de la page (tTopActs, app.js) */
.tsearch-wrap.ts-top .tsearch-row { display: none; }
.tsearch-wrap.ts-top { padding-top: 0; padding-bottom: 4px; }
.gs-bar svg, .gs-in > svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: stroke .3s; }
.gs-bar-t { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gs-bar kbd, .gs-esc, .gs-enter { flex: none; font: 700 11px/1 system-ui, sans-serif; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; color: var(--muted); background: none; transition: color .3s, border-color .3s; }
@media (hover: hover) {
  .gs-bar:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
  .gs-bar:hover kbd { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 45%, transparent); }
}

/* Fenêtre */
html body .overlay.gs-ov > .dialog.gs-dlg { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.gs-in { flex: none; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.gs-in input { flex: 1 1 auto; min-width: 0; height: 30px; border: 0; outline: 0; background: none; box-shadow: none; padding: 0; font: inherit; font-size: 16px; color: var(--text); }
.gs-in input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.gs-in input:focus, .gs-in input:focus-visible { outline: 0; box-shadow: none; border: 0; }
.gs-res { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; max-height: min(60vh, 520px); padding: 4px 8px 10px; }
.gs-g { padding: 12px 8px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gs-r { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 7px 8px; border: 0; border-radius: 12px; background: none; color: var(--text);
  font: inherit; text-align: start; cursor: pointer; transition: background-color .3s, color .3s; }
.gs-r.on { background: var(--gold-soft); }
.gs-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); transition: background-color .3s, color .3s; }
.gs-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gs-ic-ride { background: var(--gold-soft); color: var(--gold); }
.gs-ic-user { background: none; }
.gs-ic-user .drv-ava { width: 34px; height: 34px; font-size: 12px; }
.gs-t { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.gs-t b { font-size: 14px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gs-t small { font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color .3s; }
.gs-t small em { font-style: normal; font-weight: 700; color: var(--gold); margin-inline-end: 6px; }
.gs-enter { display: none; }
.gs-r.on .gs-enter { display: inline-block; }
.gs-hint, .gs-none { margin: 10px 8px 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
@media (hover: hover) {
  .gs-r:hover { background: var(--text); color: var(--bg); }
  .gs-r:hover .gs-t small, .gs-r:hover .gs-t small em { color: color-mix(in srgb, var(--bg) 78%, transparent); }
  .gs-r:hover .gs-ic:not(.gs-ic-user) { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }
  .gs-r:hover .gs-enter { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 45%, transparent); }
}

/* Téléphone : tiroir haut, le champ reste en haut et les résultats défilent dessous */
@media (max-width: 640px) {
  html body .overlay.gs-ov:not(.dt-drop):not(.dfb):not(.avc-ov) > .dialog.gs-dlg { height: 86dvh; max-height: 86dvh; overflow: hidden; padding: 0 0 env(safe-area-inset-bottom); }
  html body .overlay.gs-ov:not(.dt-drop):not(.dfb):not(.avc-ov) > .dialog.gs-dlg::before { margin: 10px auto 4px; flex: none; }
  .gs-in { padding: 6px 16px 12px; }
  .gs-res { max-height: none; padding: 4px 8px 16px; }
  .gs-esc, .gs-r.on .gs-enter { display: none; }
}

/* Pastille dorée de Transferts : courses à venir sans chauffeur (navcount.php) ; Utilisateurs et Finances restent rouges */
.tab-badge[data-badge="unas"] { background: var(--gold); color: #fff; }
/* Survol de cette pastille à la souris (ordinateur) : « 2 transferts à attribuer » (owner, 2026-12-03). Info-bulle blanche sous la
   pastille, calée sur son bord droit (gauche en arabe) pour rester dans la colonne de gauche, qui coupe ce qui dépasse. Texte : team.js. */
@media (min-width: 1000px) and (hover: hover) {
  .tabs.mode-tabs .tab-badge[data-badge="unas"][data-tip] { position: relative; inset: auto; cursor: default; }   /* inset : sans lui, top / left de la pastille du téléphone la décalaient */
  .tabs.mode-tabs .tab-badge[data-badge="unas"][data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); inset-inline-end: 0; white-space: nowrap; text-align: start;
    background: #fff; color: #0f1f3d; font: 600 12.5px/1 Manrope, system-ui, sans-serif; padding: 7px 9px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s cubic-bezier(.2, .8, .2, 1); z-index: 50; }
  .tabs.mode-tabs .tab-badge[data-badge="unas"][data-tip]:hover::after { opacity: 1; transform: none; }
}
@media (max-width: 999px) { html body .tabs.mode-tabs > .gs-bar { display: none !important; } }   /* téléphone : pas dans la barre du bas (la loupe de l'en-tête la remplace) */
