/* The card opens details; independent actions stay above its full-card button. */
.service-history-card{position:relative;isolation:isolate}
html body main .records.service-history-card>button.service-history-open{position:absolute;inset:0;z-index:1;display:block;grid-area:auto;width:auto;height:auto;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;box-shadow:none;cursor:pointer}
.service-history-card>button:not(.service-history-open),.service-history-card>.service-confirmation{position:relative;z-index:2}
html body .service-history-card>.service-history-open:focus-visible{outline:3px solid #245ab0;outline-offset:-3px}

/* Cancellation choices occupy their own row; action buttons share the row below. */
html body main .service-confirmation>.hub-visible-choices{grid-column:1/-1;grid-template-columns:minmax(0,1fr);margin:4px 0;gap:8px}
html body main .service-confirmation>.hub-visible-choices>button:nth-child(n){grid-column:1/-1;justify-self:stretch;width:100%;min-height:44px;height:auto;white-space:normal;overflow-wrap:normal;word-break:normal}
html body main .service-confirmation>.button{align-self:center;height:auto;min-height:48px;padding:10px 8px;white-space:normal;overflow-wrap:normal;word-break:normal}

/* Job-detail actions stay compact in dialogs outside main. */
html body .customer-job-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin-top:12px}
html body .customer-job-actions>.button{min-width:0;min-height:48px;white-space:normal;overflow-wrap:normal}
html body .customer-job-confirmation{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
html body .customer-job-confirmation>:is(p,select,textarea,.hub-visible-choices){grid-column:1/-1;width:100%;min-width:0;margin:0}
html body .customer-job-confirmation>.hub-visible-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
html body .customer-job-confirmation>.hub-visible-choices>button:nth-child(n){grid-column:1/-1;width:100%;justify-self:stretch;min-height:44px;white-space:normal;overflow-wrap:normal}
html body .customer-job-confirmation>.button{min-width:0;min-height:48px;height:auto;white-space:normal;overflow-wrap:normal;padding:10px 8px}

/* Customer job actions remain centered after removing company payment access. */
html body main .records.service-history-card>button.button:nth-child(1 of button.button:not([hidden])):nth-last-child(1 of button.button:not([hidden])){grid-column:1/-1;justify-self:center;width:100%}
html body dialog.property-job-dialog.business-job-dialog.customer-job-dialog .customer-job-actions>button{flex:1 1 calc((100% - 8px)/2)!important}
html body .customer-job-actions>button:only-child{grid-column:1/-1;width:100%}

html body main #customer-request-history .service-history-card{background:#fff;text-align:center;border-radius:16px}
html body main #customer-request-history .service-history-card>:is(.standard-card-customer,.job-service-zip,.service-history-status,.service-history-time){grid-column:1/-1;width:100%;box-sizing:border-box;text-align:center}
html body main #customer-request-history .service-history-time{text-decoration:underline;font-weight:700}

#customer-request-history .service-history-accessible-details{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
