/* Écran Travailler (lot C2, validé par l’auteur le 04/12). Même fenêtre que Carnet et Balade v2 ; seules les pièces propres à Travail sont ici.
   Liée dans index.html. */
.sv-travail2 .b-solde { display: flex; }
.sv-travail2 .cn-corps { background: transparent; position: relative; z-index: 2; }

/* durées : trois cases comme Balade, avec la petite ligne d'étoiles en pied */
.tv-durees .bl-d { min-height: 128px; gap: 1px; justify-content: flex-start; padding-top: 10px; }
.tv-durees .bl-d img { width: 40px; height: 40px; }
.tv-durees .bl-d b { font-size: 21px; line-height: 24px; }
.tv-gain { display: flex; justify-content: center; min-height: 24px; margin-top: 3px; }
.tv-gain .bl-etoile { font-size: 15px; }
.tv-durees .bl-d .tv-gain img { width: 20px; height: 20px; }
.tv-gain.rien { align-items: center; font: 700 13px/16px "Familjen Grotesk", sans-serif; color: var(--d); }

/* carte d'aide : icône à gauche, deux lignes */
.tv-aide { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; padding: 12px; flex: none; }
.tv-aide img { width: 48px; height: 48px; image-rendering: pixelated; }
.tv-aide b { display: block; font: 800 16px/19px "Familjen Grotesk", sans-serif; }
.tv-aide span { display: block; margin-top: 2px; font: 400 14px/17px "Familjen Grotesk", sans-serif; color: var(--d); }

/* cases du jour : icône un peu plus petite que celles du Carnet, l'écran a plus à dire */
.sv-travail2 .cn-sem .cn-case img { width: 40px; height: 40px; }
.sv-travail2 .cn-sem .cn-case b { font-size: 26px; line-height: 30px; }

/* la semaine : 7 jours, un cachet par jour travaillé */
.tv-semaine { flex: none; padding: 10px 10px 12px; }
.tv-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.tv-jour { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.tv-jour i { font: 800 12px/16px "Familjen Grotesk", sans-serif; font-style: normal; color: var(--d); }
.tv-jour.auj i { color: var(--t); font-weight: 900; padding: 0 5px; border-bottom: 3px solid var(--t2); line-height: 14px; }
.tv-cachet { position: relative; width: 100%; max-width: 44px; aspect-ratio: 1; display: grid; place-items: center; }
.tv-cachet img { width: 90%; height: auto; image-rendering: pixelated; }
.tv-jour.vide .tv-cachet img { opacity: .4; }
.tv-cachet em { position: absolute; right: -6px; bottom: -4px; color: var(--t); font: 900 13px/15px "Familjen Grotesk", sans-serif; font-style: normal; text-shadow: 1px 0 var(--p), -1px 0 var(--p), 0 1px var(--p), 0 -1px var(--p); }
.tv-note { margin: 8px 2px 0; text-align: center; font: 400 14px/18px "Familjen Grotesk", sans-serif; color: var(--d); }

/* en cours : grande carte, heure de fin, cachets qui se remplissent (pas de chiffres qui défilent) */
.tv-encours { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 10px; align-items: center; padding: 12px; flex: none; }
.tv-encours > div:not(.tv-cachets) b { display: block; font: 800 21px/25px "Familjen Grotesk", sans-serif; }
.tv-encours > div:not(.tv-cachets) span { display: block; font: 400 15px/18px "Familjen Grotesk", sans-serif; color: var(--d); }
.tv-cachets { grid-column: 1 / 3; display: flex; justify-content: space-between; gap: 6px; }
.tv-cachets i { flex: 1 1 0; max-width: 60px; aspect-ratio: 1; display: grid; place-items: center; border: 3px solid var(--jc); border-radius: 12px; background: var(--c); box-sizing: border-box; }
.tv-cachets i img { width: 36px; height: 36px; image-rendering: pixelated; opacity: .4; }
.tv-cachets i.ok { background: var(--jc); border-color: var(--jo); }
.tv-cachets i.ok img { opacity: 1; }
.tv-encours .tv-note { grid-column: 1 / 3; margin: 0; }

/* fini */
.tv-fini b { font-size: 19px; line-height: 23px; }

/* Règle 0d (04/12) : textes écrits pour leur boîte, coupures équilibrées, rien de serré. */
.sv-travail2 .cn-bulle-t, .tv-aide b, .tv-encours b, .tv-fini b { text-wrap: balance; }
.tv-aide span, .tv-note, .tv-fini span { text-wrap: pretty; }
.tv-durees .bl-d small { white-space: nowrap; }
.sv-travail2 .cn-sem .cn-case span { white-space: nowrap; }

/* Règle 0e (04/12) : boutons d'action = rectangle arrondi de la boutique v3, pas pilule ; même forme et même hauteur partout. */
.sv-travail2 .cn-go { border-radius: 14px; min-height: 50px; }
