:root {
  --app-header-h: 72px;
  --bg: #edf2f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #212529;
  --muted: #6c757d;
  --line: rgba(33, 37, 41, 0.12);
  --accent: #0d6efd;
  --accent-strong: #0a58ca;
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
  --page-atmosphere:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 34%),
    linear-gradient(180deg, #f6f8fb 0%, #edf2f8 100%);
  --surface-atmosphere:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 30%),
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.13), transparent 28%),
    var(--surface);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-atmosphere);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
  background-attachment: fixed;
}

.bootstrap-workbench {
  --bs-body-bg: transparent;
  --bs-body-color: var(--text);
  --bs-card-bg: var(--surface);
  --bs-tertiary-bg: rgba(248, 250, 252, 0.74);
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
  --bs-secondary-color: var(--muted);
  --bs-border-color: rgba(33, 37, 41, 0.12);
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
  --bs-box-shadow: var(--shadow);
  --bs-card-border-color: rgba(33, 37, 41, 0.12);
}

body.sidebar-lock-scroll {
  overflow: hidden;
}

.wb-region-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.72;
  transition: opacity 0.18s ease;
}

.wb-region-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
  animation: wb-region-sheen 0.9s linear infinite;
}

@keyframes wb-region-sheen {
  from {
    transform: translateX(-18%);
  }
  to {
    transform: translateX(18%);
  }
}

[data-sidebar-toggle][data-sidebar-toggle-desktop] {
  min-width: 42px;
  padding-inline: 0.75rem;
}

[data-shell-topbar] {
  background:
    radial-gradient(circle at left center, rgba(245, 158, 11, 0.14), transparent 20%),
    radial-gradient(circle at right top, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(24, 36, 61, 0.98));
}

[data-shell-brand] img {
  width: auto;
  max-width: min(34vw, 170px);
  max-height: 30px;
}

[data-shell-menu-toggle],
[data-shell-plant-link],
[data-shell-user-trigger] {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

[data-shell-menu-toggle]:hover,
[data-shell-menu-toggle]:focus,
[data-shell-plant-link]:hover,
[data-shell-plant-link]:focus,
[data-shell-user-trigger]:hover,
[data-shell-user-trigger]:focus,
[data-shell-user-trigger][aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
}

[data-shell-plant-link] {
  max-width: min(28vw, 240px);
}

[data-shell-plant-link] > span {
  max-width: 100%;
}

[data-shell-user-trigger] {
  min-width: 0;
  padding-inline: 0.625rem;
}

[data-shell-user-avatar] {
  min-width: 1.9rem;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.78), rgba(217, 119, 6, 0.72)) !important;
  color: #fff;
}

[data-shell-user-menu] {
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 0.85rem;
  padding: 0.35rem;
  min-width: 11.5rem;
  color: rgba(248, 250, 252, 0.94);
  background:
    linear-gradient(180deg, rgba(21, 32, 55, 0.985), rgba(14, 22, 40, 0.985)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.10), transparent 30%);
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.18);
}

[data-shell-user-menu] .dropdown-item {
  color: inherit;
  border-radius: 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
}

[data-shell-user-menu] .dropdown-item:hover,
[data-shell-user-menu] .dropdown-item:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

[data-shell-user-menu] .dropdown-item:active {
  color: #fff;
  background: rgba(245, 158, 11, 0.18);
}

[data-shell-sidebar-column] {
  min-width: 0;
  transition: width 220ms ease, max-width 220ms ease, flex-basis 220ms ease;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.985), rgba(23, 35, 60, 0.98)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 28%);
  backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-shell-sidebar] {
  min-height: calc(100vh - var(--app-header-h) - 1rem);
  max-height: calc(100vh - var(--app-header-h) - 1rem);
  overflow-y: auto;
  margin: 0;
  color: rgba(248, 250, 252, 0.94);
  transition: transform 220ms ease, opacity 180ms ease, margin 220ms ease;
}

[data-shell-sidebar] .list-group {
  gap: 0.45rem !important;
}

[data-shell-sidebar] .list-group-item {
  color: rgba(248, 250, 252, 0.92);
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  border-radius: 0.25rem !important;
  padding: 0.6rem 0.75rem;
}

[data-shell-sidebar] .list-group-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: transparent;
}

[data-shell-sidebar] .list-group-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.18);
  box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.72);
}

[data-shell-sidebar] .list-group-item.active small {
  color: rgba(255, 244, 230, 0.78) !important;
}

[data-shell-sidebar] .list-group-item small {
  color: rgba(226, 232, 240, 0.68) !important;
}

[data-shell-sidebar] .list-group-item.bg-white,
[data-shell-offcanvas] .list-group-item.bg-white {
  background: transparent !important;
}

[data-shell-sidebar] section > h2 {
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.52) !important;
  font-size: 0.7rem;
  margin-bottom: 0.45rem !important;
}

[data-shell-offcanvas] {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.985), rgba(23, 35, 60, 0.98)),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 28%);
  color: rgba(248, 250, 252, 0.94);
}

[data-shell-offcanvas] .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-shell-offcanvas] .offcanvas-title {
  color: #fff;
}

[data-shell-offcanvas] .btn-close {
  filter: invert(1) grayscale(1);
}

body.sidebar-collapsed [data-shell-sidebar-column] {
  display: none !important;
  flex-basis: 0;
  max-width: 0;
  overflow: hidden;
}

body.sidebar-collapsed [data-shell-sidebar] {
  margin-left: 0;
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.wb-page {
  min-width: 0;
  overflow-x: hidden;
  transition: width 220ms ease;
}

[data-shell-page-inner] {
  min-height: calc(100vh - var(--app-header-h));
  min-width: 0;
  overflow-x: hidden;
}

[data-shell-page-inner] > * {
  min-width: 0;
}

[data-shell-page-inner] > .card,
[data-shell-page-inner] > section.card,
[data-shell-page-inner] > .d-grid > .card,
[data-shell-page-inner] > .d-grid > section.card,
[data-shell-page-inner] > .d-grid > section > .card,
[data-shell-page-inner] > .d-grid > section > .row > [class*="col"] > .card,
.wb-dashboard-hero-card {
  overflow: hidden;
  background: var(--surface-atmosphere);
}

#start-live-root > .d-grid > .card,
#start-live-root > .d-grid > section.card {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 32%),
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 30%),
    rgba(255, 255, 255, 0.88);
}

.wb-flash-stack .alert {
  margin-bottom: 0.75rem;
  border-radius: 16px;
}

