/* Styles propres à Rocket Time, sur les variables du design system de la suite (app.css) :
   frise de la journée, pastilles de provenance, grille du mois. Aucune couleur nouvelle. */

.num { text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }
.sources { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; vertical-align: middle; }
.sources .pill { height: 1.125rem; padding: 0 0.375rem; font-size: 11px; }
.day-actions { margin: -0.5rem 0 1rem; }
.day-actions form { margin: 0; }
.flags { margin-bottom: 0.5rem; }
.summary { white-space: pre-line; }
.section-head { margin-bottom: 0.75rem; }
.section-head h2 { font-size: 1.125rem; line-height: 1.75rem; }
.instructions { max-width: 18rem; white-space: pre-line; font-size: 0.75rem; color: var(--muted-foreground); }
.settings-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.card h3 { font-family: var(--font-heading); font-size: 1rem; }
.test-result { display: grid; gap: 0.375rem; min-width: 24rem; max-width: 36rem; margin-top: 0.5rem; font-size: 0.75rem; }
.test-sample { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.page-head form { margin: 0; }
.page-head form.row { flex-wrap: nowrap; }

/* Tableau du jour : une ligne par client, puis ses projets en retrait. */
.group-row td { background: color-mix(in srgb, var(--muted) 40%, transparent); }
.sub-row td:first-child { padding-left: 1.75rem; }

/* Frise : une ligne par projet, blocs positionnés en % de la fenêtre ; défile sur téléphone. */
.frise { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.frise-in { min-width: 46rem; padding: 0.5rem 1.25rem 0.75rem 0.75rem; }
.frise-line { display: grid; grid-template-columns: 11rem 1fr; gap: 0.75rem; align-items: center; min-height: 2.25rem; border-top: 1px solid var(--border); }
.frise-axis { min-height: 1.5rem; border-top: 0; }
.frise-who { min-width: 0; line-height: 1.2; }
.frise-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.frise-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; }
.frise-track { position: relative; height: 1.25rem; border-radius: 0.25rem; background: color-mix(in srgb, var(--muted) 60%, transparent); }
.frise-axis .frise-track { background: none; }
.frise-axis .frise-track span { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.75rem; color: var(--muted-foreground); }
.frise-block { position: absolute; top: 0; bottom: 0; min-width: 3px; overflow: hidden; background: var(--primary); border-radius: 0.25rem; outline: none; }
.frise-block.frise-other { background: var(--muted-foreground); }
.frise-block:hover, .frise-block:focus-visible { box-shadow: var(--focus); }
/* Début estimé : hachures sur la part avancée du bloc. */
.frise-estimated { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(-45deg, var(--card) 0 2px, transparent 2px 6px); opacity: 0.7; }

/* Grille du mois : jours calculés mais pas validés en évidence. */
.month-table th, .month-table td { padding-left: 0.375rem; padding-right: 0.375rem; }
.month-table th a { display: block; line-height: 1.2; }
.month-table .day-draft { background: color-mix(in srgb, var(--warn) 14%, transparent); }
.month-table .day-none { color: var(--muted-foreground); }

.recap-frame { width: 100%; height: 70vh; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.recap-text { overflow-x: auto; white-space: pre-wrap; font-size: 0.8rem; }

/* Projet › tâche : les tâches en retrait sous leur projet. */
.task-row td { padding-top: 0.25rem; padding-bottom: 0.25rem; font-size: 0.8rem; color: var(--muted-foreground); }
.task-row td:first-child { padding-left: 3rem; }
.task-titles summary { cursor: pointer; }
.task-titles ul, .titles { margin: 0.25rem 0 0; padding-left: 1rem; font-size: 0.75rem; color: var(--muted-foreground); }
.day-events > summary { margin-bottom: 0.75rem; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; line-height: 1.75rem; cursor: pointer; }
.task-form { display: flex; gap: 0.5rem; align-items: center; margin: 0; }
.task-form .input { width: 12rem; }
.report-warn { margin-bottom: 1rem; }

/* Rapport client : imprimé pour être joint à une facture, sans barre latérale ni commandes. */
@media print {
  .sidebar, .no-print, .menu { display: none !important; }
  .shell { display: block; min-height: 0; }
  body { background: var(--card); }
  .page { max-width: none; padding: 0; }
  .table-wrap { overflow: visible; border: 0; }
  .table tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
