/* @novatrix/ui 3.5.3 — workspace composition derived from the supplied Monty reference.
   Semantic NTX colors, existing routes/handlers and native exceptions remain unchanged. */
:root {
  --ntx-font-ui: "Inter Variable", Inter, system-ui, sans-serif;
  --ntx-text-xs: 0.8125rem;
  --ntx-text-sm: 0.875rem;
  --ntx-text-base: 1rem;
  --ntx-title-section: 1.25rem;
  --ntx-title-page: 1.75rem;
  --ntx-sidebar-width: 272px;
  --ntx-content-margin: 32px;
  --ntx-grid-gap: 24px;
  --ntx-panel-radius: 14px;
  --ntx-row-height: 52px;
  --ntx-line: 1px solid var(--ntx-border);
}
html[data-ntx-theme="claro"],
html[data-ntx-theme="claro"] [data-ntx-product],
.light:not([data-ntx-theme="escuro"]) {
  --ntx-bg: #f4f5f8;
  --ntx-surface: #fff;
  --ntx-raised: #f5f6f9;
  --ntx-text: #182238;
  --ntx-muted: #5e687b;
  --ntx-border: #e2e6ed;
  --ntx-accent: #1856ad;
  --ntx-primary: #1856ad;
}
.ntx-shell {
  font-family: var(--ntx-font-ui);
  --ntx-heading-font: var(--ntx-font-ui);
  font-size: var(--ntx-text-base);
  line-height: 1.5;
}
.ntx-shell :is(h1, h2, h3, h4, button, input, select, textarea) {
  font-family: var(--ntx-font-ui);
}
.ntx-shell h1 {
  font-size: var(--ntx-title-page);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 20px;
}
.ntx-shell h2 {
  font-size: var(--ntx-title-section);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.ntx-shell h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.ntx-shell :is(.main, .ntx-admin-main) {
  padding: 16px var(--ntx-content-margin) 32px;
  min-width: 0;
}
.ntx-shell :is(.topbar, .ntx-topbar) {
  background: var(--ntx-surface);
  border: 0;
  border-radius: var(--ntx-panel-radius);
  min-height: 60px;
  padding: 8px 16px;
  margin-bottom: 24px;
  box-shadow: none;
}
.ntx-shell .ntx-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--ntx-text-sm);
}
.ntx-shell .sidebar {
  background: var(--ntx-surface);
  border: 0;
  border-radius: var(--ntx-panel-radius);
  padding: 16px 10px;
  gap: 0;
  box-shadow: none;
}
.ntx-shell .sidebar .brand {
  padding: 0 8px 20px;
}
.ntx-shell .sidebar .brand > span {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.ntx-shell .sidebar .brand small {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.ntx-shell .sidebar .nav {
  font-size: 0.875rem;
  min-height: 40px;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-radius: 10px;
  gap: 10px;
  font-weight: 450;
  color: var(--ntx-muted);
}
.ntx-shell .sidebar .nav:is(.active, [aria-current="page"]) {
  background: color-mix(in srgb, var(--ntx-accent) 9%, var(--ntx-surface));
  color: var(--ntx-accent);
  font-weight: 550;
}
.ntx-shell .sidebar .nav.active small {
  color: inherit;
  opacity: 0.85;
}
.ntx-shell .sidebar .workspace-label {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  margin-top: 12px;
  padding: 8px 12px;
}
.ntx-shell .sidebar .nav small {
  font-size: 0.75rem;
  line-height: 1.4;
}
.ntx-shell .sidebar .user {
  padding-top: 16px;
  border-top: var(--ntx-line);
  font-size: 0.875rem;
}
.ntx-shell .sidebar-bottom {
  padding-top: 16px;
}
.ntx-shell .heading {
  padding: 0;
  margin-bottom: 24px;
  gap: 16px;
}
.ntx-shell .heading h1 {
  margin: 0;
}
.ntx-shell .heading h1 > span {
  display: none;
}
.ntx-shell .context-tag {
  background: var(--ntx-surface);
  border: var(--ntx-line);
  font-size: var(--ntx-text-sm);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ntx-muted);
}
.ntx-shell .family-cards {
  gap: var(--ntx-grid-gap);
  margin-bottom: 24px;
}
.ntx-shell .family {
  background: var(--ntx-surface);
  border: 1px solid transparent;
  border-radius: var(--ntx-panel-radius);
  padding: 16px;
  min-height: 84px;
  box-shadow: none;
}
.ntx-shell .family.selected {
  border-color: var(--ntx-accent);
  background: color-mix(in srgb, var(--ntx-accent) 4%, var(--ntx-surface));
}
.ntx-shell .family h2 {
  font-size: 1rem;
  margin: 0 0 4px;
}
.ntx-shell .family p {
  font-size: var(--ntx-text-sm);
  color: var(--ntx-muted);
}
.ntx-shell .family-icon {
  width: 32px;
  height: 32px;
}
.ntx-shell .family-top {
  margin-bottom: 12px;
}
.ntx-shell .section-title {
  margin-bottom: 16px;
  align-items: center;
}
.ntx-shell .section-title h2 {
  font-size: var(--ntx-title-section);
  margin: 0;
}
.ntx-shell .section-title > span {
  font-size: var(--ntx-text-sm);
  color: var(--ntx-muted);
}
.ntx-shell :is(.toolbar, .ntx-toolbar) {
  background: var(--ntx-surface);
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: none;
}
.ntx-shell .search {
  background: var(--ntx-raised);
  border: 0;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 14px;
  max-width: 400px;
}
.ntx-shell .search input {
  font-size: 0.875rem;
  background: transparent;
  min-width: 0;
}
.ntx-shell .search kbd {
  display: none;
}
.ntx-shell .segmented {
  border: 0;
  background: var(--ntx-raised);
  border-radius: 999px;
  padding: 4px;
}
.ntx-shell .segmented button {
  border-radius: 999px;
  font-size: 0.875rem;
  padding: 8px 12px;
}
.ntx-shell .segmented button[aria-pressed="true"] {
  background: var(--ntx-surface);
  color: var(--ntx-accent);
  box-shadow: 0 1px 4px #14223a0b;
}
.ntx-shell .ntx-module-list {
  gap: 24px;
}
.ntx-shell .ntx-module-section {
  background: var(--ntx-surface);
  border-radius: var(--ntx-panel-radius);
  padding: 20px;
  min-width: 0;
}
.ntx-shell .ntx-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 16px;
}
.ntx-shell .ntx-section-heading .ntx-context {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ntx-muted);
}
.ntx-shell .ntx-section-heading :is(h2, h3) {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}
.ntx-shell .ntx-section-heading p:last-child {
  margin-left: auto;
  font-size: 0.8125rem;
}
.ntx-shell :is(.ntx-table, .tabela-central) {
  border: 0;
  border-radius: 12px;
  background: var(--ntx-surface);
  box-shadow: none;
  max-width: 100%;
}
.ntx-shell .ntx-table :is(td, th) {
  font-size: 0.875rem;
  padding: 12px 16px;
  border-bottom: var(--ntx-line);
  height: var(--ntx-row-height);
  vertical-align: middle;
}
.ntx-shell .ntx-table thead th {
  height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--ntx-raised);
  color: var(--ntx-muted);
  white-space: nowrap;
}
.ntx-shell .ntx-table tbody th {
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
}
.ntx-shell .ntx-table tbody tr:last-child > :is(td, th) {
  border-bottom: 0;
}
.ntx-shell .ntx-table caption {
  font-size: 0.875rem;
  font-weight: 550;
  text-align: left;
  padding: 16px;
  color: var(--ntx-text);
}
.ntx-shell .ntx-module-section .ntx-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ntx-shell .ntx-service-name {
  gap: 10px;
}
.ntx-shell .ntx-service-name button {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.015em;
}
.ntx-shell .ntx-services-table :is(.status, .open-link) {
  font-size: 0.8125rem;
}
.ntx-shell .ntx-services-table .status {
  border: 0;
  border-radius: 6px;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--ntx-positive) 8%, var(--ntx-surface));
  color: var(--ntx-positive);
}
.ntx-shell .ntx-services-table .status.planned {
  background: var(--ntx-raised);
  color: var(--ntx-muted);
}
.ntx-shell :is(button.secondary, a.secondary, .ntx-action) {
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 44px;
}
.ntx-shell :is(button.primary, a.primary) {
  font-size: 0.875rem;
  font-weight: 550;
  border-radius: 10px;
}
.ntx-shell
  :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  border-radius: 10px;
  background: var(--ntx-raised);
  border-color: var(--ntx-border);
  font-size: 1rem;
}
.ntx-shell .ntx-form {
  gap: 16px;
}
.ntx-shell :is(label, .ntx-form label) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ntx-muted);
}
.ntx-shell .ntx-drawer {
  inset: 12px 12px 12px auto;
  width: min(560px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  border: var(--ntx-line);
  border-radius: 16px;
  box-shadow: 0 12px 40px #1018271f;
}
.ntx-shell .ntx-drawer__header {
  padding: 20px 24px;
  align-items: center;
  border-bottom: var(--ntx-line);
}
.ntx-shell .ntx-drawer__header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.ntx-shell .ntx-drawer__body {
  padding: 24px;
}
.ntx-shell .ntx-drawer__body > h3 {
  font-size: 1rem;
  font-weight: 550;
}
.ntx-shell .ntx-permissions label {
  font-size: 0.875rem;
  color: var(--ntx-text);
}
.ntx-shell .ntx-actions {
  gap: 10px;
  font-size: 0.875rem;
}
.ntx-shell .ntx-signature {
  font-size: 0.75rem;
  margin-top: 32px;
  color: var(--ntx-muted);
}
@media (min-width: 781px) {
  .app.ntx-shell {
    padding: 16px;
    gap: 0;
    grid-template-columns: var(--ntx-sidebar-width) minmax(0, 1fr);
  }
  .app.ntx-shell.ntx-nav-open {
    grid-template-columns: var(--ntx-sidebar-width) minmax(0, 1fr);
  }
  .app.ntx-shell.ntx-nav-closed {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .app.ntx-shell [data-ntx-navigation].sidebar {
    width: var(--ntx-sidebar-width);
    position: sticky;
    top: 16px;
    height: calc(100dvh - 32px);
  }
  .app.ntx-shell.ntx-nav-closed [data-ntx-navigation].sidebar {
    width: 64px;
    padding-inline: 12px;
  }
  .app.ntx-shell.ntx-nav-closed .sidebar .nav {
    font-size: 0;
    justify-content: center;
  }
  .app.ntx-shell.ntx-nav-hover [data-ntx-navigation].sidebar {
    position: fixed;
    left: 16px;
    z-index: 90;
  }
  .app.ntx-shell.ntx-nav-hover {
    grid-template-columns: 64px minmax(0, 1fr);
  }
}
@media (max-width: 780px) {
  .ntx-shell {
    --ntx-content-margin: 16px;
    --ntx-grid-gap: 16px;
  }
  .ntx-shell :is(.main, .ntx-admin-main) {
    padding: 16px;
  }
  .ntx-shell :is(.topbar, .ntx-topbar) {
    margin-bottom: 24px;
    gap: 8px;
    min-height: 56px;
  }
  .ntx-shell .ntx-module-section {
    padding: 16px;
    border-radius: 16px;
  }
  .ntx-shell .family-cards {
    gap: 12px;
  }
  .ntx-shell .family {
    min-height: 84px;
    padding: 16px;
  }
  .ntx-shell .family-icon {
    width: 36px;
    height: 36px;
  }
  .ntx-shell .sidebar {
    border-radius: 0 20px 20px 0;
  }
  .ntx-shell .ntx-section-heading p:last-child {
    margin-left: 0;
  }
  .ntx-shell .ntx-drawer {
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ntx-shell * {
    scroll-behavior: auto !important;
  }
}

/* Bridge legacy important navigation selectors through the canonical width token. */
@media (min-width: 781px) {
  .ntx-shell.ntx-nav-open {
    --ntx-nav-width: var(--ntx-sidebar-width);
  }
  .app.ntx-shell [data-ntx-navigation].sidebar {
    width: var(--ntx-sidebar-width) !important;
    top: 16px !important;
    height: calc(100dvh - 32px) !important;
  }
  .app.ntx-shell.ntx-nav-closed [data-ntx-navigation].sidebar {
    width: 64px !important;
  }
  .app.ntx-shell.ntx-nav-hover [data-ntx-navigation].sidebar {
    position: fixed !important;
  }
}

/* 44px interactive target + 4px vertical cell padding yields 52px rows. */
.ntx-shell .ntx-table tbody :is(td, th) {
  padding-block: 4px;
}

/* Module navigation: only existing authorized catalog destinations. */
.ntx-shell .ntx-nav-submenu {
  padding: 4px 0 8px 22px;
  border-left: 1px solid var(--ntx-border);
  margin: 4px 8px 12px 20px;
}
.ntx-shell .ntx-nav-submenu section {
  margin-bottom: 12px;
}
.ntx-shell .ntx-nav-submenu h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 8px 0;
  color: var(--ntx-muted);
}
.ntx-shell .ntx-nav-submenu a,
.ntx-shell .ntx-nav-submenu section > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  font-size: 0.875rem;
  line-height: 1.4;
  border-radius: 8px;
  color: var(--ntx-text);
}
.ntx-shell .ntx-nav-submenu a:hover {
  background: var(--ntx-raised);
  color: var(--ntx-accent);
}
.ntx-shell.ntx-nav-closed .ntx-nav-submenu {
  display: none;
}
.ntx-shell .ntx-tabs {
  border: 0;
  background: var(--ntx-surface);
  padding: 6px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
}
.ntx-shell .ntx-tabs :is(a, button) {
  border-radius: 999px;
  font-size: 0.875rem;
}
.ntx-shell .ntx-tabs [aria-current="page"] {
  background: var(--ntx-primary);
  color: #fff;
}
.ntx-shell .ntx-form {
  background: var(--ntx-surface);
  border-radius: 16px;
}
.ntx-shell .ntx-panel {
  background: var(--ntx-surface);
  border: 0;
  border-radius: var(--ntx-panel-radius);
  padding: 24px;
  box-shadow: none;
}
.ntx-shell .ntx-drawer__body .ntx-form {
  padding: 0;
}
.ntx-shell :is(.family, .ntx-action, button, .ntx-tabs a, .ntx-nav-submenu a) {
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}
.ntx-shell input[type="checkbox"] {
  accent-color: var(--ntx-accent);
  width: 16px;
  height: 16px;
}
@media (prefers-reduced-motion: reduce) {
  .ntx-shell * {
    transition: none !important;
    animation: none !important;
  }
}

/* Contextual surfaces share the same hierarchy as the table they extend. */
.ntx-shell .floating-panel {
  right: 24px;
  bottom: 24px;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  background: var(--ntx-surface);
  color: var(--ntx-text);
  border: var(--ntx-line);
  border-radius: var(--ntx-panel-radius);
  box-shadow: 0 12px 40px #1018271f;
}
.ntx-shell .panel-top {
  gap: 16px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: var(--ntx-muted);
}
.ntx-shell :is(.panel-top button, .ntx-drawer__header button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: var(--ntx-line);
  border-radius: 10px;
  background: var(--ntx-surface);
  color: var(--ntx-muted);
  box-shadow: none;
}
.ntx-shell :is(.panel-top button, .ntx-drawer__header button):hover {
  background: var(--ntx-raised);
  color: var(--ntx-text);
}
.ntx-shell .floating-panel .item-product {
  display: block;
  font-size: 0.8125rem;
  color: var(--ntx-muted);
  letter-spacing: 0;
}
.ntx-shell .floating-panel h2 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 8px 0 12px;
  overflow-wrap: anywhere;
}
.ntx-shell .floating-panel p,
.ntx-shell .panel-note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ntx-muted);
}
.ntx-shell .panel-note {
  margin: 16px 0;
  padding: 12px;
  background: var(--ntx-raised);
  border-radius: 8px;
}
.ntx-shell .floating-panel > :is(button, a) {
  min-height: 44px;
  display: flex;
  width: 100%;
  margin-top: 12px;
  font-size: 0.875rem;
}
.ntx-shell .move-controls {
  margin-top: 16px;
  padding-top: 12px;
  border-top: var(--ntx-line);
}
.ntx-shell :is(.ntx-navigation__body, .ntx-drawer__body, .floating-panel) {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--ntx-muted) 35%, transparent)
    transparent;
  overscroll-behavior: contain;
}
.ntx-shell
  :is(.sidebar, .ntx-drawer__body, .floating-panel)::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.ntx-shell
  :is(.sidebar, .ntx-drawer__body, .floating-panel)::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ntx-muted) 35%, transparent);
  border-radius: 4px;
}
.ntx-shell .ntx-navigation__body {
  scrollbar-gutter: stable;
}
.ntx-shell .sidebar > * {
  flex-shrink: 0;
}
@media (max-width: 780px) {
  .ntx-shell .floating-panel {
    right: 16px;
    bottom: 16px;
    max-height: calc(100dvh - 32px);
  }
}

