/* ================================
   SECTIONS — Styles par section
   ================================ */

/* --- SUIVI DOCUMENTS --- */
.suivi-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.suivi-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.suivi-step:last-child { border-bottom: none; }
.suivi-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  cursor: default;
  color: transparent;
  transition: background .15s, border-color .15s;
}
button.suivi-check {
  cursor: pointer;
  padding: 0;
}
button.suivi-check:hover {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}
.suivi-check--done {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}
button.suivi-check--done:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}
.suivi-step-label {
  flex: 1;
  font-size: 13px;
  color: var(--text2);
}
.suivi-step--done .suivi-step-label {
  color: var(--text1);
}
.suivi-step-date {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  font-family: var(--font-mono);
}


/* Bloc brouillons orphelins */
.frais-orphelins-bloc {
  background: var(--bg3);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.frais-orphelins-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* --- MODE DE CRÉATION DE DATE --- */
.date-mode-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .date-mode-cards { grid-template-columns: 1fr; }
}
.date-mode-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--bg);
  user-select: none;
}
.date-mode-card input[type="radio"] { display: none; }
.date-mode-card:hover { border-color: var(--border2); }
.date-mode-card:has(input:checked) {
  border-color: var(--primary);
  background: #f5f8ff;
}
.date-mode-card-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.date-mode-card-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text1);
}
.date-mode-card:has(input:checked) .date-mode-card-title { color: var(--accent); }

.f-distribution-locked { opacity: 0.45; pointer-events: none; }
.f-distribution-locked-msg {
  font-size: 12px;
  color: var(--text3);
  font-style: italic;
  padding: 4px 0 2px;
  display: none;
}

/* --- SELECT DE DATES AVEC RECHERCHE --- */
.date-search-wrap {
  margin-bottom: 6px;
}
.date-search-input {
  width: 100%; box-sizing: border-box;
  padding: 8px 12px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text1);
  font-size: 13px;
  font-family: var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.date-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,49,42,0.12);
}
.date-search-input::placeholder { color: var(--text3); }

/* --- BILLETS MULTI-MEMBRES --- */
.b-membre-cb-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 180px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 10px; background: var(--bg2);
}
.b-membre-cb-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; cursor: pointer; padding: 2px 0;
}
.b-membre-cb-row input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

