/*
  Correcao visual desktop da tabela Gerenciar Categorias.
  Nao altera dados, eventos, APIs, payloads, banco ou logica.
*/

@media (min-width: 1024px) {
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl .flex-1.overflow-auto {
    overflow-x: hidden !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl .overflow-x-auto:has(table[role="table"]) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    border: 1px solid #dbe7e6 !important;
    border-radius: 14px !important;
    background: #ffffff !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border: 0 !important;
    border-collapse: collapse !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] tr {
    display: table-row !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th,
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td {
    display: table-cell !important;
    vertical-align: middle !important;
    min-width: 0 !important;
    padding: 13px 14px !important;
    line-height: 1.35 !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th {
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th:nth-child(1),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(1) {
    width: 30% !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th:nth-child(2),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(2) {
    width: 10% !important;
    text-align: center !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th:nth-child(3),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(3) {
    width: 25% !important;
    text-align: left !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th:nth-child(4),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(4) {
    width: 20% !important;
    text-align: left !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th:nth-child(5),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(5) {
    width: 15% !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] th:nth-child(6),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(6) {
    width: 128px !important;
    text-align: right !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(1) {
    position: relative !important;
    max-width: 0 !important;
    padding-right: 88px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(1) button {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 26px !important;
    min-height: 26px !important;
    max-width: 68px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    transform: translateY(-50%) !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(2) {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(2) > div {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(3),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(4),
  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(5) {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(3) {
    color: #0f172a !important;
    font-weight: 800 !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(6) > div {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex-wrap: nowrap !important;
  }

  body:has(nav.sidebar-navigation a[href="/contatos"].bg-white) .fixed.inset-0.z-50 .bg-white.max-w-5xl table[role="table"] td:nth-child(6) button {
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }
}