/* A stable identity/account frame; only navigation destinations scroll. */
.app.ntx-shell [data-ntx-navigation].sidebar {
  overflow: hidden;
  min-height: 0;
  gap: 0;
}
.ntx-shell .ntx-navigation__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px;
  gap: 2px;
}
.ntx-shell .sidebar > .ntx-navigation__body {
  flex-shrink: 1;
}
.ntx-shell .ntx-navigation__body > * {
  flex-shrink: 0;
}
.ntx-shell .sidebar .nav {
  width: 100%;
  text-align: left;
}
.ntx-shell .sidebar .nav > span {
  min-width: 0;
}
.ntx-shell .sidebar .nav > .ntx-menu-label {
  flex: 1;
}
.ntx-shell .sidebar .nav .product-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}
.ntx-shell .sidebar .sidebar-bottom {
  margin-top: 0;
  padding-top: 16px;
}
.ntx-shell .sidebar .sidebar-bottom > span {
  font-size: 0.8125rem;
  padding-bottom: 12px;
}
.ntx-shell.ntx-nav-closed .sidebar :is(.workspace-label, .user > span) {
  display: none;
}
.ntx-shell.ntx-nav-closed .sidebar .brand {
  padding: 0 0 16px;
  justify-content: center;
}
.ntx-shell.ntx-nav-closed .sidebar .nav {
  padding: 10px;
  gap: 0;
}
.ntx-shell.ntx-nav-closed .sidebar .user {
  flex-direction: column;
  gap: 8px;
}
.ntx-shell .pagina-central {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.ntx-shell .pagina-central > .eyebrow {
  display: none;
}
.ntx-shell .pagina-central > h1 {
  margin: 0 0 20px;
}
.ntx-shell .pagina-central > p:not(.eyebrow) {
  font-size: 0.875rem;
  margin: 0 0 20px;
}
.ntx-shell .floating-panel .panel-top {
  margin-bottom: 12px;
}
.ntx-shell .floating-panel > :is(.primary, .secondary) {
  border-radius: 10px;
}
.ntx-shell .ntx-drawer__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ntx-shell .ntx-drawer__body > :is(p, h3) {
  margin: 0;
}
.ntx-shell .ntx-drawer__body > .ntx-actions:last-child {
  margin-top: auto;
  padding-top: 16px;
  border-top: var(--ntx-line);
}
.ntx-shell :is(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--ntx-focus);
  outline-offset: 3px;
}
.ntx-shell .ntx-table :is(button, a):focus-visible {
  outline-offset: -2px;
}
@media (max-width: 780px) {
  .ntx-shell .sidebar .brand {
    padding-bottom: 16px;
  }
  .ntx-shell .sidebar .sidebar-bottom > span {
    display: none;
  }
  .ntx-shell .family-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
  .ntx-shell .family {
    min-height: 76px;
    padding: 12px 16px;
  }
  .ntx-shell .family-icon {
    width: 32px;
    height: 32px;
  }
}