.wb-shell-enabled .wb-flash-stack--shell {
  position: fixed;
  top: calc(var(--app-header-h) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1090;
  width: min(560px, calc(100vw - 2rem));
  height: 0;
  margin: 0 !important;
  padding: 0;
  pointer-events: none;
}

.wb-shell-enabled .wb-flash-stack--shell .wb-shell-flash {
  position: relative;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid;
  border-radius: 0.75rem;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
}

.wb-shell-enabled .wb-flash-stack--shell .wb-shell-flash + .wb-shell-flash {
  margin-top: 0.75rem;
}

.wb-shell-enabled .wb-flash-stack--shell .wb-shell-flash--success {
  background: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

.wb-shell-enabled .wb-flash-stack--shell .wb-shell-flash--danger {
  background: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

.wb-shell-enabled .wb-flash-stack--shell .wb-shell-flash .btn-close {
  opacity: 0.65;
}

.wb-shell-enabled .wb-flash-stack--shell .wb-shell-flash .btn-close:hover {
  opacity: 1;
}

@media (max-width: 991.98px) {
  [data-shell-page-inner] > .card,
  [data-shell-page-inner] > section.card {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
  }

  [data-auth-shell-card] {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    min-height: 100vh;
  }

  [data-shell-brand] img {
    max-width: min(42vw, 150px);
    max-height: 26px;
  }

  [data-shell-user-trigger] {
    padding-inline: 0.55rem;
  }

  [data-shell-plant-link] {
    max-width: 34vw;
  }
}

@media (min-width: 992px) {
  [data-shell-topbar] .navbar-brand {
    margin-right: 0.25rem !important;
  }

  [data-shell-topbar] {
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
  }
}

.wb-dashboard-table th {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wb-dashboard-table td,
.wb-dashboard-table th {
  padding-top: 1rem;
  padding-bottom: 1rem;
  vertical-align: middle;
}

.wb-dashboard-table tbody tr:hover {
  background: rgba(23, 32, 51, 0.025);
}

.wb-dashboard-table code {
  color: var(--accent-strong);
  font-size: 0.88rem;
}

.wb-dashboard-table--metrics {
  min-width: 100%;
}

.metrics-page .metrics-list-surface .card-body {
  overflow: hidden;
}

.wb-list-table--metrics th,
.wb-list-table--metrics td {
  padding: 0.62rem 0.58rem;
  vertical-align: middle;
}

.wb-dashboard-table--metrics td:nth-child(1),
.wb-dashboard-table--metrics th:nth-child(1) {
  width: 56px;
  white-space: nowrap;
}

.wb-dashboard-table--metrics td:nth-child(2),
.wb-dashboard-table--metrics th:nth-child(2) {
  min-width: 320px;
}

.wb-dashboard-table--metrics td:nth-child(3),
.wb-dashboard-table--metrics th:nth-child(3) {
  width: 112px;
  white-space: nowrap;
}

.wb-dashboard-table--metrics td:nth-child(4),
.wb-dashboard-table--metrics th:nth-child(4) {
  min-width: 170px;
}

.wb-dashboard-table--metrics td:nth-child(5),
.wb-dashboard-table--metrics th:nth-child(5) {
  width: 168px;
  white-space: nowrap;
}

.wb-dashboard-table--metrics td:nth-child(5) {
  max-width: 168px;
  min-width: 168px;
  overflow: hidden;
}

.wb-dashboard-table--metrics td:last-child,
.wb-dashboard-table--metrics th:last-child {
  width: 18.5rem;
  min-width: 18.5rem;
}

.wb-list-table--metrics td:nth-child(2) .fw-semibold {
  line-height: 1.3;
}

.wb-list-table--metrics td:nth-child(4) code {
  font-size: 0.78rem;
  white-space: normal;
  word-break: break-word;
}

.metric-list-name {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.metric-list-name__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.35rem;
  align-items: center;
  line-height: 1.25;
}

.metric-list-name__meta code {
  font-size: 0.78rem;
}

.metric-list-name__dot {
  color: rgba(108, 117, 125, 0.72);
}

.metric-list-source {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.2;
}

.metric-list-device {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  width: 100%;
}

.wb-list-table--devices .wb-dashboard-table__actions .d-flex {
  gap: 0.45rem !important;
}

.wb-list-table--metrics .wb-dashboard-table__actions .btn,
.wb-list-table--metrics .wb-dashboard-table__actions form,
.wb-list-table--devices .wb-dashboard-table__actions .btn,
.wb-list-table--devices .wb-dashboard-table__actions form {
  width: auto;
}

.wb-list-table--metrics .wb-dashboard-table__actions .btn,
.wb-list-table--devices .wb-dashboard-table__actions .btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.2;
}

.wb-graph-preview-row > td {
  padding: 0 !important;
  background: #f6f9f7 !important;
}

.wb-graph-list-preview {
  padding: 1rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(18, 35, 22, 0.08);
}

.wb-graph-list-preview__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wb-graph-list-preview__canvas-wrap {
  border: 1px solid rgba(18, 35, 22, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  padding: 0.75rem;
}

.wb-graph-list-preview__iframe-wrap {
  border: 1px solid rgba(18, 35, 22, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.wb-graph-list-preview__canvas {
  display: block;
  width: 100%;
  min-height: 240px;
}

.wb-graph-list-preview__iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #ffffff;
}

.wb-graph-list-preview__state {
  margin-top: 0.6rem;
}

.wb-dashboard-table__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
}

.wb-dashboard-table__actions .btn,
.wb-dashboard-table__actions form {
  flex: 0 0 auto;
}

.wb-list-table .wb-dashboard-table__actions .btn {
  min-height: calc(1.5em + 0.5rem + 2px) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

.wb-datatable-wrap {
  overflow-x: auto;
}

.wb-datatable-wrap .dt-container {
  padding: 1rem 1rem 1.1rem;
  display: grid;
  gap: 0.95rem;
}

.wb-datatable-wrap--compact .dt-container {
  padding: 0.85rem 1rem 1rem;
}

.wb-datatable-wrap .dt-layout-row {
  margin: 0;
  gap: 0.85rem;
  align-items: center;
}

.wb-datatable-wrap .dt-layout-table {
  margin: 0 -1rem;
}

.wb-datatable-wrap .dt-length label,
.wb-datatable-wrap .dt-search label,
.wb-datatable-wrap .dt-info {
  color: #64748b;
  font-size: 0.92rem;
}

.wb-datatable-wrap .dt-search {
  margin-left: auto;
}

.wb-datatable-wrap .dt-search label,
.wb-datatable-wrap .dt-length label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.wb-datatable-wrap .dt-search input,
.wb-datatable-wrap .dt-length select {
  min-height: calc(1.5em + 0.75rem + 2px);
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.wb-datatable-wrap .dt-search input {
  min-width: min(360px, 72vw);
}

.wb-datatable-wrap table.dataTable {
  margin: 0 !important;
  width: 100% !important;
}

.wb-datatable-wrap table.dataTable thead th {
  white-space: nowrap;
}

.wb-datatable-wrap table.dataTable > thead > tr:first-child > th {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.wb-datatable-wrap table.dataTable > tbody > tr > td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.wb-datatable-wrap table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:first-child,
.wb-datatable-wrap table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:first-child {
  position: relative;
  padding-left: 1rem;
}

.wb-datatable-wrap table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:first-child::before,
.wb-datatable-wrap table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:first-child::before {
  display: none;
}

.wb-datatable-wrap .dt-paging {
  padding: 0.25rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.wb-datatable-wrap .dt-paging .dt-paging-button {
  min-width: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.wb-datatable-wrap .dt-paging .dt-paging-button.current,
.wb-datatable-wrap .dt-paging .dt-paging-button:hover {
  background: rgba(255, 248, 235, 0.96);
  color: #9a5a00;
}

.wb-datatable-wrap .dt-processing {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(201, 111, 5, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 235, 0.95);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.datatable-filter-row th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(247, 249, 252, 0.82);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.datatable-filter-row .form-control,
.datatable-filter-row .form-select {
  min-width: 0;
  border-radius: 12px;
  min-height: calc(1.5em + 0.55rem + 2px);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.9rem;
}

.datatable-filter-row .form-control::placeholder {
  color: #94a3b8;
}

.wb-datatable-wrap .dtr-bs-modal .modal-content {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.wb-datatable-wrap .dtr-bs-modal .modal-header,
.wb-datatable-wrap .dtr-bs-modal .modal-body {
  padding: 1rem 1.1rem;
}

#wb-ajax-result-modal .modal-dialog {
  max-width: min(880px, calc(100vw - 32px));
}

#wb-ajax-result-modal .modal-content {
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

#wb-ajax-result-modal .modal-header {
  padding: 1.1rem 1.25rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.86);
}

#wb-ajax-result-modal .modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
}

#wb-ajax-result-modal .modal-body {
  padding: 1.15rem 1.25rem 1.25rem;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

#wb-ajax-result-modal .btn-close {
  flex-shrink: 0;
}

#wb-ajax-result-modal .form-control,
#wb-ajax-result-modal .form-select {
  background: rgba(255, 255, 255, 0.96);
}

#wb-ajax-result-modal + .modal-backdrop,
.modal-backdrop.show {
  background: rgba(15, 23, 42, 0.5);
}

@media (max-width: 640px) {
  #wb-ajax-result-modal .modal-dialog {
    max-width: calc(100vw - 18px);
    margin: 0.5rem auto;
  }

  #wb-ajax-result-modal .modal-content {
    border-radius: 18px;
  }

  #wb-ajax-result-modal .modal-header {
    padding: 0.95rem 1rem 0.85rem;
  }

  #wb-ajax-result-modal .modal-body {
    padding: 1rem;
    max-height: calc(100vh - 120px);
  }
}

@media (max-width: 767.98px) {
  .table-responsive .table--mobile-stack,
  .table-responsive .table--mobile-stack tbody,
  .table-responsive .table--mobile-stack tr,
  .table-responsive .table--mobile-stack td {
    display: block;
    width: 100%;
  }

  .table-responsive .table--mobile-stack thead {
    display: none;
  }

  .table-responsive .table--mobile-stack tbody {
    display: grid;
    gap: 0.75rem;
  }

  .table-responsive .table--mobile-stack tr {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-tertiary-bg);
    padding: 0.75rem;
  }

  .table-responsive .table--mobile-stack td {
    border: 0;
    padding: 0;
    text-align: left !important;
  }

  .table-responsive .table--mobile-stack td + td {
    margin-top: 0.75rem;
  }

  .table-responsive .table--mobile-stack td[data-mobile-hidden="true"] {
    display: none !important;
  }

  .table-responsive .table--mobile-stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="title"]::before {
    display: none;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="title"] {
    font-weight: 600;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="title"] .small.text-secondary {
    display: block;
    margin-top: 0.25rem;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="actions"] {
    margin-top: 0.9rem;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="actions"] > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem !important;
    width: 100%;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="actions"] > .d-flex > *,
  .table-responsive .table--mobile-stack td[data-mobile-role="actions"] .btn,
  .table-responsive .table--mobile-stack td[data-mobile-role="actions"] form {
    min-width: 0;
    width: 100%;
  }

  .table-responsive .table--mobile-stack td[data-mobile-role="actions"] .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
}

