:root {
  --bc-sidebar-width: 16rem;
  --bc-sidebar-collapsed-width: 5.75rem;
  --bc-sidebar-bg: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
  --bc-body-bg: #f8f9fc;
  --bc-surface: #ffffff;
  --bc-surface-muted: #f8f9fc;
  --bc-border: #e3e6f0;
  --bc-border-soft: #eaecf4;
  --bc-text: #858796;
  --bc-heading: #5a5c69;
  --bc-muted: #858796;
  --bc-primary: #4e73df;
  --bc-primary-hover: #3b5fcf;
  --bc-success: #198754;
  --bc-info: #0dcaf0;
  --bc-warning: #ffc107;
  --bc-danger: #dc3545;
  --bc-table-stripe: rgba(248, 249, 252, 0.72);
  --bs-font-sans-serif: "Nunito", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-bg: var(--bc-body-bg);
  --bs-body-color: var(--bc-text);
  --bs-secondary-color: var(--bc-muted);
  --bs-tertiary-color: #b7b9cc;
  --bs-heading-color: var(--bc-heading);
  --bs-emphasis-color: var(--bc-heading);
  --bs-border-color: var(--bc-border);
  --bs-secondary-bg: #f8f9fc;
  --bs-tertiary-bg: #f8f9fc;
  --bs-primary: var(--bc-primary);
  --bs-primary-rgb: 78, 115, 223;
  --bs-link-color: var(--bc-primary);
  --bs-link-hover-color: var(--bc-primary-hover);
  --bs-link-color-rgb: 78, 115, 223;
  --bs-link-hover-color-rgb: 59, 95, 207;
}

.system-resource-card .card-body {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
}

.system-resource-chart {
  position: relative;
  width: 100%;
  height: 7.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.system-resource-chart canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.system-resource-chart-network canvas {
  height: calc(100% - 1.15rem);
}

.system-resource-chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  height: 1.15rem;
  color: var(--bc-muted);
  font-size: 0.7rem;
}

.system-resource-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.system-resource-chart-key {
  display: inline-block;
  width: 0.8rem;
  height: 0.15rem;
}

.system-resource-chart-key-download {
  background: #0d6efd;
}

.system-resource-chart-key-upload {
  background: #fd7e14;
}

.system-network-range {
  display: flex;
  width: 100%;
  margin-top: 0.55rem;
}

.system-network-range .btn {
  flex: 1 1 25%;
  min-width: 0;
  padding: 0.2rem 0.3rem;
  font-size: 0.75rem;
}

.system-network-history-status {
  min-height: 1rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  line-height: 1rem;
}

.system-resource-disk-progress {
  height: 0.65rem;
}

.system-resource-disk-progress .progress-bar {
  min-width: 0;
  transition: width 180ms linear;
}

