:root {
  --adminuiux-content-font: "Manrope", sans-serif;
  --adminuiux-title-font: "Sora", sans-serif;
  --m360-modern-bg: #eef6f4;
  --m360-modern-surface: rgba(255, 255, 255, 0.92);
  --m360-modern-surface-strong: #ffffff;
  --m360-modern-ink: #15302f;
  --m360-modern-muted: #607875;
  --m360-modern-line: rgba(0, 104, 101, 0.13);
  --m360-modern-primary: #007f7a;
  --m360-modern-primary-2: #006b68;
  --m360-modern-info: #1479b8;
  --m360-modern-success: #14935f;
  --m360-modern-warning: #c48918;
  --m360-modern-danger: #c2413f;
  --m360-modern-shadow: 0 18px 42px rgba(0, 68, 66, 0.10);
  --m360-modern-shadow-soft: 0 8px 22px rgba(0, 68, 66, 0.07);
  --m360-modern-radius: 12px;
  --m360-modern-radius-sm: 8px;
  --m360-modern-sidebar: 258px;
  --m360-modern-sidebar-mini: 44px;
  --m360-modern-topbar: 76px;
  --m360-dashboard-text-size: 0.76rem;
  --m360-dashboard-title-size: 0.72rem;
  --m360-dashboard-kpi-size: 1.7rem;
  --m360-dashboard-small-size: 0.72rem;
  --m360-dashboard-badge-size: 0.70rem;
  --m360-sb-bg: linear-gradient(180deg, #ddf2ee 0%, #cceae5 55%, #bfe5df 100%);
  --m360-sb-shadow: 2px 0 18px rgba(0, 68, 66, 0.10);
  --m360-sb-scrollbar: rgba(0, 104, 101, 0.25) transparent;
  --m360-sb-item-bg: rgba(0, 127, 122, 0.10);
  --m360-sb-item-border: rgba(0, 104, 101, 0.18);
  --m360-sb-item-color: #0a4a47;
  --m360-sb-item-active-bg: #007f7a;
  --m360-sb-item-active-color: #ffffff;
  --m360-sb-item-active-shadow: 0 8px 20px rgba(0, 104, 101, 0.28);
  --m360-sb-rail-bg: rgba(0, 104, 101, 0.10);
  --m360-sb-rail-border: rgba(0, 104, 101, 0.16);
  --m360-sb-sub-color: #0d5450;
  --m360-sb-sub-hover-bg: rgba(0, 127, 122, 0.14);
  --m360-sb-sub-hover-border: rgba(0, 104, 101, 0.18);
  --m360-sb-sub-active-bg: rgba(0, 127, 122, 0.20);
  --m360-sb-sub-active-border: rgba(0, 104, 101, 0.28);
  --m360-sb-sub-active-accent: #007f7a;
  --m360-sb-toggle-color: rgba(0, 104, 101, 0.55);
  --m360-sb-toggle-border: rgba(0, 104, 101, 0.15);
}

* {
  letter-spacing: 0;
}

body.monitor360-workspace {
  min-height: 100vh;
  margin: 0;
  color: var(--m360-modern-ink);
  font-family: var(--adminuiux-content-font);
  font-weight: 500;
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 127, 122, 0.14), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(20, 121, 184, 0.09), transparent 22rem),
    linear-gradient(180deg, #f7fbfa 0%, var(--m360-modern-bg) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.card-header,
.workspace-primary-tab,
.workspace-subtab,
.btn {
  font-family: var(--adminuiux-title-font);
}

a {
  color: var(--m360-modern-primary);
}

.monitor360-header .navbar {
  min-height: var(--m360-modern-topbar);
  padding: 0.65rem 0;
  background: rgba(249, 252, 251, 0.88);
  border-bottom: 1px solid rgba(0, 104, 101, 0.10);
  box-shadow: 0 12px 28px rgba(0, 68, 66, 0.06);
  backdrop-filter: blur(20px);
}

.monitor360-topbar,
.monitor360-brand-zone,
.monitor360-actions {
  display: flex;
  align-items: center;
}

.monitor360-topbar {
  justify-content: space-between;
  gap: 1rem;
}

.monitor360-brand-zone,
.monitor360-actions {
  gap: 0.85rem;
}

.monitor360-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--m360-modern-ink);
}

.monitor360-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  font-family: var(--adminuiux-title-font);
  font-weight: 800;
  background: linear-gradient(135deg, var(--m360-modern-primary), var(--m360-modern-info));
  box-shadow: 0 10px 22px rgba(0, 104, 101, 0.22);
}

.monitor360-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.monitor360-brand-copy strong {
  color: var(--m360-modern-ink);
  font-family: var(--adminuiux-title-font);
  font-size: 1.02rem;
  font-weight: 750;
}

.monitor360-brand-copy span {
  max-width: 460px;
  color: var(--m360-modern-muted);
  font-size: 0.78rem;
}

.monitor360-nav-toggle {
  display: none;
}

.monitor360-context-chip,
.monitor360-profile-badge,
.monitor360-mode-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 104, 101, 0.13);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--m360-modern-shadow-soft);
}

.monitor360-context-chip {
  flex-direction: column;
  justify-content: center;
  min-width: 220px;
  gap: 0.05rem;
  padding: 0.52rem 1rem;
  border-radius: 999px;
  text-align: center;
}

.monitor360-context-label,
.monitor360-profile-copy span,
.page-kicker {
  color: var(--m360-modern-muted);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.monitor360-context-chip strong {
  color: var(--m360-modern-ink);
  font-size: 0.86rem;
}

.monitor360-profile-badge {
  gap: 0.72rem;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  color: var(--m360-modern-ink);
}

.monitor360-profile-copy {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.monitor360-profile-copy strong {
  color: var(--m360-modern-ink);
  font-size: 0.88rem;
}

.monitor360-mode-toggle,
.monitor360-nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  justify-content: center;
  color: var(--m360-modern-primary);
}

.monitor360-mode-toggle:hover,
.monitor360-nav-toggle:hover {
  color: var(--m360-modern-primary-2);
  background: rgba(216, 242, 238, 0.85);
}

.tfdx-theme-moon {
  display: none;
}

html[data-bs-theme="dark"] .tfdx-theme-sun {
  display: none;
}

html[data-bs-theme="dark"] .tfdx-theme-moon {
  display: inline-block;
}

.monitor360-profile-panel {
  color: #fff;
  background: linear-gradient(135deg, #006b68 0%, #00857f 55%, #1479b8 100%);
}

.avatar-circle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.65rem;
}

.dropdown-menu {
  border: 1px solid var(--m360-modern-line);
  border-radius: var(--m360-modern-radius);
  box-shadow: var(--m360-modern-shadow);
  overflow: hidden;
}

.workspace-overlay {
  display: none;
}

.workspace-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  width: 100%;
}

.workspace-primary-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.workspace-primary-tab,
.workspace-subtab {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: var(--m360-modern-radius-sm);
  text-align: left;
  text-decoration: none;
  white-space: normal;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.workspace-primary-tab {
  min-height: 50px;
  gap: 0.65rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--m360-sb-item-border);
  background: var(--m360-sb-item-bg);
  color: var(--m360-sb-item-color);
  font-size: var(--m360-dashboard-title-size);
  font-weight: 700;
}

