/* Business home shares the Personal app's full-width surface and navigation styling. */
html body.biz-mode:has(#business-dashboard.active [data-biz-view="home"]:not([hidden]))>main{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0;overflow:visible}
html body>main>#business-dashboard.active:has([data-biz-view="home"]:not([hidden])){box-sizing:border-box;width:100%;max-width:100%;margin:0;min-height:100dvh;display:flex}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden]))>.biz-shell{box-sizing:border-box;display:flex;flex-direction:column;flex:1;width:100%;min-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;background:#f6f5fb;overflow:visible}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-body{box-sizing:border-box;display:flex;flex-direction:column;flex:1;width:100%;min-height:100dvh;padding:0}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-login-row{box-sizing:border-box;flex:none;background:white;border-bottom:1px solid #e0e4ef;padding:16px 10px 10px;margin:0}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-login-line{font-size:16px!important;font-weight:750;color:#172d71;margin:0 0 12px!important}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-account-controls{max-width:720px;margin:auto;gap:8px}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-account-controls>button{min-height:64px;border:1px solid #8c9ab0;border-radius:10px;gap:6px;font-size:15px;font-weight:700;color:#172b50}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-account-controls>button svg{width:24px;height:24px}
html body #business-dashboard [data-biz-view="home"]:not([hidden]){box-sizing:border-box;display:flex;flex-direction:column;flex:1;min-height:0;width:100%;padding:14px 16px 0;margin:0}
html body #business-dashboard [data-biz-view="home"]>h1{display:none}
html body #business-dashboard [data-biz-view="home"]>.biz-alert{box-sizing:border-box;flex:none;width:100%;max-width:900px;margin:0 auto 12px;padding:14px 12px;border-radius:14px;border-color:#d6dce7;border-top:3px solid #172d79;background:white}
html body #business-dashboard [data-biz-view="home"]>.biz-alert small{font-size:14px}
html body #business-dashboard [data-biz-view="home"]>.biz-alert strong{font-size:17px;line-height:1.35}
html body #business-dashboard #biz-job-list{box-sizing:border-box;flex:1 1 auto;width:100%;max-width:900px;height:calc(100dvh - 410px);min-height:120px;max-height:calc(100dvh - 410px);margin:0 auto 12px;padding:2px;overflow-y:auto}
html body #business-dashboard #biz-job-list .upcoming-day h3{font-size:15px;margin:10px 0}
html body #business-dashboard #biz-job-list button.upcoming-job-entry{padding:16px 12px;min-height:100px;border-radius:14px}
html body #business-dashboard #biz-job-list button.upcoming-job-entry>span{font-size:17px}
html body #business-dashboard #biz-job-list button.upcoming-job-entry>small{font-size:14px}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles{box-sizing:border-box;flex:none;position:sticky;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:7px;width:calc(100% + 32px);margin:auto -16px 0;padding:8px 8px max(8px,env(safe-area-inset-bottom,0px));border-top:1px solid #e0e4ef;background:white}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles>button,
html body #business-dashboard [data-biz-view="home"]>.biz-tiles>#biz-account-menu>summary{box-sizing:border-box;min-height:76px;height:100%;padding:8px 4px;gap:5px;border:1px solid #8c9ab0;border-radius:10px;background:white;color:#172b50;font-size:13px;font-weight:700;line-height:1.25}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles>button strong{font-size:13px;line-height:1.25;overflow-wrap:normal}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles>button svg{width:23px;height:23px}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles>#biz-account-menu>summary>span{font-size:23px;line-height:23px}
@media(min-width:760px){
 html body #business-dashboard [data-biz-view="home"]>.biz-tiles{padding-inline:max(12px,calc((100vw - 1100px)/2))}
 html body #business-dashboard #biz-job-list{height:calc(100dvh - 410px);max-height:calc(100dvh - 410px)}
}
@media(max-width:350px){
 html body #business-dashboard [data-biz-view="home"]>.biz-tiles>button strong,
 html body #business-dashboard [data-biz-view="home"]>.biz-tiles>#biz-account-menu>summary{font-size:12px}
}

/* Allocate the remaining viewport to jobs, without pushing navigation off-screen. */
html body.biz-mode:has(#business-dashboard.active [data-biz-view="home"]:not([hidden])){margin:0;padding:0}
html body.biz-mode:has(#business-dashboard.active [data-biz-view="home"]:not([hidden]))>main{height:100dvh;min-height:0;overflow:hidden}
html body>main>#business-dashboard.active:has([data-biz-view="home"]:not([hidden])),
html body #business-dashboard:has([data-biz-view="home"]:not([hidden]))>.biz-shell,
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-body{height:100%;min-height:0}
html body #business-dashboard #biz-job-list{height:0;min-height:0;max-height:none;flex:1 1 0}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles{position:relative;bottom:auto}

html body #business-dashboard:has([data-biz-view="home"]:not([hidden]))>.biz-shell{padding:0;flex:1 1 0}
html body #business-dashboard:has([data-biz-view="home"]:not([hidden])) .biz-body{margin:0}
html body>main>#business-dashboard.active:has([data-biz-view="home"]:not([hidden])){flex:1 1 0}

/* Adapt cards to both the job count and the space above navigation. */
html body #business-dashboard #biz-job-list[data-density="compact"] button.upcoming-job-entry{min-height:76px;padding:9px 10px;gap:3px;margin-bottom:7px}
html body #business-dashboard #biz-job-list[data-density="compact"] button.upcoming-job-entry>span{font-size:15px}
html body #business-dashboard #biz-job-list[data-density="compact"] button.upcoming-job-entry>small{font-size:13px}
html body #business-dashboard #biz-job-list[data-density="dense"] button.upcoming-job-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;min-height:58px;padding:7px 10px;gap:4px 8px;margin-bottom:5px}
html body #business-dashboard #biz-job-list[data-density="dense"] button.upcoming-job-entry>span:first-child{grid-column:1/-1;font-size:14px;line-height:1.3}
html body #business-dashboard #biz-job-list[data-density="dense"] button.upcoming-job-entry>small{font-size:12px;text-align:start}
html body #business-dashboard #biz-job-list[data-density="dense"] .job-status-color{font-size:12px;padding:3px 7px;line-height:1.25}
html body #business-dashboard #biz-job-list:is([data-density="compact"],[data-density="dense"]) .upcoming-day{margin-bottom:6px}
html body #business-dashboard #biz-job-list:is([data-density="compact"],[data-density="dense"]) .upcoming-day h3{margin:6px 0;font-size:13px;line-height:1.3}