.system-status-info-icon {
  cursor: help;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .topbar .topbar-customer-name {
    min-height: 2.25rem;
    padding: 0.48rem 0.75rem;
    font-size: 0.86rem;
  }

  .topbar .topbar-customer-name i {
    font-size: 0.8rem;
  }

  .admin-users-card .card-header {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .admin-users-card .admin-users-table th:first-child,
  .admin-users-card .admin-users-table td:first-child {
    padding-left: 1rem;
  }
}

@media (max-width: 767.98px) {
  .system-resource-card .card-body {
    min-height: 18rem;
  }
}

.site-location-map-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-location-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-location-sidebar-tools {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.site-location-sidebar-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-location-view-switch {
  flex: 1 1 auto;
}

.site-location-view-switch > .btn {
  flex: 1 1 0;
}

.site-location-add-site {
  flex: 0 0 2.4rem !important;
  min-width: 2.4rem;
}

.site-location-map-search {
  width: 100%;
}

.site-location-map-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 23rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.site-location-map-shell[data-site-location-view="list"] .site-location-map-layout {
  grid-template-columns: minmax(0, 1fr);
}

.site-location-map-shell[data-site-location-view="list"] .site-location-map-panel {
  display: none;
}

.site-location-map-shell[data-site-location-view="list"] .site-location-list {
  display: block;
}

.site-location-map-shell[data-site-location-view="list"] .site-location-item {
  min-width: 0;
}

.site-location-map-shell[data-site-location-view="map"] .site-location-list {
  display: flex;
  flex-direction: column;
}

.site-location-list-panel,
.site-location-map-panel {
  min-width: 0;
}

.site-location-list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.site-location-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 38rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.site-location-list-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  width: 100%;
}

.site-location-map-shell[data-site-location-view="list"] .site-location-list-lanes.is-two-lane {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-location-list-lane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.75rem;
}

.site-location-item {
  border: 1px solid var(--bc-border);
  border-radius: 0.5rem;
  background: var(--bc-surface);
  padding: 0.85rem;
}

.site-location-item-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-location-title-wrap {
  flex: 1 1 8rem;
  min-width: 0;
}

.site-location-title {
  display: block;
  max-width: 100%;
  color: var(--bc-heading);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.site-location-title-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
  min-height: 2rem;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-location-item-address {
  color: var(--bc-muted);
  font-size: 0.84rem;
  line-height: 1.3;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
}

.site-location-card-menu {
  flex: 0 0 auto;
}

.site-location-menu-toggle {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.site-location-menu-item {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-location-status-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 800;
  min-height: 2rem;
  white-space: nowrap;
}

.site-location-card-status {
  margin-top: 0.65rem;
}

.site-location-status-placeholder {
  border: 1px solid var(--bc-border-soft);
  border-radius: 0.45rem;
  background: var(--bc-surface-muted);
  color: var(--bc-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.55rem 0.65rem;
}

.site-location-item-details,
.site-location-actions,
.site-location-info-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-location-item-details {
  margin-top: 0.65rem;
}

.site-location-info-links {
  justify-content: flex-end;
  margin-left: auto;
  margin-top: 0;
  font-size: 0.875rem;
}

.site-location-info-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.site-location-pin-open {
  font-weight: 800;
}

.site-location-pin-title-button {
  display: inline-flex;
  align-items: center;
  flex: 1 1 8rem;
  justify-content: flex-start;
  min-height: 2rem;
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-location-info-window .site-location-pin-title-button,
.site-location-info-window .site-location-pin-title-button:link,
.site-location-info-window .site-location-pin-title-button:visited,
.site-location-info-window .site-location-pin-title-button:hover,
.site-location-info-window .site-location-pin-title-button:focus,
.site-location-info-window .site-location-pin-title-button:active {
  background-color: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff;
  text-decoration: none;
}

.site-location-badge {
  border: 1px solid var(--bc-border-soft);
}

.site-location-alerts-enabled-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  font-size: 0.82rem;
  line-height: 1;
}

.site-location-alerts-enabled-icon.is-enabled {
  color: var(--bs-success);
}

.site-location-alerts-enabled-icon.is-disabled {
  color: var(--bc-muted);
}

.site-location-active-alerts-badge-header {
  display: none;
}

.site-location-map-panel {
  position: relative;
  border: 1px solid var(--bc-border);
  border-radius: 0.5rem;
  background: var(--bc-surface);
  overflow: hidden;
}

.site-location-map-status {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 1rem;
}

.site-location-map-canvas {
  min-height: 38rem;
  width: 100%;
}

.site-location-map-canvas.is-empty {
  background:
    linear-gradient(135deg, rgba(78, 115, 223, 0.08), rgba(25, 135, 84, 0.08)),
    var(--bc-surface-muted);
}

.site-location-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  max-width: 8.5rem;
  height: 2rem;
  padding: 0 0.65rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--bc-primary);
  color: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  box-shadow: 0 0.35rem 0.85rem rgba(15, 23, 42, 0.22);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-location-marker.is-alert {
  background: var(--bc-danger);
}

.site-location-marker:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.site-location-info-window {
  color: #1f2937;
  min-width: 13rem;
  max-width: 22rem;
}

.site-location-pin-card {
  padding: 0.15rem 0;
}

.site-location-pin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.site-location-info-title {
  color: #111827;
  flex: 1 1 8rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.site-location-pin-address {
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}

.site-location-pin-alert {
  border: 1px solid rgba(220, 53, 69, 0.25);
  border-radius: 0.45rem;
  background: rgba(220, 53, 69, 0.12);
  color: #b02a37;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.5rem;
}

.site-location-pin-status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.site-location-pin-status-tile {
  border: 1px solid #e5e7eb;
  border-radius: 0.45rem;
  background: #f9fafb;
  padding: 0.5rem 0.6rem;
}

.site-location-pin-status-tile.is-ok {
  border-color: rgba(25, 135, 84, 0.24);
  background: rgba(25, 135, 84, 0.1);
}

.site-location-pin-status-tile.is-alert {
  border-color: rgba(220, 53, 69, 0.24);
  background: rgba(220, 53, 69, 0.12);
}

.site-location-pin-status-label {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-location-pin-status-value {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.1rem;
}

.site-location-pin-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.site-location-pin-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0.35rem;
  padding: 0.25rem 0.3rem;
}

.site-location-pin-status-row.is-alert {
  background: rgba(220, 53, 69, 0.12);
}

.site-location-pin-status-name {
  color: #374151;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-location-pin-status-reading {
  color: #111827;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.site-location-meta-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.site-location-meta-label {
  color: #6b7280;
  font-weight: 700;
}

.site-location-meta-value {
  color: #1f2937;
  overflow-wrap: anywhere;
}

.site-location-empty {
  border: 1px dashed var(--bc-border);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--bc-surface);
  color: var(--bc-muted);
}

@media (max-width: 991.98px) {
  .site-location-map-layout {
    grid-template-columns: 1fr;
  }

  .site-location-map-shell[data-site-location-view="map"] .site-location-map-panel {
    order: 1;
  }

  .site-location-map-shell[data-site-location-view="map"] .site-location-list-panel {
    order: 2;
  }

  .site-location-map-shell[data-site-location-view="list"] .site-location-list-lanes.is-two-lane {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-location-list {
    max-height: none;
  }

  .site-location-map-canvas {
    min-height: 28rem;
  }
}

@media (max-width: 767.98px) {
  .site-location-map-shell[data-site-location-view="map"] .site-location-item-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
  }

  .site-location-map-shell[data-site-location-view="map"] .site-location-title-wrap {
    flex: 0 1 auto;
  }

  .site-location-map-shell[data-site-location-view="map"] .site-location-active-alerts-badge-header {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .site-location-map-shell[data-site-location-view="map"] .site-location-item-details {
    display: none;
  }
}

@media (min-width: 992px) {
  body.site-map-page #content-wrapper,
  body.site-map-page #content {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.site-map-page .app-content-shell {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0.75rem;
  }

  body.site-map-page .sticky-footer {
    display: none;
  }

  body.site-map-page .site-location-map-shell {
    flex: 1 1 auto;
    gap: 0.75rem;
    min-height: 0;
  }

  body.site-map-page .site-location-map-layout {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
  }

  body.site-map-page .site-location-list {
    max-height: none;
  }

  body.site-map-page .site-location-map-panel,
  body.site-map-page .site-location-map-canvas {
    height: 100%;
  }

  body.site-map-page .site-location-map-canvas {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .site-location-map-header {
    align-items: stretch;
    flex-direction: column;
  }

  .site-location-map-search {
    width: 100%;
  }

  .site-location-map-canvas {
    min-height: 22rem;
  }
}

html[data-bs-theme="dark"] {
  --bc-sidebar-bg: linear-gradient(180deg, #556070 0%, #2f3744 100%);
  --bc-body-bg: #0f172a;
  --bc-surface: #111c30;
  --bc-surface-muted: #17243b;
  --bc-border: #2a3a54;
  --bc-border-soft: #223149;
  --bc-text: #c8d2e0;
  --bc-heading: #f3f6fb;
  --bc-muted: #94a3b8;
  --bc-primary: #7c9cff;
  --bc-primary-hover: #9ab3ff;
  --bc-table-stripe: rgba(148, 163, 184, 0.08);
  --bs-body-bg: var(--bc-body-bg);
  --bs-body-color: var(--bc-text);
  --bs-secondary-color: var(--bc-muted);
  --bs-tertiary-color: #7f91ab;
  --bs-heading-color: var(--bc-heading);
  --bs-emphasis-color: var(--bc-heading);
  --bs-border-color: var(--bc-border);
  --bs-secondary-bg: var(--bc-surface-muted);
  --bs-tertiary-bg: var(--bc-surface-muted);
  --bs-primary: var(--bc-primary);
  --bs-primary-rgb: 124, 156, 255;
  --bs-link-color: var(--bc-primary);
  --bs-link-hover-color: var(--bc-primary-hover);
  --bs-link-color-rgb: 124, 156, 255;
  --bs-link-hover-color-rgb: 154, 179, 255;
}

body {
  min-height: 100vh;
  background: var(--bc-body-bg);
  color: var(--bc-text);
  font-family: var(--bs-body-font-family);
}

a,
a:hover,
a:focus {
  text-decoration: none;
}

a {
  color: var(--bc-primary);
  font-weight: 600;
}

a:hover,
a:focus {
  color: var(--bc-primary-hover);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--bc-heading);
}

.card,
.dropdown-menu,
.modal-content,
.accordion-item,
.list-group-item,
.input-group-text {
  background-color: var(--bc-surface);
  border-color: var(--bc-border);
}

.form-control,
.form-select {
  background-color: var(--bc-surface);
  border-color: var(--bc-border);
}

.card-header,
.card-footer,
.accordion-button,
.accordion-button:not(.collapsed),
.table thead th,
.table-light > :not(caption) > * > *,
.dropdown-header {
  background-color: var(--bc-surface-muted);
  color: var(--bc-heading);
}

.dropdown-item,
.accordion-button,
.form-control,
.form-select,
.input-group-text {
  color: var(--bc-text);
}

.list-group-item-success {
  background-color: rgba(25, 135, 84, 0.12);
  color: #146c43;
  border-color: rgba(25, 135, 84, 0.2);
}

.list-group-item-danger {
  background-color: rgba(220, 53, 69, 0.12);
  color: #b02a37;
  border-color: rgba(220, 53, 69, 0.2);
}

.list-group-item-warning {
  background-color: rgba(255, 193, 7, 0.18);
  color: #997404;
  border-color: rgba(255, 193, 7, 0.25);
}

.list-group-item-secondary {
  background-color: rgba(108, 117, 125, 0.12);
  color: #5c636a;
  border-color: rgba(108, 117, 125, 0.18);
}

html[data-bs-theme="dark"] .list-group-item-success {
  background-color: rgba(25, 135, 84, 0.2);
  color: #7ee2af;
  border-color: rgba(25, 135, 84, 0.28);
}

html[data-bs-theme="dark"] .list-group-item-danger {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ff9aa5;
  border-color: rgba(220, 53, 69, 0.28);
}

html[data-bs-theme="dark"] .list-group-item-warning {
  background-color: rgba(255, 193, 7, 0.22);
  color: #ffd86b;
  border-color: rgba(255, 193, 7, 0.3);
}

html[data-bs-theme="dark"] .list-group-item-secondary {
  background-color: rgba(148, 163, 184, 0.12);
  color: #c8d2e0;
  border-color: rgba(148, 163, 184, 0.2);
}

.accordion-button {
  box-shadow: none;
}

.accordion-button:focus,
.form-control:focus,
.form-select:focus {
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.15rem rgba(78, 115, 223, 0.12);
}

.device-accordion-shell {
  width: 100%;
}

.device-accordion-table {
  width: 100%;
}

.device-accordion-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.device-accordion-search-wrap {
  position: relative;
  flex: 1 1 22rem;
  max-width: 30rem;
}

.device-accordion-search-wrap i {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  color: var(--bc-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.device-accordion-search {
  padding-left: 2.15rem;
}

.device-accordion-table-header {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(12rem, 1.35fr) minmax(8rem, 0.85fr);
  gap: 0.75rem;
  padding: 0 3.25rem 0.4rem 1rem;
  color: var(--bc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.device-accordion-sort-button,
.device-accordion-column-label {
  min-width: 0;
}

.device-accordion-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-transform: inherit;
}

.device-accordion-sort-button:hover,
.device-accordion-sort-button:focus-visible,
.device-accordion-sort-button.is-active {
  color: var(--bc-primary);
}

.device-accordion-sort-button:focus-visible {
  outline: 2px solid rgba(78, 115, 223, 0.32);
  outline-offset: 0.18rem;
}

.device-sort-icon {
  flex: 0 0 auto;
  font-size: 0.68rem;
  opacity: 0.55;
}

.device-accordion-sort-button.is-active .device-sort-icon {
  opacity: 1;
}

.device-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.device-accordion-item {
  border: 1px solid var(--bc-border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.device-accordion-item[hidden] {
  display: none;
}

.device-accordion-button {
  align-items: center;
  padding: 0.85rem 1rem;
}

.device-accordion-summary {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(12rem, 1.35fr) minmax(8rem, 0.85fr);
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  text-align: left;
}

.device-summary-site,
.device-summary-name,
.device-summary-type {
  min-width: 0;
}

.device-summary-label {
  display: block;
  color: var(--bc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.device-summary-value {
  display: block;
  color: var(--bc-heading);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0.16rem;
  overflow-wrap: anywhere;
}

.device-accordion-table .device-summary-value {
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-accordion-body {
  padding: 0.85rem 1rem 1rem;
}

.device-accordion-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.device-accordion-detail-row {
  border: 1px solid var(--bc-border-soft);
  border-radius: 0.45rem;
  background: var(--bc-surface-muted);
  padding: 0.55rem 0.65rem;
}

.device-accordion-detail-label {
  display: block;
  color: var(--bc-muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.device-accordion-detail-value {
  display: block;
  color: var(--bc-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.device-accordion-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.device-accordion-terminal {
  flex: 1 1 14rem;
  max-width: 22rem;
}

.device-accordion-empty {
  border: 1px dashed var(--bc-border);
  border-radius: 0.5rem;
  background: var(--bc-surface);
  color: var(--bc-muted);
  padding: 1rem;
}

.table > :not(caption) > * > * {
  border-bottom-color: var(--bc-border-soft);
}

.table-alert-row,
.table-alert-row > th,
.table-alert-row > td {
  --bs-table-bg: #dc3545;
  --bs-table-striped-bg: #dc3545;
  --bs-table-hover-bg: #c82333;
  --bs-table-color: #fff;
  --bs-table-striped-color: #fff;
  --bs-table-hover-color: #fff;
  background-color: #dc3545 !important;
  color: #fff !important;
}

.table-alert-row a,
.table-alert-row code,
.table-alert-row .btn,
.table-alert-row .door-motor-toggle,
.table-alert-row .text-body-secondary,
.table-alert-row .text-body-emphasis {
  color: #fff !important;
}

.public-stat-card.is-stale {
  background-color: rgba(220, 53, 69, 0.14);
}

html[data-bs-theme="dark"] .public-stat-card.is-stale {
  background-color: rgba(220, 53, 69, 0.26);
}

.site-overview-lane {
  min-width: 0;
}

@media (min-width: 992px) {
  .site-overview-row {
    align-items: flex-start;
  }

  .site-overview-row .site-overview-lane {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
  }

  .site-overview-lane > [data-site-dashboard-lane-card] {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
}

.site-notes-cell {
  min-width: 0;
}

.site-notes-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bc-primary);
  box-shadow: none;
}

.site-notes-toggle:hover,
.site-notes-toggle:focus-visible {
  color: var(--bc-primary-hover);
  background: rgba(78, 115, 223, 0.12);
  outline: none;
}

.site-notes-icon {
  transition: transform 0.2s ease;
}

.site-notes-toggle[aria-expanded="true"] .site-notes-icon {
  transform: rotate(180deg);
}

.site-notes-collapse {
  max-width: 100%;
  overflow: hidden;
}

.site-notes-content {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.door-status-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
}

.door-status-text {
  flex: 1 1 auto;
  min-width: 0;
}

.door-motor-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bc-primary);
  box-shadow: none;
}

.door-motor-toggle:hover,
.door-motor-toggle:focus-visible {
  background: rgba(78, 115, 223, 0.12);
  color: var(--bc-primary-hover);
  outline: none;
}

.door-motor-toggle i {
  font-size: 0.75rem;
  transition: transform 0.18s ease;
}

.door-motor-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.door-motor-detail-card {
  margin: 0.1rem 0.35rem 0.35rem;
  padding: 0.5rem 0.65rem 0.55rem;
  border: 1px solid var(--bc-border-soft);
  border-radius: 0.7rem;
  background: var(--bc-surface-muted);
}

.door-motor-detail-stack {
  display: grid;
  gap: 0.45rem;
}

.door-motor-detail-item + .door-motor-detail-item {
  padding-top: 0.38rem;
  border-top: 1px solid var(--bc-border-soft);
}

.door-motor-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bc-muted);
}

.door-motor-detail-data {
  margin-top: 0.12rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--bc-heading);
  overflow-wrap: anywhere;
}

.door-motor-detail-value {
  margin-top: 0.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bc-heading);
}

.door-motor-detail-meta {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--bc-muted);
}

.table-bordered > :not(caption) > * > * {
  border-color: var(--bc-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--bc-table-stripe);
}

.table-fit-column {
  width: 1%;
  white-space: nowrap;
}

.admin-users-level-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bc-primary);
  font-size: 0.78rem;
  line-height: 1;
  vertical-align: middle;
}

.admin-users-level-help:hover,
.admin-users-level-help:focus {
  color: var(--bc-primary-hover);
}

.admin-users-level-tooltip .tooltip-inner {
  max-width: min(24rem, calc(100vw - 2rem));
  text-align: left;
}

.admin-users-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.admin-users-mobile-toggle i {
  transition: transform 0.16s ease;
}

.admin-users-mobile-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.admin-user-default-customer-locked {
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bs-border-radius-sm);
  background: var(--bc-surface-muted);
  color: var(--bc-heading);
  font-size: 0.875rem;
}

.admin-user-default-customer-locked:not([hidden]) {
  display: flex;
}

.admin-user-default-customer-locked i {
  margin-right: 0.45rem;
  color: var(--bc-muted);
  font-size: 0.75rem;
}

.admin-users-mobile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 0.65rem;
  padding: 0.55rem 0.75rem 0.65rem;
  background: var(--bc-surface-muted);
  border-top: 1px solid var(--bc-border-soft);
}

.admin-users-mobile-detail {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.admin-users-mobile-detail-label {
  flex: 0 0 auto;
  color: var(--bc-muted);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-users-mobile-detail-value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--bc-heading);
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-users-mobile-detail-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 0.1rem;
}

.admin-user-history {
  overflow: hidden;
  border: 1px solid var(--bc-border);
  border-radius: 0.375rem;
}

.admin-user-history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 0;
  background: var(--bc-surface-muted);
  color: var(--bc-heading);
  font-weight: 700;
  text-align: left;
}

.admin-user-history-toggle:hover,
.admin-user-history-toggle:focus-visible {
  background: var(--bc-border-soft);
}

.admin-user-history-chevron {
  transition: transform 0.16s ease;
}

.admin-user-history-toggle[aria-expanded="true"] .admin-user-history-chevron {
  transform: rotate(180deg);
}

.admin-user-history-list {
  max-height: 22rem;
  overflow-y: auto;
  border-top: 1px solid var(--bc-border-soft);
  background: var(--bc-surface);
}

.admin-user-history-entry {
  display: grid;
  grid-template-columns: 0.55rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--bc-border-soft);
}

.admin-user-history-entry:last-child {
  border-bottom: 0;
}

.admin-user-history-marker {
  width: 0.52rem;
  height: 0.52rem;
  margin-top: 0.32rem;
  border-radius: 50%;
  background: var(--bc-muted);
}

.admin-user-history-entry.is-success .admin-user-history-marker {
  background: var(--bs-success);
}

.admin-user-history-entry.is-failure .admin-user-history-marker {
  background: var(--bs-danger);
}

.admin-user-history-content {
  min-width: 0;
}

.admin-user-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--bc-heading);
}

