/*
  MLST HUB Console UI v1 - preview
  Goal: coherent operations-console visual layer based on active runtime markup.
  Rollback: remove this file link from index.html and delete this file.
*/

/* 01 tokens */
:root {
  --mlstc-bg: #f6f8fb;
  --mlstc-panel: #ffffff;
  --mlstc-panel-soft: #f9fafb;
  --mlstc-line: #d9e2ec;
  --mlstc-line-strong: #bac7d6;
  --mlstc-text: #111827;
  --mlstc-muted: #667085;
  --mlstc-faint: #98a2b3;
  --mlstc-accent: #c0561e;
  --mlstc-accent-soft: #fff4ed;
  --mlstc-accent-line: #f1b98e;
  --mlstc-green: #16803c;
  --mlstc-green-bg: #ecfdf3;
  --mlstc-red: #b42318;
  --mlstc-red-bg: #fef3f2;
  --mlstc-yellow: #b54708;
  --mlstc-yellow-bg: #fff8eb;
  --mlstc-radius: 8px;
  --mlstc-radius-sm: 5px;
  --mlstc-gap: 14px;
  --mlstc-shadow: none;
}

/* 02 base */
html,
body {
  background: var(--mlstc-bg) !important;
  color: var(--mlstc-text) !important;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* 03 shell */
.light-shell {
  background: var(--mlstc-bg) !important;
  color: var(--mlstc-text) !important;
}

.light-sidebar {
  background: var(--mlstc-panel) !important;
  border-right: 1px solid var(--mlstc-line) !important;
  box-shadow: none !important;
}

.light-main {
  background: var(--mlstc-bg) !important;
  color: var(--mlstc-text) !important;
}

.light-topbar {
  background: var(--mlstc-panel) !important;
  border-bottom: 1px solid var(--mlstc-line) !important;
  box-shadow: none !important;
}

.light-workspace {
  background: var(--mlstc-bg) !important;
}

/* 04 navigation */
.light-sidebar-search input,
#globalSearch {
  background: var(--mlstc-panel-soft) !important;
  color: var(--mlstc-text) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius-sm) !important;
  box-shadow: none !important;
}

.light-nav-tree {
  color: var(--mlstc-text);
}

.tree-section {
  border-bottom: 1px solid var(--mlstc-line) !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}

.tree-section:last-child {
  border-bottom: 0 !important;
}

.tree-section-title {
  color: var(--mlstc-muted) !important;
  font-size: 10px !important;
  letter-spacing: .11em !important;
}

.tree-item {
  color: var(--mlstc-text) !important;
  border-radius: var(--mlstc-radius-sm) !important;
}

.tree-item:hover {
  background: var(--mlstc-panel-soft) !important;
}

.tree-item.active {
  background: var(--mlstc-accent-soft) !important;
  color: var(--mlstc-text) !important;
  box-shadow: inset 3px 0 0 var(--mlstc-accent) !important;
}

.tree-item b,
.tree-item em {
  color: inherit !important;
}

/* 05 typography */
.eyebrow {
  color: var(--mlstc-accent) !important;
  letter-spacing: .12em !important;
}

.section-title h1,
.section-title h2,
.page-card h1,
.page-card h2,
.side-card h3,
.modal-head h2 {
  color: var(--mlstc-text) !important;
}

.section-title p,
.page-card p,
.side-card p,
.modal-head p,
.muted,
.small-muted,
.muted-copy {
  color: var(--mlstc-muted) !important;
}

/* 06 shared panels - visual normalization, not layout surgery */
.light-shell .page-card,
.light-shell .device-workbench,
.light-shell .side-card,
.light-shell .dashboard-map-card,
.light-shell .dashboard-side-card,
.light-shell .site-notes-inline-card,
.light-shell .room-filter-bar,
.light-shell .global-notice,
.light-shell .log-row,
.light-shell .offline-site-card,
.light-shell .offline-empty,
.light-shell .table-wrap,
.modal-card {
  background: var(--mlstc-panel) !important;
  color: var(--mlstc-text) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

/* Remove only obvious decorative glow/gradient pseudo elements */
.light-shell .site-hero-v30::before,
.light-shell .site-hero-v30::after,
.light-shell .hero-panel::after {
  display: none !important;
}

/* 07 buttons */
.primary-btn,
.soft-btn,
.danger-btn,
.gold-btn,
.icon-btn,
.ghost-menu-btn,
.star-btn,
.secondary,
.link-btn {
  border-radius: var(--mlstc-radius-sm) !important;
  box-shadow: none !important;
  font-weight: 750 !important;
}

.primary-btn,
.gold-btn {
  background: var(--mlstc-accent) !important;
  color: #fff !important;
  border: 1px solid var(--mlstc-accent) !important;
}

.soft-btn,
.secondary,
.icon-btn,
.ghost-menu-btn,
.star-btn {
  background: var(--mlstc-panel) !important;
  color: var(--mlstc-text) !important;
  border: 1px solid var(--mlstc-line) !important;
}

.soft-btn:hover,
.secondary:hover,
.icon-btn:hover,
.ghost-menu-btn:hover,
.star-btn:hover {
  background: var(--mlstc-panel-soft) !important;
  border-color: var(--mlstc-line-strong) !important;
}

.danger-btn {
  background: #fff !important;
  color: var(--mlstc-red) !important;
  border: 1px solid #f3b4ad !important;
}

.link-btn {
  background: transparent !important;
  color: var(--mlstc-accent) !important;
  border: 0 !important;
  padding: 0 !important;
}

/* 08 forms */
input,
select,
textarea {
  background: var(--mlstc-panel) !important;
  color: var(--mlstc-text) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius-sm) !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--mlstc-accent) !important;
  box-shadow: 0 0 0 3px rgba(192, 86, 30, .12) !important;
  outline: none !important;
}

