/* Planning : une colonne par jour, une ligne par moment de la journée */
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-nav .label { font-family: var(--f-display); font-weight: 700; min-width: 150px; text-align: center; }
.days { display: grid; grid-template-columns: repeat(7, minmax(132px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.day { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
.day.today { border-color: var(--basil); box-shadow: 0 0 0 1px var(--basil); }
.day-head { padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.day-head h3 { font-size: 15px; text-transform: capitalize; }
.day-kcal { font-family: var(--f-data); font-size: 12px; color: var(--muted); }
.day-kcal b { color: var(--ink); font-weight: 500; font-size: 15px; }
.day-kcal.over b { color: var(--danger); }
.slot { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px dashed var(--line); }
.slot:last-child { border-bottom: 0; }
.slot-label { font: 700 11px var(--f-data); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.entry { border-radius: 8px; padding: 6px 8px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.entry.pdj { background: var(--tab-pdj); } .entry.dej { background: var(--tab-dej); } .entry.din { background: var(--tab-din); } .entry.snk { background: var(--tab-snk); }
.entry a { color: var(--ink); font-weight: 700; text-decoration: none; }
.entry-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-data); font-size: 11px; color: var(--muted); }
.entry .icon-btn { width: 22px; height: 22px; font-size: 13px; }
.add-slot { border: 1px dashed var(--line); background: none; border-radius: 8px; color: var(--muted); padding: 4px; cursor: pointer; font: 700 12px var(--f-body); }
.add-slot:hover { color: var(--basil); border-color: var(--basil); }
@media (max-width: 720px) { .days { grid-template-columns: repeat(7, 78vw); } }
.entry .batch { align-self: flex-start; font: 700 10px var(--f-data); text-transform: uppercase; letter-spacing: .06em; background: var(--ink); color: var(--sheet); border-radius: 4px; padding: 1px 5px; }
.dm-track { display: block; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; flex: 1; }
.dm-track.big { height: 7px; flex: none; }
.dm-track b { display: block; height: 100%; border-radius: 99px; }
.dm-track b.k { background: var(--basil); } .dm-track b.k.over { background: var(--danger); }
.dm-track b.p { background: var(--prot); } .dm-track b.g { background: var(--gluc); } .dm-track b.l { background: var(--lip); }
.day-left { font: 11px var(--f-data); color: var(--muted); }
.day-macros { display: flex; flex-direction: column; gap: 3px; }
.dm { display: grid; grid-template-columns: 12px 1fr auto; gap: 6px; align-items: center; font: 10px var(--f-data); color: var(--muted); font-variant-numeric: tabular-nums; }
.left-box { background: var(--paper); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.left-box .dm { font-size: 11px; grid-template-columns: 14px 1fr 70px; }
.fit { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fit.over { color: var(--danger); }
/* Le planning a besoin de plus de largeur que les autres pages */
main:has(.days) { max-width: 1400px; }
.day-head h3 { white-space: nowrap; }
body:has(.days) .appbar-inner { max-width: 1400px; }
.day-left { white-space: nowrap; }
