/* Styles de la version 1.2 : exports et impressions (fichier propre à cette partie, chargé après app.css). */

/* ------------------------------------------------------------------ fiche de l'oiseau : courbe à télécharger ou imprimer */
.exports-courbe { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }

/* ------------------------------------------------------------------ Import / Export */
.grille-export > div { min-width: 0; }
.choix-oiseaux-export { border: 0; margin: 0.4rem 0 0; padding: 0; min-width: 0; }
.choix-oiseaux-export legend { padding: 0; margin-bottom: 4px; }
.choix-oiseaux-export .rangee-tous { margin: 0 0 6px; }
.liste-oiseaux-export { max-height: 17rem; overflow-y: auto; padding: 4px 6px; border: 1px solid var(--trait); border-radius: var(--rayon); }
.liste-oiseaux-export .case label { overflow-wrap: anywhere; }
.lien-inactif { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ------------------------------------------------------------------ pages à imprimer : outils (écran) */
.choix-periode-impression { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.choix-periode-impression select { width: auto; max-width: 100%; }
.dates-impression { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dates-impression[hidden] { display: none; }
.dates-impression input { width: auto; }

/* ------------------------------------------------------------------ feuilles (historique d'un oiseau, météo) */
.feuille-historique, .feuille-meteo { max-width: 210mm; }
.feuille .discret { color: #5f6368; }
.feuille-entete-droite { text-align: right; }
.feuille-entete-droite p { margin: 0; }
.identite-feuille-historique { font-weight: 600; }
.courbe-feuille { margin: 6px 0 8px; }
.courbe-feuille svg { display: block; width: 100%; height: auto; }
.titre-feuille { font-size: 1rem; margin: 12px 0 4px; color: #111; }
.synthese-feuille th, .synthese-feuille td { text-align: center; white-space: normal; }
.tableau-historique-feuille th.nombre, .tableau-meteo-feuille th.nombre { text-align: right; }
.tableau-historique-feuille td:last-child { min-width: 9rem; }
.ration-ecrite-feuille { font-style: italic; color: #444; }
.ligne-jeune td, .ligne-jeune th { background: #f3ece4; }
.tableau-meteo-feuille .ligne-groupe-feuille th { background: #f2f2ef; font-size: 0.8rem; text-transform: none; }
.ligne-aujourdhui-feuille th, .ligne-aujourdhui-feuille td { font-weight: 700; background: #fdf8e8; }
.marque-aujourdhui { font-weight: 400; }
.mentions-meteo-feuille { font-size: 0.75rem; color: #333; margin: 6px 0 0; overflow-wrap: anywhere; }
.mentions-meteo-feuille a { color: #1b4f8a; }

@media (max-width: 560px) {
  .synthese-feuille { font-size: 0.72rem; }
  .synthese-feuille th, .synthese-feuille td { padding: 3px 2px; }
  .feuille-entete-droite { text-align: left; }
}

@media print {
  /* A4 portrait (règle @page générale d'app.css) */
  .feuille-historique, .feuille-meteo { max-width: none; font-size: 9pt; }
  .feuille-historique .feuille-entete h1, .feuille-meteo .feuille-entete h1 { font-size: 15pt; }
  .courbe-feuille { break-inside: avoid; margin: 4px 0 6px; }
  .synthese-feuille { break-inside: avoid; font-size: 7.5pt; }
  .synthese-feuille th, .synthese-feuille td { padding: 2px 3px; }
  .titre-feuille { break-after: avoid; font-size: 10pt; }
  .tableau-historique-feuille, .tableau-meteo-feuille { font-size: 8pt; }
  .tableau-historique-feuille thead, .tableau-meteo-feuille thead { display: table-header-group; }
  .tableau-historique-feuille tr, .tableau-meteo-feuille tr { break-inside: avoid; }
  .ligne-jeune td, .ligne-jeune th, .ligne-aujourdhui-feuille th, .ligne-aujourdhui-feuille td,
  .tableau-meteo-feuille .ligne-groupe-feuille th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mentions-meteo-feuille a { color: inherit; text-decoration: none; }
  .exports-courbe, .choix-periode-impression { display: none !important; }
}
