@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

:root {
  --ft-navy-950: #03234a;
  --ft-navy-900: #062b57;
  --ft-navy-800: #0a376d;
  --ft-primary: #075ed8;
  --ft-primary-strong: #034fc7;
  --ft-primary-700: #034fc7;
  --ft-primary-600: #075ed8;
  --ft-primary-300: #8bbcff;
  --ft-primary-100: #eaf2ff;
  --ft-primary-50: #f3f8ff;
  --ft-bg: #ffffff;
  --ft-canvas: #ffffff;
  --ft-surface: #ffffff;
  --ft-surface-subtle: #f8fafc;
  --ft-border: #d8e0ea;
  --ft-border-strong: #c6d1df;
  --ft-text: #101828;
  --ft-text-secondary: #475467;
  --ft-text-muted: #667085;
  --ft-success: #159447;
  --ft-warning: #e8790c;
  --ft-danger: #dc3545;
  --ft-info: #0b74de;
  --ft-radius-sm: 4px;
  --ft-radius-md: 7px;
  --ft-radius-lg: 10px;
  --ft-shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04);
  --ft-shadow-card: 0 18px 45px rgba(16, 24, 40, 0.10);
  --ft-sidebar-width: 15.875rem;
}

[data-bs-theme="dark"] {
  --ft-bg: #0f1726;
  --ft-canvas: #101623;
  --ft-surface: #151d2b;
  --ft-surface-subtle: #151d2b;
  --ft-border: #27344a;
  --ft-border-strong: #34435d;
  --ft-text: #f2f5fa;
  --ft-text-secondary: #c4ccda;
  --ft-text-muted: #96a2b5;
  --ft-primary-100: #152d55;
  --ft-primary-50: #13233d;
  --ft-shadow-card: 0 18px 45px rgba(0, 0, 0, 0.24);
  --ft-shadow-subtle: none;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.ft-editorial-shell {
  background: var(--ft-canvas);
  color: var(--ft-text);
}

html:not(.navbar-vertical-collapsed) body.ft-editorial-shell {
  --phoenix-navbar-vertical-width: 13rem;
}

body.ft-editorial-shell .content {
  background: var(--ft-canvas);
}

body.ft-editorial-shell .navbar-vertical {
  background: var(--ft-navy-950);
  border-right: 0;
  box-shadow: none;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-content {
  background: var(--ft-navy-950);
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

body.ft-editorial-shell .navbar-vertical .navbar-nav {
  padding-inline: 0.7rem;
}

.ft-sidebar-brand {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  min-height: var(--phoenix-navbar-top-height);
  padding: 0.75rem 1.2rem;
  text-decoration: none;
}

.ft-sidebar-brand:hover,
.ft-sidebar-brand:focus-visible {
  color: #fff;
  text-decoration: none;
}

.ft-sidebar-brand img {
  object-fit: contain;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 1.25rem 0.75rem 0.45rem;
  text-transform: uppercase;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-line {
  display: none;
}

body.ft-editorial-shell .navbar-vertical .nav-link {
  border-radius: var(--ft-radius-sm);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 500;
  margin-block: 0.08rem;
  padding: 0.62rem 0.75rem;
  transition: background-color 140ms ease, color 140ms ease;
}

body.ft-editorial-shell .navbar-vertical .nav-link:hover,
body.ft-editorial-shell .navbar-vertical .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
}

body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active {
  background: var(--ft-primary-600);
  color: #fff;
}

body.ft-editorial-shell .navbar-vertical .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .dropdown-indicator-icon {
  color: currentColor;
}

body.ft-editorial-shell .navbar-vertical .parent-wrapper .nav-link {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
}

body.ft-editorial-shell .navbar-vertical .form-select {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.ft-editorial-shell .navbar-vertical .form-select option {
  color: var(--ft-text);
}

body.ft-editorial-shell .navbar-vertical-footer {
  background: var(--ft-navy-950);
  border-top-color: rgba(255, 255, 255, 0.12);
}

body.ft-editorial-shell .navbar-vertical-footer .btn {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

body.ft-editorial-shell .navbar-top {
  background: var(--ft-canvas);
  border-bottom: 1px solid var(--ft-border);
  box-shadow: none;
}

body.ft-editorial-shell .navbar-top .navbar-logo .logo-text {
  color: var(--ft-text);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 992px) {
  body.ft-editorial-shell .navbar-top .navbar-logo {
    display: none !important;
  }
}

body.ft-editorial-shell .navbar-top-search-box {
  max-width: 42rem;
  width: min(48vw, 42rem) !important;
}

body.ft-editorial-shell .navbar-top-search-box .search-input {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border-strong);
  border-radius: var(--ft-radius-md) !important;
  color: var(--ft-text);
  font-size: 0.82rem;
  min-height: 2.35rem;
}

body.ft-editorial-shell .navbar-top-search-box .search-input:focus {
  border-color: var(--ft-primary-600);
  box-shadow: 0 0 0 3px rgba(7, 94, 216, 0.12);
}

body.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link {
  color: var(--ft-text-secondary);
}

body.ft-editorial-shell .navbar-top .avatar {
  border: 1px solid var(--ft-border);
}

body.ft-editorial-shell .dropdown-menu,
body.ft-editorial-shell .modal-content {
  border-color: var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.12);
}

body.ft-editorial-shell .footer {
  border-top: 1px solid var(--ft-border);
}

body.ft-editorial-shell .btn {
  border-radius: var(--ft-radius-md);
  font-weight: 500;
}

body.ft-editorial-shell .btn-primary {
  --phoenix-btn-bg: var(--ft-primary-600);
  --phoenix-btn-border-color: var(--ft-primary-600);
  --phoenix-btn-hover-bg: var(--ft-primary-700);
  --phoenix-btn-hover-border-color: var(--ft-primary-700);
}

body.ft-editorial-shell .ft-entity-link {
  text-decoration: none;
}

body.ft-editorial-shell .ft-entity-link:hover,
body.ft-editorial-shell .ft-entity-link:focus-visible {
  text-decoration: underline;
}

body.ft-editorial-shell .form-control,
body.ft-editorial-shell .form-select,
body.ft-editorial-shell .input-group-text {
  border-color: var(--ft-border-strong);
  border-radius: var(--ft-radius-md);
}

body.ft-editorial-shell .form-select {
  --phoenix-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.85rem center;
  background-repeat: no-repeat;
  background-size: 0.78rem 0.78rem;
  padding-right: 2.25rem;
}

[data-bs-theme="dark"] body.ft-editorial-shell .form-select {
  --phoenix-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f2f5fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

body.ft-editorial-shell input[type="date"] {
  color-scheme: light !important;
}

body.ft-editorial-shell input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(31%) sepia(17%) saturate(646%) hue-rotate(179deg) brightness(92%) contrast(91%);
  opacity: 1;
}

[data-bs-theme="dark"] body.ft-editorial-shell input[type="date"] {
  color-scheme: dark !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(91%) sepia(9%) saturate(519%) hue-rotate(176deg) brightness(92%) contrast(88%);
}

body.ft-editorial-shell .form-control:focus,
body.ft-editorial-shell .form-select:focus {
  border-color: var(--ft-primary-600);
  box-shadow: 0 0 0 3px rgba(7, 94, 216, 0.12);
}

body.ft-editorial-shell .card {
  background: var(--ft-canvas);
  border-color: var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
}

/* Global shell: repeated chrome used by every modernized screen. */
body.ft-editorial-shell .navbar-top {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
  min-height: var(--phoenix-navbar-top-height);
}

body.ft-editorial-shell .navbar-top > .collapse,
body.ft-editorial-shell .navbar-top > .container,
body.ft-editorial-shell .navbar-top > .container-fluid {
  gap: 1rem;
  min-height: var(--phoenix-navbar-top-height);
}

body.ft-editorial-shell .navbar-toggler {
  border: 1px solid var(--ft-border);
  border-radius: 999px;
  color: var(--ft-text-secondary);
  height: 2.35rem;
  width: 2.35rem;
}

body.ft-editorial-shell .navbar-top-search-box .search-box-icon {
  color: #7b8ba4;
  left: 1.05rem;
}

body.ft-editorial-shell .navbar-top-search-box .search-input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding-left: 2.55rem;
}

body.ft-editorial-shell .navbar-top-search-box #search-results {
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg);
  box-shadow: 0 20px 46px rgba(16, 24, 40, 0.14);
  margin-top: 0.55rem;
}

body.ft-editorial-shell .navbar-top-search-box .dropdown-header {
  background: var(--ft-surface-subtle);
  color: var(--ft-text-secondary) !important;
  font-size: 0.68rem !important;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.ft-editorial-shell .navbar-top .navbar-nav-icons {
  align-items: center;
  gap: 0.42rem;
}

body.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link,
body.ft-editorial-shell .navbar-top .theme-control-toggle-label {
  align-items: center;
  background: transparent;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  height: 2.2rem;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

body.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link:hover,
body.ft-editorial-shell .navbar-top .theme-control-toggle-label:hover {
  background: var(--ft-primary-100);
  color: var(--ft-primary-700);
  transform: translateY(-1px);
}

body.ft-editorial-shell .navbar-top .theme-control-toggle-label {
  background: #fff3e4;
  color: var(--ft-warning);
}

body.ft-editorial-shell .navbar-top #resumoNotificacoes,
body.ft-editorial-shell .navbar-top #resumoNotificacoesOperacional {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  padding-inline: 0.65rem;
  width: auto;
}

body.ft-editorial-shell .navbar-top .avatar.avatar-l {
  height: 2.25rem;
  width: 2.25rem;
}

body.ft-editorial-shell .navbar-top .avatar img,
body.ft-editorial-shell .dropdown-profile .avatar img {
  background: var(--ft-surface-subtle);
  border: 1px solid var(--ft-border);
  object-fit: cover;
}

body.ft-editorial-shell .notification-dropdown-menu,
body.ft-editorial-shell .dropdown-profile,
body.ft-editorial-shell .dropdown-nine-dots {
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg) !important;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16) !important;
  overflow: hidden;
}

body.ft-editorial-shell .notification-card {
  border-color: var(--ft-border) !important;
  cursor: pointer;
  transition: background-color 140ms ease;
}

body.ft-editorial-shell .notification-card:hover {
  background: var(--ft-surface-subtle);
}

body.ft-editorial-shell .dropdown-nine-dots a {
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

body.ft-editorial-shell .dropdown-nine-dots a:hover {
  background: var(--ft-surface-subtle);
  border-color: var(--ft-border);
  transform: translateY(-1px);
}

body.ft-editorial-shell .navbar-vertical {
  color: rgba(255, 255, 255, 0.86);
}

body.ft-editorial-shell .ft-sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.3rem;
}

body.ft-editorial-shell .navbar-vertical .nav-link .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .nav-link .dropdown-indicator-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 1.25rem;
}

body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active {
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(0, 0, 0, 0.12);
}

body.ft-editorial-shell .navbar-vertical .collapse .nav-link,
body.ft-editorial-shell .navbar-vertical .parent .nav-link {
  border-radius: var(--ft-radius-sm);
  margin-left: 1.25rem;
  padding-block: 0.42rem;
}

body.ft-editorial-shell .navbar-vertical-footer {
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.08);
}

body.ft-editorial-shell .navbar-vertical-footer .btn:hover,
body.ft-editorial-shell .navbar-vertical-footer .btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.ft-editorial-shell .footer {
  background: var(--ft-canvas);
  color: var(--ft-text-muted);
  font-size: 0.76rem;
  min-height: 2.85rem;
  padding-inline: 1.25rem;
}

body.ft-editorial-shell .footer p {
  color: var(--ft-text-muted) !important;
  font-weight: 500;
}

body.ft-editorial-shell .footer a {
  color: var(--ft-primary-600);
  font-weight: 500;
  text-decoration: none;
}

body.ft-editorial-shell .support-chat-container {
  bottom: 1.1rem;
  right: 1.35rem;
  z-index: 1040;
}

body.ft-editorial-shell .support-chat {
  max-width: min(24rem, calc(100vw - 2rem));
}

body.ft-editorial-shell .support-chat .card {
  border: 1px solid var(--ft-border);
  border-radius: 1rem;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.2);
  overflow: hidden;
}

body.ft-editorial-shell .support-chat .card-header {
  background: linear-gradient(135deg, var(--ft-navy-950), var(--ft-navy-800));
  border: 0 !important;
  color: #fff;
}

body.ft-editorial-shell .support-chat .card-header h5,
body.ft-editorial-shell .support-chat .card-header .text-body {
  color: #fff !important;
}

body.ft-editorial-shell .support-chat .chat {
  background:
    radial-gradient(circle at top right, rgba(7, 94, 216, 0.08), transparent 34%),
    var(--ft-canvas);
}

body.ft-editorial-shell .support-chat .card-footer {
  background: var(--ft-canvas);
}

body.ft-editorial-shell .support-chat input {
  min-height: 2.4rem;
}

body.ft-editorial-shell .support-chat .send-btn {
  align-items: center;
  background: var(--ft-primary-600);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  min-width: 2.35rem;
}

body.ft-editorial-shell .btn-support-chat {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg);
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.16);
  color: var(--ft-primary-700);
  display: inline-flex;
  font-weight: 500;
  gap: 0.35rem;
  min-height: 3rem;
  padding: 0.7rem 1rem !important;
}

body.ft-editorial-shell .btn-support-chat:hover,
body.ft-editorial-shell .btn-support-chat:focus-visible {
  background: var(--ft-primary-600);
  color: #fff;
}

[data-bs-theme="dark"] body.ft-editorial-shell .navbar-top,
[data-bs-theme="dark"] body.ft-editorial-shell .footer,
[data-bs-theme="dark"] body.ft-editorial-shell .btn-support-chat,
[data-bs-theme="dark"] body.ft-editorial-shell .support-chat .card-footer {
  background: var(--ft-canvas);
}

[data-bs-theme="dark"] body.ft-editorial-shell .navbar-top {
  background: rgba(16, 22, 35, 0.96);
}

@media (max-width: 991.98px) {
  body.ft-editorial-shell .navbar-top {
    padding-inline: 0.8rem;
  }

  body.ft-editorial-shell .navbar-top .navbar-logo .logo-text {
    font-size: 0.78rem;
  }

  body.ft-editorial-shell .navbar-top .navbar-nav-icons {
    gap: 0.2rem;
  }

  body.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link,
  body.ft-editorial-shell .navbar-top .theme-control-toggle-label {
    height: 2rem;
    min-width: 2rem;
  }

  body.ft-editorial-shell .support-chat-container {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
  }

  body.ft-editorial-shell .btn-support-chat {
    justify-content: center;
    width: 100%;
  }
}

.ft-dashboard {
  color: var(--ft-text);
  padding-bottom: 2rem;
}

.ft-dashboard .ft-dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin: 0;
}

.ft-dashboard .ft-dashboard-grid > * {
  margin: 0;
  max-width: none;
  padding: 0;
  width: auto;
}

.ft-dashboard-header {
  grid-column: 1 / -1;
}

.ft-dashboard-header > h2 {
  color: var(--ft-text);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ft-dashboard-header > h5 {
  color: var(--ft-text-muted) !important;
  font-size: 0.82rem;
  font-weight: 500 !important;
  margin-bottom: 1rem !important;
}

.ft-kpi-strip {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 !important;
  overflow: hidden;
  position: relative;
}

.ft-kpi-strip::after {
  background: var(--ft-primary-600);
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.ft-kpi-strip > .ft-kpi-item {
  max-width: none;
  padding: 0;
  width: auto;
}

.ft-kpi-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 9.2rem;
}

.ft-kpi-item:not(:last-child) .ft-kpi-card {
  border-right: 1px solid var(--ft-border) !important;
}

.ft-kpi-card .card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.ft-kpi-card .icon-wrapper-sm {
  align-items: center;
  background: var(--ft-primary-100);
  border-radius: 50%;
  box-shadow: none !important;
  display: inline-flex !important;
  height: 2.4rem;
  justify-content: center;
  transform: none !important;
  width: 2.4rem;
}

.ft-kpi-card .icon-wrapper-sm > span {
  margin: 0 !important;
}

.ft-kpi-card p[id] {
  color: var(--ft-text) !important;
  font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ft-kpi-card p[id] .fs-8 {
  color: var(--ft-text-muted) !important;
  font-size: 0.7rem !important;
  font-weight: 500;
  text-transform: lowercase;
}

.ft-kpi-card .badge {
  border-radius: var(--ft-radius-sm);
  font-weight: 500;
}

.ft-kpi-card #totalQuebras p,
.ft-kpi-card #ultimaSincronizacaoBancaria p,
.ft-kpi-card #ultimaAtividadeJames p,
.ft-kpi-card #proximaAtividadeJames p,
.ft-kpi-card #apisJames {
  font-size: 0.65rem !important;
  line-height: 1.25;
  margin: 0.25rem 0 !important;
}

.ft-kpi-card #totalQuebras .fs-11,
.ft-kpi-card #ultimaSincronizacaoBancaria .fs-11,
.ft-kpi-card #ultimaAtividadeJames .fs-11,
.ft-kpi-card #proximaAtividadeJames .fs-11 {
  font-size: 0.62rem !important;
}

.ft-panel {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  padding: 1rem !important;
  position: relative;
}

.ft-panel::before {
  background: var(--ft-primary-600);
  border-radius: 2px;
  content: "";
  height: 2.25rem;
  left: -1px;
  position: absolute;
  top: 1rem;
  width: 3px;
}

.ft-panel h3 {
  color: var(--ft-text);
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0.2rem;
}

.ft-panel p {
  color: var(--ft-text-muted) !important;
  font-size: 0.76rem;
}

.ft-main-chart {
  grid-column: span 8;
}

.ft-operators {
  grid-column: span 4;
}

.ft-new-records {
  grid-column: span 4;
}

.ft-quality {
  grid-column: span 4;
}

.ft-top-creditors {
  grid-column: span 4;
}

.ft-recovery {
  grid-column: 1 / -1;
}

