/* Shared readable controls; loaded after page-specific styles. */
:root{--muted:#52666b}
.help-text,.muted,.workspace-footer,.attachment small{color:#52666b}
.help-text,small,.eyebrow{font-size:13px;line-height:1.5}
.button,.button.small,button.text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;white-space:normal}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #146e86;outline-offset:3px}
[hidden]{display:none!important}
.compact-search-toggle{display:none}
.object-actions-menu{position:relative}.object-actions-menu>summary{cursor:pointer;min-height:44px;padding:10px;border:1px solid #cfdddd;border-radius:8px}.object-actions-menu>.heading-actions{padding:12px;background:#fff;border:1px solid #cfdddd;border-radius:8px;position:absolute;right:0;z-index:20;min-width:220px}
.station-summary{padding:16px;margin-bottom:16px;background:#fff;border:1px solid #cfdddd;border-radius:12px}
.station-summary p{margin:6px 0}.station-summary .summary-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.station-lifecycle{display:flex;flex-wrap:wrap;gap:6px;padding:0;list-style:none;margin:12px 0 0}
.station-lifecycle li{font-size:13px;padding:5px 9px;border-radius:6px;background:#f1f5f5;color:#52666b}
.station-lifecycle [aria-current=step]{background:#dcefe7;color:#164e43;font-weight:700}
.card-tabs{display:flex;gap:6px;overflow:auto;margin:0 0 16px;padding:3px 0 8px;scrollbar-width:thin}
.card-tabs button{flex:0 0 auto}.card-tabs [aria-selected=true]{background:#173b40;color:#fff;border-color:#173b40}
[data-station-card] [data-card-tab]{min-width:0}
.intake-layout{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.intake-layout p{max-width:650px;margin:0}.quick-optional{margin:12px 0}.quick-optional>summary{padding:14px 16px;cursor:pointer;font-weight:600;min-height:48px}
.quick-optional-body{padding:0 16px 16px}.quick-overview{display:none!important}
.quick-intake .handover-step{display:block!important}.quick-intake .handover-section-title span,.quick-intake .handover-section-title h2{display:none}
.quick-intake [data-prev-step],.quick-intake [data-next-step]{display:none!important}.quick-intake [data-complete-button]{display:inline-flex!important}
.quick-intake .handover-step{border:0;box-shadow:none;padding:12px 0;margin:0}.quick-intake .handover-actions{position:static}
.work-categories{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.work-categories [data-work-preferences-status]{flex-basis:100%;margin:0}
.work-group-title{font-size:18px;margin:24px 0 10px}.work-assignment-summary{display:flex;flex-wrap:wrap;gap:8px 20px}.work-assignment-summary p{margin:6px 0}
.notification-filters{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.notification-filters [aria-current=page]{background:#173b40;color:#fff}
.notification-group>summary{padding:16px;cursor:pointer;min-height:48px;font-weight:600}.notification-group .notification-list{border:0}
.attachment .file-name{overflow-wrap:anywhere}.attachment.photo-attachment .file-name{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.attachment .file-details{margin-top:6px}.file-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.attachment-grid .document-attachment{grid-column:1/-1;display:flex;align-items:center;gap:12px}.document-attachment .file-type{width:48px;height:48px;flex-shrink:0}.document-attachment>div{flex:1;min-width:0}
.station-map-sheet{position:fixed;left:12px;right:12px;bottom:calc(64px + env(safe-area-inset-bottom));z-index:1050;background:#fff;border:1px solid #b9cecf;box-shadow:0 6px 25px #173b4030;border-radius:16px;padding:14px;max-height:45dvh;max-height:45vh;overflow:auto}
.station-map-sheet .map-popup{max-width:none}.station-map-sheet h3{font-size:18px;margin:0 44px 8px 0}.station-map-sheet>button{float:right;min-width:44px}.station-map-sheet .phone{display:inline-flex;min-height:48px;align-items:center;margin-left:12px}.station-map-sheet .map-popup-address{display:block}
.sync-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:12px 0}.sync-detail-grid>div{background:#f1f6f5;border-radius:8px;padding:12px}
@media(max-width:760px){
  .mobile-header .compact-search-toggle{display:inline-flex;flex:0 0 44px;min-width:44px;font-size:28px;padding:0;color:#fff;background:transparent;border-color:#66868b}.mobile-header .mobile-brand{min-width:0;overflow:hidden;text-overflow:ellipsis}.workspace-tools .global-search{display:none!important}.workspace-tools.search-open .global-search{display:flex!important;flex-basis:100%;width:100%}.workspace-tools{flex-wrap:wrap;padding:0;margin:0;gap:8px}.workspace-tools.search-open{margin-bottom:10px}
  .compact-object-page .section-navigation{display:none}.compact-object-page [data-station-card]~*{min-width:0}.compact-object-page .page-heading>.heading-actions{flex-direction:row}.compact-object-page .page-heading>.heading-actions>*{flex:1}.compact-object-page .page-heading>div>p:not(.eyebrow){display:none}.compact-object-page .page-heading .title-badges{display:none}
  .section-navigation{margin-bottom:12px}.section-tabs{padding-bottom:4px}.installation-shortcut{display:none}
  .page-heading{margin-bottom:14px;gap:10px}.page-heading h1{font-size:24px;line-height:1.25}.page-heading .heading-actions{gap:8px}
  .button,.button.small,button.text-button,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{min-height:48px}
  .help-text,small,.attachment small,.workspace-footer{font-size:13px}.field>label,.handover-grid label>span{font-size:14px}
  .card-tabs .button{min-height:48px}.card-tabs{margin-bottom:10px}.station-summary{padding:12px}.station-lifecycle{gap:4px}.station-lifecycle li{padding:5px 7px}
  .notification-list article{flex-wrap:wrap;gap:8px}.notification-list article>div{flex:1;min-width:160px}.notification-list article>form{margin-left:32px}
  .attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attachment img{height:140px!important;object-fit:cover}.attachment>div{padding:8px}.attachment .button{width:100%}
  .quick-optional-body{padding:0 10px 12px}.intake-layout{gap:8px}.intake-layout .button{width:100%}
}
@media(min-width:761px){.station-map-sheet{display:none}}

/* Compact phone map; all other screens retain their established controls. */
@media(max-width:760px){
  .compact-map-layout .mobile-header{height:52px;gap:4px;padding:0 8px}
  .compact-map-layout .mobile-header .mobile-brand{font-size:18px;font-weight:600;white-space:nowrap}
  .compact-map-layout .mobile-header .header-action{min-width:46px;width:auto;min-height:48px;padding:3px 5px;border-color:transparent;background:transparent;gap:1px}
  .compact-map-layout .header-action .header-action-label{font-size:10px;font-weight:400}
  .compact-map-layout .mobile-header .compact-search-toggle,.compact-map-layout .page-heading,.compact-map-layout .workspace-footer{display:none!important}
  .compact-map-layout .workspace{padding:6px 8px 0}
  .compact-map-layout .compact-map-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:0;border:0;background:transparent;box-shadow:none;margin:0 0 6px}
  .compact-map-layout .compact-map-form>.filter-main{display:block;min-width:0}
  .compact-map-layout .compact-map-form>.filter-main>button,.compact-map-layout .compact-map-form>.filter-main>a,.compact-map-layout .manager-map-search>button:not(.compact-map-filter-toggle),.compact-map-layout .manager-map-search>a{display:none}
  .compact-map-layout .compact-map-form input[name=q]{width:100%;min-height:44px;height:44px;font-size:16px;padding-top:8px;padding-bottom:8px}
  .compact-map-layout .button,.compact-map-layout button.text-button{min-height:44px}
  .compact-map-layout .compact-map-filter-toggle{font-size:13px;font-weight:500;padding:6px 10px}
  .compact-map-layout .compact-map-filters{grid-column:1/-1;padding:8px;background:white;border:1px solid #cfdddd;border-radius:8px;max-height:50dvh;overflow:auto}
  .compact-map-layout .compact-map-filters .quick-filters{display:flex;flex-wrap:wrap;overflow:visible;margin:0 0 8px}
  .compact-map-layout .compact-map-filters .quick-filter{min-height:44px;font-weight:400}
  .compact-map-layout .compact-map-filters .advanced-filters>summary{display:none}
  .compact-map-layout .compact-map-filters .advanced-filters{display:block;width:100%}
  .compact-map-layout .compact-map-filters .filter-grid{position:static;width:auto;padding:0;border:0;box-shadow:none;grid-template-columns:minmax(0,1fr)}
  .compact-map-layout .compact-map-filter-actions{display:flex;gap:8px;margin-top:8px}
  .compact-map-layout .compact-map-active{display:flex;gap:8px;align-items:center;font-size:13px;margin:0 0 4px;min-height:32px}
  .compact-map-layout .compact-map-active span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1}
  .compact-map-layout .compact-map-active a{min-height:44px;display:flex;align-items:center}
  .compact-map-layout .map-toolbar{margin:0 0 6px;gap:6px}
  .compact-map-layout .map-mobile-toggle{padding:2px;gap:2px;border-radius:8px}
  .compact-map-layout .map-mobile-toggle .button{min-height:44px;padding:5px 10px;font-size:14px;font-weight:500}
  .compact-map-layout .map-toolbar .station-sorting{display:none}
  .compact-map-layout.compact-map-list .map-toolbar .station-sorting{display:block}
  .compact-map-layout .station-sorting summary{font-size:13px;min-height:44px;font-weight:400}
  .compact-map-layout .map-workspace{height:var(--compact-map-height,calc(100dvh - 206px));min-height:180px;margin:0;border-radius:8px}
  .compact-map-layout .map-list-title{display:none}
  .compact-map-layout .map-list .station-row{padding:12px}
  .compact-map-layout .map-workspace~.small-note{font-size:12px;margin:4px 0}
  .compact-map-layout .mobile-bottom-nav{font-size:13px}
}
/* The intake photo scenes are always offered, but remain optional. */
.quick-intake [data-step="5"] .handover-section-title h2{display:block}
.installation-review-prompt{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sidebar .sidebar-app-download{display:flex;align-items:center;margin:0 2px 14px;padding:12px 10px;min-height:52px;background:#193f44;color:#edf6f3;border:1px solid #365d60;border-radius:10px;text-decoration:none;box-shadow:0 3px 10px #0c282b26}
.sidebar .sidebar-app-download svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sidebar-app-divider{flex:0 0 1px;width:1px;height:26px;margin:0 8px;background:#9bb9b74d}
.sidebar-app-label{flex:1;min-width:0;white-space:nowrap;font-size:12px;line-height:1.3;font-weight:600;color:#edf6f3}
.sidebar .sidebar-app-download:hover,.sidebar .sidebar-app-download:focus-visible{background:#285256;border-color:#628e88;outline:2px solid #9ac9bd;outline-offset:2px}
html[data-crm-native-app] [data-app-download]{display:none!important}

/* Current stage and one next action, shared by desktop and Android. */
.station-flow{border-left:4px solid #2e7d67;padding:18px 20px}
.station-flow-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.station-flow-heading h2{margin:3px 0 0;font-size:21px;line-height:1.3}.station-flow-heading .eyebrow{font-size:11px;letter-spacing:.06em}.station-flow-heading>.badge{flex-shrink:0}
.station-flow-address{color:#537074}.station-flow-meta{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:13px;margin:10px 0}.station-flow .station-next-action{margin:10px 0;max-width:900px}.station-flow-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}.station-flow-actions form{margin:0}.station-flow-actions .button{max-width:100%;white-space:normal;text-align:center}.station-flow-secondary{font-size:13px;padding:8px 0}.station-flow [aria-disabled=true]{opacity:.6;cursor:wait}
.station-flow-contact{border-top:1px solid #e0e9e8;margin-top:12px;padding-top:4px}.station-flow-contact summary{cursor:pointer;min-height:40px;align-content:center;font-size:13px}.station-flow-contact>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:6px 0}.station-flow .station-lifecycle{margin:10px 0 0;font-size:11px}.station-flow-missing{font-size:13px}.station-flow-missing summary{min-height:36px;align-content:center;cursor:pointer}.station-flow-missing ul{margin:6px 0}.station-flow-rework{padding:12px 14px;background:#fff5df;border-left:3px solid #d09a2c;border-radius:6px;margin:12px 0;overflow-wrap:anywhere}.station-flow-rework p{white-space:normal}.station-flow-sync{border-top:1px solid #e0e9e8;padding-top:10px;font-size:13px}.station-report-fold>summary{padding:16px;cursor:pointer;font-weight:600}.station-report-fold>.handover-report{margin:0;border:0;box-shadow:none}.station-shortcuts:empty{display:none}.service-instructions>summary{cursor:pointer;font-weight:600;min-height:44px;align-content:center}
.handover-focused-page .card-tabs,.handover-focused-page>.section-navigation,.handover-focused-page .page-heading:not(.handover-heading) .heading-actions{display:none}.station-flow-editing .station-flow-meta,.station-flow-editing .station-flow-actions,.station-flow-editing .station-lifecycle,.station-flow-editing .station-flow-contact,.station-flow-editing .station-flow-missing,.station-flow-editing .station-flow-address{display:none}.station-flow-editing{padding:12px 16px}.station-flow-editing .station-flow-heading h2{font-size:18px}.handover-focused-page .object-work{padding:0;border:0;box-shadow:none;background:transparent}.handover-focused-page .handover-heading{margin-top:14px}.handover-step{scroll-margin-top:80px}#installation-review,#work-report,#work-review,#handover-report{scroll-margin-top:80px}
@media(max-width:760px){.station-flow{padding:12px}.station-flow-heading{flex-direction:column;gap:5px}.station-flow-heading h2{font-size:19px}.station-flow-heading>.badge{display:none}.station-flow-actions{align-items:stretch;gap:8px}.station-flow-actions>[data-flow-primary],.station-flow-actions>form,.station-flow-actions>form>.button{width:100%}.station-flow-actions .button{font-size:14px}.station-flow-meta{font-size:12px}.station-flow-contact>div{align-items:flex-start;flex-direction:column}.station-flow .station-lifecycle{gap:4px}.station-flow .station-lifecycle li{padding:4px 6px}.handover-focused-page .handover-actions{bottom:calc(65px + env(safe-area-inset-bottom));padding:10px 8px;gap:6px}.handover-focused-page .handover-actions-right{gap:6px}.handover-focused-page .handover-actions .button{padding:9px 10px;font-size:12px}.handover-focused-page .handover-actions-right [data-complete-button]{flex-basis:100%}.handover-focused-page .handover-overview{padding:12px}.handover-focused-page .handover-progress-card{min-width:70px}.handover-focused-page .handover-heading h2{font-size:22px}}

.object-work{overflow:visible}.installation-review-actions{position:sticky;bottom:12px;z-index:9;background:#fff;border:1px solid #cfdddd;border-radius:10px;padding:10px;box-shadow:0 4px 20px #173b4020}.installation-review-actions .button{white-space:normal}#installation-review form{position:relative}
@media(max-width:760px){.installation-review-actions{bottom:calc(65px + env(safe-area-inset-bottom));flex-wrap:wrap}.installation-review-actions .button{flex:1 1 100%}}
