/* Fixed seven-day timeline: proportional duration bars and overlap lanes. */
.office-week-calendar-v2 .office-week-scroll{height:min(74vh,820px);max-height:none;scrollbar-gutter:stable}
.office-week-calendar-v2 .office-week-grid{grid-template-columns:52px repeat(7,minmax(0,1fr));grid-template-rows:auto calc(48 * var(--office-week-slot-height,26px)) 26px;min-width:0;width:100%;height:auto}
.office-week-calendar-v2 .office-week-day{display:block;grid-row:2;height:100%;min-width:0}
.office-week-calendar-v2 .office-week-axis{display:grid;grid-template-rows:repeat(48,var(--office-week-slot-height,26px));grid-row:2;height:100%}
.office-week-calendar-v2 .office-week-axis span{position:static;transform:none;display:flex;align-items:flex-start;justify-content:center;padding:1px 2px;border-top:1px solid #e5edf5;font-size:10px;line-height:12px;min-height:var(--office-week-slot-height,26px);box-sizing:border-box}
.office-week-calendar-v2 .office-week-cell{position:relative;min-width:0;height:var(--office-week-slot-height,26px);min-height:0;padding:0;display:block;box-sizing:border-box;background:#f5f7fa}
.office-week-calendar-v2 .office-week-cell.is-open-hours{background:#fff}
.office-week-calendar-v2 .office-week-slot{inset:0;height:100%;min-height:var(--office-week-slot-height,26px);z-index:0}
.office-week-calendar-v2 .office-week-slot:disabled{pointer-events:none}
.office-week-calendar-v2 .office-week-shift{position:absolute;min-width:0;min-height:0;margin:0;gap:0;padding:3px 0;border-width:1px;border-left-width:2px;border-radius:4px;box-sizing:border-box;cursor:pointer;container-type:size;overflow:clip;align-items:center}
.office-week-calendar-v2 .office-week-shift b{position:sticky;top:calc(var(--office-week-header-height,70px) + 4px);font-size:12px;line-height:1.1;white-space:nowrap;pointer-events:none;text-align:center}
.office-week-calendar-v2 .office-week-shift.is-short{padding:0}
.office-week-calendar-v2 .office-week-shift.is-short b{font-size:9px;line-height:1}
@container (max-width:26px){.office-week-shift:not(.is-short) b{writing-mode:vertical-rl;text-orientation:upright;font-size:10px}}
@container (max-width:10px){.office-week-shift:not(.is-short) b{font-size:8px}}
.office-week-person-name:has(.office-week-initial-badge){grid-template-columns:minmax(0,1fr) auto;column-gap:8px}
.office-week-person-name:has(.office-week-initial-badge)>b{grid-column:1;grid-row:1}
.office-week-person-name:has(.office-week-initial-badge)>small{grid-column:1;grid-row:2}
.office-week-initial-badge{grid-column:2;grid-row:1 / span 2;align-self:start;min-width:28px;padding:5px 3px;border-radius:6px;background:var(--employee-color,#3156a3);color:#fff;text-align:center;font-weight:700}
.office-week-person-details{margin:8px;padding:10px;border:1px solid #c7d9ea;border-radius:8px;background:#f0f7fd;font-size:12px}
.office-week-person-details>small{display:block;margin:4px 0 8px;color:#526d86}
.office-week-person-details>div{display:flex;gap:8px;margin:4px 0}
.office-week-person-details>div>b{min-width:22px}
.office-week-copy{margin-top:6px;padding:4px 0;border:0;background:transparent;color:var(--brand-blue);font:inherit;font-size:11px;font-weight:700;cursor:pointer;text-align:left}
.office-week-copy:disabled{cursor:not-allowed;color:#66778c}
.office-week-person[draggable=true]{cursor:grab}
.office-week-person.is-dragging{opacity:.55}
.office-week-calendar.is-week-copy-target{outline:3px solid #dfb62f;outline-offset:-3px}
.office-standard-week-days{display:grid;gap:6px;min-width:0}
.office-standard-week-day{display:grid;grid-template-columns:minmax(90px,1fr) minmax(110px,1fr) minmax(150px,2fr);gap:10px;padding:10px;border:1px solid #cbd9e6;border-radius:8px;align-items:center;min-width:0}
.office-standard-week-day small{display:block;color:#526d86;overflow-wrap:anywhere}
@media(max-width:600px){.office-standard-week-day{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.office-standard-week-day>small{grid-column:1/-1}}
.office-week-calendar-v2 .office-week-shift[draggable=true]{cursor:grab}
.office-week-calendar-v2 .office-week-shift.is-dragging{opacity:.55}
.office-week-calendar-v2 .office-week-cell.is-drop-target{outline:3px solid #c89e21;outline-offset:-3px;background:#fff8d8}
.office-week-calendar-v2 .office-week-day-head{padding:9px 5px;gap:3px;min-width:0}
.office-week-calendar-v2 .office-week-day-head strong{font-size:11px;overflow-wrap:anywhere}
.office-week-calendar-v2 .office-week-day-head span{font-size:11px}
.office-week-day-jump{display:none}
.office-week-calendar-note{margin:0;padding:0 14px 12px;font-size:11px;color:#526d86;line-height:1.5}
.office-week-end{grid-column:1 / -1;position:sticky;left:0;background:#f2f6fb;border-top:1px solid #cad9e8;font-size:10px;padding:5px;box-sizing:border-box}
.office-calendar-settings-card input{max-width:180px}
.office-shift-move-note{padding:10px;border:1px solid #c7d9ea;border-radius:8px;background:#f0f7fd;font-size:13px;line-height:1.5}
@media(max-width:1200px){.office-week-layout:has(.office-week-calendar-v2){grid-template-columns:minmax(0,1fr)}.office-week-layout:has(.office-week-calendar-v2) .office-week-roster{max-height:250px}}
@media(max-width:700px){
  .office-week-calendar-v2 .office-week-grid{grid-template-columns:48px repeat(7,180px);min-width:1308px}
  .office-week-calendar-v2 .office-week-scroll{height:620px;max-height:74vh;scroll-snap-type:x proximity}
  .office-week-calendar-v2 .office-week-day-head{scroll-margin-left:48px;scroll-snap-align:start}
  .office-week-day-jump{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:8px;border-top:1px solid #d6e2ee}
  .office-week-day-jump button{min-width:0;min-height:36px;padding:4px;font-size:11px;border-radius:6px}
}

/* Times read bottom-to-top inside sufficiently long proportional bars. */
.office-week-calendar-v2 .office-week-shift-time{position:absolute;top:50%;left:50%;width:max-content;max-width:none;white-space:nowrap;font-size:11px;line-height:1;font-weight:750;letter-spacing:.15px;transform:translate(-50%,-50%) rotate(-90deg);pointer-events:none;color:#173b59}
@container (max-width:12px){.office-week-calendar-v2 .office-week-shift-time{font-size:8px}}
@container (max-height:112px){.office-week-shift-time{display:none}}
@container (max-width:26px) and (max-height:136px){.office-week-shift-time{display:none}}

/* Keep initials and rotated times together while scrolling. */
.office-week-calendar-v2 .office-week-shift-label{position:sticky;top:calc(var(--office-week-header-height,70px) + 4px);display:flex;flex-direction:column;align-items:center;flex:none;width:100%;height:140px;max-height:100%;min-height:0;pointer-events:none}
.office-week-calendar-v2 .office-week-shift-label b{position:static;flex:none}
.office-week-calendar-v2 .office-week-shift-label .office-week-shift-time{top:calc(50% + 15px)}

/* Read-only staffing comparison: additive and collapsed until requested. */
.office-coverage{margin:0 12px 12px;border:1px solid #c7d9ea;border-radius:9px;background:#f6faff;min-width:0;font-size:12px}
.office-coverage>summary{padding:12px;min-height:44px;box-sizing:border-box;cursor:pointer;font-weight:700;color:#214565;overflow-wrap:anywhere}
.office-coverage>summary>span{font-weight:400;margin-left:8px;color:#526d86}
.office-coverage>summary:focus-visible{outline:3px solid #3156a3;outline-offset:2px;border-radius:8px}
.office-coverage-body{padding:0 12px 12px;min-width:0}
.office-coverage-body>label{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:600}
.office-coverage-body input{width:68px;min-height:40px;background:#fff;color:#173b59;border:1px solid #b6cde3;border-radius:6px;padding:6px;font:inherit}
.office-coverage-body>p{font-size:11px;line-height:1.5;color:#526d86;margin:8px 0}
.office-coverage-days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:7px}
.office-coverage-days>li{border:1px solid #c7d9ea;border-left:3px solid #488080;border-radius:7px;padding:9px;min-width:0;display:flex;flex-direction:column;gap:5px;background:#fff;overflow-wrap:anywhere}
.office-coverage-days>li.has-gap{border-left-color:#b47c10}
.office-coverage-days small{color:#526d86;line-height:1.45}
.office-coverage-gaps{font-variant-numeric:tabular-nums;font-weight:650;color:#79520c;line-height:1.5}
.office-coverage-days .office-coverage-warning{color:#934820}
@media(max-width:420px){.office-coverage-days{grid-template-columns:minmax(0,1fr)}.office-coverage>summary>span{display:block;margin:5px 0 0}}
