/*
 * Stronghold canonical visual layer.
 *
 * This stylesheet loads last and is the single source of truth for the global
 * palette, application shell, shared surfaces, and responsive visual system.
 * Add changes to the relevant named section instead of appending another
 * "final" theme block. Run `npm run qa:css` after every cascade change.
 */

:root {

  

  

  

  

  
  --cm-blue: #1f6fd1;
  --cm-blue-soft: #eaf3ff;
  --cm-orange: #e87918;
  --cm-orange-soft: #fff2e5;
  --cm-sky: #48a4e8;
  --cm-green: #24934d;
  --cm-green-soft: #eaf7ef;
  --cm-red: #d63232;
  --cm-red-soft: #fff0f0;
  --cm-gold: #d9a029;
  --cm-gray: #7b8790;
  --cm-shadow: 0 8px 24px rgba(8, 25, 35, 0.10);
  --cm-shadow-soft: 0 3px 12px rgba(8, 25, 35, 0.07);
}

/* Unified operational queue: one predictable place for every active ticket. */
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="workQueueView"] {
  --nav-icon: url("./icons/list-todo.svg");
}

html body.command-map-theme:not(.login-active) .sidebar .work-queue-nav {
  border-color: #315165 !important;
  background: #122f3d !important;
}

html body.command-map-theme:not(.login-active) .sidebar .work-queue-nav-count {
  position: absolute;
  top: 5px;
  right: 7px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 1px solid #59717e;
  border-radius: 8px;
  background: #edf4f7;
  color: #173746;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
}

