html body .business-job-dialog .job-status-start{display:flex;align-items:center;justify-content:center;gap:10px;margin:10px 0 0}html body .business-job-dialog .job-status-start>*{flex:1;min-width:0;width:auto;margin:0;font-size:16px;min-height:44px;padding:8px}html body .business-job-dialog .job-date-time{text-align:center;font-size:16px;font-weight:700;margin:8px 0 16px}.job-number-row{text-align:center;margin:0 0 10px}.job-number-row dd{font-weight:750}.job-people-row>div{min-width:0}.job-people-row p{margin:5px 0;font-size:16px}.job-service-location{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 10px;margin-top:12px}.job-service-location dt{flex-basis:100%;margin:0}.job-service-location dd{margin:0!important}.job-occupancy{text-align:center;font-weight:700;margin:6px 0}.job-description-editor{display:block;margin:14px 0}.job-description-editor label{display:block;font-weight:700;text-align:center}.job-description-editor textarea{display:block;width:100%;max-width:100%;min-width:140px;min-height:80px;resize:both;overflow:auto;box-sizing:border-box;font:inherit;font-weight:400;text-align:left;padding:10px;margin:7px 0;border:1px solid #bfc8d8;border-radius:12px;background:#fff;color:#17275c}.job-description-editor button{width:100%;margin:0}.job-description-editor p{margin:6px 0}.pm-property-group{margin-top:16px;padding-top:8px;border-top:1px solid #d4dae5}.pm-property-group h3{font-size:19px;text-align:center}.pm-job-link{display:block;padding:10px;margin:8px 0;border:1px solid #c5cddd;border-radius:12px;text-align:center;font-weight:700;color:#172d71;background:#fff}



html body .business-job-dialog .job-date-time{font-size:clamp(12px,3.5vw,16px);white-space:nowrap}.business-job-dialog .job-number-row dd{font-size:17px}

html body dialog.business-job-dialog .job-service-location{display:block;text-align:center}html body dialog.business-job-dialog .job-service-location-heading{display:flex;flex-wrap:nowrap;align-items:baseline;justify-content:center;gap:6px;font-size:clamp(13px,3.4vw,18px)}.job-service-location-heading strong{white-space:nowrap}.job-service-location-heading span{min-width:0;overflow-wrap:anywhere}.job-service-location-address{display:block;margin-top:5px}.job-service-location-address a{overflow-wrap:anywhere}

/* Job information fills the app viewport; sections stay compact and centered. */
html body dialog.property-job-dialog.business-job-dialog{position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:100vh!important;height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;transform:none!important;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;overflow:auto;scrollbar-gutter:stable both-edges;overscroll-behavior:contain;background:#fff}
html body dialog.property-job-dialog.business-job-dialog>div{box-sizing:border-box;width:min(100%,720px);margin-inline:auto}
html body dialog.property-job-dialog.business-job-dialog>.job-fullscreen-back{position:sticky;top:0;z-index:2;display:block;width:80px!important;min-height:44px;margin:0 0 8px;padding:8px 12px;border:1px solid #bbc5d5;border-radius:8px;background:#fff;color:#172d71;font:14px system-ui;box-shadow:0 2px 5px #172d7110}

/* Compact, balanced job sections and actions. Keep every touch target usable. */
html body dialog.property-job-dialog.business-job-dialog .property-job-fields{margin:0;text-align:center}
html body dialog.property-job-dialog.business-job-dialog .property-job-fields dt{font-size:14px;line-height:1.3;margin:4px 0 0}
html body dialog.property-job-dialog.business-job-dialog .property-job-fields dd{font-size:16px;line-height:1.35;margin:3px 0;overflow-wrap:anywhere}
html body dialog.property-job-dialog.business-job-dialog .business-job-pair{gap:8px;margin:8px 0}
html body dialog.property-job-dialog.business-job-dialog :is(.business-job-product,.job-date-time,.job-occupancy){margin:6px 0;font-size:16px;line-height:1.35}
html body dialog.property-job-dialog.business-job-dialog .business-job-product{font-size:18px}
html body dialog.property-job-dialog.business-job-dialog .job-service-location{margin:8px 0}
html body dialog.property-job-dialog.business-job-dialog .job-people-row p{margin:4px 0}
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.technician-notes){margin:10px 0 0;padding:0;text-align:center}
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.technician-notes) label{display:block;margin:0;padding:0;font-size:14px;line-height:1.3;text-align:center}
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.technician-notes) textarea{box-sizing:border-box;width:100%;height:80px;min-height:72px;max-width:100%;margin:5px 0;padding:8px;font:16px/1.35 system-ui;text-align:start;resize:vertical}
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.technician-notes)>p:empty{display:none!important;min-height:0;margin:0}
html body dialog.property-job-dialog.business-job-dialog :is(.job-description-editor,.technician-notes)>p:not(:empty){min-height:0;margin:4px 0;font-size:13px;line-height:1.3}
html body dialog.property-job-dialog.business-job-dialog :is(.job-note-actions,.job-photo-actions,.job-photo-picker,.job-label-picker){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;max-width:none;margin:8px 0 0;padding:0;align-items:stretch}
html body dialog.property-job-dialog.business-job-dialog :is(.job-note-actions,.job-photo-actions,.job-photo-picker,.job-label-picker)>button,
html body dialog.property-job-dialog.business-job-dialog .job-description-editor>button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:auto;min-height:44px;margin:0;padding:8px;font:14px/1.3 system-ui;white-space:normal;border-radius:8px}
html body dialog.property-job-dialog.business-job-dialog .job-photo-actions>button:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 8px)/2);justify-self:center}
html body dialog.property-job-dialog.business-job-dialog :is(.job-photo-picker,.job-label-picker)[hidden]{display:none!important}
html body dialog.property-job-dialog.business-job-dialog .job-photo-gallery:empty{display:none}
html body dialog.property-job-dialog.business-job-dialog :is(.job-upload-status,[role=status]):empty{display:none!important}

