/* Agenda: Outlook-achtige weekindeling, aansluitend op het LA-ontwerp. */
.agenda-top{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:17px;flex-wrap:wrap}
.agenda-top h1{font-size:30px;letter-spacing:-.055em;line-height:1.2;margin:0;font-weight:680}.agenda-top p{font-size:13px;color:var(--muted);margin:5px 0 0}
.agenda-top-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.agenda-btn{border:1px solid #d7e3dc;border-radius:9px;background:#fff;padding:9px 14px;color:#34544a;cursor:pointer;font:inherit;font-size:13px;font-weight:640;white-space:nowrap;line-height:1.2}
.agenda-btn:hover,.agenda-btn.active{background:#e9f3ef;border-color:#bad8c9}.agenda-btn:focus-visible,.agenda-event:focus-visible,.agenda-slot:focus-visible,.agenda-month-day:focus-visible{outline:3px solid #3c9b80;outline-offset:2px;z-index:5}
.agenda-btn.agenda-primary{background:#236a60;border-color:#236a60;color:#fff}.agenda-btn.agenda-primary:hover{background:#184e47}
.agenda-btn.agenda-arrow{font-size:22px;width:37px;height:37px;padding:3px 0;font-weight:400}
.agenda-summary{display:flex;align-items:stretch;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.agenda-summary>div:not(.agenda-view-switch){border:1px solid var(--line);background:#fff;border-radius:11px;padding:10px 15px;min-width:130px;display:flex;flex-direction:column;gap:2px}
.agenda-summary span{font-size:11px;color:var(--muted)}.agenda-summary strong{font-size:20px;font-weight:680;letter-spacing:-.04em}.agenda-summary strong small{font-size:12px;font-weight:500;color:var(--muted)}
.agenda-view-switch{display:flex;align-items:center;gap:4px;margin-left:auto;padding:4px;border:1px solid var(--line);border-radius:11px;background:#fff}
.agenda-view-switch .agenda-btn{padding:8px 12px;border:0;font-size:12px}
.agenda-shell{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start;min-width:0}
.agenda-content{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}
.agenda-filters{display:flex;align-items:end;flex-wrap:wrap;gap:11px;padding:13px 15px;border-bottom:1px solid var(--line);background:#fff}
.agenda-filters label{font-size:11px;color:#5f746a;font-weight:650;display:flex;flex-direction:column;gap:4px}
.agenda-filters select{max-width:225px;min-width:140px;font:inherit;font-weight:500;font-size:12px;border:1px solid #dbe4dd;background:#fff;color:var(--text);padding:8px 10px;border-radius:8px}
.agenda-filters-caption{margin-left:auto;font-size:11px;color:var(--muted);padding-bottom:7px}
.agenda-grid-scroll{width:100%;overflow:auto;max-height:min(760px,75vh);scrollbar-width:thin}
.agenda-grid{min-width:max-content;width:100%;display:grid;grid-template-columns:54px repeat(var(--agenda-days),minmax(155px,1fr));align-items:stretch}
.agenda-top-corner,.agenda-day-header{position:sticky;top:0;z-index:4;height:72px;background:#fafbf9;border-right:1px solid #e5ebe6;border-bottom:1px solid #e5ebe6}
.agenda-top-corner{text-align:center;color:var(--muted);font-size:10px;padding-top:23px}
.agenda-day-header{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.agenda-day-header span{color:#71837a;font-size:11px;text-transform:uppercase}.agenda-day-header strong{font-size:19px;line-height:1.3;font-weight:660}.agenda-day-header small{font-size:10px;color:#71837a}
.agenda-day-header.today{background:#eaf4f0;color:#176653}.agenda-day-header.today strong{color:#176653}.agenda-day-header.outside-year{opacity:.45}
.agenda-times{position:relative;border-right:1px solid #e5ebe6;background:#fafbf9}.agenda-times span{position:absolute;width:100%;text-align:center;transform:translateY(-7px);font-size:10px;color:#8b9b91;font-variant-numeric:tabular-nums}
.agenda-day-track{position:relative;border-right:1px solid #e1e9e3;background:repeating-linear-gradient(to bottom,transparent 0px,transparent 37px,#edf2ee 37px,#edf2ee 38px,transparent 38px,transparent 75px,#dde8e1 75px,#dde8e1 76px)}
.agenda-day-track.today{background-color:#f4faf7}.agenda-day-track.outside-year{background-color:#f7f7f5;opacity:.55}
.agenda-slot{position:absolute;left:0;width:100%;border:0;background:transparent;cursor:crosshair;z-index:1}
.agenda-slot:hover{background:rgba(35,106,96,.09)}.agenda-slot::after{content:'+';position:absolute;right:6px;top:0;opacity:0;color:#236a60;font-weight:700;font-size:15px}.agenda-slot:hover::after,.agenda-slot:focus-visible::after{opacity:1}
.agenda-event{position:absolute;z-index:2;text-align:left;overflow:hidden;border:1px solid color-mix(in srgb,var(--event-color),#fff 50%);border-left:4px solid var(--event-color);background:var(--event-bg);color:#263b36;border-radius:7px;cursor:pointer;padding:6px 6px 4px;display:flex;flex-direction:column;gap:2px;min-width:0;box-shadow:0 1px 4px #142c2412;line-height:1.2}
.agenda-event:hover{z-index:3;filter:brightness(.975);box-shadow:0 3px 10px #142c2428}
.agenda-event-time{font-size:10px;color:var(--event-color);font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}.agenda-event strong{font-size:11px;white-space:normal;overflow-wrap:anywhere;line-height:1.2;font-weight:730}.agenda-event small{font-size:10px;color:#51665e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agenda-unscheduled{border-top:1px solid #e3ebe5;background:#fbfcfa;padding:17px 15px 20px}
.agenda-unscheduled-heading{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-bottom:12px}.agenda-unscheduled-heading strong{font-size:13px}.agenda-unscheduled-heading span{font-size:11px;color:var(--muted)}
.agenda-unscheduled-day{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;margin-bottom:10px;align-items:start}.agenda-unscheduled-day>div:first-child strong{font-size:11px;color:#6b8075}
.agenda-unscheduled-cards{display:flex;flex-wrap:wrap;gap:7px}.agenda-unscheduled-item{display:flex;align-items:center;gap:5px;max-width:100%;border:1px solid #dbe6df;border-left:3px solid var(--event-color);background:var(--event-bg);border-radius:6px;padding:8px;cursor:pointer;font:inherit;font-size:11px;color:var(--text)}
.agenda-unscheduled-item:hover{filter:brightness(.97)}.agenda-unscheduled-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}.agenda-unscheduled-item em{font-style:normal;color:var(--event-color);white-space:nowrap;font-weight:720}.agenda-blank-note{font-size:11px;color:var(--muted);margin:0}
.agenda-aside{background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden;position:sticky;top:12px}.agenda-aside-title{padding:16px 17px;border-bottom:1px solid var(--line);font-size:14px;font-weight:700}
.agenda-detail,.agenda-aside-empty,.agenda-aside-hint{padding:18px}.agenda-aside-empty{font-size:12px;color:var(--muted);line-height:1.7}.agenda-detail-date{font-size:12px;color:var(--muted);margin-bottom:8px}.agenda-detail-project{display:flex;gap:7px;align-items:center;font-size:12px;font-weight:650}.agenda-detail-dot{height:9px;width:9px;border-radius:100%}.agenda-detail h3{font-size:17px;line-height:1.25;margin:12px 0 6px}.agenda-detail p{font-size:12px;color:#687a70;line-height:1.5;overflow-wrap:anywhere}
.agenda-detail dl{display:grid;grid-template-columns:1fr auto;gap:10px;margin:16px 0 18px;font-size:12px}.agenda-detail dt{color:var(--muted)}.agenda-detail dd{text-align:right;font-weight:700;margin:0}.agenda-detail .agenda-btn{width:100%}
.agenda-aside-hint{border-top:1px solid var(--line);background:#fafbf9}.agenda-aside-hint strong{font-size:12px}.agenda-aside-hint p{font-size:11px;line-height:1.5;color:var(--muted);margin:7px 0 0}
.agenda-month-wrap{padding:8px 12px 18px}.agenda-month-labels,.agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.agenda-month-labels span{text-align:center;font-size:11px;color:var(--muted);padding:10px 0}
.agenda-month-day{background:#fff;border:1px solid #e4ece6;border-radius:8px;min-height:104px;padding:6px;text-align:left;display:flex;flex-direction:column;gap:4px;cursor:pointer;overflow:hidden}.agenda-month-day:hover{background:#f3faf6;border-color:#b5d4c4}.agenda-month-day.other-month{background:#f9faf8;color:#b5c0b8}.agenda-month-day.today{border-color:#398b75;box-shadow:inset 0 0 0 1px #398b75}.agenda-month-day:disabled{opacity:.48;cursor:default}.agenda-month-number{font-size:12px;font-weight:700}.agenda-month-day>strong{font-size:11px;color:#287564}.agenda-month-item{font-size:10px;color:var(--event-color);border-left:2px solid var(--event-color);background:var(--event-bg);padding:2px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.agenda-month-day>small{font-size:10px;color:var(--muted)}
.agenda-time-hint{font-size:11px;color:var(--muted);margin-top:-8px;margin-bottom:12px}.agenda-editor-time{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.agenda-editor-time .field{min-width:0}
@media (max-width:1150px){.agenda-shell{grid-template-columns:minmax(0,1fr)}.agenda-aside{position:static}.agenda-filters-caption{display:none}}
@media (max-width:700px){.agenda-top h1{font-size:24px}.agenda-top-actions{width:100%}.agenda-summary>div:not(.agenda-view-switch){min-width:93px;flex:1;padding:9px}.agenda-summary strong{font-size:18px}.agenda-view-switch{margin-left:0;width:100%;justify-content:center}.agenda-filters{padding:10px}.agenda-filters select{min-width:125px;max-width:155px}.agenda-grid{grid-template-columns:48px repeat(var(--agenda-days),minmax(148px,1fr))}.agenda-month-day{min-height:80px;padding:3px}.agenda-month-labels,.agenda-month-grid{gap:2px}.agenda-month-item{display:none}.agenda-month-day>strong{font-size:10px}.agenda-unscheduled-day{grid-template-columns:70px minmax(0,1fr);gap:6px}.agenda-editor-time{grid-template-columns:1fr 1fr}.agenda-editor-time .field:last-child{grid-column:1/-1}}
@media print{.agenda-top-actions,.agenda-filters,.agenda-btn,.agenda-slot,.agenda-aside{display:none!important}.agenda-shell{display:block}.agenda-grid-scroll{max-height:none;overflow:visible}.agenda-grid{min-width:0;grid-template-columns:50px repeat(var(--agenda-days),minmax(0,1fr))}.agenda-event{print-color-adjust:exact;-webkit-print-color-adjust:exact}.agenda-month-item{display:block}}

/* Historische uren krijgen een zichtbare, maar niet als werkelijke tijd opgeslagen plek. */
.agenda-event-untimed{border-style:dashed;border-left:4px dashed var(--event-color);background:repeating-linear-gradient(135deg,var(--event-bg),var(--event-bg) 12px,#ffffff 12px,#ffffff 15px)}
.agenda-event-untimed .agenda-event-time{font-style:italic;white-space:normal}
.agenda-visual-legend{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;padding:11px 15px;border-top:1px solid #e4ebe5;background:#fafbf9;color:#63786d;font-size:11px;line-height:1.4}
.agenda-visual-legend strong{color:#3e6051;font-weight:700}
.agenda-legend-dot{display:inline-block;width:17px;height:12px;border:1px dashed #4c917b;background:repeating-linear-gradient(135deg,#e7f4ef,#e7f4ef 5px,#fff 5px,#fff 7px);vertical-align:middle}
.agenda-selection-preview{position:absolute;left:2px;right:2px;background:rgba(39,117,100,.22);border:2px solid #287564;box-shadow:inset 0 0 0 1px #fff6;border-radius:7px;pointer-events:none;z-index:6;min-height:20px;overflow:hidden}
.agenda-selection-label{display:block;padding:6px 8px;color:#124d3d;font-size:12px;font-weight:720;line-height:1.25}
.agenda-day-track:has(.agenda-selection-preview) .agenda-slot:hover::after{opacity:0}
@media print{.agenda-selection-preview{display:none!important}.agenda-event-untimed{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
