/* Nested surfaces on cream canvas — load last.
   No #fff islands on --gce-canvas (#eeeae3).
   Controls = canvas. Panels/menus/modals = Sites glass.
   Do not restyle Sites table display / week-head. */

html body.gce-viewport-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
html body.gce-viewport-shell select,
html body.gce-viewport-shell textarea,
html body.gce-viewport-shell .stm-search,
html body.gce-viewport-shell .stm-search-wrap,
html body.gce-viewport-shell .stm-filter-select,
html body.gce-viewport-shell .stm-toolbar-filter,
html body.gce-viewport-shell .stm-ms-trigger,
html body.gce-viewport-shell .stm-inline-select,
html body.gce-viewport-shell .crw-search,
html body.gce-viewport-shell .tsk-search,
html body.gce-viewport-shell .tsk-filter-select,
html body.gce-viewport-shell .tsk-inline-search input,
html body.gce-viewport-shell .msg-search,
html body.gce-viewport-shell .sto-search,
html body.gce-viewport-shell .sfd-search,
html body.gce-viewport-shell .fin-mock-sites-search,
html body.gce-viewport-shell .fin-mock-filter-year select,
html body.gce-viewport-shell .fin-sal-per-page,
html body.gce-viewport-shell .stg-input,
html body.gce-viewport-shell .stg-textarea,
html body.gce-viewport-shell .dash-search-input,
html body.gce-viewport-shell .dash-date-range,
html body.gce-viewport-shell .dash-ops-mini-search,
html body.gce-viewport-shell .dash-ops-map-search,
html body.gce-viewport-shell .dash-ops-map-search input,
html body.gce-viewport-shell .dash-ops-map-vendor-select,
html body.gce-viewport-shell .cal-board-search,
html body.gce-viewport-shell .cal-board-search input,
html body.gce-viewport-shell .cal-period-label,
html body.gce-viewport-shell .sfty-filter-select,
html body.gce-viewport-shell .pnl-search,
html body.gce-viewport-shell .eq-search {
  background: var(--gce-canvas, #eeeae3) !important;
  background-color: var(--gce-canvas, #eeeae3) !important;
  background-image: none !important;
  border-color: var(--gce-glass-line) !important;
  box-shadow: none !important;
  color: #0f172a !important;
}

html body.gce-viewport-shell .stm-search-wrap .stm-search {
  background: var(--gce-canvas, #eeeae3) !important;
}

html[data-gce-mode="dark"] body.gce-viewport-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="range"]):not([type="color"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
html[data-gce-mode="dark"] body.gce-viewport-shell select,
html[data-gce-mode="dark"] body.gce-viewport-shell textarea,
html[data-gce-mode="dark"] body.gce-viewport-shell .stm-search,
html[data-gce-mode="dark"] body.gce-viewport-shell .stm-ms-trigger,
html[data-gce-mode="dark"] body.gce-viewport-shell .cal-board-search {
  color: #e2e8f0 !important;
}

html body.gce-viewport-shell .sfty-card,
html body.gce-viewport-shell .stm-table-card,
html body.gce-viewport-shell .stm-table-card-full,
html body.gce-viewport-shell .stm-table-toolbar,
html body.gce-viewport-shell .stm-filters-bar,
html body.gce-viewport-shell .tsk-table-card,
html body.gce-viewport-shell .tsk-table-toolbar,
html body.gce-viewport-shell .tsk-table-foot,
html body.gce-viewport-shell .tsk-view-tabs,
html body.gce-viewport-shell .tsk-form-card,
html body.gce-viewport-shell .tsk-board-col,
html body.gce-viewport-shell .tsk-board-card,
html body.gce-viewport-shell .tsk-create-modal,
html body.gce-viewport-shell .tsk-create-modal-foot,
html body.gce-viewport-shell .sfd-card,
html body.gce-viewport-shell .fin-sal-kpi,
html body.gce-viewport-shell .fin-sal-aside,
html body.gce-viewport-shell .fin-sal-table-wrap,
html body.gce-viewport-shell .fin-mock-table-panel,
html body.gce-viewport-shell .fin-mock-sites-panel,
html body.gce-viewport-shell .fin-mock-site-card,
html body.gce-viewport-shell .cal-time-grid,
html body.gce-viewport-shell .cal-time-day-head,
html body.gce-viewport-shell .cal-time-allday-col,
html body.gce-viewport-shell .cal-board-left,
html body.gce-viewport-shell .cal-board-right,
html body.gce-viewport-shell .cal-board-center,
html body.gce-viewport-shell .msg-thread,
html body.gce-viewport-shell .msg-list,
html body.gce-viewport-shell .stg-users-panel,
html body.gce-viewport-shell .modal-card,
html body.gce-viewport-shell .gce-dd-menu:not(#stm-project-filter-menu):not(#global-status-picker-menu):not(#global-crew-picker-menu):not(.status-picker-menu):not(.crew-picker-menu),
html body.gce-viewport-shell .stm-ms-menu:not(#stm-project-filter-menu),
html body.gce-viewport-shell .stm-columns-popover,
html body.gce-viewport-shell .tsk-kebab-menu {
  background: var(--gce-glass-panel) !important;
  border-color: var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine), var(--gce-glass-shadow) !important;
}

html body.gce-viewport-shell .stm-table thead th,
html body.gce-viewport-shell .tsk-table thead th,
html body.gce-viewport-shell .fin-sal-table th,
html body.gce-viewport-shell .crw-table thead th {
  background: var(--gce-canvas, #eeeae3) !important;
  background-color: var(--gce-canvas, #eeeae3) !important;
}

html body.gce-viewport-shell .stm-table tbody td,
html body.gce-viewport-shell .stm-table tbody tr.stm-row {
  background-color: transparent !important;
}

html body.gce-viewport-shell .stm-ms-option:hover {
  background: color-mix(in srgb, var(--gce-canvas, #eeeae3) 70%, #dbeafe 30%) !important;
}

html body.gce-viewport-shell .stm-ms-option.is-checked {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}

html body.gce-viewport-shell .stm-ms-menu.show {
  display: flex !important;
}
html body.gce-viewport-shell .gce-dd-menu.show:not(.status-picker-menu):not(.crew-picker-menu) {
  display: flex !important;
}
html body.gce-viewport-shell .status-picker-menu.show,
html body.gce-viewport-shell .crew-picker-menu.show {
  display: block !important;
  flex-direction: column !important;
}

/* Settings overlays — cover the whole app, Sites glass (no white islands). */
html body [id^="stg-"][id$="-modal"].modal-backdrop,
html body [id^="stg-"][id$="-modal"].stg-users-backdrop,
html body [id^="stg-"][id$="-modal"].stg-drawer-backdrop,
html body #stg-billing-modal.stg-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482990 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow: auto;
  background: rgba(40, 36, 30, 0.46) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
html body [id^="stg-"][id$="-modal"].modal-backdrop.show,
html body [id^="stg-"][id$="-modal"].stg-users-backdrop.show,
html body [id^="stg-"][id$="-modal"].stg-drawer-backdrop.show,
html body #stg-billing-modal.stg-modal:not(.hidden) {
  display: flex !important;
}
html body #stg-billing-modal.stg-modal.hidden {
  display: none !important;
}
html body [id^="stg-"][id$="-modal"] .stg-users-panel,
html body [id^="stg-"][id$="-modal"] .stg-drawer-panel,
html body [id^="stg-"][id$="-modal"] .stg-co-panel,
html body [id^="stg-"][id$="-modal"] .stg-iface-panel,
html body [id^="stg-"][id$="-modal"] .modal,
html body #stg-billing-modal .stg-modal-panel {
  width: min(1120px, 100%) !important;
  max-width: min(1120px, 100%) !important;
  height: auto !important;
  max-height: min(92dvh, 920px) !important;
  margin: auto;
  animation: none !important;
  background: var(--gce-glass-panel) !important;
  border: 1px solid var(--gce-glass-edge) !important;
  box-shadow: var(--gce-glass-shine), var(--gce-glass-shadow) !important;
  backdrop-filter: blur(var(--gce-glass-blur, 36px)) saturate(var(--gce-glass-sat, 1.45)) !important;
  -webkit-backdrop-filter: blur(var(--gce-glass-blur, 36px)) saturate(var(--gce-glass-sat, 1.45)) !important;
}
html body #stg-vendors-modal .stg-users-panel,
html body #stg-workflow-modal .stg-users-panel,
html body #stg-users-modal .stg-users-panel {
  width: min(1280px, 100%) !important;
  max-width: min(1280px, 100%) !important;
}
html body #stg-notifications-modal .stg-drawer-panel,
html body #stg-notifications-modal .stg-notif-panel {
  width: min(760px, 100%) !important;
  max-width: min(760px, 100%) !important;
  height: auto !important;
  max-height: min(92dvh, 920px) !important;
}
html body #stg-integrations-modal .modal,
html body #stg-support-modal .modal,
html body #stg-totp-modal .modal,
html body #stg-roles-modal .modal,
html body #stg-billing-modal .stg-modal-panel {
  width: min(760px, 100%) !important;
  max-width: min(760px, 100%) !important;
}
html body [id^="stg-"][id$="-modal"] .stg-users-head,
html body [id^="stg-"][id$="-modal"] .stg-iface-head,
html body [id^="stg-"][id$="-modal"] .stg-drawer-head,
html body [id^="stg-"][id$="-modal"] .stg-co-head,
html body [id^="stg-"][id$="-modal"] .stg-co-tabs,
html body [id^="stg-"][id$="-modal"] .stg-co-body,
html body [id^="stg-"][id$="-modal"] .stg-co-foot,
html body [id^="stg-"][id$="-modal"] .stg-drawer-foot,
html body [id^="stg-"][id$="-modal"] .stg-iface-body,
html body [id^="stg-"][id$="-modal"] .stg-notif-foot,
html body [id^="stg-"][id$="-modal"] .stg-wf-studio-head,
html body [id^="stg-"][id$="-modal"] .stg-workflow-body,
html body [id^="stg-"][id$="-modal"] .modal-head,
html body [id^="stg-"][id$="-modal"] .modal-body,
html body [id^="stg-"][id$="-modal"] .modal-foot,
html body #stg-billing-modal .stg-modal-head,
html body #stg-billing-modal .stg-modal-body,
html body #stg-billing-modal .stg-modal-foot {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow: visible;
}
html body [id^="stg-"][id$="-modal"] h2,
html body [id^="stg-"][id$="-modal"] h3,
html body #stg-billing-modal h2 {
  overflow: visible !important;
  text-overflow: clip !important;
}
html body #stg-company-modal .stg-co-tabs {
  flex-wrap: wrap !important;
  overflow: visible !important;
}
html body [id^="stg-"][id$="-modal"] .stg-co-primary-card,
html body [id^="stg-"][id$="-modal"] .stg-co-directory-card,
html body [id^="stg-"][id$="-modal"] .stg-co-add-card,
html body [id^="stg-"][id$="-modal"] .stg-co-notifications-card,
html body [id^="stg-"][id$="-modal"] .stg-co-docs-card,
html body [id^="stg-"][id$="-modal"] .stg-co-primary-fields,
html body [id^="stg-"][id$="-modal"] .stg-co-doc-row,
html body [id^="stg-"][id$="-modal"] .stg-iface-mode,
html body [id^="stg-"][id$="-modal"] .stg-notif-section-list,
html body [id^="stg-"][id$="-modal"] .stg-usr-kpi,
html body [id^="stg-"][id$="-modal"] .stg-int-card,
html body [id^="stg-"][id$="-modal"] .stg-billing-plan,
html body [id^="stg-"][id$="-modal"] .stg-billing-kv li,
html body [id^="stg-"][id$="-modal"] .vd-aside,
html body [id^="stg-"][id$="-modal"] .stg-std-aside {
  background: var(--gce-glass-panel) !important;
  border-color: var(--gce-glass-edge) !important;
}
html body #stg-company-modal .stg-co-round-action,
html body #stg-company-modal .stg-co-worker-menu {
  background: var(--gce-canvas, #eeeae3) !important;
  border-color: var(--gce-glass-line) !important;
}
html.gce-lights-off [id^="stg-"][id$="-modal"],
html.gce-lights-off #stg-billing-modal.stg-modal {
  z-index: 2147483002 !important;
}

