/* LoguberSys Operational UX: dense, scan-first interface for daily workflows. */
:root {
  --oux-bg: #F1F4F5;
  --oux-surface: #FFFFFF;
  --oux-surface-alt: #F6F8F9;
  --oux-text: #12263A;
  --oux-muted: #72828D;
  --oux-line: #DCE5E7;
  --oux-line-soft: #DCE5E7;
  --oux-blue: #22B8BB;
  --oux-blue-soft: #EAF8F7;
  --oux-red: #B6535E;
  --oux-green: #0A8B65;
  --oux-yellow: #E88945;
  --oux-cyan: #0D8E90;
  --oux-radius: 8px;
  --oux-shadow: 0 8px 22px rgba(16, 24, 40, .07);
  --oux-focus: 0 0 0 .18rem rgba(34, 184, 187, .16);
}

html[data-bs-theme="dark"] {
  --oux-bg: #07111e;
  --oux-surface: #0c1725;
  --oux-surface-alt: #111f31;
  --oux-text: #eef4ff;
  --oux-muted: #9aa9bd;
  --oux-line: rgba(154, 169, 189, .24);
  --oux-line-soft: rgba(154, 169, 189, .14);
  --oux-blue-soft: rgba(31, 94, 255, .14);
  --oux-shadow: 0 10px 26px rgba(0, 0, 0, .26);
}

body.lgb-ux-2026 {
  background: var(--oux-bg) !important;
  color: var(--oux-text);
  text-rendering: optimizeLegibility;
}

body.lgb-ux-2026 .content > .container-fluid {
  padding: 14px 16px 18px !important;
}

body.lgb-ux-2026 .content {
  min-width: 0;
}

body.lgb-ux-2026 .app-topbar.app-topbar-modern,
body.lgb-ux-2026 .sidebar {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
}

body.lgb-ux-2026 .app-topbar.app-topbar-modern {
  min-height: 58px;
}

body.lgb-ux-2026 .app-global-search {
  min-height: 36px;
}

body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link {
  min-height: 34px;
}

body.lgb-ux-2026 {
  --lgb-brand-navy: #17324a;
  --lgb-brand-blue: #5596c8;
  --lgb-brand-red: #c6472d;
  --lgb-brand-red-soft: #df5a43;
}

body.lgb-ux-2026 .lgb-brand-mark {
  --lgb-brand-mark-size: 38px;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline-flex;
  height: var(--lgb-brand-mark-size) !important;
  justify-content: center;
  overflow: visible;
  position: relative;
  width: var(--lgb-brand-mark-size) !important;
}

body.lgb-ux-2026 .lgb-brand-mark--sm {
  --lgb-brand-mark-size: 32px;
}

body.lgb-ux-2026 .lgb-brand-mark--lg {
  --lgb-brand-mark-size: 54px;
}

body.lgb-ux-2026 .lgb-brand-mark--hero {
  --lgb-brand-mark-size: 68px;
}

body.lgb-ux-2026 .lgb-brand-mark img {
  display: block;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .14));
  width: 100%;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .lgb-brand-mark img {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .28));
}

body.lgb-ux-2026 .lgb-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

body.lgb-ux-2026 .lgb-brand-wordmark {
  align-items: baseline;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .015em;
  line-height: .95;
  white-space: nowrap;
}

body.lgb-ux-2026 .lgb-brand-wordmark-log {
  color: var(--lgb-brand-navy);
}

body.lgb-ux-2026 .lgb-brand-wordmark-uber {
  color: var(--lgb-brand-blue);
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .lgb-brand-wordmark-log {
  color: #d7e8f7;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .lgb-brand-wordmark-uber {
  color: #77b7e6;
}

body.lgb-ux-2026 .lgb-brand-product {
  color: var(--oux-muted);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

body.lgb-ux-2026 .sidebar-brand {
  align-items: center;
  gap: .68rem;
}

body.lgb-ux-2026 .sidebar-brand-text {
  font-size: 1rem;
}

body.lgb-ux-2026 .app-topbar-brand {
  align-items: center;
  gap: .52rem;
}

body.lgb-ux-2026 .app-topbar-brand .lgb-brand-wordmark {
  font-size: .96rem;
}

body.lgb-ux-2026 .lgb-offcanvas-brand {
  align-items: center;
  display: inline-flex;
  gap: .55rem;
  margin: 0;
}

body.lgb-ux-2026 .sidebar-company-card {
  align-items: center;
}

body.lgb-ux-2026 .sidebar-company-icon.lgb-brand-mark {
  color: transparent !important;
  padding: 0;
}

body.lgb-ux-2026 .sidebar-footer-card {
  background:
    linear-gradient(135deg, rgba(198, 71, 45, .10), rgba(85, 150, 200, .12)),
    var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line-soft) !important;
  border-radius: var(--oux-radius) !important;
  color: var(--oux-muted);
  display: block !important;
  font-size: .74rem;
  line-height: 1.35;
  margin-top: .35rem;
  padding: .75rem;
}

body.lgb-ux-2026 .sidebar-footer-card strong {
  color: var(--oux-text);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .95rem;
  letter-spacing: .02em;
}

body.lgb-ux-2026 .lgb-dashboard-hero {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr) auto;
}

body.lgb-ux-2026 .lgb-dashboard-brand-card {
  background:
    linear-gradient(135deg, rgba(198, 71, 45, .08), rgba(85, 150, 200, .12)),
    var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line-soft) !important;
  border-radius: 8px !important;
  align-items: center;
  display: inline-flex;
  gap: .78rem;
  justify-content: flex-start;
  max-width: 310px;
  min-height: 78px;
  padding: .7rem .85rem;
}

body.lgb-ux-2026 .lgb-dashboard-brand-card .lgb-brand-wordmark {
  font-size: 1.18rem;
}

@media (max-width: 991.98px) {
  body.lgb-ux-2026 .lgb-dashboard-hero {
    grid-template-columns: 1fr;
  }

  body.lgb-ux-2026 .lgb-dashboard-brand-card {
    max-width: 220px;
  }
}

body.lgb-ux-2026 .lgb-page-head,
body.lgb-ux-2026 .card,
body.lgb-ux-2026 .lgb-panel,
body.lgb-ux-2026 .lgb-filter-bar,
body.lgb-ux-2026 .modal-content,
body.lgb-ux-2026 .accordion-item,
body.lgb-ux-2026 .list-group-item,
body.lgb-ux-2026 .dropdown-menu {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius) !important;
  box-shadow: var(--oux-shadow) !important;
}

body.lgb-ux-2026 .lgb-page-head {
  border-left: 4px solid var(--oux-blue) !important;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 14px;
}

body.lgb-ux-2026 .lgb-page-head.lgb-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr) auto;
}

@media (max-width: 991.98px) {
  body.lgb-ux-2026 .lgb-page-head.lgb-dashboard-hero {
    grid-template-columns: 1fr;
  }
}

body.lgb-ux-2026 .lgb-title,
body.lgb-ux-2026 .content h1 {
  color: var(--oux-text);
  font-size: clamp(1.22rem, 1.7vw, 1.75rem);
  letter-spacing: 0;
}

body.lgb-ux-2026 .lgb-title {
  font-weight: 800;
}

body.lgb-ux-2026 .content h1 {
  font-weight: 800;
}

