/* HCP-observed calendar hierarchy; JCL orange and optional dark surfaces. */
body[data-screen=schedule] main{padding:0!important;max-width:none;background:var(--surface)}
.calendar-actionbar{height:48px;display:flex;align-items:center;justify-content:space-between;padding:7px 18px;border-bottom:1px solid var(--divider);background:var(--surface)}
.calendar-actionbar>span{font-size:13px;color:var(--secondary)}
.calendar-actionbar>div{display:flex;gap:10px}
.calendar-actionbar button{font-size:13px!important;min-height:32px;border-radius:20px;padding:4px 13px}
body[data-screen=schedule] .calendar-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 16px;margin:0;min-height:54px;background:var(--surface);border-bottom:2px solid var(--divider)}
.calendar-navigation,.calendar-view-tools{display:flex;align-items:center;gap:12px;min-width:0}
.calendar-toolbar svg,.calendar-map-switch svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle}
body[data-screen=schedule] .calendar-toolbar button{min-height:34px;font-size:14px!important;border-radius:4px;padding:5px 9px;color:var(--ink)}
body[data-screen=schedule] .calendar-toolbar .calendar-icon-button{border:0;background:transparent;min-width:32px;padding:5px;color:var(--secondary)}
.calendar-queue-toggle{position:relative;border:0!important;min-width:40px;background:transparent!important;padding:6px!important}
.calendar-queue-toggle>span{position:absolute;right:0;top:-5px;min-width:20px;padding:1px 4px;border-radius:11px;background:#ad2664;color:white;font-size:11px}
.calendar-queue-toggle.selected{box-shadow:0 0 0 2px var(--edge);border-radius:50%!important;background:var(--soft)!important}
body[data-screen=schedule] .calendar-toolbar .calendar-today{border:1.5px solid #c57536;border-radius:18px;color:var(--accent);padding:5px 14px;background:var(--surface)}
body[data-screen=schedule] .calendar-toolbar .calendar-arrow{border:0;background:transparent;padding:5px 0;min-width:26px}
body[data-screen=schedule] .calendar-toolbar .calendar-date-title{border:0;background:transparent;gap:16px;font-weight:400;padding:5px 0;white-space:nowrap}
.calendar-native-date{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0;padding:0!important;pointer-events:none}
dialog.calendar-settings-dialog{box-sizing:border-box;width:600px;max-width:calc(100vw - 32px);max-height:calc(100vh - 40px);overflow:auto;border:1px solid var(--divider);border-radius:5px;padding:24px;background:var(--surface);color:var(--ink);box-shadow:0 8px 28px #0004}
.calendar-settings-dialog::backdrop{background:#17283b80}.calendar-settings-dialog h2{font-size:26px;font-weight:400;margin:0 0 22px}.calendar-settings-dialog h3{font-size:20px;font-weight:400;margin:28px 0 14px}.calendar-settings-zone{width:350px;max-width:100%;border:1px solid var(--divider);border-radius:5px;padding:9px 12px}.calendar-settings-zone small{display:block;font-size:11px;color:var(--muted);margin-bottom:2px}.calendar-settings-zone span{font-size:15px}.calendar-settings-fields{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,auto);grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;row-gap:11px}.calendar-settings-dialog label{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:400;margin:0}.calendar-settings-dialog input[type=checkbox]{height:17px;min-height:17px;width:17px;flex:0 0 17px;padding:0;margin:0;accent-color:var(--accent)}.calendar-settings-extra{margin-top:22px;border-top:1px solid var(--divider);padding-top:15px}.calendar-settings-extra summary{cursor:pointer;font-size:14px}.calendar-settings-extra label{margin-top:14px}.calendar-settings-extra select{width:180px;margin-left:auto}.calendar-settings-note{font-size:12px;color:var(--muted);margin:20px 0 0}.calendar-settings-footer{display:flex;justify-content:flex-end;margin-top:22px}.calendar-settings-footer button{border-radius:20px!important;padding:7px 18px!important;min-height:34px!important}.calendar-card-tags{font-size:11px;border-radius:3px;background:var(--selected);padding:1px 3px}.calendar-card-amount{font-weight:600}
@media(max-width:500px){.calendar-settings-fields{column-gap:10px}.calendar-settings-dialog{padding:18px}.calendar-settings-dialog label{font-size:13px}}
.calendar-date-picker{position:fixed;z-index:1100;width:280px;max-width:calc(100vw - 16px);box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--divider);border-radius:7px;box-shadow:0 5px 12px #0004;padding:8px 0 16px}
.calendar-picker-heading{display:flex;align-items:center;min-height:44px;padding:0 8px 0 12px;gap:2px}.calendar-picker-heading strong{font-size:14px;margin-right:auto}.calendar-picker-heading button{width:38px;height:38px;min-height:0;padding:8px!important;border:0!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important}.calendar-picker-heading svg{width:18px;height:18px}
.calendar-date-picker [role=row]{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-date-picker [role=columnheader]{font-size:11px;color:var(--muted);text-align:center;line-height:36px}.calendar-date-picker [role=gridcell]{height:38px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.calendar-date-picker button[role=gridcell]{width:32px;height:32px;margin:3px auto;padding:0!important;min-height:0;border:0!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important;border-radius:50%!important;font-size:11px;font-weight:400!important}.calendar-date-picker button[role=gridcell]:hover{background:var(--selected)!important}.calendar-date-picker button[aria-selected=true]{background:var(--accent)!important;color:var(--surface)!important}.calendar-date-picker button[aria-current=date]:not([aria-selected=true]){outline:1px solid var(--accent);outline-offset:-1px}.calendar-date-picker button:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
.calendar-map-switch{display:flex;border:1.5px solid #be6b28;border-radius:5px;overflow:hidden;flex-shrink:0}
.calendar-map-switch a{width:43px;height:34px;display:grid;place-items:center;color:var(--accent)}
.calendar-map-switch a.selected{background:#b65915;color:white!important}
body[data-screen=schedule] .calendar-toolbar select{min-height:36px;padding:5px 10px;font-size:14px!important;width:auto;max-width:190px;border:1.5px solid var(--divider);font-weight:400;border-radius:5px;background:var(--surface)}
.calendar-color-label{display:flex;align-items:center;gap:8px;font-size:14px!important;font-weight:400;margin:0;color:var(--ink)}
.calendar-color-label select{margin:0!important}
.calendar-display-settings{display:flex;flex-wrap:wrap;gap:20px;padding:14px 20px;background:var(--soft);border-bottom:2px solid var(--divider);align-items:center}
.calendar-display-settings label{display:flex;align-items:center;gap:7px;font-size:14px!important;font-weight:400;margin:0}
.calendar-display-settings input[type=checkbox]{width:18px;height:18px;margin:0}
.calendar-display-settings select{width:auto;margin:0;min-height:34px;font-size:14px!important;padding:4px 8px}
.calendar-display-settings small{width:100%;font-size:12px!important;margin-top:-10px}
.calendar-workspace{display:grid;grid-template-columns:minmax(0,1fr);height:calc(100vh - 167px);min-height:420px;overflow:hidden;background:var(--surface)}
.calendar-workspace.has-filters{grid-template-columns:276px minmax(0,1fr)}
.calendar-workspace.has-queue{grid-template-columns:minmax(0,1fr) 300px}
.calendar-workspace.has-filters.has-queue{grid-template-columns:276px minmax(0,1fr) 300px}
body:has(.calendar-display-settings) .calendar-workspace{height:calc(100vh - 275px)}
.calendar-workspace .calendar-main{min-width:0;overflow:auto;background:var(--surface)}
.calendar-filters,.calendar-unscheduled{background:var(--surface);overflow:auto;min-width:0;padding:12px;border:0;max-height:none}
.calendar-filters{border-right:2px solid var(--divider)}
.calendar-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.calendar-panel-heading h2{font-size:16px!important;font-weight:600;margin:0}
.calendar-panel-heading h2{display:flex;align-items:center;justify-content:flex-start;gap:7px;white-space:nowrap;min-width:0;flex:1;font-size:15px!important}
.calendar-panel-heading .calendar-icon-button{border:0;background:transparent;color:var(--secondary);min-height:30px;width:30px!important;min-width:30px;flex:0 0 30px;padding:4px}
.calendar-panel-heading svg{width:18px;height:18px}
.calendar-mini-month{margin:8px 0 22px;font-size:13px}
.calendar-mini-month>b{display:block;margin:12px 0;text-align:center}
.calendar-mini-month>div{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.calendar-mini-month span{font-size:11px;color:var(--secondary)}
.calendar-mini-month button{min-height:26px;height:26px;min-width:0;padding:2px;border:0;border-radius:50%;background:transparent;font-size:12px!important;font-weight:400}
.calendar-mini-month button.selected{background:#b65915;color:white}
.calendar-mini-month .outside{opacity:.45}
.calendar-filters label{font-size:13px!important;font-weight:400}
.calendar-filters select{font-size:13px!important;min-height:38px}
.calendar-crew-key p{font-size:13px!important;display:flex;align-items:center;gap:9px;margin:12px 0}
.calendar-crew-key span{width:12px;height:12px;background:var(--event-color);border-radius:50%;flex-shrink:0}
body[data-screen=schedule] .calendar-unscheduled{border-left:2px solid var(--divider);border-radius:0;background:var(--surface);max-height:none}
.calendar-unscheduled>p{font-size:13px!important;color:var(--secondary);margin:12px 0}
.calendar-panel-heading h2>span{background:var(--soft);border:1px solid var(--divider);border-radius:12px;padding:1px 7px;font-size:12px;line-height:20px;align-self:center}
.calendar-unscheduled input{font-size:13px!important;min-height:38px;padding:7px;margin:0 0 12px}
.calendar-queue-cards article{border:1px solid var(--edge);border-radius:5px;margin:0 0 12px;padding:10px;background:var(--soft)}
.calendar-queue-cards a{display:block;text-decoration:none;color:var(--ink)!important;font-size:13px;line-height:1.5}
.calendar-queue-cards b,.calendar-queue-cards span,.calendar-queue-cards small{display:block;font-size:13px!important;margin-bottom:6px}
.calendar-queue-cards small{color:var(--secondary)}
.calendar-queue-cards em{display:inline-block;color:var(--accent);font-size:11px;border:1px solid currentColor;border-radius:10px;padding:1px 7px;font-style:normal}
.calendar-queue-cards button{font-size:13px!important;min-height:30px;margin-top:8px;padding:4px 10px;width:auto}
.calendar-unscheduled-intro{padding:30px}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-scroll{height:100%;max-height:none;border:0;border-radius:0;overflow:auto;position:relative;background:var(--surface);outline-offset:-3px}
.calendar-time-grid{--minute-px:1px;--columns:1;min-width:calc(58px + var(--columns)*var(--calendar-column-min,0px));position:relative}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .time-header{grid-template-columns:58px repeat(var(--columns),minmax(var(--calendar-column-min,0px),1fr));height:70px;box-shadow:none;border-bottom:2px solid var(--divider);background:var(--surface);z-index:4}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .time-header>div{padding:7px;min-height:70px;border-right:1px solid var(--divider);font-size:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex-wrap:nowrap}
.calendar-time-grid .time-header .time-corner{font-size:10px!important;padding:2px;justify-content:flex-end;color:var(--secondary)}
.calendar-column-heading .crew-avatar{width:30px;height:30px;font-size:12px;border:1px solid var(--edge)}
.calendar-column-heading>b{font-size:12px;font-weight:400;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.calendar-column-heading>small{font-size:11px!important;line-height:13px;margin:0!important;width:auto!important}
.calendar-column-heading:has(>small){padding:4px!important;gap:1px!important}
.calendar-column-heading:has(>small) .crew-avatar{height:24px;width:24px;font-size:10px}
.calendar-column-heading>button{border:0;background:transparent;display:flex;flex-direction:column;gap:2px;min-height:48px;padding:0;font-weight:400}
.calendar-column-heading>button>span{font-size:11px;text-transform:uppercase;color:var(--secondary)}
.calendar-column-heading>button>b{font-size:19px;font-weight:400}
.calendar-column-heading.is-today>button>b{background:#b65915;color:white;border-radius:50%;min-width:27px;height:27px;display:grid;place-items:center}
.calendar-all-day{display:grid;grid-template-columns:58px repeat(var(--columns),minmax(var(--calendar-column-min,0px),1fr));height:32px;position:sticky;top:var(--calendar-header-height,70px);z-index:3;background:var(--surface);border-bottom:2px solid var(--divider)}
.calendar-all-day>div,.calendar-all-day>span{border-right:1px solid var(--divider)}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .time-body{grid-template-columns:58px repeat(var(--columns),minmax(var(--calendar-column-min,0px),1fr));height:calc(var(--calendar-minutes,1440) * var(--minute-px))}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .employee-lane{height:calc(var(--calendar-minutes,1440) * var(--minute-px));border-right:1px solid var(--divider);background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(15 * var(--minute-px) - 1px),color-mix(in srgb,var(--divider) 28%,transparent) calc(15 * var(--minute-px) - 1px),color-mix(in srgb,var(--divider) 28%,transparent) calc(15 * var(--minute-px))),repeating-linear-gradient(to bottom,transparent 0,transparent calc(60 * var(--minute-px) - 1px),var(--divider) calc(60 * var(--minute-px) - 1px),var(--divider) calc(60 * var(--minute-px)))}
.calendar-time-grid .hour-labels{border-right:1px solid var(--divider);background:var(--surface)}
/* Dispatch uses the same calendar items in horizontal employee rows. */
.calendar-timeline-scroll{height:100%;overflow:auto;position:relative;overscroll-behavior:contain;background:var(--surface)}
.calendar-timeline{--timeline-day-width:720px;--timeline-hour-width:80px;width:max-content;min-width:100%;position:relative;background:var(--surface)}
.timeline-header,.timeline-row{display:grid;grid-template-columns:90px repeat(7,var(--timeline-day-width));width:max-content}
.timeline-header{position:sticky;top:0;z-index:12;background:var(--surface);height:88px;border-bottom:1px solid var(--divider)}
.timeline-corner,.timeline-employee{position:sticky;left:0;z-index:8;border-right:1px solid var(--divider);background:var(--surface);box-sizing:border-box}
.timeline-corner{z-index:14;display:flex;align-items:flex-end;padding:10px;font-size:11px;color:var(--secondary)}
.timeline-day-heading{min-width:0;border-right:1px solid var(--divider)}
.timeline-day-heading>button{height:44px;display:flex;align-items:center;gap:5px;padding:4px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text)}
.timeline-day-heading>button b{font-size:22px;font-weight:400}.timeline-day-heading>button span{font-size:11px;color:var(--secondary)}
.timeline-day-heading>button.is-today b{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;padding:0}
.timeline-hours{display:flex;height:44px}.timeline-hours>span{flex:none;box-sizing:border-box;border-right:1px solid var(--divider);padding:13px 8px;font-size:12px;white-space:nowrap;color:var(--secondary);overflow:hidden}
.timeline-row{min-height:240px;border-bottom:1px solid var(--divider)}
.timeline-employee{display:flex;align-items:center;flex-direction:column;gap:8px;padding:12px 6px;min-width:0}
.timeline-employee>span:first-child{font-size:12px;line-height:1.25;max-width:100%;text-align:center;overflow-wrap:anywhere;color:var(--secondary)}
.timeline-employee .crew-avatar{width:30px;height:30px;flex:none}
.timeline-lane{position:relative;display:flex;min-width:0;border-right:1px solid var(--divider);box-sizing:border-box;background:repeating-linear-gradient(to right,transparent 0,transparent calc(var(--timeline-hour-width)/2 - 1px),color-mix(in srgb,var(--divider) 35%,transparent) calc(var(--timeline-hour-width)/2 - 1px),color-mix(in srgb,var(--divider) 35%,transparent) calc(var(--timeline-hour-width)/2)),repeating-linear-gradient(to right,transparent 0,transparent calc(var(--timeline-hour-width) - 1px),var(--divider) calc(var(--timeline-hour-width) - 1px),var(--divider) var(--timeline-hour-width))}
.timeline-slot{flex:none;height:100%;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-width:0!important;min-height:0!important}.timeline-slot:disabled{opacity:1}
.timeline-slot:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.timeline-slot:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 7%,transparent)!important}
.timeline-item{position:absolute;height:82px;box-sizing:border-box;padding:0 2px;z-index:3;container-type:inline-size;container-name:jcl-calendar-card}
.timeline-item .calendar-appointment{height:100%;width:100%;margin:0;overflow:hidden;text-align:left}
.timeline-item .calendar-resize-handle{height:100%;width:6px;left:auto;right:0;bottom:0;cursor:ew-resize;background:transparent}
.timeline-now{position:absolute;top:0;bottom:0;width:2px;background:#df3b3b;z-index:6;pointer-events:none}.timeline-now[hidden]{display:none}
.calendar-holiday{display:flex;align-items:center;gap:4px;padding:5px 4px;min-width:0;font-size:12px;line-height:1.25;color:var(--text);white-space:normal;overflow-wrap:anywhere}
.calendar-holiday svg{width:13px;height:13px;flex:none}.calendar-holiday-day{background-color:color-mix(in srgb,var(--secondary) 7%,var(--surface))!important}
.timeline-header.has-holidays{height:114px}.timeline-header.has-holidays .timeline-day-heading{display:flex;flex-direction:column}.timeline-header.has-holidays .timeline-hours{margin-top:auto;flex:none}.timeline-header.has-holidays .calendar-holiday{height:26px;box-sizing:border-box;padding:3px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-agenda-holidays{margin-bottom:12px;border:1px solid var(--divider);background:var(--surface);border-radius:4px;padding:10px 14px}.calendar-agenda-holidays>div{display:flex;align-items:center;gap:14px}.calendar-agenda-holidays b{font-size:13px;font-weight:500;min-width:90px}
.calendar-hours-option+.calendar-hours-option{margin-top:10px}
.timeline-day-heading>button{justify-content:flex-start;flex:none}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact .calendar-card-crew{top:1px;right:3px;max-width:50%;height:17px;align-items:center}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact .calendar-card-crew span{width:16px;height:16px;min-width:16px;font-size:8px;box-sizing:border-box;border-width:1px}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact .calendar-card-title{padding-right:var(--crew-space,0px)!important}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .hour-labels span:first-child{transform:none;line-height:1.2}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .hour-labels span{font-size:11px!important;line-height:1;color:var(--secondary);transform:translateY(-50%);right:7px}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .empty-time-slot{height:calc(60 * var(--minute-px));min-height:0!important;background:transparent;padding:0;border:0;border-radius:0;box-shadow:none}
.calendar-time-grid .empty-time-slot:disabled{opacity:1}
.calendar-time-grid .empty-time-slot:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.calendar-time-grid .timed-event{padding:1px 2px;overflow:hidden}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment{padding:5px 6px!important;border:1px solid var(--event-color)!important;border-left-width:2px!important;border-radius:4px!important;background:color-mix(in srgb,var(--event-color) 12%,var(--surface))!important;color:var(--ink)!important;font-weight:400;font-size:12px!important;text-align:left;display:block;position:relative;line-height:1.5;box-shadow:none;min-height:0!important;overflow:hidden}
.calendar-appointment>span{display:block}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-title{font-size:12px!important;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:18px;padding-right:24px}
.calendar-card-crew{position:absolute;right:4px;top:4px;display:flex!important;gap:2px;max-width:60%;overflow:hidden}
.calendar-card-crew span{display:inline-grid;place-items:center;background:var(--event-color);color:white;border-radius:50%;width:19px;height:19px;font-size:9px}
.calendar-card-crew span:not(:first-child){margin-left:-5px;border:1px solid var(--surface)}
.calendar-appointment i{display:flex;gap:3px;align-items:center;font-size:11px;line-height:18px}
.calendar-appointment i svg{height:11px;width:11px}
.calendar-card-scope,.calendar-card-address{font-size:11px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-appointment .calendar-card-status{display:inline-block;font-size:10px;background:var(--section);color:var(--ink);border:1px solid var(--divider);border-radius:12px;padding:1px 7px;margin-top:3px;text-transform:capitalize;line-height:16px}
.timed-event .calendar-card-status{display:none!important}
.calendar-appointment.office-event{background:color-mix(in srgb,#a587aa 12%,var(--surface))!important}
.calendar-now{position:absolute;left:0;right:0;height:2px;background:#df3636;z-index:2;pointer-events:none}
.calendar-now::before{content:'';position:absolute;left:-3px;top:-3px;width:8px;height:8px;border-radius:50%;background:#df3636}
.employee-lane:has(.calendar-now)~.employee-lane .calendar-now::before{display:none}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month{height:100%;min-height:0;min-width:690px;grid-template-rows:28px repeat(var(--weeks,5),minmax(90px,1fr));border:0;background:var(--surface)}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .month-weekday{font-size:11px;color:var(--secondary);font-weight:400;text-transform:uppercase;padding:6px;border-bottom:1px solid var(--divider);line-height:15px}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .month-cell{min-height:0;padding:3px 2px;border-right:1px solid var(--divider);border-bottom:1px solid var(--divider);display:flex;flex-direction:column;overflow:hidden}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .month-cell>button{min-height:24px!important;height:24px;min-width:24px;max-width:24px;padding:0;border:0;font-size:11px!important;background:transparent;color:var(--ink);margin:0 auto 3px;line-height:20px;display:block;font-weight:400;flex-shrink:0}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .month-cell.is-today>button{background:#b65915;color:white;border-radius:50%}
.calendar-month-items{overflow:auto;min-height:0;scrollbar-width:thin}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact{min-height:18px!important;height:19px;padding:0 3px!important;margin:0 0 2px;border-left-width:1px!important;border-radius:3px!important}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact .calendar-card-title{font-size:11px!important;font-weight:400;line-height:17px;padding:0}
.calendar-month .outside-month{background:var(--soft);opacity:.7}
[data-theme=dark] :is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment{background:color-mix(in srgb,var(--event-color) 20%,var(--surface))!important;color:var(--ink)!important}
[data-theme=dark] .calendar-card-status{color:var(--ink)!important}
@media(max-width:1250px){.calendar-toolbar{gap:6px!important}.calendar-navigation,.calendar-view-tools{gap:7px}.calendar-workspace.has-filters.has-queue{grid-template-columns:190px minmax(0,1fr) 255px}.calendar-workspace.has-queue{grid-template-columns:minmax(0,1fr) 255px}.calendar-workspace.has-filters{grid-template-columns:190px minmax(0,1fr)}.calendar-navigation .calendar-date-title{font-size:13px!important}.calendar-color-label{font-size:12px!important}}
@media(max-width:1050px){.calendar-workspace{height:calc(100vh - 215px)}.calendar-navigation,.calendar-view-tools{flex-wrap:wrap}.calendar-workspace.has-filters.has-queue{grid-template-columns:minmax(0,1fr) 250px}.has-filters.has-queue .calendar-filters{display:none}.calendar-view-tools .calendar-map-switch{margin-left:auto}}
@media(max-width:700px){.calendar-workspace{height:70vh;min-height:450px}.calendar-workspace.has-filters,.calendar-workspace.has-queue,.calendar-workspace.has-filters.has-queue{grid-template-columns:1fr}.calendar-filters,.calendar-unscheduled{max-height:300px!important}.calendar-workspace.has-filters,.calendar-workspace.has-queue{height:auto;overflow:visible}.calendar-workspace .calendar-main{min-height:450px;height:70vh}.calendar-color-label{display:none}.calendar-actionbar{padding:7px 12px}.calendar-navigation{gap:5px}.calendar-toolbar{padding:8px!important}.calendar-date-title{max-width:220px}.calendar-filters{border-bottom:2px solid var(--divider)}}
/* Schedule refinement: HCP-style settings drawer and clearer appointment hierarchy. */
body[data-screen=schedule] .calendar-display-settings{position:fixed;right:0;top:62px;bottom:0;width:340px;max-width:90vw;z-index:40;display:flex;flex-direction:column;align-items:stretch;gap:14px;overflow:auto;background:var(--surface);border-left:2px solid var(--edge);box-shadow:-6px 0 24px #0002;padding:20px}
body:has(.calendar-display-settings) .calendar-workspace{height:calc(100vh - 167px)}
.calendar-display-settings h3{font-size:15px;margin:8px 0 0;padding-top:14px;border-top:1px solid var(--divider)}
.calendar-display-settings small{margin-top:6px;line-height:1.6}.calendar-timezone{margin:0;color:var(--secondary)}
.calendar-card-arrival{display:block;font-size:12px;line-height:18px;font-weight:600}
#modal:has(.calendar-event-editor){width:min(1120px,calc(100vw - 48px));max-width:calc(100vw - 48px)}
.calendar-event-panels{display:grid;grid-template-columns:minmax(280px,2fr) minmax(0,3fr);gap:24px;align-items:start}
.calendar-event-panels>section{padding:20px;border:1px solid var(--divider);border-radius:6px;min-width:0}
.calendar-event-panels h3{margin:0 0 18px;font-size:18px}.calendar-event-panels label{margin-bottom:16px}.calendar-event-panels textarea{width:100%;box-sizing:border-box;min-height:130px}
.calendar-event-footer{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;border-top:1px solid var(--divider);padding-top:20px;margin-top:24px}
@media(max-width:900px){.calendar-event-panels{grid-template-columns:1fr}}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-title{font-size:13px!important;font-weight:600;line-height:19px}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment i,.calendar-card-scope,.calendar-card-address{font-size:12px;line-height:18px}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment{border-width:1px!important;border-left-width:3px!important;border-radius:4px!important;text-align:left}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment:focus-visible{outline:3px solid var(--accent);outline-offset:1px;z-index:5}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-time-grid .time-header>div>b{font-size:13px}
.calendar-card-status[hidden]{display:none!important}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact .calendar-card-title{font-size:12px!important;line-height:18px;font-weight:400}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-month .calendar-appointment.compact{height:21px;min-height:21px!important}
body[data-screen=schedule] .calendar-unscheduled{width:auto}.calendar-queue-cards article{border-width:2px;padding:12px}.calendar-queue-cards a b{font-size:14px!important}.calendar-queue-cards button{width:100%;min-height:36px}
.timed-event .calendar-card-status:not([hidden]){display:inline-block!important}.calendar-display-settings button:focus-visible{outline:3px solid var(--accent)}
/* Match HCP: unscheduled jobs sit to the left of the calendar. */
.calendar-workspace.has-queue{grid-template-columns:280px minmax(0,1fr)}
.calendar-workspace.has-filters.has-queue{grid-template-columns:226px 280px minmax(0,1fr)}
body[data-screen=schedule] .calendar-unscheduled{border-left:0;border-right:2px solid var(--divider)}
@media(max-width:1250px){.calendar-workspace.has-queue{grid-template-columns:255px minmax(0,1fr)}.calendar-workspace.has-filters.has-queue{grid-template-columns:190px 255px minmax(0,1fr)}}
@media(max-width:1050px){.calendar-workspace.has-filters.has-queue{grid-template-columns:250px minmax(0,1fr)}}
@media(max-width:700px){.calendar-workspace.has-queue,.calendar-workspace.has-filters.has-queue{grid-template-columns:1fr}body[data-screen=schedule] .calendar-unscheduled{border-right:0;border-bottom:2px solid var(--divider)}}

.calendar-view-menu{position:relative;min-width:110px}.calendar-view-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;border:1.5px solid var(--divider);border-radius:5px;padding:7px 12px;list-style:none;background:var(--surface);font-size:14px}.calendar-view-menu>summary::-webkit-details-marker{display:none}.calendar-view-popover{position:absolute;top:calc(100% + 5px);right:0;z-index:35;min-width:225px;background:var(--surface);border:1px solid var(--edge);border-radius:5px;box-shadow:0 4px 16px #0003;padding:6px 0}.calendar-view-popover>a{display:block;padding:8px 16px;color:var(--ink);text-decoration:none;font-size:14px}.calendar-view-popover>a:hover,.calendar-view-popover>a[aria-current]{background:var(--selected)}.calendar-view-popover label{border-top:1px solid var(--divider);display:flex;align-items:center;gap:10px;padding:12px 16px;margin:0;font-size:14px;font-weight:400}.calendar-view-popover input{width:18px;height:18px;margin:0}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment{border:2px solid var(--event-color)!important;border-radius:5px!important}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment:not(.completed):not(.office-event){background:var(--surface)!important}
.calendar-card-crew span{border:2px solid var(--event-color);box-shadow:0 0 0 1px var(--surface);border-radius:50%}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment.completed{background:var(--soft)!important;border-color:var(--divider)!important;color:var(--secondary)!important}
.calendar-appointment.completed .calendar-card-crew span{background:var(--secondary)!important;border-color:var(--divider)!important;color:var(--surface)!important;filter:grayscale(1)}
.calendar-appointment.completed .calendar-card-title{color:var(--secondary)!important}

.calendar-hover-card{position:fixed;z-index:100;width:370px;max-width:calc(100vw - 24px);max-height:calc(100vh - 84px);overflow:auto;background:var(--surface);color:var(--ink);border:1px solid var(--divider);border-radius:8px;box-shadow:0 5px 24px #0003;font:13px "Open Sans","Segoe UI",sans-serif}
.hover-card-header{padding:18px 20px 10px}.hover-card-header strong{display:block;font-size:15px;font-weight:600;color:var(--accent)}.hover-card-header>span{display:block;font-size:12px;margin-top:4px;color:var(--secondary)}.hover-card-body{padding:0 20px 18px}.hover-info-row{display:flex;align-items:flex-start;gap:12px;padding:10px 0}.hover-info-row>span{width:20px;flex-shrink:0;font-size:20px;color:var(--secondary);line-height:22px}.hover-info-row p{margin:4px 0 0;line-height:1.5}.hover-customer{color:var(--accent);font-weight:600}.hover-crew{border-top:1px solid var(--divider);padding-top:10px;margin-top:8px}.hover-crew>div{display:flex;gap:8px;align-items:center;margin:8px 0}.hover-crew span{width:24px;height:24px;display:grid;place-items:center;border:2px solid var(--crew-color);border-radius:50%;font-size:10px;background:var(--crew-color);color:white}.hover-status{display:inline-block;padding:3px 10px;background:var(--selected);border:1px solid var(--divider);border-radius:14px;text-transform:capitalize;margin-top:6px}.hover-card-body>small{display:block;margin-top:12px;color:var(--secondary);font-size:11px}.calendar-hover-card.completed .hover-crew span{filter:grayscale(1)}

.calendar-queue-toggle small{display:block;font-size:10px;line-height:12px;font-weight:500}.calendar-queue-toggle{min-width:48px}.calendar-queue-toggle>span{right:1px}.calendar-main>.map-layout{height:100%}

/* Recurrence editor and all-day events, checkpoint30 */
.calendar-all-day{height:auto;min-height:32px;max-height:190px;overflow:auto}.calendar-all-day>div{min-width:0;padding:3px;display:flex;flex-direction:column;gap:3px}.calendar-all-day .calendar-appointment{position:relative;min-height:30px;width:100%;text-align:left}.event-weekdays{display:flex;flex-wrap:wrap;gap:8px}.calendar-event-panels>section{min-width:0}.calendar-event-editor [hidden]{display:none!important}.calendar-event-editor .event-repeat-fields{border-left:2px solid var(--divider);padding-left:12px}.calendar-event-editor .event-repeat-fields input[type=number]{max-width:140px}
.calendar-event-footer{position:sticky;bottom:0;z-index:5;background:var(--surface);padding:12px 0;border-top:1px solid var(--divider)}.calendar-all-day>span{padding:7px 3px;font-size:11px;color:var(--muted)}

[data-event-cancel]{border:1px solid var(--divider);border-radius:8px;padding:16px;margin-top:16px;background:var(--surface)}
.calendar-appointment-preview .pre-line{overflow-wrap:anywhere}

/* Checkpoint54: distinct sidebar/date/view groups with a readable date heading. */
body[data-screen=schedule] .calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:7px 18px;min-height:54px;border-bottom-width:1px}
.calendar-navigation{flex:1 1 auto;gap:18px;flex-wrap:wrap}
.calendar-sidebar-tools,.calendar-date-navigation{display:flex;align-items:center;gap:8px;min-width:0}
.calendar-sidebar-tools{flex-shrink:0}
.calendar-date-navigation{flex:1 1 300px}
.calendar-view-tools{flex:0 0 auto;gap:12px;margin-left:auto}
body[data-screen=schedule] .calendar-toolbar .calendar-date-title{display:flex;align-items:center;gap:12px;font-size:22px!important;line-height:1.3;min-width:0;white-space:normal;text-align:left}
.calendar-date-title>span{min-width:0;text-wrap:balance}
.calendar-date-title>svg{width:16px;height:16px}
.calendar-date-navigation .calendar-today,.calendar-date-navigation .calendar-arrow{flex-shrink:0}
body[data-screen=schedule] .calendar-toolbar :is(.calendar-map-switch a,.calendar-color-label select,.calendar-view-menu>summary){height:38px;min-height:38px;box-sizing:border-box;margin:0}
.calendar-map-switch{border-width:1px}
.calendar-map-switch a{width:46px;padding:0}
.calendar-view-menu{min-width:86px}
.calendar-view-menu>summary{padding:6px 12px;line-height:24px}
body[data-screen=schedule] .calendar-toolbar select{border-width:1px}
.calendar-toolbar .calendar-icon-button[aria-expanded=true]{background:var(--selected)!important;color:var(--accent)!important}
.calendar-toolbar .calendar-queue-toggle.selected{box-shadow:none;border-radius:4px!important;background:var(--selected)!important;color:var(--accent)!important}
body[data-screen=schedule] .calendar-workspace{height:calc(100dvh - var(--calendar-workspace-top,167px) - 1px)}
body[data-screen=schedule] .booking-calendar .calendar-toolbar{grid-template-columns:1fr}
body[data-screen=schedule] .booking-calendar .calendar-date-title{font-size:16px!important}
body[data-screen=schedule] .booking-calendar .calendar-workspace{height:auto}
@media(max-width:1600px){
 .calendar-navigation{gap:10px}.calendar-sidebar-tools,.calendar-date-navigation{gap:6px}.calendar-view-tools{gap:10px}
 body[data-screen=schedule] .calendar-toolbar .calendar-date-title{font-size:16px!important;gap:8px}
}
@media(max-width:1200px){
 body[data-screen=schedule] .calendar-toolbar{grid-template-columns:1fr}
 .calendar-navigation{flex-basis:100%}.calendar-view-tools{margin-left:auto}
}
@media(max-width:700px){
 .calendar-navigation{gap:10px}.calendar-date-navigation{flex-basis:100%}.calendar-view-tools{flex-wrap:wrap}
 body[data-screen=schedule] .calendar-toolbar .calendar-date-title{max-width:none;font-size:15px!important}
 body[data-screen=schedule] .calendar-workspace:has(.calendar-filters,.calendar-unscheduled){height:auto}
}

/* Checkpoint55: appointment selection and assignment review. */
.calendar-actionbar[hidden]{display:none!important}
.calendar-bulk-active :is(.calendar-sidebar-tools,.calendar-map-switch,.calendar-color-label){display:none!important}
.calendar-bulk-toolbar{display:flex;align-items:center;gap:12px;padding:10px 18px;background:var(--surface);border-bottom:1px solid var(--divider);min-height:58px;box-sizing:border-box}
.calendar-bulk-toolbar>small{color:var(--muted)}
.calendar-bulk-toolbar>button[data-calendar-bulk=edit]{margin-left:auto}
.calendar-bulk-card{width:100%;height:100%;min-height:30px;text-align:left;border:1px solid var(--divider)!important;border-left:4px solid var(--accent)!important;background:var(--selected)!important;color:var(--ink)!important;border-radius:4px!important;padding:7px 9px!important;display:flex;flex-direction:column;gap:4px;overflow:hidden;position:relative;box-sizing:border-box}
.calendar-bulk-card>strong{padding-left:25px;font-size:13px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;box-sizing:border-box}
.calendar-bulk-card>span:not(.calendar-bulk-check),.calendar-bulk-card>small{font-size:12px;line-height:1.3}
.calendar-bulk-check{position:absolute;left:7px;top:7px;width:16px;height:16px;line-height:14px;border:1px solid currentColor;border-radius:2px;text-align:center;font-weight:bold;background:var(--surface)}
.calendar-bulk-card[aria-checked=true]{outline:2px solid var(--accent);outline-offset:-2px}
.calendar-bulk-card[aria-checked=true] .calendar-bulk-check{background:var(--accent);color:var(--surface)}
.calendar-bulk-card.unavailable{opacity:.5;border-left-color:var(--muted)!important}.calendar-bulk-card.unavailable .calendar-bulk-check{display:none}
.calendar-bulk-card.unavailable>strong{padding-left:0}
dialog.calendar-bulk-dialog{width:600px;max-width:calc(100vw - 40px);padding:24px;border-radius:5px}
.calendar-bulk-dialog .dialog-head{padding:0 0 20px;border:0}.calendar-bulk-dialog .dialog-head h2{font-size:26px;font-weight:500;margin:0}
.calendar-bulk-dialog #modalBody{padding:0}.calendar-bulk-dialog form{margin:0}.calendar-bulk-dialog [hidden]{display:none!important}
.calendar-bulk-dialog .bulk-assignment-modes{border:0;padding:0;margin:0;display:grid;gap:22px}
.calendar-bulk-dialog .bulk-mode{display:flex;align-items:flex-start;gap:12px;margin:0;font-size:16px;font-weight:400}
.calendar-bulk-dialog input:is([type=radio],[type=checkbox]){width:18px;height:18px;min-height:18px;flex-shrink:0;margin:2px 0 0;accent-color:var(--accent)}
.bulk-mode small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:3px}
.bulk-employee-picker{margin:12px 0 0 30px}.bulk-replace{margin-left:30px}.bulk-replace>.bulk-employee-picker{margin-left:0;margin-bottom:16px}.bulk-replace>label{font-weight:400;margin:12px 0 0}
.bulk-employee-picker details{position:relative}.bulk-employee-picker summary{cursor:pointer;border:1px solid var(--divider);border-radius:5px;padding:16px;font-size:15px;background:var(--surface)}
.bulk-employee-options{position:absolute;left:0;right:0;top:100%;z-index:20;border:1px solid var(--divider);border-radius:4px;padding:8px;background:var(--surface);box-shadow:0 6px 16px #0003;max-height:230px;overflow:auto}
.bulk-employee-options>input{margin-bottom:6px}.bulk-employee-options>label{display:flex;gap:10px;align-items:center;padding:8px;margin:0;font-weight:400;font-size:14px}.bulk-employee-options>label:hover{background:var(--selected)}
.bulk-employee-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.bulk-employee-chips button{font-size:13px!important;min-height:30px!important;padding:4px 10px!important;border-radius:18px!important;background:var(--selected)!important}
.bulk-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:28px}.bulk-footer button{border-radius:20px!important;min-height:38px!important}
.bulk-review-table{max-height:360px;overflow:auto}.bulk-review-table table{width:100%;table-layout:fixed;border-collapse:collapse}.bulk-review-table :is(th,td){vertical-align:top;padding:16px 10px;text-align:left;border-bottom:1px solid var(--divider);font-size:13px;overflow-wrap:anywhere}.bulk-review-table th{font-weight:500}.bulk-review-table small,.bulk-crew-name{display:block;margin-top:5px}.bulk-review-table select{min-width:0;width:100%;font-size:13px}.bulk-review-table label{margin-top:12px;font-size:12px}.bulk-review-table small{color:var(--muted)}
.bulk-override{margin:18px 0 0;font-size:13px}.bulk-notifications{margin:16px 0 0;color:var(--muted);font-size:13px}.bulk-error,.bulk-row-issue{color:var(--ink);background:var(--selected);padding:8px;border-left:3px solid var(--accent);font-size:13px}
.bulk-reschedule-date{margin:-12px 0 0 30px;font-size:13px}.bulk-reschedule-date input{display:block;margin-top:0;width:100%}.bulk-reschedule-footer .bulk-notify{display:flex;gap:12px;align-items:center;margin:0 auto 0 0;font-weight:400;font-size:14px}.bulk-reschedule-issues{max-height:230px;overflow:auto;margin-top:18px;background:var(--selected);border-left:3px solid var(--accent);padding:0 12px;font-size:13px;line-height:1.5}
body #modal.calendar-bulk-dialog .dialog-head{background:var(--surface);padding:0 0 20px;border:0;box-shadow:none}
body #modal.calendar-bulk-dialog .dialog-head h2{font-size:26px!important;font-weight:400!important;line-height:1.3}
body #modal.calendar-bulk-dialog .dialog-head [data-close]{display:none}
.bulk-employee-picker summary{list-style:none;display:flex;align-items:center;justify-content:space-between}
.bulk-employee-picker summary::-webkit-details-marker{display:none}
.bulk-employee-picker summary::after{content:'⌄';font-size:19px;margin-left:12px}
body #modal.calendar-bulk-dialog th{background:var(--surface);font-weight:400!important}
@media(max-width:700px){.calendar-bulk-toolbar{flex-wrap:wrap}.calendar-bulk-toolbar>small{display:none}.calendar-bulk-dialog .dialog-head h2{font-size:21px}.bulk-review-table :is(th,td){padding:10px 5px}}
.calendar-roster-search{position:relative;margin:18px 0 12px}.calendar-roster-search input{width:100%;min-height:44px}.calendar-roster-search [role=listbox]{position:absolute;z-index:30;top:calc(100% + 3px);left:0;right:0;background:var(--surface);border:1px solid var(--divider);box-shadow:0 5px 16px #0003;max-height:280px;overflow:auto;border-radius:4px}.calendar-roster-search [role=option]{display:block;width:100%;text-align:left;border:0;border-radius:0;background:transparent;padding:10px 12px;white-space:normal;color:var(--ink)}.calendar-roster-search [role=option][aria-selected=true],.calendar-roster-search [role=option]:hover{background:var(--control-hover)}.calendar-roster-search b,.calendar-roster-search small{display:block}.calendar-roster-search small{font-size:12px;line-height:1.5;color:var(--muted)}.calendar-roster-search p,.calendar-roster-list p{padding:10px;font-size:13px}.calendar-roster-chips{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:12px}.calendar-roster-chips button{font-size:12px;padding:5px 9px;white-space:normal}.calendar-filters .calendar-roster-all,.calendar-filters .calendar-roster-list label{display:flex;align-items:center;gap:10px;flex-direction:row;font-size:14px;line-height:1.35;margin:0;padding:8px 0}.calendar-roster-all{font-weight:600}.calendar-roster-list{padding:0 0 16px 16px}.calendar-roster-list input,.calendar-roster-all input{flex:0 0 17px;width:17px;height:17px;margin:0}.calendar-empty-selection{padding:40px;color:var(--muted);text-align:center}
.calendar-time-grid.calendar-combined{--calendar-column-min:0px;width:100%;min-width:0}.calendar-time-grid.calendar-grouped{--calendar-column-min:64px}.calendar-time-grid.calendar-staff-schedule{--calendar-column-min:150px}.calendar-column-heading{min-width:0}.calendar-column-heading>b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-staff-tags{font-size:11px;line-height:1.3;max-width:100%;color:var(--secondary);text-align:center}.calendar-staff-schedule .time-header{height:auto!important;min-height:90px}.calendar-staff-schedule .time-header>div{min-height:90px!important}.calendar-day-grouped .time-header{height:110px!important;grid-template-rows:48px 62px}.calendar-day-grouped .time-header>.time-corner{grid-row:span 2;min-height:110px!important}.calendar-day-grouped .time-header>.calendar-date-group{min-height:48px!important;padding:0!important;border-bottom:1px solid var(--divider)}.calendar-date-group button{border:0;background:transparent;min-height:44px;min-width:0;font-weight:400;font-size:13px!important;padding:2px 4px;color:var(--secondary)}.calendar-day-grouped .time-header>.calendar-column-heading{min-height:62px!important;padding:5px!important}.calendar-day-grouped .calendar-column-heading>b{font-size:10px!important}.calendar-day-grouped .calendar-column-heading .crew-avatar{width:26px;height:26px;font-size:10px}
.calendar-day-grouped .time-header{grid-template-rows:56px 54px}.calendar-day-grouped .time-header>.calendar-date-group{min-height:56px!important}.calendar-day-grouped .time-header>.calendar-column-heading{min-height:54px!important}.calendar-day-grouped .calendar-column-heading>b{display:none}.calendar-date-group button{display:flex;flex-direction:column;gap:0;line-height:1.35}.calendar-date-group button span{font-size:11px;text-transform:uppercase}.calendar-date-group button b{font-weight:400;font-size:19px}
.calendar-appointment{container-type:inline-size;container-name:jcl-calendar-card}
@container jcl-calendar-card (max-width:160px){:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-title{padding-right:0!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:16px!important;font-size:12px!important;overflow-wrap:anywhere}:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-crew{position:static;max-width:100%;width:max-content;margin:2px 0;min-height:19px}:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-crew:empty{display:none!important}}
:is(body[data-screen=schedule],.office-event-calendar) .calendar-day-grouped .calendar-appointment:not(.compact){padding:3px 4px!important}.calendar-appointment .calendar-resize-handle{opacity:0}.calendar-appointment:hover .calendar-resize-handle,.calendar-appointment:focus-visible .calendar-resize-handle{opacity:1}
@container jcl-calendar-card (max-width:160px){:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-title{line-height:14px!important}:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-crew{margin:1px 0;min-height:17px}:is(body[data-screen=schedule],.office-event-calendar) .calendar-appointment .calendar-card-crew span{width:17px;height:17px}}
.calendar-settings-dialog .calendar-hours-option{display:flex;align-items:center;gap:12px;margin:18px 0 26px;font-size:15px}.calendar-hours-option input{width:18px;height:18px;margin:0}.calendar-hours-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:6px 12px;background:var(--section);border-bottom:1px solid var(--divider);color:var(--ink);font-size:13px}.calendar-hours-notice button{font-size:13px;min-height:32px;padding:3px 9px}.calendar-main:has(>.calendar-hours-notice){display:flex;flex-direction:column}.calendar-main>.calendar-time-scroll.has-hours-notice{height:auto!important;flex:1;min-height:0}

/* Keep individual employee calendars discoverable in the schedule toolbar. */
.calendar-team-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;white-space:nowrap;font-size:14px;}
.calendar-team-toggle svg{width:18px;height:18px;flex:none;}
.calendar-team-toggle[aria-expanded="true"]{background:var(--soft);border-color:var(--divider);}
.calendar-roster-order{display:flex;justify-content:flex-end;margin:.7rem 0}
.calendar-order-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;border:0;border-radius:16px;padding:24px;color:var(--ink,#24313b);background:var(--surface,#fff);box-shadow:0 18px 60px #0004}
.calendar-order-dialog::backdrop{background:#17212daa}
.calendar-order-dialog header,.calendar-order-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.calendar-order-dialog h2{margin:0}.calendar-order-dialog p{line-height:1.45}
.calendar-order-list{max-height:55vh;overflow:auto;border:1px solid #8d99a640;border-radius:9px}
.calendar-order-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border-bottom:1px solid #8d99a640;background:var(--surface,#fff)}
.calendar-order-row:last-child{border:0}.calendar-order-row>span:nth-child(2){flex:1}.calendar-order-handle{cursor:grab;color:#6c7783}
.calendar-order-dialog footer{justify-content:flex-end;margin-top:18px}.calendar-order-error{color:#b3261e}
.calendar-areas-dialog{width:min(720px,calc(100vw - 32px));max-height:88vh;overflow:auto;border:0;border-radius:14px;padding:24px;color:var(--ink);background:var(--surface);box-shadow:0 18px 60px #0004}
.calendar-areas-dialog::backdrop{background:#17212daa}.calendar-areas-dialog header,.calendar-areas-dialog footer,.calendar-area-row>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-areas-dialog h2{margin:0}.calendar-areas-list{max-height:55vh;overflow:auto;margin:16px 0}.calendar-area-row{padding:16px;margin:10px 0;border:1px solid var(--divider);border-radius:8px}.calendar-area-row label{display:grid;gap:5px;flex:1}.calendar-area-row input:not([type=radio]),.calendar-area-row textarea{width:100%;box-sizing:border-box}.calendar-area-row fieldset{display:flex;gap:8px;border:0;padding:10px 0;margin:8px 0}.calendar-area-row legend{margin-bottom:6px}.calendar-area-row .calendar-area-chip{display:inline-flex;flex:0 0 auto;cursor:pointer}.calendar-area-chip input{position:absolute;opacity:0;width:1px;height:1px}.calendar-area-chip span{width:25px;height:25px;border-radius:50%;background:var(--chip);border:2px solid var(--surface);box-shadow:0 0 0 1px var(--divider)}.calendar-area-chip input:checked+span,.calendar-area-chip input:focus-visible+span{box-shadow:0 0 0 3px var(--ink)}.calendar-areas-dialog footer{justify-content:flex-end;margin-top:16px}.calendar-area-error{color:#b3261e}
.calendar-area-chip.area-color-0 span{background-color:#4b8dbd!important}.calendar-area-chip.area-color-1 span{background-color:#49a6a4!important}.calendar-area-chip.area-color-2 span{background-color:#75a76c!important}.calendar-area-chip.area-color-3 span{background-color:#d2a14a!important}.calendar-area-chip.area-color-4 span{background-color:#c57f6b!important}.calendar-area-chip.area-color-5 span{background-color:#9a7db8!important}.calendar-area-chip.area-color-6 span{background-color:#d27595!important}.calendar-area-chip.area-color-7 span{background-color:#758caa!important}

.calendar-job-types{position:relative;flex:0 0 auto}
.calendar-job-types summary{display:flex;align-items:center;gap:5px;cursor:pointer;list-style:none;border:1px solid var(--divider);border-radius:6px;padding:7px 8px;white-space:nowrap;background:var(--surface)}
.calendar-job-types summary::-webkit-details-marker{display:none}
.calendar-job-types summary svg{width:15px;height:15px}
.calendar-job-types form{position:absolute;right:0;top:calc(100% + 5px);width:min(255px,calc(100vw - 24px));z-index:24;background:var(--surface);border:1px solid var(--divider);border-radius:8px;padding:10px;box-shadow:0 5px 18px #0003}
.calendar-job-types fieldset{max-height:240px;overflow:auto;margin:0 0 9px;padding:4px 6px;border:0}
.calendar-job-types fieldset label{display:flex;align-items:center;gap:8px;padding:6px 0;cursor:pointer}
.calendar-job-types .actions{justify-content:space-between}