.wb-datatable-wrap .dtr-bs-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.wb-datatable-modal-table th {
  width: 36%;
  color: #64748b;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wb-datatable-modal-table td {
  font-weight: 500;
}

.wb-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.wb-table-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.wb-table-toolbar--metrics .form-select {
  min-width: 180px;
}

.wb-table-toolbar--metrics .form-control {
  min-width: min(340px, 70vw);
}

.wb-table-toolbar__meta {
  white-space: nowrap;
}

.wb-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.wb-table-sort__icon {
  color: rgba(100, 116, 139, 0.9);
  font-size: 0.82rem;
  line-height: 1;
}

.wb-table-sort.is-active {
  color: var(--text);
}

.wb-table-sort.is-active .wb-table-sort__icon {
  color: #c96f05;
}

.wb-table-sort.is-active:not(.is-desc) .wb-table-sort__icon::before {
  content: "↑";
}

.wb-table-sort.is-desc .wb-table-sort__icon::before {
  content: "↓";
}

.wb-table-sort.is-active .wb-table-sort__icon {
  font-size: 0;
}

.wb-table-filter-row th {
  padding-top: 0.55rem;
  padding-bottom: 0.8rem;
  background: rgba(247, 249, 252, 0.78);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.wb-table-filter-row .form-control,
.wb-table-filter-row .form-select {
  min-width: 0;
}

.wb-table-filter-row .form-control::placeholder {
  color: #94a3b8;
}


.wb-graph-series-table-wrap {
  width: 100%;
  overflow: visible;
  padding-bottom: 0;
  border-radius: 1rem;
}

.wb-graph-series-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.wb-graph-series-table th,
.wb-graph-series-table td {
  min-width: 0;
  white-space: normal;
  padding-right: 0.55rem;
  padding-left: 0.55rem;
}

.wb-graph-series-table thead th {
  font-size: 12px;
  line-height: 1.35;
}

#graph-series-table th:nth-child(1),
#graph-series-table td:nth-child(1) {
  width: 88px;
}

#graph-series-table th:nth-child(3),
#graph-series-table td:nth-child(3) {
  width: 14%;
}

#graph-series-table th:nth-child(4),
#graph-series-table td:nth-child(4),
#graph-series-table th:nth-child(5),
#graph-series-table td:nth-child(5),
#graph-series-table th:nth-child(6),
#graph-series-table td:nth-child(6),
#graph-series-table th:nth-child(8),
#graph-series-table td:nth-child(8),
#graph-series-table th:nth-child(9),
#graph-series-table td:nth-child(9) {
  width: 88px;
}

#graph-template-series-table th:nth-child(3),
#graph-template-series-table td:nth-child(3),
#graph-template-series-table th:nth-child(4),
#graph-template-series-table td:nth-child(4),
#graph-template-series-table th:nth-child(5),
#graph-template-series-table td:nth-child(5),
#graph-template-series-table th:nth-child(6),
#graph-template-series-table td:nth-child(6),
#graph-template-series-table th:nth-child(7),
#graph-template-series-table td:nth-child(7) {
  width: 88px;
}

.wb-series-summary-row .form-control,
.wb-series-summary-row .form-select,
.wb-series-summary-row .btn {
  max-width: 100%;
}

.wb-series-summary-row .js-series-health-cell {
  font-size: 12px;
  line-height: 1.35;
}

.wb-graph-series-table .form-control-color {
  min-width: 72px;
  width: 72px;
  padding: 0.25rem;
}

.wb-series-order-controls {
  display: grid;
  gap: 0.4rem;
}

.wb-series-order-controls .btn {
  width: 100%;
}

.wb-series-details-cell {
  padding: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}

.wb-series-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0 0.75rem;
}

.wb-series-detail-section {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.wb-series-detail-section-title {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wb-series-detail-section-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
}

.wb-series-detail-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wb-series-detail-group .form-control,
.wb-series-detail-group .form-select {
  min-width: 0;
  width: 100%;
}

.wb-metric-source-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.8rem;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.wb-metric-source-panel.is-hidden {
  display: none;
}

.wb-metric-calc-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 1rem;
  background: rgba(248, 249, 250, 0.96);
  box-shadow: none;
}

.wb-metric-calc-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.wb-metric-calc-var {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #9a5a00;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.1;
}

.wb-metric-graph-table td:first-child {
  min-width: 220px;
}

@media (max-width: 991.98px) {
  [data-shell-sidebar-column] {
    display: none !important;
  }

  [data-sidebar-toggle][data-sidebar-toggle-desktop] {
    display: none !important;
  }

  .devices-page .devices-list-surface {
    border-radius: 18px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }

  .devices-page .devices-list-surface > .card-body {
    padding: 0;
  }

  .devices-page .devices-list-surface .border-bottom {
    padding-left: 0;
    padding-right: 0;
    border-bottom-color: rgba(23, 32, 51, 0.08) !important;
    background: transparent;
  }

  .dt-container.listing-mobile-active {
    padding: 0 0 1.1rem;
    gap: 0.85rem;
  }

  .dt-container.listing-mobile-active > .dt-layout-row {
    padding-left: 0;
    padding-right: 0;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:first-child {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    gap: 0.75rem;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:last-child {
    gap: 0.5rem;
  }

  .dt-container.listing-mobile-active > .dt-layout-table {
    display: none;
  }

  .dt-container.listing-mobile-active .dt-layout-start,
  .dt-container.listing-mobile-active .dt-layout-end {
    width: 100%;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-layout-start,
  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-layout-end {
    min-width: 0;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-length,
  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-search {
    width: 100%;
    margin: 0;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-length label,
  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-search label {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    white-space: nowrap;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-search input,
  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-length select {
    min-width: 0;
    width: 100%;
  }

  .dt-container.listing-mobile-active > .dt-layout-row:first-child .dt-inline-label__text {
    min-width: 0;
    white-space: nowrap;
  }

  .dt-container.listing-mobile-active .dt-paging {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    justify-content: flex-start;
  }

}

@media (min-width: 992px) {
  :root {
    --app-header-h: 60px;
  }

  [data-sidebar-toggle][data-sidebar-toggle-desktop] {
    display: inline-flex !important;
  }

  [data-shell-sidebar-column] {
    display: block !important;
    position: sticky;
    top: var(--app-header-h);
    align-self: flex-start;
    height: calc(100vh - var(--app-header-h));
    overflow: hidden;
  }

  [data-shell-sidebar] {
    min-height: 100%;
    max-height: 100%;
    overflow-y: auto;
  }

  .wb-dashboard-table__actions .d-flex {
    gap: 0.4rem !important;
  }

  .wb-dashboard-table__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.25rem;
    min-height: 2rem;
    text-align: center;
    white-space: nowrap;
  }

  .wb-dashboard-table__actions form {
    flex: 0 0 auto;
  }

  #devices-datatable thead th:last-child,
  #devices-datatable tbody td:last-child {
    width: 18.5rem;
    min-width: 18.5rem;
  }

  #devices-datatable tbody td:last-child > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem !important;
    align-items: stretch;
  }

  #devices-datatable tbody td:last-child .btn {
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    justify-content: center;
  }

  #devices-datatable tbody td:last-child form {
    width: 100%;
  }

  #graphs-datatable thead th:last-child,
  #graphs-datatable tbody td:last-child {
    width: 24rem;
    min-width: 24rem;
  }

  #graphs-datatable tbody td:last-child > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem !important;
    align-items: stretch;
  }

  #graphs-datatable tbody td:last-child .btn {
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    justify-content: center;
  }

  #graphs-datatable tbody td:last-child form {
    width: 100%;
  }

  .metrics-page #metrics-datatable thead th:last-child,
  .metrics-page #metrics-datatable tbody td:last-child {
    width: 18.5rem;
    min-width: 18.5rem;
  }

  .metrics-page #metrics-datatable tbody td:last-child > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem !important;
    align-items: stretch;
    width: 100%;
  }

  .metrics-page #metrics-datatable tbody td:last-child .btn {
    width: 100%;
    min-width: 0;
    min-height: 2rem;
    justify-content: center;
  }

  .metrics-page #metrics-datatable tbody td:last-child form {
    width: 100%;
  }
}

