/* Customer jobs reuse Business sections with read-only status and description. */
html body dialog.customer-job-dialog[open]{display:flex;flex-direction:column;gap:8px;padding:12px;max-height:calc(100dvh - 24px);overflow:hidden}
html body dialog.customer-job-dialog>h2{flex:none;margin:0;text-align:center}
html body dialog.customer-job-dialog>div{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;overflow-anchor:none}
html body dialog.customer-job-dialog>button{flex:none;min-height:44px;margin:0;width:100%}
html body dialog.customer-job-dialog>p{flex:none;margin:0;text-align:center}
html body dialog.customer-job-dialog>p:empty{display:none}
html body dialog.customer-job-dialog .property-job-fields{text-align:center;margin:0}
html body dialog.customer-job-dialog .property-job-fields dt{font-size:14px;line-height:1.3;margin:6px 0 0}
html body dialog.customer-job-dialog .property-job-fields dd{font-size:14px;line-height:1.35;margin:3px 0;overflow-wrap:anywhere}
.customer-job-description{border-top:0;padding-top:0;margin-top:10px;text-align:left}
.customer-job-meta{border-top:1px solid #d4dae5;padding-top:6px;margin-top:8px;gap:6px 10px}

/* Incoming requests reuse the job layout without changing existing job dialogs. */
.incoming-job-detail{text-align:center;min-width:0}.incoming-job-detail .property-job-fields{display:block;margin:0}.incoming-job-detail .business-job-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.incoming-job-detail dt{font-weight:700;margin:12px 0 4px}.incoming-job-detail dd{margin:0;overflow-wrap:anywhere}.incoming-job-detail .business-job-product{font-size:1.3em;font-weight:700}.incoming-job-detail .job-service-location{margin:20px 0}.incoming-job-detail .customer-job-description{white-space:pre-wrap}.incoming-job-detail>.biz-button{display:block;box-sizing:border-box;width:100%;margin-top:12px}.incoming-job-detail .job-status-color{display:block;padding:12px;border-radius:12px}.incoming-job-detail .job-number-row{font-size:1.1em}

html body #biz-request-details.incoming-job-detail .property-job-fields,html body #biz-request-details.incoming-job-detail .property-job-fields :is(dt,dd,p,div){text-align:center}html body #biz-request-details.incoming-job-detail .job-service-location{display:block;margin:12px 0}html body #biz-request-details.incoming-job-detail .business-job-pair{margin:8px 0;gap:8px}html body #biz-request-details.incoming-job-detail dt{margin:6px 0 3px}html body #biz-request-details.incoming-job-detail dd{margin:3px 0}

/* Shared compact job sections, irrespective of request status. */
html body :is(.incoming-job-detail,.customer-job-dialog,.property-job-dialog) .property-job-fields{max-width:100%;text-align:center}
html body :is(.incoming-job-detail,.customer-job-dialog,.property-job-dialog) .business-job-pair{gap:6px 12px;margin:8px 0}
html body :is(.incoming-job-detail,.customer-job-dialog,.property-job-dialog) :is(dt,dd,p){line-height:1.35;overflow-wrap:anywhere}
html body :is(.incoming-job-detail,.customer-job-dialog,.property-job-dialog) dt{margin:6px 0 2px}
html body :is(.incoming-job-detail,.customer-job-dialog,.property-job-dialog) dd{margin:2px 0}
html body :is(.incoming-job-detail,.customer-job-dialog,.property-job-dialog) .job-service-location{margin:10px 0}
html body .job-appointment-only>:not(h2):not(#biz-request-schedule){display:none!important}
.job-date-time{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px;margin:6px 0;text-align:center}
.job-date-time button{font:inherit;font-weight:600;color:inherit;background:transparent;border:0;padding:4px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.job-appointment-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;text-align:center;padding:10px 0}
.job-appointment-editor label{display:flex;flex-direction:column;gap:4px;min-width:0}
.job-appointment-editor input{box-sizing:border-box;max-width:100%;min-width:0;width:100%;padding:8px;font:inherit}
.job-appointment-editor .appointment-day,.job-appointment-editor [role=status]{grid-column:1/-1}
.job-appointment-editor button{min-height:40px}.job-appointment-editor button[type=submit]{background:#20377d;color:white}

html body :is(.incoming-job-detail,.property-job-dialog) .property-job-fields p{margin:6px 0}
html body :is(.incoming-job-detail,.property-job-dialog) .property-job-fields :is(dt,dd){font-size:16px;line-height:1.35}
.job-start-actions{display:flex;justify-content:flex-end;margin:6px 0}
@media(min-width:1000px){html body.teckrom-desktop dialog.property-job-dialog.business-job-dialog:not(.customer-job-dialog) .property-job-fields>.job-appointment{grid-column:2;grid-row:4}html body.teckrom-desktop dialog.property-job-dialog.business-job-dialog:not(.customer-job-dialog) .property-job-fields>.job-start-actions{grid-column:2;grid-row:5}html body.teckrom-desktop dialog.property-job-dialog.business-job-dialog:not(.customer-job-dialog) .technician-notes{grid-row:6 / span 4}}

/* Shared compact sections for every job source/status. */
html body :is(.incoming-job-detail,.property-job-dialog,.customer-job-dialog) .property-job-fields :is(input,select,textarea){text-align:center;text-align-last:center}
html body :is(.incoming-job-detail,.property-job-dialog,.customer-job-dialog) .property-job-fields>div{margin-top:6px;margin-bottom:6px}
html body :is(.incoming-job-detail,.property-job-dialog,.customer-job-dialog) .job-start-actions{margin:2px 0;min-height:0}
html body :is(.incoming-job-detail,.property-job-dialog,.customer-job-dialog) .job-start-button{min-height:42px;padding:6px 10px;font-size:13px}
html body :is(.incoming-job-detail,.property-job-dialog,.customer-job-dialog) :is(.job-description-editor,.technician-notes) textarea{min-height:76px;height:90px;text-align:center}
html body .job-appointment>.job-date-time{display:block;margin:0}
html body .job-appointment>p:empty{display:none}