/* Last-win Sites week group header: dedicated compact ROW (line + centered
   Week N + line). Not in #, not a chip on STATUS. Site tr stays table-row. */
html body.gce-viewport-shell.gce-sites-mockup .stm-table,
html body.gce-viewport-shell.gce-sites-mockup .stm-table.stm-table--mockup {
  height: max-content !important;
  min-height: 0 !important;
  max-height: none !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group {
  display: table-row-group !important;
  height: auto !important;
  flex-grow: 0 !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-row,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-row-card {
  display: table-row !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-week-head,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group tr.stm-week-head {
  display: table-row !important;
  height: 2.25rem !important;
  max-height: none !important;
  min-height: 2.25rem !important;
  flex-grow: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: static !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-week-head > td,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody.stm-week-group tr.stm-week-head > td {
  display: table-cell !important;
  height: 2.25rem !important;
  max-height: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 0.5rem !important;
  overflow: hidden !important;
  vertical-align: middle !important;
  background: color-mix(in srgb, #dbeafe 55%, var(--gce-canvas, #eeeae3)) !important;
  border: 0 !important;
  border-bottom: 1px solid #93c5fd !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-week-head-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  left: auto !important;
  gap: 0.65rem !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 2.25rem !important;
  margin: 0 !important;
  padding: 0 0.45rem !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border-radius: 0 !important;
  z-index: auto !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-week-head-inner .stm-week-head-rule,
html body.gce-viewport-shell.gce-sites-mockup .stm-week-head-inner .stm-week-head-rule:first-child {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 2rem !important;
  height: 1px !important;
  max-height: 1px !important;
  opacity: 0.9 !important;
  background: linear-gradient(90deg, transparent, #93c5fd, #1e3a8a 58%) !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-week-head-inner .stm-week-head-rule:last-child {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 2rem !important;
  height: 1px !important;
  max-height: 1px !important;
  opacity: 0.9 !important;
  background: linear-gradient(90deg, #1e3a8a 42%, #93c5fd, transparent) !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-week-head-label,
html body.gce-viewport-shell.gce-sites-mockup .stm-week-head--quiet .stm-week-head-label {
  flex: 0 0 auto !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 0.35rem !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  color: #1e3a8a !important;
  white-space: nowrap !important;
}

html body.gce-viewport-shell .status-picker-menu,
html body.gce-viewport-shell .crew-picker-menu {
  position: fixed !important;
  z-index: 2147483003 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* Sticky Sites thead must stay under portaled pickers/notes and match canvas
   (main.css used #fff + z-index:8 — white island + covers Status). */
html body.gce-viewport-shell.gce-sites-mockup .stm-table thead th,
html body.gce-viewport-shell.gce-sites-mockup .stm-table thead {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  background: var(--gce-canvas, #eeeae3) !important;
  background-color: var(--gce-canvas, #eeeae3) !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-row,
html body.gce-viewport-shell.gce-sites-mockup .stm-table tbody tr.stm-row-card {
  position: relative !important;
  z-index: 1 !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-notes-cluster {
  background: var(--gce-canvas, #eeeae3) !important;
}

html body.gce-viewport-shell .fin-mock-table thead th,
html body.gce-viewport-shell .fin-ov-table thead th {
  background: var(--gce-canvas, #eeeae3) !important;
  background-color: var(--gce-canvas, #eeeae3) !important;
}

/* Safety Check-ins: last-win unlock. Nested flex:1 + overflow:hidden
   collapsed Today's Sites into a blocking white slab. Page-root scrolls.
   Do not restyle Sites table / week-band rows. */
html body.gce-viewport-shell.gce-safety-mockup .sfty-page,
html body.gce-viewport-shell.gce-safety-mockup .sfty-page--simple,
html body.gce-viewport-shell.gce-safety-mockup .sfty-review-page,
html body.gce-viewport-shell.gce-safety-mockup .sfty-review-page--v2,
html body.gce-viewport-shell.gce-safety-mockup .sfty-checkin-review {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
}

html body.gce-viewport-shell.gce-safety-mockup .sfty-body-grid,
html body.gce-viewport-shell.gce-safety-mockup .sfty-col,
html body.gce-viewport-shell.gce-safety-mockup .sfty-col-full,
html body.gce-viewport-shell.gce-safety-mockup .sfty-col > .sfty-card,
html body.gce-viewport-shell.gce-safety-mockup .sfty-col-full > .sfty-card,
html body.gce-viewport-shell.gce-safety-mockup .sfty-site-list,
html body.gce-viewport-shell.gce-safety-mockup .sfty-rv2-rail,
html body.gce-viewport-shell.gce-safety-mockup .sfty-rv2-main,
html body.gce-viewport-shell.gce-safety-mockup .sfty-rv2-body {
  flex: 0 0 auto !important;
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html body.gce-viewport-shell.gce-safety-mockup .sfty-kpi-value,
html body.gce-viewport-shell.gce-safety-mockup .sfty-page-head h2,
html body.gce-viewport-shell.gce-safety-mockup .sfty-card-head h3,
html body.gce-viewport-shell.gce-safety-mockup .sfty-hist-top b,
html body.gce-viewport-shell.gce-safety-mockup .sfty-site-card-body b {
  color: #0f172a !important;
}

/* Other department shells: milky canvas, no height:100% clip sheets.
   Sites week-band lives on table rows — leave those selectors alone. */
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .tsk-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .crw-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .eq-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .sto-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .stg-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .cal-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .msg-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .pnl-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .sfd-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .fin-page,
html body.gce-viewport-shell .main-page:not(.hidden) > [id$="-page-root"] > .fin-mockup-shell {
  background: transparent !important;
  background-color: transparent !important;
}

/* Personnel: page-root scrolls. Do not let .pnl-body flex:1 + .crw-page
   height:100% collapse the roster to a milky void. */
html body.gce-viewport-shell .main-page:not(.hidden) > #personnel-page-root > .pnl-page,
html body.gce-viewport-shell #personnel-page-root .pnl-body,
html body.gce-viewport-shell #personnel-page-root .pnl-tab-panel,
html body.gce-viewport-shell #personnel-crews-host,
html body.gce-viewport-shell #personnel-page-root .crw-page,
html body.gce-viewport-shell #personnel-page-root .crw-hub-v2 {
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

/* Sites chrome last-win: readable navy/ice-blue on milky canvas (#eeeae3).
   Not ink-on-cream (#e6e0d6 / #c4b8a8). Week bands stay table-row. */
html body.gce-viewport-shell .gce-market-banner {
  background: #dbeafe !important;
  border: 1px solid #93c5fd !important;
  box-shadow: none !important;
  color: #0f172a !important;
}
html body.gce-viewport-shell .gce-market-banner b {
  color: #1e3a8a !important;
}
html body.gce-viewport-shell .gce-market-banner span {
  color: #475569 !important;
}
html body.gce-viewport-shell .gce-market-banner-clear {
  background: #fff !important;
  border: 1px solid #93c5fd !important;
  color: #1e3a8a !important;
  box-shadow: none !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-icon {
  border-radius: 999px !important;
  box-shadow: none !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-total,
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-att {
  background: #dbeafe !important;
  color: #1e3a8a !important;
  border: 1px solid #93c5fd !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-active,
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-po {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-pending {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid #fdba74 !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-done {
  background: #dbeafe !important;
  color: #1e3a8a !important;
  border: 1px solid #93c5fd !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-kpi-warn {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fca5a5 !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-status-tab {
  background: #f8fafc !important;
  border: 1px solid #d8e0ea !important;
  color: #475569 !important;
  box-shadow: none !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-status-tab.active,
html body.gce-viewport-shell.gce-sites-mockup .stm-status-tab.active:hover {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-status-tab .stm-tab-count {
  background: #e2e8f0 !important;
  color: #334155 !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-status-tab.active .stm-tab-count {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-site-id-link,
html body.gce-viewport-shell.gce-sites-mockup .stm-id-cell .stm-site-id-link {
  color: #1e3a8a !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-site-id-link:hover {
  color: #1e40af !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-link-btn,
html body.gce-viewport-shell.gce-sites-mockup .stm-clear-toolbar {
  color: #1e3a8a !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-view-toggle {
  background: #f1f5f9 !important;
  border-color: #d8e0ea !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-view-btn.active {
  background: #1e3a8a !important;
  border-color: #1e3a8a !important;
  color: #fff !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-tab.active {
  color: #1e3a8a !important;
  border-bottom-color: #1e3a8a !important;
  background: transparent !important;
}

html body.gce-viewport-shell.gce-sites-mockup .stm-filter-chip {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
  color: #1e3a8a !important;
}

html[data-gce-mode="dark"] body.gce-viewport-shell.gce-sites-mockup .stm-week-head-label,
html[data-gce-mode="dark"] body.gce-viewport-shell.gce-sites-mockup .stm-week-head--quiet .stm-week-head-label {
  color: #bfdbfe !important;
}

/* Project Type: keep native multi-select clipped; portal menu stacks as a column. */
html body.gce-viewport-shell .stm-ms-filter {
  position: relative !important;
}
html body.gce-viewport-shell .stm-ms-filter .stm-ms-native,
html body.gce-viewport-shell #site-filter-project {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html body.gce-viewport-shell #stm-project-filter-menu.stm-ms-menu,
html body.gce-viewport-shell #stm-project-filter-menu.gce-dd-menu,
html body #stm-project-filter-menu,
html.gce-lights-off body #stm-project-filter-menu {
  position: fixed !important;
  z-index: 2147483003 !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 12rem !important;
  min-height: 0;
  isolation: isolate !important;
  opacity: 1 !important;
  color: #0f172a !important;
  /* Solid milky cream — never glass. Table/week bars must not show through. */
  background: #fffbf6 !important;
  background-color: #fffbf6 !important;
  background-image: none !important;
  border: 1px solid #d8e0ea !important;
  box-shadow: 0 16px 40px rgba(40, 36, 30, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 8px !important;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}
html body.gce-viewport-shell #stm-project-filter-menu.stm-ms-menu.show,
html body.gce-viewport-shell #stm-project-filter-menu.gce-dd-menu.show,
html body #stm-project-filter-menu.show,
html body #stm-project-filter-menu.show[hidden],
html.gce-lights-off body #stm-project-filter-menu.show {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  min-height: 9rem !important;
}
html body.gce-viewport-shell #stm-project-filter-menu .stm-ms-option,
html body #stm-project-filter-menu .stm-ms-option {
  display: flex !important;
  width: 100% !important;
  flex: 0 0 auto !important;
  min-height: 2.25rem !important;
  height: auto !important;
  background: #fffbf6 !important;
  color: #0f172a !important;
  opacity: 1 !important;
}
html body.gce-viewport-shell #stm-project-filter-menu .stm-ms-label,
html body #stm-project-filter-menu .stm-ms-label {
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
html body.gce-viewport-shell #stm-project-filter-menu .stm-ms-empty,
html body #stm-project-filter-menu .stm-ms-empty {
  color: #475569 !important;
  padding: 10px !important;
}
html body.gce-viewport-shell #stm-project-filter-menu .stm-ms-option:hover,
html body #stm-project-filter-menu .stm-ms-option:hover {
  background: #f3eee6 !important;
}
html body.gce-viewport-shell #stm-project-filter-menu .stm-ms-option.is-checked,
html body #stm-project-filter-menu .stm-ms-option.is-checked {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}
html body.gce-viewport-shell #stm-project-filter-menu .stm-ms-option.is-checked .stm-ms-label,
html body #stm-project-filter-menu .stm-ms-option.is-checked .stm-ms-label {
  color: #1e3a8a !important;
}

/* Sites toolbar: one row (filters + Schedule/More/view). Status lives on tabs, not a third dropdown. */
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  min-width: 0 !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-search-wrap {
  flex: 0 1 11.5rem !important;
  min-width: 8.25rem !important;
  max-width: 14rem !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-filter,
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-ms-filter {
  flex: 0 1 6.75rem !important;
  min-width: 5.5rem !important;
  max-width: 8.75rem !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-status-filter-hidden,
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar label[for="site-filter-status"] {
  display: none !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-spacer {
  flex: 1 1 0.5rem !important;
  min-width: 0.35rem !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.4rem !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-actions .stm-btn,
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-actions .stm-view-toggle,
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-actions .stm-columns-anchor,
html body.gce-viewport-shell.gce-sites-mockup .stm-table-toolbar .stm-toolbar-actions .stm-clear-toolbar {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
html body.gce-viewport-shell.gce-sites-mockup .stm-filter-chips .stm-clear-all-filters {
  display: none !important;
}

/* Last-win Status/Crew menus: solid cream. Glass (--gce-glass-panel / blur)
   let week-band + table show through. Must beat every earlier !important. */
html body.gce-viewport-shell #global-status-picker-menu,
html body.gce-viewport-shell #global-status-picker-menu.status-picker-menu,
html body.gce-viewport-shell #global-status-picker-menu.gce-dd-menu,
html body.gce-viewport-shell #global-status-picker-menu.status-picker-menu.gce-dd-menu.show,
html body #global-status-picker-menu,
html.gce-lights-off body #global-status-picker-menu,
html body.gce-viewport-shell .status-picker-menu,
html body.gce-viewport-shell .status-picker-menu.show,
html body.gce-viewport-shell #global-crew-picker-menu,
html body.gce-viewport-shell #global-crew-picker-menu.crew-picker-menu,
html body.gce-viewport-shell #global-crew-picker-menu.gce-dd-menu,
html body.gce-viewport-shell #global-crew-picker-menu.crew-picker-menu.gce-dd-menu.show,
html body #global-crew-picker-menu,
html.gce-lights-off body #global-crew-picker-menu,
html body.gce-viewport-shell .crew-picker-menu,
html body.gce-viewport-shell .crew-picker-menu.show {
  position: fixed !important;
  z-index: 2147483003 !important;
  isolation: isolate !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  color: #0f172a !important;
  background: #fffbf6 !important;
  background-color: #fffbf6 !important;
  background-image: none !important;
  border: 1px solid #d8e0ea !important;
  box-shadow: 0 16px 40px rgba(40, 36, 30, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.gce-viewport-shell #global-status-picker-menu .status-picker-option,
html body #global-status-picker-menu .status-picker-option,
html body.gce-viewport-shell #global-crew-picker-menu .crew-picker-option,
html body #global-crew-picker-menu .crew-picker-option,
html body.gce-viewport-shell #global-crew-picker-menu .crew-picker-search,
html body #global-crew-picker-menu .crew-picker-search {
  color: #0f172a !important;
  background-color: #fffbf6 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html body.gce-viewport-shell #global-status-picker-menu .status-picker-option:hover,
html body #global-status-picker-menu .status-picker-option:hover,
html body.gce-viewport-shell #global-crew-picker-menu .crew-picker-option:hover,
html body #global-crew-picker-menu .crew-picker-option:hover {
  background: #f3eee6 !important;
  color: #0f172a !important;
}
html body.gce-viewport-shell #global-status-picker-menu .status-picker-option.active,
html body #global-status-picker-menu .status-picker-option.active {
  background: #1e3a8a !important;
  color: #fff !important;
}
html body.gce-viewport-shell #global-status-picker-menu .status-picker-option.active .status-picker-hint,
html body #global-status-picker-menu .status-picker-option.active .status-picker-hint {
  color: rgba(255, 255, 255, 0.85) !important;
}
html body.gce-viewport-shell #global-crew-picker-menu .crew-picker-option.active,
html body #global-crew-picker-menu .crew-picker-option.active {
  background: #dcfce7 !important;
  color: #166534 !important;
}
html body.gce-viewport-shell #global-crew-picker-menu .crew-picker-option small,
html body #global-crew-picker-menu .crew-picker-option small,
html body.gce-viewport-shell #global-status-picker-menu .status-picker-hint,
html body #global-status-picker-menu .status-picker-hint {
  color: #475569 !important;
}