.wb-stepper {
  overflow-x: auto;
  padding-bottom: 0.125rem;
  scrollbar-width: thin;
}

.wb-stepper__list {
  --wb-stepper-columns: 5;
  display: flex;
  gap: 0.7rem;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-stepper__list--four {
  --wb-stepper-columns: 4;
}

.wb-stepper__item {
  position: relative;
}

.wb-stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  left: calc(100% + 0.2rem);
  width: 0.5rem;
  height: 1px;
  background: rgba(23, 32, 51, 0.14);
}

.wb-stepper__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 196px;
  min-height: 60px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-decoration: none;
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.wb-stepper__link[aria-disabled="true"] {
  opacity: 0.72;
}

.wb-stepper__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text);
  font-weight: 800;
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.wb-stepper__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.wb-stepper__content strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.wb-stepper__content small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.wb-stepper__item.is-current .wb-stepper__link {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: none;
}

.wb-stepper__item.is-current .wb-stepper__index {
  background: #f59e0b;
  color: #fff;
}

.wb-stepper__item.is-done .wb-stepper__link {
  border-color: rgba(25, 135, 84, 0.18);
  background: rgba(16, 185, 129, 0.06);
}

.wb-stepper__item.is-done .wb-stepper__index {
  background: #198754;
  color: #fff;
}

.wb-stepper__item.is-selected .wb-stepper__link {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.wb-option-card {
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  box-shadow: none;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.wb-option-card:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}

.wb-option-card.is-active {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.12);
}

[data-live-refresh-pause] {
  position: relative;
}

@media (max-width: 1199.98px) {
  .wb-dashboard-table {
    min-width: 840px;
  }

  .wb-dashboard-table--metrics {
    min-width: 1040px;
  }
}