.workspace-primary-tab:hover,
.workspace-primary-tab.is-active {
  color: var(--m360-sb-item-active-color);
  background: var(--m360-sb-item-active-bg);
  border-color: transparent;
  box-shadow: var(--m360-sb-item-active-shadow);
}

.workspace-primary-tab i,
.workspace-subtab i {
  flex: 0 0 auto;
  width: 1.1rem;
  text-align: center;
}

.workspace-group-chevron {
  margin-left: auto;
  font-size: 0.82rem;
  opacity: 0.75;
  transition: transform 0.18s ease;
}

.workspace-primary-tab.is-active .workspace-group-chevron {
  transform: rotate(180deg);
}

.workspace-secondary-set {
  display: none;
}

.workspace-secondary-set.is-active {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin: -0.12rem 0 0.35rem;
  padding: 0.72rem 0.55rem 0.68rem;
  border: 1px solid var(--m360-sb-rail-border);
  border-radius: var(--m360-modern-radius);
  background: var(--m360-sb-rail-bg);
}

.workspace-subtab {
  min-height: 42px;
  gap: 0.55rem;
  padding: 0.58rem 0.72rem;
  border: 1px solid transparent;
  color: var(--m360-sb-sub-color);
  font-size: var(--m360-dashboard-title-size);
  font-weight: 650;
}

.workspace-subtab:hover {
  color: var(--m360-sb-item-color);
  background: var(--m360-sb-sub-hover-bg);
  border-color: var(--m360-sb-sub-hover-border);
}

.workspace-subtab.is-active {
  color: var(--m360-sb-item-color);
  background: var(--m360-sb-sub-active-bg);
  border-color: var(--m360-sb-sub-active-border);
  box-shadow: inset 3px 0 0 var(--m360-sb-sub-active-accent);
}

.sidebar-mini-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--m360-sb-toggle-border);
  background: transparent;
  color: var(--m360-sb-toggle-color);
  cursor: pointer;
}

.sidebar-mini-toggle:hover {
  color: var(--m360-sb-item-color);
}

.sidebar-mini-toggle span {
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.adminuiux-wrap {
  min-height: 100vh;
}

.monitor360-content {
  min-height: calc(100vh - var(--m360-modern-topbar));
}

.page-title,
#main-content > .row:first-child {
  border: 1px solid var(--m360-modern-line);
  border-radius: var(--m360-modern-radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 244, 0.86));
  box-shadow: var(--m360-modern-shadow-soft);
}

.tfdx-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.tfdx-page-title h1 {
  margin: 0.1rem 0 0;
  color: var(--m360-modern-ink);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.3;
}

.tfdx-quick-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.tfdx-quick-actions > .btn {
  border-radius: var(--m360-modern-radius-sm) !important;
}

.card {
  border: 1px solid var(--m360-modern-line);
  border-radius: var(--m360-modern-radius) !important;
  background: var(--m360-modern-surface);
  box-shadow: var(--m360-modern-shadow-soft) !important;
}

.card:hover {
  box-shadow: var(--m360-modern-shadow) !important;
}

.card-header {
  border-bottom: 1px solid var(--m360-modern-line);
  border-radius: var(--m360-modern-radius) var(--m360-modern-radius) 0 0 !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #24332e;
  font-size: var(--m360-dashboard-title-size);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body,
.table,
.table tbody td,
.table tbody th,
.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-item,
.list-group-item {
  font-size: var(--m360-dashboard-text-size);
  line-height: 1.45;
}

.small,
small,
.text-muted {
  font-size: var(--m360-dashboard-small-size) !important;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-left: 0;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--m360-modern-primary), var(--m360-modern-info));
}

.metric-card .value,
.display-6,
.display-5 {
  color: var(--m360-modern-ink);
  font-size: var(--m360-dashboard-kpi-size);
  font-weight: 850;
  line-height: 1.1;
}

.table {
  --bs-table-bg: transparent;
  margin-bottom: 0;
}

.table-responsive {
  border-radius: var(--m360-modern-radius-sm);
}

