/* Approved shared presentation. Do not change dimensions, visibility, semantic colors or behavior. */
@layer hub-action-colors {
 html body :is(button,a.button,select,summary){box-shadow:0 2px 6px rgba(20,35,60,.08)!important}
 html body :is(button,a.button,summary):active{box-shadow:0 1px 3px rgba(20,35,60,.12)!important}
 html body :is(button[data-hub-action-color="white"],input:not([type=checkbox]):not([type=radio]),textarea){border-color:#dce2eb!important}
 html body :is(.appointment-trigger){box-shadow:none!important;text-shadow:none!important}
}
html body :is(.panel,.card,.records,.biz-box,dialog){border-color:#dce2eb}
html body :is(.panel,.card,.records,.biz-box){box-shadow:0 2px 6px rgba(20,35,60,.06)}
html body :is(input,textarea,select,button){font-family:inherit}
html body :is(.job-customer-name,.job-top-customer,.customer-open,.bc-customer,.hub-compact-name){color:#172d71}
html body :is(a[href^="tel:"],.job-customer-name a,.job-top-customer a,.customer-open){color:#172d71!important;-webkit-text-fill-color:#172d71!important;text-decoration:none!important}
html body :is(a,button,summary,input,textarea,select,[role=button]):focus-visible{outline:3px solid #315e9d!important;outline-offset:3px!important}
html body .hub-compact-name{word-break:normal!important;overflow-wrap:normal!important;hyphens:none;line-height:1.35!important;max-height:none!important}
html body .hub-compact-name-line{display:block;white-space:nowrap;max-width:100%;overflow-x:auto;scrollbar-width:thin}
html body dialog .job-number-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px;margin-block:4px 8px!important;padding-bottom:8px;border-bottom:1px solid #e8ecf2}
html body dialog .job-number-row>div{min-width:0}
html body dialog .business-job-product{margin-block:8px!important}
html body dialog .job-rely-summary{align-items:start;gap:12px;margin-block:10px 8px!important}
html body dialog .job-service-location{margin-block:6px!important;padding-top:8px;border-top:1px solid #e8ecf2}
html body dialog .job-service-location-address{margin-top:2px!important}
html body dialog.property-job-dialog.business-job-dialog :is(.job-number-row dd,.job-number-row dd a),
html body dialog.property-job-dialog.business-job-dialog:not(.customer-job-dialog) :is(.job-customer-name,.job-customer-name a){font-size:17px!important;font-weight:750!important;text-align:center}
html body dialog .job-contact-static{font-size:18px!important;font-weight:700!important}
html body :is(.panel,.records,.biz-box)>p{margin-block:6px}
html body :is(.hub-action-row,.pair-actions,.product-actions,.hub-button-row,.job-final-actions,.customer-job-actions,.job-note-actions,.hub-confirm-actions){gap:8px!important}
/* Existing address-two-rows and action-footer-layout remain authoritative. */

/* Copy Job reuses job geometry; only its new issue and footer are editable. */
html body dialog.copy-job-dialog .customer-job-description{display:block}
html body dialog.copy-job-dialog .customer-job-description textarea{width:100%;box-sizing:border-box;min-height:110px;font:inherit}
html body dialog.copy-job-dialog .job-people-row select{max-width:100%;width:100%;font:inherit}
html body dialog.copy-job-dialog .copy-job-actions{display:flex;gap:8px}
html body dialog.copy-job-dialog .copy-job-actions>button{flex:1;min-width:0;min-height:48px;font-size:16px;font-weight:700;white-space:normal}
html body dialog.copy-job-photos img{display:block;max-width:100%;height:auto;margin:8px auto}

html body dialog.copy-job-dialog form{display:block;width:100%;grid-template-columns:none}
html body dialog.copy-job-dialog .job-people-row{display:block}
html body dialog.copy-job-dialog .job-people-row{grid-column:1 / -1}

/* PM compact presentation: scoped to the existing workspace, no data/handler changes. */
html body main #pm-dashboard{max-width:1000px;padding:10px!important}
html body main #pm-dashboard :is(.pm-dashboard-grid,.pm-pair,.pm-filters){gap:8px;margin:8px 0;align-items:stretch}
html body main #pm-dashboard .pm-attention{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body main #pm-dashboard .pm-attention button{min-height:48px!important;padding:8px!important;gap:4px;line-height:1.35!important;overflow-wrap:normal;word-break:normal;background:#fff;border:1px solid #d8dfe8}
html body main #pm-dashboard .pm-attention :is(strong,span){font-size:16px!important;line-height:1.35!important;overflow-wrap:normal;word-break:normal}
html body main #pm-dashboard :is(.pm-tile,.pm-record,.pm-contact,.pm-tenant){border:1px solid #d8dfe8;border-radius:10px;padding:10px!important;margin-block:8px;box-shadow:0 1px 4px #20345a08}
html body main #pm-dashboard .pm-tile{min-height:64px!important;gap:4px;background:white;margin:0}
html body main #pm-dashboard .pm-tile strong{font-size:17px!important;line-height:1.35!important}
html body main #pm-dashboard .pm-tile span{font-size:16px!important;line-height:1.35!important;font-weight:400!important;color:#526076}
html body main #pm-dashboard :is(button,.button){padding:8px 10px;min-height:44px!important;line-height:1.35;white-space:normal;word-break:normal;overflow-wrap:normal}
html body main #pm-dashboard .pm-filters select.hub-choice-source{display:block!important}
html body main #pm-dashboard .pm-filters>.hub-visible-choices{display:none!important}
html body main #pm-dashboard .pm-filters :is(input,select){height:44px!important;min-height:44px!important;padding:8px!important;align-self:start;font-size:16px!important;border:1px solid #d8dfe8;border-radius:8px}
html body main #pm-dashboard .pm-property-row{display:flex;flex-direction:column;gap:4px;min-height:44px!important;margin:0!important;padding:10px!important;border:0;border-bottom:1px solid #e1e5ed;border-radius:0;background:white;box-shadow:none!important}
html body main #pm-dashboard .pm-property-row span{font-size:16px!important;line-height:1.35!important}
html body main #pm-dashboard .pm-property-row span:last-child{font-weight:400;color:#526076}
html body main #pm-property-list:not(:empty){border:1px solid #d8dfe8;border-radius:10px;overflow:hidden;margin-top:8px}
html body.pm-portal #personal-navigation{gap:8px;padding:6px 8px}
html body.pm-portal #personal-navigation :is(button,summary){padding:8px 3px!important;min-height:52px!important;gap:4px;word-break:normal!important;overflow-wrap:normal!important}
html body.pm-portal #personal-navigation :is(button,summary,span){font-size:16px!important;line-height:1.3!important}
html body.pm-portal #personal-navigation svg{width:22px;height:22px}
html body.pm-portal>.topbar{min-height:0!important;padding-block:6px!important}
html body.pm-portal>.topbar .language{min-height:44px!important;padding:6px 10px!important}
html body .pm-dialog{padding:14px;max-width:calc(100vw - 24px)}
html body .pm-dialog :is(button,.button){min-height:44px!important;padding:8px 10px;line-height:1.35;overflow-wrap:normal}
@media(min-width:760px){html body main #pm-dashboard .pm-attention{grid-template-columns:repeat(4,minmax(0,1fr))}html body main #pm-dashboard .pm-property-row{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px}}

/* PM readable compact system: keep words intact, reduce whitespace only. */
@layer hub-action-colors {
 html body #pm-dashboard#pm-dashboard#pm-dashboard#pm-dashboard#pm-dashboard#pm-dashboard :is(button,a.button,input,select,textarea){font-size:18px!important;line-height:1.35!important}
 html body.pm-portal #personal-navigation#personal-navigation#personal-navigation :is(button,summary,span){font-size:18px!important;line-height:1.3!important;color:#172d71!important;-webkit-text-fill-color:#172d71!important}
}
html body main #pm-dashboard .pm-heading{display:flex!important;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 12px}
html body main #pm-dashboard .pm-heading>.hub-action-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;width:100%}
html body main #pm-dashboard .pm-heading h1{font-size:24px!important;line-height:1.25!important;margin:0!important;word-break:normal!important;overflow-wrap:normal!important;text-align:center}
html body main #pm-dashboard .pm-heading>button:last-child{width:100%!important;min-height:44px!important;max-width:none;white-space:nowrap!important}
html body main #pm-dashboard .pm-heading>button:first-child:not(:last-child){align-self:flex-start;width:44px;min-width:44px}
html body main #pm-dashboard h2{font-size:21px!important;line-height:1.3;margin:12px 0 8px;text-align:center}
html body main #pm-dashboard .pm-attention{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body main #pm-dashboard .pm-attention :is(strong,span){font-size:18px!important;line-height:1.35!important;word-break:normal!important;overflow-wrap:normal!important}
html body main #pm-dashboard .pm-tile strong{font-size:19px!important;line-height:1.35!important}
html body main #pm-dashboard .pm-tile span{font-size:17px!important;line-height:1.35!important}
html body main #pm-dashboard :is(.pm-property-row span,.pm-record p,.pm-contact p,.pm-tenant p){font-size:18px!important;line-height:1.4!important}
html body main #pm-dashboard .pm-filters :is(input,select){font-size:18px!important;height:auto!important;min-height:48px!important}
html body.pm-portal>.topbar{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:center;height:auto!important;min-height:0!important;gap:8px!important;padding:4px 12px!important}
html body.pm-portal #customer-menu>nav{max-height:70dvh;overflow-y:auto}
html body.pm-portal #customer-menu #language-toggle{width:100%;margin:0!important;display:flex;flex-direction:row;justify-content:center;gap:8px}
html body.pm-portal #customer-menu #language-menu{position:static;min-width:0;width:100%;box-shadow:none;margin:4px 0;padding:4px}
html body.pm-portal #customer-menu #language-menu button{width:100%;min-height:44px}
@media(min-width:760px){html body main #pm-dashboard .pm-attention{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* PM page headings no longer contain a generic invitation action. */
html body main #pm-dashboard .pm-heading{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center;min-height:44px}
html body main #pm-dashboard .pm-heading>h1{grid-column:2;grid-row:1}
html body main #pm-dashboard .pm-heading>button:first-child{grid-column:1!important;grid-row:1!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;font-size:26px!important}
html body main #pm-dashboard .pm-heading:has(>button[hidden])>h1{grid-column:1/-1}
html body main #pm-dashboard .pm-heading>.hub-action-heading{grid-column:1/-1;grid-row:1}
html body main #pm-dashboard .pm-dashboard-grid>.pm-tile:last-child:nth-child(odd){grid-column:1/-1}
html body main #pm-dashboard .pm-filters>button{grid-column:1/-1;width:100%;min-height:44px}
@layer hub-action-colors{
 html body .pm-dialog.pm-dialog.pm-dialog.pm-dialog.pm-dialog.pm-dialog :is(button,a.button,input,select,textarea,label){font-size:18px!important;line-height:1.35!important}
}
html body .pm-dialog h2{font-size:24px;line-height:1.25;text-align:center}
html body .pm-dialog :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box;width:100%;min-height:44px;padding:8px;border:1px solid #d8dfe8;border-radius:8px}
html body .pm-dialog input[type=checkbox]{width:22px;height:22px;min-height:22px}
html body .pm-dialog :is(button,a.button){word-break:normal;overflow-wrap:normal;margin-block:4px}
@layer hub-action-colors{
 html body #pm-dashboard#pm-dashboard#pm-dashboard#pm-dashboard#pm-dashboard#pm-dashboard .pm-heading button[data-approved-back]{font-size:26px!important;line-height:1!important;width:44px!important;min-width:44px!important;min-height:44px!important;height:44px!important;padding:0!important}
}

/* PM shell: natural-height controls; never stretch header actions to viewport height. */
html body.pm-portal>.topbar{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 grid-auto-flow:row!important;grid-auto-rows:auto!important;align-items:stretch!important;
 flex:0 0 auto!important;width:100%;max-width:1000px;gap:8px!important;padding:8px 10px!important;
}
html body.pm-portal>.topbar>button{
 grid-area:auto!important;box-sizing:border-box;width:100%!important;height:auto!important;min-height:52px!important;
 margin:0!important;padding:8px!important;gap:4px;flex-direction:column;
 border:1px solid #d8dfe8;border-radius:10px;box-shadow:0 1px 4px #20345a08;
 white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
}
html body.pm-portal #personal-navigation{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:auto;
 width:100%;max-width:1000px;box-sizing:border-box;gap:8px;padding:6px 10px;
}
html body.pm-portal #personal-navigation>:is(button,#personal-menu-slot){height:auto!important;min-width:0}
html body.pm-portal #personal-navigation>button,
html body.pm-portal #personal-menu-slot #customer-menu>summary{
 box-sizing:border-box;width:100%;height:100%!important;min-height:60px!important;
 padding:6px 4px!important;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
 border:1px solid #d8dfe8;border-radius:10px;box-shadow:0 1px 4px #20345a08;
}
html body.pm-portal #customer-menu>nav{height:auto!important;max-height:60dvh;padding:8px;gap:8px}
html body.pm-portal #customer-menu>nav :is(button,a.button){height:auto!important;min-height:44px!important;margin:0!important;padding:8px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
@layer hub-action-colors{
 html body.pm-portal>.topbar>button,
 html body.pm-portal>.topbar>button>span:not(.notification-count),
 html body.pm-portal #customer-menu>nav :is(button,a.button){font-size:18px!important;line-height:1.35!important;color:#172d71!important;-webkit-text-fill-color:#172d71!important}
}
@media(max-width:540px){
 html body.pm-portal>.topbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.pm-portal>.topbar>#customer-signout{grid-column:1/-1!important;justify-self:center;width:calc((100% - 8px)/2)!important}
}
@media(max-width:400px){
 html body.pm-portal #personal-navigation{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@layer hub-button-typography {
 html body.pm-portal>.topbar>:is(#warranty-bell,#customer-signout,#customer-communities-nav),
 html body.pm-portal>.topbar>:is(#warranty-bell,#customer-signout,#customer-communities-nav)>span:not(.notification-count){font-size:18px!important;line-height:1.35!important}
}

/* Shared status paint also applies to category buttons. */
html body [data-status-foreground="white"]{color:#fff!important;-webkit-text-fill-color:#fff!important;font-weight:800!important}

/* Requested dimensions only; the existing theme supplies colors and decoration. */
html body :is(.tech-job-card,.upcoming-job-entry,.business-job-card){box-sizing:border-box!important;height:160px!important;min-height:160px!important;max-height:160px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:8px!important;overflow:hidden!important}
html body main :is(.business-job-block,.tech-job-block):has(.job-card-status-bar)>button{height:160px!important}
html body :is(.tech-card-identity){gap:8px!important}
html body :is(.standard-card-customer,.tech-card-customer,.job-category-title){display:block!important;width:100%;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:17px!important;line-height:1.3!important;font-weight:750!important}
html body :is(.standard-card-zip,.tech-card-zip,.job-category-zip){font-size:16px!important;line-height:1.35!important}
html body .tech-card-list{margin:4px auto!important;display:grid;gap:8px!important;align-content:start}
html body .tech-job-group{margin:0!important;padding:0!important}
html body .tech-day-calendar{margin:0!important;padding:0!important}
html body .tech-job-block{margin:0!important}
html body #biz-job-list .business-job-block{margin:0 0 8px!important}
html body .tech-day-toolbar:empty{display:none!important}
html body .tech-day-scroll{padding-top:0!important}
html body :is(#personal-navigation,.biz-tiles,#controls .tech-navigation){gap:8px!important}
html body #controls .tech-navigation{grid-template-columns:repeat(var(--tech-buttons,4),minmax(0,1fr))!important}
html body :is(#personal-navigation>button,#personal-menu-slot #customer-menu>summary,.biz-tiles>button,#biz-account-menu>summary,#controls .tech-navigation>button,#controls .tech-navigation>a,#controls .tech-menu-wrap>button){box-sizing:border-box!important;height:var(--dashboard-nav-height,76px)!important;min-height:var(--dashboard-nav-height,76px)!important;max-height:var(--dashboard-nav-height,76px)!important;width:100%!important;margin:0!important}
html body #controls .tech-menu-wrap{min-width:0;width:100%}
html body .technician-header #company{font-size:17px!important;white-space:nowrap!important}
/* One focus border encloses the status and Start action. */
html body .job-status-start:has(.job-start-actions:not([hidden])){border-radius:10px!important;overflow:hidden;box-sizing:border-box}
html body .job-status-start:has(.job-start-actions:not([hidden])):focus-within{outline:3px solid #386493!important;outline-offset:3px}
html body .job-status-start:has(.job-start-actions:not([hidden]))>select{outline:none!important;box-shadow:none!important;border-radius:0!important}
html body .job-status-start .job-start-actions>button{border-radius:0!important;height:100%!important;align-self:stretch!important}
/* Timestamp always occupies one full-width line below its text. */

/* Keep three Personal card rows together under the shared button rules. */
html body .upcoming-job-entry{flex-wrap:nowrap!important}
html body .upcoming-job-entry>span{flex:0 0 auto!important;max-width:100%}
@layer hub-button-typography {
 html body dialog .upcoming-job-entry>.standard-card-customer{font-size:17px!important;line-height:1.3!important}
 html body dialog .upcoming-job-entry>.standard-card-zip{font-size:16px!important;line-height:1.35!important}
}

@layer hub-button-typography {
 html body :is(#personal-navigation,.biz-tiles,#controls .tech-navigation) [hidden]{display:none!important}
}

/* Appointment is the final card row; retain card geometry and existing theme. */
html body :is(.tech-job-card,.upcoming-job-entry,.business-job-card):has(.card-appointment){gap:4px!important;padding-top:8px!important;padding-bottom:8px!important}
html body .tech-job-card:has(.card-appointment) .tech-card-identity{gap:4px!important}
html body .card-appointment{display:block!important;flex:none!important;width:100%!important;max-width:100%!important;margin:0!important;font:500 14px/1.3 system-ui!important;color:inherit!important;text-align:center!important;white-space:normal!important}
html body .card-appointment[role=button]{cursor:pointer;text-decoration:underline;text-underline-offset:2px}
html body .card-appointment:focus-visible{outline:2px solid #386493;outline-offset:2px}
html body .tech-navigation{justify-content:center!important;grid-template-columns:repeat(var(--tech-buttons,4),minmax(0,min(76px,calc((100% - (var(--tech-button-capacity,5) - 1)*8px)/var(--tech-button-capacity,5)))))!important}
html body #controls .tech-navigation{grid-template-columns:repeat(var(--tech-buttons,4),minmax(0,min(76px,calc((100% - (var(--tech-button-capacity,5) - 1)*8px)/var(--tech-button-capacity,5)))))!important}

html body .sc-appointment-line .sc-appointment-trigger{width:auto!important;height:auto!important;min-height:32px!important;margin:0!important;padding:2px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font:500 16px/1.35 system-ui!important;text-decoration:underline;text-underline-offset:2px}
html body .sc-appointment-editor:not([open]){display:none!important}
html body .sc-appointment-editor[open]{display:flex!important;flex-direction:column;gap:12px;width:calc(100% - 32px);max-width:360px;padding:20px;border:1px solid #cbd3e2;border-radius:14px;background:white;color:#172b50}
html body .sc-appointment-editor input{min-height:44px!important;width:100%!important;font-size:16px!important}
html body .sc-appointment-editor .sc-appointment-date input{position:static!important;opacity:1!important}

/* One centered description surface; saved history remains stored but is not shown. */
html body dialog .job-description-history,
html body dialog .job-description-editor .note-history details,
html body dialog .customer-job-description .note-history details{display:none!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .job-text-surface{display:flow-root;text-align:center!important;border:1px solid #bfc8d8!important;border-radius:12px!important;padding:10px!important;background:#fff!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .job-text-surface:focus-within{outline:0!important;box-shadow:none!important;border-color:#386493!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor :is(.job-text-entries,.job-description-entry,.job-note-entry,p,textarea,small),
html body dialog.property-job-dialog.business-job-dialog .customer-job-description>dd{ text-align:center!important;text-align-last:center!important; }
html body dialog.property-job-dialog.business-job-dialog .job-description-editor :is(.job-text-entries,.job-description-entry,textarea){border:0!important;outline:0!important;box-shadow:none!important;border-radius:0!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor textarea:focus{outline:0!important;box-shadow:none!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .tech-description-photo-slot{float:none!important;display:block;width:52px;height:52px;margin:0 0 8px auto!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .job-text-surface:has(.tech-description-photo-slot)>.job-text-entries{margin:0!important;clear:both}
html body dialog :is(.job-office-notes,.job-technician-notes) .job-text-surface{min-height:64px;border:1px solid #bfc8d8;border-radius:12px;padding:10px;box-sizing:border-box}

html body dialog.property-job-dialog.business-job-dialog .job-text-section.job-description-editor textarea{text-align:center!important;text-align-last:center!important}

html body dialog.property-job-dialog.business-job-dialog .customer-job-description>dd{border:1px solid #bfc8d8!important;border-radius:12px!important;padding:10px!important}

html body dialog.property-job-dialog.business-job-dialog .job-text-section.job-description-editor>h3{text-align:center!important}


/* Navigation tiles use the Personal dashboard's measured size and color treatment. */
html body #controls{box-sizing:border-box;padding-inline:clamp(8px,3vw,24px)!important;max-width:960px;margin-inline:auto;width:100%;border-inline:1px solid transparent}
html body #controls .tech-navigation{position:relative;grid-template-columns:repeat(var(--tech-buttons,4),minmax(0,1fr))!important}
html body #controls .tech-menu-wrap{position:static}
html body #controls .tech-menu-panel{box-sizing:border-box;right:0;width:min(240px,100%)}
@layer hub-button-typography{
html body #controls#controls :is(.tech-navigation>button,.tech-navigation>a,.tech-menu-wrap>button){padding:2px!important;gap:2px!important;font-size:13px!important}
html body #controls#controls :is(.tech-navigation>button,.tech-navigation>a,.tech-menu-wrap>button)>span{min-width:0;max-width:100%;font-size:inherit!important;line-height:1.1!important;white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:350px){html body #controls#controls :is(.tech-navigation>button,.tech-navigation>a,.tech-menu-wrap>button){font-size:12px!important}}
@media(max-width:390px){html body #controls#controls .tech-navigation:has(>:nth-child(6))>:is(button,a),html body #controls#controls .tech-navigation:has(>:nth-child(6))>.tech-menu-wrap>button{font-size:12px!important;padding:0!important;gap:0!important}html body #controls#controls .tech-navigation:has(>:nth-child(6)) svg{width:20px!important;height:20px!important}html body #controls#controls .tech-navigation:has(>:nth-child(6))>:is(button,a)>span,html body #controls#controls .tech-navigation:has(>:nth-child(6))>.tech-menu-wrap>button>span{line-height:1!important}}
}
html body #controls#controls .tech-navigation>button,
html body #controls#controls .tech-navigation>a,
html body #controls#controls .tech-menu-wrap>button{height:var(--dashboard-nav-height,76px)!important;min-height:var(--dashboard-nav-height,76px)!important;max-height:var(--dashboard-nav-height,76px)!important;aspect-ratio:auto!important}
@media(max-width:390px){html body #controls{padding-inline:6px!important}}
@layer hub-action-colors{
 html body :is(#controls .tech-navigation>button,#controls .tech-navigation>a,#controls .tech-menu-wrap>button,.biz-tiles>button,#biz-account-menu>summary){background-color:#fff!important;border-color:#dce2eb!important;color:#172b50!important}
 html body :is(#controls .tech-navigation,.biz-tiles)>[aria-current=page]{background-color:#edf1fa!important;border-color:#172b70!important}
 html body :is(#controls .tech-navigation>button,#controls .tech-navigation>a,#controls .tech-menu-wrap>button,.biz-tiles>button,#biz-account-menu>summary)>:is(span,strong){background-image:linear-gradient(100deg,#bd2335 0%,#916500 48%,#1c4faf 100%)!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important}
}
@media(forced-colors:active){@layer hub-action-colors{html body :is(#controls .tech-navigation,.biz-tiles) :is(button,a,summary)>:is(span,strong){background-image:none!important;color:ButtonText!important;-webkit-text-fill-color:ButtonText!important}}}

html body #business-dashboard [data-biz-view="home"]>.biz-tiles{box-sizing:border-box;width:100%!important;max-width:100%!important;margin-inline:0!important}

@media(max-width:350px){html body #business-dashboard .biz-tiles>button>strong{overflow-wrap:anywhere!important}}


/* Common notes: compact left-to-right flow, with small timestamps below. */
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.customer-job-description) :is(h3,dt){display:none!important}
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.customer-job-description) :is(.job-text-surface,.job-text-entries,.job-description-entry,.job-note-entry,.job-description-flow,.job-note-body,p,textarea,small,dd){text-align:left!important;text-align-last:auto!important;direction:ltr}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .job-text-surface{display:flow-root!important;min-height:0!important;padding:10px!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .tech-description-photo-slot{float:right!important;display:block!important;width:52px;height:52px;margin:0 0 6px 10px!important}
html body dialog.property-job-dialog.business-job-dialog .job-description-editor .job-text-surface>.job-text-entries{clear:none!important;display:block!important;overflow:visible!important;margin:0!important}
html body dialog .job-description-editor .job-description-flow{display:block;white-space:pre-wrap;overflow-wrap:anywhere;min-height:0!important;outline:0!important;border:0!important;box-shadow:none!important;padding:0!important}
html body dialog .job-description-editor textarea.job-description-backing{display:none!important}
html body :is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry){display:block!important;clear:none!important;overflow:visible!important;margin:0 0 6px!important;text-align:left!important}
html body :is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry)::after{display:none!important}
html body :is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry)>:is(.job-note-body,.job-description-flow,p,textarea){min-width:0!important;margin-block:0!important;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left!important}
html body :is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry):is(.job-description-entry,.job-note-entry,.note-history-entry)>small{display:block!important;float:none!important;clear:none!important;width:auto!important;max-width:none!important;margin:2px 0 0!important;white-space:normal!important;font-size:12px!important;line-height:1.4!important;text-align:left!important}
html body dialog.property-job-dialog.business-job-dialog .job-text-section .job-text-surface>textarea{min-height:44px!important;height:44px;padding-block:4px!important;margin-block:6px 0!important;text-align:left!important;text-align-last:auto!important}
html body .note-history-entry{padding-block:6px}
html body dialog .job-text-section .job-text-entries>:last-child{margin-bottom:0!important}

@layer hub-button-typography {
/* Company Profile uses the same readable controls in both apps. */
html body #business-dashboard [data-biz-view="profile"] .biz-edit > summary,
html body #business-dashboard [data-biz-view="profile"] .biz-links > button {
  font-size: max(16px, 1rem) !important;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
html body #business-dashboard [data-biz-view="profile"] .biz-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
}

@layer hub-button-typography {
  html body :is(#business-dashboard, #personal-navigation, #controls, #customer-communities) .whole-button-label.whole-button-label {
    display: block;
    box-sizing: border-box;
    inline-size: var(--label-width);
    max-inline-size: none !important;
    flex-shrink: 0;
    margin-inline: calc((100% - var(--label-width)) / 2);
    transform: scaleX(var(--label-scale));
    transform-origin: center;
    text-align: center;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}


/* Dashboard badges use the status portion of the 44px Scheduled/Start row. */
@layer hub-button-typography {
html body #business-dashboard #biz-job-list button.upcoming-job-entry > span.job-status-color[data-status-foreground],
html body :is(#business-dashboard, #workspace, .tech-day-calendar)
:is(.upcoming-job-entry, .tech-job-card, .business-job-card) > span:is(.job-status-color, .tech-status)[data-status-foreground],
html body #pm-dashboard .pm-record[data-job-date] > strong:first-child + p {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  box-sizing:border-box!important;
  width:calc(100% - 44px)!important;
  height:44px!important;
  min-height:44px!important;
  flex:0 0 auto!important;
  margin-inline:auto!important;
  text-align:center!important;
  font-size:14px!important;
  line-height:1.35!important;
}
html body :is(#biz-job-list, #workspace, .tech-day-calendar) .job-card-status-bar > span {
  text-align:center!important;
  font-size:14px!important;
  line-height:1.35!important;
}
}

/* Keep the original Personal card flex slot while drawing the taller badge. */
html body dialog.upcoming-jobs-dialog button.upcoming-job-entry > .personal-status-slot {
  position:relative;
  width:calc(100% - 44px)!important;
  background:transparent!important;
}
html body dialog.upcoming-jobs-dialog .personal-status-slot > .personal-status-text {
  visibility:hidden;
}
html body dialog.upcoming-jobs-dialog button.upcoming-job-entry .personal-status-slot > .job-status-color {
  position:absolute;
  top:50%;
  left:0;
  transform:translateY(-50%);
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%!important;
  height:44px;
  box-sizing:border-box;
}
@layer hub-button-typography {
  html:root body dialog.upcoming-jobs-dialog button.upcoming-job-entry .personal-status-slot > .job-status-color[data-status-foreground] {
    text-align:center!important;
    font-size:14px!important;
    line-height:1.35!important;
  }
}

/* The empty appointment row must not participate in flex spacing. */
html body .card-appointment:empty{display:none!important}
html body :is(.upcoming-job-entry,.tech-job-card,.business-job-card):not(:has(.card-appointment:not(:empty))){height:auto!important;min-height:0!important;max-height:none!important;padding-block:10px!important}
html body dialog.upcoming-jobs-dialog button.upcoming-job-entry>span{flex:0 0 auto!important}
html body dialog.upcoming-jobs-dialog button.upcoming-job-entry>.personal-status-slot{height:44px!important;width:100%!important}
html body dialog.upcoming-jobs-dialog.hub-detail-fullscreen[open]{inset:12px 0 auto!important;margin:0 auto!important;width:min(94vw,640px)!important;height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;padding:14px!important;border:1px solid #d3dbe8!important;border-radius:16px!important;overflow:hidden!important;gap:6px}
html body dialog.upcoming-jobs-dialog>.hub-detail-close{position:absolute!important;right:8px!important;top:8px!important}
html body dialog.upcoming-jobs-dialog>h2{margin:0 44px;flex:none;text-align:center}
html body dialog.upcoming-jobs-dialog .upcoming-jobs-list{flex:0 1 auto;min-height:0;overflow-y:auto}
html body dialog.upcoming-jobs-dialog .upcoming-day{margin:0}
html body dialog.upcoming-jobs-dialog>p[role=status]:empty{display:none}
html body dialog.upcoming-jobs-dialog button.upcoming-job-entry{background:#fff!important;color:#172d71!important;border:1px solid #d6dde7!important;border-radius:14px!important;box-shadow:0 2px 6px #172d7114;padding-inline:12px!important}
html body dialog.upcoming-jobs-dialog button.upcoming-job-entry>.standard-card-zip{font-weight:400!important}

html body .service-history-card>.service-history-status{display:grid;place-items:center;min-height:44px;align-self:stretch;text-align:center;border-radius:8px}

html body dialog.upcoming-jobs-dialog button.upcoming-job-entry>.job-status-color{display:grid!important;place-items:center;width:100%!important;min-height:44px;box-sizing:border-box}

/* Group a form with its existing page heading and actions. */
:is(main, .panel, .account-view, section.card):has(> form:not([hidden])) {
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #dce2eb;
  border-radius: 16px;
  padding: clamp(12px, 2vw, 20px);
}
form :is(label, legend, h2, h3) {
  text-align: center;
  overflow-wrap: break-word;
}
form .hub-button-row:has(> :is(.cancel, [id$="-cancel"])):has(> button[type="submit"]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}
form .hub-button-row:has(> button[type="submit"]) > :is(.cancel, [id$="-cancel"]) {
  order: -1;
  background: #b32335;
  color: white;
}
form .hub-button-row:has(> :is(.cancel, [id$="-cancel"])) > button[type="submit"] {
  background: #1c3078;
  color: white;
}

/* Business Job Details uses the available content width and a 44px status row.
   Keep the reserved Start control within that row wherever the workflow supplies it. */
@layer hub-button-typography {
html:root body :is(.job-status-color,.bc-card-status,.tech-status,.service-history-status,.property-history-job-status,.sc-status-row>.sc-badge,.pm-record[data-job-date]>strong:first-child+p,.pm-job-record>h2:first-child+p,.job-card-status-slot):not([hidden]):not(.job-status-action *),
html:root body #business-dashboard #biz-job-list button.upcoming-job-entry>span.job-status-color[data-status-foreground],
html:root body #pm-dashboard .pm-record[data-job-date]>strong:first-child+p {
 box-sizing:border-box!important;
 inline-size:100%!important;max-inline-size:100%!important;min-inline-size:0!important;
 block-size:44px!important;min-block-size:44px!important;max-block-size:44px!important;
 margin-inline:auto!important;padding-block:0!important;
 display:grid!important;place-items:center!important;text-align:center!important;
 align-self:center!important;
}
html:root body select:is(.job-status-color,.sc-badge){display:block!important;text-align-last:center!important}
html:root body .job-card-status-bar{height:44px!important}
html:root body .job-card-status-bar>span,html:root body .sc-status-row>.sc-badge{flex:1 1 0%!important;min-width:0!important}
html:root body .job-card-status-bar>button{height:44px!important;min-height:44px!important;width:44px!important;flex:0 0 44px!important}
}

:root{--dashboard-job-width:min(calc(100vw - 36px),896px)}
@media(min-width:1024px){:root{--dashboard-job-width:262px}}
/* Job summaries share the Business dashboard geometry. Calendar time blocks and
   Job Details have their own layout and do not use these summary selectors. */
html body :is(.tech-card-list,#cx-dashboard-jobs) {
 --summary-width:var(--dashboard-job-width);
 width:var(--summary-width)!important;max-width:none!important;
 margin-inline:auto!important;box-sizing:border-box;
}
html body #workspace .tech-card-list .tech-job-card,
html body #cx-dashboard-jobs button.upcoming-job-entry,
html body dialog.upcoming-jobs-dialog .upcoming-day button.upcoming-job-entry {
 box-sizing:border-box!important;width:100%!important;min-width:0!important;
 height:160px!important;min-height:160px!important;max-height:160px!important;
 padding:8px 12px!important;gap:4px!important;flex-flow:column nowrap!important;
 border:1px solid #cbd8ef!important;border-top:3px solid #102b7d!important;border-radius:14px!important;background:#fff!important;
 color:#172d71!important;box-shadow:0 2px 6px rgba(20,35,60,.08)!important;
}
html body :is(.tech-card-list,#cx-dashboard-jobs,.upcoming-jobs-dialog) :is(.tech-job-card,.upcoming-job-entry):not(:has(.card-appointment:not(:empty)))::after {
 content:'';display:block;flex:none;height:18.9px;
}
@layer hub-button-typography {
 html:root body :is(#workspace .tech-card-list,#cx-dashboard-jobs,dialog.upcoming-jobs-dialog) :is(.tech-card-customer,.standard-card-customer){
  font:700 17px/1.35 system-ui!important;white-space:normal!important;overflow-wrap:anywhere;
 }
 html:root body :is(#workspace .tech-card-list,#cx-dashboard-jobs,dialog.upcoming-jobs-dialog) :is(.tech-card-zip,.standard-card-zip,.card-appointment){
  font:700 14px/1.35 system-ui!important;
 }
 html:root body :is(#workspace .tech-card-list,#cx-dashboard-jobs,dialog.upcoming-jobs-dialog) .tech-card-identity{gap:4px!important}
}
html body #cx-dashboard-jobs,
html body dialog.upcoming-jobs-dialog .upcoming-jobs-list {
 padding-inline:0!important;scrollbar-gutter:auto!important;
}
html:root body dialog.upcoming-jobs-dialog.hub-detail-fullscreen[open]:has(.upcoming-jobs-list) {
 box-sizing:border-box;width:calc(var(--dashboard-job-width) + 30px)!important;
 max-width:none!important;padding-inline:14px!important;
}

html body main #customer-request-history .records.service-history-card,
html body dialog.sc-popup:has(>.dashboard-job-summary) {
 box-sizing:border-box;width:var(--dashboard-job-width)!important;
 max-width:none!important;padding:0!important;margin-inline:auto!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
}
html body main #customer-request-history .records.service-history-card {
 position:relative;left:50%;transform:translateX(-50%);margin-inline:0!important;
}
html body .dashboard-job-summary {
 grid-column:1/-1;position:relative;box-sizing:border-box;width:100%;
 height:160px;padding:8px 12px;display:flex;flex-direction:column;
 gap:4px;align-items:stretch;justify-content:center;text-align:center;
 background:white;color:#172d71;border:1px solid #cbd8ef;border-top:3px solid #102b7d;border-radius:14px;
 box-shadow:0 2px 6px rgba(20,35,60,.08);
}
html body .dashboard-job-summary>:is(h2,strong,span,p,.sc-status-row) {
 margin:0;width:100%;min-width:0;box-sizing:border-box;
}
html body .dashboard-job-summary>:is(h2,.standard-card-customer){
 font:700 17px/1.35 system-ui;overflow-wrap:anywhere;
}
html body .dashboard-job-summary>:is(.sc-zip,.job-service-zip,.sc-appointment-line,.service-history-time){
 font:700 14px/1.35 system-ui;
}
html body .dashboard-job-summary:not(:has(.sc-appointment-line,.card-appointment:not(:empty)))::after{
 content:'';height:18.9px;flex:none;
}
html body .dashboard-job-summary>.service-history-status{
 display:grid;place-items:center;height:44px;flex:none;border-radius:8px;
}
html body main #customer-request-history .dashboard-job-summary>.service-history-open {
 position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;margin:0;
 background:transparent;box-shadow:none;border-radius:inherit;cursor:pointer;
}

html body :is(.pm-record,.company-history-card):has(>.dashboard-job-summary) {
 box-sizing:border-box;width:var(--dashboard-job-width);max-width:none;
 margin-inline:auto;padding:0;border:0;background:transparent;box-shadow:none;
}
html body .dashboard-job-summary>button.biz-button {
 min-height:0;margin:0;padding:0;border:0;box-shadow:none;background:transparent;
 font:700 17px/1.35 system-ui;color:inherit;overflow-wrap:anywhere;
}

html body main article.property-job:has(>.dashboard-job-summary){
 width:var(--dashboard-job-width);max-width:none;padding:0;border:0;
 margin-inline:auto;background:transparent;box-shadow:none;
}
html body main article.property-job>button.property-job-entry.dashboard-job-summary{
 display:flex;padding:8px 12px;height:160px;
}
html body main #pm-dashboard article.pm-record:has(>.dashboard-job-summary){
 padding:0!important;border:0!important;
}

/* A long authorized name stays readable within the fixed summary. */
@layer hub-button-typography {
 html:root body :is(.business-job-card,.tech-job-card,.upcoming-job-entry,.dashboard-job-summary)
 :is(.standard-card-customer,.job-category-title,.tech-card-customer) {
  font:700 17px/1.35 system-ui!important;white-space:normal!important;
  overflow-wrap:anywhere;overflow-x:hidden!important;overflow-y:auto!important;
  max-height:2.7em;text-overflow:clip!important;touch-action:pan-y;
 }
}

@layer hub-action-colors {
  html body dialog.property-job-dialog .job-status-start > [data-ordered-status] {
    color: #172b50 !important;
    -webkit-text-fill-color: #172b50 !important;
  }
}