html body dialog.property-job-dialog.business-job-dialog .job-label-picker>button:first-child{grid-column:1/-1;width:100%}

html body dialog.property-job-dialog.business-job-dialog [hidden]{display:none!important}

/* Keep only the lower job actions compact; retain spacing in job details and notes. */
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-note-actions{display:flex!important;flex-wrap:nowrap;align-items:stretch}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-note-actions>button{flex:1 1 0;width:0;min-height:44px!important}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-edit-controls>.job-note-actions{margin:4px auto 0!important}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-edit-controls>.job-note-actions+ [role=status]{margin:0;min-height:0;font-size:13px;line-height:1.3;text-align:center}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-photo-actions:empty{display:none!important}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-final-actions{margin:6px auto!important}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-final-actions>button{min-height:44px!important}

/* Keep optional job tools in the same balanced lower action group. */
html body dialog.property-job-dialog.business-job-dialog .job-final-actions.job-compact-actions{display:flex!important;flex-wrap:wrap;justify-content:center;gap:6px!important;margin:4px auto!important;width:100%!important;max-width:440px!important}
html body dialog.property-job-dialog.business-job-dialog .job-final-actions.job-compact-actions>button{flex:0 1 calc((100% - 6px)/2);box-sizing:border-box;width:auto!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:0!important;padding:6px 8px!important;font-size:13px!important;line-height:1.25!important}
html body dialog.property-job-dialog.business-job-dialog .job-final-actions.job-compact-actions:has(>button:last-child:nth-child(3))>button{flex-basis:calc((100% - 12px)/3)}
html body dialog.property-job-dialog.business-job-dialog .job-photo-actions:empty{display:none!important}
html body dialog.property-job-dialog.business-job-dialog .job-notes-heading{display:flex;align-items:center;justify-content:center;gap:12px;margin:0}
html body dialog.property-job-dialog.business-job-dialog .job-notes-heading>strong{font-size:16px}
html body dialog.property-job-dialog.business-job-dialog .job-notes-heading>button{min-height:44px;margin:0!important;padding:6px 10px!important;font-size:14px!important}
html body dialog.property-job-dialog.business-job-dialog.job-unified-edit .job-edit-controls{margin-bottom:4px;gap:6px}
html body dialog.property-job-dialog.business-job-dialog .job-note-entries:empty{display:none}
html body dialog.property-job-dialog.business-job-dialog .job-final-actions.job-compact-actions[hidden]{display:none!important}

/* Slight emphasis for displayed names; retain existing layout and controls. */
html body dialog .job-people-row dd{font-size:18px;font-weight:750;text-align:center;overflow-wrap:anywhere}

/* Rely job details: contacts left, appointment right, below status. */
html body dialog .job-rely-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;margin:8px 0}
html body dialog .job-rely-summary .job-people-row{display:flex!important;flex-direction:column;gap:2px;margin:0!important;text-align:center}
html body dialog .job-rely-summary .job-people-row p{margin:0!important}
html body dialog .job-rely-summary .job-date-time{white-space:normal;margin:0!important}
html body dialog .job-rely-summary .compact-appointment{margin:0}
html body dialog .job-rely-summary .appointment-trigger{font-weight:700;text-decoration:none;padding:0;min-height:38px}