.ft-dashboard #ocorrenciasOperadorHoje > div > div {
  background: transparent;
  border-color: var(--ft-border) !important;
  min-height: 5rem;
}

.ft-operators #ocorrenciasOperadorHoje > div {
  width: 100%;
}

.ft-operators #ocorrenciasOperadorHoje > div > div {
  align-items: center !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  min-height: 2.65rem;
  padding: 0.45rem 0.55rem !important;
}

.ft-operators #ocorrenciasOperadorHoje h3 {
  font-size: 0.95rem;
  margin: 0 !important;
}

.ft-dashboard .list-group-item {
  border-color: var(--ft-border);
  color: var(--ft-text-secondary);
  padding-block: 0.38rem !important;
}

.ft-dashboard .table {
  --phoenix-table-bg: transparent;
  color: var(--ft-text-secondary);
  font-size: 0.8rem !important;
}

.ft-dashboard .table thead th {
  background: var(--ft-surface-subtle);
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.ft-dashboard .table td {
  border-color: var(--ft-border) !important;
}

.ft-dashboard .table tbody tr:hover {
  background: var(--ft-primary-100);
}

.ft-new-records #chartNovosDevedores,
.ft-new-records #chartNovosTitulos {
  min-height: 145px !important;
}

.ft-quality #chartQualidadeBase {
  min-height: 260px !important;
}

@media (max-width: 1199.98px) {
  .ft-dashboard .ft-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-dashboard-header,
  .ft-main-chart,
  .ft-operators,
  .ft-new-records,
  .ft-quality,
  .ft-top-creditors,
  .ft-recovery {
    grid-column: auto;
  }

  .ft-dashboard-header,
  .ft-main-chart,
  .ft-recovery {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  body.ft-editorial-shell .navbar-top {
    background: var(--ft-navy-950);
    border-bottom: 0;
  }

  body.ft-editorial-shell .navbar-top .navbar-toggler,
  body.ft-editorial-shell .navbar-top .navbar-brand,
  body.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link {
    color: #fff;
  }

  body.ft-editorial-shell .navbar-top .logo-text {
    color: #fff !important;
  }

  body.ft-editorial-shell .content {
    padding-inline: 1rem;
  }

  .ft-dashboard .ft-dashboard-grid {
    display: block;
  }

  .ft-dashboard .ft-dashboard-grid > * {
    margin-bottom: 0.9rem;
  }

  .ft-kpi-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .ft-kpi-strip > .ft-kpi-item {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .ft-kpi-item:not(:last-child) .ft-kpi-card {
    border-right: 1px solid var(--ft-border) !important;
  }

  .ft-panel {
    padding: 0.9rem !important;
  }

  .ft-main-chart #chartOcorrenciasAcordos {
    min-height: 310px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ft-editorial-shell *,
  body.ft-editorial-shell *::before,
  body.ft-editorial-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dashboard pilot: fidelity lock for the approved editorial concept. */
@media (min-width: 992px) {
  html {
    --phoenix-navbar-top-height: 3.5rem;
  }

  html:not(.navbar-vertical-collapsed) {
    --phoenix-navbar-vertical-width: 11.75rem;
  }

  body.ft-editorial-shell .navbar-vertical {
    max-width: 11.75rem !important;
    min-width: 11.75rem !important;
    width: 11.75rem !important;
  }

  body.ft-editorial-shell .content {
    margin-left: 11.75rem !important;
    padding: calc(var(--phoenix-navbar-top-height) + 0.65rem) 1.25rem 1.5rem !important;
  }

  body.ft-editorial-shell .navbar-top {
    left: 11.75rem !important;
    min-height: var(--phoenix-navbar-top-height);
    padding-inline: 1.25rem !important;
    width: calc(100% - 11.75rem) !important;
  }
}

.ft-page-dashboard .ft-dashboard {
  max-width: none;
}

.ft-page-dashboard .ft-dashboard .ft-dashboard-grid {
  gap: 0.75rem 1rem;
}

.ft-page-dashboard .ft-dashboard .ft-dashboard-grid > * {
  margin: 0 !important;
}

.ft-page-dashboard .ft-dashboard-header > h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 !important;
}

.ft-dashboard-mobile-subtitle {
  display: none;
}

.ft-page-dashboard .ft-dashboard-header {
  display: grid;
  gap: 0.75rem;
}

.ft-page-dashboard .ft-kpi-strip {
  background: transparent;
  border: 0;
  border-radius: 0;
  gap: 1.5rem;
  overflow: visible;
  padding-bottom: 1.15rem;
}

.ft-page-dashboard .ft-kpi-strip::after {
  bottom: 0.32rem;
  height: 2px;
}

.ft-page-dashboard .ft-kpi-item {
  height: 6.4rem;
  margin-top: 0 !important;
  position: relative;
}

.ft-page-dashboard .ft-kpi-item::after {
  background: var(--ft-primary-600);
  border: 2px solid var(--ft-primary-600);
  border-radius: 50%;
  bottom: 0.05rem;
  content: "";
  height: 0.55rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 0.55rem;
  z-index: 1;
}

.ft-page-dashboard .ft-kpi-card {
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-sm) !important;
  height: 6.4rem !important;
  min-height: 6.4rem;
  overflow: hidden;
  position: relative;
}

.ft-page-dashboard .ft-kpi-item:not(:last-child) .ft-kpi-card {
  border-right: 1px solid var(--ft-border) !important;
}

.ft-page-dashboard .ft-kpi-card::after {
  border-right: 2px solid var(--ft-text-secondary);
  border-top: 2px solid var(--ft-text-secondary);
  content: "";
  height: 0.45rem;
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: rotate(45deg) translateY(-50%);
  width: 0.45rem;
}

.ft-page-dashboard .ft-kpi-card .card-body {
  padding: 0.85rem 1.9rem 0.75rem 0.9rem;
}

.ft-page-dashboard .ft-kpi-card .card-body > .d-flex {
  display: block !important;
}

.ft-page-dashboard .ft-kpi-card .border-bottom-sm {
  border: 0 !important;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  margin: 0 !important;
}

.ft-page-dashboard .ft-kpi-card .border-bottom-sm > .d-flex {
  display: contents !important;
}

.ft-page-dashboard .ft-kpi-card .icon-wrapper-sm {
  background: var(--ft-primary-600);
  grid-column: 1;
  grid-row: 1 / 3;
  height: 2.9rem;
  margin-top: 0.15rem;
  width: 2.9rem;
}

.ft-page-dashboard .ft-kpi-card .icon-wrapper-sm > span {
  color: #fff !important;
  font-size: 1.1rem !important;
}

.ft-page-dashboard .ft-kpi-card .border-bottom-sm > .d-flex > p {
  align-self: end;
  color: var(--ft-text) !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  grid-column: 2;
  grid-row: 1;
  margin: 0 !important;
}

.ft-page-dashboard .ft-kpi-card p[id] {
  align-self: start;
  font-size: 1.55rem !important;
  grid-column: 2;
  grid-row: 2;
  margin: 0.05rem 0 0 !important;
}

.ft-page-dashboard .ft-kpi-card p[id] .fs-8 {
  font-size: 0.62rem !important;
}

.ft-page-dashboard .ft-kpi-card .card-body > .d-flex > div:nth-child(2) {
  margin-left: 3.25rem;
  margin-top: 0.15rem;
}

.ft-page-dashboard .ft-kpi-card .card-body > .d-flex > div:nth-child(3) {
  border: 0 !important;
  margin: 0.15rem 0 0 3.25rem !important;
}

.ft-page-dashboard .ft-kpi-card #ultimaAtividadeJames,
.ft-page-dashboard .ft-kpi-card #proximaAtividadeJames,
.ft-page-dashboard .ft-kpi-card #apisJames {
  display: none;
}

.ft-page-dashboard .ft-panel {
  border-radius: var(--ft-radius-sm);
  padding: 0.75rem 0.85rem !important;
}

.ft-page-dashboard .ft-panel::before {
  display: none;
}

.ft-page-dashboard .ft-panel h3 {
  font-size: 0.82rem;
  margin: 0;
}

.ft-page-dashboard .ft-panel p {
  font-size: 0.68rem;
}