.table thead th,
thead.table-light th,
.table-light th {
  background: #eef6f2 !important;
  color: #24332e;
  border-bottom: 1px solid var(--m360-modern-line);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table > :not(caption) > * > * {
  border-bottom-color: rgba(0, 104, 101, 0.09);
}

.list-group-item {
  border-color: rgba(0, 104, 101, 0.09);
}

.btn,
.form-control,
.form-select,
.input-group-text {
  border-radius: var(--m360-modern-radius-sm);
}

.btn {
  font-weight: 700;
}

.btn-primary,
.btn-tfdx {
  border-color: transparent;
  background: linear-gradient(135deg, var(--m360-modern-primary), var(--m360-modern-primary-2));
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-tfdx:hover,
.btn-tfdx:focus {
  border-color: transparent;
  background: linear-gradient(135deg, var(--m360-modern-primary-2), var(--m360-modern-primary));
}

.btn-outline-primary {
  color: var(--m360-modern-primary-2);
  border-color: rgba(0, 104, 101, 0.28);
  background: rgba(255, 255, 255, 0.70);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: var(--m360-modern-primary);
  border-color: var(--m360-modern-primary);
}

.form-control,
.form-select,
.input-group-text {
  border-color: rgba(0, 104, 101, 0.14);
  background-color: rgba(255, 255, 255, 0.88);
}

.badge-alert {
  color: #755000;
  background: #fff2c7;
}

.adminuiux-footer {
  padding: 0.85rem 0;
  border-top: 1px solid var(--m360-modern-line);
  background: rgba(248, 250, 248, 0.86);
  color: var(--m360-modern-muted);
  font-size: 0.72rem;
  backdrop-filter: blur(12px);
}

@media (min-width: 992px) {
  .monitor360-header .navbar {
    left: var(--m360-modern-sidebar);
    width: calc(100% - var(--m360-modern-sidebar));
    transition: left 0.25s ease, width 0.25s ease;
  }

  .workspace-shell {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: var(--m360-modern-sidebar);
    padding: 1rem 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--m360-sb-bg);
    box-shadow: var(--m360-sb-shadow);
    scrollbar-color: var(--m360-sb-scrollbar);
    transition: width 0.25s ease, padding 0.25s ease;
  }

  .workspace-shell .container-fluid,
  .workspace-stage {
    padding: 0;
  }

  .monitor360-content {
    width: calc(100% - var(--m360-modern-sidebar));
    margin-left: var(--m360-modern-sidebar);
    padding-top: calc(var(--m360-modern-topbar) + 1.25rem);
    transition: margin-left 0.25s ease, width 0.25s ease;
  }

  .adminuiux-footer {
    margin-left: var(--m360-modern-sidebar);
    transition: margin-left 0.25s ease;
  }

  body.sidebar-mini .workspace-shell {
    width: var(--m360-modern-sidebar-mini);
    padding: 0.6rem 0.25rem;
  }

  body.sidebar-mini .monitor360-header .navbar {
    left: var(--m360-modern-sidebar-mini);
    width: calc(100% - var(--m360-modern-sidebar-mini));
  }

  body.sidebar-mini .monitor360-content {
    width: calc(100% - var(--m360-modern-sidebar-mini));
    margin-left: var(--m360-modern-sidebar-mini);
  }

  body.sidebar-mini .adminuiux-footer {
    margin-left: var(--m360-modern-sidebar-mini);
  }

  body.sidebar-mini .workspace-primary-tab span,
  body.sidebar-mini .workspace-subtab span,
  body.sidebar-mini .sidebar-mini-toggle span,
  body.sidebar-mini .workspace-group-chevron,
  body.sidebar-mini .workspace-secondary-set {
    display: none !important;
  }

  body.sidebar-mini .workspace-primary-tab {
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 0;
    border-radius: 6px;
  }

  body.sidebar-mini .workspace-primary-tab i {
    width: auto;
  }

  body.sidebar-mini .sidebar-mini-toggle {
    justify-content: center;
    padding: 0.4rem 0;
    margin-bottom: 0.5rem;
  }

  body.sidebar-mini .sidebar-mini-toggle i {
    transform: rotate(180deg);
  }
}

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

  .monitor360-brand-copy span {
    display: none;
  }

  .monitor360-brand-mark {
    width: 46px;
    height: 46px;
  }

  .workspace-shell {
    position: fixed;
    top: calc(var(--m360-modern-topbar) + 0.75rem);
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 1050;
    padding: 1rem;
    overflow: auto;
    border: 1px solid var(--m360-modern-line);
    border-radius: 18px;
    background: var(--m360-sb-bg);
    box-shadow: var(--m360-modern-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  body.workspace-nav-open .workspace-shell {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .workspace-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: none;
    background: rgba(10, 23, 20, 0.42);
    backdrop-filter: blur(4px);
  }

  body.workspace-nav-open .workspace-overlay {
    display: block;
  }

  .sidebar-mini-toggle {
    display: none;
  }

  .monitor360-content {
    padding-top: calc(var(--m360-modern-topbar) + 1rem);
  }

  .adminuiux-footer {
    margin-left: 0;
  }

  .tfdx-page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .tfdx-quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .monitor360-topbar {
    gap: 0.55rem;
  }

  .monitor360-actions {
    gap: 0.45rem;
  }

  .monitor360-profile-badge {
    padding: 0.3rem;
  }

  .monitor360-brand-copy strong {
    font-size: 0.92rem;
  }

  .container-fluid {
    --bs-gutter-x: 1rem;
  }
}

html[data-bs-theme="dark"] body.monitor360-workspace {
  --m360-sb-bg: linear-gradient(180deg, #00857f 0%, #006b68 48%, #005654 100%);
  --m360-sb-shadow: 18px 0 42px rgba(0, 55, 53, 0.18);
  --m360-sb-item-bg: rgba(255, 255, 255, 0.10);
  --m360-sb-item-border: rgba(255, 255, 255, 0.16);
  --m360-sb-item-color: rgba(255, 255, 255, 0.86);
  --m360-sb-item-active-bg: #ffffff;
  --m360-sb-item-active-color: #007f7a;
  --m360-sb-rail-bg: rgba(0, 67, 64, 0.24);
  --m360-sb-rail-border: rgba(255, 255, 255, 0.12);
  --m360-sb-sub-color: rgba(255, 255, 255, 0.84);
  --m360-sb-sub-hover-bg: rgba(255, 255, 255, 0.15);
  --m360-sb-sub-hover-border: rgba(255, 255, 255, 0.14);
  --m360-sb-sub-active-bg: rgba(255, 255, 255, 0.24);
  --m360-sb-sub-active-border: rgba(255, 255, 255, 0.24);
  --m360-sb-sub-active-accent: #b8f3ee;
  --m360-sb-toggle-color: rgba(255, 255, 255, 0.55);
  --m360-sb-toggle-border: rgba(255, 255, 255, 0.12);
  --m360-modern-bg: #071b1b;
  --m360-modern-surface: rgba(13, 37, 37, 0.94);
  --m360-modern-surface-strong: #102f2e;
  --m360-modern-ink: #e8f7f4;
  --m360-modern-muted: #a6c4bf;
  --m360-modern-line: rgba(126, 211, 201, 0.18);
  color: var(--m360-modern-ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(0, 127, 122, 0.22), transparent 24rem),
    radial-gradient(circle at 92% 4%, rgba(20, 121, 184, 0.16), transparent 22rem),
    linear-gradient(180deg, #061616 0%, var(--m360-modern-bg) 100%);
}

html[data-bs-theme="dark"] .monitor360-header .navbar,
html[data-bs-theme="dark"] .adminuiux-footer {
  background: rgba(8, 27, 27, 0.92);
  border-color: var(--m360-modern-line);
}

html[data-bs-theme="dark"] .monitor360-context-chip,
html[data-bs-theme="dark"] .monitor360-profile-badge,
html[data-bs-theme="dark"] .monitor360-mode-toggle,
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dropdown-menu {
  background: var(--m360-modern-surface) !important;
  border-color: var(--m360-modern-line);
  color: var(--m360-modern-ink);
}

html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .page-title,
html[data-bs-theme="dark"] #main-content > .row:first-child {
  background: linear-gradient(135deg, rgba(14, 43, 42, 0.94), rgba(7, 28, 28, 0.90)) !important;
  border-color: var(--m360-modern-line);
  color: var(--m360-modern-ink);
}

html[data-bs-theme="dark"] .table {
  --bs-table-color: var(--m360-modern-ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--m360-modern-line);
  --bs-table-striped-color: var(--m360-modern-ink);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-color: var(--m360-modern-ink);
  --bs-table-hover-bg: rgba(126, 211, 201, 0.08);
}

html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] thead.table-light th,
html[data-bs-theme="dark"] .table-light th {
  background: #0f3432 !important;
  color: #dff5f1;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text,
html[data-bs-theme="dark"] .list-group-item {
  background-color: rgba(7, 28, 28, 0.96);
  border-color: var(--m360-modern-line);
  color: var(--m360-modern-ink);
}

.config-tabs {
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid var(--m360-modern-line);
  border-radius: var(--m360-modern-radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--m360-modern-shadow-soft);
}

.config-tabs .nav-link {
  border-radius: var(--m360-modern-radius-sm);
  color: var(--m360-modern-muted);
  font-family: var(--adminuiux-title-font);
  font-size: var(--m360-dashboard-title-size);
  font-weight: 750;
}

.config-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--m360-modern-primary), var(--m360-modern-primary-2));
}

.pec-diagnostic-box {
  height: 100%;
  min-height: 82px;
  padding: 0.85rem;
  border: 1px solid var(--m360-modern-line);
  border-radius: var(--m360-modern-radius-sm);
  background: rgba(255, 255, 255, 0.62);
}

