dialog.managed-dialog{padding:0;overflow:hidden;max-height:calc(100dvh - 32px)}
dialog.managed-dialog[open],dialog.managed-dialog>form{display:flex;flex-direction:column;min-height:0}
dialog.managed-dialog>form{max-height:calc(100dvh - 32px);margin:0;gap:0}
.managed-dialog .dialog-heading{flex:none;padding:18px 22px;background:white;border-bottom:1px solid var(--line);gap:12px}
.managed-dialog .dialog-heading h2{margin:0;font-size:24px}.managed-dialog .dialog-heading p{margin:3px 0}
.managed-dialog .icon-button{min-width:44px;min-height:44px;flex:none}
.dialog-body{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px 22px;scroll-padding:16px}
.managed-dialog>form>.dialog-body{display:grid;gap:14px}
.dialog-body,.dialog-body fieldset,.dialog-body label,.dialog-body .form-row{min-width:0}.dialog-body input,.dialog-body select,.dialog-body textarea{min-width:0;max-width:100%}
.dialog-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;padding:14px 22px;background:white;border-top:1px solid var(--line);flex:none}
.dialog-body .detail-table{max-height:none}.dialog-body .detail-table th{position:static}
.dialog-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.request-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--green-soft);padding:16px;border-radius:12px;margin:0 0 16px}
.request-notice button{flex:none}.booking-history{margin-top:10px}.request-bookings{font-size:14px;margin-top:8px}
.admin-nav #pending-nav{display:inline-flex;width:auto;min-width:24px;height:24px;align-items:center;justify-content:center;padding:0 6px;margin-left:8px;border-radius:999px;background:#ffedc5;color:#634300;vertical-align:middle;font-size:12px}
#pending-nav[hidden]{display:none!important}
.request-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}.request-facts dt{font-size:12px;color:var(--muted)}.request-facts dd{margin:3px 0 0;font-weight:600}
.booking-card,.history-card{padding:14px;border:1px solid var(--line);border-radius:10px;background:white;margin:10px 0;min-width:0}.booking-card p,.history-card p{margin:7px 0}.history-card small{display:block}.booking-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.request-note{white-space:pre-wrap;overflow-wrap:anywhere}.booking-history>summary,.booking-card summary{cursor:pointer;padding:8px 0}.conflict-list{padding:12px;border-left:4px solid #ae7500;background:#fff8e9}.request-inline-error{color:#9e2727;white-space:pre-wrap}
.review-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.review-facts p{margin:0}.review-facts strong{display:block}.future-adjustment-warning{padding:12px;border-left:4px solid #ae7500;background:#fff8e9}
@media(max-width:650px){.booking-comparison{grid-template-columns:1fr}.request-facts{grid-template-columns:1fr}.booking-card th,.booking-card td{padding:6px}}
#absence-calendar{grid-template-columns:repeat(7,minmax(0,1fr));min-width:740px}
.calendar-scroll{overflow-x:auto;max-width:100%;min-width:0}.calendar-weekday{font-weight:700;text-align:center;padding:8px}.calendar-day.outside-selection{background:#f0f0ed;color:#777;opacity:.7}
.calendar-day{min-width:0;overflow-wrap:anywhere}.margin-control{padding:12px;background:var(--blue-soft);border-radius:10px}
@media(max-width:600px){dialog.managed-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);border-radius:12px}dialog.managed-dialog>form{max-height:calc(100dvh - 12px)}.managed-dialog .dialog-heading{padding:10px 12px}.managed-dialog .dialog-heading h2{font-size:20px}.dialog-body{padding:12px}.dialog-footer{padding:10px 12px}.dialog-footer .button{flex:1}.request-notice{flex-wrap:wrap}}
@media(max-width:600px){.dialog-body .schedule-row{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding-bottom:10px;border-bottom:1px solid var(--line)}.dialog-body .schedule-row>label{grid-column:1/-1}.dialog-body .schedule-grid{padding:3px}.dialog-body .record-item{grid-template-columns:minmax(0,1fr)}.dialog-body .record-item>*{min-width:0;overflow-wrap:anywhere}}
