.dispatch-launcher{position:fixed;left:265px;bottom:80px;z-index:35;background:#17392f;color:white;border:0;border-radius:24px;padding:12px 18px;min-height:44px;font-size:12px;font-weight:650}.dispatch-launcher[hidden]{display:none}#dispatch-dialog{max-width:1050px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto}#dispatch-dialog h3{font-size:17px;margin:16px 0 10px}.dispatch-tabs{display:flex;gap:7px;overflow-x:auto;min-width:0;max-width:100%;padding:5px 0 12px}.dispatch-tabs button{min-height:44px;padding:10px 12px;border:1px solid #d7e7df;border-radius:9px;background:white;white-space:nowrap;font-size:12px}.dispatch-tabs [aria-current=page]{background:#007e70;color:white}.dispatch-card{border:1px solid #dce9e2;border-radius:12px;padding:16px;margin:14px 0;background:white;min-width:0}.dispatch-card p{font-size:13px;line-height:1.65;overflow-wrap:anywhere}.dispatch-card button{margin:8px 8px 0 0}.dispatch-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-width:100%}.dispatch-card summary{min-height:44px;padding:12px 0;font-size:13px;cursor:pointer}.dispatch-flag{background:#fff4e9;color:#7d4d21;border-left:3px solid #dc9c52;padding:9px 12px}.dispatch-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px}.dispatch-check input{width:20px;min-height:20px;accent-color:#007e70}.dispatch-date,#dispatch-dialog>label{display:grid;gap:8px;font-size:13px;margin:12px 0}.dispatch-date input,#dispatch-dialog>label input{padding:10px;min-height:44px;border:1px solid #d7e7df;border-radius:8px;width:100%}#dispatch-dialog form{padding:16px;border-radius:12px;background:#f2f8f5;margin:16px 0}#dispatch-dialog fieldset{border:1px solid #d7e7df;border-radius:10px;padding:12px}#dispatch-dialog legend{font-size:12px;padding:0 6px}#dispatch-dialog input,#dispatch-dialog select,#dispatch-dialog textarea{font-size:16px;min-width:0;max-width:100%}#dispatch-dialog form,#dispatch-dialog label{min-width:0;max-width:100%}.dispatch-text-button{border:0;background:none;color:#007e70;padding:8px;font-size:12px;min-height:44px}@media(max-width:650px){.dispatch-launcher{left:12px;bottom:calc(138px + env(safe-area-inset-bottom))}#dispatch-dialog{padding:16px;width:calc(100% - 16px);max-height:calc(100dvh - 16px)}#dispatch-dialog .form-grid{grid-template-columns:1fr}.dispatch-card{padding:12px}.dispatch-tabs button{font-size:12px}}

.dispatch-references img{max-width:100%;max-height:300px;object-fit:contain;border-radius:12px}.dispatch-references figure{margin:12px 0}.dispatch-references figcaption{font-size:.85rem;color:var(--muted,#657970)}

/* Sidebar tools follow the footer naturally; phones retain the shared floating row. */
@media(min-width:721px){
  .sidebar{overflow-y:auto;overflow-x:hidden}
  .sidebar-tools{display:flex;flex-direction:column;gap:10px;margin:24px 10px 0}
  .sidebar-tools .dispatch-launcher,.sidebar-tools .work-tools-launcher,.sidebar-tools .support-shortcut{
    position:static;width:100%;min-height:44px;padding:12px 10px;border-radius:12px;
    text-align:center;flex-shrink:0;
  }
  .sidebar-tools .dispatch-launcher{order:0}
  .sidebar-tools .work-tools-launcher{order:1}
  .sidebar-tools .support-shortcut{order:2;background:#243c35;color:#fff;border:1px solid #48635a;font-size:12px;font-weight:650;cursor:pointer}
}
@media(max-width:720px){
  .work-tools-launcher,.dispatch-launcher,.tour-launcher{
    bottom:calc(86px + env(safe-area-inset-bottom));
    width:calc((100% - 36px)/3);max-width:none;height:56px;min-height:56px;
    padding:8px 7px;font-size:11px;line-height:1.3;white-space:normal;
    display:flex;align-items:center;justify-content:center;text-align:center;
  }
  .work-tools-launcher{left:12px;right:auto}
  .dispatch-launcher{left:calc((100% - 36px)/3 + 18px);right:auto}
  .tour-launcher{left:auto;right:12px}
  .workspace-shell{padding-bottom:calc(154px + env(safe-area-inset-bottom))}
  html{scroll-padding-bottom:calc(154px + env(safe-area-inset-bottom))}
}

/* A compact edge tab replaces the two floating phone bubbles. */
.mobile-tools-dock[hidden],.mobile-tools-panel[hidden],.mobile-tools-tab[hidden]{display:none!important}
.mobile-tools-dock{display:none}
@media(max-width:720px){
 .topbar:has(>.mobile-tools-dock:not([hidden])){display:grid;grid-template-columns:minmax(44px,1fr) auto auto;gap:4px;height:auto;min-height:68px;padding:8px 6px 8px 0;align-items:center;overflow:visible}
 .topbar:has(>.mobile-tools-dock:not([hidden])) .mobile-wordmark{display:flex;align-items:center;justify-content:flex-start;min-width:0;max-width:100%;height:44px}
 .topbar:has(>.mobile-tools-dock:not([hidden])) .mobile-wordmark img{width:145px;max-width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
 .mobile-tools-dock{display:flex;flex-direction:row;align-items:center;gap:4px;position:relative;width:auto;z-index:38}
 .mobile-tools-tab,.mobile-tools-dock>.support-shortcut{position:relative;width:70px;height:44px;min-height:44px;padding:6px 4px;line-height:1.15;border:1px solid #4b9d8f;border-radius:12px;background:#006f63;color:#f5faf8;font-size:10.5px;font-weight:650;white-space:nowrap;box-shadow:0 2px 5px #163b2e12;touch-action:manipulation;cursor:pointer}
 .mobile-tools-tab>span{display:block;line-height:1.15}
 .mobile-tools-dock>.support-shortcut{width:70px;background:#243c35;border-color:#516d62}
 .mobile-tools-tab[aria-expanded=true]{background:#dff5ed;border-color:#6ba798;color:#005c50}
 .mobile-tools-panel{position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);display:flex;flex-direction:column;gap:10px;width:min(230px,calc(100vw - 24px));padding:16px;background:#fff;border:1px solid #bedbd0;border-radius:18px;box-shadow:0 12px 35px #163b2e29}
 @media(max-width:350px){.topbar:has(>.mobile-tools-dock:not([hidden])) .mobile-wordmark{width:44px;height:44px;background:url('/daysteer-icon.png') no-repeat left center/36px 36px}.topbar:has(>.mobile-tools-dock:not([hidden])) .mobile-wordmark img{display:none}}

 .mobile-tools-panel>strong{font-size:13px;color:#315d50;margin-bottom:2px}
 .mobile-tools-panel .work-tools-launcher,.mobile-tools-panel .dispatch-launcher{position:static;width:100%;height:auto;min-height:48px;font-size:13px;padding:13px 16px;border-radius:12px;text-align:left;justify-content:flex-start}
 .mobile-tools-dock button:focus-visible{outline:3px solid #00a58d;outline-offset:3px}
 .mobile-tools-dock button:active{filter:brightness(1.2)}
 body[data-workspace-role=Employee] .mobile-tools-tab,body[data-workspace-role=Employee] .mobile-tools-panel{display:none!important}
}

/* Shared uploaded-photo controls: separate from the photo opener. */
.photo-with-actions,.unified-job-photos figure,.tool-photo-grid figure,.property-guide-photos figure{position:relative}.photo-remove-control{position:absolute;top:6px;right:6px;z-index:2;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #d7e2df;border-radius:50%;background:#fff;color:#243b35;font-size:27px;line-height:1;box-shadow:0 2px 8px #0002;display:grid;place-items:center}.photo-remove-control:hover,.photo-remove-control:active{background:#e3f5ef}.photo-remove-control:focus-visible{outline:3px solid #008579;outline-offset:2px}.photo-with-actions>.photo-tile{width:100%;height:100%}#photo-removal-dialog{max-width:440px;width:calc(100% - 32px);border:1px solid #d7e2df;border-radius:22px;padding:24px}#photo-removal-dialog::backdrop{background:#14292470}#photo-removal-dialog button{min-height:44px}
.photo-grid>.photo-with-actions{flex:0 0 160px}.photo-with-actions>.photo-tile img{width:100%;height:112px}.unified-job-photos button.photo-remove-control,.tool-photo-grid button.photo-remove-control,.property-guide-photos button.photo-remove-control{width:44px;height:44px;padding:0;background:#fff;border:1px solid #d7e2df;border-radius:50%;color:#243b35;cursor:pointer}.unified-job-photos button.photo-remove-control:active,.tool-photo-grid button.photo-remove-control:active{background:#e3f5ef}

/* Keep before/after evidence in distinct sections, ordered by upload time. */
.job-photo-group{margin:0 0 24px;min-width:0}.job-photo-group+.job-photo-group{padding-top:18px;border-top:1px solid #d9e5df}.job-photo-group-heading{display:flex;align-items:center;gap:9px;margin:0 0 12px!important;font-size:14px!important;font-weight:700;color:#145b4e}.job-photo-group-heading span{display:inline-grid;place-items:center;min-width:25px;min-height:25px;padding:2px 6px;border-radius:999px;background:#e5f3ed;color:#245d50;font-size:11px}.job-photo-group .unified-job-photos,.job-photo-group .tool-photo-grid{margin-top:0}.recap-photo-group{margin-bottom:20px}

/* One consistent report download menu, sized for field use. */
.report-download-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 20px}.report-download-actions>button{min-height:44px;padding:11px 18px;border:1px solid #b8d6cb;border-radius:11px;background:#fff;color:#006f62;font-weight:650;cursor:pointer}.report-download-actions>button:hover{background:#ecf8f2}.report-download-actions>button:active{background:#d5eee3}.report-download-actions>button:focus-visible{outline:3px solid #008778;outline-offset:3px}.report-download-actions>button:disabled{opacity:.5;cursor:wait}#report-export-dialog{width:min(480px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid #d5e2db;border-radius:22px;padding:24px;color:#173b30}#report-export-dialog::backdrop{background:#102d2980}.report-export-photo-option{display:flex!important;align-items:flex-start;gap:10px;font-weight:600;line-height:1.6}.report-export-photo-option input{width:20px;height:20px;flex:0 0 20px;margin:3px 0}#report-export-status{padding:12px 14px;background:#eef8f2;border-radius:11px;font-size:14px;line-height:1.5}#report-export-status[role=alert]{background:#fff0ea;color:#853c2c}#report-export-dialog .dialog-actions{display:flex;gap:10px;flex-wrap:wrap}#report-export-dialog .dialog-actions button{min-height:44px;flex:1}#report-export-dialog .icon-button{min-width:44px;min-height:44px}@media(max-width:500px){.report-download-actions>button{flex:1;white-space:nowrap}#report-export-dialog{padding:20px}}@media print{.report-download-actions{display:none}}
/* Match visible spacing across the mobile header, including the logo artwork's white margins. */
@media(max-width:720px){
 .topbar:has(>.mobile-tools-dock:not([hidden])){padding-left:2px}
 .topbar .mobile-wordmark{left:0;overflow:hidden}

 .topbar .topbar-right:has(.schedule-alert-trigger:not([hidden])){gap:4px}
}

/* Quick menu rises from More; Help remains in the header. */
@media(max-width:720px){
 .mobile-tools-tab{position:fixed;right:max(10px,env(safe-area-inset-right));bottom:calc(60px + env(safe-area-inset-bottom));width:84px;height:44px;min-height:44px;border-radius:15px 15px 0 0;border-bottom:0;padding:5px 9px;background:#007e70;box-shadow:0 -3px 12px #163b2e1f;z-index:38;font-size:11px}
 .mobile-tools-panel{position:fixed;left:auto;top:auto;right:max(10px,env(safe-area-inset-right));bottom:calc(112px + env(safe-area-inset-bottom));transform:none;width:min(250px,calc(100vw - 24px));max-height:calc(100dvh - 200px - env(safe-area-inset-bottom));overflow:auto;border-radius:18px 18px 6px 18px;box-shadow:0 -8px 30px #163b2e29}
 .topbar:has(>.mobile-tools-dock:not([hidden])){gap:8px;padding-right:8px}
 .topbar:has(>.mobile-tools-dock:not([hidden])) .mobile-wordmark{height:56px}
 .topbar:has(>.mobile-tools-dock:not([hidden])):has(.mobile-tools-tab:not([hidden])) .mobile-wordmark img{width:100%;max-width:230px;height:56px;object-fit:contain;object-position:left center;margin-left:0;flex-shrink:1}
 .mobile-tools-dock>.support-shortcut{width:54px;height:38px;min-height:38px;padding:4px;border-radius:11px}
 .mobile-tools-dock>.support-shortcut::before{content:'';position:absolute;inset:-3px 0}
 .topbar .topbar-right:has(.schedule-alert-trigger:not([hidden])){gap:8px}
 .topbar .account-trigger{width:56px;height:56px;min-width:56px;min-height:56px;font-size:12px}
}

/* Closing quick sign-in leaves a compact signed-out header, with the whole logo visible. */
@media(max-width:720px){.topbar:has(.mobile-tools-tab[hidden]) .mobile-wordmark img{width:145px;max-width:100%;height:auto;max-height:44px;margin-left:0;flex-shrink:1}}

/* Space from the visible artwork, rather than stretching its empty grid column. */
@media(min-width:351px) and (max-width:720px){
 .topbar:has(>.mobile-tools-dock:not([hidden])):has(.mobile-tools-tab:not([hidden])){display:flex;justify-content:flex-start}
 .topbar:has(>.mobile-tools-dock:not([hidden])):has(.mobile-tools-tab:not([hidden])) .mobile-wordmark{flex:0 1 204px;width:204px;max-width:204px;margin-right:-4px}
 .topbar:has(>.mobile-tools-dock:not([hidden])):has(.mobile-tools-tab:not([hidden])) .mobile-tools-dock,.topbar:has(>.mobile-tools-dock:not([hidden])):has(.mobile-tools-tab:not([hidden])) .topbar-right{flex-shrink:0}
}

/* One explicit, reversible selection for a job's service checklist. */
.checklist-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.job-checklist .checklist-heading h4{margin:0;flex:1 1 120px;min-width:0}
.checklist-toggle-all{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;min-height:44px;padding:6px 8px;border:1px solid #bfd8cd;border-radius:10px;background:#edf7f2;color:#006f61;font-size:11px;font-weight:650;line-height:1.2;white-space:nowrap;touch-action:manipulation}
.checklist-toggle-box{display:inline-grid;place-items:center;width:17px;height:17px;border:1.5px solid #559f8b;border-radius:4px;font-size:13px;line-height:1;flex-shrink:0}
.checklist-toggle-all[aria-checked=true] .checklist-toggle-box,.checklist-toggle-all[aria-checked=mixed] .checklist-toggle-box{background:#007e70;border-color:#007e70;color:white}
.checklist-toggle-all:hover:not(:disabled){background:#e0f3eb}.checklist-toggle-all:active:not(:disabled){background:#c9e9db}
.checklist-toggle-all:focus-visible{outline:3px solid #008d79;outline-offset:3px}.checklist-toggle-all:disabled{opacity:.55;cursor:default}
