/* Artisan shared refinements 1.1.12. No data or offline-store changes. */
:root{--ux-bottom-inset:0px}main input,main select,main textarea{box-sizing:border-box;min-width:0;max-width:100%;border-radius:7px}main input[type=date],main input[type=time]{width:100%;min-height:44px;text-align:left;background:#fff;color:#183b43}main select{background-color:#fff;color:#183b43}main input[type=checkbox],main input[type=radio]{accent-color:#147b79}main input[type=file]::file-selector-button{font:inherit;border:0;border-radius:6px;background:#e0edef;color:#214d55;padding:8px 12px;margin-right:10px}main button,main .button{white-space:normal;word-break:normal;overflow-wrap:normal}main :focus-visible{outline:3px solid #dd9635;outline-offset:3px}.record-picker669{min-width:0}.record-picker669>input{background:#fff;color:#183b43;border-radius:7px}.picker-options669 button{white-space:normal;overflow-wrap:break-word}.ah-guide-card{display:flex!important;flex-direction:column;align-items:stretch!important;text-align:left;gap:8px}.ah-guide-card strong{display:block}.ux-compact-action{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;font-size:.875rem!important;padding:8px 12px!important;min-height:44px!important;margin:0!important;white-space:nowrap!important}.ux-compact-action svg{flex:0 0 18px}.ux-more-actions{position:relative;display:inline-block;margin:0}.ux-more-actions>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border-radius:7px;background:#e0edef;color:#214d55;font-size:.9rem;cursor:pointer;list-style:none}.ux-more-actions>summary::-webkit-details-marker{display:none}.ux-more-actions[open]>.ux-action-menu{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;margin-top:8px;border:1px solid #cfdee3;border-radius:8px;background:#fff;box-shadow:0 8px 24px #143b4320}.ux-action-menu form{margin:0}.ux-action-menu .button,.ux-action-menu button{width:100%;margin:0}.ux-remove-menu{margin-left:auto}.ux-remove-menu>button{margin-top:8px!important;color:#913d34;background:#fff3f0;border:1px solid #e9c8c1}.ux-remove-menu:not([open])>button{display:none!important}.af-usage-item .af-actions{display:flex;align-items:flex-start;gap:10px;margin-top:12px}.af-usage-item{padding:16px 0!important}.af-usage-item p{margin:8px 0!important}.af-usage-item .af-row{align-items:flex-start;gap:12px}.af-usage-item .af-job-link{min-width:0;overflow-wrap:break-word}.ux-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.ux-pagination span{text-align:center;font-size:.85rem;color:#526e77}.ux-pagination button{padding:9px 13px;min-height:44px}.ux-pagination button:disabled{opacity:.45;cursor:default}.ux-job-family{margin:0!important;padding:16px 0!important;border-bottom:1px solid #dce7e9}.ux-job-family>p{font-size:.9rem;line-height:1.5;margin:10px 0}.ux-visits-disclosure{margin-top:12px}.ux-visits-disclosure>summary{cursor:pointer;color:#275866;padding:10px 0;min-height:44px}.ux-child-visits{margin:8px 0 0 8px!important}.ux-child-visits button{width:100%;text-align:left;min-height:44px;padding:12px!important;margin:6px 0!important}.jobs-pair{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,.85fr);align-items:start!important;gap:20px}.jobs-pair:has(>.job-visit-panel[hidden]){grid-template-columns:minmax(0,1fr)}.jobs-pair>section{width:100%;min-width:0;margin:0}.job-visit-panel:not([hidden]){position:sticky;top:110px;max-height:calc(100dvh - 150px - var(--ux-bottom-inset));overflow:auto}.ux-preview-close{float:right;margin:0 0 12px 12px}.ux-job-preview,.ux-confirm-dialog{width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:22px;border:1px solid #cfdee3;border-radius:12px;color:#183b43;background:#fff;overflow:auto}.ux-job-preview::backdrop,.ux-confirm-dialog::backdrop{background:#0b293a80}.ux-job-preview h2{clear:both;font-size:1.25rem}.ux-support-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 20px}.ux-support-tabs [aria-current=page]{background:#147b79;color:#fff}.aq-app .aq-actions{gap:10px;align-items:center}.aq-app .aq-actions .button,.aq-app .aq-actions button{margin:0}.aq-app .aq-float{position:sticky;bottom:calc(var(--ux-bottom-inset) + 10px);padding:10px 12px;min-height:0;gap:12px}.aq-float button{margin:0}.aq-float p{font-size:.8rem}.aq-app .aq-grid{gap:0 16px}.aq-app section{margin-bottom:18px}.settings-actions>form:has(button[name=action][value=open]){flex:1 1 260px;display:flex!important;align-self:stretch}.settings-actions>form:has(button[name=action][value=open])>button{width:100%;height:100%;margin:0!important}.company-tools6610 .settings-actions{align-items:stretch}.ai-launch{font-size:.85rem!important;min-height:44px!important;padding:9px 13px!important;bottom:calc(var(--ux-bottom-inset) + 14px)!important}.aq-app~.ai-launch,body:has(.aq-float) .ai-launch{bottom:calc(var(--ux-bottom-inset) + 90px)!important}body:has(.aq-float) main{padding-bottom:110px}.heading{flex-wrap:wrap;gap:12px}.heading h1{min-width:0}.ux-confirm-dialog form{margin:12px 0}.ux-confirm-dialog input[name=confirm]{width:100%;max-width:280px}.ux-confirm-dialog button{min-width:100px}
@media(max-width:800px){.jobs-pair{grid-template-columns:minmax(0,1fr)}.job-visit-panel{display:none}.ux-job-preview{position:fixed;inset:0;width:100%;height:100dvh;max-height:100dvh;max-width:100%;margin:0;border:0;border-radius:0;padding:20px 20px calc(var(--ux-bottom-inset) + 24px);box-sizing:border-box}.ux-job-preview .ux-preview-close{position:sticky;top:0;z-index:1}.ux-record-table,.ux-record-table tbody{display:block;width:100%;min-width:0!important}.ux-record-table tr:has(th){display:none}.ux-record-table tr{display:flex;flex-direction:column;gap:8px;padding:16px 0;border-bottom:1px solid #d9e4e7}.ux-record-table td{display:block!important;width:100%!important;max-width:none!important;padding:3px 0!important;border:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}.ux-record-table td:first-child{font-weight:600;font-size:1rem}.ux-record-table td:last-child{display:flex!important;align-items:center;flex-wrap:wrap;gap:10px}.ux-record-table td .button,.ux-record-table td button{min-height:44px;margin:0;padding:8px 12px;white-space:nowrap}.ux-record-table td form{margin:0}.ux-record-table td[hidden]{display:none!important}.ux-record-table td>span:empty{display:none}.table-wrap:has(.ux-record-table){overflow:visible}.aq-app .aq-heading{display:block}.aq-heading>.aq-actions{margin:12px 0 18px}.aq-app .aq-grid{display:block}.aq-app .aq-grid label{margin-bottom:16px}.aq-app .aq-float{display:flex;justify-content:space-between;flex-wrap:nowrap}.aq-float p{max-width:160px;line-height:1.4}.aq-app .aq-float button{white-space:nowrap;font-size:.85rem;padding:10px 14px}.aq-app input[type=date]{-webkit-appearance:none;appearance:none;width:100%;min-width:0;padding:12px}.company-tools6610 .settings-actions{display:flex!important;flex-direction:column;gap:10px}.company-tools6610 .settings-actions>a,.company-tools6610 .settings-actions>form{width:100%;box-sizing:border-box;margin:0!important;flex:auto}.company-tools6610 .settings-actions form button{width:100%;min-height:44px}.ux-pagination{gap:8px}.ux-pagination span{font-size:.75rem}.ux-job-family>button{max-width:100%;font-size:1rem}.af-usage-item .af-actions{gap:8px}.af-usage-item .af-tag{font-size:.75rem}.ux-quote-actions{align-items:flex-start!important}.ux-quote-actions>.aq-tag{align-self:center}}

/* The staging label is a fixed pseudo-element, with a two-line mobile height. */
@media(max-width:800px){body[data-environment="staging"]:has(.aq-app){--ux-bottom-inset:46px}.aq-app .aq-actions>.ux-more-actions{max-width:100%}.aq-app .ux-action-menu{min-width:230px}}

/* Desktop keeps the original list + larger preview; dialogs are mobile only. */
@media(min-width:801px){.jobs-pair{grid-template-columns:minmax(260px,.85fr) minmax(0,1.6fr)}.job-visit-panel .job-property-map{margin:16px 0}.job-visit-panel .job-property-map img{width:100%;height:auto;display:block}}

.ux-pagination>span{min-width:0;line-height:1.5}.ux-pagination>span>small{display:block;font-size:.85em}.ux-pagination>button{background:#e0edef;color:#214d55}.ux-pagination>button:disabled{background:#e8edef;color:#788a91;opacity:1}.ux-pagination[data-pages="1"]{justify-content:center}.ux-pagination[data-pages="1"]>button{display:none}
@media(max-width:800px){.ux-pagination{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 16px;align-items:center;width:100%;margin:16px 0}.ux-pagination>span{grid-column:1/-1;grid-row:1;font-size:.85rem;text-align:center;overflow-wrap:break-word}.ux-pagination>button{grid-row:2;width:auto;min-width:96px;min-height:44px;margin:0}.ux-pagination>button:first-child{grid-column:1;justify-self:start}.ux-pagination>button:last-child{grid-column:2;justify-self:end}.ux-pagination[data-pages="1"]{gap:0}}
@media(max-width:800px){.field-form #field-jobs>.ux-pagination:last-child{margin-bottom:calc(var(--ux-bottom-inset) + 80px)}}

@media (max-width: 760px) {
  body:has(#field-editor:not([hidden]) .job-finish) #ai-launch,
  body:has(.aq-float:not([hidden])) #ai-launch {
    bottom: calc(var(--ux-bottom-inset, env(safe-area-inset-bottom, 0px)) + 100px) !important;
  }
}

@media (max-width: 760px) {
  body:has(.af-float:not([hidden])) #ai-launch {
    bottom: calc(var(--ux-bottom-inset, env(safe-area-inset-bottom, 0px)) + 136px) !important;
  }
}

section.rc-audit-panel{max-width:1120px!important}.rc-audit-panel .table-wrap{overflow-x:auto}.rc-audit-panel table{min-width:760px}.rc-audit-panel th:nth-child(2),.rc-audit-panel td:nth-child(2){min-width:140px;word-break:normal;overflow-wrap:normal}

#job-filters663 .jobs-view-switch{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-inline-start:auto}#job-filters663 .jobs-view-switch span{font-weight:650;margin-inline-end:3px}.jobs-crm-table{overflow:auto;max-height:65vh;border:1px solid #c8d4d9;background:#fff}.jobs-crm-table table{border-collapse:separate;border-spacing:0;min-width:820px;width:100%;font:13px system-ui}.jobs-crm-table th,.jobs-crm-table td{padding:6px 9px;border-right:1px solid #d6dfe3;border-bottom:1px solid #d6dfe3;white-space:nowrap;text-align:left}.jobs-crm-table th{position:sticky;top:0;z-index:1;background:#e8eef1}.jobs-crm-table th button{font:inherit;font-weight:700;color:#153945;background:transparent;padding:2px 0}.jobs-crm-table tr:nth-child(even) td{background:#f5f7f8}.jobs-crm-table tbody tr:hover td{background:#eaf4f5}.jobs-crm-table td a{font-weight:700;text-decoration:none}.jobs-crm-table td a:hover{text-decoration:underline}@media(max-width:800px){#job-filters663 .jobs-view-switch{margin-inline-start:0;grid-column:1/-1}}

.jobs-crm-table th button{display:flex;width:100%;justify-content:space-between;align-items:center;gap:6px;cursor:pointer;border-radius:4px}.jobs-crm-table th button:hover,.jobs-crm-table th button:focus-visible{background:#d8e8ec}.jobs-crm-table .jobs-sort-icon{font-size:12px;color:#476673}.jobs-crm-table th[aria-sort] .jobs-sort-icon{color:#08747a}

.jobs-scheduled-date[data-date-kind]{display:inline-flex;align-items:center;gap:6px}.jobs-scheduled-date[data-date-kind]::before{content:'';width:3px;height:12px;border-radius:2px;background:#82969e}.jobs-scheduled-date[data-date-kind=today]::before{background:#e89a2b}.jobs-scheduled-date[data-date-kind=future]::before{background:#4c87ab}.jobs-date-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
