/* Front Desk only. Fit the available workspace, including tablet navigation,
   keep monthly ledgers scrollable, and make the working controls touchable. */
#view-operationsmode :is(.bp-ops-card,.bp-ops-card-head,.bp-ops-entry-form,.field,.formgrid,.bp-fd-head>div,.bp-fd-task,.bp-fd-open){min-width:0;box-sizing:border-box}
#view-operationsmode :is(input,select,textarea){box-sizing:border-box;max-width:100%}
#view-operationsmode :is(button,input,select,textarea,summary):focus-visible{outline:3px solid #2b8d71;outline-offset:3px}
#view-operationsmode .bp-fd-tasks-card .bp-fd-actions{flex-wrap:wrap}
#view-operationsmode .bp-fd-tasks-card .bp-fd-head-sub{line-height:1.5}
#view-operationsmode .bp-fd-tasks-card .bp-fd-list{overscroll-behavior:contain;scrollbar-gutter:stable}
#view-operationsmode .bp-fd-task .bp-fd-open{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 10px;min-width:0;max-width:100%;white-space:normal}
#view-operationsmode .bp-fd-task .bp-fd-title{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;line-height:1.45}
#view-operationsmode .bp-fd-task .bp-fd-meta{grid-column:2;flex-wrap:wrap;line-height:1.45}
#view-operationsmode .bp-fd-task .bp-fd-done{position:relative;width:44px;height:44px;min-width:44px;flex:0 0 44px;border:0;border-radius:8px}
#view-operationsmode .bp-fd-task .bp-fd-done::before{content:'';position:absolute;width:22px;height:22px;border:2px solid #94a3b8;border-radius:50%;inset:0;margin:auto}
#view-operationsmode .bp-fd-task .bp-fd-done[aria-busy=true]{opacity:.5;cursor:wait}
#view-operationsmode .bp-ops-entry-title,#view-operationsmode .bp-shuttle-entry-head{gap:12px;flex-wrap:wrap}
#view-operationsmode .bp-ops-form-actions,#view-operationsmode .bp-shuttle-batch-footer{flex-wrap:wrap}
#view-operationsmode .bp-ops-sheet-wrap{min-width:0;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#view-operationsmode #opsDutyBoard .bp-staff-clock-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
#view-operationsmode #opsDutyBoard .bp-staff-clock-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px}
#view-operationsmode #opsDutyBoard .bp-staff-clock-row>div{min-width:0;overflow-wrap:anywhere}
#view-operationsmode #opsDutyBoard .bp-staff-clock-name{font-size:13px;line-height:1.4}
#view-operationsmode #opsDutyBoard .bp-staff-clock-meta{font-size:12px;line-height:1.4}
#view-operationsmode #opsDutyBoard .bp-staff-clock-badge{grid-column:2;justify-self:start;min-width:0;font-size:11px}
#view-operationsmode #opsDutyBoard .bp-staff-clock-stat small,#view-operationsmode #opsDutyBoard .bp-staff-clock-updated{font-size:11px;line-height:1.4}
@media(max-width:1100px),(pointer:coarse){
 #view-operationsmode :is(button,.btn,.smallbtn,summary){min-height:44px!important}
 #view-operationsmode :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){min-height:44px;font-size:16px!important;line-height:1.4}
 #view-operationsmode :is(input[type=checkbox],input[type=radio]){width:22px;height:22px;flex:0 0 22px}
 #view-operationsmode .bp-ops-safety-checks label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;line-height:1.4}
 #view-operationsmode :is(.bp-ops-entry-form,.bp-fd-reservation-form) .field>label{font-size:13px;line-height:1.4}
 #view-operationsmode :is(.bp-ops-entry-form,.bp-fd-reservation-form) .field>small{font-size:12px;line-height:1.4}
 #view-operationsmode .bp-shuttle-batch-help{font-size:12px;line-height:1.45;flex-wrap:wrap}
 #view-operationsmode .bp-shuttle-batch-row output{min-height:44px;font-size:14px}
 #view-operationsmode .bp-shuttle-batch-footer>span{font-size:12px}
 #view-operationsmode .bp-ops-filter-row{width:100%}
 #view-operationsmode .bp-ops-filter-row>*{min-width:0;max-width:100%;flex:1 1 140px}
 #view-operationsmode .bp-fd-tasks-card .bp-fd-actions button{min-height:44px!important}
 #view-operationsmode .bp-ops-sheet:not(.bp-month-ledger) :is(button,select,input){font-size:14px;min-height:44px!important}
}
@container bpops (max-width:850px){
 #view-operationsmode .bp-ops-entry-form .formgrid.threecol{grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-operationsmode .bp-ops-card-head{flex-wrap:wrap}
 #view-operationsmode .bp-ops-card-head>div{max-width:100%;min-width:0}
 #view-operationsmode .bp-ops-card-head :is(.bp-pool-entry-actions,.bp-shuttle-head-actions){flex-wrap:wrap;justify-content:flex-start}
}
@container bpops (max-width:560px){
 #view-operationsmode .bp-ops-entry-form :is(.formgrid,.formgrid.threecol),
 #view-operationsmode .bp-fd-reservation-form,#view-operationsmode .bp-ops-safety-checks{grid-template-columns:minmax(0,1fr)}
 #view-operationsmode .bp-ops-entry-form .field.full,#view-operationsmode .bp-fd-reservation-notes{grid-column:1/-1}
 #view-operationsmode .bp-fd-task{gap:5px;padding:8px 6px;align-items:flex-start}
 #view-operationsmode .bp-fd-task .bp-fd-open{grid-template-columns:minmax(0,1fr);gap:6px}
 #view-operationsmode .bp-fd-task .bp-fd-cat-pill{justify-self:start}
 #view-operationsmode .bp-fd-task .bp-fd-meta{grid-column:1;font-size:12px}
 #view-operationsmode .bp-fd-task .bp-fd-title{font-size:14px}
 #view-operationsmode .bp-fd-tasks-card .bp-fd-list{padding:10px;max-height:430px}
 #view-operationsmode .bp-fd-tasks-card .bp-fd-head{padding:14px}
 #view-operationsmode .bp-shift-command-controls{grid-template-columns:minmax(0,1fr)!important}
 #view-operationsmode .bp-shift-command-controls>*{min-width:0;max-width:100%}
 #view-operationsmode .bp-shift-command-controls :is(button,input,select){min-height:44px!important;font-size:16px!important}
 #view-operationsmode .bp-shift-start-guide small{white-space:normal;overflow:visible;text-overflow:clip;font-size:12px;line-height:1.45}
 #view-operationsmode .bp-shuttle-entry-head>div{min-width:0}
 #view-operationsmode .bp-shuttle-entry-head span{white-space:normal;overflow-wrap:anywhere}
}