/* Legacy shorthand must not shrink the approved field scale. */
.ntx-shell
  :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]):not(
    [type="file"]
  ) {
  font-family: var(--ntx-font-ui);
  font-size: 1rem;
  font-weight: 400;
  min-height: 44px;
}
.app.ntx-shell .search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
  font-size: 0.875rem;
}
.ntx-shell .ntx-drawer__body > .ntx-actions:last-child {
  position: sticky;
  bottom: -24px;
  background: var(--ntx-surface);
  padding-block: 16px;
}

/* Compact chrome: visible controls stay subordinate to content. */
.app.ntx-shell :is(.main, .ntx-admin-main) {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 32px);
  padding-bottom: 8px;
}
.app.ntx-shell :is(.main, .ntx-admin-main) > :not(.ntx-signature) {
  flex-shrink: 0;
}
.ntx-shell .ntx-signature {
  margin-top: auto;
  padding: 32px 0 0;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.ntx-shell .sidebar .brand img {
  width: 30px;
  height: 30px;
}
.ntx-shell .sidebar .brand small {
  font-size: 10px;
  letter-spacing: 0.025em;
}
.ntx-shell .sidebar .nav :is(svg, .product-avatar) {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
.ntx-shell .ntx-service-name svg {
  width: 18px;
  height: 18px;
}
.ntx-shell :is(.ntx-menu-control, .ntx-theme) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  border-radius: 8px;
}
.ntx-shell :is(.ntx-menu-control, .ntx-theme) svg {
  width: 18px;
  height: 18px;
}
.ntx-shell :is(.topbar, .ntx-topbar) {
  min-height: 52px;
  padding-block: 8px;
}
.ntx-shell :is(button.primary, a.primary, .ntx-action-primary) {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}
.ntx-shell .ntx-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-block: 12px;
  margin-top: 0;
  font-size: 0.8125rem;
  color: var(--ntx-muted);
}
.ntx-shell .ntx-pagination :is(label, .ntx-page-size, .ntx-page-size label) {
  font-size: 0.8125rem;
  gap: 8px;
}
.ntx-shell .ntx-pagination select {
  width: 64px;
  height: 36px;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 0.875rem;
  border-radius: 8px;
}
.ntx-shell .ntx-pagination :is(button, .secondary) {
  width: auto;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: var(--ntx-line);
  border-radius: 8px;
  background: var(--ntx-surface);
  color: var(--ntx-text);
}
.ntx-shell .ntx-pagination [role="status"] {
  margin-left: auto;
}
.ntx-shell .ntx-navigation__body {
  scrollbar-gutter: auto;
  scrollbar-color: transparent transparent;
}
.ntx-shell .ntx-navigation__body:is(:hover, :focus-within) {
  scrollbar-color: color-mix(in srgb, var(--ntx-muted) 25%, transparent)
    transparent;
}
.ntx-shell .ntx-navigation__body::-webkit-scrollbar {
  width: 3px;
}
.ntx-shell .ntx-navigation__body::-webkit-scrollbar-thumb {
  background: transparent;
}
.ntx-shell
  .ntx-navigation__body:is(:hover, :focus-within)::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ntx-muted) 25%, transparent);
}
@media (max-width: 780px) {
  .app.ntx-shell :is(.main, .ntx-admin-main) {
    min-height: 100dvh;
  }
  .ntx-shell .ntx-signature {
    padding-bottom: 16px;
  }
  .ntx-shell .ntx-pagination [role="status"] {
    margin-left: 0;
  }
}
@media (pointer: coarse) {
  .ntx-shell
    :is(
      .ntx-menu-control,
      .ntx-theme,
      button.primary,
      .ntx-action-primary,
      .ntx-pagination select,
      .ntx-pagination button,
      .ntx-pagination .secondary
    ) {
    min-height: 44px;
    min-width: 44px;
  }
  .ntx-shell .sidebar .nav {
    min-height: 44px;
  }
}
.ntx-shell
  :is(
    .sidebar .nav svg,
    .ntx-theme svg,
    .ntx-menu-control svg,
    .ntx-service-name svg
  ) {
  stroke-width: 1.75;
}
.ntx-shell .ntx-pagination select:not([multiple]):not([size]) {
  height: 36px;
  min-height: 36px;
  font-size: 0.875rem;
}
@media (pointer: coarse) {
  .ntx-shell .ntx-pagination select:not([multiple]):not([size]) {
    min-height: 44px;
  }
}
.ntx-shell .ntx-menu-control {
  flex-basis: 36px;
}
@media (pointer: coarse) {
  .ntx-shell .ntx-menu-control {
    flex-basis: 44px;
  }
}