.ft-page-dashboard .ft-main-chart {
  grid-column: 1 / 9;
  grid-row: 2;
  height: 17.8rem;
  min-height: 17.8rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-operators {
  grid-column: 9 / 13;
  grid-row: 2;
  height: 17.8rem;
  min-height: 17.8rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-new-debtors {
  grid-column: 1 / 4;
  grid-row: 3;
  height: 15rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-new-titles {
  grid-column: 4 / 7;
  grid-row: 3;
  height: 15rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-quality {
  grid-column: 7 / 10;
  grid-row: 3;
  height: 15rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-top-creditors {
  grid-column: 10 / 13;
  grid-row: 3 / 5;
  height: 18.9rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-recovery {
  grid-column: 1 / 10;
  grid-row: 4;
  height: 13.4rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-main-chart #chartOcorrenciasAcordos {
  height: 13.8rem !important;
  min-height: 13.8rem !important;
}

.ft-page-dashboard .ft-operators > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(8.5rem, 1fr);
  height: calc(100% - 0.2rem);
}

.ft-page-dashboard .ft-operators > .row > div {
  margin: 0 !important;
  max-width: none;
  padding: 0;
  width: auto;
}

.ft-page-dashboard .ft-operators #ocorrenciasOperadorHoje {
  max-height: 12.2rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-operator-row {
  align-items: center;
  border-bottom: 1px solid var(--ft-border);
  display: grid;
  gap: 0.15rem 0.4rem;
  grid-template-columns: 1.45rem minmax(0, 1fr) auto;
  padding: 0.25rem 0;
}

.ft-page-dashboard .ft-operator-avatar {
  align-items: center;
  background: #60789e;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.48rem;
  font-weight: 500;
  grid-row: 1 / 3;
  height: 1.25rem;
  justify-content: center;
  width: 1.25rem;
}

.ft-page-dashboard .ft-operator-name {
  color: var(--ft-text-secondary);
  font-size: 0.64rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-page-dashboard .ft-operator-value {
  color: var(--ft-text);
  font-size: 0.65rem;
}

.ft-page-dashboard .ft-operator-track {
  background: var(--ft-primary-100);
  display: block;
  grid-column: 2 / 4;
  height: 0.25rem;
  overflow: hidden;
}

.ft-page-dashboard .ft-operator-track > span {
  background: var(--ft-primary-600);
  display: block;
  height: 100%;
}

.ft-page-dashboard .ft-operators #chartOcorrenciasPorOperador {
  height: 11.5rem !important;
  min-height: 11.5rem !important;
}

.ft-page-dashboard .ft-metric-panel-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.ft-page-dashboard .ft-metric-panel-header .badge {
  margin: 0 !important;
}

.ft-page-dashboard .ft-metric-value {
  color: var(--ft-text);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  margin-top: 0.4rem;
}

.ft-page-dashboard .ft-new-debtors #chartNovosDevedores,
.ft-page-dashboard .ft-new-titles #chartNovosTitulos {
  height: 8.1rem !important;
  min-height: 8.1rem !important;
}

.ft-page-dashboard .ft-quality #chartQualidadeBase {
  height: 10rem !important;
  min-height: 10rem !important;
}

.ft-page-dashboard .ft-top-creditors .list-group-item {
  font-size: 0.68rem !important;
  padding: 0.32rem 0 !important;
}

.ft-page-dashboard .ft-recovery .table {
  font-size: 0.68rem !important;
  margin-top: 0.4rem;
}

.ft-page-dashboard .ft-recovery .table th,
.ft-page-dashboard .ft-recovery .table td {
  padding-block: 0.32rem !important;
}

@media (max-width: 1199.98px) {
  .ft-page-dashboard .ft-main-chart,
  .ft-page-dashboard .ft-operators,
  .ft-page-dashboard .ft-new-debtors,
  .ft-page-dashboard .ft-new-titles,
  .ft-page-dashboard .ft-quality,
  .ft-page-dashboard .ft-top-creditors,
  .ft-page-dashboard .ft-recovery {
    grid-column: auto;
    grid-row: auto;
  }

  .ft-page-dashboard .ft-main-chart,
  .ft-page-dashboard .ft-recovery {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .ft-page-dashboard .ft-dashboard .ft-dashboard-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-page-dashboard .ft-dashboard-header,
  .ft-page-dashboard .ft-main-chart,
  .ft-page-dashboard .ft-operators,
  .ft-page-dashboard .ft-quality,
  .ft-page-dashboard .ft-top-creditors,
  .ft-page-dashboard .ft-recovery {
    grid-column: 1 / -1;
  }

  .ft-page-dashboard .ft-new-debtors {
    grid-column: 1;
  }

  .ft-page-dashboard .ft-new-titles {
    grid-column: 2;
  }

  .ft-page-dashboard .ft-kpi-strip {
    gap: 0;
    overflow-x: auto;
    padding-bottom: 0;
  }

  .ft-page-dashboard .ft-kpi-strip::after,
  .ft-page-dashboard .ft-kpi-item::after {
    display: none;
  }

  .ft-page-dashboard .ft-kpi-card {
    border-radius: var(--ft-radius-sm) !important;
    height: 6.8rem !important;
    min-height: 6.8rem;
  }

  .ft-page-dashboard .ft-kpi-strip > .ft-kpi-item {
    flex: 0 0 25%;
    height: 6.8rem;
  }

  .ft-page-dashboard .ft-kpi-card::after {
    display: none;
  }

  .ft-page-dashboard .ft-kpi-card .card-body {
    padding: 0.45rem 0.35rem;
  }

  .ft-page-dashboard .ft-kpi-card .border-bottom-sm {
    grid-template-columns: 1.65rem minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .ft-page-dashboard .ft-kpi-card .icon-wrapper-sm {
    grid-column: 1;
    grid-row: 1;
    height: 1.55rem;
    margin: 0;
    width: 1.55rem;
  }

  .ft-page-dashboard .ft-kpi-card .icon-wrapper-sm > span {
    font-size: 0.7rem !important;
  }

  .ft-page-dashboard .ft-kpi-card .border-bottom-sm > .d-flex > p {
    align-self: center;
    font-size: 0.5rem !important;
    grid-column: 2;
    grid-row: 1;
    line-height: 1.05;
  }

  .ft-page-dashboard .ft-kpi-card p[id] {
    font-size: 1rem !important;
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.2rem !important;
  }

  .ft-page-dashboard .ft-kpi-card p[id] .fs-8 {
    display: none;
  }

  .ft-page-dashboard .ft-kpi-card .card-body > .d-flex > div:nth-child(2) {
    margin: 0.15rem 0 0 !important;
  }

  .ft-page-dashboard .ft-kpi-card .card-body > .d-flex > div:nth-child(2) p {
    font-size: 0.48rem !important;
    white-space: nowrap;
  }

  .ft-page-dashboard .ft-kpi-card .card-body > .d-flex > div:nth-child(3) {
    display: none !important;
  }

  .ft-page-dashboard .ft-dashboard-header > h2 {
    font-size: 1.35rem;
    margin-bottom: 0 !important;
  }

  .ft-page-dashboard .ft-welcome-continuation {
    display: none;
  }

  .ft-page-dashboard .ft-dashboard-mobile-subtitle {
    color: var(--ft-text-muted);
    display: block;
    font-size: 0.75rem;
    margin: -0.45rem 0 0;
  }

  .ft-page-dashboard .ft-operators > .row {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(6.5rem, 1fr);
  }

  .ft-page-dashboard .ft-operators > .row > div {
    margin: 0 !important;
    max-width: none;
    padding: 0;
    width: auto;
  }

  .ft-page-dashboard .ft-operators #chartOcorrenciasPorOperador {
    height: 10.5rem !important;
    min-height: 10.5rem !important;
  }

  .ft-page-dashboard .ft-new-debtors,
  .ft-page-dashboard .ft-new-titles {
    padding-inline: 0.7rem !important;
  }

  .ft-page-dashboard .ft-new-debtors .ft-metric-panel-header,
  .ft-page-dashboard .ft-new-titles .ft-metric-panel-header {
    display: block;
  }

  .ft-page-dashboard .ft-new-debtors .badge,
  .ft-page-dashboard .ft-new-titles .badge {
    margin-top: 0.35rem !important;
  }

  .ft-page-dashboard .ft-main-chart,
  .ft-page-dashboard .ft-operators,
  .ft-page-dashboard .ft-new-debtors,
  .ft-page-dashboard .ft-new-titles,
  .ft-page-dashboard .ft-quality,
  .ft-page-dashboard .ft-top-creditors,
  .ft-page-dashboard .ft-recovery {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .ft-page-dashboard .ft-operators #ocorrenciasOperadorHoje {
    max-height: none;
  }
}

/* Dashboard pilot fidelity repair: the approved concept is light-only. */
.ft-page-dashboard.ft-editorial-shell,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell {
  --ft-canvas: #ffffff;
  --ft-surface-subtle: #f8fafc;
  --ft-border: #d8e0ea;
  --ft-border-strong: #c6d1df;
  --ft-text: #101828;
  --ft-text-secondary: #475467;
  --ft-text-muted: #667085;
  --ft-primary-100: #eaf2ff;
  --ft-shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .content,
.ft-page-dashboard.ft-editorial-shell .ft-dashboard,
.ft-page-dashboard.ft-editorial-shell .footer,
.ft-page-dashboard.ft-editorial-shell .navbar-top,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .content,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-dashboard,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .footer,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .navbar-top {
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top {
  border-bottom: 1px solid var(--ft-border) !important;
  box-shadow: none !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top-search-box .search-input,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .navbar-top-search-box .search-input {
  background: #ffffff !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top-search-box .search-input::placeholder {
  color: #98a2b3 !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link,
.ft-page-dashboard.ft-editorial-shell .navbar-top .theme-control-toggle-label,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .navbar-top .theme-control-toggle-label {
  color: #475569 !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top .theme-control-toggle-label {
  background: #fff3e4 !important;
  color: var(--ft-warning) !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top .navbar-nav-icons .nav-link:hover,
.ft-page-dashboard.ft-editorial-shell .navbar-top .theme-control-toggle-label:hover {
  background: var(--ft-primary-100) !important;
  color: var(--ft-primary-700) !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-top .avatar,
.ft-page-dashboard.ft-editorial-shell .navbar-top .avatar img {
  background: #f2f4f7 !important;
  border-color: var(--ft-border) !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-vertical .nav-link-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-page-dashboard.ft-editorial-shell .navbar-vertical .nav-link-text-wrapper {
  min-width: 0;
}

.ft-page-dashboard.ft-editorial-shell .card,
.ft-page-dashboard.ft-editorial-shell .dropdown-menu,
.ft-page-dashboard.ft-editorial-shell .modal-content,
.ft-page-dashboard.ft-editorial-shell .ft-panel,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .card,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .dropdown-menu,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .modal-content,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-panel,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-kpi-card {
  background: #ffffff !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card {
  box-shadow: none !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .border-bottom-sm > .d-flex > p,
.ft-page-dashboard.ft-editorial-shell .ft-panel h3,
.ft-page-dashboard.ft-editorial-shell .ft-dashboard-header > h2,
.ft-page-dashboard.ft-editorial-shell .ft-metric-value,
.ft-page-dashboard.ft-editorial-shell .text-body,
.ft-page-dashboard.ft-editorial-shell .text-body-emphasis,
.ft-page-dashboard.ft-editorial-shell .text-body-highlight,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-kpi-card .border-bottom-sm > .d-flex > p,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-panel h3,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-dashboard-header > h2,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-metric-value,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .text-body,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .text-body-emphasis,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .text-body-highlight {
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-panel p,
.ft-page-dashboard.ft-editorial-shell .text-body-secondary,
.ft-page-dashboard.ft-editorial-shell .text-body-tertiary,
.ft-page-dashboard.ft-editorial-shell .text-body-quaternary,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-panel p,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .text-body-secondary,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .text-body-tertiary,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .text-body-quaternary {
  color: var(--ft-text-muted) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card p[id],
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card p[id] .fs-8 {
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .badge {
  background: #fff3e4 !important;
  border: 1px solid #ffd6a3 !important;
  color: #b45309 !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table {
  --phoenix-table-bg: transparent;
  --phoenix-table-color: var(--ft-text-secondary);
  --phoenix-table-border-color: var(--ft-border);
  color: var(--ft-text-secondary) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table th {
  background: var(--ft-surface-subtle) !important;
  color: var(--ft-text-muted) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table td,
.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table a,
.ft-page-dashboard.ft-editorial-shell .ft-top-creditors .list-group-item,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-dashboard .table td,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-dashboard .table a,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .ft-top-creditors .list-group-item {
  background: transparent !important;
  color: var(--ft-text-secondary) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table a {
  color: #356cff !important;
}

.ft-page-dashboard.ft-editorial-shell .support-chat .card,
.ft-page-dashboard.ft-editorial-shell .btn-support-chat,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .support-chat .card,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .btn-support-chat {
  background: #ffffff !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-primary-700) !important;
}

.ft-page-dashboard.ft-editorial-shell .btn-support-chat {
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.12) !important;
}

.ft-page-dashboard.ft-editorial-shell .navbar-vertical-footer .btn {
  justify-content: center;
  overflow: hidden;
  padding-inline: 0.65rem;
}

.ft-page-dashboard.ft-editorial-shell .support-chat .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--ft-border) !important;
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .support-chat .card-header h5,
.ft-page-dashboard.ft-editorial-shell .support-chat .card-header .text-body {
  color: var(--ft-text) !important;
}

.ft-page-dashboard.ft-editorial-shell .support-chat .chat,
.ft-page-dashboard.ft-editorial-shell .support-chat .card-footer {
  background: #ffffff !important;
}

.ft-page-dashboard.ft-editorial-shell .footer {
  border-top: 1px solid var(--ft-border) !important;
  min-height: 2.6rem;
}

@media (max-width: 767.98px) {
  .ft-page-dashboard.ft-editorial-shell .navbar-top,
  [data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell .navbar-top {
    background: #ffffff !important;
    color: var(--ft-text) !important;
  }
}

/* Final dashboard shell corrections: remove non-functional chrome and align the shell. */
@media (min-width: 992px) {
  html:not(.navbar-vertical-collapsed) {
    --phoenix-navbar-vertical-width: 12.75rem;
    --ft-sidebar-width: 12.75rem;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-vertical {
    bottom: 0 !important;
    height: 100vh !important;
    left: 0 !important;
    min-height: 100vh !important;
    top: 0 !important;
    width: var(--phoenix-navbar-vertical-width) !important;
    z-index: 1032 !important;
  }

  .ft-page-dashboard.ft-editorial-shell::before {
    background: var(--ft-navy-950);
    bottom: 0;
    content: "";
    left: 0;
    position: fixed;
    top: 0;
    width: var(--phoenix-navbar-vertical-width);
    z-index: 1031;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-vertical > *,
  .ft-page-dashboard.ft-editorial-shell #navbarVerticalCollapse,
  .ft-page-dashboard.ft-editorial-shell .navbar-vertical-content,
  .ft-page-dashboard.ft-editorial-shell .ft-sidebar-brand {
    max-width: none !important;
    width: var(--phoenix-navbar-vertical-width) !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-vertical .navbar-vertical-content {
    height: calc(100vh - 3.6rem) !important;
    padding-bottom: 4rem !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-vertical-footer {
    bottom: 0 !important;
    left: 0 !important;
    position: fixed !important;
    width: var(--phoenix-navbar-vertical-width) !important;
    z-index: 1034 !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-vertical-footer .btn {
    border-radius: 0 !important;
    min-height: 3.6rem;
    width: 100% !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-top {
    left: var(--phoenix-navbar-vertical-width) !important;
    min-height: var(--phoenix-navbar-top-height) !important;
    padding-inline: 1.25rem !important;
    right: 0 !important;
    width: calc(100% - var(--phoenix-navbar-vertical-width)) !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-top > .collapse {
    display: flex !important;
    justify-content: space-between !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-top .navbar-logo {
    display: none !important;
  }

  .ft-page-dashboard.ft-editorial-shell .navbar-top-search-box {
    margin-left: 11rem !important;
    max-width: 42.5rem !important;
    width: min(42.5rem, 46vw) !important;
  }

  .ft-page-dashboard.ft-editorial-shell .content {
    margin-left: var(--phoenix-navbar-vertical-width) !important;
    padding-top: calc(var(--phoenix-navbar-top-height) + 0.65rem) !important;
  }
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-strip,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card {
  overflow: visible !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-strip::after,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-item::after,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card::after {
  display: none !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card {
  min-height: 7.25rem !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .card-body {
  padding: 0.85rem 1rem 0.8rem !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .fa-chevron-right,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .uil-angle-right,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card [data-feather="chevron-right"] {
  display: none !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .card-body > .d-flex > div:nth-child(3) {
  display: block !important;
  margin-top: 0.15rem !important;
  min-height: 1.1rem;
}

.ft-page-dashboard.ft-editorial-shell .ft-kpi-card #ultimaAtividadeJames,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card #proximaAtividadeJames,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card #apisJames,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card #ultimaSincronizacaoBancaria,
.ft-page-dashboard.ft-editorial-shell .ft-kpi-card #totalQuebras {
  max-height: none !important;
  overflow: visible !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-operators {
  overflow: visible !important;
  padding-left: 1.25rem !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-operators > .row {
  column-gap: 0.75rem !important;
  grid-template-columns: minmax(10rem, 1.15fr) minmax(8.5rem, 0.85fr) !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-operators #ocorrenciasOperadorHoje {
  min-width: 0 !important;
  overflow: visible !important;
  padding-left: 0.05rem !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-operator-row {
  grid-template-columns: 1.35rem minmax(0, 1fr) 1.4rem !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-operator-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}

.ft-page-dashboard.ft-editorial-shell .ft-operators #chartOcorrenciasPorOperador {
  min-width: 8rem !important;
}

/* Debtors list pilot: incremental modernization of pages/devedores/devedores.html. */
.ft-page-debtors.ft-editorial-shell,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell {
  --ft-canvas: #ffffff;
  --ft-surface-subtle: #f8fafc;
  --ft-border: #d8e0ea;
  --ft-border-strong: #c6d1df;
  --ft-text: #101828;
  --ft-text-secondary: #475467;
  --ft-text-muted: #667085;
  --ft-primary-100: #eaf2ff;
  --ft-shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

.ft-page-debtors.ft-editorial-shell .content,
.ft-page-debtors.ft-editorial-shell .navbar-top,
.ft-page-debtors.ft-editorial-shell .footer,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .content,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .navbar-top,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .footer {
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

@media (min-width: 992px) {
  .ft-page-debtors.ft-editorial-shell {
    --phoenix-navbar-vertical-width: 12.75rem;
    --ft-sidebar-width: 12.75rem;
  }

  .ft-page-debtors.ft-editorial-shell::before {
    background: var(--ft-navy-950);
    bottom: 0;
    content: "";
    left: 0;
    position: fixed;
    top: 0;
    width: var(--phoenix-navbar-vertical-width);
    z-index: 1031;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-vertical {
    bottom: 0 !important;
    height: 100vh !important;
    left: 0 !important;
    min-height: 100vh !important;
    top: 0 !important;
    width: var(--phoenix-navbar-vertical-width) !important;
    z-index: 1032 !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-vertical > *,
  .ft-page-debtors.ft-editorial-shell #navbarVerticalCollapse,
  .ft-page-debtors.ft-editorial-shell .navbar-vertical-content,
  .ft-page-debtors.ft-editorial-shell .ft-sidebar-brand {
    max-width: none !important;
    width: var(--phoenix-navbar-vertical-width) !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-vertical .navbar-vertical-content {
    height: calc(100vh - 3.6rem) !important;
    padding-bottom: 4rem !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-vertical-footer {
    bottom: 0 !important;
    left: 0 !important;
    position: fixed !important;
    width: var(--phoenix-navbar-vertical-width) !important;
    z-index: 1034 !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-vertical-footer .btn {
    border-radius: 0 !important;
    min-height: 3.6rem;
    width: 100% !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-top {
    left: var(--phoenix-navbar-vertical-width) !important;
    min-height: var(--phoenix-navbar-top-height) !important;
    padding-inline: 1.25rem !important;
    right: 0 !important;
    width: calc(100% - var(--phoenix-navbar-vertical-width)) !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-top .navbar-logo {
    display: none !important;
  }

  .ft-page-debtors.ft-editorial-shell .navbar-top-search-box {
    margin-left: 11rem !important;
    max-width: 42.5rem !important;
    width: min(42.5rem, 46vw) !important;
  }

  .ft-page-debtors.ft-editorial-shell .content {
    margin-left: var(--phoenix-navbar-vertical-width) !important;
    padding: calc(var(--phoenix-navbar-top-height) + 0.9rem) 1.25rem 1.5rem !important;
  }
}

.ft-page-debtors.ft-editorial-shell .navbar-top {
  border-bottom: 1px solid var(--ft-border) !important;
  box-shadow: none !important;
}

.ft-page-debtors .ft-list-shell {
  color: var(--ft-text);
}

.ft-page-debtors .ft-list-header {
  align-items: flex-end;
  border-bottom: 1px solid transparent;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.95rem !important;
}

.ft-page-debtors .ft-list-header h2 {
  color: var(--ft-text);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ft-page-debtors .ft-list-header .ft-list-header-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-left: auto;
}

.ft-page-debtors .ft-list-header .ft-list-header-actions .btn {
  border-radius: var(--ft-radius-md);
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 2.35rem;
  white-space: nowrap;
}

.ft-page-debtors .ft-list-header p {
  color: var(--ft-text-muted) !important;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.ft-page-debtors .ft-filter-panel {
  background: #ffffff;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  padding: 1rem;
}

.ft-page-debtors .ft-filter-panel .ft-filter-grid {
  --bs-gutter-y: 0.95rem;
}

@media (min-width: 1200px) {
  .ft-page-debtors .ft-filter-panel .ft-filter-grid > .col-xl {
    flex: 0 0 auto;
    width: 20%;
  }
}

.ft-page-debtors .ft-filter-panel .input-group,
.ft-page-debtors .ft-filter-panel .ft-filter-field {
  align-items: stretch;
  border-radius: var(--ft-radius-md);
  flex-direction: column;
  gap: 0.42rem;
}

.ft-page-debtors .ft-filter-panel .ft-filter-field {
  display: flex;
}

.ft-page-debtors .ft-filter-panel .ft-filter-label {
  background: transparent;
  border: 0;
  color: var(--ft-text-secondary);
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.15;
  padding: 0;
}

.ft-page-debtors .ft-filter-panel .search-box,
.ft-page-debtors .ft-filter-panel .search-box form,
.ft-page-debtors .ft-filter-panel .search-input {
  max-width: 100%;
  width: 100% !important;
}

.ft-page-debtors .ft-filter-panel .form-control,
.ft-page-debtors .ft-filter-panel .form-select {
  background: #ffffff !important;
  border-color: var(--ft-border-strong) !important;
  border-radius: var(--ft-radius-md) !important;
  color: var(--ft-text) !important;
  font-size: 0.78rem;
  min-height: 2.15rem;
  width: 100%;
}

.ft-page-debtors .ft-filter-panel .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-position: right 0.85rem center !important;
  background-repeat: no-repeat !important;
  background-size: 0.78rem 0.78rem !important;
  padding-right: 2.25rem !important;
}

.ft-page-debtors .ft-filter-panel input[type="date"] {
  color-scheme: light;
}

.ft-page-debtors .ft-filter-panel input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(31%) sepia(17%) saturate(646%) hue-rotate(179deg) brightness(92%) contrast(91%);
  opacity: 1;
}

.ft-page-debtors .ft-filter-panel .form-control:focus,
.ft-page-debtors .ft-filter-panel .form-select:focus {
  border-color: var(--ft-primary-600) !important;
  box-shadow: 0 0 0 0.18rem rgba(21, 112, 239, 0.12) !important;
}

.ft-page-debtors .ft-filter-panel .btn {
  min-height: 2.15rem;
  width: 100%;
}

.ft-page-debtors .ft-filter-panel .ft-filter-actions {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 0.15rem;
}

.ft-page-debtors .ft-filter-panel .ft-filter-actions .btn {
  min-width: 12rem;
  width: auto;
}

@media (max-width: 767.98px) {
  .ft-page-debtors .ft-filter-panel .ft-filter-actions {
    flex-direction: column;
  }

  .ft-page-debtors .ft-filter-panel .ft-filter-actions .btn {
    width: 100%;
  }
}

.ft-page-debtors .ft-filter-panel #exportButton {
  --phoenix-btn-bg: #16a34a;
  --phoenix-btn-border-color: #16a34a;
  --phoenix-btn-color: #ffffff;
  --phoenix-btn-hover-bg: #15803d;
  --phoenix-btn-hover-border-color: #15803d;
  --phoenix-btn-hover-color: #ffffff;
  --phoenix-btn-active-bg: #166534;
  --phoenix-btn-active-border-color: #166534;
  --phoenix-btn-active-color: #ffffff;
  --phoenix-btn-disabled-bg: #86efac;
  --phoenix-btn-disabled-border-color: #86efac;
  --phoenix-btn-disabled-color: #ffffff;
  font-weight: 500;
}

.ft-page-debtors #divLoadingFilter {
  background: var(--ft-surface-subtle);
  border: 1px dashed var(--ft-border-strong);
  border-radius: var(--ft-radius-md);
  margin-block: 1rem !important;
  padding: 1rem;
}

.ft-page-debtors #divLoadingFilter hr {
  display: none;
}

.ft-page-debtors #divLoadingFilter h4 {
  color: var(--ft-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.ft-page-debtors .ft-table-panel {
  background: #ffffff !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  margin: 0 !important;
  overflow: hidden;
  padding: 0 !important;
}

.ft-page-debtors .ft-table-panel .table-responsive {
  margin: 0 !important;
  padding: 0 !important;
}

.ft-page-debtors .ft-table-panel .table {
  --phoenix-table-bg: #ffffff;
  --phoenix-table-color: var(--ft-text-secondary);
  --phoenix-table-border-color: var(--ft-border);
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem !important;
}

.ft-page-debtors .ft-table-panel thead th {
  background: var(--ft-surface-subtle) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  padding: 0.72rem 0.85rem !important;
}

.ft-page-debtors .ft-table-panel tbody td {
  border-color: var(--ft-border) !important;
  color: var(--ft-text-secondary) !important;
  padding: 0.72rem 0.85rem !important;
}

.ft-page-debtors .ft-table-panel tbody tr:hover {
  background: var(--ft-primary-100) !important;
}

.ft-page-debtors .ft-table-panel a {
  color: var(--ft-text) !important;
  text-decoration: none;
}

.ft-page-debtors .ft-table-panel a p,
.ft-page-debtors .ft-table-panel .text-body-emphasis,
[data-bs-theme="dark"] .ft-page-debtors .ft-table-panel a p,
[data-bs-theme="dark"] .ft-page-debtors .ft-table-panel .text-body-emphasis {
  color: var(--ft-text) !important;
}

.ft-page-debtors .ft-table-panel .avatar {
  border: 1px solid var(--ft-border);
}

.ft-page-debtors .ft-list-footer {
  background: #ffffff;
  border-top: 1px solid var(--ft-border);
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
}

.ft-page-debtors #totaldevedores {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

.ft-page-debtors #totalTitulos {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

.ft-page-debtors #totalAcordos {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

.ft-page-debtors #totalParcelas {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

.ft-page-debtors #totalOcorrencias,
.ft-page-debtors #totalCredores,
.ft-page-debtors #totalUsuarios,
.ft-page-debtors #totalagendamentos {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

.ft-page-strategies .ft-strategy-summary {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ft-page-strategies .ft-summary-item {
  background: #ffffff;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  padding: 0.95rem 1rem;
}

.ft-page-strategies .ft-summary-item span {
  color: var(--ft-text-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.ft-page-strategies .ft-summary-item strong {
  color: var(--ft-text);
  display: block;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.ft-page-strategies .ft-strategy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ft-page-strategies .ft-strategy-card-wrap,
.ft-page-strategies .ft-strategy-card,
.ft-page-strategies .ft-strategy-card > .card {
  min-width: 0;
}

.ft-page-strategies .ft-strategy-card > .card {
  background: #ffffff;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  overflow: hidden;
}

.ft-page-strategies .ft-strategy-card .card-body {
  padding: 1.15rem;
}

.ft-page-strategies .ft-strategy-card h4 {
  color: var(--ft-text);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ft-page-strategies .ft-strategy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ft-page-strategies .ft-strategy-metrics {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.ft-page-strategies .ft-strategy-metrics > div {
  background: var(--ft-surface-subtle);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  padding: 0.7rem;
}

.ft-page-strategies .ft-strategy-metrics span {
  color: var(--ft-text-muted);
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 0.18rem;
}

.ft-page-strategies .ft-strategy-metrics strong {
  color: var(--ft-text);
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
}

.ft-page-strategies .progress {
  background: var(--ft-primary-100) !important;
  border-radius: 999px;
  height: 0.48rem;
}

.ft-page-strategies .progress-bar {
  border-radius: 999px;
}

.ft-page-strategies .ft-strategy-created,
.ft-page-strategies .ft-strategy-users,
.ft-page-strategies .ft-strategy-user-list {
  color: var(--ft-text-secondary);
}

.ft-page-strategies .ft-strategy-user-list {
  border-top: 1px solid var(--ft-border);
  min-height: 3rem;
}

.ft-page-strategies .borda-piscando {
  animation: piscar-borda 2s infinite;
  border-radius: var(--ft-radius-lg);
  padding: 0;
}

.ft-page-carriers .ft-carrier-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.ft-page-carriers .ft-carrier-card {
  background: #ffffff;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  overflow: hidden;
}

.ft-page-carriers .ft-carrier-card .card-body {
  padding: 1.15rem;
}

.ft-page-carriers .ft-carrier-card-header {
  border-bottom: 1px solid var(--ft-border);
  padding-bottom: 1rem;
}

.ft-page-carriers .ft-carrier-card h3 {
  color: var(--ft-text);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.ft-page-carriers .ft-carrier-card .avatar-5xl {
  height: 5.5rem;
  width: 5.5rem;
}

.ft-page-carriers .ft-carrier-card .avatar-name span {
  font-size: 2.75rem;
  font-weight: 500;
}

.ft-page-carriers .ft-carrier-meta {
  color: var(--ft-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.76rem;
  font-weight: 500;
}

.ft-page-carriers .ft-carrier-section {
  border-bottom: 1px solid var(--ft-border);
  padding: 1rem 0;
}

.ft-page-carriers .ft-carrier-section h5 {
  color: var(--ft-text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ft-page-carriers .form-label {
  color: var(--ft-text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.ft-page-carriers .form-control,
.ft-page-carriers .form-select {
  background: #ffffff !important;
  border-color: var(--ft-border-strong) !important;
  border-radius: var(--ft-radius-md) !important;
  color: var(--ft-text) !important;
  font-size: 0.78rem;
  min-height: 2.25rem;
}

.ft-page-carriers .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-position: right 0.85rem center !important;
  background-repeat: no-repeat !important;
  background-size: 0.78rem 0.78rem !important;
  padding-right: 2.25rem !important;
}

.ft-page-carriers .ft-carrier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  padding-top: 1rem;
}

.ft-page-carriers .ft-carrier-actions .btn {
  border-radius: var(--ft-radius-md);
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 2.25rem;
}

.ft-page-api-config .ft-config-panel,
.ft-page-email-api .ft-config-panel {
  background: #ffffff;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
}

.ft-page-api-config .ft-config-panel .card-body,
.ft-page-email-api .ft-config-panel .card-body {
  padding: 1.15rem;
}

.ft-page-api-config .ft-config-panel h5,
.ft-page-email-api .ft-config-panel h5 {
  color: var(--ft-text);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ft-page-api-config .form-label,
.ft-page-email-api .form-label {
  color: var(--ft-text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.ft-page-api-config .form-control,
.ft-page-api-config .form-select,
.ft-page-email-api .form-control,
.ft-page-email-api .form-select {
  background: #ffffff !important;
  border-color: var(--ft-border-strong) !important;
  border-radius: var(--ft-radius-md) !important;
  color: var(--ft-text) !important;
  font-size: 0.78rem;
  min-height: 2.25rem;
}

.ft-page-api-config .input-group-text {
  background: var(--ft-surface-subtle) !important;
  border-color: var(--ft-border-strong) !important;
  border-radius: var(--ft-radius-md) 0 0 var(--ft-radius-md) !important;
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  font-weight: 500;
}

.ft-page-api-config .input-group .form-control {
  border-radius: 0 var(--ft-radius-md) var(--ft-radius-md) 0 !important;
}

.ft-page-api-config .ft-api-balance-card {
  max-width: 18rem;
}

.ft-page-api-config .ft-api-balance-card .card {
  background: #ffffff;
  border-color: var(--ft-primary-300) !important;
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
}

.ft-page-api-config .ft-api-balance-card h4 {
  color: var(--ft-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.ft-page-api-config .ft-api-balance-card h5 {
  color: var(--ft-text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.ft-page-api-config .ft-table-panel .table {
  table-layout: auto;
}

.ft-page-api-config .ft-table-panel tbody td:last-child {
  min-width: 10rem;
  overflow: visible;
  white-space: nowrap;
}

.ft-page-api-config .ft-table-panel tbody td:last-child .btn {
  margin-bottom: 0.25rem;
  margin-right: 0.25rem;
}

.ft-page-api-config #totalSMSAPIS,
.ft-page-api-config #totalWhatsappAPIS,
.ft-page-email-api #totalServicosEmail {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

[data-bs-theme="dark"] .ft-page-carriers.ft-editorial-shell .ft-carrier-card {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .ft-page-carriers.ft-editorial-shell .form-control,
[data-bs-theme="dark"] .ft-page-carriers.ft-editorial-shell .form-select {
  background-color: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

[data-bs-theme="dark"] .ft-page-carriers.ft-editorial-shell .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dbeafe' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-bs-theme="dark"] .ft-page-api-config.ft-editorial-shell .ft-config-panel,
[data-bs-theme="dark"] .ft-page-email-api.ft-editorial-shell .ft-config-panel {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .ft-page-api-config.ft-editorial-shell .form-control,
[data-bs-theme="dark"] .ft-page-api-config.ft-editorial-shell .form-select,
[data-bs-theme="dark"] .ft-page-email-api.ft-editorial-shell .form-control,
[data-bs-theme="dark"] .ft-page-email-api.ft-editorial-shell .form-select {
  background-color: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

[data-bs-theme="dark"] .ft-page-api-config.ft-editorial-shell .input-group-text,
[data-bs-theme="dark"] .ft-page-api-config.ft-editorial-shell .ft-api-balance-card .card {
  background-color: rgba(15, 23, 42, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

[data-bs-theme="dark"] .ft-page-strategies.ft-editorial-shell .ft-summary-item,
[data-bs-theme="dark"] .ft-page-strategies.ft-editorial-shell .ft-strategy-card > .card {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.24);
}

[data-bs-theme="dark"] .ft-page-strategies.ft-editorial-shell .ft-strategy-metrics > div {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .ft-page-strategies.ft-editorial-shell .progress {
  background: rgba(59, 130, 246, 0.16) !important;
}

@media (max-width: 1199.98px) {
  .ft-page-strategies .ft-strategy-grid,
  .ft-page-strategies .ft-strategy-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ft-page-debtors .ft-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .ft-page-debtors .ft-list-header .ft-list-header-actions {
    flex-direction: column;
    margin-left: 0;
    width: 100%;
  }

  .ft-page-strategies .ft-strategy-grid,
  .ft-page-strategies .ft-strategy-summary {
    grid-template-columns: 1fr;
  }
}

.ft-page-titles .ft-table-panel .table,
.ft-page-agreements .ft-table-panel .table,
.ft-page-installments .ft-table-panel .table,
.ft-page-occurrences .ft-table-panel .table,
.ft-page-creditors .ft-table-panel .table,
.ft-page-users .ft-table-panel .table,
.ft-page-api-config .ft-table-panel .table,
.ft-page-banksync .ft-table-panel .table,
.ft-page-email-api .ft-table-panel .table,
.ft-page-schedules .ft-table-panel .table,
.ft-page-agreement-breaks .ft-table-panel .table {
  table-layout: fixed;
  width: 100%;
}

.ft-page-titles .ft-table-panel th,
.ft-page-titles .ft-table-panel td,
.ft-page-agreements .ft-table-panel th,
.ft-page-agreements .ft-table-panel td,
.ft-page-installments .ft-table-panel th,
.ft-page-installments .ft-table-panel td,
.ft-page-occurrences .ft-table-panel th,
.ft-page-occurrences .ft-table-panel td,
.ft-page-creditors .ft-table-panel th,
.ft-page-creditors .ft-table-panel td,
.ft-page-users .ft-table-panel th,
.ft-page-users .ft-table-panel td,
.ft-page-api-config .ft-table-panel th,
.ft-page-api-config .ft-table-panel td,
.ft-page-banksync .ft-table-panel th,
.ft-page-banksync .ft-table-panel td,
.ft-page-email-api .ft-table-panel th,
.ft-page-email-api .ft-table-panel td,
.ft-page-schedules .ft-table-panel th,
.ft-page-schedules .ft-table-panel td,
.ft-page-agreement-breaks .ft-table-panel th,
.ft-page-agreement-breaks .ft-table-panel td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ft-page-titles .ft-table-panel a,
.ft-page-agreements .ft-table-panel a,
.ft-page-installments .ft-table-panel a,
.ft-page-occurrences .ft-table-panel a,
.ft-page-creditors .ft-table-panel a,
.ft-page-users .ft-table-panel a,
.ft-page-api-config .ft-table-panel a,
.ft-page-banksync .ft-table-panel a,
.ft-page-email-api .ft-table-panel a,
.ft-page-schedules .ft-table-panel a,
.ft-page-agreement-breaks .ft-table-panel a {
  min-width: 0;
  max-width: 100%;
}

.ft-page-titles .ft-table-panel a p,
.ft-page-agreements .ft-table-panel a p,
.ft-page-installments .ft-table-panel a p,
.ft-page-occurrences .ft-table-panel a p,
.ft-page-creditors .ft-table-panel a p,
.ft-page-users .ft-table-panel a p,
.ft-page-api-config .ft-table-panel a p,
.ft-page-banksync .ft-table-panel a p,
.ft-page-email-api .ft-table-panel a p,
.ft-page-schedules .ft-table-panel a p,
.ft-page-agreement-breaks .ft-table-panel a p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-page-agreements .ft-table-panel .progress {
  background: var(--ft-surface-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.ft-page-agreements .ft-table-panel thead th {
  font-size: 0.64rem;
  line-height: 1.05;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.ft-page-agreements .ft-table-panel tbody td,
.ft-page-agreements .ft-table-panel thead th {
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
}

.ft-page-agreements .ft-table-panel tbody td {
  font-size: 0.72rem;
}

.ft-page-agreements .ft-table-panel .projectprogress p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-page-installments .ft-table-panel thead th {
  font-size: 0.63rem;
  line-height: 1.05;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.ft-page-installments .ft-table-panel tbody td,
.ft-page-installments .ft-table-panel thead th {
  padding-left: 0.42rem !important;
  padding-right: 0.42rem !important;
}

.ft-page-installments .ft-table-panel tbody td {
  font-size: 0.71rem;
}

.ft-page-occurrences .ft-table-panel thead th,
.ft-page-creditors .ft-table-panel thead th,
.ft-page-users .ft-table-panel thead th,
.ft-page-api-config .ft-table-panel thead th,
.ft-page-banksync .ft-table-panel thead th,
.ft-page-email-api .ft-table-panel thead th,
.ft-page-schedules .ft-table-panel thead th,
.ft-page-agreement-breaks .ft-table-panel thead th {
  font-size: 0.64rem;
  line-height: 1.05;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.ft-page-occurrences .ft-table-panel tbody td,
.ft-page-occurrences .ft-table-panel thead th,
.ft-page-creditors .ft-table-panel tbody td,
.ft-page-creditors .ft-table-panel thead th,
.ft-page-users .ft-table-panel tbody td,
.ft-page-users .ft-table-panel thead th,
.ft-page-api-config .ft-table-panel tbody td,
.ft-page-api-config .ft-table-panel thead th,
.ft-page-banksync .ft-table-panel tbody td,
.ft-page-banksync .ft-table-panel thead th,
.ft-page-email-api .ft-table-panel tbody td,
.ft-page-email-api .ft-table-panel thead th,
.ft-page-schedules .ft-table-panel tbody td,
.ft-page-schedules .ft-table-panel thead th,
.ft-page-agreement-breaks .ft-table-panel tbody td,
.ft-page-agreement-breaks .ft-table-panel thead th {
  padding-left: 0.48rem !important;
  padding-right: 0.48rem !important;
}

.ft-page-occurrences .ft-table-panel tbody td,
.ft-page-creditors .ft-table-panel tbody td,
.ft-page-users .ft-table-panel tbody td,
.ft-page-api-config .ft-table-panel tbody td,
.ft-page-banksync .ft-table-panel tbody td,
.ft-page-email-api .ft-table-panel tbody td,
.ft-page-schedules .ft-table-panel tbody td,
.ft-page-agreement-breaks .ft-table-panel tbody td {
  font-size: 0.72rem;
}

.ft-page-debtors #pagination-container {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.ft-page-debtors #pagination-container .btn {
  border-radius: var(--ft-radius-md);
  font-size: 0.76rem;
  font-weight: 500;
}

.ft-page-banksync #totalBoletos {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
}

.ft-page-banksync #pagination-container {
  gap: 0.4rem;
}

.ft-page-banksync .ft-table-panel tbody td:nth-child(7) a {
  display: block !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-page-debtors .ft-form-shell {
  gap: 1rem;
}

.ft-page-debtors .ft-entity-hero {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 237, 0.12), transparent 32%),
    var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem;
}

.ft-page-debtors .ft-entity-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--ft-primary-600), #1d4ed8);
  border-radius: 1.25rem;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 500;
  height: 4.2rem;
  justify-content: center;
  width: 4.2rem;
}

.ft-page-debtors .ft-entity-main {
  min-width: 0;
}

.ft-page-debtors .ft-entity-main h3 {
  color: var(--ft-text);
  font-size: 1.15rem;
  font-weight: 500;
}

.ft-page-debtors .ft-entity-status {
  margin-left: auto;
}

.ft-page-debtors .ft-form-panel {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  overflow: hidden;
}

.ft-page-debtors .ft-form-section {
  border-bottom: 1px solid var(--ft-border);
  padding: 1.2rem;
}

.ft-page-debtors .ft-form-section:last-child {
  border-bottom: 0;
}

.ft-page-debtors .ft-form-section-header {
  margin-bottom: 1rem;
}

.ft-page-debtors .ft-form-section-header h5 {
  color: var(--ft-text);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.ft-page-debtors .ft-form-section-header p {
  color: var(--ft-text-secondary);
  font-size: 0.78rem;
  margin: 0.15rem 0 0;
}

.ft-page-debtors .ft-form-panel .form-label {
  color: var(--ft-text);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.ft-page-debtors .ft-form-panel .form-control,
.ft-page-debtors .ft-form-panel .form-select {
  background-color: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  color: var(--ft-text);
  font-size: 0.82rem;
  min-height: 2.35rem;
}

.ft-page-debtors .ft-form-panel h3.form-control {
  align-items: center;
  display: flex;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0;
}

.ft-page-debtors .ft-form-panel textarea.form-control {
  min-height: 7.5rem;
}

.ft-page-debtors .ft-form-panel .form-control:focus,
.ft-page-debtors .ft-form-panel .form-select:focus {
  border-color: var(--ft-primary-600);
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.12);
}

.ft-page-creditor-create .ft-list-header-actions .btn-primary,
.ft-page-debtor-create .ft-list-header-actions .btn-primary,
.ft-page-debtor-creditor-create .ft-list-header-actions .btn-primary,
.ft-page-title-create .ft-list-header-actions .btn-primary,
.ft-page-title-detail .ft-list-header-actions .btn-primary,
.ft-page-titles-debtor .ft-list-header-actions .btn-primary {
  background: var(--ft-primary-600);
  border-color: var(--ft-primary-600);
}

.ft-page-debtors .ft-form-switch-card {
  align-items: center;
  background: var(--ft-surface-subtle);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  display: flex;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
}

.ft-page-debtors .ft-form-switch-card .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.ft-page-debtors .ft-form-switch-card .form-check-label {
  color: var(--ft-text);
  font-size: 0.76rem;
  font-weight: 500;
}

.ft-page-agreement-detail .ft-alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: var(--ft-radius-md);
  color: #dc3545;
}

.ft-page-agreement-detail .ft-alert-danger h3 {
  color: #dc3545;
  font-size: 1rem;
  font-weight: 500;
}

.ft-page-agreement-detail .ft-agreement-hero {
  box-shadow: none;
}

.ft-page-agreement-detail .ft-meta-line {
  color: var(--ft-text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.ft-page-agreement-detail .ft-agreement-kpis {
  border-bottom: 1px solid var(--ft-border);
  border-top: 1px solid var(--ft-border);
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
  padding: 1rem 0;
}

.ft-page-agreement-detail .ft-agreement-kpis h6 {
  color: var(--ft-text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
}

.ft-page-agreement-detail .ft-agreement-kpis h4 {
  color: var(--ft-text);
  font-size: 0.92rem;
  font-weight: 500;
}

.ft-page-agreement-detail .ft-agreement-progress {
  border-bottom: 1px solid var(--ft-border);
  padding: 1rem 0;
}

.ft-page-agreement-detail .ft-action-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ft-page-agreement-detail .ft-action-wrap > div {
  margin: 0 !important;
  padding: 0 !important;
}

.ft-page-agreement-detail .ft-table-panel {
  margin-bottom: 1.25rem;
}

[data-bs-theme="dark"] .ft-page-debtors .ft-entity-hero,
[data-bs-theme="dark"] .ft-page-debtors .ft-form-panel {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
}

.ft-page-debtors .ft-list-loading {
  align-items: center;
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  color: var(--ft-text);
  display: flex;
  justify-content: center;
  min-height: 11rem;
  padding: 1.5rem;
}

.ft-page-debtors .ft-list-loading h2,
.ft-page-debtors .ft-list-loading h3 {
  color: var(--ft-text);
  font-size: 1.2rem;
  font-weight: 500;
}

[data-bs-theme="dark"] .ft-page-debtors .ft-list-loading {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
}

.ft-page-debtors.ft-editorial-shell .btn-support-chat,
.ft-page-debtors.ft-editorial-shell .support-chat .card,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .btn-support-chat,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .support-chat .card {
  background: #ffffff !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-primary-700) !important;
}

.ft-page-debtors.ft-editorial-shell .btn-support-chat {
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.12) !important;
}

/* Debtors list light fidelity lock against persisted Phoenix dark mode. */
.ft-page-debtors.ft-editorial-shell .ft-filter-panel .input-group-text,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-filter-panel .input-group-text {
  background: #f8fafc !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text-secondary) !important;
}

.ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-control,
.ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-select,
.ft-page-debtors.ft-editorial-shell .navbar-top-search-box .search-input,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-control,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-select,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .navbar-top-search-box .search-input {
  background-color: #ffffff !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

.ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-select,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
}

.ft-page-debtors.ft-editorial-shell .ft-filter-panel input[type="date"],
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-filter-panel input[type="date"] {
  color-scheme: light;
}

.ft-page-debtors.ft-editorial-shell .ft-filter-panel input[type="date"]::-webkit-calendar-picker-indicator,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-filter-panel input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(31%) sepia(17%) saturate(646%) hue-rotate(179deg) brightness(92%) contrast(91%);
  opacity: 1;
}

.ft-page-debtors.ft-editorial-shell .ft-filter-panel .form-control::placeholder,
.ft-page-debtors.ft-editorial-shell .navbar-top-search-box .search-input::placeholder {
  color: #98a2b3 !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel,
.ft-page-debtors.ft-editorial-shell .ft-table-panel .table,
.ft-page-debtors.ft-editorial-shell .ft-table-panel thead,
.ft-page-debtors.ft-editorial-shell .ft-table-panel tbody,
.ft-page-debtors.ft-editorial-shell .ft-table-panel tr,
.ft-page-debtors.ft-editorial-shell .ft-list-footer {
  background: #ffffff !important;
  color: var(--ft-text-secondary) !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel thead th {
  background: #f8fafc !important;
  color: var(--ft-text-muted) !important;
}

[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .table,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel thead,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel tbody,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel tr,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-list-footer {
  background: var(--ft-surface) !important;
  color: var(--ft-text-secondary) !important;
}

[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel thead th {
  --phoenix-table-bg: var(--ft-surface);
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
}

.ft-page-debtors.ft-editorial-shell .text-body,
.ft-page-debtors.ft-editorial-shell .text-body-emphasis,
.ft-page-debtors.ft-editorial-shell .text-body-highlight,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .text-body,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .text-body-emphasis,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .text-body-highlight {
  color: var(--ft-text) !important;
}

.ft-page-debtors.ft-editorial-shell .text-body-secondary,
.ft-page-debtors.ft-editorial-shell .text-body-tertiary,
.ft-page-debtors.ft-editorial-shell .text-body-quaternary,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .text-body-secondary,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .text-body-tertiary,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .text-body-quaternary {
  color: var(--ft-text-muted) !important;
}

.ft-page-debtors.ft-editorial-shell .badge-phoenix-success {
  background: #e8f8ef !important;
  border-color: #b7ebc9 !important;
  color: #107c3c !important;
}

.ft-page-debtors.ft-editorial-shell .badge-phoenix-danger {
  background: #fff1f3 !important;
  border-color: #ffd1d8 !important;
  color: #b42335 !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge {
  align-items: center;
  background: #eef4ff !important;
  border: 1px solid #c7d7fe !important;
  border-radius: 999px !important;
  color: #344054 !important;
  display: inline-flex;
  font-size: 0.62rem !important;
  font-weight: 500;
  gap: 0.25rem;
  letter-spacing: 0.02em;
  line-height: 1;
  min-height: 1.25rem;
  padding: 0.28rem 0.48rem !important;
  text-transform: uppercase;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-success,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-success {
  background: #e8f8ef !important;
  border-color: #b7ebc9 !important;
  color: #107c3c !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-danger,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-danger {
  background: #fff1f3 !important;
  border-color: #ffd1d8 !important;
  color: #b42335 !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-info,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-info {
  background: #eff8ff !important;
  border-color: #b2ddff !important;
  color: #175cd3 !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-warning,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-warning {
  background: #fff7e8 !important;
  border-color: #fedf89 !important;
  color: #b54708 !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-primary,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-primary {
  background: #eef4ff !important;
  border-color: #c7d7fe !important;
  color: #3538cd !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-secondary,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .badge-phoenix-secondary {
  background: #f2f4f7 !important;
  border-color: #d0d5dd !important;
  color: #344054 !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel .avatar,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .ft-table-panel .avatar {
  display: none !important;
}

.ft-page-debtors.ft-editorial-shell .ft-table-panel a p {
  margin-left: 0 !important;
}

/* CR revamp bridge: modernizes legacy CR pages without changing their JS contracts. */
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .content > .mb-9,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .content > .ft-list-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #divLoading {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 5rem);
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #divLoading > h2 {
  align-items: center;
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  color: var(--ft-text);
  display: flex;
  font-size: 1.2rem;
  font-weight: 500;
  gap: 0.5rem;
  justify-content: center;
  min-height: 11rem;
  padding: 1.5rem;
  width: 100%;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .content > .mb-9 > .row.g-2.mb-4,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .content > .ft-list-shell > .row.g-2.mb-4 {
  align-items: flex-end;
  border-bottom: 1px solid var(--ft-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0 !important;
  padding-bottom: 0.9rem;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .content > .mb-9 > .row.g-2.mb-4 h2,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .content > .ft-list-shell > .row.g-2.mb-4 h2 {
  color: var(--ft-text);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mb-4,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:first-child,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:not(:has(#divLoadingFilter)) {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  margin-bottom: 1rem !important;
  padding: 1rem;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:first-child,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:not(:has(#divLoadingFilter)) {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ft-page-cr-debtors.ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.ft-page-cr-installments.ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:first-child,
body.ft-page-cr-installments.ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:not(:has(#divLoadingFilter)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row > [class*="col-"],
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5 > [class*="col-"] {
  max-width: none;
  width: 100%;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .input-group-text {
  background: transparent !important;
  border: 0 !important;
  color: var(--ft-text-secondary) !important;
  display: block;
  font-size: 0.68rem !important;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.2;
  padding: 0 !important;
  text-transform: uppercase;
  white-space: normal;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .form-control,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .form-select {
  background-color: #ffffff !important;
  border: 1px solid var(--ft-border-strong) !important;
  border-radius: 0.8rem !important;
  color: var(--ft-text) !important;
  min-height: 2.55rem;
  padding: 0.58rem 0.8rem !important;
  width: 100% !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-position: right 0.8rem center !important;
  background-repeat: no-repeat !important;
  background-size: 0.8rem !important;
  padding-right: 2.25rem !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm input[type="date"] {
  color-scheme: light;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(31%) sepia(17%) saturate(646%) hue-rotate(179deg) brightness(92%) contrast(91%);
  opacity: 1;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #bntLimparFiltros,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #bntBuscarParcelas {
  align-items: center;
  border-radius: 0.8rem !important;
  display: inline-flex;
  font-weight: 500;
  justify-content: center;
  margin: 0 !important;
  min-height: 2.55rem;
  width: 100%;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #bntBuscarParcelas,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #exportButton {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mx-n4,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > div.bg-body-emphasis.border-top.border-bottom {
  background: var(--ft-canvas) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden;
  padding: 0 !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mx-n4 .table-responsive,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > div.bg-body-emphasis.border-top.border-bottom .table-responsive {
  margin: 0 !important;
  padding: 0 !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores table {
  background: transparent !important;
  margin-bottom: 0 !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores thead th {
  background: var(--ft-surface-subtle) !important;
  border-bottom: 1px solid var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  padding: 0.8rem 1rem !important;
  text-transform: uppercase;
  white-space: nowrap;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores tbody td {
  border-bottom: 1px solid var(--ft-border) !important;
  color: var(--ft-text-secondary);
  padding: 0.85rem 1rem !important;
  vertical-align: middle;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores tbody tr:hover {
  background: rgba(47, 111, 237, 0.035) !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores a,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores a p {
  color: var(--ft-primary-700) !important;
  font-weight: 500;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores .avatar {
  display: none !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores a p {
  margin-left: 0 !important;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #totaldevedores,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #totalTitulos,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #totalAcordos,
body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #totalParcelas {
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem;
  margin: 0;
  padding: 0.9rem 1rem;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #pagination-container {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.75rem 1rem;
  width: 100%;
}

body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #pagination-container .btn {
  border-radius: 0.75rem !important;
  font-weight: 500;
  margin: 0 !important;
}

@media (max-width: 1399.98px) {
  body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row,
  body.ft-page-cr-debtors.ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row,
  body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:first-child,
  body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:not(:has(#divLoadingFilter)),
  body.ft-page-cr-debtors.ft-page-debtors.ft-editorial-shell #devedores > .mb-4 > .row,
  body.ft-page-cr-installments.ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:first-child,
  body.ft-page-cr-installments.ft-page-debtors.ft-editorial-shell #devedores > .row.g-3.mb-5:not(:has(#divLoadingFilter)) {
    grid-template-columns: 1fr;
  }
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: none;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .row:first-child {
  align-items: flex-end;
  border-bottom: 1px solid var(--ft-border);
  margin-bottom: 0 !important;
  padding-bottom: 0.9rem;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell h2 {
  color: var(--ft-text);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  padding: 1rem;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 > .row {
  align-items: end !important;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 > .row > [class*="col-"] {
  max-width: none;
  width: 100%;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 label {
  color: var(--ft-text-secondary);
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 .form-control {
  background-color: #ffffff !important;
  border: 1px solid var(--ft-border-strong) !important;
  border-radius: 0.8rem !important;
  color: var(--ft-text) !important;
  min-height: 2.55rem;
  padding: 0.58rem 0.8rem !important;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 input[type="date"] {
  color-scheme: light;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 br {
  display: none;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 .btn {
  border-radius: 0.8rem !important;
  font-weight: 500;
  margin: 0 !important;
  min-height: 2.55rem;
  width: 100%;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 #exportButton {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell #performanceOperacionalChart {
  background: var(--ft-canvas);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  max-width: 100%;
  width: 100% !important;
}

body.ft-page-cr-profile.ft-editorial-shell .container-small {
  max-width: none;
}

body.ft-page-cr-profile.ft-editorial-shell .card,
body.ft-page-cr-profile.ft-editorial-shell #profileTabContent {
  background: var(--ft-canvas) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg) !important;
  box-shadow: var(--ft-shadow-subtle);
}

body.ft-page-cr-profile.ft-editorial-shell #profileTabContent {
  padding: 1rem;
}

@media (max-width: 991.98px) {
  body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 > .row {
    grid-template-columns: 1fr;
  }
}

/* Debtor detail pilot: incremental modernization of pages/devedores/devedor.html. */
.ft-page-debtor-detail.ft-editorial-shell,
[data-bs-theme="dark"] .ft-page-debtor-detail.ft-editorial-shell {
  --ft-canvas: #ffffff;
  --ft-surface-subtle: #f8fafc;
  --ft-border: #d8e0ea;
  --ft-border-strong: #c6d1df;
  --ft-text: #101828;
  --ft-text-secondary: #475467;
  --ft-text-muted: #667085;
  --ft-shadow-subtle: 0 1px 2px rgba(16, 24, 40, 0.04);
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

.ft-page-debtor-detail.ft-editorial-shell .content,
.ft-page-debtor-detail.ft-editorial-shell .navbar-top,
.ft-page-debtor-detail.ft-editorial-shell .footer,
[data-bs-theme="dark"] .ft-page-debtor-detail.ft-editorial-shell .content,
[data-bs-theme="dark"] .ft-page-debtor-detail.ft-editorial-shell .navbar-top,
[data-bs-theme="dark"] .ft-page-debtor-detail.ft-editorial-shell .footer {
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

@media (min-width: 992px) {
  .ft-page-debtor-detail.ft-editorial-shell {
    --phoenix-navbar-vertical-width: 12.75rem;
    --ft-sidebar-width: 12.75rem;
  }

  .ft-page-debtor-detail.ft-editorial-shell::before {
    background: var(--ft-navy-950);
    bottom: 0;
    content: "";
    left: 0;
    position: fixed;
    top: 0;
    width: var(--phoenix-navbar-vertical-width);
    z-index: 1031;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-vertical {
    bottom: 0 !important;
    height: 100vh !important;
    left: 0 !important;
    min-height: 100vh !important;
    top: 0 !important;
    width: var(--phoenix-navbar-vertical-width) !important;
    z-index: 1032 !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-vertical > *,
  .ft-page-debtor-detail.ft-editorial-shell #navbarVerticalCollapse,
  .ft-page-debtor-detail.ft-editorial-shell .navbar-vertical-content,
  .ft-page-debtor-detail.ft-editorial-shell .ft-sidebar-brand {
    max-width: none !important;
    width: var(--phoenix-navbar-vertical-width) !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-vertical .navbar-vertical-content {
    height: calc(100vh - 3.6rem) !important;
    padding-bottom: 4rem !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-vertical-footer {
    bottom: 0 !important;
    left: 0 !important;
    position: fixed !important;
    width: var(--phoenix-navbar-vertical-width) !important;
    z-index: 1034 !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-vertical-footer .btn {
    border-radius: 0 !important;
    min-height: 3.6rem;
    width: 100% !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-top {
    left: var(--phoenix-navbar-vertical-width) !important;
    min-height: var(--phoenix-navbar-top-height) !important;
    padding-inline: 1.25rem !important;
    right: 0 !important;
    width: calc(100% - var(--phoenix-navbar-vertical-width)) !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-top .navbar-logo {
    display: none !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .navbar-top-search-box {
    margin-left: 11rem !important;
    max-width: 42.5rem !important;
    width: min(42.5rem, 46vw) !important;
  }

  .ft-page-debtor-detail.ft-editorial-shell .content {
    margin-left: var(--phoenix-navbar-vertical-width) !important;
    padding: calc(var(--phoenix-navbar-top-height) + 0.9rem) 1.25rem 1.5rem !important;
  }
}

.ft-page-debtor-detail.ft-editorial-shell .navbar-top {
  border-bottom: 1px solid var(--ft-border) !important;
  box-shadow: none !important;
}

.ft-page-debtor-detail .ft-detail-shell {
  color: var(--ft-text);
}

.ft-page-debtor-detail .ft-detail-header {
  align-items: flex-start !important;
  margin-bottom: 0.95rem !important;
}

.ft-page-debtor-detail .ft-detail-header .fa-briefcase {
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.8rem;
  color: var(--ft-primary-600);
  display: inline-flex;
  font-size: 1.05rem;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.ft-page-debtor-detail .ft-detail-header h2,
.ft-page-debtor-detail #tituloNomeCredor h2 {
  color: var(--ft-text) !important;
  font-size: clamp(1.25rem, 1.55vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.1rem;
}

.ft-page-debtor-detail .ft-detail-header .fa-briefcase {
  display: none;
}

.ft-page-debtor-detail #tituloNomeCredor h6 {
  color: var(--ft-text-muted) !important;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

.ft-page-debtor-detail .ft-detail-alert {
  background: #fff1f3 !important;
  border: 1px solid #ffd1d8;
  border-radius: var(--ft-radius-md);
}

.ft-page-debtor-detail .ft-detail-alert h3 {
  color: #b42335 !important;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.ft-page-debtor-detail .ft-detail-card,
.ft-page-debtor-detail .card,
[data-bs-theme="dark"] .ft-page-debtor-detail .ft-detail-card,
[data-bs-theme="dark"] .ft-page-debtor-detail .card {
  background: #ffffff !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-md) !important;
  box-shadow: var(--ft-shadow-subtle) !important;
  color: var(--ft-text) !important;
}

.ft-page-debtor-detail .card-body {
  padding: 1.1rem !important;
}

.ft-page-debtor-detail .ft-debtor-sheet-header {
  align-items: center;
  border-bottom: 1px solid var(--ft-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.ft-page-debtor-detail .ft-debtor-sheet-header p {
  color: var(--ft-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ft-page-debtor-detail .ft-debtor-sheet-header h3 {
  color: var(--ft-text) !important;
  font-size: 1.08rem;
  font-weight: 500;
}

.ft-page-debtor-detail .ft-debtor-creditor-strip {
  background: var(--ft-surface-subtle);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0 1rem;
  padding: 0.75rem;
}

.ft-page-debtor-detail .ft-debtor-basic-grid {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 0.35rem;
}

.ft-page-debtor-detail .ft-debtor-basic-item {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
  min-width: min(100%, 13rem);
}

.ft-page-debtor-detail .ft-debtor-basic-item > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.ft-page-debtor-detail .ft-debtor-basic-item span {
  color: var(--ft-text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ft-page-debtor-detail .ft-debtor-basic-item strong {
  color: var(--ft-text);
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-page-debtor-detail .ft-inline-icon-action {
  color: var(--ft-primary-600) !important;
  line-height: 1;
  margin-left: 0.65rem;
  text-decoration: none !important;
}

.ft-page-debtor-detail .ft-inline-icon-action:hover,
.ft-page-debtor-detail .ft-inline-icon-action:focus {
  color: var(--ft-primary-strong) !important;
}

.ft-page-debtor-detail .ft-copy-icon-btn {
  align-self: end;
  font-size: 0.95rem;
  margin-left: 0;
  min-width: auto !important;
}

.ft-page-debtor-detail #ftDebtorSheetBody .ft-debtor-legacy-basic {
  display: none !important;
}

@media (max-width: 767.98px) {
  .ft-page-debtor-detail .ft-debtor-basic-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
  }

  .ft-page-debtor-detail .ft-debtor-basic-item {
    justify-content: space-between;
  }
}

.ft-page-debtor-detail .ft-debtor-creditor-value {
  align-items: center;
  color: var(--ft-text);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ft-page-debtor-detail .ft-debtor-creditor-value strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.ft-page-debtor-detail .ft-debtor-creditor-value span {
  color: var(--ft-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

@media (min-width: 1200px) {
  .ft-page-debtor-detail #cardInformacoesPrincipais .ft-debtor-sheet-fields {
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-page-debtor-detail #cardInformacoesPrincipais .ft-debtor-sheet-fields > hr,
  .ft-page-debtor-detail #cardInformacoesPrincipais .ft-debtor-sheet-fields > .row,
  .ft-page-debtor-detail #cardInformacoesPrincipais .ft-debtor-sheet-fields > .ft-debtor-notes-field {
    grid-column: 1 / -1;
  }
}

.ft-page-debtor-detail #nomedevedor {
  color: var(--ft-text);
  font-size: clamp(1.28rem, 1.55vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ft-page-debtor-detail h3,
.ft-page-debtor-detail h4,
.ft-page-debtor-detail h5,
.ft-page-debtor-detail h6 {
  color: var(--ft-text) !important;
}

.ft-page-debtor-detail .text-body,
.ft-page-debtor-detail .text-body-emphasis,
.ft-page-debtor-detail .text-body-highlight,
[data-bs-theme="dark"] .ft-page-debtor-detail .text-body,
[data-bs-theme="dark"] .ft-page-debtor-detail .text-body-emphasis,
[data-bs-theme="dark"] .ft-page-debtor-detail .text-body-highlight {
  color: var(--ft-text) !important;
}

.ft-page-debtor-detail .text-body-secondary,
.ft-page-debtor-detail .text-body-tertiary,
[data-bs-theme="dark"] .ft-page-debtor-detail .text-body-secondary,
[data-bs-theme="dark"] .ft-page-debtor-detail .text-body-tertiary {
  color: var(--ft-text-muted) !important;
}

.ft-page-debtor-detail .input-group {
  border-radius: var(--ft-radius-md);
  flex-wrap: nowrap;
  margin-bottom: 0.45rem;
}

.ft-page-debtor-detail .input-group-text {
  background: var(--ft-surface-subtle) !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text-secondary) !important;
  font-size: 0.72rem !important;
  font-weight: 500;
  min-width: 6.25rem;
  justify-content: center;
  text-align: center;
}

.ft-page-debtor-detail .form-label {
  color: var(--ft-text-secondary) !important;
  font-size: 0.72rem;
  font-weight: 500;
}

.ft-page-debtor-detail .form-control,
.ft-page-debtor-detail .form-select,
[data-bs-theme="dark"] .ft-page-debtor-detail .form-control,
[data-bs-theme="dark"] .ft-page-debtor-detail .form-select {
  background-color: #ffffff !important;
  border-color: var(--ft-border-strong) !important;
  border-radius: var(--ft-radius-md) !important;
  color: var(--ft-text) !important;
  font-size: 0.78rem;
  min-height: 2.15rem;
  min-width: 0;
}

.ft-page-debtor-detail textarea.form-control {
  min-height: 7rem;
}

.ft-page-debtor-detail .btn {
  border-radius: var(--ft-radius-md);
  font-weight: 500;
}

.ft-page-debtor-detail #cardInformacoesPrincipais hr {
  border: 0;
  border-top: 1px solid var(--ft-border) !important;
  margin: 1.05rem 0;
  opacity: 1;
}

.ft-page-debtor-detail #cardInformacoesPrincipais .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 2.25rem;
}

.ft-page-debtor-detail #cardInformacoesPrincipais .btn-outline-danger {
  --phoenix-btn-color: #b42335;
  --phoenix-btn-border-color: #ffd1d8;
  --phoenix-btn-hover-bg: #fff1f3;
  --phoenix-btn-hover-border-color: #ff8fa3;
  --phoenix-btn-hover-color: #b42335;
}

.ft-page-debtor-detail #cardInformacoesPrincipais .btn-outline-primary {
  --phoenix-btn-color: var(--ft-primary-600);
  --phoenix-btn-border-color: #c7d7fe;
  --phoenix-btn-hover-bg: #eef4ff;
  --phoenix-btn-hover-border-color: #9bb8ff;
  --phoenix-btn-hover-color: var(--ft-primary-700);
}

.ft-page-debtor-detail #cardInformacoesPrincipais .btn-outline-success {
  --phoenix-btn-color: #16a34a;
  --phoenix-btn-border-color: #bbf7d0;
  --phoenix-btn-hover-bg: #ecfdf3;
  --phoenix-btn-hover-border-color: #86efac;
  --phoenix-btn-hover-color: #15803d;
}

.ft-page-debtor-detail .ft-occurrence-panel {
  background: #ffffff;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  padding: 1.1rem;
}

.ft-page-debtor-detail .ft-occurrence-header {
  align-items: center;
  border-bottom: 1px solid var(--ft-border);
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
}

.ft-page-debtor-detail .ft-occurrence-header h3 {
  color: var(--ft-text) !important;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ft-page-debtor-detail .ft-occurrence-header p {
  color: var(--ft-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.ft-page-debtor-detail .ft-detail-form .d-flex.justify-content-end {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end !important;
}

.ft-page-debtor-detail .ft-detail-form .d-flex.justify-content-end > .p-2,
.ft-page-debtor-detail .ft-detail-form .d-flex.justify-content-end > .p-3 {
  padding: 0 !important;
}

.ft-page-debtor-detail .ft-detail-form .d-flex.justify-content-end .input-group {
  margin-bottom: 0;
}

.ft-page-debtor-detail .ft-detail-form #create_ocorrencia {
  min-height: 2.15rem;
  padding-inline: 1rem;
}

.ft-page-debtor-detail .btn-success {
  --phoenix-btn-bg: #16a34a;
  --phoenix-btn-border-color: #16a34a;
  --phoenix-btn-hover-bg: #15803d;
  --phoenix-btn-hover-border-color: #15803d;
}

.ft-page-debtor-detail .border-top,
.ft-page-debtor-detail .border-bottom,
.ft-page-debtor-detail .border-translucent {
  border-color: var(--ft-border) !important;
}

.ft-page-debtor-detail .table-responsive {
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  box-shadow: var(--ft-shadow-subtle);
  overflow: hidden;
}

.ft-page-debtor-detail .table {
  --phoenix-table-bg: #ffffff;
  --phoenix-table-border-color: var(--ft-border);
  color: var(--ft-text-secondary) !important;
  font-size: 0.78rem !important;
  margin-bottom: 0 !important;
}

.ft-page-debtor-detail .table thead th {
  background: var(--ft-surface-subtle) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  padding: 0.72rem 0.85rem !important;
  text-transform: uppercase;
}

.ft-page-debtor-detail .table tbody td {
  border-color: var(--ft-border) !important;
  color: var(--ft-text-secondary) !important;
  padding: 0.72rem 0.85rem !important;
}

.ft-page-debtor-detail .table tbody tr:hover {
  background: var(--ft-primary-100) !important;
}

.ft-page-debtor-detail .badge,
[data-bs-theme="dark"] .ft-page-debtor-detail .badge {
  align-items: center;
  border: 1px solid #c7d7fe !important;
  border-radius: 999px !important;
  display: inline-flex;
  font-size: 0.62rem !important;
  font-weight: 500;
  gap: 0.25rem;
  line-height: 1;
  min-height: 1.25rem;
  padding: 0.28rem 0.48rem !important;
  text-transform: uppercase;
}

.ft-page-debtor-detail .badge-phoenix-success,
[data-bs-theme="dark"] .ft-page-debtor-detail .badge-phoenix-success {
  background: #e8f8ef !important;
  border-color: #b7ebc9 !important;
  color: #107c3c !important;
}

.ft-page-debtor-detail .badge-phoenix-danger,
[data-bs-theme="dark"] .ft-page-debtor-detail .badge-phoenix-danger {
  background: #fff1f3 !important;
  border-color: #ffd1d8 !important;
  color: #b42335 !important;
}

.ft-page-debtor-detail .badge-phoenix-info,
[data-bs-theme="dark"] .ft-page-debtor-detail .badge-phoenix-info {
  background: #eff8ff !important;
  border-color: #b2ddff !important;
  color: #175cd3 !important;
}

.ft-page-debtor-detail .badge-phoenix-warning,
[data-bs-theme="dark"] .ft-page-debtor-detail .badge-phoenix-warning {
  background: #fff7e8 !important;
  border-color: #fedf89 !important;
  color: #b54708 !important;
}

.ft-page-debtors.ft-editorial-shell .support-chat .card-header,
.ft-page-debtors.ft-editorial-shell .support-chat .card-footer,
.ft-page-debtors.ft-editorial-shell .support-chat .chat,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .support-chat .card-header,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .support-chat .card-footer,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell .support-chat .chat {
  background: #ffffff !important;
  color: var(--ft-text) !important;
}

.ft-page-creditor-detail .ft-creditor-avatar,
.ft-page-debtor-full .ft-debtor-avatar {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.ft-page-creditor-detail .ft-creditor-avatar .avatar-name,
.ft-page-creditor-detail .ft-creditor-avatar img,
.ft-page-debtor-full .ft-debtor-avatar .avatar-name {
  height: 100% !important;
  inset: 0;
  position: absolute;
  width: 100% !important;
}

.ft-page-creditor-detail .ft-creditor-avatar .avatar-name,
.ft-page-debtor-full .ft-debtor-avatar .avatar-name {
  align-items: center;
  background: linear-gradient(135deg, var(--ft-primary), #1d4ed8);
  color: #ffffff;
  display: flex;
  font-size: 1.35rem;
  font-weight: 500;
  justify-content: center;
}

.ft-page-creditor-detail .ft-creditor-avatar img {
  object-fit: cover;
}

.ft-page-creditor-detail .ft-creditor-hero {
  align-items: flex-start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar main actions"
    "avatar kpis actions";
}

.ft-page-creditor-detail .ft-creditor-hero .ft-creditor-avatar {
  grid-area: avatar;
}

.ft-page-creditor-detail .ft-creditor-hero .ft-entity-main {
  grid-area: main;
}

.ft-page-creditor-detail .ft-creditor-hero .ft-creditor-hero-actions {
  align-self: start;
  display: flex;
  grid-area: actions;
  justify-content: flex-end;
}

.ft-page-creditor-detail .ft-creditor-hero .ft-entity-status {
  grid-area: kpis;
  margin-left: 0;
  width: 100%;
}

.ft-page-creditor-detail .ft-creditor-kpis,
.ft-page-debtor-full .ft-debtor-kpis {
  display: grid;
  gap: 0.75rem;
  min-width: min(34rem, 100%);
}

.ft-page-creditor-detail .ft-creditor-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ft-page-creditor-detail .ft-creditor-kpis div,
.ft-page-debtor-full .ft-debtor-kpis div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-sm);
  padding: 0.7rem 0.85rem;
}

.ft-page-creditor-detail .ft-creditor-kpis span,
.ft-page-debtor-full .ft-debtor-kpis span {
  color: var(--ft-text-muted);
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.ft-page-creditor-detail .ft-creditor-kpis strong,
.ft-page-debtor-full .ft-debtor-kpis strong {
  color: var(--ft-text);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

[data-bs-theme="dark"] .ft-page-creditor-detail .ft-creditor-kpis div,
[data-bs-theme="dark"] .ft-page-debtor-full .ft-debtor-kpis div {
  background: rgba(15, 23, 42, 0.68);
}

.ft-page-creditor-detail #profileTabContent {
  margin-top: 1rem;
  padding: 1.5rem;
}

.ft-page-creditor-detail .ft-form-footer-actions {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 50px;
  padding-top: 1rem;
}

@media (max-width: 991.98px) {
  .ft-page-creditor-detail .ft-creditor-hero {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "avatar main"
      "kpis kpis"
      "actions actions";
  }

  .ft-page-creditor-detail .ft-creditor-hero .ft-creditor-hero-actions {
    justify-content: flex-start;
  }

  .ft-page-creditor-detail .ft-creditor-kpis {
    grid-template-columns: 1fr;
  }

  .ft-page-creditor-detail #profileTabContent {
    padding: 1rem;
  }
}

.ft-page-target-queue .ft-target-queue-shell {
  max-width: none;
}

.ft-page-target-queue .card {
  border-color: var(--ft-border) !important;
  border-radius: var(--ft-radius-lg) !important;
  box-shadow: var(--ft-shadow-subtle) !important;
}

.ft-page-target-queue .card-body {
  color: var(--ft-text);
}

.ft-page-target-queue .input-group-text {
  background: var(--ft-surface-subtle) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ft-page-target-queue .form-control,
.ft-page-target-queue .form-select {
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

.ft-page-target-queue .table-responsive {
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  overflow: hidden;
}

.ft-page-commercial-assignments .ft-list-tabs .badge {
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.48rem 0.8rem;
}

.ft-page-commercial-assignments #div-filas > .col {
  display: flex;
}

.ft-page-commercial-assignments #div-filas .card {
  background: var(--ft-surface) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg) !important;
  box-shadow: var(--ft-shadow-subtle) !important;
  color: var(--ft-text) !important;
  width: 100%;
}

.ft-page-commercial-assignments #div-filas .card-body {
  padding: 1.1rem !important;
}

.ft-page-commercial-assignments #div-filas h4 {
  color: var(--ft-text) !important;
  font-size: 1rem;
  font-weight: 500;
}

.ft-page-commercial-assignments #div-filas p,
.ft-page-commercial-assignments #div-filas .text-body-tertiary,
.ft-page-commercial-assignments #div-filas .text-body-emphasis {
  color: var(--ft-text-muted) !important;
}

.ft-page-commercial-assignments #div-filas .progress {
  background: var(--ft-surface-subtle) !important;
  border-radius: 999px;
  height: 0.55rem;
}

.ft-page-commercial-bulk-assignment .ft-section-title {
  color: var(--ft-text);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.ft-page-commercial-bulk-assignment .ft-table-panel > .ft-section-title {
  padding: 1rem 1rem 0;
}

.ft-page-commercial-bulk-assignment .ft-table-panel > div:not(.ft-section-title):not(.table-responsive) {
  padding: 0 1rem 1rem;
}

.ft-page-commercial-bulk-assignment .ft-user-choice {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  color: var(--ft-text);
  height: 100%;
  margin: 0;
  padding: 0.85rem;
}

.ft-page-commercial-bulk-assignment .ft-user-choice .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
  margin-top: 0;
}

.ft-page-commercial-bulk-assignment .ft-user-choice .avatar-name {
  background: linear-gradient(135deg, var(--ft-primary), #1d4ed8);
  color: #ffffff;
}

.ft-page-commercial-bulk-assignment .ft-user-choice label {
  color: var(--ft-text) !important;
}

.ft-page-commercial-bulk-assignment .ft-user-choice p {
  color: var(--ft-text-muted) !important;
}

.ft-page-commercial-dashboard .ft-list-shell {
  display: grid;
  gap: 1rem;
}

.ft-page-commercial-dashboard .ft-commercial-dashboard-header {
  align-items: flex-start;
}

.ft-page-commercial-dashboard .ft-commercial-dashboard-header h2 {
  margin-bottom: 0.2rem;
}

.ft-page-commercial-dashboard .ft-commercial-dashboard-actions {
  align-items: center;
  flex-wrap: wrap;
  max-width: 44rem;
}

.ft-page-commercial-dashboard .ft-commercial-dashboard-actions .btn {
  margin-top: 0 !important;
}

.ft-page-commercial-dashboard .ft-commercial-chart-card {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow-subtle);
  height: 20rem;
  min-height: 20rem;
  padding: 0.85rem;
  width: 100% !important;
}

.ft-page-commercial-dashboard .ft-commercial-status-panel {
  padding: 1.1rem;
}

.ft-page-commercial-dashboard .ft-commercial-status-panel .row {
  --phoenix-gutter-y: 1rem;
}

.ft-page-commercial-dashboard .ft-commercial-status-panel h4 {
  color: var(--ft-text) !important;
  font-size: 0.92rem;
  font-weight: 500;
}

.ft-page-commercial-dashboard .timeline-item-content p {
  color: var(--ft-text-muted) !important;
}

.ft-page-commercial-dashboard .timeline-item-bar::before,
.ft-page-commercial-dashboard .timeline-item-bar::after {
  background-color: var(--ft-border) !important;
}

.ft-page-commercial-dashboard .icon-item {
  box-shadow: none;
}

@media (min-width: 1200px) {
  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) .ft-commercial-chart-card {
    min-height: 18.5rem;
  }

  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #leadsChart,
  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #leadsPorUsuarioChart,
  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #leadsContactadosChart,
  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #contatosRealizadosChart {
    height: 18.5rem;
  }

  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #segmentosChart,
  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #estadosChart,
  .ft-page-commercial-dashboard:not(.ft-page-commercial-my-dashboard) #faixaFaturamentoChart {
    height: 22rem;
  }

.ft-page-commercial-dashboard.ft-page-commercial-my-dashboard .ft-commercial-chart-card {
    height: 20rem;
  }
}

.ft-page-commercial-lead .ft-commercial-lead-shell {
  display: grid;
  gap: 1rem;
  max-width: none;
}

.ft-page-commercial-lead .ft-commercial-lead-header {
  align-items: flex-start;
  margin-bottom: 0 !important;
}

.ft-page-commercial-lead .ft-lead-profile-row {
  margin-bottom: 0 !important;
}

.ft-page-commercial-lead .ft-lead-profile-card,
.ft-page-commercial-lead .ft-form-panel,
.ft-page-commercial-lead #divExistingCredor,
.ft-page-commercial-lead #tab-atribuicao .card {
  background: var(--ft-surface) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-lg) !important;
  box-shadow: var(--ft-shadow-subtle) !important;
  color: var(--ft-text) !important;
}

.ft-page-commercial-lead .ft-form-panel {
  padding: 1.1rem;
}

.ft-page-commercial-lead .ft-lead-profile-card .card-body {
  padding: 1.15rem !important;
}

.ft-page-commercial-lead .avatar-name {
  background: linear-gradient(135deg, var(--ft-primary), #1d4ed8) !important;
  color: #ffffff !important;
}

.ft-page-commercial-lead #nomeLead {
  color: var(--ft-text);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.ft-page-commercial-lead-create .ft-lead-profile-card .avatar {
  display: none;
}

.ft-page-commercial-lead-create .ft-lead-profile-card .row {
  text-align: left !important;
}

.ft-page-commercial-lead-create .ft-lead-profile-card .card-body {
  padding-block: 1.35rem !important;
}

.ft-page-commercial-lead .nav-underline {
  border-bottom: 1px solid var(--ft-border);
  gap: 0.35rem;
}

.ft-page-commercial-lead .nav-underline .nav-link {
  border-radius: var(--ft-radius-sm) var(--ft-radius-sm) 0 0;
  color: var(--ft-text-muted) !important;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
}

.ft-page-commercial-lead .nav-underline .nav-link.active {
  background: var(--ft-primary-50);
  color: var(--ft-primary-700) !important;
}

.ft-page-commercial-lead .form-label,
.ft-page-commercial-lead .form-check-label {
  color: var(--ft-text-muted) !important;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.ft-page-commercial-lead .form-control,
.ft-page-commercial-lead .form-select,
.ft-page-commercial-lead .input-group-text {
  background-color: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  border-radius: var(--ft-radius-sm) !important;
  color: var(--ft-text) !important;
}

.ft-page-commercial-lead .input-group .form-control {
  border-bottom-right-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.ft-page-commercial-lead .input-group .input-group-text {
  border-bottom-left-radius: 0 !important;
  border-top-left-radius: 0 !important;
}

.ft-page-commercial-lead .form-control::placeholder {
  color: var(--ft-text-faint);
}

.ft-page-commercial-lead textarea.form-control {
  min-height: 7.5rem;
}

.ft-page-commercial-lead .btn {
  border-radius: var(--ft-radius-md);
  font-weight: 500;
}

.ft-page-commercial-lead .btn-primary {
  background: var(--ft-primary) !important;
  border-color: var(--ft-primary) !important;
  color: #ffffff !important;
}

.ft-page-commercial-lead .btn-outline-secondary {
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

.ft-page-commercial-lead #userList .form-check {
  background: var(--ft-surface-subtle);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  height: 100%;
  padding: 0.85rem;
}

.ft-page-commercial-queue #tableOcorrencias {
  background: var(--ft-surface-subtle);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  margin-top: 0.8rem;
  padding: 1rem;
}

.ft-page-commercial-queue #listContatos > .border-bottom {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-md);
  padding: 0.85rem;
}

.ft-page-commercial-queue #listContatos h4 {
  margin: 0 !important;
  padding: 1rem;
}

@media (max-width: 767.98px) {
  .ft-page-commercial-lead .ft-form-panel {
    padding: 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .ft-page-debtors.ft-editorial-shell .content {
    padding-inline: 0.85rem !important;
  }

  .ft-page-debtors .ft-filter-panel,
  .ft-page-debtors .ft-table-panel {
    border-radius: var(--ft-radius-sm);
  }
}

.ft-page-auth {
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.14), transparent 34rem),
    linear-gradient(135deg, var(--ft-surface-subtle), var(--ft-bg));
  color: var(--ft-text);
}

.ft-page-auth .ft-auth-page {
  background: transparent !important;
}

.ft-page-auth .bg-auth-card-overlay,
.ft-page-auth .auth-title-box .bg-holder {
  opacity: 0.22;
}

.ft-page-auth .ft-auth-card {
  background: color-mix(in srgb, var(--ft-surface) 92%, transparent);
  border: 1px solid var(--ft-border) !important;
  border-radius: calc(var(--ft-radius-lg) + 0.35rem);
  box-shadow: var(--ft-shadow-card);
  overflow: hidden;
}

.ft-page-auth .ft-auth-side {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--ft-primary) 14%, var(--ft-surface)), var(--ft-surface-subtle)) !important;
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-lg) !important;
}

.ft-page-auth .form-control {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius-md);
  color: var(--ft-text);
}

.ft-page-auth .form-control:focus {
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.16);
}

.ft-page-auth .btn-primary {
  background: var(--ft-primary) !important;
  border-color: var(--ft-primary) !important;
  border-radius: var(--ft-radius-md);
  box-shadow: 0 0.85rem 1.5rem rgba(13, 110, 253, 0.18);
  font-weight: 500;
}

.ft-page-auth .btn-phoenix-secondary {
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

.ft-page-auth .divider-content-center {
  background: var(--ft-surface) !important;
  color: var(--ft-text-muted);
}

/* Revamp baseline: Inter, reliable dark mode and public auth screens. */
[data-bs-theme="dark"] body.ft-editorial-shell,
[data-bs-theme="dark"] .ft-page-dashboard.ft-editorial-shell,
[data-bs-theme="dark"] .ft-page-debtors.ft-editorial-shell,
[data-bs-theme="dark"] .ft-page-debtor-detail.ft-editorial-shell {
  --ft-bg: #0f1726;
  --ft-canvas: #101623;
  --ft-surface: #151d2b;
  --ft-surface-subtle: #172033;
  --ft-border: #27344a;
  --ft-border-strong: #34435d;
  --ft-text: #f2f5fa;
  --ft-text-secondary: #c4ccda;
  --ft-text-muted: #96a2b5;
  --ft-primary-100: #152d55;
  --ft-primary-50: #13233d;
  --bs-body-bg: #101623;
  --bs-body-color: #f2f5fa;
  --bs-body-color-rgb: 242, 245, 250;
  --bs-tertiary-bg: #151d2b;
  --bs-secondary-bg: #172033;
  --bs-border-color: #27344a;
  --phoenix-body-bg: #101623;
  --phoenix-body-color: #f2f5fa;
  --phoenix-body-highlight-bg: #151d2b;
  --phoenix-body-highlight-color: #f2f5fa;
  --phoenix-body-tertiary-color: #96a2b5;
  --phoenix-emphasis-color: #f2f5fa;
  background: var(--ft-canvas) !important;
  color: var(--ft-text) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .content,
[data-bs-theme="dark"] body.ft-editorial-shell .footer,
[data-bs-theme="dark"] body.ft-editorial-shell .navbar-top,
[data-bs-theme="dark"] body.ft-editorial-shell .card,
[data-bs-theme="dark"] body.ft-editorial-shell .modal-content,
[data-bs-theme="dark"] body.ft-editorial-shell .dropdown-menu,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-panel,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-filter-panel,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-table-panel,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-form-panel,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-detail-card,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-entity-hero,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-kpi-card {
  background-color: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .content,
[data-bs-theme="dark"] body.ft-editorial-shell .ft-dashboard {
  background: var(--ft-canvas) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .navbar-top {
  background: rgba(16, 22, 35, 0.96) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .text-body,
[data-bs-theme="dark"] body.ft-editorial-shell .text-body-emphasis,
[data-bs-theme="dark"] body.ft-editorial-shell .text-body-highlight,
[data-bs-theme="dark"] body.ft-editorial-shell h1,
[data-bs-theme="dark"] body.ft-editorial-shell h2,
[data-bs-theme="dark"] body.ft-editorial-shell h3,
[data-bs-theme="dark"] body.ft-editorial-shell h4,
[data-bs-theme="dark"] body.ft-editorial-shell h5,
[data-bs-theme="dark"] body.ft-editorial-shell h6 {
  color: var(--ft-text) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .text-body-secondary,
[data-bs-theme="dark"] body.ft-editorial-shell .text-body-tertiary,
[data-bs-theme="dark"] body.ft-editorial-shell .text-body-quaternary,
[data-bs-theme="dark"] body.ft-editorial-shell .form-label,
[data-bs-theme="dark"] body.ft-editorial-shell .table th {
  color: var(--ft-text-muted) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .form-control,
[data-bs-theme="dark"] body.ft-editorial-shell .form-select,
[data-bs-theme="dark"] body.ft-editorial-shell .input-group-text,
[data-bs-theme="dark"] body.ft-editorial-shell .navbar-top-search-box .search-input {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .form-control::placeholder,
[data-bs-theme="dark"] body.ft-editorial-shell .navbar-top-search-box .search-input::placeholder {
  color: #7f8ba3 !important;
}

[data-bs-theme="dark"] body.ft-editorial-shell .table,
[data-bs-theme="dark"] body.ft-editorial-shell .table td,
[data-bs-theme="dark"] body.ft-editorial-shell .list-group-item {
  background-color: transparent !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-secondary) !important;
}

body.ft-editorial-shell .table thead,
body.ft-editorial-shell .table thead tr,
body.ft-editorial-shell .table thead th,
body.ft-editorial-shell .table-light,
body.ft-editorial-shell thead.table-light {
  --phoenix-table-bg: var(--ft-surface-subtle);
  --phoenix-table-color: var(--ft-text-muted);
  --phoenix-table-border-color: var(--ft-border);
  background-color: var(--ft-surface-subtle) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .table thead,
html[data-bs-theme="dark"] body.ft-editorial-shell .table thead tr,
html[data-bs-theme="dark"] body.ft-editorial-shell .table thead th,
html[data-bs-theme="dark"] body.ft-editorial-shell .table-light,
html[data-bs-theme="dark"] body.ft-editorial-shell thead.table-light {
  --phoenix-table-bg: var(--ft-surface);
  --phoenix-table-color: var(--ft-text-muted);
  --phoenix-table-border-color: var(--ft-border);
  background-color: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
}

.ft-page-auth .bg-auth-card-overlay,
.ft-page-auth .ft-auth-side {
  display: none !important;
}

.ft-page-auth .row.flex-center > [class*="col-"] {
  max-width: 31rem;
}

.ft-page-auth .ft-auth-card {
  background: var(--ft-surface) !important;
  border-radius: 1.15rem;
}

.ft-page-auth .ft-auth-card .card-body {
  padding: 2.2rem !important;
}

.ft-page-auth .auth-form-box {
  margin-inline: auto;
  max-width: 25rem;
}

.ft-page-auth .theme-control-toggle {
  padding-inline: 0 !important;
}

.ft-page-auth .btn-primary {
  --phoenix-btn-color: #fff;
  --phoenix-btn-bg: var(--ft-primary-600);
  --phoenix-btn-border-color: var(--ft-primary-600);
  --phoenix-btn-hover-color: #fff;
  --phoenix-btn-hover-bg: var(--ft-primary-700);
  --phoenix-btn-hover-border-color: var(--ft-primary-700);
  background: var(--ft-primary-600) !important;
  border-color: var(--ft-primary-600) !important;
  color: #fff !important;
}

.ft-page-auth .btn-primary:hover,
.ft-page-auth .btn-primary:focus-visible {
  background: var(--ft-primary-700) !important;
  border-color: var(--ft-primary-700) !important;
  color: #fff !important;
}

[data-bs-theme="dark"] .ft-page-auth .ft-auth-card,
[data-bs-theme="dark"] .ft-page-auth .divider-content-center {
  background: var(--ft-surface) !important;
}

[data-bs-theme="dark"] .ft-page-auth {
  background:
    radial-gradient(circle at top left, rgba(7, 94, 216, 0.22), transparent 34rem),
    linear-gradient(135deg, #0f1726, #101623) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail {
  background: var(--ft-canvas) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .content,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .ft-dashboard,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .content,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .content {
  background: var(--ft-canvas) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .navbar-top,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .navbar-top,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .navbar-top {
  background: rgba(16, 22, 35, 0.96) !important;
  border-color: var(--ft-border) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .footer,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .footer,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .footer,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .card,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .dropdown-menu,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .modal-content,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .ft-panel,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .ft-kpi-card,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .support-chat .card,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .btn-support-chat,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-filter-panel,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-table-panel,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-table-panel .table,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-table-panel thead,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-table-panel tbody,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-table-panel tr,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-list-footer,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-entity-hero,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-form-panel,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .support-chat .card,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .btn-support-chat,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .ft-detail-card,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .card {
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .navbar-top-search-box .search-input,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .navbar-top-search-box .search-input,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-filter-panel .form-control,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .ft-filter-panel .form-select,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .form-control,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .form-select {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .text-body,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .text-body-emphasis,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .text-body-highlight,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .ft-dashboard-header > h2,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .ft-metric-value,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .text-body,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .text-body-emphasis,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .text-body-highlight,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .text-body,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .text-body-emphasis,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .text-body-highlight {
  color: var(--ft-text) !important;
}

/* Theme-aware native control icons: global override for select/date/time controls. */
body.ft-editorial-shell .form-select,
body.ft-editorial-shell select.form-select {
  --phoenix-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475467' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-position: right 0.85rem center !important;
  background-repeat: no-repeat !important;
  background-size: 0.78rem 0.78rem !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .form-select,
html[data-bs-theme="dark"] body.ft-editorial-shell select.form-select {
  --phoenix-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f2f5fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23f2f5fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

body.ft-editorial-shell input[type="date"],
body.ft-editorial-shell input[type="time"] {
  color-scheme: light !important;
}

body.ft-editorial-shell input[type="date"]::-webkit-calendar-picker-indicator,
body.ft-editorial-shell input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(31%) sepia(17%) saturate(646%) hue-rotate(179deg) brightness(92%) contrast(91%) !important;
  opacity: 1;
}

html[data-bs-theme="dark"] body.ft-editorial-shell input[type="date"],
html[data-bs-theme="dark"] body.ft-editorial-shell input[type="time"] {
  color-scheme: dark !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell input[type="date"]::-webkit-calendar-picker-indicator,
html[data-bs-theme="dark"] body.ft-editorial-shell input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(104%) contrast(104%) !important;
  opacity: 1;
}

html[data-bs-theme="dark"] body.ft-page-debtor-detail.ft-editorial-shell .ft-occurrence-panel,
html[data-bs-theme="dark"] body.ft-page-debtor-detail.ft-editorial-shell .ft-occurrence-panel .card,
html[data-bs-theme="dark"] body.ft-page-debtor-detail.ft-editorial-shell .ft-occurrence-panel .input-group-text {
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-debtor-detail.ft-editorial-shell .ft-occurrence-panel .form-control,
html[data-bs-theme="dark"] body.ft-page-debtor-detail.ft-editorial-shell .ft-occurrence-panel .form-select,
html[data-bs-theme="dark"] body.ft-page-debtor-detail.ft-editorial-shell .ft-occurrence-panel textarea.form-control {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .text-body-secondary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .text-body-tertiary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-dashboard .text-body-quaternary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .text-body-secondary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .text-body-tertiary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtors .text-body-quaternary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .text-body-secondary,
html[data-bs-theme="dark"] body.ft-editorial-shell.ft-page-debtor-detail .text-body-tertiary {
  color: var(--ft-text-muted) !important;
}

/* Sidebar navigation refinement: compact groups, contained hover, clear active state. */
body.ft-editorial-shell .navbar-vertical .navbar-nav {
  gap: 0.12rem;
  padding: 0.62rem 0.72rem 5rem;
}

body.ft-editorial-shell .navbar-vertical .nav-item {
  margin: 0;
}

body.ft-editorial-shell .navbar-vertical .nav-item-wrapper {
  margin: 0.08rem 0;
  min-width: 0;
  position: relative;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-label {
  color: rgba(169, 188, 220, 0.82);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  margin: 1.35rem 0.72rem 0.58rem;
  text-transform: uppercase;
}

body.ft-editorial-shell .navbar-vertical .nav-link {
  align-items: center;
  border-radius: 0.86rem;
  color: rgba(205, 219, 240, 0.82);
  display: flex;
  font-size: 0.86rem;
  font-weight: 500;
  gap: 0.62rem;
  line-height: 1.2;
  margin: 0;
  min-height: 2.52rem;
  overflow: hidden;
  padding: 0.64rem 0.78rem;
  position: relative;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  width: 100%;
}

body.ft-editorial-shell .navbar-vertical .nav-link > .d-flex {
  align-items: center !important;
  gap: 0.62rem;
  min-width: 0;
  width: 100%;
}

body.ft-editorial-shell .navbar-vertical .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .dropdown-indicator-icon {
  align-items: center;
  color: rgba(183, 202, 232, 0.78);
  display: inline-flex;
  flex: 0 0 1.28rem;
  font-size: 0.95rem;
  height: 1.28rem;
  justify-content: center;
  min-width: 1.28rem;
  width: 1.28rem;
}

body.ft-editorial-shell .navbar-vertical .nav-link-icon svg,
body.ft-editorial-shell .navbar-vertical .dropdown-indicator-icon svg {
  height: 1.05rem;
  stroke-width: 2;
  width: 1.05rem;
}

body.ft-editorial-shell .navbar-vertical .nav-link-text,
body.ft-editorial-shell .navbar-vertical .nav-link-text-wrapper {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.ft-editorial-shell .navbar-vertical .nav-link:hover,
body.ft-editorial-shell .navbar-vertical .nav-link:focus-visible {
  background: rgba(47, 111, 237, 0.12);
  color: #f8fbff;
  outline: 0;
  text-decoration: none;
}

body.ft-editorial-shell .navbar-vertical .nav-link:hover .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .nav-link:hover .dropdown-indicator-icon,
body.ft-editorial-shell .navbar-vertical .nav-link:focus-visible .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .nav-link:focus-visible .dropdown-indicator-icon {
  color: #dbe8ff;
}

body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active,
body.ft-editorial-shell .navbar-vertical .nav-link.active {
  background: rgba(47, 111, 237, 0.18);
  box-shadow: none;
  color: #b8caff;
}

body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active::before,
body.ft-editorial-shell .navbar-vertical .nav-link.active::before {
  background: var(--ft-primary-600);
  border-radius: 0 999px 999px 0;
  bottom: 0.5rem;
  content: "";
  left: 0;
  position: absolute;
  top: 0.5rem;
  width: 0.18rem;
}

body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active .dropdown-indicator-icon,
body.ft-editorial-shell .navbar-vertical .nav-link.active .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .nav-link.active .dropdown-indicator-icon {
  color: #dbe8ff;
}

body.ft-editorial-shell .navbar-vertical .parent-wrapper .nav-link,
body.ft-editorial-shell .navbar-vertical .collapse .nav-link,
body.ft-editorial-shell .navbar-vertical .parent .nav-link {
  border-radius: 0.72rem;
  color: rgba(205, 219, 240, 0.68);
  font-size: 0.8rem;
  margin-left: 0;
  min-height: 2.08rem;
  padding: 0.48rem 0.72rem 0.48rem 2.45rem;
}

body.ft-editorial-shell .navbar-vertical .dropdown-indicator > .d-flex .dropdown-indicator-icon {
  order: -1;
}

body.ft-editorial-shell .navbar-vertical .nav-link .badge,
body.ft-editorial-shell .navbar-vertical .nav-link .nav-link-badge {
  align-items: center;
  background: rgba(47, 111, 237, 0.22);
  border: 1px solid rgba(122, 151, 255, 0.24);
  border-radius: 0.46rem;
  color: #dbe8ff;
  display: inline-flex;
  font-size: 0.67rem;
  font-weight: 600;
  justify-content: center;
  margin-left: auto;
  min-width: 1.66rem;
  padding: 0.18rem 0.42rem;
}

body.ft-editorial-shell .navbar-vertical .form-select {
  border-radius: 0.68rem;
  min-height: 2.28rem;
}

body.ft-editorial-shell .navbar-vertical-footer .btn {
  border-radius: 0;
  min-height: 3.6rem;
}

html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .navbar-nav {
  padding-inline: 0.42rem;
}

html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .nav-link {
  justify-content: center;
  padding-inline: 0.58rem;
}

html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active::before,
html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .nav-link.active::before {
  left: 0;
}

body.ft-editorial-shell .navbar-vertical .nav-link:hover,
body.ft-editorial-shell .navbar-vertical .nav-link:focus-visible {
  background-color: rgba(47, 111, 237, 0.12) !important;
  color: #f8fbff !important;
}

body.ft-editorial-shell .navbar-vertical .nav-link.ft-nav-active,
body.ft-editorial-shell .navbar-vertical .nav-link.active,
body.ft-editorial-shell .navbar-vertical .parent-wrapper .nav-link.ft-nav-active,
body.ft-editorial-shell .navbar-vertical .parent-wrapper .nav-link.active {
  background-color: rgba(47, 111, 237, 0.22) !important;
  color: #b8caff !important;
}

body.ft-editorial-shell .navbar-vertical .navbar-nav {
  padding-left: 0.42rem !important;
  padding-right: 0.42rem !important;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-label {
  margin-left: 0.52rem !important;
  margin-right: 0.52rem !important;
}

body.ft-editorial-shell .navbar-vertical .nav-link {
  gap: 0.5rem !important;
  padding-left: 0.54rem !important;
  padding-right: 0.54rem !important;
}

body.ft-editorial-shell .navbar-vertical .nav-link > .d-flex {
  gap: 0.5rem !important;
}

body.ft-editorial-shell .navbar-vertical .nav-link-icon,
body.ft-editorial-shell .navbar-vertical .dropdown-indicator-icon {
  flex-basis: 1.12rem !important;
  height: 1.12rem !important;
  min-width: 1.12rem !important;
  width: 1.12rem !important;
}

body.ft-editorial-shell .navbar-vertical .parent-wrapper .nav-link,
body.ft-editorial-shell .navbar-vertical .collapse .nav-link,
body.ft-editorial-shell .navbar-vertical .parent .nav-link {
  margin-left: 0 !important;
  padding-left: 0.54rem !important;
  padding-right: 0.54rem !important;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-label {
  align-items: center;
  display: flex;
  margin: 1.28rem 0.54rem 0.38rem !important;
  padding: 0 0 0.44rem;
  position: relative;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-label::after {
  background: rgba(169, 188, 220, 0.18);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
}

body.ft-editorial-shell .navbar-vertical .navbar-vertical-label + .navbar-vertical-line {
  display: none !important;
}

@media (min-width: 992px) {
  html.navbar-vertical-collapsed body.ft-editorial-shell {
    --phoenix-navbar-vertical-width: 4.25rem;
    --ft-sidebar-width: 4.25rem;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell::before,
  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical {
    max-width: var(--phoenix-navbar-vertical-width) !important;
    min-width: var(--phoenix-navbar-vertical-width) !important;
    padding-top: 0 !important;
    width: var(--phoenix-navbar-vertical-width) !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical > *,
  html.navbar-vertical-collapsed body.ft-editorial-shell #navbarVerticalCollapse,
  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical-content,
  html.navbar-vertical-collapsed body.ft-editorial-shell .ft-sidebar-brand,
  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical-footer {
    max-width: var(--phoenix-navbar-vertical-width) !important;
    min-width: var(--phoenix-navbar-vertical-width) !important;
    width: var(--phoenix-navbar-vertical-width) !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .content {
    margin-left: var(--phoenix-navbar-vertical-width) !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-top {
    left: var(--phoenix-navbar-vertical-width) !important;
    width: calc(100% - var(--phoenix-navbar-vertical-width)) !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-top-search-box {
    margin-left: 0 !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .ft-sidebar-brand {
    justify-content: center;
    margin-bottom: 0 !important;
    min-height: 3.5rem !important;
    padding-inline: 0.25rem !important;
    padding-block: 0.48rem !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .ft-sidebar-brand img {
    display: block;
    margin: 0 auto;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .ft-sidebar-brand span,
  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical-label,
  html.navbar-vertical-collapsed body.ft-editorial-shell .nav-link-text,
  html.navbar-vertical-collapsed body.ft-editorial-shell .nav-link-text-wrapper,
  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical-footer-text,
  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .form-select {
    display: none !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .nav-link {
    justify-content: center !important;
    min-height: 2.45rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical .nav-link > .d-flex {
    justify-content: center !important;
  }

  html.navbar-vertical-collapsed body.ft-editorial-shell .navbar-vertical-footer .btn {
    justify-content: center !important;
    padding-inline: 0 !important;
  }
}

html[data-bs-theme="dark"] body.ft-editorial-shell .theme-control-toggle-light,
html:not([data-bs-theme="dark"]) body.ft-editorial-shell .theme-control-toggle-dark {
  display: none !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .theme-control-toggle-dark,
html:not([data-bs-theme="dark"]) body.ft-editorial-shell .theme-control-toggle-light {
  display: inline-flex !important;
}

/* Dashboard dark-mode and KPI content recovery. */
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell {
  --ft-canvas: #101623;
  --ft-surface: #151d2b;
  --ft-surface-subtle: #151d2b;
  --ft-border: #27344a;
  --ft-border-strong: #34435d;
  --ft-text: #f2f5fa;
  --ft-text-secondary: #c4ccda;
  --ft-text-muted: #96a2b5;
  --ft-primary-100: #152d55;
  background: var(--ft-canvas) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .content,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .footer {
  background: var(--ft-canvas) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .navbar-top,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .card,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-panel,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-kpi-card,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .dropdown-menu,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .btn-support-chat,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .support-chat .card {
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .navbar-top-search-box .search-input,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .form-control,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .form-select {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard h1,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard h2,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard h3,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard h4,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard h5,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard h6,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .text-body,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .text-body-emphasis,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .text-body-highlight,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-metric-value {
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .text-body-secondary,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .text-body-tertiary,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .text-body-quaternary,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-panel p {
  color: var(--ft-text-muted) !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-card {
  height: auto !important;
  min-height: 12rem !important;
  overflow: visible !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-item {
  height: auto !important;
  min-height: 12rem !important;
  overflow: visible !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-strip {
  margin-bottom: 1.25rem !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .card-body {
  height: 100%;
  padding: 1rem 1.1rem 0.9rem !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-content {
  display: grid;
  gap: 0.48rem;
  grid-template-areas:
    "main trend"
    "meta meta";
  grid-template-columns: minmax(0, 1fr) auto;
  height: 100%;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-main {
  grid-area: main;
  min-width: 0;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-header {
  align-items: center;
  display: flex;
  min-width: 0;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-header > p {
  color: var(--ft-text) !important;
  font-weight: 600;
  line-height: 1.15;
  min-width: 0;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-value {
  color: var(--ft-text) !important;
  font-size: 1.65rem !important;
  line-height: 1.05 !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-value .fs-8,
body.ft-page-dashboard.ft-editorial-shell .ft-kpi-trend,
body.ft-page-dashboard.ft-editorial-shell .ft-kpi-meta,
body.ft-page-dashboard.ft-editorial-shell .ft-kpi-meta .fs-11 {
  color: var(--ft-text-secondary) !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-trend {
  align-self: end;
  grid-area: trend;
  white-space: nowrap;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-meta {
  border-top: 1px solid var(--ft-border);
  display: block !important;
  grid-area: meta;
  font-size: 0.68rem;
  min-height: 2rem;
  overflow: visible !important;
  padding-top: 0.5rem;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-meta p,
body.ft-page-dashboard.ft-editorial-shell .ft-kpi-meta a {
  display: block !important;
  font-size: 0.68rem !important;
  line-height: 1.35;
  margin: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-meta p + p {
  margin-top: 0.28rem !important;
}

body.ft-page-dashboard.ft-editorial-shell .ft-kpi-card .badge {
  display: inline-flex !important;
  margin-bottom: 0 !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table th,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table td,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-top-creditors .list-group-item {
  background: transparent !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-secondary) !important;
}

/* CR dashboard: more breathing room for the compact creditor view. */
body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard .ft-dashboard-grid {
  gap: 1.15rem;
  padding-bottom: 50px;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-header {
  gap: 0.85rem;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-strip {
  background: transparent;
  border: 0;
  box-shadow: none;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.25rem !important;
  overflow: visible;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-strip::after,
body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-item::after {
  display: none;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-card {
  border: 1px solid var(--ft-border) !important;
  border-radius: var(--ft-radius-md) !important;
  min-height: 8.5rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-item {
  min-height: 8.5rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-card .card-body {
  padding: 1rem 1.15rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-panel {
  padding: 1.15rem 1.2rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-main-chart {
  height: auto;
  min-height: 21rem;
  overflow: visible;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-main-chart #chartOcorrenciasAcordos {
  height: 17rem !important;
  min-height: 17rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-operators {
  height: auto;
  min-height: 21rem;
  overflow: visible;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-operators > .row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(8.5rem, 1fr);
  height: auto;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-operators #ocorrenciasOperadorHoje {
  max-height: 9.6rem;
  overflow: auto;
  padding-right: 0.25rem;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-operators #chartOcorrenciasPorOperador {
  height: 8.8rem !important;
  min-height: 8.8rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-new-debtors,
body.ft-page-cr-dashboard.ft-editorial-shell .ft-new-titles,
body.ft-page-cr-dashboard.ft-editorial-shell .ft-quality {
  height: auto;
  overflow: visible;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-new-debtors {
  grid-column: 1 / 7;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-new-titles {
  grid-column: 7 / 13;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-quality {
  grid-column: 1 / 7;
  min-height: 18rem;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-quality #chartQualidadeBase {
  height: 13.5rem !important;
  min-height: 13.5rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-grid > .ft-panel:last-child {
  grid-column: 7 / 13;
  min-height: 18rem;
  overflow: visible;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-grid > .ft-panel:last-child .table th,
body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-grid > .ft-panel:last-child .table td {
  padding-inline: 0.9rem !important;
}

body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-grid > .ft-panel:last-child .table th:first-child,
body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-grid > .ft-panel:last-child .table td:first-child {
  padding-left: 0.75rem !important;
}

@media (max-width: 1199.98px) {
  body.ft-page-cr-dashboard.ft-editorial-shell .ft-new-debtors,
  body.ft-page-cr-dashboard.ft-editorial-shell .ft-new-titles,
  body.ft-page-cr-dashboard.ft-editorial-shell .ft-quality,
  body.ft-page-cr-dashboard.ft-editorial-shell .ft-dashboard-grid > .ft-panel:last-child {
    grid-column: 1 / -1;
  }

  body.ft-page-cr-dashboard.ft-editorial-shell .ft-main-chart,
  body.ft-page-cr-dashboard.ft-editorial-shell .ft-operators {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  body.ft-page-cr-dashboard.ft-editorial-shell .ft-kpi-strip {
    grid-template-columns: 1fr;
  }

  body.ft-page-cr-dashboard.ft-editorial-shell .ft-panel {
    padding: 1rem !important;
  }
}

/* CR shared list/report dark-mode and table footer corrections. */
body.ft-editorial-shell .ft-debtors-page .input-group {
  align-items: stretch;
}

body.ft-editorial-shell .ft-debtors-page .input-group-sm > .input-group-text {
  background: transparent !important;
  border: 0 !important;
  color: var(--ft-text-muted) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  padding: 0 0 0.35rem !important;
  width: 100%;
}

body.ft-editorial-shell .ft-debtors-page .input-group-sm > .form-control,
body.ft-editorial-shell .ft-debtors-page .input-group-sm > .form-select {
  border-radius: 0.8rem !important;
  min-height: 2.45rem;
  width: 100%;
}

body.ft-editorial-shell .ft-debtors-page .mx-n4.bg-body-emphasis,
body.ft-editorial-shell .ft-debtors-page .mx-lg-n6.bg-body-emphasis {
  background: var(--ft-surface) !important;
  border: 1px solid var(--ft-border) !important;
  border-radius: 1rem;
  box-shadow: var(--ft-shadow-soft);
  margin-inline: 0 !important;
  overflow: hidden;
  padding: 0 !important;
}

body.ft-editorial-shell .ft-debtors-page .table-responsive {
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body.ft-editorial-shell .ft-debtors-page .table {
  margin-bottom: 0 !important;
}

body.ft-editorial-shell .ft-debtors-page .table th,
body.ft-editorial-shell .ft-debtors-page .table td {
  border-color: var(--ft-border) !important;
  vertical-align: middle;
}

body.ft-editorial-shell .ft-debtors-page .table tbody tr:hover {
  background: rgba(7, 94, 216, 0.045) !important;
}

body.ft-editorial-shell .ft-debtors-page .row.align-items-center.justify-content-between.py-2.pe-0.fs-9 {
  align-items: center !important;
  background: var(--ft-surface-subtle);
  border-top: 1px solid var(--ft-border);
  display: flex !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0.85rem 1rem !important;
}

body.ft-editorial-shell .ft-debtors-page .row.align-items-center.justify-content-between.py-2.pe-0.fs-9 > .row {
  align-items: center !important;
  display: flex !important;
  gap: 0.75rem;
  justify-content: space-between !important;
  margin: 0 !important;
  width: 100%;
}

body.ft-editorial-shell .ft-debtors-page .row.align-items-center.justify-content-between.py-2.pe-0.fs-9 [id^="total"],
body.ft-editorial-shell .ft-debtors-page .row.align-items-center.justify-content-between.py-2.pe-0.fs-9 #totaldevedores {
  color: var(--ft-text-secondary) !important;
  margin: 0 !important;
}

body.ft-editorial-shell .ft-debtors-page #pagination-container {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

body.ft-editorial-shell .ft-debtors-page #pagination-container .btn {
  margin-bottom: 0 !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell {
  background: var(--ft-canvas) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page,
html[data-bs-theme="dark"] body.ft-editorial-shell .content {
  background: var(--ft-canvas) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .mx-n4.bg-body-emphasis,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .mx-lg-n6.bg-body-emphasis,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .card,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .modal-content,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .dropdown-menu {
  background: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .form-control,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .form-select,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .input-group-text,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page textarea.form-control {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  box-shadow: none !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .input-group-text {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--ft-text-muted) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .form-control::placeholder {
  color: #7f8ba3 !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table tbody,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table tr,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table td {
  --phoenix-table-bg: transparent;
  --phoenix-table-color: var(--ft-text-secondary);
  --phoenix-table-border-color: var(--ft-border);
  background-color: transparent !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-secondary) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table thead,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table thead tr,
html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .table thead th {
  --phoenix-table-bg: var(--ft-surface);
  --phoenix-table-color: var(--ft-text-muted);
  --phoenix-table-border-color: var(--ft-border);
  background-color: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .ft-debtors-page .row.align-items-center.justify-content-between.py-2.pe-0.fs-9 {
  background: #111a2a !important;
  border-color: var(--ft-border) !important;
}

html[data-bs-theme="dark"] body.ft-editorial-shell .navbar-vertical .form-select {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table thead,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table thead tr,
html[data-bs-theme="dark"] body.ft-page-dashboard.ft-editorial-shell .ft-dashboard .table thead th {
  --phoenix-table-bg: var(--ft-surface);
  --phoenix-table-color: var(--ft-text-muted);
  --phoenix-table-border-color: var(--ft-border);
  background-color: var(--ft-surface) !important;
  border-color: var(--ft-border) !important;
  color: var(--ft-text-muted) !important;
}

html[data-bs-theme="dark"] body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .form-control,
html[data-bs-theme="dark"] body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .form-select,
html[data-bs-theme="dark"] body.ft-page-cr-report.ft-page-debtors.ft-editorial-shell .content > .mb-9 > .container.mb-4 .form-control {
  background-color: #0f1726 !important;
  border-color: var(--ft-border-strong) !important;
  color: var(--ft-text) !important;
}

html[data-bs-theme="dark"] body[class*="ft-page-cr-"].ft-page-debtors.ft-editorial-shell .input-group.input-group-sm .input-group-text {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--ft-text-muted) !important;
}
