/* Central Gestão ERP — Cadastro de Usuários • Identidade visual Configuração PIX.
   Escopo exclusivo: tela que contém o botão real #cu-new. Sem alterações operacionais. */
@media screen {
  #page-content:has(#cu-new) {
    --cu-line:#c4d5ea;
    --cu-soft:#f1f7ff;
    --cu-navy:#16385f;
    --cu-ink:#203e63;
    --cu-muted:#607896;
    color:var(--cu-ink);
    font-family:Inter,"Segoe UI",Arial,sans-serif;
  }
  #page-content:has(#cu-new) .page-header {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:14px 20px;
    margin:0 0 18px;
    padding:4px 0 0;
  }
  #page-content:has(#cu-new) .page-header h2 {
    margin:0 0 4px;
    color:#122f54;
    font-size:clamp(22px,2.2vw,26px);
    line-height:1.27;
    letter-spacing:-.35px;
    font-weight:750;
  }
  #page-content:has(#cu-new) .page-header p {
    display:inline-block;
    color:#42648a;
    font-size:13px;
    font-weight:550;
    margin:0;
    padding:2px 0;
    line-height:1.4;
  }
  #page-content:has(#cu-new) .page-header > div:last-child {
    display:flex;
    align-items:center;
    gap:9px!important;
    flex-wrap:wrap;
  }
  #page-content:has(#cu-new) .btn {
    min-height:40px;
    padding:9px 14px;
    font-family:inherit;
    font-size:13px;
    font-weight:650;
    line-height:1.4;
    border-radius:7px;
    box-shadow:none;
    transition:background-color .13s,border-color .13s;
  }
  #page-content:has(#cu-new) .btn-primary {
    background:#2563eb;
    border:1px solid #2563eb;
    color:#fff;
  }
  #page-content:has(#cu-new) .btn-primary:hover {
    background:#1d4ed8;
    border-color:#1d4ed8;
  }
  #page-content:has(#cu-new) .btn-secondary {
    background:#fff;
    color:#244469;
    border:1px solid var(--cu-line);
  }
  #page-content:has(#cu-new) .btn-secondary:hover {
    background:#eff6ff;
    border-color:#91b6e4;
  }
  #page-content:has(#cu-new) .btn:focus-visible {
    outline:2px solid #2563eb;
    outline-offset:2px;
  }
  #page-content:has(#cu-new) > .card {
    border:1px solid var(--cu-line)!important;
    border-radius:9px!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(18,47,84,.04)!important;
    padding:0!important;
    overflow:hidden;
  }
  #page-content:has(#cu-new) > .card > p:first-child {
    margin:0!important;
    padding:17px 20px 13px!important;
    font-size:13.5px;
    line-height:1.55;
    color:var(--cu-navy)!important;
    background:var(--cu-soft)!important;
    border-bottom:1px solid var(--cu-line);
    font-weight:500;
  }
  #page-content:has(#cu-new) > .card > p:nth-child(2) {
    display:block;
    margin:0!important;
    padding:10px 20px!important;
    background:#fafcff;
    color:#395a80!important;
    border-bottom:1px solid #e1e9f4;
    font-size:12.5px;
    line-height:1.5;
    font-weight:550;
  }
  #page-content:has(#cu-new) > .card > div:has(table.data-table) {
    width:100%;
    max-width:100%;
    overflow-x:auto!important;
    margin:0!important;
    padding:0 18px 14px;
    scrollbar-color:#a0b9d7 #eef4fb;
  }
  #page-content:has(#cu-new) .data-table {
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    background:white;
    font-size:13px;
    line-height:1.47;
    table-layout:auto;
    min-width:760px;
  }
  #page-content:has(#cu-new) .data-table thead th {
    background:#edf4fd!important;
    color:var(--cu-navy)!important;
    padding:12px 14px!important;
    border-top:1px solid #dce7f5;
    border-bottom:1px solid var(--cu-line)!important;
    text-align:left;
    font-weight:700;
    font-size:12.5px;
    letter-spacing:0;
    vertical-align:middle;
  }
  #page-content:has(#cu-new) .data-table thead th:first-child{
    border-top-left-radius:6px;
  }
  #page-content:has(#cu-new) .data-table thead th:last-child{
    border-top-right-radius:6px;
  }
  #page-content:has(#cu-new) .data-table tbody tr:nth-child(even) {
    background:#f7faff;
  }
  #page-content:has(#cu-new) .data-table tbody tr:hover {
    background:#eff6ff!important;
  }
  #page-content:has(#cu-new) .data-table tbody td {
    padding:13px 14px!important;
    border-bottom:1px solid #e4edf8!important;
    color:#24415f;
    vertical-align:middle;
    overflow-wrap:anywhere;
  }
  #page-content:has(#cu-new) .data-table tbody td:first-child {
    color:#16385f;
    font-weight:650;
    white-space:nowrap;
    letter-spacing:.05px;
  }
  #page-content:has(#cu-new) .data-table tbody td:nth-child(2) {
    color:#3f5b7d;
    font-size:12.8px;
  }
  #page-content:has(#cu-new) .data-table tbody td:nth-child(3) {
    color:#355577;
    line-height:1.55;
    min-width:320px;
  }
  #page-content:has(#cu-new) .data-table tbody td:nth-child(3) > div {
    display:block;
    margin-bottom:7px!important;
    padding:6px 9px;
    border:1px solid #d9e6f5;
    border-radius:6px;
    background:#f3f8ff;
  }
  #page-content:has(#cu-new) .data-table tbody td:nth-child(3) > div:last-child{
    margin-bottom:0!important;
  }
  #page-content:has(#cu-new) .data-table tbody td:nth-child(3) strong {
    color:#193b65;
    font-weight:700;
  }
  #page-content:has(#cu-new) .data-table tbody td:last-child {
    width:290px;
    white-space:normal;
  }
  #page-content:has(#cu-new) .data-table tbody td:last-child .btn {
    min-height:37px;
    margin:2px 4px 2px 0;
    white-space:nowrap;
    padding:8px 12px;
    font-size:12.5px;
  }
}
@media screen and (max-width:850px) {
  #page-content:has(#cu-new) .page-header {
    align-items:flex-start;
    gap:12px;
  }
  #page-content:has(#cu-new) .page-header > div:last-child {
    gap:7px!important;
  }
  #page-content:has(#cu-new) > .card > p:first-child,
  #page-content:has(#cu-new) > .card > p:nth-child(2) {
    padding-left:13px!important;
    padding-right:13px!important;
  }
  #page-content:has(#cu-new) > .card > div:has(table.data-table) {
    padding:0 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #page-content:has(#cu-new) .btn {transition:none;}
}


