.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.calendar-navigation{display:flex;align-items:center;gap:10px}.calendar-navigation h2{margin:0;min-width:180px;text-align:center}.calendar-weekdays,.calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-weekdays{padding:10px 0;text-align:center;font-weight:700}.calendar-week{position:relative;border-top:1px solid #8885;padding:5px 0 12px;min-height:100px;grid-auto-rows:minmax(26px,auto)}.calendar-day{grid-row:1;padding:4px 8px;font-size:13px;border-radius:4px}.calendar-day.outside{opacity:.45}.calendar-day.today{background:#410101;color:#fff;font-weight:700}.calendar-event{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;border:1px solid #41010144;border-radius:5px;background:#41010112;color:inherit;padding:5px 8px;font-size:12px;cursor:pointer}.calendar-event.inspection{border-color:#b07721;background:#b077211c}.calendar-event.continues-before{border-left:3px solid #410101}.calendar-event.continues-after{border-right:3px solid #410101}.calendar-event:hover{background:#41010124}.calendar-agenda{display:none}.calendar-agenda-card,.calendar-active-card{display:flex;flex-direction:column;gap:5px;text-align:left;width:100%;padding:14px;border:1px solid #8885;border-radius:8px;background:transparent;color:inherit;cursor:pointer;overflow-wrap:anywhere}.calendar-agenda-card strong,.calendar-active-card strong{font-size:15px}.calendar-agenda-card span,.calendar-active-card span{font-size:13px}.calendar-active-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.calendar-detail-fields{display:grid;gap:16px}.calendar-detail-fields>div{display:flex;flex-direction:column;gap:5px;min-width:0}.calendar-detail-fields span{white-space:pre-wrap;overflow-wrap:anywhere}.calendar-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.calendar-form-grid label{min-width:0}.calendar-form-grid .wide-field{grid-column:1/-1}.calendar-targets{margin-top:20px}.calendar-targets legend{font-weight:700}.calendar-target-choices{display:grid;gap:18px;margin-top:14px}.calendar-target-choices h3{font-size:14px;margin:0 0 8px}.calendar-choice-list{display:grid;gap:4px}.calendar-choice{display:flex!important;align-items:center;gap:10px;padding:9px;border-bottom:1px solid #8883;overflow-wrap:anywhere}.calendar-choice input{width:auto!important;flex:none}.calendar-choice span{flex:1;min-width:0}.calendar-choice small{opacity:.75}.calendar-targets fieldset{min-width:0}.calendar-overdue{color:#a95612;font-weight:700}.calendar-form-error:empty{display:none}[data-theme="DARK"] .calendar-event{background:#d78d8d18;border-color:#d78d8d66}[data-theme="DARK"] .calendar-event:hover{background:#d78d8d30}[data-theme="DARK"] .calendar-overdue{color:#efbe6b}
.calendar-choice[hidden]{display:none!important}#calendarEventForm input[type="checkbox"]{width:18px!important;height:18px!important;min-width:18px;min-height:18px;flex:none;margin:0;padding:0;accent-color:#410101}#calendarEventForm label:has(>span>input[type="checkbox"])>span{display:flex;align-items:center;gap:10px}#activeCalendarPanel{margin-bottom:20px}
@media(max-width:700px){.calendar-grid,.calendar-weekdays{display:none}.calendar-agenda{display:grid;gap:10px}.calendar-form-grid{grid-template-columns:1fr}.calendar-navigation h2{min-width:0;font-size:18px}.calendar-toolbar{align-items:stretch}.calendar-navigation{flex:1;justify-content:space-between}.calendar-target-choices{gap:12px}.calendar-form-grid .wide-field{grid-column:auto}}
.calendar-targets{min-width:0;border:1px solid var(--ui-border);border-radius:12px;padding:16px;background:var(--ui-surface-soft)}
.calendar-targets legend{padding:0 6px;color:var(--ui-text)}
.calendar-targets input[type="search"]{width:100%;min-width:0}
.calendar-choice:last-child{border-bottom:0}