/* Batch-entry labels stay with their controls when the grid becomes cards. */
#view-operationsmode .bp-shuttle-batch-field{display:block;min-width:0;margin:0}
#view-operationsmode .bp-shuttle-batch-field>span{display:none}
#view-operationsmode .bp-shuttle-batch-field :is(input,select,output){width:100%}
@container bpops (max-width:1100px){
 #view-operationsmode .bp-shuttle-batch-field>span{display:block;font-size:12px;line-height:1.4;margin-bottom:4px}
 #view-operationsmode .bp-shuttle-batch-field[data-field=custom],#view-operationsmode .bp-shuttle-batch-field[data-field=notes]{grid-column:span 2}
 #view-operationsmode .bp-shuttle-batch-row{align-items:end}
 #view-operationsmode .bp-shuttle-row-remove{min-width:44px;justify-self:end}
}
@container bpops (max-width:700px){
 #view-operationsmode .bp-shuttle-batch-field[data-field=custom],#view-operationsmode .bp-shuttle-batch-field[data-field=notes]{grid-column:1/-1}
}

/* The native date segments need enough room at the mobile 16px font size. */
#view-operationsmode #bpOpsModeShell .bp-ops-top-actions{flex-wrap:wrap!important;min-width:0;max-width:100%}
#view-operationsmode #bpOpsModeShell #opsBusinessDate{width:160px!important;min-width:160px!important;min-height:44px!important}

/* Match the open Workspace on phones: quiet surfaces, regular type, short
   previews, and readable content instead of cards nested inside scroll boxes. */
