/* Pending fixes: layout uses remaining viewport, never a second full viewport. */
html body.biz-mode:has(#business-dashboard.active [data-biz-view="home"]:not([hidden]))>main{height:100%;height:var(--hub-viewport-height,100dvh);min-height:0;overflow:hidden;padding:0}
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;flex:1 1 0;overflow:hidden;box-sizing:border-box}
html body #business-dashboard [data-biz-view="home"]:not([hidden]){min-height:0;flex:1 1 0;overflow:hidden}
html body #business-dashboard #biz-job-list{height:0;min-height:0;max-height:none;flex:1 1 0;overflow:auto}
html body #business-dashboard [data-biz-view="home"]>.biz-tiles{flex:0 0 auto;position:relative;bottom:auto;grid-auto-rows:minmax(64px,1fr)}
html body .job-start-button.is-started,html body .tech-start-job.is-started{font-size:10px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;padding:2px!important;text-align:center}
.job-category-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 10px}.job-category-heading>h2{margin:0!important;text-align:right!important}.job-category-heading>span{font-size:14px;font-weight:700;text-align:left}
html body .biz-job-tabs button[aria-pressed=true],html body .tech-job-filters button[aria-pressed=true],html body .property-status-categories button[aria-pressed=true]{background:#172d71!important;color:white!important;border-color:#172d71}
.property-status-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.property-status-categories>button{margin:0!important;width:100%;font-size:13px}.property-status-jobs{margin-top:8px}
html body main #biz-calendar-today{left:auto!important;right:0!important;transform:none!important;max-width:80px}
html body main #business-dashboard:has([data-biz-view="calendar"]:not([hidden])) .biz-body{position:relative}
html body main #business-dashboard [data-biz-view="calendar"]>h2{margin-inline:50px 85px!important;min-height:44px;display:flex;align-items:center;justify-content:center}
.appointment-offers article{text-align:center;padding:12px!important}.appointment-offers article>p{margin:8px 0!important;font-size:14px!important;line-height:1.4!important}.appointment-offers article>button{display:block!important;width:min(100%,280px)!important;margin:8px auto 0!important}
.hub-exit-hint{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);padding:10px 18px;background:#172d71;color:white;border-radius:8px;z-index:9999;white-space:nowrap;font:14px system-ui}

html body main .job-category-heading:has(>#biz-back){display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;align-items:center;margin:0 0 10px;padding:0;min-height:44px}
html body main .job-category-heading>#biz-back{grid-column:1;grid-row:1;position:static;transform:none;margin:0;padding:0;width:44px;min-height:44px}
html body main .job-category-heading>#biz-total-jobs{grid-column:2;grid-row:1;margin:0;min-width:0;text-align:left;font-size:14px}
html body main .job-category-heading>h2{grid-column:3;grid-row:1;margin:0;padding:0;text-align:right;font-size:22px}

/* Technician detail uses the same Start Job control as every job card. */
html body .tech-job-start-actions{display:flex;justify-content:flex-end;width:100%;margin:8px 0}
html body .tech-job-start-actions>.tech-start-job{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;margin:0;padding:4px;border:1px solid #800020;border-radius:6px;background:#800020;color:#fff;font:700 12px/1.2 system-ui;text-align:center;white-space:normal}
html body .tech-job-start-actions>.tech-start-job.is-started{background:#25803a;border-color:#25803a;color:#fff;opacity:1}

/* Returning from a scrolled Business page must not stretch the dashboard. */
html body>main>#business-dashboard.active:has([data-biz-view="home"]:not([hidden])){min-block-size:0!important;max-height:100%}
.transfer-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.transfer-choices button{width:100%;margin:0!important}.transfer-company-results{display:grid;gap:8px;margin:8px 0}.transfer-company-results button{width:100%;margin:0!important}

/* Center the remaining property history categories after empty groups are omitted. */
.property-status-categories>button:last-child:nth-child(odd){grid-column:1/-1}
