/* p5-89 (JD 10/13 2:39 PM): dead space under every page so the bottom button clears the bar */
html.bb-on body { padding-bottom: calc(var(--bb-h) + 160px) !important; }
html:not(.bb-on) body { padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px)); }
@media print { html body { padding-bottom: 0 !important; } }
/* p5-90 (JD 10/13 5:55 PM "it's too tight, you use all the borders up"): room under the last item of every panel that scrolls on its own */
.sb-tray--open, body.fleet .fm-list, .home-notice-list, .sbp-scroll, .sb-sheet, .hsc-route { padding-bottom: 120px !important; scroll-padding-bottom: 120px; }
body.fleet .fm-sheet, .bc-sheet, .sbp-dlg { padding-bottom: 48px !important; max-height: calc(100dvh - 48px) !important; scroll-padding-bottom: 48px; }
.sb-tray--open::after, body.fleet .fm-list::after, .home-notice-list::after, .sbp-scroll::after { content: ""; display: block; height: 40px; }
/* p5-97b (R-1009-78 "see the whole screen at one time without having to scroll" + JD 10/13 7:56 PM): the storm command
   board fits one desk screen, so it carries the dock reserve only, not the 160 px dead space; phone unchanged */
@media (min-width: 900px) { html.bb-on body.storm-board { padding-bottom: calc(var(--bb-h, 0px) + 16px) !important; } html:not(.bb-on) body.storm-board { padding-bottom: 16px !important; } }
/* p5-102 (JD 10/13 8:31 PM: the B-number sign-in flashes on the way into Office): while web/auth-pending.js holds
   html.auth-pending (until /auth/me answers, an error, or its 3 s cap) the sign-in block is not painted */
html.auth-pending #screen-login, html.auth-pending #screen-office-signin, html.auth-pending #screen-signin,
html.auth-pending #gr-screen-signin, html.auth-pending #screen-brief-signin { visibility: hidden !important; }
/* p5-104 (JD 10/13 8:37 PM "a black band that should never be black. That should always be full of calendar"): the desk
   schedule board carries the dock reserve only, and the page is a flex column so the calendar grid (.sb-board) stretches
   down to the dock; its columns and day lines run top:60px to bottom:0, so the stretch is drawn calendar; phone unchanged */
@media (min-width: 900px) {
  html.bb-on body.sched-board { padding-bottom: calc(var(--bb-h, 0px) + 16px) !important; }
  html:not(.bb-on) body.sched-board { padding-bottom: 16px !important; }
  body.sched-board { box-sizing: border-box; min-height: 100dvh; margin: 0; display: flex; flex-direction: column; }
  body.sched-board > #sb-main:not([hidden]) { flex: 1 0 auto; display: flex; flex-direction: column; }
  body.sched-board #sb-main > .sb:not(.sb--phone) { flex: 1 0 auto; display: flex; flex-direction: column; }
  body.sched-board .sb:not(.sb--phone) > .sb-wrap { flex: 1 0 auto; display: flex; flex-direction: column; }
  body.sched-board .sb:not(.sb--phone) > .sb-wrap > .sb-board { flex: 1 0 auto; }
}