html body.command-map-theme:not(.login-active) .sidebar .work-queue-nav-count[hidden] {
  display: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView {
  color: #182c36;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-shell {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px 16px;
  border: 1px solid #bccbd2;
  border-left: 4px solid #2f74b5;
  border-radius: 6px;
  background: #f7fafb;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head > div {
  min-width: 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head .eyebrow {
  margin: 0 0 4px;
  color: #2f6798;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head h2 {
  margin: 0;
  color: #152d38;
  font-size: 1.48rem;
  line-height: 1.08;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head p:last-child {
  max-width: 800px;
  margin: 6px 0 0;
  color: #5c6f78;
  font-size: 0.83rem;
  line-height: 1.35;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-create {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 154px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 15px !important;
  gap: 7px !important;
  border: 1px solid #2c5267 !important;
  border-left: 3px solid #4f8bc5 !important;
  border-radius: 5px !important;
  background: #173746 !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-create img {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 10px 12px !important;
  gap: 2px 8px !important;
  overflow: hidden !important;
  border: 1px solid #c4d1d7 !important;
  border-top: 3px solid #8094a0 !important;
  border-radius: 6px !important;
  background: #f8fafb !important;
  color: #223944 !important;
  text-align: left !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric.metric-attention { border-top-color: #e0a12f !important; }
html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric.metric-estimate { border-top-color: #d0a33c !important; }
html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric.metric-service { border-top-color: #30a9c0 !important; }
html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric.metric-scheduled { border-top-color: #4d84bd !important; }
html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric.metric-upcoming { border-top-color: #4b9a68 !important; }

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric:hover,
html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric.active {
  border-color: #7995a4 !important;
  background: #edf4f7 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metric > span {
  min-width: 0;
  color: #3b525e;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metric > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #162f3b;
  font-size: 1.46rem;
  line-height: 1;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metric > small {
  color: #72828a;
  font-size: 0.62rem;
  line-height: 1.18;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  padding: 9px;
  border: 1px solid #c5d1d7;
  border-radius: 6px;
  background: #eef3f5;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters button {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
  gap: 6px !important;
  border: 1px solid #b9c7cd !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #465b65 !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters button.active {
  border-color: #385f74 !important;
  background: #244959 !important;
  color: #ffffff !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters button span {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 8px;
  background: #dfe8ec;
  color: #304c59;
  font-size: 0.58rem;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters button.active span {
  background: #ffffff;
  color: #244959;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #b8c8cf;
  border-radius: 5px;
  background: #ffffff;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-search img {
  width: 15px;
  height: 15px;
  opacity: 0.62;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-search input {
  width: 100% !important;
  min-width: 0 !important;
  height: 31px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #203640 !important;
  font-size: 0.76rem !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-list {
  display: grid;
  gap: 7px;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row {
  --queue-tone: #6f8793;
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(260px, 1.5fr) minmax(120px, 0.65fr) minmax(145px, 0.75fr) minmax(125px, 0.65fr) 74px;
  align-items: center;
  gap: 13px;
  min-height: 96px;
  padding: 10px 10px 10px 13px;
  overflow: hidden;
  border: 1px solid #c6d1d6;
  border-left: 4px solid var(--queue-tone);
  border-radius: 6px;
  background: #f9fbfc;
  box-shadow: none;
  cursor: pointer;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row:focus-within {
  border-color: #7f9aa7;
  background: #f2f7f9;
  outline: 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row.tone-estimate { --queue-tone: #d0a33c; }
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row.tone-service { --queue-tone: #30a9c0; }
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row.tone-inspection { --queue-tone: #4d84bd; }
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row.tone-prebid { --queue-tone: #7b8790; }
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row.tone-upcoming { --queue-tone: #4b9a68; }

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row.needs-attention::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: #e0a12f;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-kind {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-kind > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #b9c8cf;
  border-radius: 6px;
  background: #eaf0f3;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-kind img {
  width: 17px;
  height: 17px;
  opacity: 0.82;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-kind small {
  color: #586d77;
  font-size: 0.59rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project {
  min-width: 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project > div:first-child strong {
  color: #183745;
  font-size: 0.72rem;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project > div:first-child span {
  padding: 3px 6px;
  border: 1px solid #c1ced4;
  border-radius: 8px;
  background: #edf2f4;
  color: #516670;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project h3 {
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
  color: #142e3a;
  font-size: 0.92rem;
  line-height: 1.14;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #657780;
  font-size: 0.68rem;
  line-height: 1.22;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project p b {
  margin: 0 3px;
  color: #a2afb5;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-flags,
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-clear-state {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-flags span {
  padding: 3px 6px;
  border: 1px solid #e3c078;
  border-radius: 8px;
  background: #fff8e9;
  color: #745514;
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-clear-state {
  color: #3b8054;
  font-size: 0.6rem;
  font-weight: 800;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail,
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-destination {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail small,
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-destination small {
  color: #73858d;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail strong,
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-destination strong {
  overflow-wrap: anywhere;
  color: #253d48;
  font-size: 0.72rem;
  line-height: 1.18;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail > span {
  color: #6d7f87;
  font-size: 0.61rem;
  line-height: 1.15;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail strong.date-late { color: #af3c35; }
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail strong.date-soon { color: #8a6415; }
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail strong.date-missing { color: #8a6415; }

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-open {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
  width: 68px !important;
  min-width: 68px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 8px !important;
  gap: 4px !important;
  border: 1px solid #78909c !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #264552 !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-open img {
  width: 12px;
  height: 12px;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 190px;
  padding: 36px 20px;
  border: 1px dashed #b8c7ce;
  border-radius: 6px;
  background: #f8fafb;
  text-align: center;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-empty img {
  width: 28px;
  height: 28px;
  opacity: 0.56;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-empty h3,
html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-empty p {
  margin: 0;
}

html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-empty p {
  color: #687b84;
  font-size: 0.76rem;
}

@media (max-width: 1180px) {
  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metrics {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-search {
    max-width: 430px;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row {
    grid-template-columns: 70px minmax(220px, 1.3fr) minmax(115px, 0.6fr) minmax(135px, 0.7fr) 68px;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-destination {
    display: none;
  }
}

@media (max-width: 760px) {
  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 13px;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-head h2 {
    font-size: 1.25rem;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-create {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-metric {
    height: 70px !important;
    min-height: 70px !important;
    padding: 8px 9px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-metrics button:last-child {
    grid-column: 1 / -1;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-toolbar {
    padding: 8px;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-filters button {
    justify-content: space-between !important;
    width: 100% !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-search {
    width: 100%;
    max-width: none;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-row {
    grid-template-columns: 54px minmax(0, 1fr) 62px;
    gap: 9px;
    min-height: 0;
    padding: 11px 9px 11px 10px;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-kind {
    grid-column: 1;
    grid-row: 1;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-kind small {
    font-size: 0.52rem;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-project {
    grid-column: 2;
    grid-row: 1;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) button.work-queue-open {
    grid-column: 3;
    grid-row: 1;
    width: 58px !important;
    min-width: 58px !important;
    padding: 0 5px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-detail {
    grid-row: 2;
    padding: 8px;
    border: 1px solid #d5dfe3;
    border-radius: 5px;
    background: #ffffff;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-date {
    grid-column: 1 / 2;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .work-queue-owner {
    grid-column: 2 / 4;
  }
}

html body.command-map-theme:not(.login-active) {
  background: var(--cm-canvas) !important;
  color: var(--cm-ink) !important;
  letter-spacing: 0 !important;
}

html body.command-map-theme:not(.login-active) *,
html body.command-map-theme:not(.login-active) *::before,
html body.command-map-theme:not(.login-active) *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html body.command-map-theme:not(.login-active) h1,
html body.command-map-theme:not(.login-active) h2,
html body.command-map-theme:not(.login-active) h3,
html body.command-map-theme:not(.login-active) h4,
html body.command-map-theme:not(.login-active) strong,
html body.command-map-theme:not(.login-active) b,
html body.command-map-theme:not(.login-active) dt {
  color: var(--cm-ink);
}

html body.command-map-theme:not(.login-active) p,
html body.command-map-theme:not(.login-active) small,
html body.command-map-theme:not(.login-active) dd,
html body.command-map-theme:not(.login-active) label,
html body.command-map-theme:not(.login-active) .helper {
  color: var(--cm-muted);
}

/* Application shell */
html body:not(.login-active) .app-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 1000 !important;
  display: grid !important;
  grid-template-columns: 190px minmax(220px, 350px) 48px minmax(535px, 1fr) 190px !important;
  grid-template-rows: 72px !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 14px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid #1e3947 !important;
  background: var(--cm-shell) !important;
  box-shadow: 0 4px 16px rgba(4, 16, 23, 0.22) !important;
}

html body:not(.login-active) .app-header .header-brand,
html body:not(.login-active) .app-header .header-divider {
  display: none !important;
}

html body:not(.login-active) .app-header .header-logo-shell {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 180px !important;
  height: 66px !important;
  margin: 0 !important;
  padding: 4px 10px 4px 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body:not(.login-active) .app-header .header-logo-shell a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
}

html body:not(.login-active) .app-header .header-logo {
  display: block !important;
  width: 170px !important;
  max-width: 170px !important;
  height: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
  transform: none !important;
}

html body:not(.login-active) .app-header #loginCard.login-card {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

html body:not(.login-active) .app-header .search-box {
  position: relative !important;
  width: 100% !important;
}

html body:not(.login-active) .app-header #globalSearch {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px 0 40px !important;
  border: 1px solid #39505d !important;
  border-radius: 5px !important;
  background: #102733 url("./icons/search.svg") 13px center / 18px 18px no-repeat !important;
  color: #f7fbfd !important;
  box-shadow: none !important;
}

html body:not(.login-active) .app-header #globalSearch::placeholder {
  color: #91a3ad !important;
}

html body:not(.login-active) .app-header #globalSearch:focus {
  border-color: #6aa8ef !important;
  outline: 2px solid rgba(106, 168, 239, 0.24) !important;
}

html body:not(.login-active) .app-header .header-tools-menu {
  grid-column: 3 !important;
  grid-row: 1 !important;
  position: relative !important;
  inset: auto !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  transform: none !important;
}

html body:not(.login-active) .app-header .header-tools-toggle {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 1px solid #405866 !important;
  border-radius: 5px !important;
  background: #132e3c !important;
  box-shadow: none !important;
  transform: none !important;
}

html body:not(.login-active) .app-header .header-tools-bars,
html body:not(.login-active) .app-header .header-tools-bars::before,
html body:not(.login-active) .app-header .header-tools-bars::after {
  background: #dce7ec !important;
}

html body:not(.login-active) .app-header .header-tools-panel {
  top: 52px !important;
  left: 0 !important;
  right: auto !important;
  width: 250px !important;
  padding: 10px !important;
  border: 1px solid #324c5a !important;
  border-radius: 6px !important;
  background: #102733 !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

html body:not(.login-active) .app-header .header-tools-title {
  color: #8fa6b2 !important;
}

html body:not(.login-active) .app-header .mobile-workflow-links {
  display: none;
}

html body:not(.login-active) .app-header .header-tools-panel .top-link {
  justify-content: flex-start !important;
  min-height: 36px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: #e7eef2 !important;
  box-shadow: none !important;
}

html body:not(.login-active) .app-header .header-tools-panel .top-link:hover {
  border-color: #365566 !important;
  background: #173746 !important;
}

html body:not(.login-active) .app-header .header-workflow-links {
  grid-column: 4 !important;
  grid-row: 1 !important;
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(92px, 1fr)) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

html body:not(.login-active) .app-header .header-chart-links,
html body:not(.login-active) .app-header .header-stage-links {
  display: contents !important;
}

html body:not(.login-active) .app-header .header-chart-divider {
  display: none !important;
}

html body:not(.login-active) .app-header .header-chart-link.top-link {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  overflow: hidden !important;
  border: 1px solid #35505e !important;
  border-left: 3px solid var(--cm-blue) !important;
  border-radius: 5px !important;
  background: #112b38 !important;
  color: #f5f9fb !important;
  box-shadow: none !important;
  transform: none !important;
}

html body:not(.login-active) .app-header .header-chart-link.service,
html body:not(.login-active) .app-header .header-chart-link.service-opportunities {
  border-left-color: var(--cm-orange) !important;
}

html body:not(.login-active) .app-header .header-chart-link.pipeline {
  border-left-color: var(--cm-gold) !important;
}

html body:not(.login-active) .app-header .header-chart-link.approved {
  border-left-color: var(--cm-green) !important;
}

html body:not(.login-active) .app-header .header-chart-link:hover,
html body:not(.login-active) .app-header .header-chart-link:focus-visible {
  border-color: #5b7a8a !important;
  background: #193a4a !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.20) !important;
  transform: translateY(-1px) !important;
}

html body:not(.login-active) .app-header .header-nav-icon {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  border: 1px solid #426270 !important;
  border-radius: 4px !important;
  background: #173a49 !important;
}

html body:not(.login-active) .app-header .header-nav-icon svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #dceaf0 !important;
  fill: none !important;
}

html body:not(.login-active) .app-header .header-nav-text {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  color: #f3f8fa !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

html body:not(.login-active) .app-header .header-utility-links {
  grid-column: 5 !important;
  grid-row: 1 !important;
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

html body:not(.login-active) .app-header button.header-icon-button,
html body:not(.login-active) .app-header button.header-user-toggle {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #dbe7ec !important;
  box-shadow: none !important;
  transform: none !important;
}

html body:not(.login-active) .app-header button.header-icon-button:hover,
html body:not(.login-active) .app-header button.header-user-toggle:hover {
  background: #173746 !important;
  color: #ffffff !important;
}

html body:not(.login-active) .app-header .header-icon-wrap,
html body:not(.login-active) .app-header .header-user-icon {
  width: 21px !important;
  height: 21px !important;
}

html body:not(.login-active) .app-header .header-icon-wrap svg,
html body:not(.login-active) .app-header .header-user-icon svg {
  width: 21px !important;
  height: 21px !important;
  stroke: currentColor !important;
  fill: none !important;
}

html body:not(.login-active) .app-header .header-icon-badge {
  top: -2px !important;
  right: -2px !important;
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 4px !important;
  border: 2px solid var(--cm-shell) !important;
  background: var(--cm-red) !important;
  color: #ffffff !important;
  font-size: 0.63rem !important;
}

html body:not(.login-active) .app-header .header-user-status,
html body:not(.login-active) .app-header .header-user-arrow {
  display: none !important;
}

html body:not(.login-active) .app-header .header-user-card {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
}

html body:not(.login-active) .app-header .header-user-details {
  top: 44px !important;
  right: 0 !important;
  width: 190px !important;
  padding: 12px !important;
  border: 1px solid #344e5c !important;
  border-radius: 6px !important;
  background: #102733 !important;
  color: #ffffff !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30) !important;
}

html body:not(.login-active) .app-header .header-user-copy {
  color: #ffffff !important;
}

html body:not(.login-active) .app-header .header-presence-indicator {
  max-width: 58px !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 4px 7px !important;
  overflow: hidden !important;
  border: 1px solid #35505e !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #bcd0d9 !important;
  font-size: 0.62rem !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .app-shell {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: calc(100vh - 72px) !important;
  margin: 72px 0 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: var(--cm-canvas) !important;
}

html body.command-map-theme:not(.login-active) .sidebar {
  position: sticky !important;
  top: 72px !important;
  z-index: 90 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 4px !important;
  width: 112px !important;
  min-width: 112px !important;
  height: calc(100vh - 72px) !important;
  margin: 0 !important;
  padding: 8px 7px 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 0 !important;
  border-right: 1px solid #183746 !important;
  background: var(--cm-shell-2) !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .sidebar-module-label {
  margin: 10px 4px 3px !important;
  color: #77909c !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

html body.command-map-theme:not(.login-active) .sidebar .nav-link {
  --nav-icon: url("./icons/folder-open.svg");
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 56px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 7px 3px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #d5e1e7 !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) .sidebar .nav-link::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: var(--nav-icon) center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

html body.command-map-theme:not(.login-active) .sidebar .nav-link:hover,
html body.command-map-theme:not(.login-active) .sidebar .nav-link:focus-visible,
html body.command-map-theme:not(.login-active) .sidebar .nav-link.active {
  border-color: #29495a !important;
  background: #153746 !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 var(--cm-blue) !important;
}

html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-open-project-wizard] { --nav-icon: url("./icons/plus.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-open-task-dialog] { --nav-icon: url("./icons/list-todo.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="soldFinancialsView"] { --nav-icon: url("./icons/chart-no-axes-combined.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="customersView"] { --nav-icon: url("./icons/contact.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="recentPropertiesView"] { --nav-icon: url("./icons/building-2.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="fileLibraryView"] { --nav-icon: url("./icons/folder-open.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="fleetView"] { --nav-icon: url("./icons/truck.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="subcontractorsView"] { --nav-icon: url("./icons/hard-hat.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="serviceOpportunitiesView"] { --nav-icon: url("./icons/wrench.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="scheduledInspectionsView"] { --nav-icon: url("./icons/clipboard-list.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="scheduledPrebidsView"] { --nav-icon: url("./icons/file-text.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="completedInspectionsView"] { --nav-icon: url("./icons/circle-check-big.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="completedWorkView"] { --nav-icon: url("./icons/history.svg"); }
html body.command-map-theme:not(.login-active) .sidebar .nav-link[data-view="declinedBidsView"] { --nav-icon: url("./icons/triangle-alert.svg"); }

html body.command-map-theme:not(.login-active) .workspace {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: calc(100vh - 72px) !important;
  margin: 0 !important;
  padding: 14px !important;
  overflow: visible !important;
  background: var(--cm-canvas) !important;
}

html body.command-map-theme:not(.login-active) .workspace-topbar {
  position: relative !important;
  z-index: 5 !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}

html body.command-map-theme:not(.login-active) .workspace > .view {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) #homeView,
html body.command-map-theme:not(.login-active) #homeFeed {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Shared surfaces and controls */
html body.command-map-theme:not(.login-active) .record-card,
html body.command-map-theme:not(.login-active) .stat-card,
html body.command-map-theme:not(.login-active) .table-wrap,
html body.command-map-theme:not(.login-active) .folder-item,
html body.command-map-theme:not(.login-active) .dialog-panel,
html body.command-map-theme:not(.login-active) .project-dialog-card,
html body.command-map-theme:not(.login-active) .service-command-head,
html body.command-map-theme:not(.login-active) .service-kpi-strip article,
html body.command-map-theme:not(.login-active) .sold-financial-table-card,
html body.command-map-theme:not(.login-active) .sold-financial-editor-card {
  border-color: var(--cm-line) !important;
  border-radius: 6px !important;
  background: var(--cm-panel) !important;
  color: var(--cm-ink) !important;
  box-shadow: var(--cm-shadow-soft) !important;
}

html body.command-map-theme:not(.login-active) .section-heading,
html body.command-map-theme:not(.login-active) .toolbar,
html body.command-map-theme:not(.login-active) .project-title-card,
html body.command-map-theme:not(.login-active) .property-title-card {
  border-color: var(--cm-line) !important;
  border-left: 4px solid var(--cm-blue) !important;
  border-radius: 6px !important;
  background: var(--cm-panel) !important;
  color: var(--cm-ink) !important;
  box-shadow: var(--cm-shadow-soft) !important;
}

html body.command-map-theme:not(.login-active) input,
html body.command-map-theme:not(.login-active) select,
html body.command-map-theme:not(.login-active) textarea {
  border: 1px solid var(--cm-line-strong) !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) input:focus,
html body.command-map-theme:not(.login-active) select:focus,
html body.command-map-theme:not(.login-active) textarea:focus {
  border-color: var(--cm-blue) !important;
  outline: 3px solid rgba(31, 111, 209, 0.15) !important;
}

html body.command-map-theme:not(.login-active) .app-shell button:not(.nav-link):not(.thumbnail-button):not(.video-thumbnail-button):not(.employee-photo-trigger):not(.deficiency-thumb):not(.preview-photo-nav-btn):not(.deficiency-photo-arrow):not(.deficiency-photo-delete):not(.close-x):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(.sold-financial-project-link):not(.section-report-page-tab):not(.command-metric):not(.command-dispatch-summary):not([data-home-command-project]):not(.command-rail-link),
html body.command-map-theme:not(.login-active) dialog button:not(.thumbnail-button):not(.video-thumbnail-button):not(.employee-photo-trigger):not(.deficiency-thumb):not(.preview-photo-nav-btn):not(.deficiency-photo-arrow):not(.deficiency-photo-delete):not(.close-x),
html body.command-map-theme:not(.login-active) .button-link,
html body.command-map-theme:not(.login-active) input[type="file"]::file-selector-button {
  min-height: 36px !important;
  padding: 8px 14px !important;
  border: 1px solid #183f58 !important;
  border-radius: 5px !important;
  background: #153e58 !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  box-shadow: 0 3px 8px rgba(8, 25, 35, 0.12) !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) .app-shell button.ghost,
html body.command-map-theme:not(.login-active) .app-shell button.secondary,
html body.command-map-theme:not(.login-active) dialog button.ghost,
html body.command-map-theme:not(.login-active) dialog button.secondary {
  border-color: var(--cm-line-strong) !important;
  background: #ffffff !important;
  color: #21465d !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .app-shell button:hover,
html body.command-map-theme:not(.login-active) dialog button:hover,
html body.command-map-theme:not(.login-active) .button-link:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
}

html body.command-map-theme:not(.login-active) .app-shell button:active,
html body.command-map-theme:not(.login-active) dialog button:active {
  transform: translateY(0) !important;
}

html body.command-map-theme:not(.login-active) .app-shell button.danger,
html body.command-map-theme:not(.login-active) .app-shell button.delete-btn,
html body.command-map-theme:not(.login-active) .app-shell button.employee-delete-btn,
html body.command-map-theme:not(.login-active) .app-shell button.section-delete-btn,
html body.command-map-theme:not(.login-active) .app-shell button.file-media-delete-btn,
html body.command-map-theme:not(.login-active) dialog button.danger,
html body.command-map-theme:not(.login-active) dialog button.delete-btn {
  border-color: #b92424 !important;
  background: var(--cm-red) !important;
  color: #ffffff !important;
}

html body.command-map-theme:not(.login-active) .app-shell #backBtn {
  min-width: 74px !important;
  width: 74px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-color: var(--cm-line-strong) !important;
  background: #ffffff !important;
  color: #21465d !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .tabs,
html body.command-map-theme:not(.login-active) .section-report-page-tabs,
html body.command-map-theme:not(.login-active) .service-board-filters {
  gap: 6px !important;
}

html body.command-map-theme:not(.login-active) .tab,
html body.command-map-theme:not(.login-active) .section-report-page-tab,
html body.command-map-theme:not(.login-active) .service-board-filters button {
  border: 1px solid var(--cm-line) !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #425b69 !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .tab.active,
html body.command-map-theme:not(.login-active) .section-report-page-tab.active,
html body.command-map-theme:not(.login-active) .service-board-filters button.active {
  border-color: var(--cm-blue) !important;
  background: var(--cm-blue-soft) !important;
  color: #145aad !important;
  box-shadow: inset 0 -3px 0 var(--cm-blue) !important;
}

html body.command-map-theme:not(.login-active) table {
  border-collapse: collapse !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
}

html body.command-map-theme:not(.login-active) th {
  border-color: #274352 !important;
  background: #183443 !important;
  color: #f6fafb !important;
}

html body.command-map-theme:not(.login-active) td {
  border-color: var(--cm-line) !important;
  background: #ffffff !important;
  color: #344a57 !important;
}

html body.command-map-theme:not(.login-active) tbody tr:nth-child(even) td {
  background: #f7f9fa !important;
}

html body.command-map-theme:not(.login-active) tbody tr:hover td {
  background: #eef5fb !important;
}

html body.command-map-theme:not(.login-active) dialog,
html body.command-map-theme:not(.login-active) .modal,
html body.command-map-theme:not(.login-active) .app-prompt-dialog {
  border-color: var(--cm-line-strong) !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  box-shadow: 0 24px 70px rgba(5, 19, 28, 0.30) !important;
}

html body.command-map-theme:not(.login-active) dialog::backdrop,
html body.command-map-theme:not(.login-active) .modal-backdrop {
  background: rgba(5, 17, 24, 0.62) !important;
  backdrop-filter: blur(2px) !important;
}

/* Quiet search and information rows */
html body.command-map-theme:not(.login-active) .search-results {
  border: 1px solid var(--cm-line-strong) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: 0 18px 46px rgba(7, 24, 34, 0.20) !important;
}

html body.command-map-theme:not(.login-active) .search-result {
  border: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .search-result:hover,
html body.command-map-theme:not(.login-active) .search-result:focus-visible {
  background: #eef5fb !important;
}

html body.command-map-theme:not(.login-active) .search-result-type {
  color: var(--cm-blue) !important;
}

html body.command-map-theme:not(.login-active) .search-result-copy strong {
  color: var(--cm-ink) !important;
}

html body.command-map-theme:not(.login-active) .search-result-copy small {
  color: var(--cm-muted) !important;
}

/* Homepage: Option 3 Production Command Map */
html body.command-map-theme:not(.login-active) .home-command-dashboard {
  display: grid;
  grid-template-rows: auto minmax(500px, 1fr);
  width: 100%;
  min-width: 0;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  border: 1px solid var(--cm-line-strong);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--cm-shadow);
}

html body.command-map-theme:not(.login-active) .home-command-dashboard:has(> .estimate-launch-strip) {
  grid-template-rows: auto auto minmax(500px, 1fr);
}

html body.command-map-theme:not(.login-active) .command-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 86px;
  border-bottom: 1px solid var(--cm-line);
  background: #ffffff;
}

html body.command-map-theme:not(.login-active) .command-metric {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 86px !important;
  margin: 0 !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-right: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  text-align: left !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) .command-metric:last-child {
  border-right: 0 !important;
}

html body.command-map-theme:not(.login-active) .command-metric:hover {
  background: #f6f9fb !important;
}

html body.command-map-theme:not(.login-active) .command-metric-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cm-blue);
}

html body.command-map-theme:not(.login-active) .command-metric.service .command-metric-icon { background: var(--cm-orange); }
html body.command-map-theme:not(.login-active) .command-metric.crew .command-metric-icon { background: var(--cm-green); }
html body.command-map-theme:not(.login-active) .command-metric.inspection .command-metric-icon { background: var(--cm-sky); }

html body.command-map-theme:not(.login-active) .command-metric-icon img {
  width: 23px;
  height: 23px;
  filter: brightness(0) invert(1);
}

html body.command-map-theme:not(.login-active) .command-metric > span:last-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 10px;
}

html body.command-map-theme:not(.login-active) .command-metric small {
  grid-column: 1 / -1;
  color: #4f606c !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

html body.command-map-theme:not(.login-active) .command-metric strong {
  color: #0c1820 !important;
  font-size: 2rem;
  line-height: 1;
}

html body.command-map-theme:not(.login-active) .command-metric em {
  align-self: center;
  color: var(--cm-muted);
  font-size: 0.7rem;
  font-style: normal;
}

html body.command-map-theme:not(.login-active) .command-map-layout {
  display: grid;
  grid-template-columns: 278px minmax(420px, 1fr) 300px;
  min-width: 0;
  min-height: 500px;
}

html body.command-map-theme:not(.login-active) .command-dispatch-rail,
html body.command-map-theme:not(.login-active) .command-intelligence-rail {
  min-width: 0;
  overflow: auto;
  background: #ffffff;
}

html body.command-map-theme:not(.login-active) .command-dispatch-rail {
  border-right: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-intelligence-rail {
  border-left: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-rail-heading,
html body.command-map-theme:not(.login-active) .command-intelligence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html body.command-map-theme:not(.login-active) .command-rail-heading {
  min-height: 68px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-rail-heading span {
  color: var(--cm-blue);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

html body.command-map-theme:not(.login-active) .command-rail-heading h2,
html body.command-map-theme:not(.login-active) .command-intelligence-heading h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}

html body.command-map-theme:not(.login-active) .command-role-select {
  display: grid;
  gap: 2px;
  color: var(--cm-muted) !important;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

html body.command-map-theme:not(.login-active) .command-role-select select {
  width: 104px;
  height: 30px;
  min-height: 30px;
  padding: 3px 22px 3px 7px !important;
  font-size: 0.7rem;
}

html body.command-map-theme:not(.login-active) .command-role-pill {
  padding: 5px 8px;
  border: 1px solid var(--cm-line);
  border-radius: 4px;
  background: var(--cm-panel-soft);
  color: #435a67 !important;
}

html body.command-map-theme:not(.login-active) .command-rail-kicker {
  margin: 0;
  padding: 12px 14px 6px;
  color: var(--cm-blue) !important;
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
}

html body.command-map-theme:not(.login-active) .command-rail-kicker.upcoming {
  padding-top: 16px;
  border-top: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-dispatch-groups {
  padding: 0 10px 10px;
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto 14px !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 8px 3px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  text-align: left !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary:hover {
  background: #f5f8fa !important;
}

html body.command-map-theme:not(.login-active) .command-dispatch-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cm-blue-soft);
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary.service .command-dispatch-icon { background: var(--cm-orange-soft); }
html body.command-map-theme:not(.login-active) .command-dispatch-summary.inspection .command-dispatch-icon { background: #eaf6fe; }
html body.command-map-theme:not(.login-active) .command-dispatch-summary.prebid .command-dispatch-icon { background: #eef1f3; }

html body.command-map-theme:not(.login-active) .command-dispatch-icon img {
  width: 16px;
  height: 16px;
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary strong,
html body.command-map-theme:not(.login-active) .command-upcoming-list strong {
  font-size: 0.76rem;
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary small,
html body.command-map-theme:not(.login-active) .command-upcoming-list small {
  font-size: 0.67rem;
}

html body.command-map-theme:not(.login-active) .command-dispatch-summary > b {
  font-size: 0.9rem;
}

html body.command-map-theme:not(.login-active) .command-chevron,
html body.command-map-theme:not(.login-active) .command-upcoming-list > button > img,
html body.command-map-theme:not(.login-active) .command-rail-link img {
  width: 14px;
  height: 14px;
  opacity: 0.62;
}

html body.command-map-theme:not(.login-active) .command-upcoming-list {
  padding: 0 10px;
}

html body.command-map-theme:not(.login-active) .command-upcoming-list > button,
html body.command-map-theme:not(.login-active) .command-risk-list > button {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 14px !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 56px !important;
  padding: 8px 3px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  text-align: left !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) .command-upcoming-list > button.active,
html body.command-map-theme:not(.login-active) .command-upcoming-list > button:hover,
html body.command-map-theme:not(.login-active) .command-risk-list > button.active,
html body.command-map-theme:not(.login-active) .command-risk-list > button:hover {
  background: var(--cm-blue-soft) !important;
}

html body.command-map-theme:not(.login-active) .command-upcoming-list time {
  display: grid;
  place-items: center;
  padding-right: 8px;
  border-right: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-upcoming-list time b {
  color: var(--cm-muted);
  font-size: 0.58rem;
}

html body.command-map-theme:not(.login-active) .command-upcoming-list time strong {
  font-size: 1.15rem;
}

html body.command-map-theme:not(.login-active) .command-upcoming-list > button > span {
  display: grid;
  gap: 2px;
}

html body.command-map-theme:not(.login-active) .command-rail-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: calc(100% - 20px) !important;
  min-height: 38px !important;
  margin: 8px 10px !important;
  padding: 7px 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--cm-blue) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .command-map-stage {
  position: relative;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  background: #cad5db;
}

html body.command-map-theme:not(.login-active) .command-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0 !important;
  border-radius: 0 !important;
  background: #cad5db url("./assets/command-map-fallback.webp") center / cover no-repeat !important;
}

html body.command-map-theme:not(.login-active) .command-map-title {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 5px;
  background: rgba(8, 25, 35, 0.88);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(7px);
}

html body.command-map-theme:not(.login-active) .command-map-title span {
  color: #9eb8c5;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

html body.command-map-theme:not(.login-active) .command-map-title strong {
  color: #ffffff !important;
  font-size: 0.88rem;
}

html body.command-map-theme:not(.login-active) .command-map-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
}

html body.command-map-theme:not(.login-active) .command-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #40525e;
  font-size: 0.64rem;
}

html body.command-map-theme:not(.login-active) .command-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cm-blue);
}

html body.command-map-theme:not(.login-active) .command-map-legend .service i { background: var(--cm-orange); }
html body.command-map-theme:not(.login-active) .command-map-legend .inspection i { background: var(--cm-sky); }
html body.command-map-theme:not(.login-active) .command-map-legend .prebid i { background: var(--cm-gray); }

html body.command-map-theme:not(.login-active) .command-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  background: #dce4e8;
  text-align: center;
}

html body.command-map-theme:not(.login-active) .command-map-empty img {
  width: 38px;
  height: 38px;
}

html body.command-map-theme:not(.login-active) .command-map-empty span {
  max-width: 340px;
  color: var(--cm-muted);
  font-size: 0.76rem;
}

html body.command-map-theme:not(.login-active) .command-intelligence-rail > section {
  padding: 13px 14px;
  border-bottom: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-intelligence-heading {
  margin-bottom: 8px;
}

html body.command-map-theme:not(.login-active) .command-intelligence-heading > span {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #edf1f3;
  color: #4f626d;
  font-size: 0.68rem;
  font-weight: 800;
}

html body.command-map-theme:not(.login-active) .command-intelligence-heading > button {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--cm-blue) !important;
  font-size: 0.68rem !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .command-alert-list > button {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 7px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  text-align: left !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.command-map-theme:not(.login-active) .command-alert-list > button img {
  width: 18px;
  height: 18px;
  filter: invert(25%) sepia(92%) saturate(2578%) hue-rotate(345deg) brightness(92%) contrast(91%);
}

html body.command-map-theme:not(.login-active) .command-alert-list > button.warn img {
  filter: invert(62%) sepia(74%) saturate(1022%) hue-rotate(353deg) brightness(92%) contrast(92%);
}

html body.command-map-theme:not(.login-active) .command-alert-list > button.info img {
  filter: invert(39%) sepia(95%) saturate(925%) hue-rotate(181deg) brightness(86%) contrast(89%);
}

html body.command-map-theme:not(.login-active) .command-alert-list span,
html body.command-map-theme:not(.login-active) .command-clear-state span {
  display: grid;
  gap: 2px;
}

html body.command-map-theme:not(.login-active) .command-alert-list strong,
html body.command-map-theme:not(.login-active) .command-clear-state strong {
  font-size: 0.73rem;
}

html body.command-map-theme:not(.login-active) .command-alert-list small,
html body.command-map-theme:not(.login-active) .command-clear-state small {
  font-size: 0.65rem;
}

html body.command-map-theme:not(.login-active) .command-clear-state {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 0;
}

html body.command-map-theme:not(.login-active) .command-clear-state > img {
  width: 24px;
  height: 24px;
  filter: invert(46%) sepia(51%) saturate(696%) hue-rotate(88deg) brightness(90%) contrast(90%);
}

html body.command-map-theme:not(.login-active) .command-capacity-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

html body.command-map-theme:not(.login-active) .command-capacity-row > span,
html body.command-map-theme:not(.login-active) .command-capacity-row > strong {
  font-size: 0.66rem;
}

html body.command-map-theme:not(.login-active) .command-capacity-row > strong {
  text-align: right;
}

html body.command-map-theme:not(.login-active) .command-capacity-row > i {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e1e6e9;
}

html body.command-map-theme:not(.login-active) .command-capacity-row > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cm-blue);
}

html body.command-map-theme:not(.login-active) .command-capacity-row.available > i > b {
  background: var(--cm-green);
}

html body.command-map-theme:not(.login-active) .command-risk-list > button {
  grid-template-columns: 9px minmax(0, 1fr) !important;
  min-height: 42px !important;
}

html body.command-map-theme:not(.login-active) .command-risk-list > button > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cm-red);
}

html body.command-map-theme:not(.login-active) .command-risk-list > button > i.warn {
  background: var(--cm-orange);
}

html body.command-map-theme:not(.login-active) .command-risk-list > button > span {
  display: grid;
  gap: 1px;
}

html body.command-map-theme:not(.login-active) .command-risk-list strong {
  font-size: 0.7rem;
}

html body.command-map-theme:not(.login-active) .command-risk-list small {
  font-size: 0.63rem;
}

html body.command-map-theme:not(.login-active) .command-rail-empty {
  padding: 14px 4px;
  color: var(--cm-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

html body.command-map-theme:not(.login-active) .command-project-detail {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(520px, 2.7fr) 238px;
  align-items: stretch;
  min-height: 116px;
  border-top: 1px solid var(--cm-line);
  background: #ffffff;
}

html body.command-map-theme:not(.login-active) .command-detail-identity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-right: 1px solid var(--cm-line);
}

html body.command-map-theme:not(.login-active) .command-map-pin {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cm-blue-soft);
}

html body.command-map-theme:not(.login-active) .command-map-pin.service { background: var(--cm-orange-soft); }
html body.command-map-theme:not(.login-active) .command-map-pin.inspection { background: #eaf6fe; }
html body.command-map-theme:not(.login-active) .command-map-pin.prebid { background: #edf0f2; }

html body.command-map-theme:not(.login-active) .command-map-pin img {
  width: 22px;
  height: 22px;
}

html body.command-map-theme:not(.login-active) .command-detail-identity strong {
  color: var(--cm-blue) !important;
  font-size: 0.8rem;
}

html body.command-map-theme:not(.login-active) .command-detail-identity h3 {
  margin: 2px 0;
  font-size: 1rem;
}

html body.command-map-theme:not(.login-active) .command-detail-identity p {
  margin: 0;
  font-size: 0.68rem;
}

html body.command-map-theme:not(.login-active) .command-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

html body.command-map-theme:not(.login-active) .command-detail-facts > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--cm-line);
  text-align: center;
}

html body.command-map-theme:not(.login-active) .command-detail-facts dt {
  color: var(--cm-muted) !important;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

html body.command-map-theme:not(.login-active) .command-detail-facts dd {
  margin: 0;
  color: var(--cm-ink) !important;
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

html body.command-map-theme:not(.login-active) .command-detail-facts small {
  font-size: 0.63rem;
}

html body.command-map-theme:not(.login-active) .command-status {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #9fc3eb;
  border-radius: 12px;
  background: var(--cm-blue-soft);
  color: #145aad;
  font-size: 0.65rem;
}

html body.command-map-theme:not(.login-active) .command-status.service {
  border-color: #efbd8b;
  background: var(--cm-orange-soft);
  color: #a94e06;
}

html body.command-map-theme:not(.login-active) .command-status.inspection {
  border-color: #add5f1;
  background: #eaf6fe;
  color: #236fa7;
}

html body.command-map-theme:not(.login-active) .command-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e1e6e9;
}

html body.command-map-theme:not(.login-active) .command-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cm-blue);
}

html body.command-map-theme:not(.login-active) .command-detail-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px 18px;
}

html body.command-map-theme:not(.login-active) .command-detail-actions button {
  width: 100%;
}

html body.command-map-theme:not(.login-active) .command-detail-empty {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
}

html body.command-map-theme:not(.login-active) .command-detail-empty span {
  color: var(--cm-muted);
  font-size: 0.75rem;
}

/* Page-specific color normalization */
html body.command-map-theme:not(.login-active) .service-command-head {
  border-left-color: var(--cm-orange) !important;
}

html body.command-map-theme:not(.login-active) .service-new-ticket-button,
html body.command-map-theme:not(.login-active) .service-primary-action {
  border-color: #b65c12 !important;
  background: #ca6513 !important;
}

html body.command-map-theme:not(.login-active) .progress-step {
  border-color: var(--cm-line) !important;
  background: #ffffff !important;
  color: #4b606c !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .progress-step.done {
  border-color: #8fc8a4 !important;
  background: var(--cm-green-soft) !important;
  color: #256a3f !important;
}

html body.command-map-theme:not(.login-active) .progress-step.active-step,
html body.command-map-theme:not(.login-active) .progress-step.viewed-step {
  border-color: var(--cm-blue) !important;
  background: var(--cm-blue-soft) !important;
  color: #145aad !important;
  box-shadow: inset 0 0 0 2px rgba(31, 111, 209, 0.16) !important;
}

html body.command-map-theme:not(.login-active) .folder,
html body.command-map-theme:not(.login-active) .property-folder-button,
html body.command-map-theme:not(.login-active) .file-library-client-card,
html body.command-map-theme:not(.login-active) .file-library-property-card,
html body.command-map-theme:not(.login-active) .file-library-project-card {
  border-color: var(--cm-line) !important;
  background: #ffffff !important;
  color: #274253 !important;
  box-shadow: none !important;
}

html body.command-map-theme:not(.login-active) .folder:hover,
html body.command-map-theme:not(.login-active) .property-folder-button:hover,
html body.command-map-theme:not(.login-active) .file-library-client-card:hover,
html body.command-map-theme:not(.login-active) .file-library-property-card:hover,
html body.command-map-theme:not(.login-active) .file-library-project-card:hover {
  border-color: #9ab6c7 !important;
  background: #f2f6f8 !important;
}

html body.command-map-theme:not(.login-active) .employee-card,
html body.command-map-theme:not(.login-active) .crew-card,
html body.command-map-theme:not(.login-active) .property-section-card,
html body.command-map-theme:not(.login-active) .deficiency-display-card {
  border-color: var(--cm-line) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
  box-shadow: var(--cm-shadow-soft) !important;
}

html body.command-map-theme:not(.login-active) .production-calendar,
html body.command-map-theme:not(.login-active) .calendar-grid,
html body.command-map-theme:not(.login-active) .production-board,
html body.command-map-theme:not(.login-active) .service-dispatch-board {
  border-color: var(--cm-line-strong) !important;
  background: #ffffff !important;
}

html body.command-map-theme:not(.login-active) .calendar-day,
html body.command-map-theme:not(.login-active) .calendar-cell {
  border-color: var(--cm-line) !important;
  background: #ffffff !important;
}

html body.command-map-theme:not(.login-active) .calendar-day.outside-month,
html body.command-map-theme:not(.login-active) .calendar-cell.outside-month {
  background: #e2e7ea !important;
}

/* Quick chat follows the same operational shell, without teal message blocks. */
html body.command-map-theme:not(.login-active) .chat-launcher,
html body.command-map-theme:not(.login-active) .chat-panel,
html body.command-map-theme:not(.login-active) .quick-chat-panel {
  border-color: var(--cm-line-strong) !important;
  background: #ffffff !important;
  color: var(--cm-ink) !important;
}

html body.command-map-theme:not(.login-active) .chat-panel-header,
html body.command-map-theme:not(.login-active) .quick-chat-header {
  border-color: #284453 !important;
  background: var(--cm-shell-2) !important;
  color: #ffffff !important;
}

html body.command-map-theme:not(.login-active) .chat-message,
html body.command-map-theme:not(.login-active) .quick-chat-message {
  border-color: var(--cm-line) !important;
  background: #f0f3f5 !important;
  color: var(--cm-ink) !important;
}

html body.command-map-theme:not(.login-active) .chat-message.mine,
html body.command-map-theme:not(.login-active) .quick-chat-message.mine {
  border-color: #a9c8eb !important;
  background: var(--cm-blue-soft) !important;
}

/* Maps remain unframed operational surfaces. */
html body.command-map-theme:not(.login-active) .leaflet-container,
html body.command-map-theme:not(.login-active) [data-map-provider],
html body.command-map-theme:not(.login-active) .property-map,
html body.command-map-theme:not(.login-active) .project-map {
  border-color: var(--cm-line-strong) !important;
  border-radius: 5px !important;
  background: #d6dfe4 !important;
}

/* Responsive fit */
@media (max-width: 1500px) {
  html body:not(.login-active) .app-header {
    grid-template-columns: 162px minmax(190px, 300px) 44px minmax(470px, 1fr) 152px !important;
    gap: 7px !important;
    padding-inline: 10px !important;
  }

  html body:not(.login-active) .app-header .header-logo-shell {
    width: 156px !important;
  }

  html body:not(.login-active) .app-header .header-logo {
    width: 150px !important;
    max-width: 150px !important;
  }

  html body:not(.login-active) .app-header .header-chart-link.top-link {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 5px !important;
    padding-inline: 6px !important;
  }

  html body:not(.login-active) .app-header .header-nav-icon {
    width: 24px !important;
    height: 24px !important;
  }

  html body:not(.login-active) .app-header .header-nav-text {
    font-size: 0.61rem !important;
  }

  html body.command-map-theme:not(.login-active) .command-map-layout {
    grid-template-columns: 246px minmax(370px, 1fr) 268px;
  }

  html body.command-map-theme:not(.login-active) .command-project-detail {
    grid-template-columns: minmax(220px, 1.2fr) minmax(480px, 2.6fr) 200px;
  }
}

@media (max-width: 1180px) {
  html body:not(.login-active) .app-header {
    grid-template-columns: 144px minmax(180px, 1fr) 44px 150px !important;
  }

  html body:not(.login-active) .app-header .header-workflow-links {
    display: none !important;
  }

  html body:not(.login-active) .app-header .header-utility-links {
    grid-column: 4 !important;
  }

  html body.command-map-theme:not(.login-active) .command-map-layout {
    grid-template-columns: 230px minmax(360px, 1fr);
  }

  html body.command-map-theme:not(.login-active) .command-intelligence-rail {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--cm-line);
    border-left: 0;
  }

  html body.command-map-theme:not(.login-active) .command-intelligence-rail > section {
    border-right: 1px solid var(--cm-line);
  }

  html body.command-map-theme:not(.login-active) .command-project-detail {
    grid-template-columns: minmax(220px, 1fr) minmax(480px, 2fr);
  }

  html body.command-map-theme:not(.login-active) .command-detail-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--cm-line);
  }
}

@media (max-width: 760px) {
  html body:not(.login-active) .app-header {
    grid-template-columns: 118px 42px minmax(0, 1fr) !important;
    grid-template-rows: 58px 48px !important;
    gap: 0 8px !important;
    height: 106px !important;
    min-height: 106px !important;
    padding: 0 9px 7px !important;
  }

  html body:not(.login-active) .app-header .header-logo-shell {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 118px !important;
    height: 56px !important;
    padding: 3px 0 !important;
  }

  html body:not(.login-active) .app-header .header-logo {
    width: 112px !important;
    max-width: 112px !important;
    height: 52px !important;
    max-height: 52px !important;
  }

  html body:not(.login-active) .app-header .header-tools-menu {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html body:not(.login-active) .app-header .header-utility-links {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-content: flex-end !important;
  }

  html body:not(.login-active) .app-header #loginCard.login-card {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  html body:not(.login-active) .app-header #globalSearch {
    height: 38px !important;
    min-height: 38px !important;
  }

  html body:not(.login-active) .app-header .header-presence-indicator {
    display: none !important;
  }

  html body.command-map-theme:not(.login-active) .app-shell {
    display: block !important;
    min-height: calc(100vh - 106px) !important;
    margin-top: 106px !important;
  }

  html body.command-map-theme:not(.login-active) .sidebar {
    position: sticky !important;
    top: 106px !important;
    z-index: 80 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 4px 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: 0 !important;
    border-bottom: 1px solid #183746 !important;
    scrollbar-width: none !important;
  }

  html body.command-map-theme:not(.login-active) .sidebar::-webkit-scrollbar {
    display: none !important;
  }

  html body.command-map-theme:not(.login-active) .sidebar-module-label,
  html body.command-map-theme:not(.login-active) .sidebar-spacer {
    display: none !important;
  }

  html body.command-map-theme:not(.login-active) .sidebar .nav-link {
    flex: 0 0 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    min-height: 54px !important;
    padding: 5px 3px !important;
    font-size: 0.59rem !important;
  }

  html body.command-map-theme:not(.login-active) .sidebar .nav-link::before {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  html body.command-map-theme:not(.login-active) .workspace {
    min-height: calc(100vh - 170px) !important;
    padding: 8px !important;
  }

  html body.command-map-theme:not(.login-active) .command-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body.command-map-theme:not(.login-active) .command-metric {
    min-height: 72px !important;
    padding: 10px !important;
  }

  html body.command-map-theme:not(.login-active) .command-metric:nth-child(2) {
    border-right: 0 !important;
  }

  html body.command-map-theme:not(.login-active) .command-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cm-line) !important;
  }

  html body.command-map-theme:not(.login-active) .command-metric-icon {
    width: 36px;
    height: 36px;
  }

  html body.command-map-theme:not(.login-active) .command-metric-icon img {
    width: 19px;
    height: 19px;
  }

  html body.command-map-theme:not(.login-active) .command-metric strong {
    font-size: 1.5rem;
  }

  html body.command-map-theme:not(.login-active) .command-map-layout {
    display: flex;
    flex-direction: column;
  }

  html body.command-map-theme:not(.login-active) .command-map-stage {
    order: 1;
    min-height: 360px;
  }

  html body.command-map-theme:not(.login-active) .command-map-canvas {
    min-height: 360px;
  }

  html body.command-map-theme:not(.login-active) .command-dispatch-rail {
    order: 2;
    max-height: none;
    border-top: 1px solid var(--cm-line);
    border-right: 0;
  }

  html body.command-map-theme:not(.login-active) .command-intelligence-rail {
    order: 3;
    display: block;
  }

  html body.command-map-theme:not(.login-active) .command-intelligence-rail > section {
    border-right: 0;
  }

  html body.command-map-theme:not(.login-active) .command-map-title {
    top: 8px;
    left: 8px;
  }

  html body.command-map-theme:not(.login-active) .command-map-legend {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: center;
  }

  html body.command-map-theme:not(.login-active) .command-project-detail {
    display: block;
  }

  html body.command-map-theme:not(.login-active) .command-detail-identity {
    border-right: 0;
    border-bottom: 1px solid var(--cm-line);
  }

  html body.command-map-theme:not(.login-active) .command-detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body.command-map-theme:not(.login-active) .command-detail-facts > div:nth-child(2) {
    border-right: 0;
  }

  html body.command-map-theme:not(.login-active) .command-detail-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cm-line);
  }

  html body.command-map-theme:not(.login-active) .command-detail-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body.command-map-theme:not(.login-active) .record-card,
  html body.command-map-theme:not(.login-active) .table-wrap,
  html body.command-map-theme:not(.login-active) .section-heading,
  html body.command-map-theme:not(.login-active) .toolbar {
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  html body.command-map-theme:not(.login-active) .table-wrap {
    overflow-x: auto !important;
  }

  html body.command-map-theme:not(.login-active) dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    margin: 8px !important;
  }
}

/* Workflow state, actions, and dense scheduling information. */


html body#strongholdApp.command-map-theme:not(.login-active) .close-x {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  border: 1px solid #c2ced4 !important;
  border-radius: 6px !important;
  background: #f1f5f7 !important;
  background-image: none !important;
  color: #203b48 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 3px 8px rgba(24, 48, 60, 0.09) !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .close-x::before {
  content: "\00d7";
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

html body#strongholdApp.command-map-theme:not(.login-active) .close-x:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .close-x:focus-visible {
  border-color: #879ba5 !important;
  background: #e5ecef !important;
  color: #102d3a !important;
  box-shadow: 0 0 0 3px rgba(51, 111, 139, 0.14) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .chat-launcher-panel .close-x {
  border-color: #4f6975 !important;
  background: #263f4b !important;
  color: #f5f8fa !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-progress {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-pill {
  display: flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 7px 10px !important;
  border: 1px solid #c9d4da !important;
  border-radius: 6px !important;
  background: #f4f7f8 !important;
  color: #60727c !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-pill.complete {
  border-color: #9cbbc9 !important;
  background: #e9f2f6 !important;
  color: #30566a !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-pill.active {
  border-color: #2f718f !important;
  background: #2f718f !important;
  color: #ffffff !important;
  box-shadow: 0 3px 9px rgba(47, 113, 143, 0.2) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-step-label {
  margin: 0 !important;
  color: #3d5663 !important;
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-detail-substep {
  min-height: 36px !important;
  padding: 7px 10px !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.15 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-detail-substep.complete {
  border-color: #9cbbc9 !important;
  background: #edf4f7 !important;
  color: #30566a !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog menu {
  position: sticky !important;
  bottom: -1px !important;
  z-index: 5 !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid #d3dde2 !important;
  background: #f8fafb !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog menu button {
  min-width: 112px !important;
  min-height: 40px !important;
  padding: 8px 15px !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.15 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog menu .ghost {
  border-color: #bdcbd2 !important;
  background: #ffffff !important;
  color: #29434f !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog menu button:disabled {
  border-color: #d5dde1 !important;
  background: #e7ecef !important;
  color: #87969e !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-exec-card,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-exec-card {
  min-height: 64px !important;
  height: auto !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-exec-card small,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-exec-card small {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.2 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-at-a-glance-item,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-at-a-glance-item {
  min-height: 0 !important;
  height: auto !important;
  padding: 9px 10px 10px 13px !important;
  gap: 6px !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-at-a-glance-name,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-at-a-glance-name {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  line-height: 1.25 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-at-a-glance-meta,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-at-a-glance-meta {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
  line-height: 1.2 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-at-a-glance-meta span,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-at-a-glance-meta span {
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  gap: 5px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-at-a-glance-meta strong,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-at-a-glance-meta strong {
  margin: 0 !important;
}

@media (min-width: 1181px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView:not(.production-board-view-active) .production-calendar-shell,
  html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-calendar-shell {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }
}

@media (max-width: 760px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog .project-wizard-pill {
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 0.7rem !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog menu {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #projectDialog menu button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 430px) {
  html body:not(.login-active) .app-header button.header-icon-button,
  html body:not(.login-active) .app-header button.header-user-toggle,
  html body:not(.login-active) .app-header .header-user-card {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
  }

  html body.command-map-theme:not(.login-active) .command-metric {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  html body.command-map-theme:not(.login-active) .command-metric-icon {
    width: 32px;
    height: 32px;
  }

  html body.command-map-theme:not(.login-active) .command-metric small {
    font-size: 0.62rem;
  }

  html body.command-map-theme:not(.login-active) .command-metric strong {
    font-size: 1.3rem;
  }

  html body.command-map-theme:not(.login-active) .command-metric em {
    display: none;
  }

  html body.command-map-theme:not(.login-active) .command-map-stage,
  html body.command-map-theme:not(.login-active) .command-map-canvas {
    min-height: 320px;
  }

  html body.command-map-theme:not(.login-active) .command-map-legend {
    gap: 7px;
    padding: 6px 7px;
  }

  html body.command-map-theme:not(.login-active) .command-detail-actions {
    grid-template-columns: 1fr;
  }
}

/* Homepage command-center presentation. The app id scopes the canonical visual
   system to the authenticated Stronghold shell. */


html body#strongholdApp:not(.login-active) .app-header .header-tools-panel,
html body#strongholdApp:not(.login-active) .app-header .header-user-details {
  z-index: 100001 !important;
}

html body#strongholdApp:not(.login-active) .app-header .header-links .top-link::before,
html body#strongholdApp:not(.login-active) .app-header .header-links .top-link::after {
  display: none !important;
  content: none !important;
}

html body#strongholdApp:not(.login-active) .app-header,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell,
html body#strongholdApp.command-map-theme:not(.login-active) dialog {
  font-family: "Segoe UI", Arial, sans-serif !important;
}

html body#strongholdApp:not(.login-active) .app-header button,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell input,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell select,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell textarea {
  font-family: inherit !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .workspace-topbar:has(#backBtn[hidden]) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body#strongholdApp:not(.login-active) .app-header .header-chart-links > button.top-link.header-chart-link,
html body#strongholdApp:not(.login-active) .app-header .header-stage-links > button.top-link.header-chart-link,
html body#strongholdApp:not(.login-active) .app-header button.top-link.header-chart-link {

  

  

  

  border-left: 3px solid var(--header-button-accent, var(--cm-blue)) !important;

  
  background-image: none !important;

  

  
}

html body#strongholdApp:not(.login-active) .app-header .header-chart-links > button.top-link.header-chart-link:hover,
html body#strongholdApp:not(.login-active) .app-header .header-stage-links > button.top-link.header-chart-link:hover,
html body#strongholdApp:not(.login-active) .app-header button.top-link.header-chart-link:hover {
  background: #193a4a !important;
  background-image: none !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.20) !important;
  transform: translateY(-1px) !important;
}

html body#strongholdApp:not(.login-active) .app-header .header-nav-text,
html body#strongholdApp:not(.login-active) .app-header .header-nav-label,
html body#strongholdApp:not(.login-active) .app-header .header-nav-sub {
  color: #f3f8fa !important;
  text-shadow: none !important;
}

html body#strongholdApp:not(.login-active) .app-header .header-nav-icon {

  background-image: none !important;

}

html body#strongholdApp:not(.login-active) .app-header button.header-tools-toggle,
html body#strongholdApp:not(.login-active) .app-header button.header-icon-button,
html body#strongholdApp:not(.login-active) .app-header button.header-user-toggle {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #dbe7ec !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp:not(.login-active) .app-header button.header-tools-toggle {
  border: 1px solid #405866 !important;
  background: #132e3c !important;
}

html body#strongholdApp:not(.login-active) .app-header button.header-tools-toggle:hover,
html body#strongholdApp:not(.login-active) .app-header button.header-icon-button:hover,
html body#strongholdApp:not(.login-active) .app-header button.header-user-toggle:hover {
  background: #173746 !important;
  background-image: none !important;
  color: #ffffff !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell aside.sidebar,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .sidebar {
  background: var(--cm-shell-2) !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell aside.sidebar > button.nav-link,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .sidebar button.nav-link {
  min-height: 64px !important;
  height: auto !important;
  padding: 7px 3px !important;
  border: 1px solid transparent !important;
  border-radius: 5px !important;
  background: transparent !important;
  background-image: none !important;
  color: #d5e1e7 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell aside.sidebar > button.nav-link:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell aside.sidebar > button.nav-link.active,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .sidebar button.nav-link:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .sidebar button.nav-link.active {
  border-color: #29495a !important;
  background: #153746 !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 var(--cm-blue) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button:not(.danger):not(.delete-btn):not(.employee-delete-btn):not(.section-delete-btn):not(.file-media-delete-btn):not(.glass-success):not(.thumbnail-button):not(.video-thumbnail-button):not(.employee-photo-trigger):not(.deficiency-thumb):not(.preview-photo-nav-btn):not(.deficiency-photo-arrow):not(.deficiency-photo-delete):not(.close-x):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(.gm-control-active):not(.sold-financial-project-link):not(.section-report-page-tab):not(.header-icon-button):not(.header-chart-link):not(.header-tools-toggle):not(.top-link):not(.nav-link):not(.command-metric):not(.command-dispatch-summary):not([data-home-command-project]):not(.command-rail-link) {
  border-color: var(--dlc-button-border, #203f50) !important;
  background: var(--dlc-button-bg, #173746) !important;
  background-image: none !important;
  color: var(--dlc-button-text, #ffffff) !important;
  box-shadow: var(--dlc-button-shadow, 0 3px 9px rgba(8, 25, 35, 0.12)) !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button:not(.danger):not(.delete-btn):not(.employee-delete-btn):not(.section-delete-btn):not(.file-media-delete-btn):not(.glass-success):not(.thumbnail-button):not(.video-thumbnail-button):not(.employee-photo-trigger):not(.deficiency-thumb):not(.preview-photo-nav-btn):not(.deficiency-photo-arrow):not(.deficiency-photo-delete):not(.close-x):not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(.gm-control-active):not(.sold-financial-project-link):not(.section-report-page-tab):not(.header-icon-button):not(.header-chart-link):not(.header-tools-toggle):not(.top-link):not(.nav-link):not(.command-metric):not(.command-dispatch-summary):not([data-home-command-project]):not(.command-rail-link):hover {
  background: var(--dlc-button-hover-bg, #21495c) !important;
  background-image: none !important;
  border-color: var(--dlc-button-hover-border, #2f5b70) !important;
  color: var(--dlc-button-hover-text, var(--dlc-button-text, #ffffff)) !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-metric {
  min-height: 86px !important;
  height: 86px !important;
  max-height: none !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-right: 1px solid var(--cm-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cm-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-metric:hover {
  background: #f6f9fb !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-dispatch-summary,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-upcoming-list > button,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-alert-list > button,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-risk-list > button {
  max-height: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cm-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-dispatch-summary:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-upcoming-list > button:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-upcoming-list > button.active,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-alert-list > button:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-risk-list > button:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-risk-list > button.active {
  background: var(--cm-blue-soft) !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-rail-link,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-intelligence-heading > button {
  background: transparent !important;
  background-image: none !important;
  color: var(--cm-blue) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-detail-actions button.secondary {
  border-color: var(--cm-line-strong) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cm-ink) !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-map-stage,
html body#strongholdApp.command-map-theme:not(.login-active) #homeView #homeCommandMap.command-map-canvas {
  background-color: #536c5a !important;
  background-image: url("./assets/command-map-fallback.webp") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-map-title {
  left: 56px !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.inline-link-button {
  min-height: 28px !important;
  height: auto !important;
  padding: 3px 6px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--cm-blue) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.inline-link-button:hover {
  background: var(--cm-blue-soft) !important;
  background-image: none !important;
  color: #155aac !important;
  text-decoration: underline !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.tab,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab {
  border: 1px solid var(--cm-line-strong) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #334956 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.tab:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab:hover {
  border-color: #8ba6b6 !important;
  background: #f3f7f9 !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.tab.active,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab.active,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.selected-folder {
  border-color: #1f6fd1 !important;
  background: var(--cm-blue) !important;
  background-image: none !important;
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.folder,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.folder-item,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.file-folder-card,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.property-folder-card {
  border: 1px solid var(--cm-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cm-ink) !important;
  box-shadow: var(--cm-shadow-soft) !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.folder:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.folder-item:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.file-folder-card:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.property-folder-card:hover {
  border-color: #9ab0bc !important;
  background: #f6f9fb !important;
  background-image: none !important;
  box-shadow: var(--cm-shadow) !important;
  transform: translateY(-1px) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-radar-row,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-production-row,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .production-at-a-glance-item,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-work-item,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-finance-row {
  border: 1px solid var(--cm-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cm-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .production-at-a-glance-item:hover {
  border-color: #91aab8 !important;
  background: #f4f8fa !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .production-at-a-glance-item *,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-radar-row *,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-production-row *,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-work-item *,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .home-finance-row * {
  color: inherit !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .property-contacts-panel {
  border: 1px solid var(--cm-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .section-card {
  border: 1px solid var(--cm-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--cm-ink) !important;
  box-shadow: var(--cm-shadow-soft) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.section-delete-btn,
html body#strongholdApp.command-map-theme:not(.login-active) button.file-media-delete-btn,
html body#strongholdApp.command-map-theme:not(.login-active) button.employee-delete-btn,
html body#strongholdApp.command-map-theme:not(.login-active) button.delete-btn.danger,
html body#strongholdApp.command-map-theme:not(.login-active) button.danger.delete-btn {
  width: auto !important;
  min-width: 72px !important;
  max-width: none !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 5px 10px !important;
  border: 1px solid #b62020 !important;
  border-radius: 4px !important;
  background: #c93434 !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .project-overview-layout > .project-detail-map-card {
  align-self: stretch !important;
  min-height: 650px !important;
  height: 100% !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .project-overview-layout > .project-detail-map-card .project-detail-map,
html body#strongholdApp.command-map-theme:not(.login-active) .project-overview-layout > .project-detail-map-card .offline-map-snapshot {
  min-height: 596px !important;
  height: 100% !important;
}

@media (max-width: 760px) {
  html body#strongholdApp:not(.login-active) .app-header .header-logo-shell {
    width: 118px !important;
    min-width: 118px !important;
    max-width: 118px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 3px 0 !important;
    overflow: hidden !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .header-logo-shell a {
    width: 118px !important;
    height: 50px !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .header-logo {
    position: static !important;
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .header-tools-panel {
    max-height: calc(100vh - 62px) !important;
    overflow-y: auto !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .mobile-workflow-links {
    display: grid !important;
    gap: 3px !important;
    margin: 0 0 8px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px solid #36505e !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .mobile-workflow-links .top-link {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 7px 8px !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: transparent !important;
    background-image: none !important;
    color: #e7eef2 !important;
    text-align: left !important;
    box-shadow: none !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .mobile-workflow-links .top-link:hover,
  html body#strongholdApp:not(.login-active) .app-header .mobile-workflow-links .top-link.active {
    background: #173746 !important;
  }

  html body#strongholdApp:not(.login-active) .app-header .mobile-workflow-links img {
    width: 18px !important;
    height: 18px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.88 !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell aside.sidebar > button.nav-link,
  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .sidebar button.nav-link {
    flex: 0 0 104px !important;
    width: 104px !important;
    min-width: 104px !important;
    min-height: 56px !important;
    height: 56px !important;
    padding: 5px 4px !important;
    font-size: 0.59rem !important;
    line-height: 1.1 !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #homeView .command-metric {
    min-height: 72px !important;
    height: 72px !important;
    padding: 10px 12px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-exec-card,
  html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-exec-card {
    min-height: 64px !important;
    height: auto !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-exec-card small,
  html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .production-exec-card small {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.2 !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .project-overview-layout > .project-detail-map-card {
    min-height: 360px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .project-overview-layout > .project-detail-map-card .project-detail-map,
  html body#strongholdApp.command-map-theme:not(.login-active) .project-overview-layout > .project-detail-map-card .offline-map-snapshot {
    min-height: 310px !important;
  }
}

/* Interaction visibility and selected states. */
html body#strongholdApp [hidden] {
  display: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #backBtn {
  margin-bottom: 8px !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #subcontractorsView.active {
  padding-top: 0 !important;
}

/* Calendar controls and header utilities must keep their intended size at every viewport. */
html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: start !important;
  align-self: start !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 172px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  gap: 7px !important;
  overflow: hidden !important;
  border: 1px solid #405866 !important;
  border-left: 3px solid var(--cm-blue) !important;
  border-radius: 5px !important;
  background: #173746 !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create:focus-visible,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create:focus-visible {
  border-color: #6b8796 !important;
  border-left-color: #6aa8ef !important;
  background: #214b5d !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create::before,
html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create::after,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create::before,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create::after {
  display: none !important;
  content: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create img,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create img {
  display: block !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  max-height: 16px !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.92 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create span,
html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create span {
  color: inherit !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}


html body#strongholdApp:not(.login-active) .app-header .header-user-card,
html body#strongholdApp:not(.login-active) .app-header button#headerUserToggle.header-user-toggle {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 1500px) and (min-width: 1181px) {
  html body#strongholdApp:not(.login-active) .app-header {
    grid-template-columns: 162px minmax(190px, 300px) 44px minmax(450px, 1fr) 168px !important;
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  html body#strongholdApp:not(.login-active) .app-header {
    grid-template-columns: 144px minmax(180px, 1fr) 44px 168px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView .production-calendar-sidebar {
    align-items: start !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView .service-calendar-sidebar {
    grid-template-columns: auto repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }
}

@media (max-width: 900px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #productionChartView button.production-calendar-create,
  html body#strongholdApp.command-map-theme:not(.login-active) #serviceChartView button.service-calendar-create {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* Dense administrative views should reflow before their content becomes cramped. */
html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .accent-kpi {
  grid-column: span 2;
}

html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .split-kpi {
  gap: 10px !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .split-kpi span {
  min-width: 0 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .split-kpi b {
  display: block !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}

@media (max-width: 1180px) and (min-width: 761px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #employeesView .employee-filter-bar {
    grid-template-columns: max-content minmax(250px, 1fr) !important;
    align-items: end !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #employeesView #employeeTypeTabs {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    margin-left: 0 !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #uploadRecoveryView .upload-recovery-layout,
  html body#strongholdApp.command-map-theme:not(.login-active) #uploadRecoveryView .upload-recovery-layout.secondary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #uploadRecoveryView .upload-recovery-file {
    grid-template-columns: 44px minmax(0, 1fr) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #uploadRecoveryView .upload-recovery-file-actions {
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 760px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .accent-kpi {
    grid-column: auto !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .split-kpi {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .split-kpi span + span {
    border-top: 1px solid var(--cm-line) !important;
    border-left: 0 !important;
    padding-top: 7px !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 1180px) and (min-width: 761px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    grid-auto-flow: dense !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .kpi-card:first-child {
    grid-column: auto !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .kpi-breakdown.horizontal {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .kpi-breakdown-item {
    min-width: 0 !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #pipelineView #pipelineSummary .kpi-breakdown-item:nth-child(4) {
    border-left: 0 !important;
    padding-left: 0 !important;
  }
}

@media (max-width: 760px) {
  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .clients-page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .clients-page-layout > * {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .clients-map-divider {
    display: none !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .clients-list-shell,
  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .table-wrap,
  html body#strongholdApp.command-map-theme:not(.login-active) #customersView table,
  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView thead {
    display: none !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody {
    display: grid !important;
    gap: 8px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody > tr:not(.customer-property-row) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--cm-line) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-shadow: var(--cm-shadow-soft) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody > tr:not(.customer-property-row) > td {
    display: grid !important;
    justify-items: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    padding: 8px 5px !important;
    border: 0 !important;
    border-top: 1px solid var(--cm-line) !important;
    border-right: 1px solid var(--cm-line) !important;
    text-align: center !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody > tr:not(.customer-property-row) > td:last-child {
    border-right: 0 !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody > tr:not(.customer-property-row) > td::before {
    content: attr(data-label);
    color: var(--cm-muted);
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody > tr:not(.customer-property-row) > td.owner-name-cell {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    text-align: left !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView tbody > tr:not(.customer-property-row) > td.owner-name-cell::before {
    display: none !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .customer-property-row {
    display: block !important;
    width: 100% !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .customer-property-row[hidden] {
    display: none !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) #customersView .customer-property-row > td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
  }
}

/* Work queue controls. */
html body#strongholdApp.command-map-theme:not(.login-active) .sidebar button.work-queue-nav {
  border-color: #315165 !important;
  background: #122f3d !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-create,
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric,
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView .work-queue-filters button,
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-open {
  transform: none !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView .work-queue-head h2 {
  color: #152d38 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric {
  border: 1px solid #c4d1d7 !important;
  border-top: 3px solid #8094a0 !important;
  background: #f8fafb !important;
  color: #223944 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric.metric-attention { border-top-color: #e0a12f !important; }
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric.metric-estimate { border-top-color: #d0a33c !important; }
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric.metric-service { border-top-color: #30a9c0 !important; }
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric.metric-scheduled { border-top-color: #4d84bd !important; }
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric.metric-upcoming { border-top-color: #4b9a68 !important; }

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric.active {
  border-color: #7995a4 !important;
  background: #edf4f7 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric > span { color: #3b525e !important; }
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric > strong { color: #162f3b !important; }
html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView button.work-queue-metric > small { color: #72828a !important; }

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView .work-queue-filters button {
  border-color: #b9c7cd !important;
  background: #ffffff !important;
  color: #465b65 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView .work-queue-filters button.active {
  border-color: #385f74 !important;
  background: #244959 !important;
  color: #ffffff !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView .work-queue-filters button span {
  background: #dfe8ec !important;
  color: #304c59 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #workQueueView .work-queue-filters button.active span {
  background: #ffffff !important;
  color: #244959 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.ticket-delete-button,
html body#strongholdApp.command-map-theme:not(.login-active) .app-prompt-dialog button.danger {
  border-color: #8f2f35 !important;
  background: #a63a40 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(120, 30, 36, 0.2) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) button.ticket-delete-button:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-prompt-dialog button.danger:hover {
  border-color: #742228 !important;
  background: #8f2f35 !important;
}

/* Give desktop navigation labels enough room to wrap only between words. */
@media (min-width: 761px) {
  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell {
    grid-template-columns: 132px minmax(0, 1fr) !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell > .sidebar,
  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell > aside.sidebar {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
  }

  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell > .sidebar .nav-link,
  html body#strongholdApp.command-map-theme:not(.login-active) .app-shell > aside.sidebar .nav-link {
    padding-inline: 7px !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

/* Neutral section, deficiency, and photo-editor surfaces. Brand
   color remains available for small indicators, while workspaces and editors
   use navy, steel, paper, and semantic status colors. */
html body#strongholdApp.command-map-theme:not(.login-active) {
  --stronghold-teal: #6f8490;
  --stronghold-teal-dark: #3b5260;
  --command-teal: #607886;
  --command-teal-dark: #2b4351;
  --cmd-teal: #607886;
  --ledger-teal: #657d89;
  --ledger-teal-soft: #e8eef1;
  --brand: #587180;
  --brand-strong: #2d4655;
  --control-glass-accent: #8296a1;
  --control-glass-glow: rgba(76, 99, 113, 0.28);
}

html body#strongholdApp.command-map-theme:not(.login-active) .section-upload-brief.section-page-banner {
  border-color: #708693 !important;
  background:
    linear-gradient(116deg, transparent 0 63%, rgba(255, 255, 255, 0.10) 63.3% 70%, rgba(255, 255, 255, 0.025) 70.4% 100%),
    linear-gradient(116deg, transparent 0 78%, rgba(143, 161, 172, 0.12) 78.4% 83%, transparent 83.4% 100%),
    radial-gradient(circle at 58% 112%, rgba(126, 145, 156, 0.22) 0, rgba(126, 145, 156, 0.06) 24%, transparent 44%),
    linear-gradient(96deg, #263d4b 0%, #142a38 38%, #091923 100%) !important;
  box-shadow:
    0 22px 34px rgba(8, 25, 36, 0.24),
    inset 0 0 0 2px rgba(160, 177, 186, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .section-upload-brief.section-page-banner::before {
  background: linear-gradient(180deg, #f1d58d 0%, #c69a3f 66%, #8a6829 100%) !important;
  box-shadow: 0 0 14px rgba(198, 154, 63, 0.42) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .section-upload-brief.section-page-banner::after {
  filter: grayscale(1) contrast(0.92) !important;
  mix-blend-mode: screen !important;
  opacity: 0.16 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .section-upload-brief.section-page-banner .section-page-banner-copy span {
  color: #d8c58f !important;
  text-shadow: 0 2px 0 rgba(3, 18, 28, 0.88), 0 0 12px rgba(198, 154, 63, 0.24) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .section-page-banner-logo {
  filter: grayscale(1) brightness(1.15) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.38)) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab {
  border-color: #c5d0d6 !important;
  background: #f9fbfc !important;
  color: #263d49 !important;
  box-shadow: 0 5px 12px rgba(17, 36, 48, 0.06) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab.quick-cam-tab strong {
  color: #102f3d !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.section-report-page-tab.active {
  border-color: #8599a4 !important;
  background: #e8eef1 !important;
  color: #172e3a !important;
  box-shadow: inset 0 -3px 0 #c69a3f, 0 6px 13px rgba(17, 36, 48, 0.08) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-capture-card,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-form-card,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-entry-card {
  border-color: #c4d0d6 !important;
  background: #fbfcfd !important;
  background-image: none !important;
  color: #1c3440 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .multi-section-indicator {
  border-color: rgba(95, 119, 132, 0.34) !important;
  background: #edf1f3 !important;
  color: #3b5260 !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.deficiency-thumb {
  border-color: #c2cdd3 !important;
  background: #e8edf0 !important;
  background-image: none !important;
  color: #4e626d !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.deficiency-photo-arrow,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog button.preview-photo-nav-btn {
  border-color: rgba(65, 86, 98, 0.42) !important;
  background: rgba(248, 250, 251, 0.94) !important;
  background-image: none !important;
  color: #233a47 !important;
  box-shadow: 0 5px 12px rgba(15, 34, 45, 0.16) !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell button.deficiency-photo-arrow:hover,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog button.preview-photo-nav-btn:hover {
  border-color: #536e7e !important;
  background: #ffffff !important;
  color: #162e3b !important;
  transform: translateY(-50%) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-map-card-live,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-map-adjust-map,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .preview-location-map {
  border-color: #aebdc5 !important;
  background: #dfe6ea !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-map-card-live:hover,
html body#strongholdApp.command-map-theme:not(.login-active) .app-shell .deficiency-map-card-live:focus-visible {
  border-color: #617b89 !important;
  box-shadow: 0 0 0 3px rgba(97, 123, 137, 0.16), 0 8px 18px rgba(10, 30, 42, 0.14) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .photo-dialog {
  border-color: #aebdc5 !important;
  background: #f8fafb !important;
  background-image: none !important;
  color: #1b3340 !important;
  box-shadow: 0 24px 54px rgba(8, 24, 34, 0.28) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .photo-preview-stage,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .preview-stage-scroll,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .preview-stage-surface {
  border-color: #bcc9cf !important;
  background: #e8edf0 !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .file-input-stack,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .preview-deficiency-fields,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .photo-editor-tools {
  border-color: #c3ced4 !important;
  background: #f3f6f7 !important;
  background-image: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog button.preview-zoom-btn,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog button.preview-edit-btn,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog #photoEditorTools button:not(#deletePreviewItemBtn),
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog #saveFileEditBtn,
html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog .camera-capture-btn {
  border-color: #526875 !important;
  background: linear-gradient(180deg, #465965 0%, #2b3c47 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 5px 12px rgba(12, 31, 42, 0.14) !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog #deletePreviewItemBtn {
  border-color: #8f2f35 !important;
  background: #a63a40 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(120, 30, 36, 0.18) !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog button.close-x {
  border-color: #b9c6cc !important;
  background: #eef2f4 !important;
  background-image: none !important;
  color: #2d4653 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body#strongholdApp.command-map-theme:not(.login-active) #filePreviewDialog button.close-x:hover {
  border-color: #c98585 !important;
  background: #fff0ef !important;
  color: #8f2f35 !important;
}
/* Equipment repair requests: field-first capture and a compact office queue. */
.equipment-repair-nav,
.equipment-repair-primary {
  border-color: #d4a62a !important;
  background: linear-gradient(180deg, #ffe089 0%, #e8b83f 100%) !important;
  color: #172b32 !important;
  box-shadow: 0 5px 14px rgba(104, 77, 13, 0.2) !important;
}

.equipment-repair-nav:hover,
.equipment-repair-primary:hover {
  background: linear-gradient(180deg, #ffe8a5 0%, #efc557 100%) !important;
  color: #10242b !important;
}

.equipment-repair-dialog {
  width: min(620px, calc(100vw - 24px));
  max-width: 620px;
}

.equipment-repair-intro {
  margin: 0 0 14px;
  color: #50636b;
}

.equipment-repair-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.equipment-repair-form-grid > label {
  min-width: 0;
}

.equipment-repair-form-grid > label[hidden] {
  display: none !important;
}

.equipment-repair-wide {
  grid-column: 1 / -1;
}

.equipment-repair-form-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.equipment-repair-files {
  padding: 12px;
  border: 1px dashed #9aaeb5;
  border-radius: 6px;
  background: #eef3f4;
}

.equipment-repair-files small {
  display: block;
  margin-top: 7px;
  color: #5b6b72;
}

.equipment-repair-recipient-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 4px solid #d4a62a;
  background: #f6f3e8;
  color: #35474e;
  font-size: 0.88rem;
}

.fleet-heading-actions {
  align-items: center;
  flex-wrap: wrap;
}

.equipment-repair-queue {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #aebfc5;
  border-left: 5px solid #d4a62a;
  border-radius: 6px;
  background: #edf2f3;
}

.equipment-repair-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.equipment-repair-queue-head h3,
.equipment-repair-queue-head p {
  margin: 0;
}

.equipment-repair-queue-head > span {
  min-width: 62px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #273f48;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.equipment-repair-request-list {
  display: grid;
  gap: 9px;
}

.equipment-repair-request-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(300px, 1.8fr) auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid #bcc9cd;
  border-left: 5px solid #d4a62a;
  border-radius: 6px;
  background: #f8faf9;
  color: #20353d;
}

.equipment-repair-request-card.warning {
  border-left-color: #d27620;
}

.equipment-repair-request-card.danger {
  border-left-color: #c63c3c;
}

.equipment-repair-request-card.resolved {
  border-left-color: #4d8a68;
  background: #f4f7f5;
}

.equipment-repair-request-card:focus {
  outline: 3px solid rgba(212, 166, 42, 0.5);
  outline-offset: 3px;
}

.equipment-repair-request-head {
  display: grid;
  gap: 4px;
}

.equipment-repair-request-head > span {
  color: #607078;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.equipment-repair-request-head > strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.equipment-repair-request-head > em {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f3e6bd;
  color: #684f0d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.equipment-repair-request-body > p {
  margin: 0 0 9px;
  line-height: 1.38;
}

.equipment-repair-request-body dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.equipment-repair-request-body dl > div {
  min-width: 0;
}

.equipment-repair-request-body dt {
  color: #65757c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.equipment-repair-request-body dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.equipment-repair-request-actions {
  display: grid;
  gap: 7px;
  min-width: 108px;
}

.equipment-repair-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.equipment-repair-attachments a {
  padding: 4px 7px;
  border: 1px solid #aab9be;
  border-radius: 4px;
  background: #fff;
  color: #294e5a;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.equipment-repair-comments {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #c9d4d7;
}

.equipment-repair-comments-head,
.equipment-repair-comment > div,
.equipment-repair-comment-compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.equipment-repair-comments-head span,
.equipment-repair-comment time,
.equipment-repair-comment-compose small,
.equipment-repair-comment-empty {
  color: #66777d;
  font-size: 0.72rem;
}

.equipment-repair-comment-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.equipment-repair-comment {
  padding: 7px 9px;
  border-left: 3px solid #80969d;
  background: #fff;
}

.equipment-repair-comment strong {
  font-size: 0.78rem;
}

.equipment-repair-comment p {
  margin: 4px 0 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.equipment-repair-comment-empty {
  margin-top: 7px;
}

.equipment-repair-comment-compose {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.equipment-repair-comment-compose label {
  font-size: 0.74rem;
  font-weight: 800;
}

.equipment-repair-comment-compose textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
}

.equipment-repair-history-note {
  margin: 0 0 9px;
  color: #617279;
  font-size: 0.78rem;
}

.equipment-repair-resolved {
  margin-top: 12px;
}

.equipment-repair-resolved summary {
  cursor: pointer;
  color: #41565e;
  font-weight: 800;
}

.equipment-repair-resolved[open] summary {
  margin-bottom: 9px;
}

@media (max-width: 900px) {
  .equipment-repair-request-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .equipment-repair-request-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .equipment-repair-request-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .equipment-repair-form-grid {
    grid-template-columns: 1fr;
  }

  .equipment-repair-wide {
    grid-column: auto;
  }

  .equipment-repair-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .equipment-repair-dialog menu {
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: inherit;
  }

  .equipment-repair-queue {
    padding: 12px;
  }

  .equipment-repair-request-card {
    grid-template-columns: 1fr;
  }

  .equipment-repair-request-body,
  .equipment-repair-request-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .equipment-repair-request-body dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .equipment-repair-request-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .equipment-repair-comment-compose > div {
    align-items: stretch;
    flex-direction: column;
  }
}
