/* =========================================================================
   SPICA — Historique des modifications des temps planifiés (2026-10-12)
   Fenêtre ouverte par HistoriquePlanif.js, bouton d'accès et champ « motif » de PlanifTemps.php.
   ========================================================================= */

/* Bouton d'accès à l'historique (carte du projet, sélecteur de collaborateur) */
.hp-acces {
	border: 1px solid #3903A5; background: #fff; color: #3903A5; border-radius: 8px;
	padding: 2px 12px; font-size: 12.5px; font-weight: bold; cursor: pointer; white-space: nowrap;
}
.hp-acces:hover { background: #f3f1f8; }
.hp-acces i { margin-right: 4px; }
.hp-derniere { color: #666; font-size: 12px; }
.hp-derniere i { color: #3903A5; margin-right: 4px; }

/* Motif facultatif saisi à côté du bouton de validation */
.hp-motif-saisie { flex: 1 1 320px; max-width: 520px; border: 1px solid #d9d4e7; border-radius: 10px; padding: 6px 12px; font-size: 13px; }
.hp-motif-saisie:focus { outline: none; border-color: #3903A5; box-shadow: 0 0 0 3px rgba(57, 3, 165, 0.15); }

/* Fenêtre */
dialog.hp-fenetre { border: none; border-radius: 14px; padding: 0; width: min(900px, 96vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
dialog.hp-fenetre::backdrop { background: rgba(30, 20, 60, 0.45); }
.hp-contenu { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; max-height: 92vh; font-size: 13px; color: #222; text-align: left; }
.hp-titre { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hp-titre h2 { font-size: 18px; margin: 0; color: #3903A5; font-weight: bold; }
.hp-fermer { border: none; background: none; font-size: 26px; line-height: 1; color: #777; cursor: pointer; }
.hp-aide { margin: 0; color: #666; font-size: 12.5px; }
.hp-liste { overflow: auto; flex: 1 1 auto; min-height: 120px; padding-right: 4px; }
.hp-actions { display: flex; justify-content: flex-end; }
.hp-bouton { border: 1px solid #3903A5; background: #3903A5; color: #fff; border-radius: 10px; padding: 5px 18px; font-weight: bold; cursor: pointer; }
.hp-vide { color: #8a84a0; font-style: italic; margin: 10px 0; }
.hp-vide i { margin-right: 4px; }

/* Une opération = un enregistrement */
.hp-operation { border: 1px solid #e4e0ee; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
.hp-op-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 6px; }
.hp-date { font-weight: bold; color: #2a0279; }
.hp-auteur { color: #444; }
.hp-op-entete i { color: #3903A5; margin-right: 3px; }
.hp-origine { font-size: 11px; font-weight: bold; border-radius: 20px; padding: 1px 10px; }
.hp-o-saisie { background: #f3f1f8; color: #3903A5; }
.hp-o-reaff { background: #fff4e0; color: #8a5300; }
.hp-o-annul { background: #eeeaf5; color: #6b6585; }
.hp-solde { margin-left: auto; color: #8a84a0; font-size: 12px; }
.hp-motif { background: #faf9fd; border-left: 3px solid #cfc7e6; border-radius: 4px; padding: 4px 10px; margin-bottom: 6px; color: #3d3557; }
.hp-motif i { color: #3903A5; margin-right: 4px; }
.hp-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.hp-table th { text-align: center; color: #8a84a0; font-weight: normal; font-size: 11.5px; padding: 2px 8px; border-bottom: 1px solid #f1eff6; }
.hp-table td { text-align: center; padding: 3px 8px; border-bottom: 1px solid #f7f5fb; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-table th:first-child, .hp-table td.hp-texte { text-align: left; white-space: normal; }
.hp-table tr:last-child td { border-bottom: 0; }
.hp-fleche { color: #cfc7e6; }
.hp-plus { color: #1e7b34; font-weight: bold; }
.hp-moins { color: #b3261e; font-weight: bold; }

/* PlanifTemps.php : le motif est sur la même ligne que le bouton « Valider la planification » */
.pt-actions .hp-motif-saisie { width: 420px; max-width: 60%; margin-right: 10px; vertical-align: middle; }