textarea::placeholder,
input::placeholder {
  color: var(--mlstc-faint) !important;
}

/* 09 dashboard/site status strips */
.health-strip {
  background: var(--mlstc-panel) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.health-card {
  background: transparent !important;
  color: var(--mlstc-text) !important;
  box-shadow: none !important;
  border-color: var(--mlstc-line) !important;
}

.health-card b {
  color: var(--mlstc-text) !important;
}

.health-card small,
.health-card em {
  color: var(--mlstc-muted) !important;
}

.health-card.ok span,
.live-dot.ok {
  background: var(--mlstc-green) !important;
  color: var(--mlstc-green) !important;
}

.health-card.warn span {
  background: var(--mlstc-yellow) !important;
  color: var(--mlstc-yellow) !important;
}

.health-card.bad span,
.live-dot.bad {
  background: var(--mlstc-red) !important;
  color: var(--mlstc-red) !important;
}

/* 10 site view */
.v74-site-page,
.dashboard-page {
  color: var(--mlstc-text);
}

.v74-site-page .overview-grid-v30,
.v74-site-page .v74-site-grid {
  gap: 16px !important;
}

.v74-site-page .site-side-panel,
.v74-site-page .v74-site-side-panel {
  gap: 12px !important;
}

.customer-logo-banner {
  background: var(--mlstc-panel) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
}

.room-filter-bar,
.v74-room-filter {
  background: var(--mlstc-panel) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
}

.room-chip,
.status-filter {
  background: var(--mlstc-panel-soft) !important;
  color: var(--mlstc-text) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius-sm) !important;
  box-shadow: none !important;
}

.room-chip.active,
.status-filter.active {
  background: var(--mlstc-accent-soft) !important;
  border-color: var(--mlstc-accent-line) !important;
  color: var(--mlstc-text) !important;
}

/* 11 device inventory */
.category-lane {
  background: var(--mlstc-panel) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.category-lane summary {
  background: var(--mlstc-panel-soft) !important;
  color: var(--mlstc-text) !important;
  border-bottom: 1px solid var(--mlstc-line) !important;
}

.category-lane summary small {
  color: var(--mlstc-muted) !important;
}

.cat-mark,
.dev-icon {
  background: var(--mlstc-accent-soft) !important;
  color: var(--mlstc-accent) !important;
  border: 1px solid var(--mlstc-accent-line) !important;
  border-radius: var(--mlstc-radius-sm) !important;
}

.device-table-wrap {
  background: var(--mlstc-panel) !important;
  border-radius: 0 !important;
  border: 0 !important;
  overflow-x: auto !important;
}

.device-table-v30 {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: var(--mlstc-panel) !important;
}

.device-table-v30 th {
  background: var(--mlstc-panel-soft) !important;
  color: var(--mlstc-muted) !important;
  border-bottom: 1px solid var(--mlstc-line) !important;
  font-size: 10px !important;
  letter-spacing: .1em !important;
}

.device-table-v30 td {
  background: var(--mlstc-panel) !important;
  color: var(--mlstc-text) !important;
  border-top: 0 !important;
  border-bottom: 1px solid var(--mlstc-line) !important;
}

.device-table-v30 tr td:first-child,
.device-table-v30 tr td:last-child {
  border-radius: 0 !important;
}

.device-row-v30:hover td {
  background: #fffaf6 !important;
}

.device-name-cell strong {
  color: var(--mlstc-text) !important;
}

.device-name-cell small,
.device-table-v30 small {
  color: var(--mlstc-muted) !important;
}

.status-pill {
  box-shadow: none !important;
  border-radius: 999px !important;
}

.status-pill.ok {
  color: var(--mlstc-green) !important;
  background: var(--mlstc-green-bg) !important;
  border-color: #abefc6 !important;
}

.status-pill.bad {
  color: var(--mlstc-red) !important;
  background: var(--mlstc-red-bg) !important;
  border-color: #fecdca !important;
}

.status-pill.unknown {
  color: var(--mlstc-muted) !important;
  background: var(--mlstc-panel-soft) !important;
  border-color: var(--mlstc-line) !important;
}

.mlst-device-alert-chip {
  border-radius: var(--mlstc-radius-sm) !important;
}

/* 12 offline/logs/statistics */
.offline-summary-pill.bad,
.log-row.bad .log-dot,
.alert.error {
  color: var(--mlstc-red) !important;
}

.offline-summary-pill.ok,
.log-row.ok .log-dot,
.info-strip.good {
  color: var(--mlstc-green) !important;
}

.log-row.warn .log-dot,
.info-strip.warn {
  color: var(--mlstc-yellow) !important;
}

.data-table {
  border-collapse: collapse !important;
  background: var(--mlstc-panel) !important;
}

.data-table th {
  background: var(--mlstc-panel-soft) !important;
  color: var(--mlstc-muted) !important;
  border-bottom: 1px solid var(--mlstc-line) !important;
}

.data-table td {
  color: var(--mlstc-text) !important;
  border-bottom: 1px solid var(--mlstc-line) !important;
}

.statistics-page .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
}

