:root {
  --ps-shell-mint: #00e5c2;
  --ps-shell-teal: #0097a7;
  --ps-shell-navy: #0a2030;
  --ps-shell-dark: #071b26;
  --ps-shell-dark-raised: #0d2935;
  --ps-shell-dark-hover: #123743;
  --ps-shell-dark-border: #24434d;
  --ps-shell-off-white: #f6fbfb;
  --ps-shell-mist: #e6f2f2;
  --ps-shell-border: #cfdfdf;
  --ps-shell-muted: #607778;
  --ps-shell-dark-text: #e4eeee;
  --ps-shell-dark-muted: #90aaae;
  --ps-shell-font: "Avenir Next", Avenir, Montserrat, "Century Gothic", Arial, sans-serif;
}

body.ps-runtime-shell-ready {
  background: var(--ps-shell-off-white);
  overflow-x: clip;
}

body.ps-runtime-shell-ready::before {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--ps-shell-mint);
  content: "";
  pointer-events: none;
}

.ps-runtime-shell-grid,
.ps-runtime-content-column {
  min-width: 0 !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}

.ps-runtime-content-column {
  background: var(--ps-shell-dark) !important;
}

.ps-runtime-workspace {
  position: relative;
  min-height: calc(100vh - 65px);
  border-top-left-radius: 0 !important;
  background: #f5f8f9 !important;
  box-shadow: -1px -1px 0 rgba(207, 223, 223, 0.42);
}

.ps-runtime-workspace-corner {
  display: none !important;
}

.ps-runtime-sidebar {
  min-width: 0 !important;
  max-width: 100% !important;
  border-color: var(--ps-shell-dark-border) !important;
  background: var(--ps-shell-dark) !important;
  padding: 14px !important;
  color: var(--ps-shell-dark-text);
  font-family: var(--ps-shell-font);
}

.ps-runtime-brand-row {
  min-height: 58px;
  gap: 10px !important;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--ps-shell-dark-border);
}

.ps-runtime-brand-content {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.ps-runtime-brand-original {
  display: none !important;
}

.ps-runtime-brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
}

