/* Roster: one day at a time on phones, with the same editable cells and save API. */
.r254-switch,.r254-mobile-tools,.r254-savebar{display:none}
.r254-fold>summary{font-size:13px;font-weight:700;cursor:pointer}.r254-fold:not([open]){padding-top:12px!important;padding-bottom:12px!important}
.r254-week{min-width:0}.r254-stat-heading{margin:18px 0 8px!important;font-size:15px}
.r254-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}
.r254-count{display:flex;flex-direction:column;align-items:center;padding:7px 4px;border-radius:9px;font-size:11px;white-space:nowrap}
.r254-count strong{font-size:22px;line-height:1.2;margin-top:5px;font-variant-numeric:tabular-nums}
.r254-early{background:#fff4d5;color:#7b550e}.r254-late{background:#eaf0ff;color:#354e8d}.r254-night{background:#eee7fc;color:#5a3b88}
.r254-stat-total{display:block;border-top:1px solid #edf0f3;padding-top:7px;color:#586675;font-size:11px}
.r254-stat-total strong{font-size:16px;color:#172f48}.rosterStatDay{padding:12px;min-width:158px;gap:4px;border-color:#dce4eb}
.rosterStatDay>b{font-size:13px}.rosterStats{grid-template-columns:repeat(7,minmax(158px,1fr));gap:10px;padding-bottom:4px}
.r254-time-field{margin:0;display:block;min-width:0}.r254-time-field>span{display:block;font-size:11px;margin-bottom:4px;color:#526577}
.r254-preset{grid-column:1/-1;display:none}.r254-time-field input{width:100%!important;min-width:0!important}
.r254-summary-note{font-size:12px;color:#607084;line-height:1.7}
@media(max-width:700px){
 #roster .top>h2{font-size:22px}#roster{padding-bottom:20px}
 #roster .r254-switch{display:flex;gap:6px;padding:5px;background:#edf1f5;border-radius:13px;margin:15px 0}
 .r254-switch button{flex:1;border:0;background:transparent;padding:11px 6px;border-radius:10px;color:#536477;font-weight:750;font-size:14px}
 .r254-switch button[aria-selected=true]{background:white;color:#122d47;box-shadow:0 2px 7px #12314c16}
 #roster[data-mobile-week=current] #rosterNextCard,#roster[data-mobile-week=current] #rosterHistoryCard,
 #roster[data-mobile-week=next] #rosterCurrentCard,#roster[data-mobile-week=next] #rosterHistoryCard,
 #roster[data-mobile-week=history] #rosterCurrentCard,#roster[data-mobile-week=history] #rosterNextCard{display:none!important}
 #rosterStaffManageCard{margin-top:22px!important}#rosterStaffManageCard>summary{font-weight:800;font-size:16px;cursor:pointer;padding:5px 0}
 #rosterPermissionNotice{font-size:12px;margin-top:12px}#rosterHeaderInfo{font-size:12px;line-height:1.7}
 .rosterWeekHead{display:block}.rosterWeekHead h3{font-size:16px;line-height:1.6}
 .rosterWeekActions{display:flex;gap:6px;margin-top:12px}.rosterWeekActions button{width:auto!important;font-size:12px;padding:8px 10px!important;flex:1}
 .r254-mobile-tools{display:block;position:sticky;top:0;z-index:8;background:#fff;padding:12px 0 10px;border-bottom:1px solid #e3e9ef}
 .r254-mode{display:flex;gap:6px;margin-bottom:10px}.r254-mode button{flex:1;border:1px solid #d3dfe9;padding:8px 10px;border-radius:9px;background:#f8faf5;color:#526477;font-size:13px;font-weight:700}
 .r254-mode button[aria-pressed=true]{background:#153650;color:white;border-color:#153650}
 .r254-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
 .r254-days button{padding:8px 0;min-width:0;background:#f4f7fa;border:1px solid transparent;border-radius:10px;color:#536477;font-size:11px;line-height:1.5}
 .r254-days button b{display:block;font-size:17px;color:#203b53}.r254-days button[aria-pressed=true]{background:#eaf1f8;border-color:#547c9e;color:#193951;box-shadow:0 0 0 1px #547c9e inset}
 .r254-days button[aria-pressed=true] b{color:#193951}
 .r254-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:8px;margin-top:10px}.r254-filter label{font-size:11px;margin:0;color:#607084}.r254-filter :is(input,select){height:44px;width:100%;padding:8px;margin-top:4px;font-size:16px!important}
 .r254-day-heading{display:flex;justify-content:space-between;align-items:baseline;margin:14px 0 8px;gap:8px}.r254-day-heading b{font-size:16px}.r254-day-heading span{font-size:11px;color:#68788a}
 .r254-week[data-mobile-view=day] .rosterStats{display:block;overflow:visible;margin:8px 0 12px}
 .r254-week[data-mobile-view=day] .rosterStatDay:not(.r254-selected){display:none}
 .r254-week[data-mobile-view=day] .rosterStatDay{width:100%;padding:13px;border-radius:14px;background:#fafcfe}
 .r254-week[data-mobile-view=day] .r254-count{font-size:12px;padding:10px 6px}.r254-week[data-mobile-view=day] .r254-count strong{font-size:27px}
 .r254-week[data-mobile-view=day] .rosterWeekWrap{overflow:visible;border:0;margin:0}
 .r254-week[data-mobile-view=day] .rosterTable{display:block;min-width:0!important;width:100%;border:0;background:transparent}
 .r254-week[data-mobile-view=day] .rosterTable :is(thead,.rosterTraineeEmpty){display:none!important}
 .r254-week[data-mobile-view=day] .rosterTable tbody{display:block}
 .r254-week[data-mobile-view=day] .rosterTable tr{display:block;border:1px solid #dce4ec;border-radius:14px;margin-bottom:10px;overflow:hidden;background:white}
 .r254-week[data-mobile-view=day] .rosterTable tr.r254-filtered{display:none}
 .r254-week[data-mobile-view=day] .rosterTable tr.groupRow{border:0;border-radius:9px;margin:18px 0 9px}
 .r254-week[data-mobile-view=day] .rosterTable .groupRow td:not(:first-child){display:none}
 .r254-week[data-mobile-view=day] .rosterTable td.staffName{position:static!important;display:block;border:0!important;width:100%!important;min-width:0!important;padding:12px 14px!important;font-size:16px!important;text-align:left;background:#eff4eb!important}
 .r254-week[data-mobile-view=day] .rosterTable .groupRow td.staffName{font-size:13px!important;background:#e7edf3!important;color:#4a6278}
 .r254-week[data-mobile-view=day] .rosterTable td.rosterCell{display:none;border:0!important}
 .r254-week[data-mobile-view=day] .rosterTable td.rosterCell.r254-selected{display:block;padding:12px 14px!important;background:#fff;text-align:left}
 .r254-week[data-mobile-view=day] .rosterCellEdit{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .r254-week[data-mobile-view=day] .rosterCellEdit :is(input[type=text],input[type=time]){font-size:18px!important;min-height:48px;padding:10px!important;border-radius:10px}
 .r254-week[data-mobile-view=day] .rosterShiftBadge{display:inline-flex;padding:5px 10px;font-size:12px;min-height:28px;margin-bottom:10px;border-radius:8px}
 .r254-week[data-mobile-view=day] .rosterOffRow{display:flex;align-items:center;justify-content:flex-start;gap:8px;font-size:14px;min-height:44px;margin:0!important}.rosterOffRow input{width:20px!important;height:20px!important}
 .r254-week[data-mobile-view=day] .r254-preset{display:block;margin:0;font-size:11px;color:#607084}.r254-preset select{margin-top:4px;padding:9px;min-height:44px}
 .r254-week[data-mobile-view=day] .rosterShiftText{font-size:18px;letter-spacing:.4px;text-align:left}
 .r254-week[data-mobile-view=day] .rosterLegend{display:none}
 .r254-savebar{display:flex;position:sticky;bottom:calc(64px + env(safe-area-inset-bottom));z-index:9;align-items:center;justify-content:space-between;gap:10px;background:#153650;color:#fff;border-radius:13px;padding:11px 12px;box-shadow:0 7px 22px #102b4533;margin-top:16px}
 .r254-savebar[hidden]{display:none}.r254-savebar span{font-size:12px}.r254-savebar strong{display:block;font-size:14px}.r254-savebar button{background:#ead5ac;border:0;border-radius:10px;color:#253a50;font-size:14px;font-weight:800;padding:10px 16px;min-height:44px}
 .r254-empty{padding:20px 10px;text-align:center;color:#68788a;font-size:14px}
 .r254-week[data-mobile-view=week] .rosterStats{grid-template-columns:repeat(7,minmax(158px,1fr))}
 .r254-week[data-mobile-view=week] .rosterWeekWrap{max-width:100%;overflow-x:auto}
 .r254-week[data-mobile-view=week] .rosterTable{min-width:1160px!important}.r254-week[data-mobile-view=week] .rosterCellEdit{min-width:130px}
}
@media(min-width:701px){.r254-day-heading,.r254-empty{display:none}.r254-week .rosterTable tr.r254-filtered{display:table-row}.r254-time-field>span{font-size:10px}}
.r254-week [hidden],.r254-switch [hidden]{display:none!important}
@media(max-width:700px){
 .r254-week[data-mobile-view=day] .rosterStats{display:block!important}
 .r254-week[data-mobile-view=day] .rosterWeekWrap{overflow:visible!important}
}

@media(max-width:700px){
 .app:has(#roster.active)>header{padding:13px 16px}
 .app:has(#roster.active)>header h1,.app:has(#roster.active)>header>small{display:none}
 #roster>.r254-fold{margin:8px 0}
 #roster .rosterWeekActions button{min-width:0}
}
