/* ===== v511 — Tâches : « À faire » et « Historique » (refonte Balisage, lot E)
   Maquette .impeccable/mocks/balisage/index.html, écran Tâches. Jetons de
   design.css SEULEMENT ; les lignes, groupes, puces et coches viennent de
   design.css / aujourdhui.css. */
.ta-panneau { margin-top: 4px; }
.ta-panneau .ta-qui { display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 20px 6px; }
.ta-panneau .groupe .ta-n { color: var(--encre-3); font-weight: 500; margin-left: 4px; }
.ta-panneau .ligne.ret .h { color: var(--rouge); font-weight: 600; }
.ta-panneau .ta-rec { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--bleu); font-size: 12px; }
.ta-panneau .ta-rec svg.i { width: 13px; height: 13px; }
.ta-panneau .typ.fait { color: var(--vert); }
.ta-panneau .ta-fait .h { text-align: right; line-height: 1.3; }
.ta-panneau .ta-outils { display: flex; gap: 8px; align-items: center; padding: 4px 20px 8px; color: var(--encre-2); font-size: 13.5px; }
.ta-panneau .ta-outils select.inp { flex: none; width: auto; min-height: 36px; }
.ta-panneau .vide-msg { padding: 16px 20px 20px; }
@media (max-width: 820px) {
  .ta-panneau .ta-qui { padding: 12px 14px 4px; }
  .ta-panneau .ligne { padding: 0 14px; }
  .ta-panneau .ta-rec { display: flex; margin-left: 0; }
}

/* ===== v530 — Tâches (MODULES_CONTRAT) : une rangée d'outils, ligne ≤ 64 px, jetons seulement ===== */
.tk-phrase { margin: 0 0 12px; color: var(--encre-2); font-size: 15px; }
.tk-phrase .neg { color: var(--rouge); font-weight: 600; }
.tk-phrase .lien { font: inherit; color: var(--bleu); }
.tk2 .tk-barre { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin-bottom: 12px; }
.tk2 .tk-viewsel { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tk2 .tk-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.tk2 .tk-tools .btn { min-height: 40px; white-space: nowrap; }
.tk-seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; white-space: nowrap; }
.tk-seg button svg.i { width: 16px; height: 16px; }
.tk-seg .tk-seg-lb { display: inline !important; }
.tk-eq-btn b { font-weight: 600; }
.tk-seg-court { display: none; }
.tk2 .tk-tools .btn { font-size: 14px; }
.tk-plus-g { margin: 14px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--encre-2); text-transform: none; letter-spacing: 0; }
.menu-liste .irow .ic svg.i { width: 18px; height: 18px; color: var(--bleu); }
/* ligne de la liste */
.tk-list .tk-row { align-items: center; gap: 10px; padding: 6px 12px 6px 8px; min-height: 56px; border-left: 3px solid var(--eq, transparent); }
.tk-list .tk-row.avec-eq { border-left-color: var(--eq); }
.tk-list .tk-row.late, .tk-list .tk-row.p-haute, .tk-list .tk-row.p-basse { border-left-color: var(--eq, transparent); }
.tk-list .tk-check { width: 44px; height: 44px; margin: 0; border-width: 2px; border-color: var(--trait-fort); color: var(--sur-bleu); }
.tk-list .tk-check svg.i { width: 20px; height: 20px; }
.tk-list .tk-check.on { background: var(--vert); border-color: var(--vert); }
.tk-list .tk-main { gap: 2px; }
.tk-list .tk-l1 { flex-wrap: nowrap; min-width: 0; }
.tk-list .tk-titre { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tk-list .tk-l2 { font-size: 13px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.tk-list .tk-badge-b { color: var(--encre-3); flex: none; }
.tk-list .tk-badge-b svg.i { width: 14px; height: 14px; }
.tk-list .tk-right { flex-direction: row; align-items: center; gap: 6px; padding: 0; }
.tk-ech-chip.retard { color: var(--rouge); font-weight: 600; }
.tk-chip-prio.p-haute, .tk-chip-prio.p-urgente { background: var(--rouge-pale); color: var(--rouge); border-color: transparent; }
/* fiche ouverte en panneau : la liste n'a plus que ~600 px — segments sans icônes, « Histo. » */
body.avec-panneau .tk-seg button svg.i { display: none; }
body.avec-panneau .tk-seg [data-tkv="historique"] .tk-seg-lb { display: none !important; }
body.avec-panneau .tk-seg [data-tkv="historique"] .tk-seg-court { display: inline; }
@media (max-width: 820px) {
  .tk2 .tk-barre { gap: 6px; }
  .tk2 .tk-viewsel .tk-seg button { padding: 0 8px; font-size: 13px; }
  .tk2 .tk-viewsel .tk-seg { padding: 3px; gap: 0; }
  .tk-seg button svg.i { display: none; }
  .tk2 .tk-tools .btn { min-height: 44px; }
  .tk-eq-btn { display: none !important; }
  .tk-seg [data-tkv="historique"] .tk-seg-lb { display: none !important; }
  .tk-seg [data-tkv="historique"] .tk-seg-court { display: inline; }
  .tk-list .tk-right { flex-direction: column; align-items: flex-end; gap: 2px; max-width: 42%; }
  .tk-list .tk-right > * { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* éditeur (P6/P7) : titre + ⋯, « Marquer terminé » en tête, 2 colonnes au PC, pastille choisie PLEINE */
.tk-fiche-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tk-fiche-tete .tk-titre-in { flex: 1; min-width: 0; }
.tk-suite { margin: 0 0 14px; }
.tk-suite .btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tk-suite .btn svg.i { width: 18px; height: 18px; }
.tk-2col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 20px; }
.sheet.panneau .tk-2col { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .sheet:not(.panneau) .tk-2col { grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); grid-template-areas: "g d"; }
  .sheet:not(.panneau) .tk-2col .tk-col-g { grid-area: g; }
  .sheet:not(.panneau) .tk-2col .tk-col-d { grid-area: d; }
}
.tk-mchip.on, .tk-mchip.on:disabled { background: var(--bleu) !important; border-color: var(--bleu) !important; color: var(--sur-bleu) !important; opacity: 1; }
.tk-mchip { min-height: 40px; }
.tk-fiche .tk-sec > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; }