.statistics-page .filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

/* 13 modals */
.modal-backdrop {
  background: rgba(15, 23, 42, .55) !important;
}

.modal-card {
  background: var(--mlstc-panel) !important;
  color: var(--mlstc-text) !important;
}

.modal-head {
  border-bottom: 1px solid var(--mlstc-line) !important;
  padding-bottom: 12px !important;
}

.modal-grid,
.form-grid-two,
.modal-form {
  gap: 12px !important;
}

.form-card {
  background: var(--mlstc-panel-soft) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
}

/* 14 notification profiles */
.site-notification-profile-card,
.np-summary-chip,
.np-summary-row,
.np-tab-panel,
.np-rules-grid,
.np-template-grid,
.np-channel-grid,
.np-var-grid,
.mlst-np-modal-card {
  color: var(--mlstc-text);
}

.np-muted,
.np-compact-copy {
  color: var(--mlstc-muted) !important;
}

/* 15 responsive */
@media (max-width: 1180px) {
  .v74-site-page .overview-grid-v30,
  .v74-site-page .v74-site-grid,
  .dashboard-map-grid,
  .compact-dashboard-grid,
  .v74-dashboard-grid {
    grid-template-columns: 1fr !important;
  }

  .site-side-panel,
  .v74-site-side-panel {
    position: static !important;
  }
}

@media (max-width: 760px) {
  .light-shell {
    grid-template-columns: 1fr !important;
  }

  .light-sidebar {
    position: relative !important;
    width: 100% !important;
    max-height: 44vh !important;
    overflow: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--mlstc-line) !important;
  }

  .light-main {
    min-height: 0 !important;
  }

  .light-topbar {
    min-height: auto !important;
  }

  .light-workspace {
    padding: 10px !important;
  }

  .health-strip {
    grid-template-columns: 1fr !important;
  }

  .room-chip-grid,
  .v74-room-chips {
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .room-chip {
    flex: 0 0 auto !important;
  }

  .section-title,
  .v30-section-title,
  .v74-workbench-title,
  .page-title-row {
    display: grid !important;
    gap: 8px !important;
  }

  .workbench-actions,
  .button-row,
  .modal-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .workbench-actions button,
  .button-row button,
  .modal-actions button {
    width: 100% !important;
  }

  .modal-backdrop {
    padding: 8px !important;
  }

  .modal-card {
    width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    padding: 12px !important;
  }
}

/* 16 compact pass - reduce hero feel and tighten operations surface */