/* --- DÉTECTEUR DE DOUBLONS DATES --- */
.dup-group {
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 12px; overflow: hidden;
}
.dup-group-header {
  background: var(--bg2); padding: 10px 14px;
  font-size: 13px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.dup-group-dates { font-weight: 600; }
.dup-badge {
  background: #fff3cd; color: #856404; border: 1px solid #ffc107;
  border-radius: 4px; padding: 1px 6px; font-size: 11px; font-weight: 600;
}
.dup-badge-zero {
  background: #fee2e2; color: #b91c1c; border-color: #fca5a5;
}
.dup-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.dup-row:last-child { border-bottom: none; }
.dup-row:hover { background: var(--bg2); }
.dup-row-keep { background: #f0fff4; }
.dup-row-keep:hover { background: #e8f8ef; }
.dup-row-zero { background: #fff8f8; }
.dup-row-zero:hover { background: #fee2e2; }
.dup-row-info { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; min-width: 0; }
.dup-row-date { font-family: var(--font-mono); font-size: 12px; color: var(--text2); min-width: 56px; flex-shrink: 0; }
.dup-row-client { flex: 1; min-width: 150px; }
.dup-row-city { font-size: 12px; color: var(--text3); }
.dup-row-saison { font-size: 11px; color: var(--text3); margin-left: auto; }
.dup-row-tarif { font-family: var(--font-mono); font-size: 12px; color: var(--text2); min-width: 70px; text-align: right; }
.dup-tarif-zero { color: #b91c1c; font-weight: 700; }
.dup-row-spec  { font-size: 12px; color: var(--text2); }
.dup-keep-tag { font-size: 11px; font-weight: 600; color: var(--green); white-space: nowrap; }
.dup-edit-btn {
  background: none; border: none; cursor: pointer; font-size: 12px;
  padding: 0 2px; opacity: .5; vertical-align: middle; line-height: 1;
}
.dup-edit-btn:hover { opacity: 1; }

/* --- IA IMPORT DOUBLONS --- */
.ia-dup-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  background: #fff3cd; color: #856404; border: 1px solid #ffc107;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px;
  vertical-align: middle; white-space: nowrap;
}
.ia-row-dup td { background: #fffbf0; }
.ia-dup-count { font-size: 13px; font-weight: 500; color: #856404; }
.ia-editable {
  cursor: pointer; border-radius: 3px; padding: 1px 3px; margin: -1px -3px;
  transition: background .15s;
}
.ia-editable:hover { background: var(--bg3); outline: 1px dashed var(--border); }
.ia-edit-hint { opacity: 0; font-size: 10px; transition: opacity .15s; pointer-events: none; }
.ia-editable:hover .ia-edit-hint { opacity: .5; }
.ia-row-existing td { border-top: none !important; background: #f8f5e6; }
.ia-copy-btn {
  display: inline-block; margin-left: 5px; padding: 0 4px; font-size: 10px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 3px;
  cursor: pointer; color: var(--text2); line-height: 16px; vertical-align: middle;
}
.ia-copy-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* --- JOURNAL D'ACTIVITÉ --- */
.log-day-group { margin-top: 20px; }
.log-day-header {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text2);
  padding: 8px 0 6px; border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.log-row {
  display: grid;
  grid-template-columns: 44px 130px 120px 1fr 90px;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.log-row:last-child { border-bottom: none; }
.log-time { font-family: var(--font-mono); color: var(--text3); }
.log-user { color: var(--text2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-desc { color: var(--text1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-ip   { font-family: var(--font-mono); font-size: 10px; color: var(--text3); text-align: right; }
.log-badge {
  display: inline-block; padding: 2px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.log-badge-green  { background: #d4edda; color: #155724; }
.log-badge-blue   { background: #d1ecf1; color: #0c5460; }
.log-badge-red    { background: #f8d7da; color: #721c24; }
.log-badge-orange { background: #fff3cd; color: #856404; }
.log-badge-purple { background: #e2d9f3; color: #4a2c7a; }
.log-badge-grey   { background: var(--bg3); color: var(--text2); }
@media (max-width: 600px) {
  .log-row { grid-template-columns: 44px 1fr 1fr; }
  .log-ip, .log-user { display: none; }
}

/* --- SPLIT BUTTON --- */

.split-btn {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.split-btn-main {
  border-radius: var(--radius) 0 0 var(--radius) !important;
  border-right: 1px solid rgba(255,255,255,0.25) !important;
}

.split-btn-arrow {
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  padding: 0 10px !important;
  font-size: 11px;
}

.split-btn-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  z-index: 200;
  min-width: 230px;
  overflow: hidden;
}

.split-btn-menu button {
  display: block;
  width: 100%;
  padding: 11px 16px;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text1);
  cursor: pointer;
  transition: background 0.1s;
}

.split-btn-menu button:hover {
  background: var(--bg3);
}

.split-btn-menu button + button {
  border-top: 1px solid var(--border);
}

/* --- INLINE FICHE BANNER (date form) --- */

.new-fiche-banner {
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 4px;
}

.new-fiche-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text1);
  user-select: none;
  transition: background 0.12s;
}

.new-fiche-banner-header:hover {
  background: var(--bg3);
}

.new-fiche-fields {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.new-fiche-fields .form-full {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .new-fiche-fields { grid-template-columns: 1fr; }
  .new-fiche-fields .form-full { grid-column: 1; }
}



/* ============================================================
   RESPONSIVE — colonnes adaptatives
   ============================================================ */

@media (max-width: 1024px) {
  .dashboard-cols    { grid-template-columns: 1fr; }
  .technique-cols    { grid-template-columns: 1fr; }
  .fiche-grid        { grid-template-columns: 1fr; }
  .frais-membres-grid { grid-template-columns: 1fr; }
  .crew-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .filters-bar        { flex-wrap: wrap; }
  .filters-bar input  { min-width: 100%; }
  .equipe-grid        { grid-template-columns: repeat(2, 1fr); }
  .crew-grid          { grid-template-columns: 1fr; }
  .fw-page.fw-page-active { grid-template-columns: 1fr; }
  .fw-page.fw-page-active .form-full { grid-column: 1; }
  .fw-steps { flex-wrap: wrap; }
  .fw-step  { padding: 8px 10px 10px; font-size: 12px; }
}

/* --- PRINT --- */
@media print {
  .sidebar, .section-header, .filters-bar { display: none !important; }
  body { background: white; overflow: auto; }
  .feuille-doc { border: none; box-shadow: none; }
  .feuille-header {
    background: var(--accent) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}



/* ============================================================
   NOTIFICATIONS — cloche sidebar
   ============================================================ */

#notif-container {
  position: relative;
}

.notif-bell-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.notif-bell-btn:hover { background: var(--bg3); color: var(--text); }

.notif-count {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.notif-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 200;
  max-height: 360px;
  overflow-y: auto;
  min-width: 260px;
}
.notif-panel.hidden { display: none; }

.notif-panel-header {
  padding: 8px 14px;
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notif-markall-btn {
  background: none;
  border: none;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--primary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.notif-markall-btn:hover { background: var(--primary-bg); }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.15s;
}
.notif-item--nav { cursor: pointer; }
.notif-item--nav:hover { background: var(--bg3); }
.notif-item:last-child { border-bottom: none; }
.notif-new { background: rgba(58,108,232,0.05); }
.notif-lu  { opacity: 0.6; }

.notif-ico  { font-size: 16px; flex-shrink: 0; padding-top: 2px; }
.notif-body { flex: 1; min-width: 0; }
.notif-titre { font-size: 12px; font-weight: 600; color: var(--text); }
.notif-msg   { font-size: 11px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time  { font-size: 10px; color: var(--text3); margin-top: 3px; font-family: var(--font-mono); }
.notif-empty { padding: 16px 14px; font-size: 12px; color: var(--text3); text-align: center; }
.notif-chevron { font-size: 18px; color: var(--text3); flex-shrink: 0; align-self: center; line-height: 1; padding-left: 2px; }



/* ============================================================
   TOASTS
   ============================================================ */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 340px;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #toast-container {
    bottom: 80px; /* au-dessus de la bottom nav (70px) */
    right: 12px;
    left: 12px;
  }
  .toast { max-width: 100%; }
}
.toast.toast-visible   { opacity: 1; transform: translateY(0); }
.toast.toast-success   { border-left: 3px solid var(--green); }
.toast.toast-error     { border-left: 3px solid var(--accent); }
.toast.toast-info      { border-left: 3px solid var(--blue); }
.toast.toast-warning   { border-left: 3px solid var(--orange); }



/* ============================================================
   AUTOCOMPLETE CLIENT (formulaire date)
   ============================================================ */

.client-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
}
.client-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.client-suggestion-item:last-child { border-bottom: none; }
.client-suggestion-item:hover { background: var(--bg3); }

/* Le parent doit être position:relative pour que suggestions se positionne */
#f-client { position: relative; }
.form-group:has(#f-client) { position: relative; }



/* ============================================================
   DROPDOWN CHANGEMENT RAPIDE DE STATUT
   ============================================================ */

.statut-quick-dd {
  position: absolute;
  z-index: 1000;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  padding: 5px;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.statut-quick-item {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.1s;
  display: flex;
  align-items: center;
}
.statut-quick-item:hover { background: var(--bg3); }
.statut-quick-item.statut-quick-active {
  background: var(--primary-bg);
  box-shadow: inset 2px 0 0 var(--primary);
}



/* ============================================================
   BIBLIOTHÈQUE DOCUMENTS
   ============================================================ */

.biblio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.biblio-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}
.biblio-card:hover { border-color: var(--accent); }

.biblio-card-ext {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  align-self: flex-start;
}
.biblio-card-body { flex: 1; }
.biblio-card-nom  { font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.biblio-card-desc { font-size: 12px; color: var(--text2); }
.biblio-card-meta { font-size: 11px; color: var(--text3); margin-top: 4px; }

.biblio-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .biblio-grid { grid-template-columns: 1fr; }
}




/* ============================================================
   RECHERCHE GLOBALE (Cmd+K)
   ============================================================ */

/* Bouton déclencheur dans la sidebar */
.gsearch-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 20px);
  margin: 8px 10px 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: var(--font-body);
}
.gsearch-trigger:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.20); color: rgba(255,255,255,0.80); }
.gsearch-trigger-kbd {
  margin-left: auto;
  font-size: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
}

/* Overlay */
#global-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 40, 0.55);
  backdrop-filter: blur(3px);
  z-index: 99998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}
#global-search-overlay.hidden { display: none; }

/* Modal */
.gsearch-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(15,20,40,0.28), 0 6px 20px rgba(15,20,40,0.14);
  width: min(580px, calc(100vw - 32px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

/* Ligne input */
.gsearch-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.gsearch-icon { color: var(--text3); flex-shrink: 0; width: 18px; height: 18px; }
.gsearch-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  font-family: var(--font-body);
  caret-color: var(--primary);
}
.gsearch-input::placeholder { color: var(--text3); }
.gsearch-esc {
  font-size: 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--text3);
  font-family: var(--font-mono);
  cursor: pointer;
  flex-shrink: 0;
}

/* Résultats */
.gsearch-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 80px;
}
.gs-hint, .gs-empty {
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text3);
  text-align: center;
}
.gs-group-label {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
}
.gs-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 0;
}
.gs-item:hover, .gs-item--active { background: var(--primary-bg); }
.gs-item-icon  { font-size: 15px; flex-shrink: 0; width: 22px; text-align: center; }
.gs-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.gs-item-body  { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.gs-item-label { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-item-meta  { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-hl { background: rgba(58,108,232,0.15); color: var(--primary); border-radius: 2px; font-style: normal; }

/* Footer */
.gsearch-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-mono);
  background: var(--bg2);
}
.gsearch-footer-sep { opacity: 0.4; }


/* ------------------------------------------------------------------ */
/* TABLES — scroll horizontal sur mobile                               */
/* display:block est nécessaire pour que overflow-x fonctionne sur    */
/* les éléments <table>. -webkit-overflow-scrolling active le scroll  */
/* momentum natif sur iOS.                                             */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
}