.ntx-shell .ntx-product-section {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.ntx-shell .ntx-product-section > h2 {
  margin: 0;
  font-size: 20px;
}
.ntx-shell .ntx-services-table {
  table-layout: fixed;
  width: 100%;
}
.ntx-shell .ntx-services-table thead th:first-child {
  width: 55%;
}
.ntx-shell .ntx-services-table thead th:nth-child(2) {
  width: 20%;
}
.ntx-shell .ntx-services-table thead th:last-child {
  width: 25%;
  text-align: left;
}
.ntx-shell .ntx-row-actions {
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.ntx-shell .ntx-row-actions .open-link {
  flex-shrink: 0;
  min-width: 86px;
}
.ntx-shell.ntx-nav-closed .sidebar .nav > span {
  display: none;
}
.ntx-shell.ntx-nav-closed .sidebar .nav {
  justify-content: center;
}

/* Management uses the same surface and header across all catalogue/access views. */
.ntx-shell .ntx-management-surface {
  min-width: 0;
  padding: 20px;
  background: var(--ntx-surface);
  border: var(--ntx-line);
  border-radius: var(--ntx-panel-radius);
  margin-block: 0 24px;
}
.ntx-shell .ntx-management-surface[hidden] {
  display: none;
}
.ntx-shell .ntx-management-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.ntx-shell .ntx-management-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.ntx-shell .ntx-management-heading .ntx-actions {
  margin: 0;
}
.ntx-shell .ntx-management-surface .tabela-central {
  margin-block: 16px 0;
}
.ntx-shell .ntx-management-surface .ntx-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  padding: 0;
}
.ntx-shell .ntx-access-detail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.ntx-shell .ntx-access-detail > :is(h2, p, label, .ntx-table) {
  margin: 0;
}
.ntx-shell .ntx-access-detail > :is(label, .ntx-table) {
  width: 100%;
}
.ntx-shell .ntx-access-detail h2 {
  font-size: 18px;
}
.ntx-shell .ntx-access-detail .notice {
  width: 100%;
  font-size: 14px;
  padding: 12px;
}
.ntx-shell .ntx-tabs {
  padding: 4px;
  gap: 4px;
  border-radius: 10px;
  background: var(--ntx-raised);
  margin-bottom: 20px;
}
.ntx-shell .ntx-tabs :is(button, a) {
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 14px;
  font-weight: 500;
}
.ntx-shell .ntx-tabs [aria-current="page"] {
  background: var(--ntx-surface);
  color: var(--ntx-accent);
  box-shadow: 0 1px 3px #10182712;
}
@media (max-width: 780px) {
  .ntx-shell .ntx-management-surface {
    padding: 16px;
  }
}
@media (pointer: coarse) {
  .ntx-shell .ntx-tabs :is(button, a) {
    min-height: 44px;
  }
}

.ntx-entry {
  max-width: 440px;
  padding: 28px;
  border-radius: 14px;
}
.ntx-entry .entry-logo {
  width: 40px;
  height: 40px;
}
.ntx-entry h1 {
  font:
    600 24px/1.3 "Inter Variable",
    Inter,
    sans-serif;
  letter-spacing: -0.025em;
}
.ntx-entry .primary {
  min-height: 40px;
  font-size: 14px;
  padding: 8px 14px;
}

/* The shell must place the work surface in its named grid area in every menu state. */
.app.ntx-shell > :is(.main, .ntx-admin-main) {
  grid-area: main;
  min-width: 0;
  width: 100%;
}
@media (min-width: 781px) {
  .app.ntx-shell.ntx-nav-open {
    --ntx-nav-width: 272px;
  }
  .app.ntx-shell.ntx-nav-closed {
    --ntx-nav-width: 64px;
  }
  .app.ntx-shell.ntx-nav-hover {
    --ntx-nav-width: 64px !important;
  }
}
.ntx-shell .ntx-navigation__body {
  scrollbar-color: color-mix(in srgb, var(--ntx-muted) 35%, transparent)
    transparent;
}
.ntx-shell .ntx-navigation__body::-webkit-scrollbar {
  width: 5px;
}
.ntx-shell .ntx-navigation__body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--ntx-muted) 35%, transparent);
}

