/* Rubrique « Journaux » (src/web/modules/journaux.js). Mêmes groupes, lignes et champs que Modération et Tickets. */
.jx { display: grid; gap: 20px; }

/* Ligne d'une catégorie : texte et interrupteur sur la même rangée, le salon dessous (téléphone) ou entre les deux. */
.ligne-r.jx-ligne { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "texte bascule" "salon salon"; column-gap: 16px; row-gap: 12px; }
.ligne-r.jx-ligne.jx-seule { grid-template-areas: "texte bascule"; }
.jx-ligne .jx-texte { grid-area: texte; }
.jx-ligne .jx-salon { grid-area: salon; min-width: 0; }
.jx-ligne .jx-bascule { grid-area: bascule; display: flex; align-items: center; }
@media (min-width: 735px) {
  .ligne-r.jx-ligne { grid-template-columns: minmax(0, 1fr) minmax(200px, 260px) auto; grid-template-areas: "texte salon bascule"; column-gap: 20px; }
  .ligne-r.jx-ligne.jx-seule { grid-template-areas: "texte salon bascule"; }
}

.jx-puces .ajout-puce { width: auto; min-width: 0; max-width: 100%; flex: 1 1 180px; }

/* Recherche dans l'historique */
.jx-recherche { display: grid; gap: 12px; padding: 6px 22px 16px; grid-template-columns: minmax(0, 1fr); }
.jx-champ { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.jx-champ > span { color: var(--attenue); font-weight: 500; }
.jx-envoi { align-self: end; }
.jx-envoi .bouton { width: 100%; min-height: 44px; }
@media (min-width: 735px) {
  .jx-recherche { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
  .jx-recherche:has([data-jx-date]) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .jx-recherche:has([data-jx-date]) .jx-envoi .bouton { width: auto; }
}
.saisie[type="date"] { color-scheme: dark; }

.jx-vide { margin: 0; padding: 18px 22px 22px; color: var(--attenue); font-size: 15px; }

/* Liste des événements */
.jx-liste { list-style: none; margin: 0; padding: 0 0 8px; }
.jx-evt { position: relative; padding: 14px 22px; min-width: 0; }
.jx-evt + .jx-evt::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 1px; background: var(--trait); }
.jx-evt-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jx-evt-tete time { color: var(--attenue); font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.jx-evt h3 { margin: 8px 0 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.jx-qui { margin: 2px 0 0; color: var(--attenue); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.jx-qui b { color: var(--texte); font-weight: 600; }
.jx-details { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--texte); overflow-wrap: anywhere; }
.jx-citation { margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--tuile-survol); font-size: 14.5px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 210px; overflow: auto; }
.jx-avant-apres { display: grid; gap: 8px; margin-top: 8px; }
@media (min-width: 735px) { .jx-avant-apres { grid-template-columns: 1fr 1fr; } }
.jx-avant-apres > div { padding: 8px 12px; border-radius: 10px; background: var(--tuile-survol); min-width: 0; }
.jx-avant-apres p { margin: 2px 0 0; font-size: 14.5px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 168px; overflow: auto; }
.jx-mini { color: var(--attenue); font-size: 12px; font-weight: 600; }
.jx-id { margin: 6px 0 0; color: #80838a; font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; user-select: text; -webkit-user-select: text; }

.jx-pages { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.jx-page-n { color: var(--attenue); font-size: 14px; font-variant-numeric: tabular-nums; }
