/* CRM BlueIa · vue « Agenda » (refonte V3) */
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-4); align-items: start; }
.agenda-cal { overflow: hidden; display: flex; flex-direction: column; }
.agenda-toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.agenda-toolbar__title { font-size: 15px; margin-left: 6px; white-space: nowrap; }
.agenda-legend { margin-left: auto; display: inline-flex; gap: 12px; font-size: 12px; color: var(--muted); }
.agenda-legend span { display: inline-flex; align-items: center; gap: 5px; }
.agenda-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.agenda-dot--rdv { background: var(--accent); } .agenda-dot--rappel { background: #D97706; } .agenda-dot--close { background: var(--danger); }

.agenda-head, .agenda-allday, .agenda-grid { display: grid; }
.agenda-head { border-bottom: 1px solid var(--line); }
.agenda-head__day { padding: 9px 10px; font-size: 13px; font-weight: 500; color: #374151; border-left: 1px solid var(--line-2, #EEF0F3); }
.agenda-head__day.is-today { color: var(--accent-fg); font-weight: 700; }
.agenda-allday { border-bottom: 1px solid var(--line); min-height: 34px; }
.agenda-allday__label { font-size: 11px; color: #9CA3AF; text-align: right; padding: 9px 8px 0 0; }
.agenda-allday__cell { border-left: 1px solid var(--line-2, #EEF0F3); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agenda-chip { display: block; font-size: 11.5px; font-weight: 600; color: #92400E; background: #FEF6E7; border-radius: 6px; padding: 2px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.agenda-chip:hover { text-decoration: none; filter: brightness(.97); }
.agenda-chip--more { color: var(--muted); background: var(--hover); font-weight: 500; }

.agenda-scroll { max-height: 640px; overflow-y: auto; }
.agenda-hours { position: relative; }
.agenda-hour { position: absolute; right: 9px; font-size: 11px; color: #9CA3AF; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.agenda-hour:first-child { transform: none; }
.agenda-col { position: relative; border-left: 1px solid var(--line-2, #EEF0F3);
  background-image: linear-gradient(to bottom, var(--line-2, #EEF0F3) 1px, transparent 1px); }
.agenda-col.is-today { background-color: #FAFBFF; }
.agenda-ev { position: absolute; left: 4px; right: 4px; border-radius: 7px; padding: 3px 8px 0 10px; overflow: hidden; text-decoration: none; font-size: 11.5px; line-height: 1.35; color: var(--ink); }
.agenda-ev:hover { text-decoration: none; filter: brightness(.97); z-index: 2; }
.agenda-ev--rdv { background: var(--accent-bg); box-shadow: inset 3px 0 0 var(--accent); }
.agenda-ev--rdv .agenda-ev__title, .agenda-ev--rdv strong { color: var(--accent-fg); }
.agenda-ev--rappel { background: #FEF6E7; box-shadow: inset 3px 0 0 #D97706; }
.agenda-ev--rappel strong { color: #92400E; }
.agenda-ev.is-done { background: #F3F4F6; box-shadow: inset 3px 0 0 #C4C9D2; }
.agenda-ev.is-done strong { color: var(--muted); }
.agenda-ev.is-close { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1.5px var(--danger); }
.agenda-ev.is-close .agenda-ev__sub { color: var(--danger); font-weight: 600; }
.agenda-ev__title { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-ev__sub { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-ev__line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.agenda-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--danger); z-index: 3; }
.agenda-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.agenda-empty { margin: 0; padding: 12px 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

.agenda-aside { display: flex; flex-direction: column; gap: var(--s-4); }
.agenda-side.is-alert { border-color: #F0C4C4; }
.agenda-side__head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2, #EEF0F3); }
.agenda-side__head h2 { font-size: 15px; font-weight: 600; margin: 0; flex: 1; }
.agenda-side__row { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line-2, #EEF0F3); color: var(--ink); text-decoration: none; }
.agenda-side__link:hover { background: var(--hover); text-decoration: none; }
.agenda-side__main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--ink); text-decoration: none; }
.agenda-side__main span { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.agenda-side__when { width: 46px; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.agenda-side__when strong { color: var(--ink); font-size: 13px; }
.agenda-side__empty { margin: 0; padding: 12px 18px; font-size: 13px; color: var(--muted); }
.agenda-side__foot { padding: 11px 18px; font-size: 12px; }

@media (max-width: 1100px) { .agenda-layout { grid-template-columns: minmax(0, 1fr); } }
.agenda-more { position: absolute; right: 3px; z-index: 4; font-size: 11px; font-weight: 700; color: #fff; background: #92400E; border-radius: 99px; padding: 1px 7px; text-decoration: none; }
.agenda-more:hover { text-decoration: none; }