.pec-diagnostic-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--m360-modern-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pec-diagnostic-box strong {
  display: block;
  color: var(--m360-modern-ink);
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pec-badge.ok {
  color: #0f5132;
  background: #d8f3e5;
}

.pec-badge.warn {
  color: #755000;
  background: #fff2c7;
}

.pec-badge.off {
  color: #842029;
  background: #f8d7da;
}

.pec-muted {
  color: var(--m360-modern-muted);
  font-size: 0.72rem;
}

.pec-tips-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.05rem;
  color: var(--m360-modern-muted);
}

html[data-bs-theme="dark"] .config-tabs,
html[data-bs-theme="dark"] .pec-diagnostic-box {
  background: rgba(16, 47, 46, 0.72);
  border-color: var(--m360-modern-line);
}

html[data-bs-theme="dark"] .pec-badge.ok {
  color: #b8f3d5;
  background: rgba(20, 147, 95, 0.22);
}

html[data-bs-theme="dark"] .pec-badge.warn {
  color: #ffe29a;
  background: rgba(196, 137, 24, 0.24);
}

html[data-bs-theme="dark"] .pec-badge.off {
  color: #ffb4bc;
  background: rgba(194, 65, 63, 0.24);
}

/* Hospital360 visual adaptation */
:root {
  --h360-bg: #f1f5f9;
  --h360-surface: #ffffff;
  --h360-text: #1e293b;
  --h360-muted: #64748b;
  --h360-border: #e2e8f0;
  --h360-primary: #2563eb;
  --h360-primary-dark: #1d4ed8;
  --h360-success: #16a34a;
  --h360-warning: #f59e0b;
  --h360-danger: #dc2626;
  --h360-sidebar: #1e293b;
  --h360-sidebar-text: #cbd5e1;
  --h360-radius: 8px;
  --h360-shadow: 0 1px 3px rgba(15, 23, 42, 0.10), 0 1px 2px rgba(15, 23, 42, 0.06);
  --h360-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
}

body.monitor360-workspace {
  color: var(--h360-text);
  font-family: "Inter", var(--adminuiux-content-font), system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--h360-bg);
}

body.monitor360-workspace h1,
body.monitor360-workspace h2,
body.monitor360-workspace h3,
body.monitor360-workspace h4,
body.monitor360-workspace h5,
body.monitor360-workspace h6,
body.monitor360-workspace .card-header,
body.monitor360-workspace .btn {
  font-family: "Inter", var(--adminuiux-title-font), system-ui, -apple-system, sans-serif;
}

.monitor360-header .navbar {
  min-height: 56px;
  padding: 0 1rem;
  background: var(--h360-sidebar) !important;
  border-bottom: 0;
  box-shadow: var(--h360-shadow);
}

.monitor360-brand,
.monitor360-brand-copy strong,
.monitor360-context-chip strong,
.monitor360-profile-copy strong {
  color: #f8fafc;
}

.monitor360-brand-copy span,
.monitor360-context-label,
.monitor360-profile-copy span {
  color: #cbd5e1;
}

.monitor360-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: none;
}

.monitor360-context-chip,
.monitor360-profile-badge,
.monitor360-mode-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.monitor360-mode-toggle {
  color: #dbeafe;
}

.monitor360-mode-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.card,
.section-card,
.stat-card,
.atendimento-header {
  border: 1px solid var(--h360-border);
  border-radius: var(--h360-radius) !important;
  background: var(--h360-surface);
  box-shadow: var(--h360-shadow) !important;
}

.card:hover,
.section-card:hover,
.stat-card:hover {
  box-shadow: var(--h360-shadow-md) !important;
}

