@import url('/prototype-theme.css?v=rota-scroll-10');
.password-reset-panel{padding:12px;border:1px solid var(--line);border-radius:9px;background:#fffaf0;margin:12px 0}
.password-reset-panel>summary{cursor:pointer;font-weight:800;color:var(--navy)}
.clock-confirm{padding-top:8px}
.clock-confirm-venue{padding:18px;border-radius:10px;background:var(--navy);color:var(--gold);font-size:22px;font-weight:800;border:1px solid var(--gold)}
.clock-confirm-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}
.clock-confirm-actions button{min-height:44px;padding:12px 18px;border-radius:9px;font-weight:800}
#confirm-clock-in{background:var(--gold);color:var(--navy);border:0}
.clock-confirm-actions button:focus-visible{outline:3px solid #397cc2;outline-offset:3px}
/* Keep wide rota content inside its own scroller rather than widening the page. */
.app-footer{position:relative;z-index:5;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 22px;padding:22px;background:#f6f3eb;border-top:1px solid #e2ddcf;font-size:.85rem}.app-footer a{color:#70520c;text-underline-offset:3px}
.day-info-strip{min-width:0;max-width:100%;grid-template-columns:repeat(7,minmax(140px,1fr));overflow-x:auto}
.section,.content,.toolbar{min-width:0}
.shift-chip.shift-foh,.shift.shift-foh{background:#f0e5fa;border-left-color:#8951b5;color:#563174}
.shift-chip.shift-kitchen,.shift.shift-kitchen{background:#e4f3e8;border-left-color:#318653;color:#205737}
.shift-chip.shift-housekeeping,.shift.shift-housekeeping{background:#e5effc;border-left-color:#397cc2;color:#234f7d}
.shift-chip.shift-other,.shift.shift-other{background:#fff0db;border-left-color:#d47a13;color:#713d08}
.shift-chip.shift-conflict,.shift.shift-conflict{border-left-color:#a83241;outline:2px solid #a83241;outline-offset:-2px}
.shift-conflict .error{color:#a83241}
.shift-chip.shift-absent,.shift.shift-absent{background:#fdecec;border-left-color:#c55a65;color:#702e38}
/* Neutral slate distinguishes leave from all department colours and red absences. */
.badge.rota-leave,.shift.rota-leave{background:#e2e8f0;color:#334155;border:1px solid #94a3b8;border-left:4px solid #64748b}
.badge.rota-leave.leave-pending,.shift.rota-leave.leave-pending{background:#f8fafc;border-style:dashed;border-left-style:solid;color:#475569}
.shift.rota-leave .badge{background:transparent;color:inherit}
.reminder-info small{display:block;white-space:pre-wrap}
.reminder-info button{margin-top:6px}
@media(max-width:800px){.day-info-strip{grid-template-columns:repeat(7,150px)}.sidebar{max-width:100vw;overflow-x:auto}.signed-in{flex-shrink:0}.section-head{flex-wrap:wrap}.leave-day{overflow-wrap:anywhere}}
/* Today follows UK time; shift department and absence colours remain intact. */
#rota-result .rota-table td.rota-today{background:#fff8d9;box-shadow:inset 2px 0 #c18a13,inset -2px 0 #c18a13}
#rota-result .rota-table th.rota-today{background:#ffe69a;color:#493408;box-shadow:inset 2px 0 #c18a13,inset -2px 0 #c18a13}
#rota-result .rota-table th.rota-today::after{content:'TODAY';display:block;font-size:10px;font-weight:900;letter-spacing:.06em}
#rota-result .rota-day.rota-today{outline:2px solid #c18a13;outline-offset:-2px;background:#fff8d9}
#rota-result .rota-day.rota-today>header{background:#ffe69a;color:#493408}
#rota-result .rota-day.rota-today>header::after{content:'TODAY';display:block;font-size:11px;font-weight:900}
/* Compact manager grid only: keep colleague cards and preset editor unchanged. */
#rota-result:has(.rota-table){padding:16px}
#rota-result:has(.rota-table)>.section-head{margin-bottom:8px;gap:10px}
#rota-result:has(.rota-table)>.section-head h3{margin:3px 0;font-size:20px}
#rota-result:has(.rota-table)>.form-help{margin:6px 0;font-size:12px}
#rota-result:has(.rota-table) .rota-conflict-summary{padding:10px 12px;margin:10px 0}
#rota-result:has(.rota-table) .rota-conflict-summary h3{font-size:15px;margin:0}
#rota-result:has(.rota-table) .rota-conflict-summary>p{margin:5px 0;font-size:12px;line-height:1.35}
#rota-result:has(.rota-table) .rota-conflict-summary article{padding:6px 0}
#rota-result .rota-table{font-size:13px;line-height:1.3}
#rota-result .rota-table th,#rota-result .rota-table td{padding:5px 6px}
#rota-result .rota-table .dept-row td{padding:4px 8px;font-size:13px}
#rota-result .rota-table th small{font-size:11px;margin-top:2px}
#rota-result .rota-table .shift-chip{padding:4px 6px;margin-bottom:3px;min-height:32px;font-size:13px;line-height:1.25}
#rota-result .rota-table .shift-chip small{font-size:11px;line-height:1.2;margin:1px 0}
#rota-result .rota-table .shift-chip .error{min-height:0;white-space:normal;overflow-wrap:anywhere}
#rota-result .rota-table .preset-add{min-height:28px;padding:3px 5px;font-size:12px;line-height:1.2}
#rota-result .rota-table .hours small{display:block;font-size:11px;line-height:1.2}
#rota-result .rota-table .rota-leave{padding:3px 6px;font-size:11px;white-space:normal}
#rota-result .rota-day-info-row .day-info-actions{margin-top:3px;display:flex;flex-wrap:wrap;gap:3px}
#rota-result .rota-day-info-row .day-info-actions button{padding:4px;font-size:11px;min-height:28px}
#rota-result .rota-day-info-row .info{font-size:12px;line-height:1.3;margin:3px 0}
/* Dense desktop coverage view: retain every shift and warning, remove empty padding. */
#rota-result .rota-conflict-summary>summary{cursor:pointer;font-size:13px;font-weight:800}
#rota-result.rota-expanded{position:fixed;inset:8px;z-index:40;margin:0;overflow:auto;background:var(--cream);box-shadow:0 0 0 12px var(--cream)}
#rota-result.rota-expanded>.section-head{position:sticky;top:-16px;z-index:6;background:var(--cream);padding:8px 0}
@media(min-width:801px) and (pointer:fine){
 #rota-result .rota-table{min-width:1020px;font-size:10.5px;line-height:1.2}
 #rota-result .rota-table th,#rota-result .rota-table td{padding:2px 4px}
 #rota-result .rota-table tbody th{min-width:140px}
 #rota-result .rota-table tbody th small{display:inline;font-size:10px;margin-left:5px}
 #rota-result .rota-table tbody tr:not(.dept-row)>td:not(.hours){position:relative;padding-right:28px}
 #rota-result .rota-table .shift-chip{min-height:22px;padding:2px 3px;margin-bottom:2px;font-size:10.5px;line-height:1.15}
 #rota-result .rota-table .shift-chip small:not(.error){display:inline;margin-left:4px;font-size:10px}
 #rota-result .rota-table .shift-chip .error{display:block;font-size:10px}
 #rota-result .rota-table .preset-add{position:absolute;bottom:3px;right:3px;width:22px;min-height:24px;padding:0;font-size:0}
 #rota-result .rota-table .preset-add::after{content:'+';font-size:18px}
 #rota-result .rota-table .dept-row td{padding:2px 6px;font-size:10.5px}
 #rota-result .rota-table tbody tr:not(.dept-row)>td{height:26px}
 #rota-result .rota-day-info-row .info{font-size:10px}
 #rota-result .rota-table .hours small,#rota-result .rota-table .rota-leave,#rota-result .rota-table thead th small{font-size:10px}
 #rota-result .rota-day-info-row .day-info-actions button{font-size:10px;min-height:24px;padding:3px}
 #rota-result:has(.rota-table)>.form-help{font-size:11px;margin:3px 0}
}
/* Preserve comfortable touch targets on phones and tablets. */
@media(pointer:coarse){
 #rota-result .rota-table .shift-chip,#rota-result .rota-table .preset-add,
 #rota-result .rota-day-info-row .day-info-actions button{min-height:44px}
}
/* Mobile: only navigation scrolls horizontally; sign-out has its own row. */
@media(max-width:800px){
 .sidebar{width:100%;max-width:100%;height:auto;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:6px;overflow:visible;padding:8px 10px}
 .sidebar .nav-items{display:flex;flex-wrap:nowrap;gap:8px;width:100%;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:2px 0 8px;-webkit-overflow-scrolling:touch}
 .sidebar .nav-items button{flex:0 0 132px;width:132px;min-width:132px;max-width:132px;min-height:76px;white-space:normal;overflow-wrap:anywhere;line-height:1.3;text-align:center;justify-content:center;align-items:center;padding:9px 8px;margin:0}
 .sidebar .nav-items [data-view="handbook"],.sidebar .nav-items [data-view="bunzl"]{padding:9px 8px;margin:0}
 .sidebar .nav-icon{flex:0 0 auto;line-height:1.2}
 .sidebar .signed-in{display:flex;flex:0 0 auto;align-self:stretch;align-items:center;justify-content:flex-end;min-width:0;width:100%;margin:0;padding:4px 0 0;border-top:1px solid #ffffff25}
 .sidebar .signed-in b,.sidebar .signed-in small{display:none}
 .sidebar .signed-in button{flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:10px 14px;white-space:nowrap;text-align:center}
}
/* Cross-venue reference shifts never act as editable shifts on this rota. */
.rota-table .other-venue-shift{border-style:dashed;cursor:default;opacity:.9}
.rota-table .other-venue-shift:not(.shift-absent){background:#e4f3e8;border-color:#318653;color:#205737;opacity:1}
.rota-table .other-venue-shift b,.rota-table .other-venue-shift span{display:block}
/* One manager-grid scroller keeps dates and reminders aligned in both axes. */
#rota-result .rota-table-wrap{max-height:75vh;max-height:75dvh;overflow:auto}
#rota-result .rota-table thead{position:sticky;top:0;z-index:5;background:#f4f0e4}
#rota-result .rota-table thead th{position:static}
#rota-result .rota-table thead th:first-child{position:sticky;left:0;z-index:6;background:#fff}
#rota-result .rota-table .rota-day-info-row td{background:#fffaf0}
#rota-result .rota-table .rota-day-info-row .rota-info-label{position:sticky;left:0;z-index:6}