.ps-runtime-brand-lockup {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.ps-runtime-brand-row > button {
  flex: 0 0 auto;
  border-color: var(--ps-shell-dark-border) !important;
  background: var(--ps-shell-dark-raised) !important;
  color: var(--ps-shell-dark-text) !important;
}

.ps-runtime-brand-row > button:hover {
  border-color: #3b626b !important;
  background: var(--ps-shell-dark-hover) !important;
  color: #ffffff !important;
}

.ps-runtime-nav {
  min-width: 0 !important;
  min-height: 0;
  flex: 1;
  gap: 7px !important;
  margin-top: 14px !important;
  padding-right: 4px;
  overflow-x: hidden !important;
  overflow-y: auto;
  scrollbar-color: #36535b transparent;
  scrollbar-width: thin;
}

.ps-runtime-nav button {
  border-radius: 5px !important;
  letter-spacing: 0 !important;
}

.ps-runtime-nav button:not([data-ps-shell-active="true"]) {
  background: transparent !important;
  color: #b7c9cc !important;
}

.ps-runtime-nav button:not([data-ps-shell-active="true"]):hover {
  background: var(--ps-shell-dark-hover) !important;
  color: #ffffff !important;
}

.ps-runtime-nav button[aria-expanded] {
  background: var(--ps-shell-dark-raised) !important;
  color: #d7e5e6 !important;
}

.ps-runtime-nav button[aria-expanded] > svg:first-child {
  color: var(--ps-shell-mint) !important;
}

.ps-runtime-nav button[aria-expanded] span[class*="bg-slate"] {
  background: rgba(230, 242, 242, 0.1) !important;
  color: #aac1c4 !important;
}

.ps-runtime-nav button[data-ps-shell-active="true"] {
  background: #103746 !important;
  box-shadow: inset 3px 0 0 var(--ps-shell-mint), 0 4px 14px rgba(0, 0, 0, 0.13);
  color: #ffffff !important;
}

.ps-runtime-nav button[data-ps-shell-active="true"] svg {
  color: var(--ps-shell-mint) !important;
}

.ps-runtime-nav button:focus-visible,
.ps-runtime-brand-row > button:focus-visible {
  outline: 2px solid var(--ps-shell-mint) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

.ps-runtime-header {
  border-color: var(--ps-shell-dark-border) !important;
  background: rgba(7, 27, 38, 0.98) !important;
  box-shadow: 0 4px 14px rgba(10, 32, 48, 0.13);
  color: var(--ps-shell-dark-text);
  font-family: var(--ps-shell-font);
}

.ps-runtime-search-wrap {
  min-width: 180px !important;
}

.ps-runtime-header .ps-runtime-search {
  border-color: var(--ps-shell-dark-border) !important;
  background: var(--ps-shell-dark-raised) !important;
  box-shadow: none;
  color: #ffffff !important;
}

.ps-runtime-header .ps-runtime-search::placeholder {
  color: #809da2 !important;
}

.ps-runtime-header .ps-runtime-search:focus {
  border-color: var(--ps-shell-mint) !important;
  background: #102f3b !important;
  box-shadow: 0 0 0 3px rgba(0, 229, 194, 0.15) !important;
}

.ps-runtime-header .ps-runtime-search-wrap > svg {
  color: #79979d !important;
}

.ps-runtime-header button[class*="border"] {
  border-color: var(--ps-shell-dark-border) !important;
  background: var(--ps-shell-dark-raised) !important;
  color: #c3d3d5 !important;
}

.ps-runtime-header button[class*="border"]:hover {
  border-color: #3b626b !important;
  background: var(--ps-shell-dark-hover) !important;
  color: #ffffff !important;
}

.ps-runtime-header button:focus-visible,
.ps-runtime-header .ps-runtime-search:focus-visible {
  outline: 2px solid var(--ps-shell-mint) !important;
  outline-offset: 2px;
}

.ps-runtime-header button[aria-label$="profile menu"] {
  border-color: #31525c !important;
  background: #102f3b !important;
  color: #ffffff !important;
}

.ps-runtime-header-context {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid var(--ps-shell-dark-border);
  color: #b7cbce;
  font-family: var(--ps-shell-font);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ps-runtime-header-context-version {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.ps-runtime-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ps-shell-mint);
  box-shadow: 0 0 0 3px rgba(0, 229, 194, 0.13);
}

.ps-runtime-footer {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) 8px;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  padding: 12px 2px 2px;
  border-top: 1px solid var(--ps-shell-dark-border);
  color: var(--ps-shell-dark-text);
  font-family: var(--ps-shell-font);
}

.ps-runtime-footer-copy {
  min-width: 0;
}

.ps-runtime-footer-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.ps-runtime-footer-version {
  color: var(--ps-shell-mint);
  font-variant-numeric: tabular-nums;
}

.ps-runtime-footer-meta {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ps-shell-dark-muted);
  font-size: 9px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-runtime-footer > .ps-runtime-status-dot {
  justify-self: end;
}

/* Executive Analytics keeps a light work surface inside the dark application shell. */
.ps-runtime-analytics-page {
  background: #f5f8f9;
}

.ps-runtime-analytics-titlebar h2 {
  color: var(--ps-shell-navy);
}

.ps-runtime-analytics-titlebar p:first-child {
  color: #327b78 !important;
}

.ps-runtime-kpi-grid {
  gap: 12px !important;
}

.ps-runtime-kpi-card {
  border-color: #d5e3e4 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(10, 32, 48, 0.05) !important;
}

.ps-runtime-kpi-card:hover {
  border-color: #abc7c9 !important;
  box-shadow: 0 5px 16px rgba(10, 32, 48, 0.08) !important;
}

.ps-runtime-analytics-overview,
.ps-runtime-filter-panel,
.ps-runtime-chart-surface {
  border-color: #d5e3e4 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 9px rgba(10, 32, 48, 0.045) !important;
}

.ps-runtime-filter-panel {
  background: #f0f6f6 !important;
}

.ps-runtime-filter-panel select {
  border-color: #c7d8d9 !important;
  background: #ffffff !important;
}

.ps-runtime-filter-panel select:focus-visible {
  border-color: var(--ps-shell-teal) !important;
  outline: 3px solid rgba(0, 151, 167, 0.12) !important;
}

.ps-runtime-chart-surface {
  container-type: inline-size;
  padding: 18px !important;
}

.ps-runtime-chart-grid {
  gap: 12px !important;
}

.ps-runtime-chart-card {
  min-height: 250px !important;
  padding: 16px !important;
  border-color: #d8e4e5 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ps-runtime-chart-card:hover {
  border-color: #aac7c8 !important;
  box-shadow: 0 5px 18px rgba(10, 32, 48, 0.07) !important;
}

.ps-runtime-chart-card h5 {
  overflow: visible !important;
  color: var(--ps-shell-navy);
  font-weight: 700 !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

.ps-runtime-chart-card > button:last-child {
  color: #147875 !important;
  font-weight: 700;
}

.ps-runtime-chart-card > button:last-child:hover {
  color: #075c5b !important;
}

@container (min-width: 920px) {
  .ps-runtime-chart-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  .ps-runtime-chart-grid > [data-ps-chart-grid-span="3"] {
    grid-column: span 3 / span 3 !important;
  }

  .ps-runtime-chart-grid > [data-ps-chart-grid-span="4"] {
    grid-column: span 4 / span 4 !important;
  }

  .ps-runtime-chart-grid > [data-ps-chart-grid-span="5"] {
    grid-column: span 5 / span 5 !important;
  }

  .ps-runtime-chart-grid > [data-ps-chart-grid-span="6"] {
    grid-column: span 6 / span 6 !important;
  }

  .ps-runtime-chart-grid > [data-ps-chart-grid-span="12"] {
    grid-column: span 12 / span 12 !important;
  }
}

@media (min-width: 1024px) {
  .ps-runtime-sidebar {
    position: sticky !important;
    top: 0;
    height: 100vh;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .ps-runtime-brand-row > button {
    display: none !important;
  }

  .ps-runtime-sidebar[data-ps-compact="true"] {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border-right-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .ps-runtime-sidebar[data-ps-compact="true"] > * {
    display: none !important;
  }
}

@media (max-width: 1279px) {
  .ps-runtime-header-context {
    display: none;
  }
}

@media (max-width: 1023px) {
  .ps-runtime-sidebar {
    width: min(300px, calc(100vw - 24px)) !important;
    height: 100vh;
    overflow: hidden !important;
    box-shadow: 20px 0 42px rgba(2, 15, 22, 0.28) !important;
  }

}

@media (max-width: 640px) {
  .ps-runtime-header {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .ps-runtime-search-wrap {
    min-width: 0 !important;
  }

  .ps-runtime-chart-surface {
    padding: 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-runtime-sidebar,
  .ps-runtime-header,
  .ps-runtime-nav button,
  .ps-runtime-chart-card {
    transition: none !important;
  }
}