.admin-user-history-heading time {
  flex: 0 0 auto;
  color: var(--bc-muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.admin-user-history-description {
  margin-top: 0.12rem;
  color: var(--bc-text);
  font-size: 0.82rem;
}

.admin-user-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  margin-top: 0.25rem;
  color: var(--bc-muted);
  font-size: 0.72rem;
}

.admin-user-history-empty {
  padding: 1rem;
  color: var(--bc-muted);
  font-size: 0.82rem;
  text-align: center;
}

.device-qr-preview-code {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}

.device-qr-preview-code svg {
  display: block;
  width: min(100%, 14rem);
  height: auto;
}

#wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--bc-sidebar-width);
  min-width: var(--bc-sidebar-width);
  min-height: 100vh;
  height: 100dvh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  background: var(--bc-sidebar-bg);
  color: #fff;
  transition: width 0.2s ease, transform 0.2s ease;
  box-shadow: 0 0.75rem 2rem rgba(8, 66, 152, 0.15);
  overflow-y: auto;
  z-index: 1030;
}

.sidebar .nav-link,
.sidebar .sidebar-brand {
  color: rgba(255, 255, 255, 0.92);
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.75rem;
  margin: 0.2rem 0.75rem;
  font-weight: 600;
}

.sidebar .nav-item {
  list-style: none;
}