/* Align the Rely customer and contact on one shared center line. */
html body dialog .job-rely-summary .job-people-row>div{width:100%;text-align:center;margin:0;padding:0}
html body dialog .job-rely-summary .job-people-row :is(dd,p){margin-inline:0!important;width:100%;text-align:center!important}

/* Keep the full Rely customer name on one centered line. */
html body dialog .job-rely-summary .job-people-row>div:first-child dd,
html body dialog .job-rely-summary .job-people-row>div:first-child dd>a{font-size:var(--rely-name-size,18px)!important;white-space:nowrap;text-align:center}

/* Rely date matches the customer name; phone and Start share a compact row. */
html body dialog .job-rely-summary .appointment-trigger,
html body dialog .job-rely-summary .job-date-time>div:first-child{font-size:18px!important;font-weight:700}
html body dialog .job-rely-summary{row-gap:2px;margin-bottom:4px}
html body dialog .job-rely-phone-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:center}
html body dialog .job-rely-phone-row>p{grid-column:1;margin:0!important;text-align:center}
html body dialog .job-rely-phone-row>.job-start-actions{grid-column:2;grid-row:1;margin:0!important;justify-self:center;align-self:center}
html body dialog .job-rely-details>.job-service-location{margin-top:4px!important}

/* Rely contact names occupy at most two centered lines. */
html body dialog .job-rely-summary .job-rely-contact-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.3!important;max-height:2.6em;text-align:center}