#view-operationsmode .bp-fd-task-disclosure{display:none}
@media(max-width:820px){
 html body #view-operationsmode #bpOpsModeShell :is(h2,h3,h4,b,strong,button,summary,label,.bp-fd-title){font-weight:400!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-ops-card,.bp-ops-activity,.bp-fd-tasks-card,.bp-fd-shift-command-center){box-shadow:none!important;border-radius:10px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-card{padding:12px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-card-head{flex-direction:row!important;align-items:center!important;gap:8px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-card-head>div{flex:1 1 170px;min-width:0}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-card-head .smallbtn{width:auto!important;min-height:44px!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-ops-welcome.bp-fd-workspace-header,.bp-fd-head){background:#fff!important;color:var(--inn-ink,#204238)!important;border-color:var(--inn-line,#dce6df)!important;box-shadow:none!important;padding:12px!important;gap:10px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;border-bottom:0!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome::after{display:none!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome-copy>span{display:none!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-ops-welcome.bp-fd-workspace-header h3,.bp-fd-head h3){font-size:17px!important;line-height:1.35!important;color:var(--inn-ink,#204238)!important;font-weight:400!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-ops-welcome.bp-fd-workspace-header p,.bp-fd-head-sub){color:var(--inn-muted,#60766b)!important;font-size:12px!important;line-height:1.45!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header p{display:none!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header .bp-ops-welcome-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;width:100%!important;gap:8px!important;align-items:center!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header .bp-ops-shift-state{min-width:0!important;background:transparent!important;border:0!important;padding:0!important;gap:3px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header .bp-ops-shift-state b{color:var(--inn-ink,#204238)!important;font-size:12px!important;font-weight:400!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header .bp-ops-shift-state span{color:var(--inn-muted,#60766b)!important;font-size:11px!important;overflow-wrap:anywhere}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-welcome.bp-fd-workspace-header .btn{min-height:44px!important;font-size:12px!important;padding:8px 10px!important;border-radius:7px!important;box-shadow:none!important;border:1px solid var(--inn-line,#dce6df)!important;font-weight:400!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-fd-home-actions,.bp-fd-head) .bp-fd-actions{display:flex!important;width:100%!important;gap:6px!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-fd-home-actions,.bp-fd-head) .bp-fd-actions button{flex:1 1 0!important;min-width:0!important;min-height:44px!important;padding:8px!important;background:#fff!important;color:var(--inn-ink,#204238)!important;border:1px solid var(--inn-line,#dce6df)!important;border-radius:7px!important;box-shadow:none!important;font-size:12px!important;font-weight:400!important;justify-content:center!important;white-space:normal!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-fd-home-actions,.bp-fd-head) .bp-fd-actions button.primary{background:var(--inn-action,#205b45)!important;color:#fff!important;border-color:var(--inn-action,#205b45)!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-head .bp-icon{width:24px!important;height:24px!important;background:#eff5f1!important;color:var(--inn-ink,#204238)!important;border:0!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-tasks-card .bp-fd-list{max-height:none!important;overflow:visible!important;padding:0 12px!important;gap:0!important;scrollbar-gutter:auto}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-tasks-card:not(.bp-fd-tasks-expanded) .bp-fd-task:nth-child(n+4){display:none!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task{padding:10px 0!important;border-radius:0!important;border-width:0 0 1px!important;background:#fff!important;box-shadow:none!important;gap:6px!important;align-items:flex-start!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task.overdue{border-left:0!important;border-bottom-color:var(--inn-line,#dce6df)!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task .bp-fd-open{grid-template-columns:auto minmax(0,1fr)!important;gap:5px 8px!important;align-items:center!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task .bp-fd-title{grid-column:1/-1!important;grid-row:1!important;font-size:14px!important;line-height:1.45!important;font-weight:400!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task .bp-fd-cat-pill{grid-column:1;grid-row:2;justify-self:start;padding:2px 6px;font-size:10px!important;line-height:1.4}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task .bp-fd-meta{grid-column:2!important;grid-row:2;font-size:12px!important;min-width:0}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task:last-child{border-bottom:0!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-task-disclosure{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:10px;background:#fff;border:0;border-top:1px solid var(--inn-line,#dce6df);color:var(--inn-action,#205b45);font:inherit;font-size:13px;cursor:pointer}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-plan-row{grid-template-columns:4px minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-plan-row :is(b,small){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.45!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-plan-row b{font-size:13px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-plan-row small{font-size:11px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-ops-plan-row button{grid-column:auto!important;width:auto!important;min-height:44px!important;min-width:44px!important}
 html body #view-operationsmode #bpOpsModeShell :is(.bp-shift-command-copy p,.bp-shift-start-guide small){font-size:12px!important;line-height:1.45!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-shift-command-center::before{display:none!important}
 html body #view-operationsmode #bpOpsModeShell .bp-fd-shift-command-center>.bp-shift-command{padding:12px!important;background:#fff!important}
 html body #view-operationsmode #bpOpsModeShell .bp-shift-command-controls{grid-template-columns:84px minmax(0,1fr)!important;gap:8px!important}
 html body #view-operationsmode #bpOpsModeShell .bp-shift-command-controls .bp-shift-now{grid-column:1/-1;font-size:12px!important;min-height:0!important;padding:0!important;text-align:left!important}
 html body #view-operationsmode #bpOpsModeShell .bp-shift-command-controls .btn{grid-column:1/-1!important}
 html body #view-operationsmode #bpOpsModeShell textarea{min-height:100px!important;resize:vertical}
}

@media(max-width:820px){
 html body #view-operationsmode .bp-cash-form-callout { display:block!important; }
 html body #view-operationsmode .bp-cash-form-callout>b { display:block; margin-bottom:6px; }
}
