/* Position-only overrides: retain existing card colours and tray translucency. */
#boardView{--drawer-width:clamp(136px,32vw,250px)}
body.day-compact:not(.employee-mode) #boardView>.assignment-dock{
 top:var(--drawer-top,200px);bottom:var(--drawer-bottom,70px);left:auto;
 right:0;width:var(--drawer-width);max-height:none;margin:0;
 overflow:visible;border-radius:12px 0 0 12px;transition:transform .2s ease;
}
body.day-compact:not(.employee-mode) #boardView>.assignment-dock.drawer-closed{transform:translateX(100%)}
.assignment-drawer-content{height:100%;overflow-y:auto;overscroll-behavior:contain;border-radius:inherit;padding-bottom:12px}
body.day-compact .assignment-dock .assignment-drawer-content #unassigned,
body.day-compact .assignment-dock .assignment-drawer-content #off{max-height:none;overflow:visible;display:flex;flex-direction:column;gap:6px;min-height:38px}
body.day-compact .assignment-dock .assignment-drawer-content .person{width:100%;min-height:40px;text-align:left;overflow-wrap:anywhere}
.assignment-drawer-content>.pool{padding:12px 8px}
.assignment-drawer-content .pool-details>summary{position:sticky;top:0;z-index:1}
body #assignmentDrawerToggle{position:absolute;top:12px;right:100%;width:28px;min-height:48px;padding:8px 2px;border:1px solid #c4dfce;border-right:0;border-radius:9px 0 0 9px;font-size:24px;touch-action:pan-y}
body .drawer-closed #assignmentDrawerToggle{font-size:13px;writing-mode:vertical-rl;min-height:126px}
body.day-compact:not(.employee-mode) .main{padding-bottom:20px}
.day-compact #boardView #sections{margin-right:20px}
.day-compact #boardView.drawer-open #sections{margin-right:calc(var(--drawer-width) + 8px)}
.day-compact #boardView.drawer-open .trip{grid-template-columns:38px minmax(0,1fr);padding-right:0}
.day-compact #boardView.drawer-open .trip .people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.day-compact #boardView.drawer-open .trip .person{min-width:0;padding:6px 3px}
.day-compact #boardView.drawer-open .trip-role-action{position:static;grid-column:2;justify-self:end}
.day-compact #boardView.drawer-open .section-head{height:auto;min-height:36px;flex-wrap:wrap;gap:4px}
.other-work-count{font-size:12px;color:var(--sub)}
.other-work-section .people{min-height:42px}
/* Other work has its own light-blue area colour in every shift view. */
[data-area="other"]{--area-color:#626c73!important;--area-surface:#edf0f2!important}
[data-area="takamatsu"]{--area-color:#367f9c!important;--area-surface:#e5f6fd!important}
[data-area="kanonji"]{--area-color:#32825c!important;--area-surface:#dcf2e3!important}
[data-area="tonosho"]{--area-color:#927316!important;--area-surface:#fff0b8!important}
[data-area="etact"]{--area-color:#39825c!important;--area-surface:#e0f3e6!important}
[data-area="fujita"],[data-area="saijo"]{--area-color:#a56c32!important;--area-surface:#ffe7ce!important}
body.day-compact #sections>.section[data-area] .section-head{background:var(--area-surface)}
#monthOverviewGrid .overview-day>span[data-area]{border-color:var(--area-color);background:var(--area-surface)}
body #sections>.other-work-section{border-color:#d5dadd;border-left-color:var(--area-color)}
body.day-compact #sections>.other-work-section .section-head{background:var(--area-surface)}
@media(max-width:360px){
 #boardView{--drawer-width:116px}
 .day-compact #boardView.drawer-open .trip{grid-template-columns:minmax(0,1fr)}
 .day-compact #boardView.drawer-open .trip-label{display:flex;align-items:center;gap:3px}
 .day-compact #boardView.drawer-open .trip-label br{display:none}
 .day-compact #boardView.drawer-open .trip-role-action{grid-column:1}
}
@media(min-width:800px){
 body.day-compact:not(.employee-mode) #boardView>.assignment-dock{right:max(12px,calc(50% - 500px))}
 .day-compact #boardView.drawer-open #sections{margin-right:calc(var(--drawer-width) + 12px)}
}
@media(prefers-reduced-motion:reduce){body.day-compact:not(.employee-mode) #boardView>.assignment-dock{transition:none}}