.light-topbar {
  min-height: 58px !important;
  height: 58px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.light-user-pill {
  min-height: 38px !important;
  padding: 8px 12px !important;
  border-radius: var(--mlstc-radius-sm) !important;
  box-shadow: none !important;
}

.light-workspace {
  padding-top: 14px !important;
}

/* Site KPI/header should behave like a status strip, not a hero */
.v74-site-page .health-strip.v74-site-kpis {
  min-height: 0 !important;
}

.v74-site-page .health-card {
  min-height: 86px !important;
  padding: 16px 20px !important;
}

.v74-site-page .health-card b {
  font-size: 26px !important;
  line-height: 1.05 !important;
}

.v74-site-page .health-card small {
  font-size: 11px !important;
}

.v74-site-page .health-card em {
  font-size: 11px !important;
  margin-top: 5px !important;
}

.v74-site-page .customer-logo-banner,
.v74-site-page .site-detail-logo {
  min-height: 86px !important;
  max-height: 112px !important;
  padding: 12px 18px !important;
}

.v74-site-page .customer-logo-banner img,
.v74-site-page .site-detail-logo img {
  max-height: 70px !important;
  object-fit: contain !important;
}

/* Notes/filter/profile should read as operational strips */
.v74-site-page .site-notes-inline-card,
.v74-site-page .room-filter-bar,
.v74-site-page .site-notification-profile-card {
  padding: 14px !important;
}

.v74-site-page .site-notes-inline-card textarea {
  min-height: 58px !important;
}

.v74-site-page .room-filter-title p {
  margin: 0 !important;
}

.v74-site-page .room-chip {
  min-height: 34px !important;
  padding: 7px 11px !important;
}

/* Workbench: make device table the main surface */
.v74-site-page .device-workbench,
.v74-site-page .v74-device-workbench {
  padding: 16px !important;
}

.v74-site-page .section-title.v74-workbench-title {
  align-items: end !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.v74-site-page .section-title.v74-workbench-title h2 {
  font-size: 24px !important;
  line-height: 1.1 !important;
}

.v74-site-page .section-title.v74-workbench-title p {
  margin-top: 4px !important;
}

.workbench-actions {
  gap: 7px !important;
}

.workbench-actions .compact {
  min-height: 38px !important;
  padding: 8px 12px !important;
}

/* Device rows: tighter and more table-like */
.device-table-v30 th {
  padding: 9px 10px !important;
  white-space: nowrap !important;
}

.device-table-v30 td {
  padding: 8px 10px !important;
  vertical-align: middle !important;
}

.device-name-cell {
  gap: 8px !important;
}

.device-name-cell strong {
  line-height: 1.15 !important;
}

.device-name-cell small {
  margin-top: 2px !important;
}

.room-inline-select {
  min-height: 34px !important;
  padding: 6px 10px !important;
}

.row-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.row-actions .compact,
.row-actions .ghost-menu-btn {
  min-height: 34px !important;
  padding: 7px 10px !important;
}

/* Notification profile chips/buttons inside device actions */
.mlst-device-alert-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 32px !important;
  padding: 6px 9px !important;
  border: 1px solid var(--mlstc-line) !important;
  background: var(--mlstc-panel-soft) !important;
  color: var(--mlstc-text) !important;
  white-space: nowrap !important;
}

.mlst-device-alert-chip b,
.mlst-device-alert-chip strong {
  color: inherit !important;
}

/* Statistics: keep the improved table, reduce card feeling slightly */
.statistics-page.page-card {
  padding: 28px !important;
}

.statistics-page .section-title {
  margin-bottom: 16px !important;
}

.statistics-page .data-table th,
.statistics-page .data-table td {
  padding: 10px 12px !important;
}

/* Narrow screens: keep sidebar usable but less dominant */
@media (max-width: 760px) {
  .light-topbar {
    height: auto !important;
    min-height: 48px !important;
  }

  .v74-site-page .health-card,
  .v74-site-page .customer-logo-banner,
  .v74-site-page .site-detail-logo {
    min-height: 68px !important;
  }

  .v74-site-page .health-card b {
    font-size: 22px !important;
  }

  .v74-site-page .customer-logo-banner img,
  .v74-site-page .site-detail-logo img {
    max-height: 48px !important;
  }

  .device-table-v30 {
    min-width: 980px !important;
  }
}

/* 17 data/admin width */

.light-workspace > .page-card,
.light-workspace > .slim-page,
.statistics-page,
.settings-clean-grid,
.support-grid,
.support-admin-page,
.logs-page,
.offline-page {
  width: 100% !important;
  max-width: 1560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.statistics-page.page-card {
  max-width: 1560px !important;
  padding: 28px !important;
}

.statistics-page .table-wrap,
.light-workspace .table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
}

.statistics-page .metrics-grid {
  grid-template-columns: repeat(8, minmax(90px, 1fr)) !important;
}

.statistics-page .filters-row {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
}

/* 18 clean device table */

.device-table-v30 {
  table-layout: fixed !important;
  min-width: 1260px !important;
}

.device-table-v30 th,
.device-table-v30 td {
  overflow: hidden !important;
}

.device-table-v30 th:nth-child(1),
.device-table-v30 td:nth-child(1) {
  width: 23% !important;
}

.device-table-v30 th:nth-child(2),
.device-table-v30 td:nth-child(2) {
  width: 8% !important;
  white-space: nowrap !important;
}

.device-table-v30 th:nth-child(3),
.device-table-v30 td:nth-child(3) {
  width: 7% !important;
  white-space: nowrap !important;
}

.device-table-v30 th:nth-child(4),
.device-table-v30 td:nth-child(4) {
  width: 7% !important;
  white-space: nowrap !important;
}

.device-table-v30 th:nth-child(5),
.device-table-v30 td:nth-child(5) {
  width: 12% !important;
}

.device-table-v30 th:nth-child(6),
.device-table-v30 td:nth-child(6),
.device-table-v30 th:nth-child(7),
.device-table-v30 td:nth-child(7) {
  width: 5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.device-table-v30 th:nth-child(8),
.device-table-v30 td:nth-child(8) {
  width: 8% !important;
  white-space: normal !important;
}

.device-table-v30 th:nth-child(9),
.device-table-v30 td:nth-child(9) {
  width: 12% !important;
  text-align: center !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.device-table-v30 th:nth-child(10),
.device-table-v30 td:nth-child(10) {
  width: 13% !important;
  padding-left: 8px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.device-last-check-cell small {
  display: block !important;
  line-height: 1.2 !important;
  color: var(--mlstc-muted) !important;
}

.device-alert-cell {
  display: table-cell !important;
  text-align: center !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  overflow: visible !important;
}

.device-alert-cell .mlst-device-alert-chip {
  display: inline-flex !important;
  width: 74px !important;
  min-width: 74px !important;
  max-width: 74px !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.device-alert-cell .mlst-device-alert-chip b {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  text-align: center !important;
  text-overflow: clip !important;
}

.row-actions {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
}

.row-actions .gold-btn.compact {
  min-width: 48px !important;
}

.row-actions .ghost-menu-btn {
  min-width: 32px !important;
  width: 32px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.row-actions button {
  white-space: nowrap !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.device-name-cell {
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
}

.device-name-cell .live-dot {
  margin-left: 0 !important;
}

/* 19 site operations row */

.v74-site-page .site-ops-row {
  display: grid !important;
  grid-template-columns: minmax(330px, 430px) minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.v74-site-page .site-ops-notes-slot,
.v74-site-page .site-ops-notifications-slot {
  min-width: 0 !important;
}

.v74-site-page .site-ops-notes-slot:empty,
.v74-site-page .site-ops-notifications-slot:empty {
  display: none !important;
}

.v74-site-page .site-notes-inline-card,
.v74-site-page .site-notification-profile-card.compact {
  height: 100% !important;
  margin: 0 !important;
  max-width: none !important;
}

.v74-site-page .site-notes-inline-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "eyebrow button"
    "title button"
    "notes button" !important;
  gap: 4px 12px !important;
  align-items: end !important;
}

.v74-site-page .site-notes-inline-card .eyebrow {
  grid-area: eyebrow !important;
}

.v74-site-page .site-notes-inline-card h3 {
  grid-area: title !important;
  margin: 0 !important;
}

.v74-site-page .site-notes-inline-card textarea {
  grid-area: notes !important;
  min-height: 58px !important;
  resize: vertical !important;
}

.v74-site-page .site-notes-inline-card button {
  grid-area: button !important;
  align-self: end !important;
  white-space: nowrap !important;
}

.v74-site-page .site-notification-profile-card.compact {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 112px !important;
  padding: 18px !important;
}

.v74-site-page .site-notification-profile-card.compact h3 {
  margin: 0 0 4px !important;
  font-size: 18px !important;
}

.v74-site-page .site-notification-profile-card.compact .np-summary-row {
  margin-top: 3px !important;
}

/* 20 responsive refinements */

@media (max-width: 1300px) {
  .statistics-page .metrics-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
  }

  .statistics-page .filters-row {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .v74-site-page .site-ops-row {
    grid-template-columns: 1fr !important;
  }

  .v74-site-page .site-notes-inline-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "eyebrow"
      "title"
      "notes"
      "button" !important;
  }

  .v74-site-page .site-notes-inline-card button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .statistics-page .metrics-grid,
  .statistics-page .filters-row {
    grid-template-columns: 1fr !important;
  }

  .device-table-v30 {
    min-width: 1220px !important;
  }
}

/* 21 site identity strip */

.v74-site-page .site-identity-strip {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 68px !important;
  padding: 14px 18px !important;
  background: var(--mlstc-panel) !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  box-shadow: none !important;
}

.v74-site-page .site-identity-strip img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 260px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.v74-site-page .site-identity-strip span {
  color: var(--mlstc-muted) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .v74-site-page .site-identity-strip {
    min-height: 56px !important;
    padding: 10px 14px !important;
  }

  .v74-site-page .site-identity-strip img {
    max-width: 210px !important;
    max-height: 36px !important;
  }
}

/* 22 inline site status cards in operations row */

.v74-site-page .site-ops-row {
  grid-template-columns: minmax(270px, 340px) minmax(300px, 390px) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.v74-site-page .site-ops-status-slot {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.v74-site-page .site-ops-status-slot .health-card {
  min-height: 112px !important;
  padding: 16px !important;
  border: 1px solid var(--mlstc-line) !important;
  border-radius: var(--mlstc-radius) !important;
  background: var(--mlstc-green-bg) !important;
  box-shadow: none !important;
}

.v74-site-page .site-ops-status-slot .health-card b {
  font-size: 24px !important;
}

.v74-site-page .site-ops-status-slot .health-card small,
.v74-site-page .site-ops-status-slot .health-card em {
  font-size: 10px !important;
}

.v74-site-page .site-ops-status-slot .health-card:nth-child(2) b {
  font-size: 20px !important;
}

@media (max-width: 1280px) {
  .v74-site-page .site-ops-row {
    grid-template-columns: minmax(260px, 330px) minmax(280px, 360px) minmax(0, 1fr) !important;
  }
}

@media (max-width: 980px) {
  .v74-site-page .site-ops-row {
    grid-template-columns: 1fr !important;
  }

  .v74-site-page .site-ops-status-slot {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  .v74-site-page .site-ops-status-slot {
    grid-template-columns: 1fr !important;
  }
}

/* 22b compact inline KPI card polish */

.v74-site-page .site-ops-status-slot .health-card {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 12px minmax(0, 1fr) !important;
  grid-template-areas:
    "dot value"
    ". label"
    ". sub" !important;
  align-content: center !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 3px !important;
  min-height: 104px !important;
  padding: 16px 18px !important;
}

.v74-site-page .site-ops-status-slot .health-card span {
  grid-area: dot !important;
  position: static !important;
  width: 10px !important;
  height: 10px !important;
  margin: 0 !important;
  align-self: center !important;
}

.v74-site-page .site-ops-status-slot .health-card b {
  grid-area: value !important;
  display: block !important;
  margin: 0 !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.v74-site-page .site-ops-status-slot .health-card small {
  grid-area: label !important;
  display: block !important;
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
}

.v74-site-page .site-ops-status-slot .health-card em {
  grid-area: sub !important;
  display: block !important;
  margin: 3px 0 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  font-style: normal !important;
}

.v74-site-page .site-ops-status-slot .health-card:nth-child(2) b {
  font-size: 21px !important;
}

.v74-site-page .site-ops-status-slot .health-card:nth-child(2) em {
  display: none !important;
}

/* 22c center inline KPI content */

.v74-site-page .site-ops-status-slot .health-card {
  justify-content: center !important;
  justify-items: center !important;
  text-align: center !important;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "dot"
    "value"
    "label"
    "sub" !important;
  row-gap: 5px !important;
}

.v74-site-page .site-ops-status-slot .health-card span {
  justify-self: center !important;
  align-self: center !important;
}

.v74-site-page .site-ops-status-slot .health-card b,
.v74-site-page .site-ops-status-slot .health-card small,
.v74-site-page .site-ops-status-slot .health-card em {
  justify-self: center !important;
  text-align: center !important;
}

/* 22d inline KPI dot beside value */

.v74-site-page .site-ops-status-slot .health-card {
  grid-template-columns: 12px auto !important;
  grid-template-areas:
    "dot value"
    ". label"
    ". sub" !important;
  justify-content: center !important;
  justify-items: start !important;
  align-content: center !important;
  text-align: left !important;
  column-gap: 9px !important;
  row-gap: 4px !important;
}

.v74-site-page .site-ops-status-slot .health-card span {
  grid-area: dot !important;
  justify-self: center !important;
  align-self: center !important;
}

.v74-site-page .site-ops-status-slot .health-card b,
.v74-site-page .site-ops-status-slot .health-card small,
.v74-site-page .site-ops-status-slot .health-card em {
  justify-self: start !important;
  text-align: left !important;
}

/* 23 mobile/small-width stabilization */

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .light-shell {
    display: block !important;
    min-height: 100vh !important;
  }

  .light-sidebar {
    display: none !important;
  }

  .light-main {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
    height: auto !important;
    overflow: visible !important;
  }

  .light-topbar {
    min-height: 64px !important;
    padding: 10px 14px !important;
  }

  .light-page-context,
  .empty-page-context {
    display: none !important;
  }

  .light-workspace {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 12px !important;
  }

  .service-dashboard,
  .v74-site-page {
    width: 100% !important;
    gap: 10px !important;
  }

  .v74-site-page .site-identity-strip {
    min-height: 58px !important;
    padding: 10px 12px !important;
  }

  .v74-site-page .site-identity-strip img {
    max-width: 170px !important;
    max-height: 34px !important;
  }

  .v74-site-page .site-identity-strip span {
    font-size: 12px !important;
  }

  .v74-site-page .site-ops-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .v74-site-page .site-ops-status-slot {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .v74-site-page .site-ops-status-slot .health-card {
    min-height: 84px !important;
    padding: 12px !important;
  }

  .v74-site-page .site-notification-profile-card.compact {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .v74-site-page .site-notes-inline-card {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "eyebrow"
      "title"
      "notes"
      "button" !important;
  }

  .v74-site-page .site-notes-inline-card textarea {
    min-height: 78px !important;
  }

  .v74-site-page .site-notes-inline-card button {
    width: 100% !important;
  }

  .room-filter-bar {
    overflow-x: auto !important;
  }

  .room-chip-grid,
  .v74-room-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }

  .room-chip {
    flex: 0 0 auto !important;
  }

  .v30-section-title,
  .v74-workbench-title {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .workbench-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .workbench-actions button {
    width: 100% !important;
  }

  .device-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .device-table-v30,
  .device-table-v30 thead,
  .device-table-v30 tbody,
  .device-table-v30 tr,
  .device-table-v30 td,
  .device-table-v30 th {
    display: revert !important;
  }

  .device-table-v30 {
    display: table !important;
    width: 100% !important;
    min-width: 1120px !important;
    table-layout: fixed !important;
  }

  .device-table-v30 thead {
    display: table-header-group !important;
  }

  .device-table-v30 tbody {
    display: table-row-group !important;
  }

  .device-table-v30 tr,
  .device-row-v30 {
    display: table-row !important;
    width: auto !important;
    height: auto !important;
  }

  .device-table-v30 th,
  .device-table-v30 td {
    display: table-cell !important;
    width: auto;
  }

  .device-table-v30 td::before {
    display: none !important;
    content: none !important;
  }

  .device-name-cell {
    min-width: 0 !important;
  }

  .row-actions {
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-start !important;
  }
}

/* 24 mobile navigation restore */

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .light-shell {
    display: block !important;
    min-height: 100vh !important;
  }

  .light-sidebar {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    max-height: 300px !important;
    overflow: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--mlstc-line) !important;
    box-shadow: none !important;
    padding: 12px !important;
  }

  .light-brand {
    min-height: 54px !important;
    padding: 4px 0 10px !important;
  }

  .light-brand-logo,
  .light-brand-logo img {
    max-width: 132px !important;
    height: auto !important;
  }

  .light-sidebar-search {
    padding-bottom: 10px !important;
  }

  .light-nav-tree {
    max-height: 180px !important;
    overflow: auto !important;
    border-top: 1px solid var(--mlstc-line) !important;
    padding-top: 8px !important;
  }

  .tree-section {
    margin-bottom: 8px !important;
  }

  .tree-section-title {
    font-size: 10px !important;
  }

  .tree-item {
    min-height: 34px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }

  .light-main {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .light-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    min-height: 56px !important;
    padding: 8px 12px !important;
  }

  .light-user-pill {
    margin-left: auto !important;
  }

  .light-workspace {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 12px !important;
  }
}

/* 25 mobile drawer navigation */

.mobile-menu-btn,
.mobile-nav-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .light-shell {
    display: block !important;
    min-height: 100vh !important;
  }

  .light-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 58px !important;
    padding: 8px 12px !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border: 1px solid var(--mlstc-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--mlstc-text) !important;
    font-size: 22px !important;
    font-weight: 950 !important;
    box-shadow: none !important;
  }

  .compact-logo-topbar {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  .compact-logo-topbar img {
    max-width: 118px !important;
    max-height: 34px !important;
  }

  .light-user-pill {
    margin-left: auto !important;
  }

  .light-sidebar {
    display: block !important;
    position: fixed !important;
    z-index: 50 !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: min(86vw, 340px) !important;
    max-height: none !important;
    height: 100vh !important;
    overflow: auto !important;
    padding: 14px !important;
    transform: translateX(-105%) !important;
    transition: transform .18s ease !important;
    border-right: 1px solid var(--mlstc-line) !important;
    border-bottom: 0 !important;
    box-shadow: 24px 0 70px rgba(15, 23, 42, .18) !important;
  }

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

  .mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 45 !important;
    background: rgba(15, 23, 42, .28) !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .mobile-nav-open .mobile-nav-backdrop {
    display: block !important;
  }

  .light-nav-tree {
    max-height: none !important;
    overflow: visible !important;
  }

  .light-main {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .light-workspace {
    padding: 12px !important;
  }
}

/* 26 mobile device table/workbench polish */

@media (max-width: 760px) {
  .v74-device-workbench,
  .v30-workbench-card {
    padding: 14px !important;
    overflow: hidden !important;
  }

  .v74-workbench-title,
  .v30-section-title {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .workbench-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  .workbench-actions button {
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 12px !important;
  }

  .workbench-actions .primary-btn,
  .workbench-actions .danger-btn {
    flex: 1 1 100% !important;
  }

  .workbench-actions .soft-btn {
    flex: 1 1 calc(50% - 8px) !important;
  }

  .device-table-wrap {
    position: relative !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    border: 1px solid var(--mlstc-line) !important;
    border-radius: 0 !important;
    background:
      linear-gradient(90deg, rgba(244,246,250,1), rgba(244,246,250,0)) left center / 18px 100% no-repeat,
      linear-gradient(270deg, rgba(244,246,250,1), rgba(244,246,250,0)) right center / 18px 100% no-repeat,
      #fff !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .device-table-wrap::before {
    content: "Sveip sidelengs for flere kolonner" !important;
    display: block !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
    padding: 8px 10px !important;
    color: var(--mlstc-muted) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid var(--mlstc-line) !important;
  }

  .device-table-v30 {
    min-width: 1120px !important;
    border-spacing: 0 !important;
  }

  .device-table-v30 th,
  .device-table-v30 td {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .device-table-v30 th:first-child,
  .device-table-v30 td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 1 !important;
    background: #fff !important;
    box-shadow: 8px 0 16px rgba(15, 23, 42, .05) !important;
  }

  .device-table-v30 th:first-child {
    z-index: 3 !important;
    background: #f8fafc !important;
  }

  .device-name-cell strong {
    max-width: 170px !important;
  }

  .device-name-cell small {
    max-width: 190px !important;
  }

  .row-actions {
    gap: 4px !important;
  }

  .row-actions button {
    min-height: 32px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

/* 26b mobile workbench action width fix */

@media (max-width: 760px) {
  .v74-workbench-title .workbench-actions,
  .v30-section-title .workbench-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .v74-workbench-title .workbench-actions button,
  .v30-section-title .workbench-actions button,
  .workbench-actions .primary-btn,
  .workbench-actions .soft-btn,
  .workbench-actions .danger-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .v74-workbench-title .workbench-actions .primary-btn,
  .v74-workbench-title .workbench-actions .danger-btn {
    grid-column: 1 / -1 !important;
  }
}

/* 26c force mobile workbench actions to viewport width */

@media (max-width: 760px) {
  .v74-device-workbench .v74-workbench-title,
  .v74-device-workbench .v30-section-title {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  .v74-device-workbench .workbench-actions {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: calc(100vw - 52px) !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    overflow: hidden !important;
  }

  .v74-device-workbench .workbench-actions button {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: unset !important;
    justify-self: stretch !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .v74-device-workbench .workbench-actions button:first-child,
  .v74-device-workbench .workbench-actions button:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* 27 mobile width containment */

@media (max-width: 760px) {
  .light-main,
  .workspace,
  .light-workspace,
  .service-dashboard,
  .v74-site-page,
  .site-identity-strip,
  .site-ops-row,
  .site-ops-status-slot,
  .site-ops-notifications-slot,
  .site-ops-notes-slot,
  .site-notification-profile-card,
  .site-notes-inline-card,
  .room-filter-bar,
  .overview-grid-v30,
  .v74-site-grid,
  .device-workbench,
  .v30-workbench-card,
  .v74-device-workbench,
  .section-title,
  .v30-section-title,
  .v74-workbench-title,
  .category-lane,
  .v30-category {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .site-identity-strip,
  .site-ops-row,
  .room-filter-bar,
  .v74-device-workbench {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .v74-site-page .site-ops-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .v74-site-page .site-ops-status-slot {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .v74-site-page .site-ops-status-slot .health-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .room-filter-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .room-chip-grid,
  .v74-room-chips {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 4px !important;
  }

  .room-filter-bar > .soft-btn,
  .room-filter-bar > button {
    justify-self: start !important;
    width: auto !important;
    max-width: 100% !important;
  }

  .device-table-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
  }

  .device-table-v30 {
    width: 1120px !important;
    min-width: 1120px !important;
    max-width: none !important;
  }
}

/* 28 mobile room filter + table hint cleanup */

@media (max-width: 760px) {
  .device-table-wrap::before {
    display: none !important;
    content: none !important;
  }

  .room-filter-bar.v74-room-filter {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
    align-items: start !important;
  }

  .room-filter-bar .room-filter-title {
    width: 100% !important;
    max-width: 100% !important;
  }

  .room-filter-bar .room-filter-title .eyebrow {
    margin-bottom: 4px !important;
  }

  .room-filter-bar .room-filter-title p,
  .room-filter-bar .room-filter-title .muted {
    margin: 0 !important;
    max-width: 260px !important;
    line-height: 1.3 !important;
  }

  .room-chip-grid.v74-room-chips,
  .room-chip-grid,
  .v74-room-chips {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  .room-chip-grid .room-chip,
  .v74-room-chips .room-chip,
  .room-chip {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  .room-filter-bar > .soft-btn,
  .room-filter-bar > button:not(.room-chip) {
    width: 100% !important;
    justify-self: stretch !important;
    min-height: 38px !important;
  }
}

@media (max-width: 390px) {
  .room-chip-grid.v74-room-chips,
  .room-chip-grid,
  .v74-room-chips {
    grid-template-columns: 1fr !important;
  }
}

/* 29 desktop device identity cleanup */

@media (min-width: 761px) {
  .v74-device-workbench .device-table-v30 {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 1260px !important;
  }

  .v74-device-workbench .device-table-v30 th:nth-child(1),
  .v74-device-workbench .device-table-v30 td:nth-child(1) {
    width: auto !important;
    min-width: 300px !important;
    max-width: none !important;
  }

  .v74-device-workbench .device-name-cell {
    max-width: none !important;
  }

  .v74-device-workbench .device-name-cell > div {
    max-width: 360px !important;
    min-width: 0 !important;
  }

  .v74-device-workbench .device-name-cell strong,
  .v74-device-workbench .device-name-cell small {
    display: block !important;
    width: auto !important;
    max-width: 360px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