.sidebar .nav-link i {
  width: 1.25rem;
  text-align: center;
}

.sidebar-brand {
  min-height: 4.5rem;
  text-decoration: none;
  gap: 0.75rem;
}

.sidebar-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sidebar-brand-text {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.sidebar-divider {
  margin: 0.9rem 1rem;
  border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-toggle-wrap {
  margin-top: auto;
  padding: 0 1rem 1rem;
  position: sticky;
  bottom: 0;
  z-index: 2;
  text-align: center;
}

.sidebar-toggle-button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar-toggle-button:hover,
.sidebar-toggle-button:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.sidebar-toggle-button:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.14);
}

.sidebar-toggle-button i {
  transition: transform 0.18s ease;
}

body.sidebar-toggled .sidebar,
.sidebar.toggled {
  width: var(--bc-sidebar-collapsed-width);
  min-width: var(--bc-sidebar-collapsed-width);
}

body.sidebar-toggled .sidebar .sidebar-brand-text,
body.sidebar-toggled .sidebar .nav-link span,
.sidebar.toggled .sidebar-brand-text,
.sidebar.toggled .nav-link span {
  display: none !important;
}

body.sidebar-toggled .sidebar .nav-link,
.sidebar.toggled .nav-link {
  justify-content: center;
  padding-inline: 0.75rem;
}

body.sidebar-toggled .sidebar .nav-link i,
.sidebar.toggled .nav-link i {
  margin: 0;
}

body.sidebar-toggled .sidebar .sidebar-toggle-wrap,
.sidebar.toggled .sidebar-toggle-wrap {
  padding-inline: 0.75rem;
}

body.sidebar-toggled .sidebar .sidebar-toggle-button,
.sidebar.toggled .sidebar-toggle-button {
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 999px;
}

#content-wrapper {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-content-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-right: max(0.75rem, calc(var(--bs-gutter-x) * 0.5));
  padding-bottom: 1.875rem;
  padding-left: max(0.75rem, calc(var(--bs-gutter-x) * 0.5));
  overflow-x: hidden;
  overflow-x: clip;
}

.topbar {
  min-height: 4.5rem;
  border-bottom: 1px solid var(--bc-border);
}

.topbar .navbar-nav {
  align-items: center;
}

.sidebar-toggle-top {
  display: none;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle-top,
.sidebar-toggle-top:hover,
.sidebar-toggle-top:focus {
  text-decoration: none !important;
}

.sidebar-toggle-top i {
  line-height: 1;
}

.topbar .nav-item {
  display: flex;
  align-items: center;
}

.topbar-heading {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: min(34vw, 20rem);
  margin-left: 1rem;
}

.topbar-customer-name {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 18rem;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--bc-border-soft);
  border-radius: 999px;
  background: var(--bc-surface-muted);
  color: var(--bc-heading);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.34rem 0.55rem;
}

.topbar-customer-name i {
  flex: 0 0 auto;
  color: var(--bc-primary);
  font-size: 0.72rem;
}

.topbar-customer-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar.bg-white,
.sticky-footer.bg-white {
  background-color: var(--bc-surface) !important;
}

.topbar .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topbar-divider {
  width: 1px;
  height: 2rem;
  flex: 0 0 auto;
  background: var(--bc-border);
  margin: 0 1rem;
  list-style: none;
}

.dropdown-list {
  min-width: min(22rem, calc(100vw - 2rem));
  max-height: 24rem;
  overflow: auto;
}

.topbar .user-dropdown-menu {
  min-width: 14rem;
  max-width: min(18rem, calc(100vw - 1rem));
}

.user-settings-modal .user-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.user-settings-modal .user-temperature-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.user-temperature-setting-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.user-temperature-unit-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.temperature-unit-option {
  min-width: 1.7rem;
  color: var(--bs-secondary-color);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: color 0.18s ease;
}

.temperature-unit-option.is-active {
  color: var(--bc-primary);
}

.temperature-unit-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 3rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.temperature-unit-toggle.is-fahrenheit {
  border-color: var(--bc-primary);
  background: var(--bc-primary);
}

.temperature-unit-toggle:focus-visible {
  outline: 3px solid rgba(78, 115, 223, 0.28);
  outline-offset: 2px;
}