.card-header {
  border-bottom: 1px solid var(--h360-border);
  background: #ffffff !important;
  color: var(--h360-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.form-control,
.form-select,
.input-group-text {
  border-color: var(--h360-border);
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--h360-text);
  font-size: 0.88rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--h360-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn {
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 650;
}

.btn-primary,
.btn-tfdx {
  border-color: var(--h360-primary);
  background: var(--h360-primary);
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-tfdx:hover,
.btn-tfdx:focus {
  border-color: var(--h360-primary-dark);
  background: var(--h360-primary-dark);
}

.btn-outline,
.btn-outline-primary {
  color: var(--h360-primary);
  border: 1px solid var(--h360-border);
  background: #ffffff;
}

.btn-outline:hover,
.btn-outline-primary:hover {
  color: #ffffff;
  border-color: var(--h360-primary);
  background: var(--h360-primary);
}

.text-muted,
.text-secondary {
  color: var(--h360-muted) !important;
}

.content-area {
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-header h2 {
  margin: 0;
  color: var(--h360-text);
  font-size: 1.3rem;
  font-weight: 800;
}

.page-header p {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
}

.section-card {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.section-title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--h360-border);
  color: var(--h360-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.section-header .section-title {
  margin: 0;
  padding: 0;
  border: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.stat-blue {
  border-top: 3px solid var(--h360-primary);
}

.stat-green {
  border-top: 3px solid var(--h360-success);
}

.stat-orange {
  border-top: 3px solid var(--h360-warning);
}

.stat-purple {
  border-top: 3px solid #7c3aed;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  color: var(--h360-text);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 0.25rem;
  color: var(--h360-muted);
  font-size: 0.78rem;
}

.atendimento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.header-user,
.header-clock {
  color: var(--h360-muted);
}

.header-ficha {
  text-align: center;
}

.ficha-label {
  display: block;
  color: var(--h360-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ficha-numero {
  color: var(--h360-primary);
  font-size: 1.45rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.form-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.form-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.col-span-2 {
  grid-column: span 2;
}

.col-span-3 {
  grid-column: span 3;
}

.col-span-4 {
  grid-column: span 4;
}

.align-end {
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  color: var(--h360-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.form-actions-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.field-hint {
  color: var(--h360-muted);
  font-size: 0.78rem;
}

.table-wrapper,
.table-responsive {
  overflow-x: auto;
  border-radius: var(--h360-radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.table thead th,
thead.table-light th,
.table-light th {
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--h360-border);
  background: #f8fafc !important;
  color: var(--h360-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table td,
.table tbody td,
.table tbody th {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--h360-border);
  vertical-align: middle;
}

.data-table tbody tr:hover,
.table-hover tbody tr:hover {
  background: #f8fafc;
}

.actions-cell {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-success {
  color: #166534;
  background: #dcfce7;
}

.badge-danger {
  color: #991b1b;
  background: #fee2e2;
}

.badge-warning {
  color: #854d0e;
  background: #fef9c3;
}

.badge-primary {
  color: #1e40af;
  background: #dbeafe;
}

.badge-secondary {
  color: #475569;
  background: #f1f5f9;
}

.config-page > .d-flex:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem !important;
}

.config-page > .d-flex:first-child h2 {
  margin: 0;
  color: var(--h360-text);
  font-size: 1.3rem;
  font-weight: 800;
}

.config-tabs {
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid var(--h360-border);
  border-radius: var(--h360-radius);
  background: #ffffff;
  box-shadow: var(--h360-shadow);
}

.config-tabs .nav-link {
  border-radius: 6px;
  color: var(--h360-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.config-tabs .nav-link.active {
  color: #ffffff;
  background: var(--h360-primary);
}

.adminuiux-card {
  border-color: var(--h360-border) !important;
  background: var(--h360-surface) !important;
  box-shadow: var(--h360-shadow) !important;
}

.pec-diagnostic-box {
  border-color: var(--h360-border);
  background: #f8fafc;
}

.pec-diagnostic-label {
  color: var(--h360-muted);
}

.hospital-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #111827 48%, #0f172a 100%);
  border-radius: 0;
  margin: 0;
}

body:has(.hospital-login-screen) .monitor360-header,
body:has(.hospital-login-screen) .workspace-shell,
body:has(.hospital-login-screen) .adminuiux-footer {
  display: none !important;
}

body:has(.hospital-login-screen) .monitor360-content {
  width: 100% !important;
  min-height: 100vh;
  margin-left: 0 !important;
  padding-top: 0 !important;
}

body:has(.hospital-login-screen) .container-fluid {
  padding: 0;
}

.login-container {
  width: 100%;
  max-width: 438px;
  padding: 1rem;
}

.login-card {
  overflow: visible;
  padding: 2.8rem 2.42rem 2.15rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.88rem;
  margin-bottom: 1.65rem;
  text-align: center;
}

.login-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.login-logo-img {
  display: block;
  width: auto;
  max-width: 245px;
  height: 63px;
  object-fit: contain;
}

.login-header h1 {
  margin: 0.65rem 0 0;
  color: var(--h360-text);
  font-size: 1.6rem;
  font-weight: 850;
}

.login-subtitle,
.login-help {
  color: var(--h360-muted);
  font-size: 0.90rem;
}

.login-card form {
  display: grid;
  gap: 0.75rem;
}

.login-card .form-group {
  gap: 0.42rem;
}

.login-card .form-group label {
  color: #526581;
  font-size: 0.90rem;
  font-weight: 500;
}

.login-card .form-control {
  min-height: 37px;
  padding: 0.46rem 0.72rem;
  border-color: #d8e1ec;
  border-radius: 6px;
  color: #0f172a;
  font-size: 0.92rem;
}

.login-card .btn-block {
  width: 100%;
  min-height: 37px;
  margin-top: 0.25rem;
  border-radius: 6px;
  background: #2563eb;
  font-size: 0.92rem;
  font-weight: 800;
}

.login-help {
  margin: 0.85rem 0 0;
  text-align: center;
}

.integration-print-page {
  padding: 0;
}

.integration-print-page .alert:not(.d-none) {
  margin: 0 0 1rem;
}

.integration-print-page .integration-card {
  margin-bottom: 1.15rem;
  padding: 1.05rem 1.15rem;
  border-radius: 6px !important;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;
}

.integration-print-page .section-title {
  margin-bottom: 0.95rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid #d9e1ea;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 800;
}

.integration-print-page .form-grid {
  gap: 0.65rem 0.75rem;
}

.integration-print-page .form-group {
  gap: 0.25rem;
}

.integration-print-page .form-group label {
  color: #41577a;
  font-size: 0.80rem;
  font-weight: 500;
}

.integration-print-page .form-control {
  min-height: 32px;
  padding: 0.38rem 0.55rem;
  border-color: #d8e1ec;
  border-radius: 5px;
  color: #0f172a;
  font-size: 0.82rem;
}

.integration-print-page .field-hint {
  color: #0f172a;
  font-size: 0.74rem;
}

.integration-print-page .btn {
  min-height: 30px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.integration-print-page .integration-save-btn {
  margin: 0 0 0.05rem;
}

.integration-info-box {
  padding: 1rem 1.15rem;
  border: 1px solid #d8e1ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.82rem;
}

.integration-info-box strong {
  display: block;
  margin-bottom: 0.5rem;
}

.integration-info-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.integration-info-box li + li {
  margin-top: 0.35rem;
}

.integration-info-box code {
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: #e8eef6;
  color: #0f172a;
  font-size: 0.75rem;
}

.main-home-page {
  display: grid;
  gap: 1.25rem;
}

.main-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 146px;
  padding: 2rem 2.2rem;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.main-hero h1 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 850;
}

.main-hero p {
  margin: 0;
  color: #dbeafe;
  font-size: 1rem;
}

.main-hero p strong {
  color: #ffffff;
}

.main-hero-clock {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  line-height: 1.1;
}

.main-hero-clock strong {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.main-hero-clock span {
  color: #dbeafe;
  font-size: 1.05rem;
}

.main-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  gap: 1.25rem;
}

.main-panel {
  padding: 1.35rem;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.main-panel h2 {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 0.8rem;
}

.main-quick-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 142px;
  padding: 1rem;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  color: #0f172a;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.main-quick-tile:hover {
  color: #0f172a;
  border-color: #bfd2ea;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.main-quick-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  color: #2563eb;
  background: #eef5ff;
  font-size: 1.9rem;
}

.main-quick-tile strong {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
}

.main-status-list {
  display: grid;
  gap: 0.6rem;
}

.main-status-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 66px;
  padding: 0.75rem 0.95rem;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: #f8fafc;
}

.main-status-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 1.25rem;
}

.main-status-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-status-copy strong {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 850;
}

.main-status-copy small {
  color: #64748b;
  font-size: 0.82rem !important;
}

.main-status-value {
  color: #2563eb;
  font-size: 1.25rem;
  font-weight: 900;
}

.main-home-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.main-list {
  display: grid;
  gap: 0.55rem;
}

.main-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.main-list-row strong {
  color: #0f172a;
  font-size: 0.88rem;
}

.main-list-row span,
.main-empty {
  color: #64748b;
  font-size: 0.82rem;
}

.main-empty {
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  text-align: center;
}

.h360-mainbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 260px minmax(360px, 1fr) minmax(360px, auto);
  align-items: center;
  height: 73px;
  padding: 0 20px;
  border-top: 3px solid #334155;
  background: #1e293b;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.26);
}

body:not(:has(.hospital-login-screen)) .monitor360-header {
  display: none !important;
}

.h360-mainbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #0ea5e9;
  text-decoration: none;
}

.h360-mainbar-logo-img {
  display: block;
  width: auto;
  max-width: 238px;
  height: 80px;
  object-fit: contain;
  object-position: left center;
}

.h360-mainbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-width: 0;
}

.h360-mainbar-clock {
  color: #94a3b8;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.h360-mainbar-search {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 236px;
  height: 37px;
  padding: 0 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.h360-mainbar-search i {
  color: #94a3b8;
  font-size: 0.94rem;
}

.h360-mainbar-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #dbeafe;
  background: transparent;
  font-size: 0.94rem;
}

.h360-mainbar-search input::placeholder {
  color: #a5b4c9;
}

.h360-mainbar-search kbd {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.10);
  font-size: 0.72rem;
  font-family: inherit;
  white-space: nowrap;
}

.h360-mainbar-user {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  min-width: 0;
}

.h360-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  line-height: 1.12;
}

.h360-user-copy strong {
  max-width: 370px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.h360-user-copy small {
  color: #94a3b8;
  font-size: 0.86rem !important;
  font-weight: 500;
}

.h360-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 8px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 800;
  text-decoration: none;
}

.h360-top-btn:hover {
  color: #ffffff;
  border-color: rgba(203, 213, 225, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.h360-top-btn-danger {
  color: #ef4444;
  border-color: #ef4444;
}

.h360-top-btn-danger:hover {
  color: #ffffff;
  border-color: #ef4444;
  background: #dc2626;
}

body:has(.h360-mainbar) .workspace-shell {
  display: none !important;
}

body:has(.h360-mainbar) .monitor360-content {
  width: 100% !important;
  min-height: calc(100vh - 73px);
  margin-left: 0 !important;
  padding-top: calc(73px + 1.5rem);
}

@media (max-width: 1400px) {
  .main-quick-grid {
    grid-template-columns: repeat(4, minmax(128px, 1fr));
  }

  .h360-mainbar {
    grid-template-columns: 220px minmax(280px, 1fr) minmax(320px, auto);
  }

  .h360-user-copy strong {
    max-width: 290px;
  }
}

@media (max-width: 1100px) {
  .main-home-grid,
  .main-home-bottom {
    grid-template-columns: 1fr;
  }

  .main-quick-grid {
    grid-template-columns: repeat(3, minmax(128px, 1fr));
  }

  .h360-mainbar {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .h360-mainbar-search {
    min-width: 190px;
  }

  .h360-user-copy {
    display: none;
  }
}

@media (max-width: 700px) {
  .main-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 1.4rem;
  }

  .main-hero-clock {
    align-items: flex-start;
  }

  .main-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-quick-tile {
    min-height: 126px;
  }

  .h360-mainbar {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand user"
      "center center";
    padding: 0.55rem 0.75rem;
  }

  .h360-mainbar-brand {
    grid-area: brand;
  }

  .h360-mainbar-center {
    grid-area: center;
    justify-content: space-between;
    width: 100%;
  }

  .h360-mainbar-user {
    grid-area: user;
  }

  .h360-mainbar-clock {
    font-size: 0.82rem;
  }

  .h360-mainbar-search {
    flex: 1;
    min-width: 0;
  }

  .h360-mainbar-search kbd {
    display: none;
  }

  .h360-mainbar-logo-img {
    max-width: 154px;
    height: 50px;
  }

  body:has(.h360-mainbar) .workspace-shell {
    display: none !important;
  }

  body:has(.h360-mainbar) .monitor360-content {
    padding-top: calc(104px + 1rem);
  }
}

@media (min-width: 992px) {
  .monitor360-header .navbar {
    left: 0;
    width: 100%;
  }

  .workspace-shell {
    display: none !important;
  }

  .workspace-shell .container-fluid,
  .workspace-stage {
    padding: 0;
  }

  .monitor360-content {
    width: 100%;
    min-height: calc(100vh - 56px);
    margin-left: 0;
    padding-top: calc(56px + 1.5rem);
  }

  .adminuiux-footer {
    margin-left: 0;
  }

  body.sidebar-mini .workspace-shell {
    width: 44px;
    padding: 0.6rem 0.25rem;
  }

  body.sidebar-mini .monitor360-content {
    width: 100%;
    margin-left: 0;
  }

  body.sidebar-mini .monitor360-header .navbar {
    left: 0;
    width: 100%;
  }
}

.workspace-primary-tabs {
  gap: 0;
}

.workspace-primary-tab,
.workspace-subtab {
  min-height: auto;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--h360-sidebar-text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: none;
}

.workspace-primary-tab:hover,
.workspace-primary-tab.is-active,
.workspace-subtab:hover,
.workspace-subtab.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 #60a5fa;
}

.workspace-secondary-set,
.workspace-secondary-set.is-active {
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(15, 23, 42, 0.28);
}

.workspace-subtab {
  padding-left: 2.6rem;
  font-size: 0.84rem;
}

.sidebar-mini-toggle {
  color: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.10);
}

.sidebar-mini-toggle:hover {
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .workspace-shell {
    background: var(--h360-sidebar);
  }

  .monitor360-content {
    padding-top: calc(56px + 1rem);
  }

  .page-header,
  .atendimento-header,
  .config-page > .d-flex:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid-4,
  .form-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-span-3,
  .col-span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .form-grid-2,
  .form-grid-3,
  .form-grid-4,
  .form-grid-6 {
    grid-template-columns: 1fr;
  }

  .col-span-2,
  .col-span-3,
  .col-span-4 {
    grid-column: span 1;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .login-card {
    padding: 1.75rem 1.35rem;
  }
}

/* Login must behave as a standalone full-viewport screen */
html:has(.hospital-login-screen),
body:has(.hospital-login-screen) {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0f172a !important;
}

body:has(.hospital-login-screen) .adminuiux-wrap,
body:has(.hospital-login-screen) .monitor360-content,
body:has(.hospital-login-screen) main,
body:has(.hospital-login-screen) .container-fluid {
  width: 100% !important;
  max-width: none !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0f172a !important;
}

body:has(.hospital-login-screen) .hospital-login-screen {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: clamp(0.75rem, 3vh, 2rem) !important;
  overflow: hidden !important;
  box-sizing: border-box;
}

body:not(:has(.hospital-login-screen)) {
  --layout-scale: 0.9;
  font-size: 12.6px;
}

body:not(:has(.hospital-login-screen)) .container-fluid {
  --bs-gutter-x: 1.35rem;
}

body:not(:has(.hospital-login-screen)) .h360-mainbar {
  height: 66px;
  padding: 0 18px;
}

body:not(:has(.hospital-login-screen)) .h360-mainbar-logo-img {
  max-width: 205px;
  height: 63px;
}

body:not(:has(.hospital-login-screen)) .h360-mainbar-clock {
  font-size: 0.97rem;
}

body:not(:has(.hospital-login-screen)) .h360-mainbar-search {
  height: 33px;
  min-width: 212px;
  padding: 0 0.68rem;
}

body:not(:has(.hospital-login-screen)) .h360-mainbar-search input {
  font-size: 0.85rem;
}

body:not(:has(.hospital-login-screen)) .h360-user-copy strong {
  font-size: 0.9rem;
}

body:not(:has(.hospital-login-screen)) .h360-user-copy small {
  font-size: 0.77rem !important;
}

body:not(:has(.hospital-login-screen)) .h360-top-btn {
  min-height: 34px;
  padding: 0.4rem 0.72rem;
}

body:not(:has(.hospital-login-screen)):has(.h360-mainbar) .monitor360-content {
  min-height: calc(100vh - 66px);
  padding-top: calc(66px + 1.15rem);
}

body:not(:has(.hospital-login-screen)) .main-hero {
  min-height: 132px;
  padding: 1.8rem 2rem;
}

body:not(:has(.hospital-login-screen)) .main-hero h1 {
  font-size: 1.58rem;
}

body:not(:has(.hospital-login-screen)) .main-hero p {
  font-size: 0.9rem;
}

body:not(:has(.hospital-login-screen)) .main-hero-clock strong {
  font-size: 2.48rem;
}

body:not(:has(.hospital-login-screen)) .main-panel,
body:not(:has(.hospital-login-screen)) .section-card {
  padding: 1.08rem;
}

body:not(:has(.hospital-login-screen)) .main-home-page,
body:not(:has(.hospital-login-screen)) .main-home-grid,
body:not(:has(.hospital-login-screen)) .main-home-bottom,
body:not(:has(.hospital-login-screen)) .stats-grid {
  gap: 1.05rem;
}

body:not(:has(.hospital-login-screen)) .main-quick-tile {
  min-height: 128px;
  padding: 0.9rem;
}

body:not(:has(.hospital-login-screen)) .main-quick-icon {
  width: 58px;
  height: 58px;
  font-size: 1.7rem;
}

body:not(:has(.hospital-login-screen)) .main-status-item {
  min-height: 59px;
  padding: 0.67rem 0.85rem;
}

body:not(:has(.hospital-login-screen)) .card-body,
body:not(:has(.hospital-login-screen)) .table,
body:not(:has(.hospital-login-screen)) .table tbody td,
body:not(:has(.hospital-login-screen)) .table tbody th,
body:not(:has(.hospital-login-screen)) .btn,
body:not(:has(.hospital-login-screen)) .form-control,
body:not(:has(.hospital-login-screen)) .form-select,
body:not(:has(.hospital-login-screen)) .input-group-text,
body:not(:has(.hospital-login-screen)) .dropdown-item,
body:not(:has(.hospital-login-screen)) .list-group-item,
body:not(:has(.hospital-login-screen)) .data-table {
  font-size: 0.76rem;
}

body:not(:has(.hospital-login-screen)) .form-control,
body:not(:has(.hospital-login-screen)) .form-select {
  min-height: 34px;
  padding: 0.4rem 0.58rem;
}

body:has(.hospital-login-screen) .login-container {
  width: min(100%, 438px);
  max-width: 438px;
  max-height: 100%;
  padding: 0;
}

body:has(.hospital-login-screen) .login-card {
  width: 100%;
  max-height: calc(100vh - 5.5rem);
  padding: clamp(1.55rem, 5vh, 3.65rem) clamp(1.25rem, 4vw, 3.15rem) clamp(1.35rem, 3.5vh, 2.75rem);
}

@media (max-height: 760px) {
  body:has(.hospital-login-screen) .login-card {
    padding-top: 1.45rem;
    padding-bottom: 1.2rem;
  }

  body:has(.hospital-login-screen) .login-header {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  body:has(.hospital-login-screen) .login-logo-img {
    height: 53px;
  }

  body:has(.hospital-login-screen) .login-help {
    margin-top: 0.45rem;
  }
}

@media (max-width: 640px) {
  body:has(.hospital-login-screen) .hospital-login-screen {
    align-items: center;
    padding: 0.75rem !important;
  }

  body:has(.hospital-login-screen) .login-container {
    width: 100%;
  }

  body:has(.hospital-login-screen) .login-logo-img {
    max-width: 220px;
    height: 57px;
  }
}

/* Oculta a barra de rolagem lateral do navegador mantendo a rolagem funcional. */
html,
body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

/* BPA */
.sus-inline-note {
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.06);
  color: #334155;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
}

.sus-scroll-pane {
  display: grid;
  gap: 0.55rem;
  max-height: 320px;
  overflow: auto;
  padding-right: 0.25rem;
}

.sus-procedure-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  padding: 0.75rem 0.85rem;
}

.sus-procedure-row strong {
  color: #2563eb;
  font-family: Consolas, 'Courier New', monospace;
}

@media (max-width: 768px) {
  .sus-procedure-row {
    grid-template-columns: 1fr;
  }
}

/* Sidebar lateral estilo Hospital360 */
.h360-sidebar {
  position: fixed;
  top: 73px;
  left: 0;
  bottom: 0;
  width: 260px;
  z-index: 1025;
  background: #1f2c3f;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.h360-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.h360-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 0 1.4rem;
}

.h360-sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  padding: 0.72rem 1.35rem;
  color: #e7eefc;
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.22;
  border-left: 4px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.h360-sidebar-link i {
  width: 24px;
  min-width: 24px;
  color: #d7e2f5;
  font-size: 1.16rem;
  text-align: center;
}

.h360-sidebar-link:hover,
.h360-sidebar-link:focus {
  background: rgba(37, 99, 235, 0.26);
  color: #ffffff;
}

.h360-sidebar-link.is-active {
  background: #2f67e8;
  color: #ffffff;
  border-left-color: #70a4ff;
}

.h360-sidebar-link.is-active i {
  color: #ffffff;
}

.tfdx-monitor-shell .workspace-shell {
  display: none !important;
}

.tfdx-monitor-shell .adminuiux-content.monitor360-content {
  margin-left: 260px !important;
  width: calc(100% - 260px) !important;
}

@media (max-width: 992px) {
  .h360-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    display: grid;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .h360-sidebar-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    padding: 0.75rem;
  }

  .h360-sidebar-link {
    border-left: 0;
    border-radius: 12px;
  }

  .tfdx-monitor-shell .adminuiux-content.monitor360-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Ajuste fino da sidebar conforme referencia TFDx/Hospital360 */
:root {
  --tfdx-sidebar-width: 326px;
  --tfdx-topbar-height: 84px;
}

.tfdx-monitor-shell .adminuiux-header.monitor360-header .navbar.fixed-top {
  left: var(--tfdx-sidebar-width) !important;
  width: calc(100% - var(--tfdx-sidebar-width)) !important;
  height: var(--tfdx-topbar-height) !important;
  background: #1f2c3f !important;
  box-shadow: none !important;
}

.tfdx-monitor-shell .monitor360-topbar {
  height: var(--tfdx-topbar-height) !important;
  min-height: var(--tfdx-topbar-height) !important;
  background: #1f2c3f !important;
  padding: 0 1.35rem !important;
}

.tfdx-monitor-shell .monitor360-brand-zone {
  display: none !important;
}

.h360-sidebar {
  top: 0 !important;
  width: var(--tfdx-sidebar-width) !important;
  background: #1f2c3f !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

.h360-sidebar-brand {
  display: flex;
  align-items: center;
  height: var(--tfdx-topbar-height);
  padding: 0 0 0 24px;
  text-decoration: none;
}

.h360-sidebar-brand img {
  display: block;
  width: 76px;
  height: auto;
  object-fit: contain;
}

.h360-sidebar-nav {
  padding: 55px 0 1.8rem !important;
  gap: 0 !important;
}

.h360-sidebar-link {
  min-height: 46px !important;
  padding: 0.46rem 1.25rem 0.46rem 46px !important;
  gap: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  color: #f5f7fb !important;
  font-size: 0.98rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.h360-sidebar-link i {
  display: none !important;
}

.h360-sidebar-link:hover,
.h360-sidebar-link:focus,
.h360-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.035) !important;
  color: #ffffff !important;
}

.tfdx-monitor-shell .adminuiux-content.monitor360-content {
  margin-left: var(--tfdx-sidebar-width) !important;
  width: calc(100% - var(--tfdx-sidebar-width)) !important;
  padding-top: var(--tfdx-topbar-height) !important;
}

.tfdx-monitor-shell .adminuiux-content.monitor360-content > .container-fluid {
  padding-top: 1.35rem !important;
}

@media (max-width: 992px) {
  .tfdx-monitor-shell .adminuiux-header.monitor360-header .navbar.fixed-top {
    left: 0 !important;
    width: 100% !important;
  }

  .tfdx-monitor-shell .monitor360-brand-zone {
    display: flex !important;
  }

  .h360-sidebar {
    position: static !important;
    width: 100% !important;
    margin-top: var(--tfdx-topbar-height) !important;
  }

  .h360-sidebar-brand {
    display: none !important;
  }

  .h360-sidebar-nav {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
    padding: 0.75rem !important;
  }

  .h360-sidebar-link {
    min-height: 44px !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: 10px !important;
  }

  .tfdx-monitor-shell .adminuiux-content.monitor360-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 0 !important;
  }
}

/* Remodelagem responsiva da sidebar TFDx */
:root {
  --tfdx-sidebar-width: 292px;
  --tfdx-topbar-height: 84px;
}

.h360-sidebar {
  width: var(--tfdx-sidebar-width) !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(180deg, #1d2a3e 0%, #172235 100%) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.12) !important;
}

.h360-sidebar-brand {
  height: var(--tfdx-topbar-height) !important;
  padding: 0 1.35rem !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.h360-sidebar-brand img {
  width: 86px !important;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}

.h360-sidebar-nav {
  padding: 1.25rem 0.85rem 1.75rem !important;
  gap: 0.22rem !important;
}

.h360-sidebar-link {
  position: relative;
  display: grid !important;
  grid-template-columns: 38px 1fr;
  align-items: center;
  min-height: 48px !important;
  padding: 0.58rem 0.72rem !important;
  border-radius: 15px !important;
  border-left: 0 !important;
  background: transparent !important;
  color: rgba(241, 245, 249, 0.9) !important;
  font-size: 0.94rem !important;
  font-weight: 750 !important;
  letter-spacing: -0.015em !important;
}

.h360-sidebar-link i {
  display: inline-grid !important;
  place-items: center;
  width: 34px !important;
  height: 34px;
  min-width: 34px !important;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.08);
  color: #dbeafe !important;
  font-size: 1.06rem !important;
}

.h360-sidebar-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.h360-sidebar-link:hover,
.h360-sidebar-link:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

.h360-sidebar-link:hover i,
.h360-sidebar-link:focus i {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff !important;
}

.h360-sidebar-link.is-active {
  background: linear-gradient(135deg, #2563eb 0%, #2f6ff2 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.h360-sidebar-link.is-active::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: #93c5fd;
}

.h360-sidebar-link.is-active i {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

.tfdx-monitor-shell .adminuiux-header.monitor360-header .navbar.fixed-top {
  left: var(--tfdx-sidebar-width) !important;
  width: calc(100% - var(--tfdx-sidebar-width)) !important;
}

.tfdx-monitor-shell .adminuiux-content.monitor360-content {
  margin-left: var(--tfdx-sidebar-width) !important;
  width: calc(100% - var(--tfdx-sidebar-width)) !important;
}

@media (max-width: 1180px) and (min-width: 993px) {
  :root {
    --tfdx-sidebar-width: 88px;
  }

  .h360-sidebar-brand {
    justify-content: center;
    padding: 0 !important;
  }

  .h360-sidebar-brand img {
    width: 48px !important;
    height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  .h360-sidebar-nav {
    padding: 1rem 0.6rem !important;
  }

  .h360-sidebar-link {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 54px !important;
    padding: 0.55rem !important;
  }

  .h360-sidebar-link span {
    display: none !important;
  }

  .h360-sidebar-link i {
    width: 38px !important;
    height: 38px;
  }

  .h360-sidebar-link.is-active::before {
    left: -0.6rem;
  }
}

@media (max-width: 992px) {
  .h360-sidebar {
    border-bottom: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-right: 0 !important;
  }

  .h360-sidebar-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    overflow-x: auto;
    padding: 0.75rem !important;
    scrollbar-width: none;
  }

  .h360-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .h360-sidebar-link {
    grid-template-columns: 30px max-content;
    flex: 0 0 auto;
    min-height: 42px !important;
    padding: 0.45rem 0.75rem !important;
    border-radius: 999px !important;
    white-space: nowrap;
    font-size: 0.86rem !important;
  }

  .h360-sidebar-link i {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px;
    border-radius: 999px;
    font-size: 0.95rem !important;
  }

  .h360-sidebar-link.is-active::before {
    display: none;
  }
}

/* Compactacao da sidebar: -20% na largura e elementos menores */
:root {
  --tfdx-sidebar-width: 234px;
}

.h360-sidebar-brand {
  padding: 0 1rem !important;
}

.h360-sidebar-brand img {
  width: 72px !important;
}

.h360-sidebar-nav {
  padding: 0.95rem 0.58rem 1.25rem !important;
  gap: 0.12rem !important;
}

.h360-sidebar-link {
  grid-template-columns: 31px 1fr !important;
  min-height: 40px !important;
  padding: 0.44rem 0.55rem !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
  font-weight: 740 !important;
}

.h360-sidebar-link i {
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  font-size: 0.92rem !important;
}

.h360-sidebar-link.is-active::before {
  left: -0.58rem !important;
  top: 10px !important;
  bottom: 10px !important;
  width: 3px !important;
}

@media (max-width: 1180px) and (min-width: 993px) {
  :root {
    --tfdx-sidebar-width: 72px;
  }

  .h360-sidebar-brand img {
    width: 42px !important;
    height: 42px !important;
  }

  .h360-sidebar-link {
    min-height: 46px !important;
    padding: 0.42rem !important;
  }

  .h360-sidebar-link i {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 992px) {
  .h360-sidebar-link {
    min-height: 38px !important;
    padding: 0.38rem 0.62rem !important;
    font-size: 0.8rem !important;
  }

  .h360-sidebar-link i {
    width: 25px !important;
    min-width: 25px !important;
    height: 25px !important;
    font-size: 0.86rem !important;
  }
}

/* Evita sobreposicao do rodape com a sidebar lateral */
.tfdx-monitor-shell footer,
.tfdx-monitor-shell .footer,
.tfdx-monitor-shell .adminuiux-footer,
.tfdx-monitor-shell .monitor360-footer {
  margin-left: var(--tfdx-sidebar-width) !important;
  width: calc(100% - var(--tfdx-sidebar-width)) !important;
}

@media (max-width: 992px) {
  .tfdx-monitor-shell footer,
  .tfdx-monitor-shell .footer,
  .tfdx-monitor-shell .adminuiux-footer,
  .tfdx-monitor-shell .monitor360-footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
}