body.lgb-ux-2026 .lgb-subtitle,
body.lgb-ux-2026 .text-body-secondary,
body.lgb-ux-2026 .text-muted,
body.lgb-ux-2026 .text-secondary {
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026 .lgb-kicker,
body.lgb-ux-2026 .form-label,
body.lgb-ux-2026 form label {
  color: var(--oux-muted);
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .045em;
}

body.lgb-ux-2026 .card-header,
body.lgb-ux-2026 .card-footer,
body.lgb-ux-2026 .accordion-button,
body.lgb-ux-2026 .modal-header,
body.lgb-ux-2026 .modal-footer,
body.lgb-ux-2026 .lgb-panel-head {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
}

body.lgb-ux-2026 .btn {
  border-radius: var(--oux-radius) !important;
  font-weight: 800;
}

body.lgb-ux-2026 .btn-success {
  background: var(--oux-green) !important;
  border-color: var(--oux-green) !important;
}

body.lgb-ux-2026 .btn-danger {
  background: var(--oux-red) !important;
  border-color: var(--oux-red) !important;
}

/* body.lgb-ux-2026 .form-control,
body.lgb-ux-2026 .form-select,
body.lgb-ux-2026 .input-group-text {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  border-radius: var(--oux-radius) !important;
  color: var(--oux-text) !important;
  min-height: 34px;
} */

body.lgb-ux-2026 .form-control:focus,
body.lgb-ux-2026 .form-select:focus {
  border-color: var(--oux-blue) !important;
  box-shadow: var(--oux-focus) !important;
}

body.lgb-ux-2026 .table-responsive {
  background: var(--oux-surface);
  border: 1px solid var(--oux-line);
  border-radius: var(--oux-radius);
  max-width: 100%;
  overflow: auto;
}

body.lgb-ux-2026 .table {
  color: var(--oux-text);
  font-size: .82rem;
  margin-bottom: 0;
}

body.lgb-ux-2026 .table thead th {
  background: var(--oux-surface-alt) !important;
  border-bottom: 1px solid var(--oux-line) !important;
  color: var(--oux-muted) !important;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 3;
}

body.lgb-ux-2026 .table tbody td {
  border-color: var(--oux-line-soft) !important;
  vertical-align: middle;
}

body.lgb-ux-2026 .table-hover > tbody > tr:hover > * {
  background: var(--oux-blue-soft) !important;
}

.lgb-workbench-bar {
  align-items: center;
  background: var(--oux-surface);
  border: 1px solid var(--oux-line);
  border-radius: var(--oux-radius);
  box-shadow: var(--oux-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 8px;
}

.lgb-workbench-title {
  align-items: center;
  color: var(--oux-muted);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.lgb-workbench-tools {
  align-items: center;
  display: flex;
  /* flex-wrap: wrap; */
  gap: 6px;
}

.lgb-table-search {
  max-width: min(280px, 70vw);
  min-height: 32px !important;
}

.lgb-density-compact .table > :not(caption) > * > * {
  padding-bottom: .28rem;
  padding-top: .28rem;
}

.lgb-density-relaxed .table > :not(caption) > * > * {
  padding-bottom: .62rem;
  padding-top: .62rem;
}

.lgb-processing-overlay {
  align-items: center;
  background: rgba(8, 15, 28, .62);
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .16s ease;
  z-index: 2000;
}

.lgb-processing-overlay.is-visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.lgb-processing-card {
  background: var(--oux-surface);
  border: 1px solid var(--oux-line);
  border-radius: var(--oux-radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  color: var(--oux-text);
  max-width: min(440px, calc(100vw - 32px));
  padding: 18px;
}

.lgb-processing-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.lgb-processing-card span {
  color: var(--oux-muted);
  display: block;
  font-size: .88rem;
}

.lgb-progress-line {
  background: var(--oux-line-soft);
  border-radius: 999px;
  height: 6px;
  margin-top: 14px;
  overflow: hidden;
}

.lgb-progress-line::before {
  animation: lgb-progress-run 1.15s ease-in-out infinite;
  background: var(--oux-blue);
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: 34%;
}

@keyframes lgb-progress-run {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

.lgb-inline-help {
  color: var(--oux-muted);
  font-size: .78rem;
}

.lgb-page-financeiro .lgb-page-head { border-left-color: var(--oux-green) !important; }
.lgb-page-averbacao .lgb-page-head { border-left-color: var(--oux-blue) !important; }
.lgb-page-romaneios .lgb-page-head,
.lgb-page-monitoramento .lgb-page-head { border-left-color: var(--oux-cyan) !important; }
.lgb-page-custos .lgb-page-head { border-left-color: var(--oux-yellow) !important; }

@media (max-width: 991.98px) {
  body.lgb-ux-2026 .lgb-page-head {
    grid-template-columns: 1fr;
  }

  body.lgb-ux-2026 .lgb-actions,
  .lgb-workbench-tools {
    justify-content: flex-start;
    width: 100%;
  }
}

/* Dark mode hardening: keep Bootstrap utilities, legacy layout CSS and app pages on one palette. */
html[data-bs-theme="dark"] body.lgb-ux-2026 {
  --bs-body-bg: var(--oux-bg);
  --bs-body-color: var(--oux-text);
  --bs-tertiary-bg: var(--oux-bg);
  --bs-secondary-bg: var(--oux-surface-alt);
  --bs-border-color: var(--oux-line);
  --bs-secondary-color: var(--oux-muted);
  background: var(--oux-bg) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .bg-body,
  .bg-body-tertiary,
  .bg-light,
  .bg-white,
  .text-bg-light,
  .card.bg-light,
  .card-header.bg-white,
  .card-footer.bg-white
) {
  background: var(--oux-surface) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .border,
  .border-top,
  .border-end,
  .border-bottom,
  .border-start,
  .dropdown-divider,
  hr
) {
  border-color: var(--oux-line) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .dropdown-item,
  .nav-link,
  .page-link,
  .accordion-button,
  .list-group-item,
  .modal-title,
  .offcanvas-title
) {
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .offcanvas,
  .offcanvas-header,
  .offcanvas-body,
  .dropdown-menu,
  .pagination .page-link,
  .alert,
  .toast
) {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .accordion-button:not(.collapsed),
  .dropdown-item:hover,
  .dropdown-item:focus,
  .page-link:hover,
  .page-link:focus
) {
  background: var(--oux-blue-soft) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .form-control,
  .form-select,
  .input-group-text,
  textarea,
  input[type="date"],
  input[type="datetime-local"],
  input[type="email"],
  input[type="file"],
  input[type="month"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  input[type="time"],
  input[type="url"],
  input[type="week"],
  select
) {
  background-color: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(.form-control, input[type="search"], input[type="text"], textarea)::placeholder {
  color: #7d8ca3 !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 select option {
  background: var(--oux-surface);
  color: var(--oux-text);
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--oux-text);
  --bs-table-border-color: var(--oux-line-soft);
  --bs-table-hover-bg: var(--oux-blue-soft);
  --bs-table-hover-color: var(--oux-text);
  --bs-table-striped-bg: rgba(154, 169, 189, .055);
  --bs-table-striped-color: var(--oux-text);
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(.table-light, .table-light > th, .table-light > td, .table thead th) {
  --bs-table-bg: var(--oux-surface-alt);
  --bs-table-color: var(--oux-muted);
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-muted) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .btn-light,
  .btn-outline-secondary,
  .btn-outline-dark
) {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .sheet-shell {
  background: #f3f2f1 !important;
  border: 1px solid #d6d3d1 !important;
  border-radius: var(--oux-radius) !important;
  display: block !important;
  gap: initial !important;
  padding: 14px !important;
}

body.lgb-ux-2026 .sheet-shell .sheet-actions {
  align-items: center;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.lgb-ux-2026 .sheet-shell .sheet-actions form {
  display: inline-flex !important;
  margin: 0 !important;
}

body.lgb-ux-2026 .sheet-shell #upload-to-db-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 150px;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .sheet-shell {
  background: #091321 !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .sheet-title,
  .sheet-cell-ref,
  .sheet-name-badge,
  .sheet-formula-input,
  .sheet-filter-input,
  .sheet-input
) {
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .sheet-subtitle,
  .sheet-source,
  .sheet-connection,
  .sheet-filter-status,
  .sheet-sync-status
) {
  color: var(--oux-muted) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(
  .sheet-toolbar,
  .sheet-filter-bar,
  .sheet-grid-wrap,
  .sheet-tab,
  .sheet-name-badge,
  .sheet-cell-ref,
  .sheet-formula-input,
  .sheet-filter-input,
  .sheet-monitor-filter
) {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(.sheet-grid th, .sheet-grid td) {
  border-color: var(--oux-line-soft) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 :is(.sheet-grid thead th, .sheet-grid .row-header) {
  background: var(--oux-surface-alt) !important;
  color: var(--oux-muted) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .sheet-input {
  background: #0a1524 !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .sheet-input:focus {
  box-shadow: inset 0 0 0 2px var(--oux-blue) !important;
}

/* Palette refresh: calmer light mode and softer dark mode for long operational sessions. */
:root {
  --oux-bg: #f6f8fb;
  --oux-surface: #FFFFFF;
  --oux-surface-alt: #f1f5f9;
  --oux-text: #12263A;
  --oux-muted: #65748a;
  --oux-line: #dfe6ef;
  --oux-line-soft: #edf1f6;
  --oux-blue: #2f67d8;
  --oux-blue-hover: #285abd;
  --oux-blue-soft: #EAF8F7;
  --oux-red: #c94138;
  --oux-green: #248761;
  --oux-yellow: #a96a1d;
  --oux-cyan: #167d92;
  --oux-shadow: 0 8px 18px rgba(23, 32, 51, .055);
  --oux-focus: 0 0 0 .18rem rgba(47, 103, 216, .16);
  --bs-primary: var(--oux-blue);
  --bs-primary-rgb: 47, 103, 216;
  --bs-body-bg: var(--oux-bg);
  --bs-body-color: var(--oux-text);
  --bs-tertiary-bg: var(--oux-bg);
  --bs-border-color: var(--oux-line);
  --lgb-bg: var(--oux-bg);
  --lgb-surface: var(--oux-surface);
  --lgb-surface-2: var(--oux-surface-alt);
  --lgb-text: var(--oux-text);
  --lgb-muted: var(--oux-muted);
  --lgb-line: var(--oux-line);
  --lgb-line-soft: var(--oux-line-soft);
  --lgb-blue: var(--oux-blue);
  --lgb-blue-2: var(--oux-blue-hover);
  --lgb-red: var(--oux-red);
  --lgb-green: var(--oux-green);
  --lgb-yellow: var(--oux-yellow);
  --lgb-cyan: var(--oux-cyan);
  --lgb-shadow: var(--oux-shadow);
  --lgb-shadow-soft: var(--oux-shadow);
  --modern-bg: var(--oux-bg);
  --modern-surface: rgba(255, 255, 255, .94);
  --modern-surface-solid: var(--oux-surface);
  --modern-line: rgba(23, 32, 51, .10);
  --modern-text: var(--oux-text);
  --modern-muted: var(--oux-muted);
  --modern-primary: var(--oux-blue);
  --modern-primary-dark: var(--oux-blue-hover);
  --modern-red: var(--oux-red);
  --modern-green: var(--oux-green);
  --modern-orange: var(--oux-yellow);
  --modern-soft-blue: var(--oux-blue-soft);
  --modern-shadow: var(--oux-shadow);
  --modern-shadow-sm: var(--oux-shadow);
  --app-bg-dark: #111722;
  --app-bg-dark-2: #171f2d;
  --app-surface-dark: rgba(24, 32, 45, .94);
  --app-surface-dark-solid: #18202d;
  --app-line-dark: rgba(176, 186, 201, .18);
  --app-text-dark: #eef3f9;
  --app-muted-dark: #a9b4c4;
  --app-shadow-dark: 0 12px 28px rgba(0, 0, 0, .28);
}

html[data-bs-theme="dark"] {
  --oux-bg: #111722;
  --oux-surface: #18202d;
  --oux-surface-alt: #202939;
  --oux-text: #eef3f9;
  --oux-muted: #a9b4c4;
  --oux-line: rgba(176, 186, 201, .20);
  --oux-line-soft: rgba(176, 186, 201, .11);
  --oux-blue: #77a6ff;
  --oux-blue-hover: #9bbdff;
  --oux-blue-soft: rgba(119, 166, 255, .14);
  --oux-red: #ff8a81;
  --oux-green: #67c79c;
  --oux-yellow: #e1aa5c;
  --oux-cyan: #64c6d7;
  --oux-shadow: 0 12px 28px rgba(0, 0, 0, .28);
  --oux-focus: 0 0 0 .18rem rgba(119, 166, 255, .20);
  --bs-primary: #77a6ff;
  --bs-primary-rgb: 119, 166, 255;
  --bs-body-bg: var(--oux-bg);
  --bs-body-color: var(--oux-text);
  --bs-tertiary-bg: var(--oux-bg);
  --bs-border-color: var(--oux-line);
  --bs-secondary-color: var(--oux-muted);
  --lgb-bg: var(--oux-bg);
  --lgb-surface: var(--oux-surface);
  --lgb-surface-2: var(--oux-surface-alt);
  --lgb-text: var(--oux-text);
  --lgb-muted: var(--oux-muted);
  --lgb-line: var(--oux-line);
  --lgb-line-soft: var(--oux-line-soft);
  --lgb-blue: var(--oux-blue);
  --lgb-blue-2: var(--oux-blue-hover);
  --lgb-red: var(--oux-red);
  --lgb-green: var(--oux-green);
  --lgb-yellow: var(--oux-yellow);
  --lgb-cyan: var(--oux-cyan);
  --modern-bg: var(--oux-bg);
  --modern-surface: rgba(24, 32, 45, .94);
  --modern-surface-solid: var(--oux-surface);
  --modern-line: var(--oux-line);
  --modern-text: var(--oux-text);
  --modern-muted: var(--oux-muted);
  --modern-primary: var(--oux-blue);
  --modern-primary-dark: var(--oux-blue-hover);
  --modern-red: var(--oux-red);
  --modern-green: var(--oux-green);
  --modern-orange: var(--oux-yellow);
  --modern-soft-blue: var(--oux-blue-soft);
  --modern-shadow: var(--oux-shadow);
  --modern-shadow-sm: var(--oux-shadow);
}

body.lgb-ux-2026,
html[data-bs-theme="dark"] body.lgb-ux-2026,
body.lgb-ux-2026.bg-body-tertiary,
html[data-bs-theme="dark"] body.lgb-ux-2026.bg-body-tertiary {
  background: var(--oux-bg) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .app-topbar.app-topbar-modern,
body.lgb-ux-2026 .sidebar {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .app-topbar.app-topbar-modern,
html[data-bs-theme="dark"] body.lgb-ux-2026 .sidebar {
  background: #151d29 !important;
}

body.lgb-ux-2026 .app-global-search,
body.lgb-ux-2026 .sidebar-company-card,
body.lgb-ux-2026 .sidebar-section-toggle,
body.lgb-ux-2026 .lgb-workbench-bar {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .app-global-search input,
body.lgb-ux-2026 .sidebar-brand-text,
body.lgb-ux-2026 .app-user-name,
body.lgb-ux-2026 .sidebar-profile-name {
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .app-global-search input::placeholder {
  color: var(--oux-muted) !important;
}

/* body.lgb-ux-2026 :is(
  .sidebar-company-icon,
  .sidebar .sidebar-nav-link.nav-link.active,
  .sidebar .sidebar-nav-link.nav-link[aria-current="page"],
  .lgb-page-head
) {
  box-shadow: none !important;
} */

body.lgb-ux-2026 .sidebar-company-icon {
  background: var(--oux-blue-soft) !important;
  color: var(--oux-blue) !important;
}

body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link {
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link i,
body.lgb-ux-2026 .sidebar-section-label,
body.lgb-ux-2026 .sidebar-profile-role,
body.lgb-ux-2026 .app-user-role {
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link:hover {
  background: var(--oux-blue-soft) !important;
  color: var(--oux-blue) !important;
}

body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link.active,
body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link[aria-current="page"] {
  background: var(--oux-blue-soft) !important;
  border-color: transparent !important;
  box-shadow: inset 3px 0 0 var(--oux-blue) !important;
  color: var(--oux-blue) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link.active,
html[data-bs-theme="dark"] body.lgb-ux-2026 .sidebar .sidebar-nav-link.nav-link[aria-current="page"] {
  background: rgba(119, 166, 255, .16) !important;
  color: #cfe0ff !important;
}

body.lgb-ux-2026 :is(
  .lgb-page-head,
  .card,
  .lgb-panel,
  .lgb-filter-bar,
  .modal-content,
  .accordion-item,
  .list-group-item,
  .dropdown-menu,
  .card-glass,
  .summary-card,
  .chart-card,
  .fin-stat,
  .app-module-link
) {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
  box-shadow: var(--oux-shadow) !important;
}

body.lgb-ux-2026 :is(.card-header, .card-footer, .accordion-button, .modal-header, .modal-footer, .lgb-panel-head) {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 :is(
  .form-control,
  .form-select,
  .input-group-text,
  .page-link,
  .dropdown-item
) {
  background-color: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 :is(.form-control, .form-select):focus {
  border-color: var(--oux-blue) !important;
  box-shadow: var(--oux-focus) !important;
}

body.lgb-ux-2026 .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--oux-text);
  --bs-table-border-color: var(--oux-line-soft);
  --bs-table-hover-bg: var(--oux-blue-soft);
  --bs-table-hover-color: var(--oux-text);
  --bs-table-striped-bg: rgba(101, 116, 138, .055);
  --bs-table-striped-color: var(--oux-text);
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .table thead th,
body.lgb-ux-2026 :is(.table-light, .table-light > th, .table-light > td) {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026 .app-logout-btn.btn {
  background: var(--oux-blue) !important;
  border-color: var(--oux-blue) !important;
  color: #ffffff !important;
}

body.lgb-ux-2026 .btn-success {
  background: var(--oux-green) !important;
  border-color: var(--oux-green) !important;
}

body.lgb-ux-2026 .btn-danger {
  background: var(--oux-red) !important;
  border-color: var(--oux-red) !important;
}

body.lgb-ux-2026 :is(.btn-outline-secondary, .btn-light, .btn-outline-dark) {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .content .btn-outline-primary {
  --bs-btn-color: var(--oux-blue);
  --bs-btn-border-color: var(--oux-blue);
  --bs-btn-hover-color: var(--oux-blue);
  --bs-btn-hover-bg: var(--oux-blue-soft);
  --bs-btn-hover-border-color: var(--oux-blue);
  --bs-btn-active-color: var(--oux-blue);
  --bs-btn-active-bg: var(--oux-blue-soft);
  --bs-btn-active-border-color: var(--oux-blue);
  --bs-btn-disabled-color: var(--oux-blue);
}

body.lgb-ux-2026 .content .btn-outline-danger {
  --bs-btn-color: var(--oux-red);
  --bs-btn-border-color: var(--oux-red);
  --bs-btn-hover-color: var(--oux-red);
  --bs-btn-hover-bg: #fff0ef;
  --bs-btn-hover-border-color: var(--oux-red);
  --bs-btn-active-color: var(--oux-red);
  --bs-btn-active-bg: #fff0ef;
  --bs-btn-active-border-color: var(--oux-red);
  --bs-btn-disabled-color: var(--oux-red);
}

body.lgb-ux-2026 .app-theme-toggle,
body.lgb-ux-2026 .app-theme-toggle.is-dark,
html[data-bs-theme="dark"] body.lgb-ux-2026 .app-theme-toggle {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-blue) !important;
}

body.lgb-ux-2026 :is(.text-muted, .text-secondary, .text-body-secondary, .form-text, .lgb-subtitle, .page-subtitle) {
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026 .badge.text-bg-success,
body.lgb-ux-2026 :is(.status-pill.on, .status-badge.ok, .badge-soft.ok, .ds-status-ok) {
  background: rgba(36, 135, 97, .12) !important;
  border-color: rgba(36, 135, 97, .24) !important;
  color: var(--oux-green) !important;
}

body.lgb-ux-2026 .badge.text-bg-danger,
body.lgb-ux-2026 :is(.status-pill.off, .status-badge.danger, .badge-soft.danger, .ds-status-erro) {
  background: rgba(201, 65, 56, .12) !important;
  border-color: rgba(201, 65, 56, .24) !important;
  color: var(--oux-red) !important;
}

body.lgb-ux-2026 .badge.text-bg-warning,
body.lgb-ux-2026 :is(.ds-status-alerta) {
  background: rgba(169, 106, 29, .14) !important;
  border-color: rgba(169, 106, 29, .26) !important;
  color: var(--oux-yellow) !important;
}

body.lgb-ux-2026 .badge.text-bg-primary,
body.lgb-ux-2026 :is(.ds-status-rota) {
  background: var(--oux-blue-soft) !important;
  border-color: rgba(47, 103, 216, .22) !important;
  color: var(--oux-blue) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .badge.text-bg-success,
html[data-bs-theme="dark"] body.lgb-ux-2026 :is(.status-pill.on, .status-badge.ok, .badge-soft.ok, .ds-status-ok) {
  background: rgba(103, 199, 156, .14) !important;
  border-color: rgba(103, 199, 156, .28) !important;
}



html[data-bs-theme="dark"] body.lgb-ux-2026 .sheet-shell {
  background: #131b27 !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 .sheet-input {
  background: #151f2d !important;
}

/* Unified operational standard
   Keeps spreadsheet-like pages isolated while bringing legacy screens into the
   same visual rhythm as the modern LoguberSys pages. */
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content > .container-fluid {
  max-width: 1720px;
  padding-inline: clamp(.85rem, 1.4vw, 1.5rem);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-page-head,
  .page-head,
  .page-header,
  .pag-header,
  .fin-header,
  .crud-header,
  .monitor-header,
  .consulta-header,
  .dashboard-header
) {
  align-items: flex-start;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content > .container-fluid > .d-flex:first-child:not(form),
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content > .container-fluid > :is(div, section):not(.card):not(.lgb-panel) > .d-flex:first-child:not(form) {
  align-items: flex-start !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  gap: 1rem !important;
  margin-bottom: 1rem !important;
  padding: clamp(1rem, 1.6vw, 1.35rem) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content > .container-fluid > .d-flex:first-child:not(form) > .d-flex:last-child,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content > .container-fluid > :is(div, section):not(.card):not(.lgb-panel) > .d-flex:first-child:not(form) > .d-flex:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-kicker,
  .page-kicker,
  .pag-kicker,
  .fin-kicker,
  .crud-kicker,
  .eyebrow,
  .section-kicker
) {
  color: var(--oux-blue) !important;
  display: block;
  font-size: .72rem;
  font-weight: 600;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-title,
  .page-title,
  .pag-title,
  .fin-title,
  .crud-title,
  h1
) {
  color: var(--oux-text) !important;
  font-size: clamp(1.28rem, 1.75vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-title {
  font-weight: 800;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-subtitle,
  .page-subtitle,
  .pag-subtitle,
  .fin-subtitle,
  .crud-subtitle,
  .lead
) {
  color: var(--oux-muted) !important;
  font-size: .92rem;
  line-height: 1.45;
  margin: .35rem 0 0;
  max-width: 72rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-actions,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.page-actions, .pag-actions, .fin-actions, .crud-actions, .action-row, .actions) {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: flex-end;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-panel,
  .card,
  .panel,
  .box,
  .crud-panel,
  .fin-panel,
  .pag-panel,
  .monitor-panel,
  .summary-card,
  .chart-card,
  .metric-card,
  .kpi-card,
  .stat-card,
  .filter-card,
  .av-filter-card,
  .search-card
) {
  /* background: var(--oux-surface) !important; */
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.lgb-panel, .card, .panel, .box, .crud-panel, .fin-panel, .pag-panel, .monitor-panel) {
  margin-bottom: 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-panel-head,
  .card-header,
  .panel-heading,
  .panel-header,
  .crud-panel-head,
  .fin-panel-head,
  .pag-panel-head
) {
  align-items: center;
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: space-between;
  padding: .85rem 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lgb-panel-title,
  .card-title,
  .panel-title,
  .section-title,
  h2,
  h3
) {
  color: var(--oux-text) !important;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .card .card,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-panel .lgb-panel,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .card .lgb-panel,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-panel .card {
  background: var(--oux-surface-alt) !important;
  box-shadow: none !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.lgb-filter-bar, .filter-card, .av-filter-card, .search-card) {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .9rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.lgb-filter-bar, .filter-card, .av-filter-card, .search-card) > * {
  min-width: min(100%, 12rem);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.form-label, label) {
  color: var(--oux-muted) !important;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: .3rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .form-control,
  .form-select,
  .input-group-text
) {
  border-radius: var(--oux-radius-sm) !important;
  min-height: 2.35rem;
  width: 100%;
  margin-right: auto;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content textarea.form-control {
  min-height: 5.5rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-inline-observation {
  max-width: 12rem;
  min-width: 10rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .form-check-input {
  background-color: var(--oux-surface);
  border-color: var(--oux-line);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .form-check-input:checked {
  background-color: var(--oux-blue);
  border-color: var(--oux-blue);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .btn {
  align-items: center;
  border-radius: var(--oux-radius-sm) !important;
  display: inline-flex;
  font-weight: 800;
  gap: .35rem;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 2.25rem;
  padding: .48rem .82rem;
  white-space: normal;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .btn-sm {
  font-size: .8rem;
  min-height: 1.95rem;
  padding: .33rem .58rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .btn-lg {
  min-height: 2.75rem;
  padding: .68rem 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .btn i.bi {
  font-size: 1em;
  line-height: 1;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.btn-warning, .btn-outline-warning) {
  color: #1f2937 !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.btn-warning, .btn-outline-warning) {
  color: #93370d !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .table-responsive {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  margin-bottom: 1rem;
  overflow: auto;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .table-responsive > .table {
  margin-bottom: 0 !important;
  min-width: 350px;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table {
  border-color: var(--oux-line-soft) !important;
  font-size: .86rem;
  line-height: 1.35;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table :is(th, td) {
  border-color: var(--oux-line-soft) !important;
  max-width: 22rem;
  overflow-wrap: anywhere;
  padding: .58rem .7rem;
  vertical-align: middle;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table thead :is(th, td) {
  background: var(--oux-surface-alt) !important;
  border-bottom: 1px solid var(--oux-line) !important;
  color: var(--oux-muted) !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table tbody tr:last-child > * {
  border-bottom-width: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table :is(.text-nowrap, [nowrap]) {
  overflow-wrap: normal;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table td:last-child :is(.btn, .btn-group) {
  margin-block: .1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content tbody tr:only-child td[colspan],
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .empty-state,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-empty {
  color: var(--oux-muted) !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.alert, .pagination, .list-group, .accordion, .nav-tabs) {
  margin-bottom: 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .alert {
  border-color: var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .page-link {
  align-items: center;
  border-radius: var(--oux-radius-sm) !important;
  display: inline-flex;
  min-height: 2.1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .modal-content {
  border-radius: var(--oux-radius-lg) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .badge,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.status-pill, .status-badge, .badge-soft) {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  padding: .28rem .55rem;
}

@media (max-width: 767.98px) {
  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
    .lgb-page-head,
    .page-head,
    .page-header,
    .pag-header,
    .fin-header,
    .crud-header,
    .monitor-header,
    .consulta-header,
    .dashboard-header
  ) {
    display: grid;
    gap: .8rem;
  }

  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-actions,
  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.page-actions, .pag-actions, .fin-actions, .crud-actions, .action-row, .actions) {
    justify-content: flex-start;
  }

  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.lgb-filter-bar, .filter-card, .av-filter-card, .search-card) {
    align-items: stretch;
    display: grid;
  }

  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .table-responsive > .table {
    min-width: 680px;
  }
}

/* Legacy standalone pages that cannot safely inherit core/base.html yet. */
body.lgb-ux-2026.lgb-legacy-page {
  background: var(--oux-bg) !important;
  color: var(--oux-text) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.lgb-ux-2026.lgb-legacy-page .navbar {
  background: var(--oux-surface) !important;
  border-bottom: 1px solid var(--oux-line);
  box-shadow: var(--oux-shadow);
}

body.lgb-ux-2026.lgb-legacy-page .navbar-brand,
body.lgb-ux-2026.lgb-legacy-page .navbar-nav .nav-link,
body.lgb-ux-2026.lgb-legacy-page .menu-hamburguer {
  color: var(--oux-text) !important;
}

body.lgb-ux-2026.lgb-legacy-page .sidebar {
  background: var(--oux-surface) !important;
  border-right: 1px solid var(--oux-line);
  box-shadow: var(--oux-shadow);
}

body.lgb-ux-2026.lgb-legacy-page .sidebar a {
  color: var(--oux-text) !important;
}

body.lgb-ux-2026.lgb-legacy-page .sidebar a:hover {
  background: var(--oux-blue-soft) !important;
  color: var(--oux-blue) !important;
}

body.lgb-ux-2026.lgb-legacy-page .container,
body.lgb-ux-2026.lgb-legacy-page .container-fluid {
  max-width: 1720px;
  padding-inline: clamp(.85rem, 1.4vw, 1.5rem);
}

body.lgb-ux-2026.lgb-legacy-page .lgb-page-head {
  align-items: flex-start;
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

body.lgb-ux-2026.lgb-legacy-page :is(.lgb-kicker, .lgb-subtitle) {
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026.lgb-legacy-page .lgb-kicker {
  color: var(--oux-blue) !important;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

body.lgb-ux-2026.lgb-legacy-page .lgb-title {
  color: var(--oux-text) !important;
  font-size: clamp(1.28rem, 1.75vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

body.lgb-ux-2026.lgb-legacy-page .dataTables_wrapper {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line);
  border-radius: var(--oux-radius-lg);
  box-shadow: var(--oux-shadow);
  color: var(--oux-text) !important;
  padding: 1rem;
}

body.lgb-ux-2026.lgb-legacy-page :is(.dataTables_filter input, .dataTables_length select, .form-control, .form-select) {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  border-radius: var(--oux-radius-sm) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026.lgb-legacy-page :is(.dataTables_info, .dataTables_length, .dataTables_filter, .dataTables_paginate) {
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026.lgb-legacy-page table.dataTable,
body.lgb-ux-2026.lgb-legacy-page .lgb-table {
  background: transparent !important;
  border-color: var(--oux-line-soft) !important;
  color: var(--oux-text) !important;
  font-size: .86rem;
}

body.lgb-ux-2026.lgb-legacy-page table.dataTable thead :is(th, td),
body.lgb-ux-2026.lgb-legacy-page .lgb-table thead :is(th, td) {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-muted) !important;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.lgb-ux-2026.lgb-legacy-page table.dataTable tbody :is(th, td),
body.lgb-ux-2026.lgb-legacy-page .lgb-table tbody :is(th, td) {
  background: transparent !important;
  border-color: var(--oux-line-soft) !important;
  color: var(--oux-text) !important;
  vertical-align: middle;
}

body.lgb-ux-2026.lgb-legacy-page table.dataTable tbody tr:hover > * {
  background: var(--oux-blue-soft) !important;
}

body.lgb-ux-2026.lgb-legacy-page .paginate_button {
  border-radius: var(--oux-radius-sm) !important;
}

/* Core / Averbacao */
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-page {
  color: var(--oux-text);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-page * {
  letter-spacing: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-hero {
  align-items: flex-start;
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  margin-bottom: 1rem;
  overflow: visible;
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-kicker {
  color: var(--oux-blue) !important;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-title {
  color: var(--oux-text) !important;
  font-size: clamp(1.28rem, 1.75vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-title span {
  color: var(--oux-blue) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-subtitle {
  color: var(--oux-muted) !important;
  font-size: .92rem;
  line-height: 1.45;
  margin-top: .35rem;
  max-width: 72rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) :is(.av-status-grid, .av-hero .d-flex, .av-panel-header) {
  gap: .5rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-toolbar {
  align-items: center;
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding: .55rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-toolbar a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--oux-radius-sm);
  color: var(--oux-text) !important;
  display: inline-flex;
  font-size: .86rem;
  font-weight: 800;
  gap: .35rem;
  min-height: 2.25rem;
  padding: .48rem .82rem;
  text-decoration: none;
  white-space: nowrap;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-toolbar a:hover,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-toolbar a.active {
  background: var(--oux-blue) !important;
  border-color: var(--oux-blue) !important;
  color: #fff !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) :is(.av-panel, .av-metric, .av-file-section, .av-diagnostic details) {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) :is(.av-panel, .av-file-section, .av-diagnostic details) {
  margin-bottom: 1rem;
  overflow: hidden;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-metric {
  height: 100%;
  padding: 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-metric-icon {
  align-items: center;
  background: var(--oux-blue-soft) !important;
  border-radius: var(--oux-radius-sm);
  color: var(--oux-blue) !important;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2.5rem;
  justify-content: center;
  margin-bottom: .8rem;
  width: 2.5rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-metric-label,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-form-label {
  color: var(--oux-muted) !important;
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-metric-value {
  color: var(--oux-text) !important;
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-metric-note,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-panel-help,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-desc,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-path {
  color: var(--oux-muted) !important;
  font-size: .8rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-panel-header {
  align-items: center;
  background: var(--oux-surface-alt) !important;
  border-bottom: 1px solid var(--oux-line) !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: .9rem 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-panel-title {
  color: var(--oux-text) !important;
  font-size: clamp(1rem, 1.1vw, 1.18rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-panel-body {
  padding: 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-filter-card {
  background: var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: none !important;
  padding: .9rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-pill {
  align-items: center;
  background: var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: 999px;
  color: var(--oux-text) !important;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 800;
  gap: .35rem;
  padding: .32rem .62rem;
  white-space: nowrap;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-pill-success {
  background: rgba(36, 135, 97, .12) !important;
  border-color: rgba(36, 135, 97, .24) !important;
  color: var(--oux-green) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-pill-warning {
  background: rgba(169, 106, 29, .14) !important;
  border-color: rgba(169, 106, 29, .26) !important;
  color: var(--oux-yellow) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-section-chip {
  border-radius: 999px !important;
  font-size: .8rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-section summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
  padding: .9rem 1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-section summary::-webkit-details-marker {
  display: none;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-icon {
  align-items: center;
  background: var(--oux-blue-soft) !important;
  border-radius: var(--oux-radius-sm);
  color: var(--oux-blue) !important;
  display: inline-flex;
  font-size: 1rem;
  height: 2.3rem;
  justify-content: center;
  width: 2.3rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-title,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-name {
  color: var(--oux-text) !important;
  font-weight: 800;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-table-scroll {
  border-top: 1px solid var(--oux-line);
  max-height: 560px;
  overflow: auto;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-empty {
  color: var(--oux-muted) !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-diagnostic summary {
  color: var(--oux-text) !important;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .av-file-section summary {
    align-items: flex-start;
    grid-template-columns: auto minmax(0, 1fr);
  }
}

/* Active template families still using local class systems. */
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-title-band,
  .custos-header,
  .status-hero,
  .validacao-hero
) {
  align-items: flex-start !important;
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: clamp(1rem, 1.6vw, 1.35rem) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-title-band,
  .custos-header,
  .status-hero,
  .validacao-hero
)::before,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-title-band,
  .custos-header,
  .status-hero,
  .validacao-hero
)::after {
  display: none !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-title-band h1,
  .roteiro-page h1,
  .custos-header h1,
  .status-title,
  .validacao-title
) {
  color: var(--oux-text) !important;
  font-size: clamp(1.28rem, 1.75vw, 1.9rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-subtitle,
  .custos-header .subtitle,
  .status-subtitle,
  .validacao-subtitle
) {
  color: var(--oux-muted) !important;
  font-size: .92rem !important;
  line-height: 1.45 !important;
  margin-top: .35rem !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-filter,
  .custos-toolbar,
  .custos-global-search,
  .status-filter-card,
  .pendentes-toolbar,
  .pm-table-filter,
  .ocr-toolbar-label
) {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  margin-bottom: 1rem !important;
  padding: .9rem !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-table-wrap,
  .custos-card,
  .custos-table-wrap,
  .status-chart-card,
  .status-table-card,
  .validacao-card,
  .validacao-filter-card,
  .validacao-chart-card,
  .validacao-table-card,
  .cadastro-card,
  .lac-card,
  .lac-consulta-card,
  .lac-cancel-card,
  .lac-confirm-card,
  .lac-anexo-card,
  .gaveta-box,
  .tempo-card,
  .tempo-table,
  .pm-chart-box,
  .ocr-table-wrap,
  .registros-card
) {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-metric,
  .status-kpi-card,
  .validacao-kpi-card,
  .tempo-metric,
  .lac-metric,
  .lac-cancel-metric,
  .ocr-kpi,
  .lgb-kpi,
  .desc-cancel-metric,
  .rateio-kpi
) {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
  height: 100%;
  padding: 1rem !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .metric-label,
  .roteiro-metric .label,
  .status-kpi-label,
  .validacao-kpi-label,
  .tempo-card .label,
  .tempo-metric .label,
  .lac-metric .label,
  .lac-cancel-metric .label,
  .ocr-kpi .label,
  .lgb-kpi-label
) {
  color: var(--oux-muted) !important;
  display: block;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .metric-value,
  .roteiro-metric .value,
  .status-kpi-value,
  .validacao-kpi-value,
  .tempo-card .value,
  .tempo-metric .value,
  .lac-metric .value,
  .lac-cancel-metric .value,
  .ocr-kpi .value,
  .lgb-kpi-value
) {
  color: var(--oux-text) !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  margin: .25rem 0 0 !important;
  overflow-wrap: anywhere;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .status-kpi-icon,
  .validacao-kpi-icon,
  .tempo-chip,
  .tempo-chip-1,
  .tempo-chip-2,
  .tempo-chip-action,
  .tempo-chip-late,
  .tempo-chip-none,
  .tempo-chip-same
) {
  align-items: center;
  background: var(--oux-blue-soft) !important;
  border: 1px solid rgba(47, 103, 216, .18) !important;
  border-radius: 999px !important;
  color: var(--oux-blue) !important;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 600;
  gap: .35rem;
  padding: .28rem .55rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .status-chip,
  .pendentes-status-badge,
  .status-badge,
  .status-pill
) {
  border: 1px solid var(--oux-line) !important;
  border-radius: 999px !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  padding: .28rem .55rem !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.status-subiu, .ocr-kpi-ok, .ocr-row-ok) {
  background: rgba(36, 135, 97, .12) !important;
  color: var(--oux-green) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.status-nao-subiu, .ocr-kpi-divergente, .ocr-row-divergente) {
  background: rgba(201, 65, 56, .12) !important;
  color: var(--oux-red) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.status-pendente, .status-processando, .ocr-kpi-sem-monitoramento, .ocr-row-sem-monitoramento) {
  background: rgba(169, 106, 29, .14) !important;
  color: var(--oux-yellow) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .form-pane,
  .lac-pane,
  .tipologia-card,
  .nu-group,
  .gaveta-upload
) {
  background: var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-lg) !important;
  box-shadow: none !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .cadastro-tabs .nav-link,
  .page-nav .btn,
  .tipologia-toggle
) {
  background: var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: 8px !important;
  color: var(--oux-text) !important;
  box-shadow: none !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .cadastro-tabs .nav-link.active,
  .page-nav .btn.active,
  .tipologia-toggle.active
) {
  background: var(--oux-blue) !important;
  border-color: var(--oux-blue) !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026[data-page-path*="/faturamentos/prestacao/controle-senhas/"] .content .controle-senhas-status-nota {
  background: transparent !important;
  color: var(--oux-red) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .readonly-box,
  .readonly-field
) {
  background: var(--oux-surface-alt) !important;
  color: var(--oux-muted) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lookup-menu,
  .motorista-lista
) {
  background: var(--oux-surface) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-sm) !important;
  box-shadow: var(--oux-shadow) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .lookup-item:hover,
  .lookup-item.active,
  .motorista-item:hover,
  .motorista-item.active
) {
  background: var(--oux-blue-soft) !important;
  color: var(--oux-blue) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-table,
  .custos-table,
  .painel-envio-table,
  .monitor-table,
  .pm-table-compact,
  .tempo-table,
  .ocr-table,
  .status-table-card table,
  .validacao-table-card table
) {
  --bs-table-bg: transparent;
  --bs-table-color: var(--oux-text);
  --bs-table-border-color: var(--oux-line-soft);
  --bs-table-hover-bg: var(--oux-blue-soft);
  color: var(--oux-text) !important;
  font-size: .86rem !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-table,
  .custos-table,
  .painel-envio-table,
  .monitor-table,
  .pm-table-compact,
  .tempo-table,
  .ocr-table,
  .status-table-card table,
  .validacao-table-card table
) thead :is(th, td) {
  background: var(--oux-surface-alt) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-muted) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .roteiro-empty,
  .av-empty,
  .ocr-empty
) {
  color: var(--oux-muted) !important;
  padding: 2rem 1rem !important;
  text-align: center !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
  .hist-preview,
  .monitor-log,
  .tempo-sample
) {
  background: var(--oux-surface-alt) !important;
  border: 1px solid var(--oux-line) !important;
  border-radius: var(--oux-radius-sm) !important;
  color: var(--oux-text) !important;
}

@media (max-width: 767.98px) {
  body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(
    .roteiro-title-band,
    .custos-header,
    .status-hero,
    .validacao-hero
  ) {
    display: grid;
  }
}

/* Cost listing table: keep many-column DataTables pages inside column bounds. */
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table {
  table-layout: fixed !important;
  width: 1709px !important;
  min-width: 1709px !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-id { width: 64px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-nome { width: 190px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-placa { width: 92px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-tipologia { width: 115px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-data { width: 96px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-valor { width: 96px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-status { width: 110px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-operacao { width: 130px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-insercao { width: 150px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-status-lancamento { width: 130px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-ativo { width: 72px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-lancado { width: 120px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-observacao { width: 240px; }
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table col.custo-col-acao { width: 104px; }

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table :is(th, td) {
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table thead :is(th, td) {
  white-space: normal !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table tbody td {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table tbody td:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(10), :nth-child(11), :nth-child(14)) {
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table :is(.form-select, .form-control, .btn) {
  max-width: 100%;
  min-width: 0 !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .col-nome,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .col-observacao,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .col-data-insercao,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .status-lancamento,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .action-cell,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .action-header {
  max-width: none !important;
  min-width: 0 !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .action-cell,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) #custoTable.lgb-costs-table .action-header {
  background: var(--oux-surface) !important;
  box-shadow: -1px 0 0 var(--oux-line) !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .dataTables_scrollHead #custoTable.lgb-costs-table,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .dataTables_scrollBody #custoTable.lgb-costs-table {
  margin-bottom: 0 !important;
}

/* UIX operational table utilities: predictable columns, no overflow outside panels. */
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .table-responsive {
  max-width: 100%;
  overscroll-behavior-x: contain;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .table-responsive > :is(.table, table) {
  width: 100%;
  max-width: none;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table :is(th, td) {
  min-width: 0;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-id {
  max-width: 9.5rem;
  min-width: 5.25rem;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-date {
  max-width: 9.25rem;
  min-width: 6.5rem;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-money {
  max-width: 9.5rem;
  min-width: 6.25rem;
  text-align: right;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-status {
  max-width: 12rem;
  min-width: 7rem;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-actions {
  max-width: 13rem;
  min-width: 7.5rem;
  text-align: right;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-actions :is(.btn, .btn-group) {
  margin: .1rem;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-table .lgb-col-text {
  max-width: 24rem;
  min-width: 10rem;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content :is(.lgb-text-truncate, .lgb-table .lgb-col-text > span) {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-cell-wrap {
  overflow-wrap: anywhere;
  white-space: normal !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-cell-nowrap {
  overflow-wrap: normal !important;
  white-space: nowrap !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-panel > .table-responsive,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .card > .table-responsive,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .card-body > .table-responsive {
  box-shadow: none !important;
}

body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .lgb-empty,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .empty-state,
body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content tbody tr:only-child td[colspan] {
  background: transparent !important;
  color: var(--oux-muted) !important;
  font-weight: 800;
}

html[data-bs-theme="dark"] body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .dataTables_wrapper :is(.dataTables_info, .dataTables_length, .dataTables_filter, .dataTables_paginate) {
  color: var(--oux-muted) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .dataTables_wrapper .paginate_button {
  color: var(--oux-text) !important;
}

html[data-bs-theme="dark"] body.lgb-ux-2026:not([data-page-path*="/planilha-monitoramento/"]) .content .monitor-log {
  background: #0d1624 !important;
  color: #dbe7ff !important;
}

/* Theme-safe tables
   Last-pass table palette so row background and foreground always move together
   in light and dark mode, including Bootstrap contextual row classes. */
body.lgb-ux-2026 {
  --oux-table-bg: transparent;
  --oux-table-text: var(--oux-text);
  --oux-table-muted: var(--oux-muted);
  --oux-table-border: var(--oux-line-soft);
  --oux-table-head-bg: var(--oux-surface-alt);
  --oux-table-stripe-bg: #f8fafc;
  --oux-table-hover-bg: #EAF8F7;
  --oux-table-hover-text: #12263A;
  --oux-table-active-bg: #DFF5F4;
  --oux-table-active-text: #12263A;
  --oux-table-primary-bg: #EAF8F7;
  --oux-table-primary-text: #0D8E90;
  --oux-table-primary-link: #0D8E90;
  --oux-table-success-bg: #eaf7ef;
  --oux-table-success-text: #14532d;
  --oux-table-success-link: #166534;
  --oux-table-warning-bg: #fff4d8;
  --oux-table-warning-text: #5f3905;
  --oux-table-warning-link: #92400e;
  --oux-table-danger-bg: #fdeceb;
  --oux-table-danger-text: #7f1d1d;
  --oux-table-danger-link: #b91c1c;
  --oux-table-info-bg: #e7f7fb;
  --oux-table-info-text: #164e63;
  --oux-table-info-link: #0e7490;
  --oux-table-secondary-bg: #eef2f7;
  --oux-table-secondary-text: #334155;
  --oux-table-secondary-link: #334155;
}

html[data-bs-theme="dark"] body.lgb-ux-2026 {
  --oux-table-bg: transparent;
  --oux-table-text: #eef3f9;
  --oux-table-muted: #a9b4c4;
  --oux-table-border: rgba(176, 186, 201, .14);
  --oux-table-head-bg: #202939;
  --oux-table-stripe-bg: rgba(255, 255, 255, .035);
  --oux-table-hover-bg: rgba(119, 166, 255, .16);
  --oux-table-hover-text: #f8fbff;
  --oux-table-active-bg: rgba(119, 166, 255, .22);
  --oux-table-active-text: #ffffff;
  --oux-table-primary-bg: rgba(34, 184, 187, .24);
  --oux-table-primary-text: #dbeafe;
  --oux-table-primary-link: #67D8D7;
  --oux-table-success-bg: rgba(22, 101, 52, .34);
  --oux-table-success-text: #dcfce7;
  --oux-table-success-link: #86efac;
  --oux-table-warning-bg: rgba(146, 64, 14, .34);
  --oux-table-warning-text: #ffedd5;
  --oux-table-warning-link: #fbbf24;
  --oux-table-danger-bg: rgba(127, 29, 29, .34);
  --oux-table-danger-text: #fee2e2;
  --oux-table-danger-link: #fca5a5;
  --oux-table-info-bg: rgba(14, 116, 144, .32);
  --oux-table-info-text: #ecfeff;
  --oux-table-info-link: #67e8f9;
  --oux-table-secondary-bg: rgba(100, 116, 139, .26);
  --oux-table-secondary-text: #e2e8f0;
  --oux-table-secondary-link: #cbd5e1;
}

body.lgb-ux-2026 .content :is(.table-responsive, .dataTables_wrapper),
body.lgb-ux-2026.lgb-legacy-page :is(.table-responsive, .dataTables_wrapper) {
  background: var(--oux-surface) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-text) !important;
}

body.lgb-ux-2026 .content table.table,
body.lgb-ux-2026 .content table.dataTable,
body.lgb-ux-2026.lgb-legacy-page table.table,
body.lgb-ux-2026.lgb-legacy-page table.dataTable {
  --bs-table-bg: var(--oux-table-bg);
  --bs-table-color: var(--oux-table-text);
  --bs-table-border-color: var(--oux-table-border);
  --bs-table-striped-bg: var(--oux-table-stripe-bg);
  --bs-table-striped-color: var(--oux-table-text);
  --bs-table-active-bg: var(--oux-table-active-bg);
  --bs-table-active-color: var(--oux-table-active-text);
  --bs-table-hover-bg: var(--oux-table-hover-bg);
  --bs-table-hover-color: var(--oux-table-hover-text);
  background: transparent !important;
  border-color: var(--oux-table-border) !important;
  color: var(--oux-table-text) !important;
}

body.lgb-ux-2026 .content table.table > :not(caption) > * > *,
body.lgb-ux-2026 .content table.dataTable > :not(caption) > * > *,
body.lgb-ux-2026.lgb-legacy-page table.table > :not(caption) > * > *,
body.lgb-ux-2026.lgb-legacy-page table.dataTable > :not(caption) > * > * {
  background-color: var(--bs-table-bg) !important;
  border-color: var(--bs-table-border-color) !important;
  color: var(--bs-table-color);
}

body.lgb-ux-2026 .content table.table thead :is(th, td),
body.lgb-ux-2026 .content table.dataTable thead :is(th, td),
body.lgb-ux-2026.lgb-legacy-page table.table thead :is(th, td),
body.lgb-ux-2026 .content :is(.table-light, .table-light > th, .table-light > td),
body.lgb-ux-2026.lgb-legacy-page :is(.table-light, .table-light > th, .table-light > td),
body.lgb-ux-2026.lgb-legacy-page table.dataTable thead :is(th, td) {
  --bs-table-bg: var(--oux-table-head-bg);
  --bs-table-color: var(--oux-table-muted);
  background-color: var(--oux-table-head-bg) !important;
  border-color: var(--oux-line) !important;
  color: var(--oux-table-muted) !important;
}

body.lgb-ux-2026 .content table.table-striped > tbody > tr:nth-of-type(odd) > *,
body.lgb-ux-2026 .content table.dataTable.stripe > tbody > tr.odd > *,
body.lgb-ux-2026 .content table.dataTable.display > tbody > tr.odd > *,
body.lgb-ux-2026.lgb-legacy-page table.table-striped > tbody > tr:nth-of-type(odd) > *,
body.lgb-ux-2026.lgb-legacy-page table.dataTable.stripe > tbody > tr.odd > *,
body.lgb-ux-2026.lgb-legacy-page table.dataTable.display > tbody > tr.odd > * {
  --bs-table-bg: var(--oux-table-stripe-bg);
  --bs-table-color: var(--oux-table-text);
  background-color: var(--oux-table-stripe-bg) !important;
  color: var(--oux-table-text) !important;
}

body.lgb-ux-2026 .content table.table-hover > tbody > tr:hover > *,
body.lgb-ux-2026 .content table.dataTable.hover > tbody > tr:hover > *,
body.lgb-ux-2026 .content table.dataTable.display > tbody > tr:hover > *,
body.lgb-ux-2026.lgb-legacy-page table.table-hover > tbody > tr:hover > *,
body.lgb-ux-2026.lgb-legacy-page table.dataTable.hover > tbody > tr:hover > *,
body.lgb-ux-2026.lgb-legacy-page table.dataTable.display > tbody > tr:hover > * {
  --bs-table-bg: var(--oux-table-hover-bg);
  --bs-table-color: var(--oux-table-hover-text);
  background-color: var(--oux-table-hover-bg) !important;
  color: var(--oux-table-hover-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-active > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-active, th.table-active),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-active > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-active, th.table-active) {
  --bs-table-bg: var(--oux-table-active-bg);
  --bs-table-color: var(--oux-table-active-text);
  background-color: var(--oux-table-active-bg) !important;
  color: var(--oux-table-active-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-primary > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-primary, th.table-primary),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-primary > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-primary, th.table-primary) {
  --bs-table-bg: var(--oux-table-primary-bg);
  --bs-table-color: var(--oux-table-primary-text);
  background-color: var(--oux-table-primary-bg) !important;
  color: var(--oux-table-primary-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-success > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-success, th.table-success),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-success > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-success, th.table-success) {
  --bs-table-bg: var(--oux-table-success-bg);
  --bs-table-color: var(--oux-table-success-text);
  background-color: var(--oux-table-success-bg) !important;
  color: var(--oux-table-success-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-warning > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-warning, th.table-warning),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-warning > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-warning, th.table-warning) {
  --bs-table-bg: var(--oux-table-warning-bg);
  --bs-table-color: var(--oux-table-warning-text);
  background-color: var(--oux-table-warning-bg) !important;
  color: var(--oux-table-warning-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-danger > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-danger, th.table-danger),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-danger > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-danger, th.table-danger) {
  --bs-table-bg: var(--oux-table-danger-bg);
  --bs-table-color: var(--oux-table-danger-text);
  background-color: var(--oux-table-danger-bg) !important;
  color: var(--oux-table-danger-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-info > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-info, th.table-info),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-info > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-info, th.table-info) {
  --bs-table-bg: var(--oux-table-info-bg);
  --bs-table-color: var(--oux-table-info-text);
  background-color: var(--oux-table-info-bg) !important;
  color: var(--oux-table-info-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-secondary > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-secondary, th.table-secondary),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-secondary > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-secondary, th.table-secondary) {
  --bs-table-bg: var(--oux-table-secondary-bg);
  --bs-table-color: var(--oux-table-secondary-text);
  background-color: var(--oux-table-secondary-bg) !important;
  color: var(--oux-table-secondary-text) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tr.table-dark > *,
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(td.table-dark, th.table-dark),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tr.table-dark > *,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(td.table-dark, th.table-dark) {
  --bs-table-bg: #111827;
  --bs-table-color: #f9fafb;
  background-color: #111827 !important;
  color: #f9fafb !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(.table-primary, tr.table-primary) a,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(.table-primary, tr.table-primary) a { color: var(--oux-table-primary-link) !important; }
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(.table-success, tr.table-success) a,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(.table-success, tr.table-success) a { color: var(--oux-table-success-link) !important; }
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(.table-warning, tr.table-warning) a,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(.table-warning, tr.table-warning) a { color: var(--oux-table-warning-link) !important; }
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(.table-danger, tr.table-danger) a,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(.table-danger, tr.table-danger) a { color: var(--oux-table-danger-link) !important; }
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(.table-info, tr.table-info) a,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(.table-info, tr.table-info) a { color: var(--oux-table-info-link) !important; }
body.lgb-ux-2026 .content table:is(.table, .dataTable) :is(.table-secondary, tr.table-secondary) a,
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) :is(.table-secondary, tr.table-secondary) a { color: var(--oux-table-secondary-link) !important; }

body.lgb-ux-2026 .content table:is(.table, .dataTable) tbody tr > * :is(.text-muted, .text-secondary, .small.text-secondary),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tbody tr > * :is(.text-muted, .text-secondary, .small.text-secondary) {
  color: var(--oux-table-muted) !important;
}

body.lgb-ux-2026 .content table:is(.table, .dataTable) tbody tr:hover > * :is(.text-muted, .text-secondary, .small.text-secondary),
body.lgb-ux-2026.lgb-legacy-page table:is(.table, .dataTable) tbody tr:hover > * :is(.text-muted, .text-secondary, .small.text-secondary) {
  color: color-mix(in srgb, var(--oux-table-hover-text) 70%, var(--oux-table-muted)) !important;
}