.temperature-unit-toggle:disabled {
  cursor: wait;
  opacity: 0.65;
}

.temperature-unit-toggle-knob {
  position: absolute;
  top: 0.17rem;
  left: 0.18rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1rem 0.35rem rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}

.temperature-unit-toggle.is-fahrenheit .temperature-unit-toggle-knob {
  transform: translateX(1.35rem);
}

.theme-toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background-color 0.18s ease;
}

.theme-toggle-switch-knob {
  position: absolute;
  top: 0.18rem;
  left: 0.18rem;
  width: 1.09rem;
  height: 1.09rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0.1rem 0.35rem rgba(15, 23, 42, 0.25);
  transition: transform 0.18s ease;
}

.theme-toggle-switch.is-active {
  background: var(--bc-primary);
}

.theme-toggle-switch.is-active .theme-toggle-switch-knob {
  transform: translateX(1.05rem);
}

.dropdown-header {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dropdown.no-arrow .dropdown-toggle::after,
.dropdown-icon-button.dropdown-toggle::after {
  display: none;
}

.dropdown-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.dropdown-icon-button:hover,
.dropdown-icon-button:focus-visible {
  background: rgba(78, 115, 223, 0.1);
}

.dropdown-icon-button:focus {
  box-shadow: none;
}

.dropdown-list-image {
  position: relative;
  flex: 0 0 auto;
}

.dropdown-list-image img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid #fff;
}

.img-profile {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
}

.badge-counter {
  position: absolute;
  top: 0.2rem;
  right: -0.45rem;
  transform: scale(0.85);
  transform-origin: top right;
}

.sticky-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-inline: 0.5rem;
  border-top: 1px solid var(--bc-border);
}

.login-page {
  min-height: 100dvh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: #f4f6f9;
}

.login-page::before,
.login-page::after {
  display: none;
}

.login-page::before {
  display: none;
}

.auth-shell {
  min-height: 100dvh;
  padding: clamp(1rem, 2vw + 0.5rem, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-frame {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.82fr);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.1);
}

.auth-showcase,
.auth-form-panel {
  padding: clamp(1.5rem, 1.2rem + 1.6vw, 3rem);
}

.auth-showcase {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, #123b77 0%, #0d274c 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  display: none;
}

.auth-showcase-inner,
.auth-form-inner,
.auth-form {
  display: flex;
  flex-direction: column;
}

.auth-showcase-inner {
  position: relative;
  z-index: 1;
  gap: 2.5rem;
  height: 100%;
  justify-content: space-between;
}

.auth-copy-stack {
  display: grid;
  gap: 1.1rem;
  max-width: 30rem;
}

.auth-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.auth-eyebrow-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #9bd2ff;
  box-shadow: 0 0 0 0.35rem rgba(155, 210, 255, 0.16);
}

.auth-copy {
  display: grid;
  gap: 1rem;
}

.auth-title,
.auth-form-title {
  margin: 0;
  font-family: "Space Grotesk", "Nunito", sans-serif;
  letter-spacing: -0.04em;
}

.auth-title {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(2.35rem, 1.9rem + 1.35vw, 3.55rem);
  line-height: 1;
}