/* Unified saved job text: centered headings, padded left-aligned entries. */
html body dialog .job-text-section{width:100%;box-sizing:border-box;margin:10px 0;text-align:left}
html body dialog .job-text-section h3{font-size:16px;text-align:center;margin:0 0 6px}
html body dialog .job-text-section .job-text-entries{border:1px solid #bfc8d8;border-radius:12px;padding:10px;min-height:42px;box-sizing:border-box;text-align:left}
html body dialog .job-text-section .job-note-entry{display:block;margin:0 0 8px!important;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left!important;font-size:16px!important;font-weight:400!important;line-height:1.4}
html body dialog .job-text-section .job-note-entry:last-child{margin-bottom:0!important}
html body dialog .job-text-section .job-note-entry small{display:inline;font-size:12px;font-weight:400;color:#465267}
html body dialog .job-text-section textarea{display:block;box-sizing:border-box;width:100%;min-height:64px;margin:6px 0 0;padding:10px;border:1px solid #bfc8d8;border-radius:12px;font:16px/1.4 system-ui;text-align:left!important;resize:vertical}
html body dialog .job-rely-contact-name{white-space:normal}

/* One shared writing surface per job section; saved paragraphs stay read-only. */
html body dialog .job-text-section .job-text-surface{border:1px solid #bfc8d8;border-radius:12px;padding:10px;box-sizing:border-box;background:#fff;text-align:left}
html body dialog .job-text-section .job-text-surface:focus-within{outline:2px solid #2d5fa4;outline-offset:2px}
html body dialog .job-text-section .job-text-surface>.job-text-entries{border:0;border-radius:0;padding:0;min-height:0;margin:0}
html body dialog .job-text-section .job-text-surface>.job-text-entries:empty{display:none}
html body dialog .job-text-section .job-note-entry{border:0;border-radius:0;padding:0;box-shadow:none;background:transparent}
html body dialog .job-text-section .job-text-surface>textarea{border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;min-width:0!important;min-height:44px!important;height:auto!important;margin:8px 0 0!important;padding:0!important;text-align:left!important;resize:vertical}
html body dialog .job-text-section .job-text-surface>.job-text-entries:empty+textarea{margin-top:0!important}

/* Job text always begins at the left, including the last line. */
html body dialog .job-text-section textarea{ text-align:left!important;text-align-last:left!important;direction:ltr; }
html body dialog .job-text-section .job-description-entry{margin:0 0 8px;text-align:left}
html body dialog .job-text-section .job-description-entry>textarea{border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;margin:0!important;min-width:0!important;min-height:44px!important;width:100%!important;resize:vertical;overflow:hidden}
html body dialog .job-text-section .job-description-entry>small{font-size:12px;color:#465267}
html body dialog .job-service-location-address a{white-space:pre-line!important}

/* Use the approved Business presentation for permission-scoped job views.
   These selectors style existing content only; they do not add actions or notes. */
html body dialog.property-job-dialog.business-job-dialog.customer-job-dialog[open]{display:block;overflow-y:auto}
html body dialog.property-job-dialog.business-job-dialog.customer-job-dialog>div{overflow:visible;min-height:0}
html body dialog.property-job-dialog.business-job-dialog.customer-job-dialog>button:not(.hub-detail-close):not(.job-fullscreen-back){box-sizing:border-box;width:min(100%,440px);min-height:44px;margin:6px auto;padding:8px;font:14px/1.3 system-ui;border-radius:8px}
html body dialog.property-job-dialog.business-job-dialog .customer-job-description{border-top:0;padding-top:0;margin:10px 0;text-align:left}
html body dialog.property-job-dialog.business-job-dialog .customer-job-description>dt{font-size:16px;font-weight:700;text-align:center;line-height:1.4;margin:0 0 6px}
html body dialog.property-job-dialog.business-job-dialog .customer-job-description>dd{margin:0;text-align:left}
html body dialog.property-job-dialog.business-job-dialog .customer-job-meta{border-top:0;padding-top:0;margin:10px 0;gap:8px}
html body dialog.property-job-dialog.business-job-dialog.technician-job-dialog .job-text-section{margin:10px 0;padding:0}
html body dialog.property-job-dialog.business-job-dialog.technician-job-dialog .job-text-section h3{font-size:16px;line-height:1.4;margin:0 0 6px;text-align:center}
html body dialog.property-job-dialog.business-job-dialog.technician-job-dialog .job-text-section textarea{text-align:left!important;text-align-last:left!important}
html body dialog.property-job-dialog.business-job-dialog.technician-job-dialog>.job-note-actions{display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;width:100%;max-width:420px;margin:4px auto 0;padding:0}
html body dialog.property-job-dialog.business-job-dialog.technician-job-dialog>.job-note-actions>button{flex:1 1 0;width:0;max-width:none;min-width:0;min-height:44px;height:auto;margin:0;padding:8px;font:14px/1.3 system-ui;border-radius:8px}
html body dialog.property-job-dialog.business-job-dialog .customer-job-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:6px;width:100%;max-width:440px;margin:4px auto;padding:0}
html body dialog.property-job-dialog.business-job-dialog .customer-job-actions>button{display:flex;align-items:center;justify-content:center;flex:0 1 calc((100% - 6px)/2);box-sizing:border-box;width:auto;min-width:0;min-height:44px;height:auto;margin:0;padding:6px 8px;font:13px/1.25 system-ui;border-radius:8px;white-space:normal}
html body dialog.property-job-dialog.business-job-dialog .customer-job-actions>.service-confirmation{flex:1 0 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;margin:6px 0;padding:0}
html body dialog.property-job-dialog.business-job-dialog .customer-job-actions>.service-confirmation>:not(button){grid-column:1/-1;min-width:0;margin:0}
html body dialog.property-job-dialog.business-job-dialog .customer-job-actions>.service-confirmation>button{min-width:0;min-height:44px;margin:0;padding:6px 8px;font:13px/1.25 system-ui;border-radius:8px}
html body dialog.property-job-dialog.business-job-dialog :is(.customer-job-actions,.job-note-actions)>button[hidden]{display:none!important}
html body .incoming-job-detail .customer-job-description{border-top:0;padding-top:0;margin:10px 0;text-align:left}
html body .incoming-job-detail .customer-job-description>dt{font-size:16px;font-weight:700;text-align:center;margin:0 0 6px}
html body .incoming-job-detail .customer-job-description>dd{text-align:left;margin:0;border:1px solid #bfc8d8;border-radius:12px;padding:10px;font:16px/1.4 system-ui;white-space:pre-wrap}

/* Each summary column stacks independently; missing fields reserve no space. */
html body dialog .job-rely-summary .job-appointment{display:flex;flex-direction:column;align-items:center;gap:2px;margin:0;min-width:0}
html body dialog .job-rely-summary .job-date-time{width:100%;line-height:1.35}
html body dialog .job-rely-summary .compact-appointment{display:flex;flex-direction:column;align-items:center;gap:2px}
html body dialog .job-rely-summary .compact-appointment>.appointment-trigger{min-height:0!important;height:auto!important;padding:0!important;margin:0!important;line-height:1.35}
html body dialog .job-rely-summary .compact-appointment>span{margin:0!important}
html body dialog .job-rely-summary .job-date-time>div{margin:0!important}
html body dialog .job-rely-summary .job-people-row dd{margin-block:0!important}
html body dialog .job-rely-summary .job-appointment>.job-start-actions{margin:2px 0 0!important;align-self:center}

/* Consistent bold text on Job Details actions, with the approved attachment color. */
html body dialog.property-job-dialog.business-job-dialog .job-note-actions button,
html body dialog.property-job-dialog.business-job-dialog .job-final-actions button,
html body dialog.property-job-dialog.business-job-dialog .job-photo-actions button,
html body dialog.property-job-dialog.business-job-dialog .customer-job-actions button,
html body dialog.property-job-dialog.business-job-dialog .job-label-picker button,
html body dialog.property-job-dialog.business-job-dialog .job-photo-picker button,
html body dialog.property-job-dialog.business-job-dialog .hub-confirm-actions button,
html body dialog.property-job-dialog.business-job-dialog>button:not(.hub-detail-close):not(.job-fullscreen-back):not([data-hub-nav]){font:700 13px/1.25 system-ui!important;text-align:center!important;align-content:center;align-items:center;justify-content:center}
html body .job-attach-control{background:#f5c842!important;border-color:#f5c842!important;color:#172d71!important;-webkit-text-fill-color:#172d71!important}

/* Consistent job actions: Cancel / Close / Email, Delete / Attach / Save. */
html body dialog.property-job-dialog.business-job-dialog .job-final-actions.job-compact-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;max-width:440px!important}
html body dialog.property-job-dialog.business-job-dialog .job-final-actions.job-compact-actions>button{width:100%!important;height:100%!important;min-height:44px!important}
html body dialog.business-job-dialog .job-note-actions:empty,html body dialog.business-job-dialog .job-photo-actions:empty{display:none!important}
html body dialog.business-job-dialog .job-photo-gallery{width:100%;max-width:440px;margin:8px auto}
html body dialog.business-job-dialog .job-photo-gallery>button{width:100%;min-height:44px}

html body dialog.technician-job-dialog.business-job-dialog .job-note-actions,html body dialog.customer-job-dialog .customer-job-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:100%;max-width:440px;margin:8px auto}
html body dialog.technician-job-dialog.business-job-dialog .job-note-actions>button,html body dialog.customer-job-dialog .customer-job-actions>button{flex:0 1 calc((100% - 12px)/3);min-width:0;min-height:44px;margin:0;padding:6px}

/* Job dates retain the agreed name-sized typography, independently of company-name fitting. */
html body dialog.property-job-dialog.business-job-dialog .job-rely-summary .compact-appointment>.appointment-trigger,
html body dialog.property-job-dialog.business-job-dialog .job-rely-summary .job-date-time>div:first-child{font-size:18px!important;font-weight:700!important;text-align:center}

/* Approved shared job presentation; record contents and role controls stay intact. */
html body :is(.property-job-dialog,.incoming-job-detail) :is(.job-description-editor,.customer-job-description),
html body :is(.property-job-dialog,.incoming-job-detail) :is(.job-description-editor,.customer-job-description) :is(.job-text-surface,.job-text-entries,dd,textarea){border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;outline:0;padding:0!important;text-align:left!important;text-align-last:left!important}
html body :is(.property-job-dialog,.incoming-job-detail) :is(.job-description-editor,.customer-job-description)>:is(h3,dt){text-align:center!important;font-weight:700!important;margin:10px 0 6px!important}
html body :is(.property-job-dialog,.incoming-job-detail) :is(.job-description-editor,.customer-job-description) small{display:block!important;font-size:12px!important;font-weight:400!important;margin-top:4px}
html body dialog.property-job-dialog.business-job-dialog :is(.job-final-actions.job-compact-actions,.customer-job-actions,.job-photo-actions,.job-note-actions){gap:8px!important}
html body dialog.property-job-dialog.business-job-dialog.customer-job-dialog .customer-job-actions{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;max-width:440px;width:100%;gap:8px!important}
html body dialog.property-job-dialog.business-job-dialog.customer-job-dialog .customer-job-actions>button{flex:0 1 calc((100% - 16px)/3)!important;max-width:100%;min-height:44px!important;margin:0!important;padding:8px!important;align-self:stretch}
html body dialog.property-job-dialog.business-job-dialog .job-photo-actions>button{background:#f5c842!important;border-color:#f5c842!important;color:#172d71!important;-webkit-text-fill-color:#172d71!important}
html body dialog.property-job-dialog.business-job-dialog .hub-delete-control{background:#b51f2a!important;border-color:#b51f2a!important;color:white!important;-webkit-text-fill-color:white!important}

html body dialog.property-job-dialog.business-job-dialog .customer-job-actions>.hub-yellow-control{background:#f5c842!important;border-color:#f5c842!important;color:#172d71!important;-webkit-text-fill-color:#172d71!important}

/* Keep the customer warning beside the name; the existing phone remains below. */
html body dialog .job-top-customer .job-customer-name:has(>.missing-field-icon){display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:6px}
html body dialog .job-top-customer .job-customer-name:has(>.missing-field-icon)>a{display:inline!important;width:auto!important;max-width:calc(100% - 28px);flex:0 1 auto}
html body dialog .job-top-customer .job-customer-name>.missing-field-icon{flex:0 0 22px;margin:0!important}
html body dialog .job-top-customer .job-customer-name>.missing-field-info{flex-basis:100%}

/* Customer name stays centered independently of missing contact details. */
html body dialog .job-customer-name{display:block!important;width:100%;margin:0!important;text-align:center!important}
html body dialog .job-customer-name>a{display:block!important;width:100%!important;max-width:100%!important;margin:0!important;text-align:center!important}

/* Compact job content without empty fields or clipped notes. */
html body dialog .job-rely-details>.job-number-row:empty,html body dialog .job-service-location-heading:empty,html body dialog .job-appointment>[role="status"]:empty{display:none!important}
html body dialog .job-rely-details>.job-service-location,html body dialog .job-description-editor{margin:4px 0!important}
html body dialog .job-description-entry{display:block!important}
html body dialog .job-description-entry::after{content:"";display:block;clear:both}
html body dialog .job-description-entry>textarea{min-width:0!important;width:100%!important;margin:0!important}
html body dialog .job-description-entry>small{display:block!important;float:right;max-width:min(9em,40%);margin:0 0 8px 12px!important;text-align:right}
html body dialog .job-note-entry{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}
html body dialog .job-note-entry>small{max-width:9em;margin:0!important;text-align:right}
html body dialog .job-note-body{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
html body dialog .job-text-section textarea:placeholder-shown{min-height:44px!important}
html body #biz-job-list .dashboard-job-meta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:0}
html body #biz-job-list .dashboard-job-meta>small{flex:1;min-width:0;text-align:center;overflow-wrap:anywhere;margin:0}

@layer hub-action-colors {
 html body dialog:is(.business-job-dialog,.technician-job-dialog) [data-work-footer]{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:none!important;margin:8px auto!important
 }
 html body dialog:is(.business-job-dialog,.technician-job-dialog) [data-work-footer]>button{
  width:100%!important;height:var(--dashboard-nav-height,76px)!important;min-width:0!important;min-height:44px!important;padding:3px!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere
 }
}

@layer hub-action-colors {
 html:root body dialog:is(.business-job-dialog,.technician-job-dialog) [data-work-footer] {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
 }
 html:root body dialog:is(.business-job-dialog,.technician-job-dialog) [data-work-footer]>button {
  box-sizing:border-box!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1!important;
  min-height:0!important;
  align-self:start!important;
  padding:0!important;
  line-height:1!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  text-align:center!important;
 }
 [data-work-footer] .payment-action-label{display:inline-block;width:min-content}
}


/* Lower job actions use the dashboard tile palette and height. */
@layer hub-action-colors {
 html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions) {
  --job-tile-height:var(--dashboard-nav-height,76px);
  gap:8px!important;
 }
 html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions)>button {
  box-sizing:border-box!important;
  height:var(--job-tile-height)!important;
  min-height:var(--job-tile-height)!important;
  max-height:var(--job-tile-height)!important;
  max-width:100%!important;
  aspect-ratio:auto!important;
  padding:2px!important;
  font-size:13px!important;
  line-height:1.2!important;
  border:1px solid #dce2eb!important;
  border-radius:10px!important;
  background:linear-gradient(100deg,#bd2335,#916500 48%,#1c4faf) text,linear-gradient(white,white) border-box!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
 }
 html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions)>button[data-job-cancel] {
  background:white!important;color:#b4232c!important;-webkit-text-fill-color:#b4232c!important;
 }
 html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions)>button:is(.hub-save-button,[data-hub-action-color="blue"]) {
  border:3px double #172d71!important;
 }
 @media(max-width:600px) {
  html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions) {
   --job-tile-height:calc(min(76px,(100vw - 32px)/4) * var(--phone-nav-scale,1));
   width:100vw!important;max-width:100vw!important;
   margin-inline:calc(50% - 50vw)!important;
   grid-template-columns:repeat(4,var(--job-tile-height))!important;
   justify-content:center!important;gap:8px!important;
  }
 }
 @media(min-width:1024px) {
  html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions) {
   width:calc(100vw - 48px)!important;max-width:none!important;
   margin-inline:calc(50% - 50vw + 24px)!important;gap:8px!important;
   grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
 }
 @media(forced-colors:active) {
  html:root body dialog:is(.business-job-dialog,.technician-job-dialog,.customer-job-dialog)[open][class] :is([data-work-footer],.customer-job-actions)>button {
   color:ButtonText!important;-webkit-text-fill-color:ButtonText!important;
  }
 }
}

@layer hub-action-colors {
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile] {
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  border:0!important;border-radius:8px!important;background:#fff!important;color:#172b50!important;-webkit-text-fill-color:#172b50!important;
  box-shadow:0 2px 6px #172b5012!important;
 }
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile]::before {content:"";flex:none;width:22px;height:22px;background:var(--tile-icon) center/contain no-repeat}
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile]>.job-tile-label {max-width:100%;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}
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-cancel]>.job-tile-label {background:none!important;color:#b4232c!important;-webkit-text-fill-color:#b4232c!important}
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile="7"] {border:0!important;opacity:1!important}
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile="7"]:enabled {background:#172d71!important;color:white!important;-webkit-text-fill-color:white!important}
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile="7"]:enabled>.job-tile-label {background:none!important;color:white!important;-webkit-text-fill-color:white!important}
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile="7"]:enabled::before {filter:brightness(0) invert(1)}
 [data-job-tile="0"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h9l9%209-7%207L3%2011z%20M7%209h.01%22/%3E%3C/svg%3E")}
 [data-job-tile="1"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%205h18v14H3z%20M3%206l9%207%209-7%22/%3E%3C/svg%3E")}
 [data-job-tile="2"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%205l14%2014%20M19%205L5%2019%22/%3E%3C/svg%3E")}
 [data-job-tile="3"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%205h20v14H2z%20M2%2010h20%20M6%2015h4%22/%3E%3C/svg%3E")}
 [data-job-tile="4"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%208h13v13H8z%20M16%205V3H3v13h2%22/%3E%3C/svg%3E")}
 [data-job-tile="5"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%205l14%2014%20M19%205L5%2019%22/%3E%3C/svg%3E")}
 [data-job-tile="6"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h4l2-3h6l2%203h4v13H3z%20M15.5%2013a3.5%203.5%200%201%201-7%200%203.5%203.5%200%201%201%207%200%22/%3E%3C/svg%3E")}
 [data-job-tile="7"]{--tile-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23172b50%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h15l3%203v15H3z%20M7%203v6h10V3%20M7%2021v-8h10v8%22/%3E%3C/svg%3E")}
 @media(max-width:600px){
html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer] {position:fixed!important;inset:auto 0 0!important;margin:0!important;z-index:5;background:#fff;border:1px solid #dce2eb;border-radius:12px;box-sizing:border-box;padding:4px 0 calc(4px + env(safe-area-inset-bottom,0px))!important}
 html:root body dialog.property-job-dialog.business-job-dialog[open]:has([data-work-footer]) {padding-bottom:calc(2 * min(76px,(100vw - 32px)/4) * var(--phone-nav-scale,1) + 22px + env(safe-area-inset-bottom,0px))!important}
 }
 @media(forced-colors:active){html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button[data-job-tile]>.job-tile-label{background:none!important;color:ButtonText!important;-webkit-text-fill-color:ButtonText!important}}
}

html:root body dialog:is(.business-job-dialog,.technician-job-dialog)[open][class] [data-work-footer]>button:is([data-job-tile="3"],[data-job-tile="6"])>.job-tile-label {
 width:auto!important; min-width:0!important; white-space:nowrap!important; word-break:normal!important;
}

@layer hub-action-colors {
 html:root body dialog.technician-job-dialog[open][class] [data-work-footer][data-technician-footer] {
  --job-tile-height:var(--dashboard-nav-height,76px);
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:auto!important;width:100%!important;max-width:100%!important;
  gap:8px!important;
 }
 html:root body dialog.technician-job-dialog[open][class] [data-work-footer][data-technician-footer]>button {
  width:100%!important;min-width:0!important;
 }
}

@layer hub-action-colors {
 html:root body dialog.technician-job-dialog[open][class] [data-technician-footer][data-work-footer]>button[data-job-tile]>.job-tile-label {
  font-size:clamp(12px,3.65vw,16px)!important;line-height:1.15!important;letter-spacing:normal!important;
  white-space:nowrap!important;min-width:0!important;width:auto!important;padding:0!important;
 }
}

@layer hub-action-colors {
 html:root body dialog.property-job-dialog.customer-job-dialog.business-job-dialog[open]:has(>.customer-job-actions) {
  --personal-job-side:calc(min(76px,(100vw - 32px)/4) * var(--phone-nav-scale,1));
  padding-bottom:calc(var(--personal-job-side) + 16px + env(safe-area-inset-bottom,0px))!important;
 }
 html:root body dialog.property-job-dialog.customer-job-dialog.business-job-dialog[open]>.customer-job-actions {
  position:fixed!important;inset:auto 0 0!important;z-index:10;
  display:flex!important;flex-wrap:wrap!important;justify-content:center!important;
  align-items:stretch!important;width:100%!important;max-width:none!important;height:auto!important;
  gap:8px!important;margin:0!important;padding:4px 2px calc(4px + env(safe-area-inset-bottom,0px))!important;
  background:white!important;border:1px solid #dce2eb;border-radius:12px;box-sizing:border-box;
  max-height:70dvh;overflow-y:auto;
 }
 html:root body dialog.property-job-dialog.customer-job-dialog.business-job-dialog[open]>.customer-job-actions>button:not([hidden]) {
  display:flex!important;flex:0 1 var(--personal-job-side)!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;gap:4px!important;
  width:var(--personal-job-side)!important;height:var(--personal-job-side)!important;
  min-width:0!important;min-height:44px!important;margin:0!important;padding:4px!important;
  background:white!important;color:#172b50!important;border:0!important;border-radius:8px!important;
  box-shadow:0 2px 6px #172b5012!important;font-size:clamp(12px,3.5vw,16px)!important;font-weight:700!important;line-height:1.15!important;
 }
 .customer-job-actions>button[data-job-tile]::before {content:"";width:22px;height:22px;flex:none;background:var(--tile-icon) center/contain no-repeat}
 .customer-job-actions .job-tile-label {background-image:linear-gradient(100deg,#bd2335,#916500 48%,#1c4faf)!important;background-clip:text!important;-webkit-text-fill-color:transparent!important}
 .customer-job-actions>button[data-job-tile="5"] .job-tile-label {background:none!important;-webkit-text-fill-color:#b4232c!important}
 .customer-job-actions>.service-confirmation {flex-basis:100%}
}

@layer hub-action-colors {
 html:root body dialog.property-job-dialog.customer-job-dialog.business-job-dialog[open]>.customer-job-actions {
  display:grid!important;--personal-footer-tile:min(var(--personal-job-side),calc((100vw - 24px)/5));grid-template-columns:repeat(5,var(--personal-footer-tile))!important;
  grid-auto-flow:row!important;grid-template-rows:auto!important;
 }
 html:root body dialog.property-job-dialog.customer-job-dialog.business-job-dialog[open]>.customer-job-actions>button:not([hidden]) {
  width:100%!important;height:var(--personal-footer-tile)!important;
  grid-column:var(--personal-column,auto)!important;grid-row:var(--personal-row,2)!important;
 }
 .customer-job-actions>[data-job-tile="5"][data-job-cancel]{--personal-column:1;--personal-row:1}
 .customer-job-actions>[data-job-tile="6"]{--personal-column:2;--personal-row:1}
 .customer-job-actions>[data-job-tile="2"]{--personal-column:3;--personal-row:1}
 .customer-job-actions>[data-job-tile="8"]{--personal-column:4;--personal-row:1;--tile-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172b50' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18m-13 6 2 2 5-5'/%3E%3C/svg%3E")}
 .customer-job-actions>[data-job-tile="7"]{--personal-column:5;--personal-row:1}
 .customer-job-actions>button.customer-reopen{--personal-column:1;--personal-row:1}
 .customer-job-actions>button:disabled{opacity:.52}
 .customer-job-actions>.service-confirmation{grid-column:1/-1}
}

@layer hub-action-colors {
html:root body dialog.property-job-dialog.customer-job-dialog.business-job-dialog[open]>.customer-job-actions.cancelled-personal-footer {
 display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important;
}
.cancelled-personal-footer>.customer-reopen{--personal-column:1;--personal-row:1}
.cancelled-personal-footer>.job-photo-viewer{--personal-column:2;--personal-row:1}
.cancelled-personal-footer>[data-job-tile="2"]{--personal-column:3;--personal-row:1}
.cancelled-personal-footer>.hub-save-button[data-job-tile="7"]{--personal-column:4;--personal-row:1}
.cancelled-personal-footer>.hub-delete-control{--personal-column:5;--personal-row:1}
}
