.calendar-panel{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dce5ef;border-radius:10px;padding:14px;gap:10px;overflow:hidden}
.calendar-toolbar,.calendar-legend,.calendar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calendar-toolbar .calendar-status{margin-left:auto;font-size:0.75rem;color:#5d7087}
.calendar-toolbar button,.calendar-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.calendar-panel button svg,.calendar-dialog button svg{width:17px;height:17px;flex-shrink:0}.calendar-dialog button{display:inline-flex;align-items:center;gap:6px}
.calendar-host{flex:1;min-height:0;font-size:0.75rem;color:#24384d}
.calendar-host button{font:inherit}
.calendar-day-top{display:flex;justify-content:center;padding:1px 0}.calendar-day-number{display:block;min-width:22px;text-align:center;line-height:22px;border-radius:50%}.calendar-day-number.today{background:#4676a6;color:#fff}
.calendar-legend{font-size:0.6875rem;color:#53677e;gap:18px}
.calendar-legend span:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:#4676a6}
.calendar-legend .complete:before{background:#33856b}.calendar-legend .cancelled:before{background:#c67a18}.calendar-legend .holiday:before{background:#ab5260}
.calendar-event{padding:2px 5px;min-width:0;line-height:1.2;overflow:hidden}
.calendar-event strong,.calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-event small{opacity:.95;font-size:0.625rem}
.calendar-event-subtitle{display:flex;gap:4px;align-items:center;justify-content:space-between}.calendar-event-subtitle small{min-width:0}
.calendar-event-flags{display:flex;gap:3px;align-items:center;font-size:0.625rem;flex-shrink:0}
.calendar-event-flags svg{width:12px;height:12px}
.calendar-dialog{width:min(850px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:12px;color:#26394e;box-shadow:0 24px 90px #18344a44}
.calendar-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.calendar-dialog .dialog-header{padding:17px 22px;flex-shrink:0}
.calendar-dialog .dialog-header h2{font-size:1.1875rem;margin:3px 0}
.calendar-dialog-body{padding:0 22px 20px;overflow:auto}
.calendar-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.calendar-field{display:flex;flex-direction:column;gap:5px;font-size:0.75rem;min-width:0}
.calendar-field.wide{grid-column:1/-1}.calendar-field input,.calendar-field select,.calendar-field textarea{width:100%;padding:9px 10px;border:1px solid #cedae7;border-radius:6px;font:inherit;background:#fff;color:#253951;box-sizing:border-box}
.calendar-field textarea{min-height:80px;resize:vertical}.calendar-field label{font-weight:600}
.calendar-dialog .dialog-footer{padding:14px 22px;flex-shrink:0}.calendar-dialog .error{padding:0 22px;margin:0 0 10px}
.calendar-dialog .notice{margin:12px 0;font-size:0.75rem}.calendar-dialog .calendar-actions{margin:12px 0}
.calendar-attendance{width:100%;border-collapse:collapse;font-size:0.75rem;margin-top:12px}
.calendar-attendance th,.calendar-attendance td{padding:9px 6px;text-align:left;white-space:normal}
.calendar-attendance select,.calendar-attendance input{width:100%;min-width:120px;padding:8px;border:1px solid #cedae7;border-radius:5px;font:inherit}
.calendar-content-list{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.calendar-readonly-report{font-size:0.75rem;border-bottom:1px solid #dce5ef;padding-bottom:12px}.calendar-readonly-report dt{font-weight:600;margin-top:10px}.calendar-readonly-report dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#navigation>button{width:100%;text-align:left}#navigation button:disabled{opacity:.5;cursor:default}
@media(max-width:720px){.calendar-panel{padding:7px}.calendar-fields{grid-template-columns:1fr}.calendar-field.wide{grid-column:auto}.calendar-dialog-body{padding:0 12px 12px}.calendar-legend{gap:9px}.calendar-host{font-size:0.625rem}.calendar-attendance input{min-width:90px}.calendar-event small{font-size:0.5625rem}}

.calendar-dialog{max-height:92dvh}.calendar-dialog form{max-height:92dvh;min-height:0}.calendar-dialog-body{min-height:0}.calendar-dialog .dialog-header>.icon-button{flex-shrink:0}