.auth-lead {
  max-width: 26rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.auth-showcase-support {
  width: 100%;
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo-lockup {
  width: clamp(5.5rem, 5rem + 1.4vw, 7rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-brand-logo {
  width: 74%;
  max-width: none;
  filter: drop-shadow(0 0.75rem 1rem rgba(15, 23, 42, 0.18));
}

.auth-showcase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.auth-showcase-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-showcase-list li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #9bd2ff;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
}

.auth-form-inner {
  width: min(100%, 24rem);
  margin: 0 auto;
  gap: 1.35rem;
}

.auth-form-brand {
  display: none;
  align-items: center;
  gap: 0.8rem;
}

.auth-form-brand-mark {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #e8f0ff 0%, #dce7ff 100%);
}

.auth-form-brand-logo {
  width: 68%;
  max-width: none;
}

.auth-form-brand-copy {
  display: grid;
  gap: 0.12rem;
}

.auth-form-brand-name {
  font-family: "Space Grotesk", "Nunito", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
}

.auth-form-brand-subtitle {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #64748b;
}

.auth-alert {
  border: none;
  border-radius: 1rem;
  background: #ffe7e9;
  color: #842029;
  box-shadow: none;
}

.auth-form-heading {
  display: grid;
  gap: 0.55rem;
}

.auth-form-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-primary);
}

.auth-form-title {
  color: #111827;
  font-size: clamp(2rem, 1.75rem + 0.7vw, 2.55rem);
  line-height: 1.02;
}

.auth-form-copy,
.auth-form-note {
  margin: 0;
  line-height: 1.5;
  color: #5f6f84;
}

.auth-form {
  gap: 1rem;
}

.login-page .form-label {
  margin-bottom: 0.55rem;
  font-weight: 800;
  color: #0f172a;
}

.login-page .form-control {
  min-height: 3.4rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: #fff;
  box-shadow: none;
}

.login-page .form-control::placeholder {
  color: #94a3b8;
}

.login-page .form-control:focus {
  border-color: rgba(13, 110, 253, 0.68);
  background: #fff;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.auth-submit {
  min-height: 3.4rem;
  border: none;
  border-radius: 0.9rem;
  background: #0d6efd;
  box-shadow: 0 0.75rem 1.4rem rgba(13, 110, 253, 0.18);
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 1rem 1.8rem rgba(13, 110, 253, 0.22);
}

.auth-submit:focus-visible {
  box-shadow:
    0 0 0 0.25rem rgba(13, 110, 253, 0.12),
    0 1rem 1.8rem rgba(13, 110, 253, 0.22);
}

.public-shell,
.auth-shell {
  position: relative;
  z-index: 1;
}

@media (max-width: 991.98px) {
  .auth-shell {
    align-items: flex-start;
  }

  .auth-frame {
    grid-template-columns: 1fr;
  }

  .auth-form-panel {
    order: 1;
  }

  .auth-showcase {
    order: 2;
  }

  .auth-showcase-inner {
    justify-content: flex-start;
  }

  .auth-showcase-support {
    margin-top: 0;
  }

  .auth-form-panel {
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .auth-shell {
    padding: 0.5rem;
  }

  .auth-frame {
    display: block;
    border-radius: 1rem;
    box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.08);
  }

  .login-page::before,
  .login-page::after {
    display: none;
  }

  .auth-showcase {
    display: none;
  }

  .auth-form-panel {
    padding: 1rem;
  }

  .auth-form-inner {
    width: 100%;
    gap: 1rem;
  }

  .auth-form-brand {
    display: flex;
  }

  .auth-form-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }

  .auth-form-copy,
  .auth-form-note {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .auth-form-note {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .auth-form-panel {
    padding: 0.95rem;
  }

  .auth-eyebrow {
    font-size: 0.7rem;
  }

  .auth-form-brand-mark {
    width: 2.75rem;
    height: 2.75rem;
  }

  .auth-form-brand-name {
    font-size: 0.98rem;
  }

  .login-page .form-label {
    font-size: 0.88rem;
  }

  .login-page .form-control,
  .auth-submit {
    min-height: 3rem;
    padding: 0.85rem 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit {
    transition: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-frame {
    background: rgba(255, 255, 255, 0.98);
  }
}

@supports not (min-height: 100dvh) {
  .login-page,
  .auth-shell {
    min-height: 100vh;
  }
}

/* Compact shared layout for sign-in and password reset screens. */
.auth-card {
  width: min(100%, 26rem);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: #172033;
  font-size: 1.25rem;
  font-weight: 800;
}

.auth-card .auth-brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: none;
}

.auth-heading {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.auth-card .auth-title {
  max-width: none;
  margin: 0;
  color: #172033;
  font-family: inherit;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.auth-copy {
  margin: 0;
  color: #657187;
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-card .auth-form {
  gap: 1rem;
}

.auth-field {
  display: grid;
}

.auth-card .form-label {
  margin-bottom: 0.4rem;
  color: #2b3548;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-card .form-control {
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbd3df;
  border-radius: 6px;
}

.auth-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.auth-card .auth-submit {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-card .auth-submit:hover,
.auth-card .auth-submit:focus-visible {
  transform: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.auth-card .auth-alert {
  padding: 0.75rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.auth-card .alert-danger {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

.auth-card .alert-success {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.auth-support {
  text-align: center;
  font-size: 0.92rem;
}

.auth-support a {
  color: #0b5ed7;
  font-weight: 700;
  text-decoration: none;
}

.auth-support a:hover,
.auth-support a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .auth-card {
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1.4rem rgba(15, 23, 42, 0.07);
  }
}

.o-hidden { overflow: hidden !important; }
.bg-gradient-primary { background: var(--bc-sidebar-bg) !important; }

.border-left-primary { border-left: 0.35rem solid var(--bc-primary) !important; }
.border-left-success { border-left: 0.35rem solid var(--bc-success) !important; }
.border-left-info { border-left: 0.35rem solid var(--bc-info) !important; }
.border-left-warning { border-left: 0.35rem solid var(--bc-warning) !important; }
.border-left-danger { border-left: 0.35rem solid var(--bc-danger) !important; }

.animated--grow-in,
.animated--fade-in {
  animation: bcFadeIn 0.16s ease-out;
}

@keyframes bcFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rotate-n-15 {
  transform: rotate(-15deg);
}

.dropdown-menu-end,
.dropdown-menu-right {
  --bs-position: end;
}

.table th,
.table td {
  vertical-align: middle;
}

.dataTables_wrapper,
.dt-container {
  color: var(--bc-text);
}

.datatable-shell {
  position: relative;
  min-height: 11rem;
  width: 100%;
}

.datatable-loading-indicator {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bc-surface);
  color: var(--bc-muted);
  font-weight: 600;
}

.datatable-shell.is-loading .datatable-loading-indicator {
  display: flex;
  animation: datatable-loading-fallback 0s linear 1.2s forwards;
}

.datatable-shell.is-loading .datatable-pending {
  opacity: 0;
  animation: datatable-pending-fallback 0s linear 1.2s forwards;
}

@keyframes datatable-loading-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes datatable-pending-fallback {
  to {
    opacity: 1;
  }
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dt-container .dt-length,
.dt-container .dt-search {
  display: block;
  margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_length,
.dt-container .dt-length {
  float: left;
}

.dataTables_wrapper .dataTables_filter,
.dt-container .dt-search {
  float: right;
  text-align: right;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dt-container .dt-length label,
.dt-container .dt-search label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dt-container .dt-search input,
.dt-container .dt-length select,
.dt-container .dt-input,
.dt-container .dt-length .form-select,
.dt-container .dt-search .form-control {
  display: inline-block;
  width: auto;
  min-width: 5rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--bc-border);
  border-radius: 0.375rem;
  background: var(--bc-surface);
  color: var(--bc-text);
}

.dt-container .dt-layout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dt-container .dt-layout-start,
.dt-container .dt-layout-end {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dt-container .dt-layout-start {
  margin-right: auto;
}

.dt-container .dt-layout-end {
  margin-left: auto;
}

.dataTables_wrapper .dataTables_info,
.dt-container .dt-info {
  float: left;
  margin-top: 0.75rem;
  color: var(--bc-muted);
}

.dataTables_wrapper .dataTables_paginate,
.dt-container .dt-paging {
  float: right;
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dataTables_wrapper .dataTable,
.dt-container .dataTable {
  clear: both;
  width: 100% !important;
  min-width: 100%;
}

.dataTables_wrapper::after,
.dt-container::after {
  content: "";
  display: block;
  clear: both;
}

.dataTables_wrapper .paginate_button,
.dt-container .dt-paging > .dt-paging-button,
.dt-container .dt-paging-button button,
.dt-container .dt-paging-button .page-link,
.dt-container .pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--bc-border);
  border-radius: 0.375rem;
  background: var(--bc-surface);
  color: var(--bc-primary) !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none;
}

.dt-container .page-item.dt-paging-button {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.dt-container .pagination {
  margin-bottom: 0;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.dt-container .page-item {
  margin: 0;
}

.dataTables_wrapper .paginate_button.current,
.dataTables_wrapper .paginate_button:hover,
.dt-container .dt-paging > .dt-paging-button.current,
.dt-container .dt-paging-button.current button,
.dt-container .dt-paging-button.current .page-link,
.dt-container .dt-paging > .dt-paging-button:hover,
.dt-container .dt-paging-button:hover button,
.dt-container .dt-paging-button:hover .page-link,
.dt-container .page-item.active .page-link,
.dt-container .page-item .page-link:hover {
  background: var(--bc-primary);
  border-color: var(--bc-primary);
  color: #fff !important;
}

.dataTables_wrapper .paginate_button.disabled,
.dataTables_wrapper .paginate_button.disabled:hover,
.dt-container .dt-paging > .dt-paging-button.disabled,
.dt-container .dt-paging-button.disabled button,
.dt-container .dt-paging-button.disabled .page-link,
.dt-container .dt-paging > .dt-paging-button.disabled:hover,
.dt-container .dt-paging-button.disabled:hover button,
.dt-container .dt-paging-button.disabled:hover .page-link,
.dt-container .page-item.disabled .page-link,
.dt-container .page-item.disabled .page-link:hover {
  opacity: 0.55;
  background: var(--bc-surface);
  border-color: var(--bc-border);
  color: var(--bc-muted) !important;
  cursor: default;
}

.dataTables_wrapper .dataTables_paginate .ellipsis,
.dt-container .dt-paging .ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.25rem;
}

@media (max-width: 991.98px) {
  .sidebar-toggle-top {
    display: inline-flex;
  }

  .sidebar-toggle-wrap {
    display: none !important;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    min-height: 100dvh;
    transform: translateX(-100%);
    z-index: 1045;
  }

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

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

  body.sidebar-toggled .sidebar,
  body.sidebar-toggled .sidebar.toggled,
  .sidebar.toggled {
    width: var(--bc-sidebar-width);
    min-width: var(--bc-sidebar-width);
  }

  body.sidebar-toggled .sidebar .sidebar-brand-text,
  body.sidebar-toggled .sidebar .nav-link span,
  .sidebar.toggled .sidebar-brand-text,
  .sidebar.toggled .nav-link span {
    display: inline !important;
  }

  body.sidebar-toggled .sidebar .nav-link,
  .sidebar.toggled .nav-link {
    justify-content: flex-start;
    padding-inline: 1.1rem;
  }

  body.sidebar-toggled .sidebar .nav-link i,
  .sidebar.toggled .nav-link i {
    margin: 0;
  }

  body.sidebar-toggled .sidebar .nav-item .collapse,
  .sidebar.toggled .nav-item .collapse {
    position: static;
    margin: 0.2rem 0.75rem 0.6rem;
  }

  #content-wrapper {
    width: 100%;
  }

  body.mobile-sidebar-open #content-wrapper {
    overflow: hidden;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate,
  .dt-container .dt-length,
  .dt-container .dt-search,
  .dt-container .dt-info,
  .dt-container .dt-paging {
    float: none;
    text-align: left;
  }

  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label,
  .dt-container .dt-search label,
  .dt-container .dt-length label {
    width: 100%;
    flex-wrap: wrap;
  }

  .dataTables_wrapper .dataTables_paginate,
  .dt-container .dt-paging {
    justify-content: flex-start;
  }

  .dt-container .dt-layout-row,
  .dt-container .dt-layout-start,
  .dt-container .dt-layout-end {
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  body {
    overflow-x: hidden;
  }

  #wrapper,
  #content-wrapper,
  .sidebar,
  .login-page {
    min-height: 100dvh;
  }

  .sidebar {
    width: min(18rem, calc(100vw - 2.5rem));
    min-width: min(18rem, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
    min-height: 100dvh;
    transform: translateX(-100%);
    z-index: 1045;
  }

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

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

  body.sidebar-toggled .sidebar,
  body.sidebar-toggled .sidebar.toggled,
  .sidebar.toggled {
    width: min(18rem, calc(100vw - 2.5rem));
    min-width: min(18rem, calc(100vw - 2.5rem));
    max-width: calc(100vw - 2.5rem);
  }

  body.sidebar-toggled .sidebar .sidebar-brand-text,
  body.sidebar-toggled .sidebar .nav-link span,
  .sidebar.toggled .sidebar-brand-text,
  .sidebar.toggled .nav-link span {
    display: inline !important;
  }

  body.sidebar-toggled .sidebar .nav-link,
  .sidebar.toggled .nav-link {
    justify-content: flex-start;
    padding-inline: 1.1rem;
  }

  body.sidebar-toggled .sidebar .nav-link i,
  .sidebar.toggled .nav-link i {
    margin: 0;
  }

  body.sidebar-toggled .sidebar .sidebar-toggle-wrap,
  .sidebar.toggled .sidebar-toggle-wrap {
    padding-inline: 1rem;
  }

  body.sidebar-toggled .sidebar .nav-item .collapse,
  .sidebar.toggled .nav-item .collapse {
    position: static;
    margin: 0.2rem 0.75rem 0.6rem;
  }

  #content-wrapper {
    width: 100%;
    min-height: 100dvh;
    overflow: visible;
  }

  body:not(.sidebar-toggled) #content-wrapper {
    overflow: visible;
  }

  .topbar {
    min-height: 4rem;
    margin-bottom: 0.75rem !important;
    padding-inline: 0.5rem;
  }

  .topbar .navbar-nav {
    gap: 0.125rem;
  }

  .topbar-heading {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 10.5rem);
    margin-left: 0;
  }

  .topbar-customer-name {
    flex: 0 1 9rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.68rem;
  }

  .topbar-customer-name i {
    display: none;
  }

  .topbar .nav-link {
    min-height: 2.5rem;
    padding: 0.375rem 0.5rem;
  }

  .topbar-divider {
    height: 1.6rem;
    margin: 0 0.5rem;
  }

  .topbar .dropdown {
    position: static;
  }

  .topbar .dropdown-menu {
    position: fixed !important;
    inset: calc(env(safe-area-inset-top, 0px) + 3.85rem) 0.75rem auto 0.75rem !important;
    width: auto !important;
    max-width: calc(100vw - 1.5rem) !important;
    transform: none !important;
  }

  .dropdown-list,
  .topbar .user-dropdown-menu {
    min-width: 0 !important;
    max-width: none !important;
    max-height: min(65vh, 24rem);
  }

  .app-content-shell {
    padding-right: 0.35rem;
    padding-bottom: 0.75rem;
    padding-left: 0.35rem;
  }

  body.tables-page .app-content-shell {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .admin-users-table-wrap {
    overflow-x: visible;
  }

  .admin-users-table {
    display: block;
    width: 100%;
    table-layout: auto;
  }

  .admin-users-table thead {
    display: none;
  }

  .admin-users-table tbody {
    display: block;
  }

  .admin-users-table th,
  .admin-users-table td {
    padding: 0;
  }

  .admin-users-table .admin-users-detail-col {
    display: none;
  }

  .admin-users-table .js-admin-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content 2.15rem;
    align-items: center;
    column-gap: 0.55rem;
    padding: 0.62rem 0.72rem;
    border-top: 1px solid var(--bc-border-soft);
  }

  .admin-users-table .js-admin-user-row:first-child {
    border-top: 0;
  }

  .admin-users-table .js-admin-user-row > td {
    display: block;
    min-width: 0;
    border: 0;
  }

  .admin-users-table .js-admin-user-row > .admin-users-detail-col {
    display: none;
  }

  .admin-users-table .admin-users-actions-col {
    width: auto;
    justify-self: end;
  }

  .admin-users-actions-desktop {
    display: none !important;
  }

  .admin-users-mobile-toggle {
    display: inline-flex;
  }

  .admin-users-table .js-user-summary-username,
  .admin-users-table .js-user-summary-level {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-users-table .js-user-summary-level {
    font-size: 0.78rem;
  }

  .admin-users-table .js-user-summary-status {
    white-space: nowrap;
  }

  .admin-users-mobile-details-row {
    display: block;
    border-top: 0;
  }

  .admin-users-mobile-details-row > td {
    display: block;
    border: 0;
  }

  .sticky-footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  body.tables-page .table-page-card {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 0.5rem !important;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  body.tables-page .table-page-card-body {
    padding: 0.1rem 0;
  }

  .datatable-shell {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .datatable-shell .dataTables_wrapper,
  .datatable-shell .dt-container {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.tables-page .datatable-shell .dataTables_wrapper,
  body.tables-page .datatable-shell .dt-container {
    padding-right: 0;
    padding-left: 0;
  }

  .datatable-shell .table {
    margin-bottom: 0;
  }

  .datatable-shell .dataTables_length,
  .datatable-shell .dataTables_filter,
  .datatable-shell .dt-length,
  .datatable-shell .dt-search {
    margin-bottom: 0.35rem;
  }

  .datatable-shell .dataTables_length,
  .datatable-shell .dt-length {
    display: none !important;
  }

  .datatable-shell .dataTables_length {
    float: left;
  }

  .datatable-shell .dataTables_filter {
    float: right;
    text-align: right;
  }

  .datatable-shell .dataTables_filter label,
  .datatable-shell .dataTables_length label,
  .datatable-shell .dt-search label,
  .datatable-shell .dt-length label {
    width: auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    font-size: 0;
  }

  .datatable-shell .dataTables_length label::before,
  .datatable-shell .dt-length label::before {
    content: "View";
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bc-muted);
  }

  .datatable-shell .dataTables_filter,
  .datatable-shell .dt-search {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .datatable-shell .dataTables_filter::before,
  .datatable-shell .dt-search::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--bc-muted);
  }

  .datatable-shell .dataTables_filter label::before,
  .datatable-shell .dt-search label::before {
    content: none;
  }

  .datatable-shell .dataTables_filter input,
  .datatable-shell .dataTables_length select,
  .datatable-shell .dt-search input,
  .datatable-shell .dt-length select,
  .datatable-shell .dt-input,
  .datatable-shell .dt-length .form-select,
  .datatable-shell .dt-search .form-control {
    min-width: 0;
    font-size: 0.875rem;
    padding: 0.3rem 0.55rem;
  }

  .datatable-shell .dataTables_filter input,
  .datatable-shell .dt-search input,
  .datatable-shell .dt-search .form-control {
    width: min(7rem, 38vw);
  }

  .datatable-shell .dt-layout-row {
    margin-right: 0;
    margin-left: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .datatable-shell .dt-layout-row > * {
    width: auto;
    max-width: none;
    flex: 0 1 auto;
    padding-right: 0;
    padding-left: 0;
  }

  .datatable-shell .dt-layout-start,
  .datatable-shell .dt-layout-end {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
  }

  .datatable-shell .table th,
  .datatable-shell .table td {
    padding: 0.36rem 0.38rem;
  }

  body.tables-page .datatable-shell .table th,
  body.tables-page .datatable-shell .table td {
    padding: 0.24rem 0.26rem;
  }

  body.tables-page .door-history-table {
    table-layout: fixed;
  }

  body.tables-page .door-history-table th,
  body.tables-page .door-history-table td {
    vertical-align: top;
  }

  body.tables-page .door-history-table th:nth-child(1),
  body.tables-page .door-history-table .door-history-date {
    width: 5.8rem;
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: normal;
  }

  body.tables-page .door-history-table th:nth-child(3),
  body.tables-page .door-history-table .door-history-status {
    width: 4.9rem;
    white-space: nowrap;
  }

  body.tables-page .door-history-table .door-history-name {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
  }

  body.tables-page .door-history-table .badge {
    font-size: 0.68rem;
    line-height: 1.15;
    padding: 0.4em 0.55em;
  }

  body.tables-page .temp-history-table {
    table-layout: fixed;
  }

  body.tables-page .temp-history-table th,
  body.tables-page .temp-history-table td {
    vertical-align: top;
  }

  body.tables-page .temp-history-table th:nth-child(1),
  body.tables-page .temp-history-table .temp-history-date {
    width: 5.8rem;
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: normal;
  }

  body.tables-page .temp-history-table th:nth-child(3),
  body.tables-page .temp-history-table .temp-history-reading {
    width: 4.35rem;
    white-space: nowrap;
  }

  body.tables-page .temp-history-table .temp-history-device {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
  }

  body.tables-page .temp-history-table .temp-history-reading-value {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
  }

  body.tables-page .alerts-history-table {
    table-layout: fixed;
  }

  body.tables-page .alerts-history-table th,
  body.tables-page .alerts-history-table td {
    vertical-align: top;
  }

  body.tables-page .alerts-history-table th:nth-child(1),
  body.tables-page .alerts-history-table .alerts-history-date {
    width: 6.2rem;
    font-size: 0.74rem;
    line-height: 1.2;
    white-space: normal;
  }

  body.tables-page .alerts-history-table th:nth-child(2),
  body.tables-page .alerts-history-table .alerts-history-site {
    width: 2.45rem;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal;
  }

  body.tables-page .alerts-history-table .alerts-history-site a {
    display: inline-block;
    overflow-wrap: anywhere;
  }

  body.tables-page .alerts-history-table .alerts-history-toggle-column {
    width: 1%;
    white-space: nowrap;
    padding-left: 0.1rem !important;
    padding-right: 0.1rem !important;
  }

  body.tables-page .alerts-history-table .alerts-history-message {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.tables-page .alerts-history-table .alerts-history-alert {
    line-height: 1.2;
  }

  body.tables-page .alerts-history-table .alerts-history-mobile-toggle {
    justify-content: flex-end;
    gap: 0;
  }

  body.tables-page .alerts-history-table .alerts-history-message .door-status-main {
    align-items: flex-start;
    gap: 0.2rem;
  }

  body.tables-page .alerts-history-table .alerts-history-message .door-status-text {
    min-width: 0;
  }

  body.tables-page .alerts-history-table .alerts-history-message .door-motor-detail-card {
    margin: 0.28rem 0 0.05rem;
    padding: 0.42rem 0.5rem 0.46rem;
  }

  body.tables-page .alerts-history-table tr.alerts-history-child-row td {
    padding: 0.18rem 0.1rem 0.08rem !important;
    border-top: 0;
  }

  body.tables-page .alerts-history-table tr.alerts-history-child-row .door-motor-detail-card {
    margin: 0;
    width: 100%;
  }

  .datatable-shell .dataTables_info,
  .datatable-shell .dataTables_paginate,
  .datatable-shell .dt-info,
  .datatable-shell .dt-paging {
    margin-top: 0.5rem;
  }

  .datatable-shell .dt-paging {
    justify-content: flex-start;
  }
}

.device-temp-history-card .card-header,
.device-history-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--bc-border-soft);
  padding: 0;
}

.device-temp-history-toggle,
.device-history-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 1rem 0.8rem;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.device-temp-history-toggle:hover,
.device-temp-history-toggle:focus-visible,
.device-history-toggle:hover,
.device-history-toggle:focus-visible {
  background: rgba(78, 115, 223, 0.06);
  outline: none;
}

.device-temp-history-toggle-icon,
.device-history-toggle-icon {
  flex: 0 0 auto;
  color: var(--bc-primary);
  transition: transform 0.18s ease;
}

.device-temp-history-toggle[aria-expanded="true"] .device-temp-history-toggle-icon,
.device-history-toggle[aria-expanded="true"] .device-history-toggle-icon {
  transform: rotate(180deg);
}

.device-temp-history-range {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.device-temp-history-range > .btn {
  border-radius: 999px !important;
  min-width: 5.4rem;
}

.device-temp-chart-wrap {
  position: relative;
  min-height: 280px;
}

.device-temp-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 767.98px) {
  .device-accordion-toolbar {
    margin-bottom: 0.45rem;
  }

  .device-accordion-search-wrap {
    max-width: none;
  }

  .device-accordion-table-header {
    grid-template-columns: minmax(4.8rem, 0.9fr) minmax(0, 1.25fr) minmax(4.8rem, 0.85fr);
    gap: 0.45rem;
    padding: 0 2.65rem 0.32rem 0.85rem;
    font-size: 0.58rem;
  }

  .device-accordion-button {
    padding: 0.75rem 0.85rem;
  }

  .device-accordion-summary {
    grid-template-columns: minmax(4.8rem, 0.9fr) minmax(0, 1.25fr) minmax(4.8rem, 0.85fr);
    gap: 0.45rem;
  }

  .device-summary-label {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .device-summary-value {
    font-size: 0.78rem;
    line-height: 1.15;
    margin-top: 0.08rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .device-summary-name.device-summary-value,
  .device-summary-name .device-summary-value {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .device-accordion-button::after {
    flex-shrink: 0;
    margin-left: 0.55rem;
  }

  .device-accordion-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .device-accordion-body {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .device-accordion-actions > .btn,
  .device-accordion-terminal {
    flex: 1 1 100%;
    max-width: none;
  }

  .device-temp-history-card .card-header,
  .device-history-card .card-header {
    padding: 0;
  }

  .device-temp-history-toggle,
  .device-history-toggle {
    padding: 0.7rem 0.75rem 0.65rem;
  }

  .device-temp-history-range {
    width: 100%;
  }

  .device-temp-history-range > .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }

  .device-temp-chart-wrap {
    min-height: 240px;
  }

}
.bc-max-w-30rem {
  max-width: 30rem;
}

.bc-initially-hidden {
  display: none;
}

.bc-pre-wrap {
  white-space: pre-wrap;
}

.site-vnc-frame {
  border: 0;
  height: 80vh;
  width: 100%;
}

.device-qr-video {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
