@import url("./style-base.css?v=20260811-interface-semantics-16");
@import url("./style-layout.css?v=20260811-interface-semantics-16");
@import url("./style-suporte.css?v=20260811-unified-night-failure-6");
@import url("./style-dispositivos.css?v=20260813-alert-badge-circle-1");
@import url("./style-mapas.css?v=20260804-light-device-modal-2");
@import url("./style-configuracoes.css?v=20260805-active-switch-green-5");
@import url("./style-admin-tabelas.css?v=20260717-installers-status-menu-1");
@import url("./style-admin-modais.css?v=20260813-company-field-cursor-1");
@import url("./style-temas-responsivo.css?v=20260710-login-mobile-fix-1");
@import url("./style-instalacao.css?v=20260710-login-mobile-fix-1");

/* Keep the map and its side panel filling the available desktop viewport,
   including empty states with no central or device rows. */
@media (min-width: 901px) {
  .content-body.content-body--devices-explorer {
    height: calc(100dvh - var(--app-topbar-height)) !important;
    min-height: calc(100dvh - var(--app-topbar-height)) !important;
    overflow: hidden !important;
  }

  .content-body--devices-explorer > .devices-explorer {
    height: 100% !important;
    min-height: 0 !important;
  }

  .content-body--devices-explorer .devices-explorer__layout {
    --devices-explorer-card-height: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  .content-body--devices-explorer .devices-explorer__map-card,
  .content-body--devices-explorer .devices-explorer__sidebar {
    height: 100% !important;
    min-height: 0 !important;
    align-self: stretch;
  }
}

/* Interactive sidebar rows use the same action cursor as the rest of the app. */
.sidebar :is(a[href], button:not(:disabled), [role="button"]:not([aria-disabled="true"])),
.sidebar :is(a[href], button:not(:disabled), [role="button"]:not([aria-disabled="true"])) *,
.devices-explorer__sidebar :is(
  button:not(:disabled),
  [role="button"]:not([aria-disabled="true"]),
  [role="tab"]:not([aria-disabled="true"]),
  [data-devices-map-target]
),
.devices-explorer__sidebar :is(
  button:not(:disabled),
  [role="button"]:not([aria-disabled="true"]),
  [role="tab"]:not([aria-disabled="true"]),
  [data-devices-map-target]
) * {
  cursor: pointer !important;
}

.devices-explorer__sidebar :is(input, textarea, [contenteditable="true"]) {
  cursor: text !important;
}

.devices-explorer__sidebar :is(
  .devices-explorer__filter-trigger,
  .devices-explorer__filter-option
),
.devices-explorer__sidebar :is(
  .devices-explorer__filter-trigger,
  .devices-explorer__filter-option
) * {
  cursor: pointer !important;
}

/* Mobile shell and client map layout. Desktop rules remain in the imported modules. */
@media (max-width: 900px) {
  html,
  body,
  #app,
  .layout-shell,
  .content,
  .content-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html,
  body {
    overflow-x: hidden !important;
  }

  body.sidebar-mobile-open {
    overflow: hidden !important;
  }

  body.sidebar-mobile-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgb(0 0 0 / 52%);
    backdrop-filter: blur(2px);
    pointer-events: none;
  }

  .layout-shell {
    display: block !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }

  .sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(82vw, 320px) !important;
    max-width: 320px !important;
    min-width: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    transform: translate3d(-105%, 0, 0) !important;
    transition: transform 240ms ease !important;
    box-shadow: 0 24px 80px rgb(0 0 0 / 45%) !important;
  }

  body.sidebar-mobile-open .sidebar {
    transform: translate3d(0, 0, 0) !important;
  }

  .content {
    margin: 0 !important;
    transform: none !important;
  }

  .app-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 700 !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    padding-inline: 14px !important;
  }

  .content-body.content-body--devices-explorer {
    height: auto !important;
    min-height: calc(100dvh - 64px) !important;
    padding: 16px 40px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .devices-explorer,
  .devices-explorer * {
    min-width: 0;
    box-sizing: border-box;
  }

  .devices-explorer,
  .devices-explorer__layout,
  .devices-explorer__map-card,
  .devices-explorer__sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .devices-explorer {
    overflow: visible !important;
  }

  .devices-explorer__layout,
  .devices-explorer__layout.is-map-expanded {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .devices-explorer__map-card {
    position: relative !important;
    height: 50dvh !important;
    min-height: 420px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  .devices-explorer__map-shell,
  .devices-explorer__map-frame,
  .devices-explorer__map-frame .leaflet-container,
  .devices-explorer__map-frame [data-devices-explorer-map] {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .devices-explorer__toolbar {
    left: 16px !important;
    right: 16px !important;
    top: 16px !important;
    width: auto !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .devices-explorer__search {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .devices-explorer__filter,
  .devices-explorer__filter-trigger {
    width: 100% !important;
    max-width: 100% !important;
  }

  .devices-explorer__filter-trigger {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .devices-explorer__fit {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
  }

  .devices-explorer__legend {
    left: 16px !important;
    right: auto !important;
    bottom: 16px !important;
    max-width: calc(100% - 32px) !important;
  }

  .devices-explorer__sidebar,
  .devices-explorer__layout.is-map-expanded .devices-explorer__sidebar {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    height: 50dvh !important;
    min-height: 360px !important;
    max-height: none !important;
    overflow: hidden !important;
    opacity: 1 !important;
    border-radius: 12px !important;
  }

  .devices-explorer__sidebar-content,
  .devices-explorer__layout.is-map-expanded .devices-explorer__sidebar-content {
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .devices-explorer__sidebar-list,
  .devices-explorer__central-list,
  .devices-explorer__device-list {
    max-height: 62dvh !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .devices-explorer__sidebar-rail,
  .devices-explorer__layout.is-map-expanded .devices-explorer__sidebar-rail {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .app-topbar {
    height: 64px !important;
    min-height: 64px !important;
    padding-inline: 12px !important;
  }

  .content-body.content-body--devices-explorer {
    padding: 16px 32px !important;
  }

  .devices-explorer__layout,
  .devices-explorer__layout.is-map-expanded {
    gap: 16px !important;
  }

  .devices-explorer__map-card {
    height: 50svh !important;
    min-height: 420px !important;
  }

  .devices-explorer__toolbar {
    left: 16px !important;
    right: 16px !important;
    top: 16px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px !important;
    gap: 8px !important;
  }

  .devices-explorer__fit {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
  }

  .devices-explorer__legend {
    left: 16px !important;
    bottom: 16px !important;
    max-width: calc(100% - 32px) !important;
    transform: none;
  }

  .devices-explorer__sidebar {
    min-height: 320px !important;
    border-radius: 12px !important;
  }
}

/* ORBLIGHT dashboard overview layout. */
.layout-shell.is-dashboard-console-layout {
  --sidebar-width: 256px;
  --app-topbar-height: 64px;
}

.layout-shell.is-dashboard-console-layout.is-sidebar-collapsed {
  --sidebar-width: 56px;
}

.layout-shell.is-dashboard-console-layout .content,
.layout-shell.is-dashboard-console-layout .content-body {
  background: #0a0a0a;
}

.layout-shell.is-dashboard-console-layout .app-topbar {
  padding-right: 31px;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.layout-shell.is-dashboard-console-layout .app-topbar__actions {
  gap: 16px;
}

.layout-shell.is-dashboard-console-layout .app-topbar__action--theme,
.layout-shell.is-dashboard-console-layout .app-topbar__action--incidents,
.layout-shell.is-dashboard-console-layout .app-topbar__action--notify {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  color: #fafafa;
}

.layout-shell.is-dashboard-console-layout .app-topbar__action svg,
.layout-shell.is-dashboard-console-layout .app-topbar__theme-icons,
.layout-shell.is-dashboard-console-layout .app-topbar__theme-icons svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.layout-shell.is-dashboard-console-layout .app-topbar__action--theme:hover,
.layout-shell.is-dashboard-console-layout .app-topbar__action--incidents:hover,
.layout-shell.is-dashboard-console-layout .app-topbar__action--notify:hover {
  border-color: transparent;
  background: #262626;
}

.layout-shell.is-dashboard-console-layout .app-topbar__badge {
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

.layout-shell.is-dashboard-console-layout .app-topbar__badge--counter,
.layout-shell.is-device-operations-layout .app-topbar__badge--counter {
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 2px;
  background: #e7000b;
  color: #ffffff;
  font-size: 10px;
  line-height: 14.2857px;
  font-weight: 700;
}

.app-topbar__badge--counter {
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 2px;
  border-radius: 999px;
  background: #e7000b;
  color: #ffffff;
  font-size: 10px;
  line-height: 14.2857px;
  font-weight: 700;
}

.devices-explorer__toolbar .devices-explorer__filter-trigger,
.devices-explorer__toolbar .devices-explorer__filter-trigger *,
.devices-explorer__toolbar .devices-explorer__filter-option,
.devices-explorer__toolbar .devices-explorer__filter-option * {
  cursor: pointer !important;
}

.devices-explorer [data-devices-panel-collapse],
.devices-explorer [data-devices-panel-collapse] * {
  cursor: pointer !important;
}

.content-body.content-body--dashboard-overview {
  padding: 24px 48px;
}

.content-body--dashboard-overview .page-header {
  margin-bottom: 24px;
}

.content-body--dashboard-overview .page-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fafafa;
}

.content-body--dashboard-overview .page-header p {
  margin: 0;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.content-body--dashboard-overview .dashboard-overview {
  gap: 24px;
}

.content-body--dashboard-overview .overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.content-body--dashboard-overview .overview-card {
  height: 150px;
  min-height: 150px;
  padding: 24px;
  gap: 24px;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121212;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.content-body--dashboard-overview .overview-card__head {
  min-height: 28px;
  padding-bottom: 8px;
  align-items: flex-start;
  gap: 8px;
}

.content-body--dashboard-overview .overview-card__head h3 {
  margin: 0;
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

.content-body--dashboard-overview .overview-card__body {
  min-height: 0;
  margin-top: 0;
  gap: 0;
}

.content-body--dashboard-overview .overview-card__icon {
  width: 16px;
  height: 20px;
  flex: 0 0 16px;
  margin-top: 0;
}

.content-body--dashboard-overview .overview-card__icon svg {
  width: 16px;
  height: 16px;
}

.content-body--dashboard-overview .overview-card__value {
  color: #fafafa;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.content-body--dashboard-overview .overview-card__helper {
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.content-body--dashboard-overview .overview-card--success .overview-card__value {
  color: #16a34a;
}

.content-body--dashboard-overview .overview-card--success .overview-card__icon {
  color: #22c55e;
}

.content-body--dashboard-overview .overview-card--danger .overview-card__value {
  color: #dc2626;
}

.content-body--dashboard-overview .overview-card--danger .overview-card__icon,
.content-body--dashboard-overview .overview-card--danger-strong .overview-card__icon {
  color: #ef4444;
}

.content-body--dashboard-overview .overview-card--primary .overview-card__icon {
  color: #3b82f6;
}

.content-body--dashboard-overview .overview-card--warning-soft .overview-card__value {
  color: #ea580c;
}

.content-body--dashboard-overview .overview-card--warning-soft .overview-card__icon {
  color: #f97316;
}

.content-body--dashboard-overview .overview-card--warning .overview-card__icon {
  color: #eab308;
}

.content-body--dashboard-overview .overview-card--warning .overview-card__value,
.content-body--dashboard-overview .overview-card--danger-strong .overview-card__value {
  color: #fafafa;
}

.content-body--dashboard-overview .dashboard-section-title {
  margin: 0 0 16px;
  color: #fafafa;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.content-body--dashboard-overview .dashboard-map-card {
  min-height: 494px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121212;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.content-body--dashboard-overview .dashboard-map-card__head {
  min-height: 20px;
  margin: 0;
  padding: 0 24px;
  gap: 8px;
}

.content-body--dashboard-overview .dashboard-map-card__title {
  gap: 8px;
  color: #fafafa;
  font-family: "Inter Local", Inter, sans-serif;
  font-size: 16px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.content-body--dashboard-overview .dashboard-map-card__pin,
.content-body--dashboard-overview .dashboard-map-card__pin svg {
  width: 20px;
  height: 20px;
  color: #fafafa;
  stroke-width: 2;
}

.content-body--dashboard-overview .dashboard-map-legend {
  gap: 16px;
  justify-content: normal;
  color: #fafafa;
  font-family: "Inter Local", Inter, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.content-body--dashboard-overview .dashboard-map-legend__item,
.content-body--dashboard-overview .dashboard-map-legend__shape-group {
  gap: 4px;
}

.content-body--dashboard-overview .dashboard-map-legend__shape {
  width: 12px;
  height: 12px;
}

.content-body--dashboard-overview .dashboard-map-legend__shape--central {
  width: 0;
  height: 0;
  border-left-width: 5px;
  border-right-width: 5px;
  border-bottom: 8px solid #a855f7;
}

.content-body--dashboard-overview .dashboard-map-legend__shape--device {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: oklch(55.1% 0.027 264.364);
}

.content-body--dashboard-overview .dashboard-map-legend__shape--communication {
  background: oklch(62.7% 0.265 303.9);
}

.content-body--dashboard-overview .dashboard-map-legend__shape--correct {
  background: oklch(72.3% 0.219 149.579);
}

.content-body--dashboard-overview .dashboard-map-legend__shape--incorrect {
  background: oklch(76.9% 0.188 70.08);
}

.content-body--dashboard-overview .dashboard-map-legend__shape--offline {
  background: oklch(63.7% 0.237 25.331);
}

.content-body--dashboard-overview .dashboard-map-legend__shape--unknown {
  background: oklch(62.3% 0.214 259.815);
}

.content-body--dashboard-overview .dashboard-map-legend__shape--incorrect,
.content-body--dashboard-overview .dashboard-map-legend__shape--offline,
.content-body--dashboard-overview .dashboard-map-legend__shape--unknown {
  border-radius: 6px;
}

.content-body--dashboard-overview .device-map {
  height: 400px;
  margin: 0 24px;
  border: 0;
  border-radius: 8px;
}

.content-body--dashboard-overview .device-map__frame,
.content-body--dashboard-overview .device-map__canvas {
  height: 400px;
  min-height: 400px;
}

.content-body--dashboard-overview .device-map__canvas .leaflet-overlay-pane,
.content-body--dashboard-overview .device-map__canvas .leaflet-marker-pane {
  transition: opacity 120ms ease-out;
}

.content-body--dashboard-overview .device-map__canvas.is-initializing .leaflet-overlay-pane,
.content-body--dashboard-overview .device-map__canvas.is-initializing .leaflet-marker-pane {
  opacity: 0 !important;
}

.device-map__canvas.leaflet-container:focus,
.device-map__canvas.leaflet-container:focus-visible,
.devices-explorer__map-frame .leaflet-container:focus,
.devices-explorer__map-frame .leaflet-container:focus-visible {
  outline: none !important;
}

/* ORBLIGHT device operations summary. */
.content-body.content-body--dashboard-devices {
  padding: 24px 48px 42px;
  font-family: "Inter Local", Inter, sans-serif;
  background: #0a0a0a;
}

.content-body--dashboard-devices .page-header {
  margin-bottom: 24px;
}

.content-body--dashboard-devices .page-header h1 {
  margin: 0;
  color: #fafafa;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.content-body--dashboard-devices .page-header p {
  margin: 0;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 24px;
}

.content-body--dashboard-devices .devices-dashboard,
.content-body--dashboard-devices .devices-dashboard__top {
  gap: 24px;
}

.content-body--dashboard-devices .devices-dashboard__panel {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #141414;
  box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.content-body--dashboard-devices .devices-dashboard__panel-head {
  min-height: 28px;
  margin: 0;
  padding: 0 24px;
  gap: 8px;
}

.content-body--dashboard-devices .devices-dashboard__panel-head h3 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.content-body--dashboard-devices .devices-dashboard__panel-icon,
.content-body--dashboard-devices .devices-dashboard__panel-icon svg {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
}

.content-body--dashboard-devices .devices-dashboard__panel-body {
  padding: 0 24px;
}

.content-body--dashboard-devices .devices-central-chart {
  width: 100%;
  height: 300px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-body--dashboard-devices .devices-central-chart__plot {
  width: 100%;
  height: 224px;
  display: block;
  overflow: visible;
}

.content-body--dashboard-devices .devices-central-chart__disc {
  display: block;
  border-radius: 999px;
  background: transparent;
  transform-origin: center;
  will-change: clip-path;
}

.content-body--dashboard-devices .devices-central-chart__slice {
  cursor: default;
  transition: filter 120ms ease, opacity 120ms ease;
}

.content-body--dashboard-devices .devices-central-chart__slice:hover {
  filter: brightness(1.08);
  opacity: 0.94;
}

.content-body--dashboard-devices .devices-central-chart__label-line {
  fill: none;
  stroke: rgba(163, 163, 163, 0.28);
  stroke-width: 1;
}

.content-body--dashboard-devices .devices-central-chart__label {
  font-family: "Inter Local", Inter, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.content-body--dashboard-devices .devices-central-legend {
  min-height: 72px;
  margin: 0;
  padding: 0 54px;
  align-content: flex-start;
  justify-content: center;
  gap: 0 10px;
}

.content-body--dashboard-devices .devices-central-legend__item {
  gap: 4px;
  font-size: 16px;
  line-height: 24px;
}

.content-body--dashboard-devices .devices-central-legend__swatch {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.content-body--dashboard-devices .devices-health-list {
  gap: 16px;
  padding-top: 0;
}

.content-body--dashboard-devices .devices-health-row {
  gap: 8px;
}

.content-body--dashboard-devices .devices-health-row__name,
.content-body--dashboard-devices .devices-health-row__value {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.content-body--dashboard-devices .devices-health-row__bar {
  height: 8px;
  background: rgba(0, 201, 80, 0.2);
}

.content-body--dashboard-devices .devices-health-row__meta {
  font-size: 12px;
  line-height: 16px;
}

.content-body--dashboard-devices .devices-dashboard__panel--pending {
  height: 382px;
  min-height: 382px;
}

.content-body--dashboard-devices .devices-dashboard__panel--pending .devices-dashboard__panel-body {
  height: 280px;
  min-height: 0;
}

.content-body--dashboard-devices .devices-pending-list {
  height: 280px;
  padding-right: 16px;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #404040 transparent;
}

.content-body--dashboard-devices .devices-pending-item {
  box-sizing: border-box;
  height: 58px;
  min-height: 58px;
  padding: 8px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: 20px 20px;
  column-gap: 11px;
  align-items: center;
  border-radius: 10px;
  background: rgba(38, 38, 38, 0.3);
}

.content-body--dashboard-devices .devices-pending-item__icon {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #f97316;
  background: rgba(124, 45, 18, 0.3);
}

.content-body--dashboard-devices .devices-pending-item__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-body--dashboard-devices .devices-pending-item__head {
  grid-column: 2;
  margin: 0;
  display: block;
}

.content-body--dashboard-devices .devices-pending-item__name {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-body--dashboard-devices .devices-pending-item__meta {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.content-body--dashboard-devices .devices-pending-item__meta > span {
  padding: 0 6px;
  border-radius: 4px;
  color: #d4d4d4;
  background: #262626;
}

/* Pending installations must remain light and readable in the light theme. */
:root[data-theme="light"] .content-body--dashboard-devices .devices-pending-list {
  scrollbar-color: #d4d4d4 transparent;
}

:root[data-theme="light"] .content-body--dashboard-devices .devices-pending-item {
  color: #171717;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

:root[data-theme="light"] .content-body--dashboard-devices .devices-pending-item__icon {
  color: #f97316;
  background: #fff1e8;
}

:root[data-theme="light"] .content-body--dashboard-devices .devices-pending-item__name {
  color: #0a0a0a;
}

:root[data-theme="light"] .content-body--dashboard-devices .devices-pending-item__meta {
  color: #737373;
}

:root[data-theme="light"] .content-body--dashboard-devices .devices-pending-item__meta > span {
  color: #404040;
  background: #f5f5f5;
}

/* ORBLIGHT incident center layout. */
.content-body.content-body--dashboard-alerts {
  padding: 24px 48px 42px;
  font-family: "Inter Local", Inter, sans-serif;
  color: #fafafa;
  background: #0a0a0a;
}

.content-body--dashboard-alerts .page-header {
  margin-bottom: 24px;
}

.content-body--dashboard-alerts .page-header h1 {
  margin: 0;
  color: #0a0a0a;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.content-body--dashboard-alerts .page-header p {
  margin: 0;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.incident-center {
  display: grid;
  gap: 24px;
}

.incident-center button,
.incident-center input,
.incident-center select,
.incident-center textarea {
  font: inherit;
  letter-spacing: 0;
}

.incident-center button {
  color: inherit;
}

.incident-center svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.incident-center__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.incident-center__summary-card,
.incident-center__list-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121212;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.incident-center__summary-card {
  box-sizing: border-box;
  height: 162px;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.incident-center__summary-card > header {
  min-height: 36px;
  padding: 0 24px 8px;
}

.incident-center__summary-card h2 {
  margin: 0;
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.incident-center__summary-content {
  padding: 0 24px;
}

.incident-center__summary-content strong {
  display: block;
  color: #fafafa;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}

.incident-center__summary-content p {
  margin: 4px 0 0;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.incident-center__summary-card--critical h2,
.incident-center__summary-card--critical strong {
  color: #dc2626;
}

.incident-center__summary-card--warning h2,
.incident-center__summary-card--warning strong {
  color: #ca8a04;
}

.incident-center__toolbar {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.incident-center__tabs {
  height: 36px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #262626;
  color: #a3a3a3;
}

.incident-center__tabs button {
  height: 28px;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.incident-center__tabs,
.incident-center__tabs * {
  cursor: default !important;
}

.incident-center__tabs button.is-active {
  color: #fafafa;
  background: #070707;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.incident-center__tabs button span {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fafafa;
  background: #262626;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.incident-center__tabs button span[hidden] {
  display: none;
}

.incident-center__search {
  position: relative;
  display: block;
  flex: 1 1 220px;
  width: 100%;
  min-width: 220px;
  max-width: 384px;
}

.incident-center__search > span {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: #a3a3a3;
  transform: translateY(-50%);
  pointer-events: none;
}

.incident-center__search > span svg {
  display: block;
  width: 16px;
  height: 16px;
}

.incident-center__search input,
.incident-center__pagination select {
  appearance: auto;
  color-scheme: dark;
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
}

.incident-center__search input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 4px 34px !important;
  font-size: 14px;
  line-height: 20px;
}

.incident-center__search input::placeholder {
  color: #737373;
  opacity: 1;
}

.incident-center__search input::-webkit-search-cancel-button {
  display: none;
}

.incident-center__search > button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 24px;
  height: 24px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #a3a3a3;
  transform: translateY(-50%);
  cursor: pointer;
}

.incident-center__search > button[hidden] {
  display: none;
}

.incident-center__sort {
  display: flex;
  align-items: center;
  gap: 4px;
}

.incident-center__sort-menu {
  position: relative;
  width: 150px;
  flex: 0 0 150px;
}

.incident-center .incident-center__sort-trigger {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #171717;
  font: 500 14px/20px "Inter Local", Inter, sans-serif;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.incident-center .incident-center__sort-trigger > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #737373;
}

.incident-center__sort-options {
  position: absolute;
  z-index: 40;
  top: -3px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  animation: alerts-sort-menu-fade-in 140ms ease-out both;
}

@keyframes alerts-sort-menu-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.incident-center__sort-options[hidden] {
  display: none;
}

.incident-center__sort-options button {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f5f5f5;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

.incident-center__sort-options button:hover,
.incident-center__sort-options button:focus-visible,
.incident-center__sort-options button[aria-selected='true'] {
  background: #262626;
}

.incident-center__sort-options button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  opacity: 0;
}

.incident-center__sort-options button[aria-selected='true'] svg {
  opacity: 1;
}

.incident-center__sort > button,
.incident-center__pagination nav button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fafafa;
  cursor: pointer;
}

.incident-center__tabs button:hover,
.incident-center__search > button:hover,
.incident-center__sort > button:hover,
.incident-center__pagination nav button:hover:not(:disabled),
.incident-center__resolve-button:hover,
.incident-center__dialog-button:hover {
  background-color: #262626;
}

.incident-center__tabs button.is-active:hover {
  background-color: #070707;
}

.incident-center button:focus-visible,
.incident-center input:focus-visible,
.incident-center select:focus-visible,
.incident-center textarea:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 1px;
}

.incident-center__list-card {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.incident-center__list-card > header {
  min-height: 24px;
  padding: 0 24px;
}

.incident-center__list-card > header h2 {
  margin: 0;
  color: #fafafa;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.incident-center__list-content {
  min-width: 0;
  padding: 0 24px;
}

.incident-center__empty {
  min-height: 210px;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: #a3a3a3;
  text-align: center;
}

.incident-center__empty > span,
.incident-center__empty > span svg {
  width: 48px;
  height: 48px;
}

.incident-center__empty > span {
  margin-bottom: 16px;
  color: rgba(163, 163, 163, 0.4);
}

.incident-center__empty > span.is-success {
  color: #22c55e;
}

.incident-center__empty strong {
  color: #a3a3a3;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
}

.incident-center__empty p {
  margin: 0;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
}

.incident-center__skeletons,
.incident-center__incidents {
  display: grid;
  gap: 12px;
}

.incident-center__skeletons > div {
  height: 64px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.incident-center__skeletons > div > span {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 4px;
  background: #262626;
}

.incident-center__skeletons p {
  margin: 0;
  flex: 1;
  display: grid;
  gap: 8px;
}

.incident-center__skeletons i {
  display: block;
  height: 12px;
  max-width: 192px;
  border-radius: 4px;
  background: #262626;
}

.incident-center__skeletons i + i {
  max-width: 128px;
}

.incident-center__incident {
  min-width: 0;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.incident-center__incident.is-expandable {
  cursor: default;
}

.incident-center__incident--critical {
  border-color: rgba(153, 27, 27, 0.8);
  background: rgba(127, 29, 29, 0.2);
}

.incident-center__incident--warning {
  border-color: rgba(133, 77, 14, 0.8);
  background: rgba(113, 63, 18, 0.2);
}

.incident-center__incident--info {
  border-color: rgba(30, 64, 175, 0.8);
  background: rgba(30, 58, 138, 0.2);
}

.incident-center__incident-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: 0 0 20px;
  color: #3b82f6;
}

.incident-center__incident-icon svg {
  width: 20px;
  height: 20px;
}

.incident-center__incident--critical .incident-center__incident-icon {
  color: #fb2c36;
}

.incident-center__incident--warning .incident-center__incident-icon {
  color: #eab308;
}

.incident-center__incident-main {
  min-width: 0;
  flex: 1;
}

.incident-center__incident-heading {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.incident-center__incident-heading > strong {
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.incident-center__category {
  padding: 2px 8px;
  border-radius: 4px;
  color: #d4d4d4;
  background: #262626;
  font-size: 12px;
  line-height: 16px;
}

.incident-center__badge {
  padding: 2px 6px;
  border-radius: 6px;
  color: #fafafa;
  background: #262626;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.incident-center__badge--danger {
  background: #b91c1c;
}

.incident-center__incident-message {
  margin: 0 0 8px;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
}

.incident-center__incident-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.incident-center__resolution,
.incident-center__episodes {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.incident-center__episodes strong,
.incident-center__episodes p {
  margin: 0;
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.incident-center__episodes-list {
  margin-top: 4px;
  display: grid;
  gap: 2px;
}

.incident-center__episodes-list p {
  display: flex;
  align-items: center;
  gap: 4px;
}

.incident-center__episodes-list time {
  font-variant-numeric: tabular-nums;
}

.incident-center__episode-arrow {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.incident-center__episode-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.incident-center__incident-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.incident-center__resolve-button {
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: transparent;
  color: #fafafa;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
}

.incident-center__expand-icon {
  width: 16px;
  height: 16px;
  color: #a3a3a3;
}

.incident-center__pagination {
  margin-top: 16px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.incident-center__pagination > span,
.incident-center__pagination label {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
}

.incident-center__pagination > div,
.incident-center__pagination label,
.incident-center__pagination nav {
  display: flex;
  align-items: center;
}

.incident-center__pagination > div {
  gap: 16px;
}

.incident-center__pagination label {
  gap: 8px;
}

.incident-center__pagination select {
  width: 70px;
  height: 32px;
  padding: 4px 8px;
}

.incident-center__pagination strong {
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.incident-center__pagination nav {
  gap: 4px;
}

.incident-center__pagination nav button {
  width: 32px;
  height: 32px;
}

.incident-center__pagination nav button:disabled {
  color: #525252;
  cursor: default;
  opacity: 0.5;
}

.incident-center__dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}

.incident-center__dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: default;
}

.incident-center__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #0a0a0a;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.incident-center__dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
}

.incident-center__dialog header {
  padding-right: 24px;
}

.incident-center__dialog h2 {
  margin: 0;
  color: #fafafa;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.incident-center__dialog p {
  margin: 4px 0 0;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
}

.incident-center__dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
  color: #fafafa;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  line-height: 20px;
}

.incident-center__dialog textarea::placeholder {
  color: #737373;
}

.incident-center__dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.incident-center__dialog-button {
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: transparent;
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
}

.incident-center__dialog-button--primary {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.incident-center__dialog-button--primary:hover {
  background: #15803d;
}

.incident-center__dialog-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 900px) {
  .content-body.content-body--dashboard-alerts {
    padding: 20px 16px 32px;
  }

  .incident-center__summary {
    grid-template-columns: 1fr;
  }

  .incident-center__search {
    order: 3;
    max-width: none;
  }

  .incident-center__sort {
    order: 4;
  }

  .incident-center__incident {
    gap: 10px;
  }

  .incident-center__pagination,
  .incident-center__pagination > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .incident-center__pagination nav button:first-child,
  .incident-center__pagination nav button:last-child {
    display: none;
  }
}

@media (max-width: 560px) {
  .incident-center__tabs,
  .incident-center__sort {
    width: 100%;
  }

  .incident-center__tabs button {
    min-width: 0;
    flex: 1;
    padding-inline: 8px;
  }

  .incident-center__sort-menu {
    width: auto;
    flex: 1 1 auto;
  }

  .incident-center__sort-trigger {
    width: 100%;
    flex: 1;
  }

  .incident-center__incident {
    position: relative;
    padding: 14px;
  }

  .incident-center__incident-actions {
    align-self: stretch;
  }

  .incident-center__incident-meta {
    gap: 4px 12px;
  }
}

/* ORBLIGHT night operations layout. */
.content-body.content-body--dashboard-night {
  position: relative;
  padding: 24px 48px 42px;
  color: #fafafa;
  background: #0a0a0a;
  font-family: "Inter Local", Inter, sans-serif;
}

.content-body--dashboard-night .page-header {
  margin-bottom: 24px;
}

.content-body--dashboard-night .page-header h1 {
  margin: 0;
  color: #fafafa;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.content-body--dashboard-night .page-header p {
  margin: 0;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.night-operations {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.night-operations button,
.night-operations input,
.night-operations select,
.night-operations textarea {
  color: inherit;
  font: inherit;
  letter-spacing: 0;
}

.night-operations svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.night-operations__period-actions {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

@media (min-width: 961px) {
  .content-body--dashboard-night #nightOperationsHeader {
    position: absolute;
    z-index: 2;
    top: 48px;
    right: 48px;
  }
}

.night-operations__button {
  box-sizing: border-box;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #02ab53;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #02ab53;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.night-operations__button,
.night-operations__button * {
  cursor: default !important;
}

.night-operations__button,
.night-operations__button:hover,
.night-operations__button.is-active,
.night-operations__button span,
.night-operations__button svg {
  color: #02ab53 !important;
}

.night-operations__button:hover,
.night-operations__button.is-active {
  background: rgba(2, 171, 83, 0.1);
}

.night-operations__button.is-active {
  border-color: #02ab53;
  color: #02ab53;
}

.night-operations__button[data-night-total].is-active,
.night-operations__button[data-night-total].is-active:hover {
  border-color: #00b85a;
  background: #00b85a;
  color: #ffffff !important;
  opacity: 1;
}

.night-operations__button[data-night-total].is-active span,
.night-operations__button[data-night-total].is-active svg {
  color: #ffffff !important;
}

.night-operations__button--ghost {
  border-color: transparent;
  background: transparent;
  color: #ffffff !important;
}

.night-operations__button--ghost span,
.night-operations__button--ghost svg {
  color: #ffffff !important;
}

.night-operations__button--ghost:hover,
.night-operations__button--ghost.is-selected {
  background: #171717;
  color: #ffffff !important;
}

.night-operations__button--ghost.is-selected:disabled {
  opacity: 1;
}

.night-operations__calendar-wrap,
.night-operations__select,
.night-operations__columns {
  position: relative;
}

.night-operations__calendar {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  right: 0;
  width: 278px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #121212;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  animation: alerts-sort-menu-fade-in 140ms ease-out both;
}

.night-operations__calendar[hidden],
.night-operations__menu[hidden],
.night-operations__columns-menu[hidden] {
  display: none;
}

.night-operations__calendar header {
  height: 32px;
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 4px;
}

.night-operations__calendar header strong {
  text-align: center;
  text-transform: capitalize;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.night-operations__calendar header button,
.night-operations__calendar-grid button {
  border: 0;
  background: transparent;
  color: #e5e5e5;
  cursor: default;
}

.night-operations__calendar header button {
  width: 28px;
  height: 28px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(2, 171, 83, 0.7);
  border-radius: 7px;
  color: #02ab53;
}

.night-operations__calendar header button:hover {
  background: rgba(2, 171, 83, 0.1);
}

.night-operations__calendar-week,
.night-operations__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.night-operations__calendar-week {
  margin-top: 6px;
}

.night-operations__calendar-week span {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.night-operations__calendar-grid button,
.night-operations__calendar-grid > span {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  min-width: 0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
}

.night-operations__calendar-grid button:hover:not(:disabled) {
  background: #262626;
}

.night-operations__calendar-grid button.is-selected {
  background: #02ab53;
  color: #fafafa;
  font-weight: 600;
}

.night-operations__calendar-grid button.is-today:not(.is-selected) {
  background: #262626;
  color: #fafafa;
}

.night-operations__calendar-grid button.is-outside {
  color: #737373;
}

.night-operations__calendar-grid button:disabled {
  color: #525252;
  cursor: default;
}

.night-operations__calendar,
.night-operations__calendar * {
  cursor: default !important;
}

.night-operations__summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.night-operations__summary-card,
.night-operations__summary-skeleton {
  min-height: 104px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #121212;
}

.night-operations__summary-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.night-operations__summary-card span {
  color: #a3a3a3;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.night-operations__summary-card strong {
  color: #fafafa;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.night-operations__summary-card.is-success strong {
  color: #16a34a;
}

.night-operations__summary-card.is-danger strong {
  color: #dc2626;
}

.night-operations__summary-card.is-info strong {
  color: #2563eb;
}

.night-operations__summary-skeleton {
  background: linear-gradient(90deg, #151515 20%, #202020 50%, #151515 80%);
  background-size: 200% 100%;
  animation: incident-center-skeleton 1.25s linear infinite;
}

.night-operations__table-card {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.night-operations__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.night-operations__filters {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.night-operations__search {
  position: relative;
  width: min(384px, 100%);
  flex: 0 1 384px;
}

.night-operations__search svg {
  position: absolute;
  z-index: 1;
  left: 11px;
  top: 50%;
  color: #a3a3a3;
  transform: translateY(-50%);
  pointer-events: none;
}

.night-operations__search input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 0 12px 0 36px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  outline: none;
  background: #171717;
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
}

.night-operations__search input::placeholder {
  color: #737373;
  opacity: 1;
}

.night-operations__select > button {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  height: 36px;
  padding: 0 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #171717;
  color: #fafafa;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  cursor: default;
}

.night-operations__select > button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.night-operations__select > button svg {
  flex: 0 0 16px;
  color: #737373;
}

.night-operations__menu,
.night-operations__columns-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 4px);
  right: auto;
  left: 0;
  width: max-content;
  min-width: 180px;
  max-width: 280px;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  animation: alerts-sort-menu-fade-in 140ms ease-out both;
}

.night-operations__menu button {
  width: 100%;
  min-width: 170px;
  height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f5f5f5;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  cursor: default;
}

.night-operations__menu button:hover,
.night-operations__menu button[aria-selected='true'] {
  background: #262626;
}

.night-operations__menu button svg {
  flex: 0 0 15px;
  opacity: 0;
}

.night-operations__menu button[aria-selected='true'] svg {
  opacity: 1;
}

.night-operations__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.night-operations__columns-menu {
  right: 0;
  left: auto;
  width: 156px;
  min-width: 156px;
  padding: 0 0 4px;
  overflow: hidden;
}

.night-operations__columns-menu strong {
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.night-operations__columns-menu label {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  color: #e5e5e5;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: default;
}

.night-operations__columns-menu label:hover {
  background: #262626;
}

.night-operations input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.045);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  cursor: pointer !important;
}

.night-operations input[type='checkbox']:checked {
  border-color: #02ab53;
  background-color: #02ab53;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.night-operations__columns-menu input[type='checkbox'],
.night-operations__columns-menu input[type='checkbox']:checked {
  flex: 0 0 16px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: none;
}

.night-operations__columns-menu input[type='checkbox']:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m2.75 8.25 3.25 3.25 7.25-7.25' fill='none' stroke='%23e5e5e5' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.night-operations__columns-menu label > span {
  min-width: 0;
  white-space: nowrap;
}

.night-operations__table-wrap {
  min-width: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d0d0d;
}

.night-operations__table-wrap table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: auto;
}

.night-operations__table-wrap th,
.night-operations__table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: middle;
}

.night-operations__table-wrap th {
  height: 48px;
  box-sizing: border-box;
  color: #a3a3a3;
  background: #121212;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.night-operations__table-wrap th button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
}

.night-operations__table-wrap th button svg {
  width: 14px;
  height: 14px;
}

.night-operations__table-wrap td {
  height: 52px;
  box-sizing: border-box;
  color: #e5e5e5;
  font-size: 14px;
  line-height: 20px;
}

.night-operations__table-wrap :is(
  .is-col-outcome,
  .is-col-failedNights,
  .is-col-failureMinutes,
  .is-col-failureMinutesTotal,
  .is-col-consecutive,
  .is-col-incident,
  .is-col-actions
) {
  text-align: center;
}

.night-operations__table-wrap th:is(
  .is-col-outcome,
  .is-col-failedNights,
  .is-col-failureMinutes,
  .is-col-failureMinutesTotal,
  .is-col-consecutive,
  .is-col-incident,
  .is-col-actions
) button {
  width: 100%;
  justify-content: center;
}

.night-operations__table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.night-operations__table-wrap tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.night-operations__table-wrap .is-selection {
  width: 48px;
  padding-inline: 16px;
  cursor: default !important;
}

.night-operations__table-wrap .is-selection * {
  cursor: default !important;
}

.night-operations__table-wrap td strong {
  color: #fafafa;
  font-weight: 500;
}

.night-operations .is-muted {
  color: #a3a3a3;
}

.night-operations .is-tabular {
  font-variant-numeric: tabular-nums;
}

.night-operations .is-incident-open {
  color: #d97706;
  font-size: 12px;
  line-height: 16px;
}

.night-operations .is-incident-resolved {
  color: #16a34a;
  font-size: 12px;
  line-height: 16px;
}

.night-operations__badge {
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #262626;
  color: #d4d4d4;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.night-operations__resolve {
  height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: transparent;
  color: #fafafa;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: default;
}

.night-operations__resolve:hover {
  background: #262626;
}

.night-operations__table-loading,
.night-operations__table-empty {
  min-height: 112px;
  padding: 48px 24px !important;
  box-sizing: border-box;
  color: #a3a3a3 !important;
  text-align: center !important;
  font-size: 14px;
  line-height: 20px;
}

.night-operations__pagination {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #a3a3a3;
  font-size: 13px;
  line-height: 20px;
}

.night-operations__pagination > div,
.night-operations__pagination label,
.night-operations__pagination nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.night-operations__pagination > span,
.night-operations__pagination > div {
  transform: translateY(-8px);
}

.night-operations__pagination > span {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.night-operations__pagination label,
.night-operations__pagination nav {
  transform: none;
}

.night-operations__pagination > div {
  gap: 20px;
}

.night-operations__pagination strong {
  color: #e5e5e5;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.night-operations__pagination select {
  width: 66px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  outline: none;
  color-scheme: dark;
  background: #171717;
  color: #fafafa;
  cursor: default !important;
}

.night-operations__pagination select option {
  cursor: default !important;
}

.night-operations__page-size,
.night-operations__page-size-control {
  display: inline-flex;
  align-items: center;
}

.night-operations__page-size {
  gap: 8px;
  white-space: nowrap;
}

.night-operations__page-size-control {
  position: relative;
}

.night-operations__page-size-trigger {
  width: 70px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  background: #171717;
  color: #fafafa;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.night-operations__page-size-trigger svg {
  width: 14px;
  height: 14px;
  color: #a3a3a3;
}

.night-operations__page-size-menu {
  position: absolute;
  z-index: 90;
  left: 0;
  bottom: calc(100% + 4px);
  width: 128px;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #171717;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  animation: alerts-sort-menu-fade-in 140ms ease-out both;
}

.night-operations__page-size-menu[hidden] {
  display: none;
}

.night-operations__page-size-menu button {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: left;
}

.night-operations__page-size-menu button:hover {
  background: #262626;
}

.night-operations__page-size-menu button svg {
  width: 15px;
  height: 15px;
  opacity: 0;
}

.night-operations__page-size-menu button[aria-selected='true'] svg {
  opacity: 1;
}

.night-operations__page-size-trigger,
.night-operations__page-size-trigger *,
.night-operations__page-size-menu,
.night-operations__page-size-menu * {
  cursor: pointer !important;
}

.night-operations__pagination nav button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #02ab53;
  border-radius: 7px;
  background: #171717;
  color: #02ab53;
  cursor: default;
}

.night-operations__pagination nav button:disabled {
  opacity: 0.5;
  cursor: default;
}

.night-operations button,
.night-operations button *,
.night-operations [role='option'],
.night-operations [role='option'] *,
.night-operations__columns-menu label,
.night-operations__columns-menu label * {
  cursor: pointer !important;
}

.night-operations input[type='search'],
.night-operations textarea {
  cursor: text !important;
}

.night-operations button:focus-visible,
.night-operations input:focus-visible,
.night-operations select:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 1px;
}

@media (max-width: 1180px) {
  .night-operations__summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .night-operations__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .night-operations__toolbar-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 760px) {
  .content-body.content-body--dashboard-night {
    padding: 20px 16px 32px;
  }

  .night-operations__summary {
    grid-template-columns: 1fr;
  }

  .night-operations__period-actions,
  .night-operations__toolbar-actions {
    justify-content: flex-start;
  }

  .night-operations__filters,
  .night-operations__search,
  .night-operations__select,
  .night-operations__select > button {
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }

  .night-operations__pagination,
  .night-operations__pagination > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .night-operations__pagination nav button:first-child,
  .night-operations__pagination nav button:last-child {
    display: none;
  }
}

.layout-shell.is-dashboard-console-layout .incidents-menu {
  height: auto;
}

.layout-shell.is-dashboard-console-layout .incidents-menu.has-items {
  height: auto;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__list {
  padding: 0;
  gap: 0;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item {
  min-height: 124px;
  padding: 12px 16px;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item:hover {
  background: rgba(38, 38, 38, 0.42);
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-head,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-identity {
  display: flex;
  align-items: center;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-head {
  justify-content: space-between;
  gap: 12px;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-identity {
  min-width: 0;
  gap: 8px;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-identity strong {
  overflow: hidden;
  color: #fafafa;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-dot {
  margin-top: 0;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__night-badge {
  padding: 2px 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: #fb5263;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-title,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-message,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-date {
  margin: 4px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-title {
  color: #a3a3a3;
  font-size: 12px;
  line-height: 16px;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-message {
  color: #d4d4d4;
  font-size: 12px;
  line-height: 16px;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-date {
  color: #a3a3a3;
  font-size: 11px;
  line-height: 16px;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  color: #fafafa;
  background: transparent;
  font: 600 12px/16px "Inter Local", Inter, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__map-action {
  border: 0;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a:hover,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a:focus-visible,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__map-action:hover,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__map-action:focus-visible {
  background: #2a2a2a;
  color: #fafafa;
  text-decoration: none;
  cursor: default !important;
  outline: none;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a *,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions button,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions button * {
  cursor: default !important;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__resolve-action {
  border: 1px solid #00a63e;
  background: transparent;
  color: #00c763;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__resolve-action:hover,
.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__resolve-action:focus-visible {
  border-color: #00c763;
  background: rgba(0, 199, 99, 0.08);
  color: #00c763;
  cursor: default !important;
  outline: none;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.layout-shell.is-dashboard-console-layout .incidents-menu__item-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layout-shell.is-dashboard-console-layout .notifications-menu {
  width: min(320px, calc(100vw - 24px));
  max-height: min(72vh, 452px);
  border-radius: 8px;
}

@media (max-width: 1023px) {
  .content-body--dashboard-devices .devices-dashboard__top {
    grid-template-columns: 1fr;
  }

  .content-body--dashboard-devices .devices-dashboard__panel--pending {
    height: auto;
  }
}

@media (max-width: 767px) {
  .content-body.content-body--dashboard-devices {
    padding: 24px;
  }

  .content-body--dashboard-devices .devices-central-chart__label {
    font-size: 13px;
  }

  .content-body--dashboard-devices .devices-central-legend {
    padding: 0;
  }
}

@media (max-width: 1023px) {
  .content-body--dashboard-overview .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-body--dashboard-overview .dashboard-map-card__head {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .content-body.content-body--dashboard-overview {
    padding: 24px;
  }

  .content-body--dashboard-overview .overview-grid {
    grid-template-columns: 1fr;
  }

  .content-body--dashboard-overview .overview-card {
    padding: 24px;
  }

  .content-body--dashboard-overview .dashboard-map-card {
    min-height: 0;
  }
}

/* Light-theme visual consistency audit. */
:root[data-theme="light"] body,
:root[data-theme="light"] .content,
:root[data-theme="light"] .content-body {
  background: #ffffff;
  color: #171717;
}

:root[data-theme="light"] .sidebar {
  background: #fafafa;
  border-color: #e5e5e5;
}

:root[data-theme="light"] .app-topbar {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e5e5e5;
}

:root[data-theme="light"] .app-topbar__action,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .app-topbar__action--theme,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .app-topbar__action--incidents,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .app-topbar__action--notify {
  color: #171717;
}

:root[data-theme="light"] .app-topbar__action:hover,
:root[data-theme="light"] .app-topbar__action:focus-visible,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .app-topbar__action--theme:hover,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .app-topbar__action--incidents:hover,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .app-topbar__action--notify:hover {
  color: #0a0a0a;
  border-color: transparent;
  background: #f5f5f5;
}

:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item {
  border-bottom-color: #e5e5e5;
}

:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item:hover {
  background: #f5f5f5;
}

:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-identity strong,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-actions button {
  color: #171717;
}

:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-title,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-date {
  color: #737373;
}

:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-message {
  color: #525252;
}

:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a:hover,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-actions a:focus-visible,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__map-action:hover,
:root[data-theme="light"] .layout-shell.is-dashboard-console-layout .incidents-menu__item-actions .incidents-menu__map-action:focus-visible {
  background: #e9e9e9;
  color: #171717;
}

:root[data-theme="light"] .content-body--dashboard-devices .page-header h1 {
  color: #0a0a0a;
}

:root[data-theme="light"] .content-body--dashboard-devices .page-header p,
:root[data-theme="light"] .content-body--dashboard-alerts .page-header p {
  color: #737373;
}

/* Operational controls retain the regular arrow cursor. */
.incident-center button,
.incident-center [role="tab"],
.night-operations button,
.night-operations label,
.installers-admin button,
.installers-admin [role="option"],
.installers-admin [role="menuitem"] {
  cursor: default !important;
}

.incident-center :is(input, textarea),
.night-operations :is(input, textarea),
.installers-admin :is(input, textarea) {
  cursor: text !important;
}

:root[data-theme="light"] :is(
  .overview-card,
  .dashboard-map-card,
  .devices-dashboard__panel,
  .alerts-summary-card,
  .alerts-dashboard__panel,
  .metrics-dashboard__panel,
  .settings-card
) {
  border-color: #e5e5e5;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.1), 0 1px 2px -1px rgba(10, 10, 10, 0.1);
}

:root[data-theme="light"] .content-body--dashboard-overview .page-header h1,
:root[data-theme="light"] .content-body--dashboard-overview .dashboard-section-title,
:root[data-theme="light"] .content-body--dashboard-overview .overview-card__value,
:root[data-theme="light"] .content-body--dashboard-overview .dashboard-map-card__title,
:root[data-theme="light"] .content-body--dashboard-overview .dashboard-map-card__pin,
:root[data-theme="light"] .content-body--dashboard-overview .dashboard-map-card__pin svg,
:root[data-theme="light"] .content-body--dashboard-overview .dashboard-map-legend {
  color: #0a0a0a;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card__head h3 {
  color: #262626;
}

:root[data-theme="light"] .content-body--dashboard-overview .page-header p,
:root[data-theme="light"] .content-body--dashboard-overview .overview-card__helper {
  color: #737373;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card__icon {
  color: #737373;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--success .overview-card__icon {
  color: #22c55e;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--danger .overview-card__icon,
:root[data-theme="light"] .content-body--dashboard-overview .overview-card--danger-strong .overview-card__icon {
  color: #ef4444;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--primary .overview-card__icon {
  color: #3b82f6;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--warning-soft .overview-card__icon {
  color: #f97316;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--warning .overview-card__icon {
  color: #eab308;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--success .overview-card__value {
  color: #16a34a;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--danger .overview-card__value,
:root[data-theme="light"] .content-body--dashboard-overview .overview-card--danger-strong .overview-card__value {
  color: #dc2626;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--warning-soft .overview-card__value {
  color: #ea580c;
}

:root[data-theme="light"] .content-body--dashboard-overview .overview-card--warning .overview-card__value {
  color: #ca8a04;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout :is(
  .devices-explorer__map-card,
  .devices-explorer__sidebar,
  .devices-explorer__sidebar-content,
  .devices-explorer__sidebar-panel
) {
  border-color: #e5e5e5;
  background: #ffffff;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar :is(
  .devices-explorer__search,
  .devices-explorer__filter-trigger,
  .devices-explorer__fit
) {
  border-color: #e5e5e5;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__search-icon,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-caret {
  color: #737373;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__search input,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-trigger {
  color: #171717;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__search input::placeholder {
  color: #737373;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-menu {
  border-color: #e5e5e5;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.14);
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-option {
  color: #171717;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-option:hover,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-option:focus-visible,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__toolbar .devices-explorer__filter-option.is-active {
  background: #f5f5f5;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__sidebar-tabs {
  background: #f5f5f5;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__sidebar-tab {
  color: #737373;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__sidebar-tab.is-active {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.08);
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__sidebar-tabs-action,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__sidebar-tabs-count {
  color: #737373;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__sidebar-divider {
  background: #e5e5e5;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__layout.is-map-expanded .devices-explorer__sidebar {
  border-color: #e5e5e5;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout :is(
  .devices-explorer__central-card,
  .devices-explorer__device-card
) {
  border-color: #e5e5e5;
  background: transparent;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout :is(
  .devices-explorer__central-card:hover,
  .devices-explorer__central-card:focus-within,
  .devices-explorer__central-card.is-active,
  .devices-explorer__device-card:hover,
  .devices-explorer__device-card:focus-within
) {
  border-color: rgba(2, 171, 83, 0.32);
  background: rgba(2, 171, 83, 0.035);
  box-shadow: none;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__central-title-row strong,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__device-title-row strong {
  color: #0a0a0a;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout :is(
  .devices-explorer__central-meta-row,
  .devices-explorer__central-actions,
  .devices-explorer__central-action-button.is-active,
  .devices-explorer__device-serial,
  .devices-explorer__device-actions,
  .devices-explorer__device-pin
) {
  color: #737373;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__central-pill {
  background: #f5f5f5;
  color: #171717;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__central-action-button:hover,
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__central-action-button:focus-visible {
  background: #f5f5f5;
  color: #525252;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__legend-total {
  border-color: #e5e5e5;
  color: #171717;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__legend-count {
  color: #737373;
}

:root[data-theme="light"] .incident-center__summary-card,
:root[data-theme="light"] .incident-center__list-card {
  border-color: #e5e5e5;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.1), 0 1px 2px -1px rgba(10, 10, 10, 0.1);
}

:root[data-theme="light"] .incident-center :is(
  .incident-center__summary-card h2,
  .incident-center__summary-content strong,
  .incident-center__list-card > header h2,
  .incident-center__incident-heading > strong,
  .incident-center__pagination strong,
  .incident-center__dialog h2
) {
  color: #0a0a0a;
}

:root[data-theme="light"] .incident-center .incident-center__summary-card--critical :is(h2, strong) {
  color: #dc2626;
}

:root[data-theme="light"] .incident-center .incident-center__summary-card--warning :is(h2, strong) {
  color: #ca8a04;
}

:root[data-theme="light"] .incident-center :is(
  .incident-center__summary-content p,
  .incident-center__search > span,
  .incident-center__empty,
  .incident-center__empty strong,
  .incident-center__empty p,
  .incident-center__incident-message,
  .incident-center__incident-meta,
  .incident-center__resolution,
  .incident-center__episodes,
  .incident-center__episodes strong,
  .incident-center__episodes p,
  .incident-center__expand-icon,
  .incident-center__pagination > span,
  .incident-center__pagination label,
  .incident-center__dialog p,
  .incident-center__dialog-close
) {
  color: #737373;
}

:root[data-theme="light"] .incident-center__tabs {
  background: #f5f5f5;
  color: #737373;
}

:root[data-theme="light"] .incident-center__tabs button {
  color: #737373;
}

:root[data-theme="light"] .incident-center__tabs button.is-active,
:root[data-theme="light"] .incident-center__tabs button.is-active:hover {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.08);
}

:root[data-theme="light"] .incident-center__tabs button span {
  background: #e5e5e5;
  color: #171717;
}

:root[data-theme="light"] .incident-center__search input,
:root[data-theme="light"] .incident-center__pagination select,
:root[data-theme="light"] .incident-center .incident-center__sort-trigger,
:root[data-theme="light"] .incident-center__sort-options,
:root[data-theme="light"] .incident-center__sort > button,
:root[data-theme="light"] .incident-center__pagination nav button,
:root[data-theme="light"] .incident-center__dialog textarea,
:root[data-theme="light"] .incident-center__dialog-button {
  color-scheme: light;
  border-color: #e5e5e5;
  background: #ffffff;
  color: #171717;
}

:root[data-theme="light"] .incident-center__sort-options {
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.14);
}

:root[data-theme="light"] .incident-center__sort-options button {
  color: #171717;
}

:root[data-theme="light"] .incident-center__sort-options button:hover,
:root[data-theme="light"] .incident-center__sort-options button:focus-visible,
:root[data-theme="light"] .incident-center__sort-options button[aria-selected="true"],
:root[data-theme="light"] .incident-center__tabs button:hover,
:root[data-theme="light"] .incident-center__search > button:hover,
:root[data-theme="light"] .incident-center__sort > button:hover,
:root[data-theme="light"] .incident-center__pagination nav button:hover:not(:disabled),
:root[data-theme="light"] .incident-center__dialog-button:hover {
  background-color: #f5f5f5;
}

:root[data-theme="light"] .incident-center button:focus-visible,
:root[data-theme="light"] .incident-center input:focus-visible,
:root[data-theme="light"] .incident-center select:focus-visible,
:root[data-theme="light"] .incident-center textarea:focus-visible {
  outline-color: rgba(10, 10, 10, 0.28);
}

:root[data-theme="light"] .incident-center__skeletons > div > span,
:root[data-theme="light"] .incident-center__skeletons i {
  background: #f5f5f5;
}

:root[data-theme="light"] .incident-center__incident {
  border-color: #e5e5e5;
  background: #ffffff;
}

:root[data-theme="light"] .incident-center__incident--critical {
  border-color: #fecaca;
  background: #fef2f2;
}

:root[data-theme="light"] .incident-center__incident--warning {
  border-color: #fde68a;
  background: #fffbeb;
}

:root[data-theme="light"] .incident-center__incident--info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

:root[data-theme="light"] .incident-center__category,
:root[data-theme="light"] .incident-center__badge {
  background: #f5f5f5;
  color: #525252;
}

:root[data-theme="light"] .incident-center__badge--danger {
  background: #ef4444;
  color: #ffffff;
}

:root[data-theme="light"] .incident-center__resolution,
:root[data-theme="light"] .incident-center__episodes,
:root[data-theme="light"] .incident-center__pagination {
  border-color: #e5e5e5;
}

:root[data-theme="light"] .incident-center__resolve-button {
  border-color: #16a34a;
  background: transparent;
  color: #16a34a;
}

:root[data-theme="light"] .incident-center__resolve-button:hover {
  background: rgba(22, 163, 74, 0.08);
}

:root[data-theme="light"] .incident-center__dialog-backdrop {
  background: rgba(10, 10, 10, 0.28);
}

:root[data-theme="light"] .incident-center__dialog {
  border-color: #e5e5e5;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(10, 10, 10, 0.18);
}

:root[data-theme="light"] .incident-center__dialog-button--primary,
:root[data-theme="light"] .incident-center__dialog-button--primary:hover {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

:root[data-theme="light"] .night-operations__button {
  background: #ffffff;
}

:root[data-theme="light"] .night-operations__button--ghost,
:root[data-theme="light"] .night-operations__button--ghost span,
:root[data-theme="light"] .night-operations__button--ghost svg {
  color: #0a0a0a !important;
}

:root[data-theme="light"] .night-operations__button--ghost:hover,
:root[data-theme="light"] .night-operations__button--ghost.is-selected {
  background: #f5f5f5;
  color: #0a0a0a !important;
}

:root[data-theme="light"] .night-operations__calendar,
:root[data-theme="light"] .night-operations__summary-card,
:root[data-theme="light"] .night-operations__summary-skeleton,
:root[data-theme="light"] .night-operations__menu,
:root[data-theme="light"] .night-operations__columns-menu,
:root[data-theme="light"] .night-operations__page-size-menu {
  border-color: #e5e5e5;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10, 10, 10, 0.14);
}

:root[data-theme="light"] .night-operations__summary-card,
:root[data-theme="light"] .night-operations__summary-skeleton {
  box-shadow: 0 1px 3px rgba(10, 10, 10, 0.1), 0 1px 2px -1px rgba(10, 10, 10, 0.1);
}

:root[data-theme="light"] .night-operations__summary-skeleton {
  background: linear-gradient(90deg, #fafafa 20%, #f5f5f5 50%, #fafafa 80%);
  background-size: 200% 100%;
}

:root[data-theme="light"] .night-operations__calendar header strong,
:root[data-theme="light"] .night-operations__calendar-grid button,
:root[data-theme="light"] .night-operations__summary-card strong,
:root[data-theme="light"] .night-operations__columns-menu strong,
:root[data-theme="light"] .night-operations__columns-menu label,
:root[data-theme="light"] .night-operations__menu button,
:root[data-theme="light"] .night-operations__page-size-menu button,
:root[data-theme="light"] .night-operations__pagination strong {
  color: #171717;
}

:root[data-theme="light"] .content-body--dashboard-night .page-header h1 {
  color: #0a0a0a;
}

:root[data-theme="light"] .content-body--dashboard-night .page-header p {
  color: #737373;
}

:root[data-theme="light"] .night-operations__summary-card.is-success strong {
  color: #16a34a;
}

:root[data-theme="light"] .night-operations__summary-card.is-danger strong {
  color: #dc2626;
}

:root[data-theme="light"] .night-operations__summary-card.is-info strong {
  color: #2563eb;
}

:root[data-theme="light"] .night-operations__calendar-week span,
:root[data-theme="light"] .night-operations__summary-card span,
:root[data-theme="light"] .night-operations__pagination,
:root[data-theme="light"] .night-operations .is-muted,
:root[data-theme="light"] .night-operations__search svg {
  color: #737373;
}

:root[data-theme="light"] .night-operations__calendar-grid button:hover:not(:disabled),
:root[data-theme="light"] .night-operations__calendar-grid button.is-today:not(.is-selected),
:root[data-theme="light"] .night-operations__menu button:hover,
:root[data-theme="light"] .night-operations__menu button[aria-selected="true"],
:root[data-theme="light"] .night-operations__columns-menu label:hover,
:root[data-theme="light"] .night-operations__page-size-menu button:hover {
  background: #f5f5f5;
  color: #171717;
}

:root[data-theme="light"] .night-operations__calendar-grid button.is-selected {
  background: #02ab53;
  color: #ffffff;
}

:root[data-theme="light"] .night-operations__calendar-grid button.is-outside,
:root[data-theme="light"] .night-operations__calendar-grid button:disabled {
  color: #a3a3a3;
}

:root[data-theme="light"] .night-operations__search input,
:root[data-theme="light"] .night-operations__select > button,
:root[data-theme="light"] .night-operations__page-size-trigger,
:root[data-theme="light"] .night-operations__pagination select,
:root[data-theme="light"] .night-operations__pagination nav button {
  color-scheme: light;
  border-color: #e5e5e5;
  background: #ffffff;
  color: #171717;
}

:root[data-theme="light"] .night-operations__select > button svg,
:root[data-theme="light"] .night-operations__page-size-trigger svg {
  color: #737373;
}

:root[data-theme="light"] .night-operations__search input::placeholder {
  color: #737373;
}

:root[data-theme="light"] .night-operations__columns-menu strong {
  border-color: #e5e5e5;
}

:root[data-theme="light"] .night-operations input[type="checkbox"] {
  border-color: #d4d4d4;
  background-color: #ffffff;
}

:root[data-theme="light"] .night-operations__columns-menu input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m2.75 8.25 3.25 3.25 7.25-7.25' fill='none' stroke='%23171717' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

:root[data-theme="light"] .night-operations__table-wrap {
  border-color: #e5e5e5;
  background: #ffffff;
}

:root[data-theme="light"] .night-operations__table-wrap th,
:root[data-theme="light"] .night-operations__table-wrap td {
  border-color: #e5e5e5;
}

:root[data-theme="light"] .night-operations__table-wrap th {
  background: #fafafa;
  color: #737373;
}

:root[data-theme="light"] .night-operations__table-wrap td,
:root[data-theme="light"] .night-operations__table-wrap td strong {
  color: #171717;
}

:root[data-theme="light"] .night-operations__table-wrap tbody tr:hover td {
  background: #fafafa;
}

:root[data-theme="light"] .night-operations__badge {
  background: #f5f5f5;
  color: #525252;
}

:root[data-theme="light"] .night-operations__resolve {
  border-color: #16a34a;
  background: #ffffff;
  color: #16a34a;
}

:root[data-theme="light"] .night-operations__resolve:hover {
  background: rgba(22, 163, 74, 0.08);
}

:root[data-theme="light"] .night-operations__pagination nav button {
  border-color: #02ab53;
  color: #02ab53;
}

:root[data-theme="light"] .night-operations button:focus-visible,
:root[data-theme="light"] .night-operations input:focus-visible,
:root[data-theme="light"] .night-operations select:focus-visible {
  outline-color: rgba(10, 10, 10, 0.28);
}

:root[data-theme="light"] :is(
  .support-page__agent,
  .support-page__meta-card,
  .support-page__preview,
  .support-chat__frame,
  .support-inbox__panel,
  .support-inbox__item,
  .support-admin__frame,
  .support-admin__sidebar
) {
  border-color: #e5e5e5;
  background: #ffffff;
}

:root[data-theme="light"] .support-page__agent:hover,
:root[data-theme="light"] .support-page__agent:focus-visible {
  border-color: #d4d4d4;
  background: #fafafa;
}

:root[data-theme="light"] .support-page__agent-avatar {
  border-color: transparent;
  background: #f5f5f5;
  color: #171717;
}

:root[data-theme="light"] .support-page__agent-meta strong,
:root[data-theme="light"] .support-page__meta-copy strong,
:root[data-theme="light"] .support-chat__agent-copy strong {
  color: #0a0a0a;
}

:root[data-theme="light"] .support-page__agent-status,
:root[data-theme="light"] .support-page__meta-copy span,
:root[data-theme="light"] .support-page__copy p,
:root[data-theme="light"] .support-chat__agent-copy > span,
:root[data-theme="light"] .support-chat__agent-badge {
  color: #737373;
}

:root[data-theme="light"] .support-chat__head,
:root[data-theme="light"] .support-chat__composer {
  border-color: #e5e5e5;
}

:root[data-theme="light"] .support-chat__input {
  border-color: #e5e5e5 !important;
  background: #fafafa !important;
  color: #171717 !important;
}

:root[data-theme="light"] .support-chat__input:focus {
  background: #ffffff !important;
}

:root[data-theme="light"] .support-chat__date-separator span,
:root[data-theme="light"] .support-chat__message--admin .support-chat__bubble,
:root[data-theme="light"] .support-page__preview-message--admin .support-page__preview-text {
  background: #f5f5f5;
  color: #171717;
}

:root[data-theme="light"] .support-chat__send {
  background: #f5f5f5;
  color: #737373;
}

:root[data-theme="light"] .support-chat__send:not(.is-empty) {
  background: #02ab53;
  color: #ffffff;
}

:root[data-theme="light"] :is(
  .installers-admin__table-card,
  .installers-admin__columns-menu,
  .installers-admin__status-menu,
  .installers-admin__page-size-menu,
  .installers-admin__modal-content,
  .companies-admin__detail-card
) {
  border-color: #e5e5e5;
  background: #ffffff;
}

:root[data-theme="light"] .installers-admin__table :is(th, td) {
  border-color: #e5e5e5;
}

:root[data-theme="light"] .installers-admin__table thead tr {
  background: #fafafa;
}

:root[data-theme="light"] .installers-admin__table tbody tr:hover {
  background: #fafafa;
}

/* Keep alert summary severity colors above the generic light-theme typography. */
:root[data-theme="light"] .incident-center__summary-card--critical h2,
:root[data-theme="light"] .incident-center__summary-card--critical .incident-center__summary-content strong {
  color: #e7000b !important;
}

:root[data-theme="light"] .incident-center__summary-card--warning h2,
:root[data-theme="light"] .incident-center__summary-card--warning .incident-center__summary-content strong {
  color: #ca8a04 !important;
}

/* Alert page title: white in dark mode and black in light mode. */
.content-body--dashboard-alerts .page-header h1 {
  color: #ffffff !important;
}

:root[data-theme="light"] .content-body--dashboard-alerts .page-header h1 {
  color: #000000 !important;
}

/* Central and device notices match the production card geometry and colors. */
.layout-shell.is-device-operations-layout :is(
  .devices-explorer__central-action-button,
  .devices-explorer__device-alert-button
) {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.layout-shell.is-device-operations-layout .devices-explorer__central-action-button.is-active:is(
  .devices-explorer__central-action-button--warning,
  .devices-explorer__central-action-button--danger
),
.layout-shell.is-device-operations-layout .devices-explorer__device-alert-button.is-active:is(
  .devices-explorer__device-alert-button--warning,
  .devices-explorer__device-alert-button--danger
) {
  background: #220d0e;
  color: #fb2c36;
}

.layout-shell.is-device-operations-layout .devices-explorer__central-action-button.is-active:is(
  .devices-explorer__central-action-button--warning,
  .devices-explorer__central-action-button--danger
):is(:hover, :focus-visible),
.layout-shell.is-device-operations-layout .devices-explorer__device-alert-button.is-active:is(
  .devices-explorer__device-alert-button--warning,
  .devices-explorer__device-alert-button--danger
):is(:hover, :focus-visible) {
  background: #2d1012;
  color: #fb2c36;
}

.layout-shell.is-device-operations-layout :is(
  .devices-explorer__central-alert-count--warning,
  .devices-explorer__central-alert-count--danger,
  .devices-explorer__device-alert-count--warning,
  .devices-explorer__device-alert-count--danger
) {
  background: #fb2c36;
  color: #ffffff;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__central-action-button.is-active:is(
  .devices-explorer__central-action-button--warning,
  .devices-explorer__central-action-button--danger
),
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__device-alert-button.is-active:is(
  .devices-explorer__device-alert-button--warning,
  .devices-explorer__device-alert-button--danger
) {
  background: #f9e4e5;
  color: #fb2c36;
}

:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__central-action-button.is-active:is(
  .devices-explorer__central-action-button--warning,
  .devices-explorer__central-action-button--danger
):is(:hover, :focus-visible),
:root[data-theme="light"] .layout-shell.is-device-operations-layout .devices-explorer__device-alert-button.is-active:is(
  .devices-explorer__device-alert-button--warning,
  .devices-explorer__device-alert-button--danger
):is(:hover, :focus-visible) {
  background: #f8d7d9;
  color: #fb2c36;
}

/* Dark sidebar filters use the ORBLIGHT neutral surface palette. */
:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls :is(
  .devices-explorer__filter-trigger,
  .devices-explorer__sidebar-search,
  .devices-explorer__sidebar-search input
) {
  height: 36px;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls :is(
  .devices-explorer__filter-trigger,
  .devices-explorer__sidebar-search
) {
  border: 1px solid #383838;
  border-radius: 8px;
  background: #151515;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__filter-trigger::before {
  display: none;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__filter-trigger {
  padding: 0 12px;
  color: #fafafa;
  font-size: 14px;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__sidebar-search input {
  padding-right: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fafafa;
  font-size: 14px;
  box-shadow: none;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__sidebar-search input::placeholder,
:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__search-icon {
  color: #a1a1a1;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__filter-caret {
  color: #737373;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls :is(
  .devices-explorer__filter-trigger:hover,
  .devices-explorer__filter-trigger:focus-visible,
  .devices-explorer__filter.is-open .devices-explorer__filter-trigger,
  .devices-explorer__sidebar-search:hover,
  .devices-explorer__sidebar-search:focus-within
) {
  border-color: #525252;
  background: #171717;
  box-shadow: none;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__filter-menu {
  padding: 6px;
  border: 1px solid #383838;
  border-radius: 8px;
  background: #151515;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__filter-option {
  min-height: 36px;
  border-radius: 6px;
  color: #fafafa;
  font-size: 14px;
}

:root:not([data-theme="light"]) .layout-shell.is-device-operations-layout .devices-explorer__sidebar-controls .devices-explorer__filter-option:is(:hover, :focus-visible, .is-active) {
  background: #262626;
}

/* Map popups keep a neutral bell while every warning counter stays red. */
.device-popup__action-btn--warning {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
  color: #a3a3a3;
}

.device-popup__action-btn--warning:is(:hover, :focus-visible) {
  border-color: rgba(255, 255, 255, 0.2);
  background: #262626;
  color: #fafafa;
}

.device-popup__action-btn--warning .device-popup__alert-count {
  background: #ff3347;
  color: #ffffff;
}

/* Keep every device activity modal surface readable in the light theme. */
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device {
  border-color: #e5e7eb !important;
  background: #ffffff !important;
  color: #171717 !important;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18) !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-modal-close,
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-modal-close:is(:hover, :focus-visible) {
  border: 0 !important;
  background: transparent !important;
  color: #525252 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-modal-title h3,
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-copy strong,
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-more {
  color: #171717 !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-modal-heading > p,
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-copy span,
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-copy time,
html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-empty {
  color: #737373 !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-tabs {
  background: #f5f5f5 !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-tab {
  background: transparent !important;
  color: #737373 !important;
  box-shadow: none !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-tab:is(:hover, :focus-visible) {
  color: #171717 !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__alerts-tab.is-active {
  background: #ffffff !important;
  color: #171717 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-list {
  scrollbar-color: #d4d4d8 transparent;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__activity-list::-webkit-scrollbar-thumb {
  background: #d4d4d8;
}

html[data-theme="light"] body[data-theme="light"] .devices-explorer__alerts-modal--device .devices-explorer__device-alert-panel--warning .devices-explorer__device-alert-panel-icon {
  background: #eeeeef !important;
  color: #eab308 !important;
}
