/*
  Repaginacao visual isolada do modal Relatorio da Campanha.
  Nao altera logica, eventos, APIs, payloads, backend, download, UUID ou regras de execucao.
*/

:root {
  --acrp-ink: #0f172a;
  --acrp-muted: #64748b;
  --acrp-line: #dbe7e6;
  --acrp-line-strong: #c8d8d6;
  --acrp-soft: #f7fbfa;
  --acrp-panel: #ffffff;
  --acrp-accent: #0f766e;
  --acrp-accent-hover: #115e59;
  --acrp-blue: #2563eb;
  --acrp-shadow: 0 22px 64px rgba(15, 23, 42, .18);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30:has(> .max-w-4xl h3) {
  z-index: 10040 !important;
  padding: 18px;
  background: rgba(2, 8, 23, .58) !important;
  backdrop-filter: blur(4px);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl {
  width: min(1120px, calc(100vw - 36px)) !important;
  max-width: 1120px !important;
  max-height: min(92vh, 920px) !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden !important;
  border: 1px solid rgba(219, 231, 230, .96) !important;
  border-radius: 18px !important;
  background: var(--acrp-panel) !important;
  box-shadow: var(--acrp-shadow) !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 72px;
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--acrp-line) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfb 100%);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child > div:first-child {
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl h3 {
  color: var(--acrp-ink) !important;
  font-size: 1.12rem !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl button[title="Atualizar relatório"] {
  min-height: 34px;
  padding: 7px 12px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 10px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: .8rem !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .08);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl button[title="Atualizar relatório"]:hover {
  background: #dbeafe !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl button[title="Atualizar relatório"] svg {
  width: 14px !important;
  height: 14px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child > button:last-child {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--acrp-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #64748b !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child > button:last-child:hover {
  border-color: #fecaca !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child > button:last-child svg {
  width: 18px !important;
  height: 18px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:nth-child(2) {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto !important;
  padding: 22px !important;
  background: linear-gradient(180deg, #fbfefd 0%, #f6fbfa 100%);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 {
  gap: 18px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div {
  margin-top: 0 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child {
  padding: 18px !important;
  border: 1px solid var(--acrp-line) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child h4 {
  margin-bottom: 14px !important;
  color: var(--acrp-ink) !important;
  font-size: 1.06rem !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  word-break: normal;
  overflow-wrap: anywhere;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--acrp-line);
  border-radius: 12px;
  background: var(--acrp-soft);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div > span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #475569 !important;
  font-size: .74rem !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div > span:not(:first-child) {
  margin-left: 0 !important;
  color: var(--acrp-ink) !important;
  font-size: .87rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  overflow-wrap: anywhere;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div:first-child > span:not(:first-child) {
  width: fit-content;
  max-width: 100%;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: .72rem !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: normal;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl h4 {
  color: var(--acrp-ink) !important;
  font-size: 1rem !important;
  line-height: 1.3 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) {
  padding: 16px;
  border: 1px solid var(--acrp-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div {
  min-width: 0;
  min-height: 92px;
  padding: 14px 12px !important;
  border: 1px solid transparent;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div.bg-blue-50 {
  border-color: #bfdbfe;
  background: #eff6ff !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div.bg-green-50 {
  border-color: #bbf7d0;
  background: #f0fdf4 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div.bg-red-50 {
  border-color: #fecaca;
  background: #fef2f2 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div.bg-yellow-50 {
  border-color: #fde68a;
  background: #fffbeb !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div > div:first-child {
  font-size: 1.7rem !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div > div:last-child {
  margin-top: 6px;
  font-size: .78rem !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:has(table) {
  padding: 16px;
  border: 1px solid var(--acrp-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:has(table) > div.bg-white.border {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible !important;
  border-color: var(--acrp-line) !important;
  border-radius: 14px !important;
  -webkit-overflow-scrolling: touch;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl table {
  min-width: 720px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl th {
  padding: 11px 14px !important;
  color: #475569 !important;
  font-size: .7rem !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  background: #f8fcfb !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl td {
  padding: 12px 14px !important;
  color: var(--acrp-ink) !important;
  font-size: .82rem !important;
  line-height: 1.35 !important;
  border-color: #e5efee !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl tbody tr {
  transition: background .16s ease;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl tbody tr:hover {
  background: #f8fcfb;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl td span.rounded-full {
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: .7rem !important;
  line-height: 1 !important;
  font-weight: 850 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) {
  flex-wrap: wrap;
  align-items: center !important;
  gap: 8px !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) h4 {
  margin-right: auto;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) button,
body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-campaign-uuid-btn,
body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-exec-rules-btn,
body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-last-message-btn {
  min-height: 34px !important;
  margin-left: 0 !important;
  padding: 8px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: .76rem !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) button:hover,
body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-campaign-uuid-btn:hover,
body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-exec-rules-btn:hover,
body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-last-message-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
  filter: saturate(1.08);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) button:first-of-type {
  background: var(--acrp-accent) !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-campaign-uuid-btn {
  background: #0f766e !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-exec-rules-btn {
  background: #1d4ed8 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-last-message-btn {
  background: #334155 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .flex.items-center.justify-between.mt-4 {
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--acrp-line);
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .flex.items-center.justify-between.mt-4 button {
  min-height: 34px;
  border-radius: 10px !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
}

body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-campaign-uuid-modal {
  z-index: 10080 !important;
}

@media (max-width: 768px) {
  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30:has(> .max-w-4xl h3) {
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 6px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    height: auto !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 14px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child {
    min-height: 58px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: start !important;
    padding: 12px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child > div:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px !important;
    align-items: center;
    width: 100%;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl h3 {
    min-width: 0;
    font-size: .98rem !important;
    line-height: 1.2 !important;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl button[title="Atualizar relatório"] {
    min-height: 32px;
    padding: 7px 9px !important;
    gap: 5px !important;
    font-size: .72rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl button[title="Atualizar relatório"] svg {
    width: 13px !important;
    height: 13px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:first-child > button:last-child {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    align-self: start;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl > div:nth-child(2) {
    padding: 12px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 {
    gap: 12px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child,
  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2),
  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:has(table) {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child h4 {
    font-size: .96rem !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div {
    padding: 9px 10px;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div > span:first-child {
    margin-bottom: 4px;
    font-size: .72rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:first-child .grid > div > span:not(:first-child) {
    display: inline-flex;
    font-size: .82rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div {
    min-height: 76px;
    padding: 10px 8px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div > div:first-child {
    font-size: 1.35rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .space-y-6 > div:nth-child(2) > .grid > div > div:last-child {
    font-size: .7rem !important;
    line-height: 1.2 !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl h4 {
    font-size: .92rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    align-items: stretch !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) h4 {
    margin-right: 0;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl div:has(> h4 + button) button,
  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-campaign-uuid-btn,
  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-exec-rules-btn,
  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) #custom-last-message-btn {
    width: 100% !important;
    min-height: 34px !important;
    justify-content: center;
    padding: 9px 10px !important;
    font-size: .72rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl table {
    min-width: 680px !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl th {
    padding: 10px 11px !important;
    font-size: .66rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl td {
    padding: 10px 11px !important;
    font-size: .76rem !important;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .flex.items-center.justify-between.mt-4 {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .flex.items-center.justify-between.mt-4 > div:last-child {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  body:has(nav.sidebar-navigation a[href="/campanhas"].bg-white) .fixed.inset-0.z-30 > .bg-white.max-w-4xl .flex.items-center.justify-between.mt-4 button {
    min-width: max-content;
  }
}