@media (max-width: 767.98px) {
  .wb-shell-enabled .wb-flash-stack--shell {
    width: auto;
    right: 1rem;
    left: 1rem;
    transform: none;
  }

  .wb-stepper__link {
    min-width: 172px;
    min-height: 56px;
    padding: 0.6rem 0.7rem;
    gap: 0.55rem;
  }

  .wb-table-toolbar {
    justify-content: stretch;
  }

  .wb-table-toolbar__group,
  .wb-table-toolbar__meta {
    width: 100%;
  }

  .wb-table-toolbar--metrics .form-select,
  .wb-table-toolbar--metrics .form-control {
    width: 100%;
    min-width: 0;
  }

  .wb-list-table--metrics .wb-dashboard-table__actions .d-flex,
  .wb-list-table--devices .wb-dashboard-table__actions .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem !important;
    width: 100%;
  }

  .wb-list-table--metrics .wb-dashboard-table__actions .btn,
  .wb-list-table--devices .wb-dashboard-table__actions .btn {
    width: 100%;
    min-height: 34px;
    padding: 0.35rem 0.45rem;
    font-size: 0.76rem;
    line-height: 1.15;
    justify-content: center;
    text-align: center;
  }

  .wb-list-table--metrics .wb-dashboard-table__actions form,
  .wb-list-table--devices .wb-dashboard-table__actions form {
    width: 100%;
  }

  .wb-dashboard-table--metrics td:last-child,
  .wb-dashboard-table--metrics th:last-child {
    min-width: 188px;
  }

  .datatable-filter-row {
    display: none;
  }

  .wb-datatable-wrap .dt-layout-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wb-datatable-wrap .dt-search {
    margin-left: 0;
  }

  .wb-datatable-wrap .dt-search input,
  .wb-datatable-wrap .dt-length select {
    width: 100%;
    min-width: 0;
  }

  .wb-datatable-wrap .dt-search label,
  .wb-datatable-wrap .dt-length label {
    display: flex;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .wb-stepper {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .wb-stepper__list {
    display: grid;
    grid-template-columns: repeat(var(--wb-stepper-columns), minmax(0, 1fr));
    min-width: 0;
  }

  .wb-stepper__item:not(:last-child)::after {
    width: 0.75rem;
  }

  .wb-stepper__link {
    min-width: 0;
  }
}

/* Device detail responsive tables */
.table--detail-metrics .metric-card-title-mobile {
  display: none;
}

.table--detail-metrics .metric-card-name-desktop {
  display: inline;
  font-weight: 700;
}

.table--detail-pins .pin-card-title-mobile {
  display: none;
}

.table--detail-pins .pin-card-id-desktop {
  display: inline-block;
  font-weight: 700;
}

.table--detail-pins .pin-card-mapped-metrics {
  display: grid;
  gap: 4px;
  align-content: start;
}

.table--detail-requests .request-card-title-mobile {
  display: none;
}

.table--detail-samples .sample-card-title-mobile {
  display: none;
}

.table--detail-topics .topic-card-title-mobile {
  display: none;
}

.table--detail-messages .message-card-title-mobile {
  display: none;
}

.table--detail-graphs .graph-card-title-mobile {
  display: none;
}

.table--detail-graphs .graph-card-name-desktop {
  display: inline;
  font-weight: 700;
}

@media (min-width: 992px) {
  .device-linked-table {
    table-layout: auto;
  }

  .device-linked-table__name {
    width: 22%;
  }

  .device-linked-table__slug {
    width: 18%;
  }

  .device-linked-table__source {
    width: 24%;
  }

  .device-linked-table__series {
    width: 8%;
  }

  .device-linked-table__actions {
    width: 36%;
  }

  .device-linked-table--graphs .device-linked-table__name {
    width: 36%;
  }

  .device-linked-table--graphs .device-linked-table__type {
    width: 20%;
  }

  .device-linked-table--graphs .device-linked-table__actions {
    width: 36%;
  }

  .device-linked-table--metrics th:last-child,
  .device-linked-table--metrics td:last-child {
    min-width: 24rem;
    width: 24rem;
  }

  .device-linked-table--graphs th:last-child,
  .device-linked-table--graphs td:last-child {
    min-width: 18.5rem;
    width: 18.5rem;
  }

  .device-linked-table td:last-child .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem !important;
    justify-content: stretch;
  }

  .device-linked-table td:last-child .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }

  .device-linked-table--metrics td:last-child .d-flex {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.table-shell .table--detail-responsive,
.table-responsive .table--detail-responsive {
  width: 100% !important;
  table-layout: fixed;
}

.table-shell .table--detail-responsive th,
.table-shell .table--detail-responsive td,
.table-responsive .table--detail-responsive th,
.table-responsive .table--detail-responsive td {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-shell .table--detail-responsive code,
.table-shell .table--detail-responsive pre,
.table-responsive .table--detail-responsive code,
.table-responsive .table--detail-responsive pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table-shell .table--detail-responsive .actions.actions--table,
.table-responsive .table--detail-responsive .actions.actions--table {
  justify-content: flex-start;
}

.table-shell .table--detail-responsive .wb-dashboard-table__actions,
.table-responsive .table--detail-responsive .wb-dashboard-table__actions {
  white-space: normal;
}

.table-shell .table--detail-responsive .wb-dashboard-table__actions > .d-flex,
.table-responsive .table--detail-responsive .wb-dashboard-table__actions > .d-flex {
  justify-content: flex-start;
  gap: 0.45rem !important;
}

.table-shell .table--detail-responsive .wb-dashboard-table__actions .btn,
.table-shell .table--detail-responsive .wb-dashboard-table__actions form,
.table-responsive .table--detail-responsive .wb-dashboard-table__actions .btn,
.table-responsive .table--detail-responsive .wb-dashboard-table__actions form {
  width: auto;
  flex: 0 0 auto;
}

.table-shell .table--detail-responsive .wb-dashboard-table__actions .btn,
.table-responsive .table--detail-responsive .wb-dashboard-table__actions .btn {
  min-height: 30px;
  padding: 0.28rem 0.48rem;
  font-size: 0.72rem;
  line-height: 1.1;
}

.table-shell .table--mqtt-topics-picker td:nth-child(1),
.table-shell .table--mqtt-topics-picker th:nth-child(1),
.table-responsive .table--mqtt-topics-picker td:nth-child(1),
.table-responsive .table--mqtt-topics-picker th:nth-child(1) {
  width: 27%;
}

.table-shell .table--mqtt-topics-picker td:nth-child(2),
.table-shell .table--mqtt-topics-picker th:nth-child(2),
.table-responsive .table--mqtt-topics-picker td:nth-child(2),
.table-responsive .table--mqtt-topics-picker th:nth-child(2) {
  width: 23%;
}

.table-shell .table--mqtt-topics-picker td:nth-child(3),
.table-shell .table--mqtt-topics-picker th:nth-child(3),
.table-responsive .table--mqtt-topics-picker td:nth-child(3),
.table-responsive .table--mqtt-topics-picker th:nth-child(3) {
  width: 12%;
}

.table-shell .table--mqtt-topics-picker td:nth-child(4),
.table-shell .table--mqtt-topics-picker th:nth-child(4),
.table-responsive .table--mqtt-topics-picker td:nth-child(4),
.table-responsive .table--mqtt-topics-picker th:nth-child(4) {
  width: 8%;
}

.table-shell .table--mqtt-topics-picker td:nth-child(5),
.table-shell .table--mqtt-topics-picker th:nth-child(5),
.table-responsive .table--mqtt-topics-picker td:nth-child(5),
.table-responsive .table--mqtt-topics-picker th:nth-child(5) {
  width: 12%;
}

.table-shell .table--mqtt-topics-picker td:nth-child(6),
.table-shell .table--mqtt-topics-picker th:nth-child(6),
.table-responsive .table--mqtt-topics-picker td:nth-child(6),
.table-responsive .table--mqtt-topics-picker th:nth-child(6) {
  width: 18rem;
  min-width: 18rem;
  white-space: nowrap;
}

.table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions,
.table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions {
  white-space: nowrap;
}

.table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions > div,
.table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions > div {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem !important;
  width: 100%;
}

.table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions .btn,
.table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.table-shell .table--detail-responsive td:last-child,
.table-shell .table--detail-responsive th:last-child,
.table-responsive .table--detail-responsive td:last-child,
.table-responsive .table--detail-responsive th:last-child {
  width: 144px;
}

@media (min-width: 992px) {
  .table-responsive .device-linked-table.table--detail-responsive {
    table-layout: auto !important;
  }

  .table-responsive .device-linked-table--metrics.table--detail-responsive th:last-child,
  .table-responsive .device-linked-table--metrics.table--detail-responsive td:last-child {
    min-width: 24rem !important;
    width: 24rem !important;
  }

  .table-responsive .device-linked-table--graphs.table--detail-responsive th:last-child,
  .table-responsive .device-linked-table--graphs.table--detail-responsive td:last-child {
    min-width: 18.5rem !important;
    width: 18.5rem !important;
  }

  .table-responsive .table--mqtt-topics-picker.table--detail-responsive th:last-child,
  .table-responsive .table--mqtt-topics-picker.table--detail-responsive td:last-child {
    min-width: 18rem !important;
    width: 18rem !important;
  }
}

@media (max-width: 991.98px) {
  .table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions,
  .table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions {
    white-space: normal;
  }

  .table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions > div,
  .table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem !important;
    width: 100%;
  }

  .table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions > div > :only-child,
  .table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions > div > :only-child {
    grid-column: 1 / -1;
  }

  .table-shell .table--mqtt-topics-picker .mqtt-topics-picker__actions .btn,
  .table-responsive .table--mqtt-topics-picker .mqtt-topics-picker__actions .btn {
    min-height: 2.5rem;
    white-space: normal;
  }
}

.table-shell .table--detail-topics td:first-child,
.table-shell .table--detail-topics th:first-child,
.table-shell .table--detail-messages td:first-child,
.table-shell .table--detail-messages th:first-child {
  width: 15%;
}

.table-shell .table--detail-topics td:nth-child(2),
.table-shell .table--detail-topics th:nth-child(2),
.table-shell .table--detail-topics td:nth-child(3),
.table-shell .table--detail-topics th:nth-child(3),
.table-shell .table--detail-messages td:nth-child(2),
.table-shell .table--detail-messages th:nth-child(2),
.table-shell .table--detail-messages td:nth-child(3),
.table-shell .table--detail-messages th:nth-child(3) {
  width: 24%;
}

.table-shell .table--detail-messages td:nth-child(4),
.table-shell .table--detail-messages th:nth-child(4) {
  width: 29%;
}

.table-shell .table--detail-topics td:nth-child(4),
.table-shell .table--detail-topics th:nth-child(4) {
  width: 12%;
}

@media (max-width: 640px) {
  .dt-container.listing-mobile-active > .dt-layout-table {
    display: none;
  }

  .dt-container.listing-mobile-active {
    gap: 0.75rem;
  }

  .dt-container.listing-mobile-active > .dt-layout-row {
    gap: 0.5rem;
  }

  .listing-mobile-cards {
    padding: 0;
  }

  .listing-mobile-card {
    border-color: rgba(148, 163, 184, 0.2);
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
  }

  .listing-mobile-card .card-body {
    padding: 0.9rem;
  }

  .listing-mobile-card__content {
    display: grid;
    gap: 0.85rem;
  }

  .listing-mobile-card__title-wrap,
  .listing-mobile-card__status-block,
  .listing-mobile-card__actions-wrap,
  .listing-mobile-card__field {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
  }

  .listing-mobile-card__meta {
    display: grid;
    gap: 0.75rem;
  }

  .listing-mobile-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
  }

  .listing-mobile-card__title {
    font-weight: 600;
  }

  .listing-mobile-card__value,
  .listing-mobile-card__status,
  .listing-mobile-card__title {
    min-width: 0;
  }

  .listing-mobile-card__actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .listing-mobile-card__actions-cell {
    min-width: 0;
  }

  .listing-mobile-card__actions form,
  .listing-mobile-card__actions a,
  .listing-mobile-card__actions button,
  .listing-mobile-card__actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .listing-mobile-card__actions .btn {
    justify-content: center;
  }

  .table-responsive .plant-summary-table.table--detail-responsive td:last-child,
  .table-shell .plant-summary-table.table--detail-responsive td:last-child {
    width: 100%;
    min-width: 0;
    text-align: left !important;
  }

  .table-responsive .plant-summary-table.table--detail-responsive td:last-child[data-label]::before,
  .table-shell .plant-summary-table.table--detail-responsive td:last-child[data-label]::before {
    text-align: left;
  }

  .plant-summary-cta-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .plant-summary-cta-row > .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .table-responsive .plant-summary-table.table--detail-responsive td[data-label]::before,
  .table-shell .plant-summary-table.table--detail-responsive td[data-label]::before {
    margin-bottom: 6px;
  }

  .table-responsive .plant-summary-table.table--detail-responsive td:nth-child(2) .badge,
  .table-shell .plant-summary-table.table--detail-responsive td:nth-child(2) .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
  }

  .table-responsive .plant-summary-table.table--detail-responsive td .small.text-secondary,
  .table-shell .plant-summary-table.table--detail-responsive td .small.text-secondary {
    margin-top: 4px;
    display: block;
  }

  .table-responsive .plant-summary-table.table--detail-responsive .plant-summary-actions,
  .table-shell .plant-summary-table.table--detail-responsive .plant-summary-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .table-responsive .plant-summary-table.table--detail-responsive .plant-summary-actions > *,
  .table-shell .plant-summary-table.table--detail-responsive .plant-summary-actions > * {
    min-width: 0;
    width: 100%;
  }

  .table-responsive .plant-summary-table.table--detail-responsive .plant-summary-actions .btn,
  .table-shell .plant-summary-table.table--detail-responsive .plant-summary-actions .btn {
    display: flex;
    width: 100%;
    min-height: 40px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }

  .table-shell .table--detail-responsive,
  .table-shell .table--detail-responsive tbody,
  .table-shell .table--detail-responsive tr,
  .table-shell .table--detail-responsive td,
  .table-responsive .table--detail-responsive,
  .table-responsive .table--detail-responsive tbody,
  .table-responsive .table--detail-responsive tr,
  .table-responsive .table--detail-responsive td {
    display: block;
    width: 100%;
  }

  .table-shell .table--detail-responsive thead,
  .table-responsive .table--detail-responsive thead {
    display: none;
  }

  .table-shell .table--detail-responsive tbody,
  .table-responsive .table--detail-responsive tbody {
    display: grid;
    gap: 12px;
  }

  .table-shell .table--detail-responsive tbody tr,
  .table-responsive .table--detail-responsive tbody tr {
    display: grid;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  }

  .table-shell .table--detail-responsive td,
  .table-responsive .table--detail-responsive td {
    padding: 0;
    border-top: 0;
    min-width: 0;
  }

  .table-shell .table--detail-responsive td + td,
  .table-responsive .table--detail-responsive td + td {
    margin-top: 10px;
  }

  .table-shell .table--detail-responsive td[data-label]::before,
  .table-responsive .table--detail-responsive td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table-shell .table--detail-responsive .actions.actions--table,
  .table-responsive .table--detail-responsive .actions.actions--table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .table-shell .table--detail-responsive .wb-dashboard-table__actions > .d-flex,
  .table-responsive .table--detail-responsive .wb-dashboard-table__actions > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    width: 100%;
  }

  .table-shell .table--detail-responsive .actions.actions--table .btn,
  .table-responsive .table--detail-responsive .actions.actions--table .btn,
  .table-shell .table--detail-responsive .wb-dashboard-table__actions .btn,
  .table-responsive .table--detail-responsive .wb-dashboard-table__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .table-shell .table--detail-responsive th,
  .table-shell .table--detail-responsive td,
  .table-responsive .table--detail-responsive th,
  .table-responsive .table--detail-responsive td {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .table-shell .table--detail-responsive code,
  .table-shell .table--detail-responsive pre,
  .table-shell .table--detail-responsive .device-card-name,
  .table-shell .table--detail-responsive .metric-card-name-desktop,
  .table-shell .table--detail-responsive .topic-card-topic-desktop,
  .table-responsive .table--detail-responsive code,
  .table-responsive .table--detail-responsive pre,
  .table-responsive .table--detail-responsive .device-card-name,
  .table-responsive .table--detail-responsive .metric-card-name-desktop,
  .table-responsive .table--detail-responsive .topic-card-topic-desktop {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table--detail-compact tbody {
    gap: 8px;
  }

  .table--detail-compact tbody tr {
    padding: 8px 10px;
    gap: 4px 8px;
  }

  .table--detail-compact tbody tr td + td {
    margin-top: 0;
  }

  .table--detail-compact td[data-label]::before {
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.1;
  }

  .table--detail-compact .actions.actions--table {
    gap: 4px;
  }

  .table--detail-compact .actions.actions--table .btn {
    min-height: 32px;
    padding: 0 6px;
    font-size: 11px;
  }

  .table-responsive #devices-datatable.table--detail-responsive td:last-child,
  .table-responsive #devices-datatable.table--detail-responsive th:last-child,
  .table-shell #devices-datatable.table--detail-responsive td:last-child,
  .table-shell #devices-datatable.table--detail-responsive th:last-child {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .table-responsive #devices-datatable.table--detail-responsive tbody tr td:last-child,
  .table-shell #devices-datatable.table--detail-responsive tbody tr td:last-child {
    display: block;
    width: 100% !important;
  }

  .table-responsive #devices-datatable.table--detail-responsive .device-actions,
  .table-shell #devices-datatable.table--detail-responsive .device-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100% !important;
  }

  .table-responsive #devices-datatable.table--detail-responsive .device-actions > *,
  .table-shell #devices-datatable.table--detail-responsive .device-actions > * {
    min-width: 0;
    width: 100%;
  }

  .table-responsive #devices-datatable.table--detail-responsive .device-actions form,
  .table-responsive #devices-datatable.table--detail-responsive .device-actions a,
  .table-responsive #devices-datatable.table--detail-responsive .device-actions .btn,
  .table-shell #devices-datatable.table--detail-responsive .device-actions form,
  .table-shell #devices-datatable.table--detail-responsive .device-actions a,
  .table-shell #devices-datatable.table--detail-responsive .device-actions .btn {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
  }

  .table--detail-metrics tbody tr td:nth-child(4),
  .table--detail-metrics tbody tr td:nth-child(5),
  .table--detail-metrics tbody tr td:nth-child(6),
  .table--detail-graphs tbody tr td:nth-child(2),
  .table--detail-graphs tbody tr td:nth-child(3),
  .table--detail-graphs tbody tr td:nth-child(4),
  .table--detail-pins tbody tr td:nth-child(1),
  .table--detail-pins tbody tr td:nth-child(2),
  .table--detail-pins tbody tr td:nth-child(3),
  .table--detail-pins tbody tr td:nth-child(4),
  .table--detail-requests tbody tr td:nth-child(2),
  .table--detail-requests tbody tr td:nth-child(3),
  .table--detail-requests tbody tr td:nth-child(4),
  .table--detail-requests tbody tr td:nth-child(7),
  .table--detail-samples tbody tr td:nth-child(2),
  .table--detail-samples tbody tr td:nth-child(3),
  .table--detail-samples tbody tr td:nth-child(4),
  .table--detail-topics tbody tr td:nth-child(2),
  .table--detail-topics tbody tr td:nth-child(3),
  .table--detail-topics tbody tr td:nth-child(4),
  .table--detail-messages tbody tr td:nth-child(3) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 0 8px;
  }

  .table--detail-metrics tbody tr td:nth-child(4)::before,
  .table--detail-metrics tbody tr td:nth-child(5)::before,
  .table--detail-metrics tbody tr td:nth-child(6)::before,
  .table--detail-graphs tbody tr td:nth-child(2)::before,
  .table--detail-graphs tbody tr td:nth-child(3)::before,
  .table--detail-graphs tbody tr td:nth-child(4)::before,
  .table--detail-pins tbody tr td:nth-child(1)::before,
  .table--detail-pins tbody tr td:nth-child(2)::before,
  .table--detail-pins tbody tr td:nth-child(3)::before,
  .table--detail-pins tbody tr td:nth-child(4)::before,
  .table--detail-requests tbody tr td:nth-child(2)::before,
  .table--detail-requests tbody tr td:nth-child(3)::before,
  .table--detail-requests tbody tr td:nth-child(4)::before,
  .table--detail-requests tbody tr td:nth-child(7)::before,
  .table--detail-samples tbody tr td:nth-child(2)::before,
  .table--detail-samples tbody tr td:nth-child(3)::before,
  .table--detail-samples tbody tr td:nth-child(4)::before,
  .table--detail-topics tbody tr td:nth-child(2)::before,
  .table--detail-topics tbody tr td:nth-child(3)::before,
  .table--detail-topics tbody tr td:nth-child(4)::before,
  .table--detail-messages tbody tr td:nth-child(3)::before {
    display: inline;
    margin-bottom: 0;
  }

  .table--detail-metrics .metric-card-meta-mobile {
    display: none;
  }

  .table--detail-metrics .metric-card-title-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: baseline;
    gap: 6px 8px;
  }

  .table--detail-metrics .metric-card-title-mobile .device-card-code {
    padding: 2px 8px;
  }

  .table--detail-metrics .metric-card-title-mobile .device-card-pill {
    justify-self: end;
  }

  .table--detail-metrics .metric-card-name-desktop {
    display: none;
  }

  .table--detail-metrics tbody tr td:nth-child(1)::before,
  .table--detail-pins tbody tr td:nth-child(1)::before,
  .table--detail-pins tbody tr td:nth-child(6)::before,
  .table--detail-metrics tbody tr td:nth-child(7)::before {
    display: none;
  }

  .table--detail-pins tbody tr td:nth-child(1) {
    display: block;
    padding-right: 0;
  }

  .table--detail-metrics tbody tr,
  .table--detail-graphs tbody tr {
    grid-template-columns: 1fr;
  }

  .table--detail-metrics .metric-card-title-mobile,
  .table--detail-graphs .graph-card-title-mobile {
    grid-template-columns: 1fr;
  }

  .table--detail-metrics .metric-card-title-mobile .device-card-pill,
  .table--detail-graphs .graph-card-title-mobile .device-card-pill {
    justify-self: start;
  }

  .table--detail-metrics tbody tr td:nth-child(4),
  .table--detail-metrics tbody tr td:nth-child(5),
  .table--detail-metrics tbody tr td:nth-child(6),
  .table--detail-graphs tbody tr td:nth-child(2),
  .table--detail-graphs tbody tr td:nth-child(3),
  .table--detail-graphs tbody tr td:nth-child(4) {
    display: block;
  }

  .table--detail-metrics tbody tr td:nth-child(4)::before,
  .table--detail-metrics tbody tr td:nth-child(5)::before,
  .table--detail-metrics tbody tr td:nth-child(6)::before,
  .table--detail-graphs tbody tr td:nth-child(2)::before,
  .table--detail-graphs tbody tr td:nth-child(3)::before,
  .table--detail-graphs tbody tr td:nth-child(4)::before {
    display: block;
    margin-bottom: 2px;
  }

  .table-shell .table--detail-pins tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-metrics tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-requests tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-samples tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-topics tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-messages tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-graphs tbody tr td:first-child {
    padding-left: 0 !important;
  }

  .table-shell .table--detail-responsive td:last-child,
  .table-shell .table--detail-responsive th:last-child,
  .table-shell .table--detail-topics td:first-child,
  .table-shell .table--detail-topics th:first-child,
  .table-shell .table--detail-messages td:first-child,
  .table-shell .table--detail-messages th:first-child,
  .table-shell .table--detail-topics td:nth-child(2),
  .table-shell .table--detail-topics th:nth-child(2),
  .table-shell .table--detail-topics td:nth-child(3),
  .table-shell .table--detail-topics th:nth-child(3),
  .table-shell .table--detail-topics td:nth-child(4),
  .table-shell .table--detail-topics th:nth-child(4),
  .table-shell .table--detail-messages td:nth-child(2),
  .table-shell .table--detail-messages th:nth-child(2),
  .table-shell .table--detail-messages td:nth-child(3),
  .table-shell .table--detail-messages th:nth-child(3),
  .table-shell .table--detail-messages td:nth-child(4),
  .table-shell .table--detail-messages th:nth-child(4) {
    width: auto;
  }

  .table--detail-metrics tbody tr td:nth-child(2),
  .table--detail-metrics tbody tr td:nth-child(3),
  .table--detail-pins tbody tr td:nth-child(2),
  .table--detail-pins tbody tr td:nth-child(3),
  .table--detail-pins tbody tr td:nth-child(4) {
    display: none;
  }

  .table--detail-requests tbody tr td:nth-child(1)::before {
    display: none;
  }

  .table--detail-requests tbody tr td:nth-child(1) {
    display: block;
    padding-right: 0;
  }

  .table--detail-requests tbody tr td:nth-child(2),
  .table--detail-requests tbody tr td:nth-child(3),
  .table--detail-requests tbody tr td:nth-child(4),
  .table--detail-requests tbody tr td:nth-child(5),
  .table--detail-requests tbody tr td:nth-child(6),
  .table--detail-requests tbody tr td:nth-child(7) {
    display: none;
  }

  .table--detail-requests .request-card-received-desktop {
    display: none;
  }

  .table--detail-requests .request-card-title-mobile {
    display: grid;
    gap: 6px;
    width: 100%;
  }

  .table--detail-requests .request-card-title-mobile__top,
  .table--detail-requests .request-card-title-mobile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
  }

  .table--detail-requests .request-card-title-mobile__top .device-card-name {
    min-width: 0;
    flex: 1 1 auto;
  }

  .table--detail-requests .request-card-title-mobile__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-self: flex-start;
    margin-top: -2px;
    gap: 6px;
  }

  .table--detail-requests .request-card-title-mobile__meta {
    gap: 6px 10px;
    justify-content: flex-start;
    font-size: 11px;
    line-height: 1.35;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .table--detail-requests .request-card-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
  }

  .table--detail-requests .request-card-meta-item--wide {
    min-width: 0;
  }

  .table--detail-requests .request-card-meta-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }

  .table--detail-requests .request-card-meta-label {
    color: #64748b;
  }

  .table--detail-requests .request-card-meta-value {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #0f172a;
  }

  .table--detail-requests .request-card-meta-item code {
    margin: 0;
    padding: 1px 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #0f172a;
    background: #f8fafc;
  }

  .table--detail-requests .request-card-title-mobile .device-card-pill,
  .table--detail-requests .request-card-title-mobile .device-card-state {
    margin: 0;
  }

  .table--detail-requests .request-card-title-mobile .device-card-state {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
  }

  .table--detail-requests .request-card-title-mobile .device-card-state--inactive {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
  }

  .table--detail-requests tbody tr td:nth-child(8)::before {
    display: none;
  }

  .table--detail-samples tbody tr td:nth-child(1)::before,
  .table--detail-samples tbody tr td:nth-child(5)::before,
  .table--detail-samples tbody tr td:nth-child(6)::before {
    display: none;
  }

  .table--detail-samples tbody tr td:nth-child(1) {
    display: block;
    padding-right: 0;
  }

  .table--detail-samples tbody tr td:nth-child(2),
  .table--detail-samples tbody tr td:nth-child(3),
  .table--detail-samples tbody tr td:nth-child(4) {
    display: none;
  }

  .table--detail-samples .sample-card-received-desktop {
    display: none;
  }

  .table--detail-samples .sample-card-title-mobile {
    display: grid;
    gap: 6px;
    width: 100%;
  }

  .table--detail-samples .sample-card-title-mobile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    justify-content: flex-start;
    font-size: 11px;
    line-height: 1.35;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .table--detail-samples .sample-card-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
  }

  .table--detail-samples .sample-card-meta-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
  }

  .table--detail-samples .sample-card-meta-label {
    color: #64748b;
  }

  .table--detail-samples .sample-card-meta-value {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #0f172a;
  }

  .table--detail-samples tbody tr td:nth-child(5) {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .table--detail-samples tbody tr td:nth-child(6)::before {
    display: none;
  }

  .table--detail-topics tbody tr td:nth-child(1)::before,
  .table--detail-topics tbody tr td:nth-child(5)::before {
    display: none;
  }

  .table--detail-topics tbody tr td:nth-child(1) {
    display: block;
    padding-right: 0;
  }

  .table--detail-topics tbody tr td:nth-child(2),
  .table--detail-topics tbody tr td:nth-child(3),
  .table--detail-topics tbody tr td:nth-child(4) {
    display: none;
  }

  .table--detail-topics .topic-card-topic-desktop {
    display: none;
  }

  .table--detail-topics .topic-card-title-mobile {
    display: grid;
    gap: 6px;
    width: 100%;
  }

  .table--detail-topics .topic-card-title-mobile .device-card-name {
    min-width: 0;
    text-align: left;
    word-break: break-word;
  }

  .table--detail-topics .topic-card-meta-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .table--detail-topics .topic-card-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
  }

  .table--detail-topics .topic-card-meta-label {
    color: #64748b;
  }

  .table--detail-topics .topic-card-meta-value {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #0f172a;
  }

  .table--detail-topics tbody tr td:nth-child(5) {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .table--detail-messages tbody tr td:nth-child(1)::before,
  .table--detail-messages tbody tr td:nth-child(4)::before,
  .table--detail-messages tbody tr td:nth-child(5)::before {
    display: none;
  }

  .table--detail-messages tbody tr td:nth-child(1) {
    display: block;
    padding-right: 0;
  }

  .table--detail-messages tbody tr td:nth-child(2),
  .table--detail-messages tbody tr td:nth-child(3) {
    display: none;
  }

  .table--detail-messages .message-card-received-desktop {
    display: none;
  }

  .table--detail-messages .message-card-title-mobile {
    display: grid;
    gap: 6px;
    width: 100%;
  }

  .table--detail-messages .message-card-title-mobile .request-card-title-mobile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    justify-content: flex-start;
    font-size: 11px;
    line-height: 1.35;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .table--detail-messages tbody tr td:nth-child(4) {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .table--detail-graphs tbody tr td:nth-child(1)::before,
  .table--detail-graphs tbody tr td:nth-child(5)::before {
    display: none;
  }

  .table--detail-graphs tbody tr td:nth-child(1) {
    display: block;
    padding-right: 0;
  }

  .table--detail-graphs tbody tr td:nth-child(2),
  .table--detail-graphs tbody tr td:nth-child(3) {
    display: none;
  }

  .table--detail-graphs .graph-card-name-desktop {
    display: none;
  }

  .table--detail-graphs .graph-card-title-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: baseline;
    gap: 6px 8px;
  }

  .table--detail-graphs .graph-card-title-mobile .device-card-code {
    padding: 2px 8px;
  }

  .table--detail-graphs .graph-card-title-mobile .device-card-pill {
    justify-self: end;
  }

  .table--detail-pins .pin-card-title-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .table--detail-pins .pin-card-title-mobile .device-card-name {
    margin-right: auto;
    flex: 1 1 auto;
    text-align: left;
  }

  .table--detail-pins .pin-card-id-desktop {
    display: none;
  }

  .table--detail-pins .pin-card-title-mobile__badges {
    display: flex;
    margin-left: auto;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex: 0 0 auto;
  }

  .table--detail-pins .pin-card-title-mobile .device-card-id,
  .table--detail-pins .pin-card-title-mobile .device-card-pill,
  .table--detail-pins .pin-card-title-mobile .device-card-state {
    margin: 0;
  }

  .table--detail-pins .pin-card-title-mobile .device-card-state {
    border-color: rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
  }

  .table--detail-pins .pin-card-title-mobile .device-card-state--inactive {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
  }

  .table--detail-pins .pin-card-name-mobile {
    display: grid;
    gap: 4px;
  }

  .table--detail-pins tbody tr td:nth-child(7),
  .table--detail-pins tbody tr td:nth-child(8) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: 0 8px;
    border-top: 0;
  }

  .table--detail-pins tbody tr td:nth-child(7)::before,
  .table--detail-pins tbody tr td:nth-child(8)::before {
    display: inline;
    margin-bottom: 0;
  }

  .table--detail-metrics .actions.actions--table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table--detail-metrics .actions.actions--table .btn:first-child {
    grid-column: 1 / -1;
  }

  .table--detail-graphs .actions.actions--table,
  .table--detail-pins .actions.actions--table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table--detail-requests .actions.actions--table,
  .table--detail-samples .actions.actions--table,
  .table--detail-messages .actions.actions--table {
    grid-template-columns: 1fr;
  }

  .table--detail-metrics tbody tr td:nth-child(1),
  .table--detail-metrics tbody tr td:nth-child(7),
  .table--detail-pins tbody tr td:nth-child(1),
  .table--detail-graphs tbody tr td:nth-child(1),
  .table--detail-graphs tbody tr td:nth-child(5),
  .table--detail-pins tbody tr td:nth-child(5),
  .table--detail-pins tbody tr td:nth-child(6),
  .table--detail-pins tbody tr td:nth-child(8),
  .table--detail-requests tbody tr td:nth-child(1),
  .table--detail-requests tbody tr td:nth-child(5),
  .table--detail-requests tbody tr td:nth-child(6),
  .table--detail-requests tbody tr td:nth-child(8),
  .table--detail-samples tbody tr td:nth-child(1),
  .table--detail-samples tbody tr td:nth-child(5),
  .table--detail-samples tbody tr td:nth-child(6),
  .table--detail-topics tbody tr td:nth-child(1),
  .table--detail-topics tbody tr td:nth-child(5),
  .table--detail-messages tbody tr td:nth-child(1),
  .table--detail-messages tbody tr td:nth-child(2),
  .table--detail-messages tbody tr td:nth-child(4),
  .table--detail-messages tbody tr td:nth-child(5) {
    grid-column: 1 / -1;
  }

  .table--detail-metrics tbody tr td:nth-child(1),
  .table--detail-graphs tbody tr td:nth-child(1),
  .table--detail-pins tbody tr td:nth-child(1) {
    padding-bottom: 2px;
  }

  .table--detail-metrics tbody tr td:nth-child(1)::before,
  .table--detail-graphs tbody tr td:nth-child(1)::before,
  .table--detail-pins tbody tr td:nth-child(5)::before,
  .table--detail-pins tbody tr td:nth-child(6)::before,
  .table--detail-pins tbody tr td:nth-child(8)::before,
  .table--detail-requests tbody tr td:nth-child(1)::before,
  .table--detail-requests tbody tr td:nth-child(5)::before,
  .table--detail-requests tbody tr td:nth-child(6)::before,
  .table--detail-requests tbody tr td:nth-child(8)::before,
  .table--detail-samples tbody tr td:nth-child(1)::before,
  .table--detail-samples tbody tr td:nth-child(5)::before,
  .table--detail-samples tbody tr td:nth-child(6)::before,
  .table--detail-topics tbody tr td:nth-child(1)::before,
  .table--detail-topics tbody tr td:nth-child(5)::before,
  .table--detail-messages tbody tr td:nth-child(1)::before,
  .table--detail-messages tbody tr td:nth-child(2)::before,
  .table--detail-messages tbody tr td:nth-child(4)::before,
  .table--detail-messages tbody tr td:nth-child(5)::before {
    margin-bottom: 3px;
  }
}