/* Responsive finishing: keep the mobile close control clear of the brand. */
@media (max-width: 780px) {
  .ntx-shell.ntx-nav-open .ntx-menu-control {
    position: fixed;
    top: 16px;
    left: calc(min(280px, 100vw - 56px) - 56px);
    z-index: 110;
  }
  .ntx-shell.ntx-nav-open .sidebar .brand {
    padding-right: 56px;
    min-height: 52px;
  }
  .ntx-shell .toolbar {
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .ntx-shell .toolbar .search {
    flex: 1 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .ntx-shell .toolbar .segmented {
    align-self: flex-start;
    width: fit-content;
  }
  .ntx-shell .ntx-table table.ntx-services-table {
    min-width: 520px;
  }
  .ntx-shell .ntx-services-table thead th:first-child {
    width: 40%;
  }
  .ntx-shell .ntx-services-table thead th:nth-child(2) {
    width: 26%;
  }
  .ntx-shell .ntx-services-table thead th:last-child {
    width: 34%;
  }
  .ntx-shell .ntx-services-table th[scope="row"] {
    min-width: 0;
  }
  .ntx-shell .ntx-section-heading {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .ntx-shell .ntx-section-heading p:last-child {
    margin-left: auto;
    white-space: nowrap;
  }
}
.ntx-shell .ntx-permissions {
  gap: 4px 20px;
  margin-block: 0;
}
.ntx-shell .ntx-permissions label {
  align-items: center;
  margin: 0;
}
.ntx-shell .ntx-permissions input[type="checkbox"] {
  margin-block: 0;
}
.ntx-shell .floating-panel .item-product {
  color: var(--ntx-muted);
  text-transform: none;
}

/* Beat the legacy field selector without changing form controls elsewhere. */
.app.ntx-shell .toolbar .search input:not([type="checkbox"]) {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Access links are compact, subordinate actions, not form confirmations. */
.ntx-shell .ntx-row-actions .open-link {
  min-width: 0;
  min-height: 32px;
  height: 32px;
  padding: 6px 10px;
  gap: 6px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  border-radius: 8px;
}
.ntx-shell .ntx-row-actions .open-link svg {
  width: 14px;
  height: 14px;
}
.ntx-health {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 36px;
  flex: 0 0 24px;
}
.ntx-health > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ntx-muted);
}
.ntx-health[data-state="saudavel"] > span {
  background: var(--ntx-positive);
}
.ntx-health[data-state="falha"] > span {
  background: var(--ntx-negative);
}
@media (pointer: coarse) {
  .ntx-shell .ntx-row-actions .open-link {
    min-height: 44px;
    height: 44px;
  }
}