/* v2 — alinhamento tipográfico e de colunas. Sem cartões nos vínculos. */
@media screen {
  #page-content:has(#cu-new) > .card > div:has(table.data-table) {
    padding: 0 17px 12px !important;
  }
  #page-content:has(#cu-new) table.data-table {
    table-layout: fixed !important;
    min-width: 1140px;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    line-height: 1.48;
  }
  #page-content:has(#cu-new) table.data-table :is(thead th,tbody td) {
    box-sizing: border-box;
    text-align: left !important;
    vertical-align: top !important;
    padding: 13px 12px !important;
    line-height: 1.5 !important;
  }
  #page-content:has(#cu-new) table.data-table :is(thead th,tbody td):nth-child(1) {
    width: 12%;
  }
  #page-content:has(#cu-new) table.data-table :is(thead th,tbody td):nth-child(2) {
    width: 20%;
  }
  #page-content:has(#cu-new) table.data-table :is(thead th,tbody td):nth-child(3) {
    width: 42%;
  }
  #page-content:has(#cu-new) table.data-table :is(thead th,tbody td):nth-child(4) {
    width: 26%;
  }
  #page-content:has(#cu-new) table.data-table tbody td:first-child {
    font-size: 13px !important;
    white-space: normal;
    font-weight: 650;
  }
  #page-content:has(#cu-new) table.data-table tbody td:nth-child(2) {
    font-size: 13px !important;
    overflow-wrap: anywhere;
  }
  #page-content:has(#cu-new) table.data-table tbody td:nth-child(3) {
    min-width: 0 !important;
    font-size: 13px;
    line-height: 1.5 !important;
  }
  #page-content:has(#cu-new) table.data-table tbody td:nth-child(3) > div {
    display: block;
    padding: 0 !important;
    margin: 0 0 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: inherit !important;
    line-height: 1.5 !important;
  }
  #page-content:has(#cu-new) table.data-table tbody td:nth-child(3) > div:last-child {
    margin-bottom: 0 !important;
  }
  #page-content:has(#cu-new) table.data-table tbody td:last-child {
    width: 26%;
    white-space: normal;
    padding-top: 10px !important;
  }
  #page-content:has(#cu-new) table.data-table tbody td:last-child .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    width: auto;
    min-height: 35px;
    padding: 7px 9px !important;
    margin: 0 5px 5px 0 !important;
    font-size: 12px !important;
    font-weight: 600;
    white-space: nowrap;
  }
  #page-content:has(#cu-new) table.data-table thead th {
    font-size: 12.5px;
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }
}
@media screen and (max-width: 800px) {
  #page-content:has(#cu-new) > .card > div:has(table.data-table) {
    padding: 0 10px 11px !important;
  }
}