@media (max-width: 340px) {
  .table--detail-metrics .metric-card-title-mobile {
    grid-template-columns: 1fr;
  }

  .table--detail-metrics .metric-card-title-mobile .device-card-pill {
    justify-self: start;
  }

  .table--detail-compact tbody tr {
    grid-template-columns: 1fr;
  }

  .table--detail-compact .actions.actions--table {
    grid-template-columns: 1fr;
  }
}

.metric-card-meta-mobile {
  display: none;
}

.device-credential-panel {
  display: grid;
  gap: 16px;
}

.device-credential-panel__primary {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.device-credential-panel__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.device-credential-panel__card,
.device-credential-panel__note {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  border-radius: 16px;
  background: #ffffff;
}

.device-credential-panel__label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.device-credential-panel__secret,
.device-credential-panel__code {
  display: inline-block;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: #0f172a;
  background: #f8fafc;
  border-radius: 12px;
}

.device-credential-panel__secret {
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.device-credential-panel__code {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.device-credential-panel__note strong {
  font-size: 14px;
  color: #0f172a;
}

.device-credential-panel__note span {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
}

@media (max-width: 640px) {
  .device-credential-panel {
    gap: 12px;
  }

  .device-credential-panel__primary,
  .device-credential-panel__card,
  .device-credential-panel__note {
    padding: 14px 16px;
    border-radius: 14px;
  }

  .device-credential-panel__secret {
    padding: 12px 14px;
    font-size: 16px;
  }

  .device-credential-panel__code {
    font-size: 14px;
  }
}

.plant-summary-cta-row {
  display: flex !important;
  width: auto;
}

.plant-summary-cta-row > .btn {
  width: auto;
}

@media (min-width: 992px) {
  .plant-summary-table {
    table-layout: auto;
  }

  .plant-summary-table th:first-child,
  .plant-summary-table td:first-child {
    width: 24%;
  }

  .plant-summary-table th:nth-child(2),
  .plant-summary-table td:nth-child(2) {
    width: 12%;
  }

  .plant-summary-table th:nth-child(3),
  .plant-summary-table td:nth-child(3) {
    width: 18%;
  }

  .plant-summary-table th:nth-child(4),
  .plant-summary-table td:nth-child(4) {
    width: 16%;
  }

  .plant-summary-table th:last-child,
  .plant-summary-table td:last-child {
    width: 22rem;
    min-width: 22rem;
  }

  .plant-summary-table .plant-summary-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem !important;
    width: 100%;
  }

  .plant-summary-table .plant-summary-actions > * {
    min-width: 0;
    width: 100%;
  }

  .plant-summary-table .plant-summary-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .plant-summary-cta-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .plant-summary-cta-row > .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
