/* v4.5.10. Last-loaded canonical theme stylesheet. All interface chrome follows theme. */
:root{--crm-bg:var(--si-custom-bg,#071525);--crm-surface:var(--si-custom-surface,#112d4c);--crm-text:var(--si-custom-text,#edf7ff);--crm-primary:var(--si-custom-primary,#00b7ff);--crm-accent:var(--si-custom-accent,#ff496c);--crm-border:var(--si-custom-border,#3e779d);--crm-bw:var(--si-custom-border-width,2px);--crm-radius:var(--si-custom-radius,14px);--crm-glow:var(--si-custom-glow,24px);--crm-muted:color-mix(in srgb,var(--crm-text) 70%,var(--crm-surface));--crm-soft:color-mix(in srgb,var(--crm-primary) 10%,var(--crm-surface));--crm-hover:color-mix(in srgb,var(--crm-primary) 22%,var(--crm-surface));--crm-glow-shadow:0 0 calc(var(--crm-glow) * .75) color-mix(in srgb,var(--crm-primary) 42%,transparent),0 0 calc(var(--crm-glow) * 1.5) color-mix(in srgb,var(--crm-accent) 16%,transparent);}
:root:has(body.si-theme-active){background:var(--crm-bg)!important;color-scheme:dark;}
:root:has(body.si-theme-active[data-crm-theme-mode="Light"]){color-scheme:light;}
body.si-theme-active{background:var(--crm-bg)!important;color:var(--crm-text)!important;}
body.si-theme-active :is(.app,.main,.content,.bonus-full-content){background:var(--crm-bg)!important;color:var(--crm-text)!important;}
body.si-theme-active :is(.sidebar,.top,.brand,.si-nav,.pb-side,.pb-settings-tabs,.dispatch-side,.dispatch-calendar){background:var(--crm-surface)!important;color:var(--crm-text)!important;border-color:var(--crm-border)!important;}
/* All common cards, modules, drawers, panels and dialogs */
body.si-theme-active :is(.card,.panel,.home-card,.home-panel,.life-card,.life-column,.life-phase,.life-metric,.life-detail,.life-line,.pipeline-card,.pipeline-column,.pb-hero,.pb-folder,.pb-section,.pb-editor,.pb-settings,.pb-service-row,.pb-item-row,.pb-category-tree,.pb-main,.pb-side,.pb-summary-row,.pb-setting-grid,.pb-book-tab,.pb-list-header,.cp-panel,.cp-map,.cp-addresses,.cp-tag,.jp-progress,.jp-map,.emp-tile,.dispatch-side,.dispatch-calendar,.dispatch-day,.jc-calendar,.jc-toolbar,.jc-day,.jc-outside,.jc-pop,.jc-day-menu,.jc-mini-day,.jc-year-month,.jc-action-modal,.si-card,.si-nav,.si-modal,.si-doc-library,.si-location-row,.si-theme-choice,.tablewrap,.modal,.day,.notice,.home-quick button,.home-card-body,.home-list-row,.home-staff,.home-map-placeholder,.home-mini,.cc-report,.cc-reports,.cc-report-options,.bonus-embedded-shell){
 background:var(--crm-surface)!important;color:var(--crm-text)!important;border-color:var(--crm-border)!important;
}
/* Structural cards get border thickness, radius and theme glow */
body.si-theme-active :is(.card,.panel,.home-card,.home-panel,.life-card,.life-column,.life-phase,.pb-hero,.pb-folder,.pb-section,.pb-editor,.pb-settings,.pb-main,.pb-side,.pb-category-tree,.cp-panel,.jp-progress,.emp-tile,.dispatch-side,.dispatch-calendar,.dispatch-day,.jc-calendar,.jc-pop,.jc-action-modal,.si-card,.si-nav,.si-modal,.tablewrap,.modal,.cc-report){border:var(--crm-bw) solid var(--crm-border)!important;border-radius:var(--crm-radius)!important;box-shadow:var(--crm-glow-shadow)!important;}
/* Secondary surfaces, separators and thin rules. Semantic status/priority indicators excluded. */
body.si-theme-active :is(.metric,.cp-address,.cp-activityitem,.cp-note,.jp-row,.jp-item,.jp-cost>div,.life-line,.life-column-top,.life-phase-head,.pb-line,.pb-crumb,.pb-service-head,.pb-service-row,.pb-item-row,.pb-summary-row,.pb-list-header,.pb-setting-head,.home-list-row,.home-card-foot,.home-panel,.home-section-head,.jc-toolbar,.jc-weekheads>div,.jc-day,.jc-pop-head,.jc-pop-hint,.si-tabs,.si-location-row,.si-doc-library,.si-table td,.si-table th,.si-location-summary,.si-theme-choice,.top,.brand,.tablewrap,th,td,.dispatch-day,.dispatch-side,.dispatch-calendar){border-color:var(--crm-border)!important}
body.si-theme-active :is(.home-card-body,.home-quick button,.home-toggle,.home-mini,.pb-service-row,.pb-item-row,.pb-crumb,.pb-book-tab,.pb-setting-grid,.cp-filter button,.jc-weekheads>div,.jc-outside,.jc-day-menu button,.si-note,.si-doc-library[open],.si-location-summary,.si-logo-preview,.si-theme-choice,.dispatch-day,.home-list-row){background:var(--crm-soft)!important;color:var(--crm-text)!important}
body.si-theme-active :is(.pb-services-table,.pb-services-table table,.pb-service-row,.si-table,table){color:var(--crm-text)!important;}
body.si-theme-active th{background:var(--crm-soft)!important;color:var(--crm-text)!important;}
body.si-theme-active tbody tr:hover{background:var(--crm-hover)!important;}
body.si-theme-active :is(.muted,.home-muted,.home-card-sub,.home-footnote,.si-muted,.si-subtle,.jc-key,.jc-day-top,.jc-calendar-note,.dispatch-empty,.pb-side-title,.cp-note-meta,.cp-bottom){color:var(--crm-muted)!important;}
body.si-theme-active :is(.link,.badge,.home-link,.home-plus,.home-eyebrow,.home-count-link,.pb-plus,.pb-service-code,.jp-plain,.jc-nav-btn,.si-section-title,.si-num){color:var(--crm-primary)!important;}
/* All standard controls, including Settings and Price Book */
body.si-theme-active :is(button,input,select,textarea){outline-color:var(--crm-primary);}
body.si-theme-active :is(input:not([type=color]):not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.field,.si-field input:not([type=color]),.si-input,.cp-field input,.pb-editor input,.pb-settings input){background:var(--crm-bg)!important;color:var(--crm-text)!important;border-color:var(--crm-border)!important;}
body.si-theme-active :is(input[type=range],input[type=checkbox],input[type=radio]){accent-color:var(--crm-primary)!important;}
body.si-theme-active :is(.btn:not(.danger),.pb-plus,.si-tabs button.active,.si-mode-switch button.active,.home-toggle button.selected){background:var(--crm-primary)!important;color:var(--crm-bg)!important;border-color:var(--crm-primary)!important;box-shadow:0 0 calc(var(--crm-glow) * .65) color-mix(in srgb,var(--crm-primary) 40%,transparent)!important}
body.si-theme-active :is(.btn.secondary,.si-tabs button:not(.active),.si-mode-switch button:not(.active),.pb-side-link,.pb-book-tab,.cp-filter button,.cp-tabs button,.home-toggle button,.home-icon-button,.dispatch-nav button){background:var(--crm-soft)!important;color:var(--crm-text)!important;border-color:var(--crm-border)!important;}
/* Hover / focus: replace blue halo and blue inset stripe with active theme. */
body.si-theme-active :is(button,a,[role=button],.home-card,.life-card,.pb-folder,.pb-service-row,.si-theme-choice):hover:not(.status):not(.good):not(.bad):not(.warn){border-color:var(--crm-primary)!important;box-shadow:0 0 calc(var(--crm-glow) * .75) color-mix(in srgb,var(--crm-primary) 42%,transparent)!important}
body.si-theme-active :is(button,a,input,select,textarea,[role=button]):focus-visible{outline:2px solid var(--crm-primary)!important;outline-offset:2px!important;box-shadow:0 0 calc(var(--crm-glow) * .6) color-mix(in srgb,var(--crm-primary) 45%,transparent)!important;}
body.si-theme-active :is(.nav button,.si-nav button,.pb-side-link,.pb-settings-tabs button,.cp-tabs button,.si-tabs button):hover{background:var(--crm-hover)!important;color:var(--crm-text)!important;box-shadow:inset 3px 0 var(--crm-primary),0 0 calc(var(--crm-glow) * .5) color-mix(in srgb,var(--crm-primary) 30%,transparent)!important;}
body.si-theme-active :is(.nav button.active,.si-nav button.active,.pb-side-link.active,.cp-tabs button.active){background:var(--crm-hover)!important;color:var(--crm-text)!important;box-shadow:inset 3px 0 var(--crm-primary)!important;}
body.si-theme-active :is(.nav button,.si-nav button,.pb-side-link,.pb-settings-tabs button,.cp-tabs button,.si-tabs button){border-color:var(--crm-border)!important;color:var(--crm-text)!important;}
/* Gradients and decorative accent lines that were previously hardcoded blue. */
body.si-theme-active :is(.top,.home-panel,.home-card,.si-card,.pb-hero,.pb-section,.cp-panel,.dispatch-side,.dispatch-calendar){background-image:none!important;}
body.si-theme-active :is(.notice,.si-note){border-left-color:var(--crm-primary)!important;}
body.si-theme-active :is(.home-map-grid){background-image:linear-gradient(color-mix(in srgb,var(--crm-primary) 15%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--crm-primary) 15%,transparent) 1px,transparent 1px)!important;}
body.si-theme-active :is(.home-icon-button:hover,.jc-nav-btn:hover,.jc-date-button:hover,.jc-mini-day:hover,.pb-side-link:hover,.pb-service-row:hover,.pb-folder:hover,.cp-action:hover){background:var(--crm-hover)!important;color:var(--crm-text)!important;}
body.si-theme-active :is(.jc-month-nav h2,.jc-pop-head,.jc-pop-hint,.jc-day-top,.jc-day-top small,.jc-calendar-note,.jc-weekheads>div,.jc-key,.jc-view-label,.jc-year-month,.jc-mini-week){color:var(--crm-text)!important;}
body.si-theme-active :is(.jc-today .jc-day-top>span,.jc-mini-today){background:var(--crm-primary)!important;color:var(--crm-bg)!important;}
/* Do not change explicit user-configured status, priority, employee, service-area, or chart colors.
   .jc-event, .dispatch-event, .si-priority-stripe, .si-jobbox, .status.good/.warn/.bad,
   .life-pill, charts, chart series, colored swatches, and branded image assets are excluded. */
/* Customer-facing document previews must remain white paper and are intentionally excluded. */
