
/* CredGaming / Homologacao - Usuarios v3, escopo exclusivo do modulo. */
.cg-users-v3,.cg-v3-profile{width:100%;max-width:1160px;min-width:0;margin:0 auto}
.cg-users-v3 .users-hub-content{min-width:0}
.cg-v3-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.cg-v3-heading h1{font-size:clamp(27px,3vw,32px);line-height:1.13;letter-spacing:-.035em;color:#222a44;margin:0 0 5px}
.cg-v3-heading p{font-size:13px;line-height:1.5;color:#71809a;margin:0}
.cg-dashboard-v2 .cg-v3-create-button{min-height:45px;padding:11px 19px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:13px!important;font-weight:800;white-space:nowrap;cursor:pointer;flex-shrink:0}
.cg-v3-create-button .ui-line-icon{width:18px;height:18px;stroke:currentColor}
.cg-v3-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:19px}
.cg-v3-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-radius:15px;border:1px solid rgba(218,226,240,.94);background:rgba(255,255,255,.78);min-width:0}
.cg-v3-total>span{color:#68748a;font-size:13px;font-weight:650}
.cg-v3-total>strong{font-size:25px;font-weight:850;font-variant-numeric:tabular-nums;color:#28304c}
html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-list-panel,
.cg-dashboard-v2 .cg-v3-list-panel{padding:19px!important;min-width:0!important;overflow:visible!important;border-radius:19px!important;background:rgba(255,255,255,.86)!important;border:1px solid rgba(213,221,238,.85)!important;box-shadow:0 9px 30px rgba(47,62,104,.045)!important}
.cg-v3-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 16px}
.cg-v3-list-heading h2{font-size:17px;letter-spacing:-.02em;color:#29324b;font-weight:800;margin:0}
.cg-v3-list-heading>span{color:#8790a1;font-size:11px}
.cg-v3-filters{display:grid;grid-template-columns:minmax(190px,1fr) minmax(112px,170px) minmax(112px,170px);gap:10px;align-items:end;margin-bottom:17px}
.cg-v3-filters>label{display:grid;gap:6px;min-width:0}
.cg-v3-field-label{display:block;color:#566179;font-weight:750;font-size:11px}
.cg-v3-search-field{display:flex;align-items:center;position:relative;min-width:0}
.cg-v3-search-field>.ui-line-icon{position:absolute;left:13px;width:18px;height:18px;pointer-events:none;color:#8290a6;stroke:currentColor}
.cg-dashboard-v2 .cg-v3-filters .input,.cg-dashboard-v2 .cg-v3-filters .select{margin:0;width:100%;min-height:44px;font-size:13px!important;background:#fafbff!important;color:#25314c!important;border-radius:12px!important;border:1px solid #dce3ef!important;box-shadow:none!important;padding:10px 12px!important}
.cg-dashboard-v2 .cg-v3-search-field .input{padding-left:40px!important}
.cg-v3-filters .input:focus-visible,.cg-v3-filters .select:focus-visible{outline:2px solid #8563dd!important;outline-offset:1px}
.cg-v3-list-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,110px) minmax(80px,100px) 86px;gap:12px;align-items:center;border-bottom:1px solid #e9edf5;padding:0 13px 10px;font-weight:800;font-size:10px;letter-spacing:.055em;text-transform:uppercase;color:#818b9c}
.cg-v3-list{display:grid;gap:7px;padding:9px 0 0}
.cg-dashboard-v2 .cg-v3-user-row{min-width:0;display:grid;align-items:center;grid-template-columns:minmax(0,1fr) minmax(90px,110px) minmax(80px,100px) 86px;gap:12px;padding:13px;border:1px solid #e8edf5;border-radius:13px;background:#fff;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.cg-dashboard-v2 .cg-v3-user-row:hover{background:#f9f9ff;border-color:#bdafe9}
.cg-dashboard-v2 .cg-v3-user-row:focus-visible{outline:3px solid #8266d9;outline-offset:2px}
.cg-v3-identity{display:flex;gap:11px;align-items:center;min-width:0}
.cg-v3-avatar{width:44px!important;height:44px!important;min-width:44px;flex:0 0 44px;border-radius:13px!important;overflow:hidden;display:grid;place-items:center;background:#ebe7ff;color:#5c4bb4;font-size:15px;font-weight:850}
.cg-v3-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.cg-v3-identity-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.cg-v3-identity-text strong{font-size:13px;line-height:1.35;color:#27314c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800;display:flex;align-items:center;gap:7px}
.cg-v3-self{font-size:9px;color:#6751c0;background:#eeeaff;border-radius:6px;padding:2px 5px;font-weight:700}
.cg-v3-identity-text>span{color:#748198;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-v3-identity-text>small{font-size:11px;color:#939bad;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cg-v3-user-row>.role-badge,.cg-v3-user-row>.user-status{font-size:10px!important;line-height:1.25;white-space:nowrap;max-width:100%;width:max-content}
.cg-v3-open{display:flex;justify-content:flex-end;align-items:center;gap:6px;white-space:nowrap;color:#6955b4;font-size:11px;font-weight:800}
.cg-v3-open>span{font-size:19px;line-height:1}
.cg-v3-empty{padding:26px 12px;text-align:center;color:#7b879c;font-size:12px}
.cg-v3-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 3px 0;color:#8290a5;font-size:11px}
.cg-v3-footer-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.cg-v3-footer-actions .btn{min-height:34px;padding:7px 12px}
.cg-v3-back-nav{margin:0 0 14px}
.cg-v3-back-link{display:inline-flex;align-items:center;gap:6px;min-height:38px;border:0;background:transparent;font-size:12px;color:#6250a5;font-weight:800;cursor:pointer;padding:6px 8px;border-radius:9px}
.cg-v3-back-link:hover{background:rgba(118,100,213,.08)}
.cg-v3-back-link:focus-visible{outline:2px solid #8563dd;outline-offset:2px}
/* Perfil: informacoes e controle de acesso sempre visiveis. */
.cg-v3-profile .cg-v3-profile-header{min-width:0;margin-bottom:15px}
html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-profile .cg-v3-profile-header,
.cg-dashboard-v2 .cg-v3-profile .cg-v3-profile-header{padding:19px 22px!important;border-radius:19px!important;box-shadow:none!important;border:1px solid #e2e7f1!important;background:linear-gradient(120deg,#fff 0%,#f5f4ff 100%)!important}
.cg-v3-profile .user-profile-hero-photo .account-avatar-large{width:72px;height:72px;font-size:30px}
.cg-v3-profile .user-profile-hero-copy h1{font-size:clamp(23px,2.7vw,30px)!important;line-height:1.15!important;margin:0 0 8px!important;letter-spacing:-.025em!important}
.cg-v3-profile .user-profile-hero-card:after{opacity:.25}
.cg-v3-profile .cg-v3-profile-summary{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(235px,.75fr);gap:13px;margin-bottom:16px;align-items:start;min-width:0}
html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-profile-summary>.dashboard-panel,
.cg-dashboard-v2 .cg-v3-profile-summary>.dashboard-panel{padding:20px!important;border-radius:17px!important;border:1px solid #e4e8f1!important;box-shadow:none!important;min-width:0}
.cg-v3-profile-summary .user-profile-info-card{grid-column:1}
.cg-v3-profile-summary .user-status-control-card{grid-column:2}
.cg-v3-profile .refined-user-detail-data{margin-top:12px}
.cg-v3-profile .refined-user-detail-data dd{overflow-wrap:anywhere}
.cg-v3-profile .user-status-control-card .btn{min-height:44px;font-size:12px}
.cg-v3-detail-sections{display:grid;gap:9px;min-width:0}
.cg-v3-detail{min-width:0;border:1px solid #e0e7f1;background:rgba(255,255,255,.85);border-radius:15px;overflow:hidden}
.cg-v3-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:70px;padding:13px 19px;cursor:pointer;list-style:none}
.cg-v3-detail>summary::-webkit-details-marker{display:none}
.cg-v3-detail>summary>span{display:grid;gap:4px}
.cg-v3-detail>summary strong{color:#2c3550;font-size:13px;font-weight:800}
.cg-v3-detail>summary small{color:#8993a5;font-size:11px;line-height:1.4}
.cg-v3-detail>summary b{color:#6d5ac1;font-size:19px;font-weight:500;line-height:1}
.cg-v3-detail[open]>summary b{transform:rotate(180deg)}
.cg-v3-detail>summary:hover{background:#faf9ff}
.cg-v3-detail>summary:focus-visible{outline:2px solid #836add;outline-offset:-2px}
.cg-v3-detail[open]>summary{border-bottom:1px solid #e5eaf4}
.cg-v3-detail-content{padding:15px;min-width:0}
.cg-v3-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-detail-content>.dashboard-panel,
html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-detail-grid>.dashboard-panel,
.cg-dashboard-v2 .cg-v3-detail-content>.dashboard-panel{margin:0!important;max-width:none!important;padding:19px!important;background:#fafbff!important;border:1px solid #e8edf5!important;box-shadow:none!important;border-radius:13px!important;min-width:0}
.cg-v3-detail .module-permission-grid{min-width:0}
.cg-v3-detail .user-password-card,.cg-v3-detail .user-delete-card{width:100%}
.cg-v3-detail .temporary-password-display{max-width:100%;overflow-wrap:anywhere}
.cg-v3-detail .temporary-password-display code{overflow-wrap:anywhere}
.cg-v3-detail .user-profile-activity-card{width:100%}
.cg-v3-danger-detail>summary strong{color:#a53746}
.cg-v3-danger-detail>summary b{color:#bf5360}
.cg-v3-danger-detail[open]{border-color:#efc9cd}
.cg-v3-danger-detail .dashboard-panel{background:#fff9f9!important}
@media(max-width:920px){
  .cg-v3-profile .cg-v3-profile-summary{grid-template-columns:minmax(0,1fr)}
  .cg-v3-profile-summary .user-profile-info-card,.cg-v3-profile-summary .user-status-control-card{grid-column:1}
  .cg-v3-detail-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
  .cg-v3-heading{align-items:flex-start;margin-bottom:15px;gap:10px}
  .cg-v3-heading h1{font-size:25px}
  .cg-v3-heading p{font-size:12px}
  .cg-dashboard-v2 .cg-v3-create-button{padding:10px 12px;min-height:42px;font-size:11px;align-self:flex-end}
  .cg-v3-create-button .ui-line-icon{width:15px;height:15px}
  .cg-v3-totals{gap:7px;margin-bottom:14px}
  .cg-v3-total{flex-direction:column;align-items:flex-start;gap:5px;padding:12px;border-radius:12px}
  .cg-v3-total>span{font-size:10px}
  .cg-v3-total>strong{font-size:23px}
  html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-list-panel,
  .cg-dashboard-v2 .cg-v3-list-panel{padding:13px!important;border-radius:17px!important}
  .cg-v3-list-heading{display:grid;gap:3px;margin-bottom:12px}
  .cg-v3-list-heading h2{font-size:15px}
  .cg-v3-list-heading>span{font-size:10px}
  .cg-v3-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}
  .cg-v3-search{grid-column:1/-1}
  .cg-dashboard-v2 .cg-v3-filters .input,.cg-dashboard-v2 .cg-v3-filters .select{font-size:16px!important;min-height:46px}
  .cg-v3-list-head{display:none}
  .cg-v3-list{gap:8px;padding-top:0}
  .cg-dashboard-v2 .cg-v3-user-row{grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:9px;border-radius:13px}
  .cg-v3-identity{grid-column:1/-1;gap:10px}
  .cg-v3-avatar{width:43px!important;height:43px!important;min-width:43px;flex-basis:43px}
  .cg-v3-user-row>.role-badge{grid-column:1;grid-row:2}
  .cg-v3-user-row>.user-status{grid-column:2;grid-row:2;justify-self:end}
  .cg-v3-open{grid-column:1/-1;grid-row:3;justify-content:flex-end;font-size:11px;border-top:1px solid #f0f1f5;padding-top:6px}
  .cg-v3-footer{align-items:flex-start;gap:10px;flex-wrap:wrap;padding-top:13px}
  .cg-v3-detail>summary{min-height:63px;padding:12px 15px}
  .cg-v3-detail-content{padding:12px}
  html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-profile .cg-v3-profile-header,
  .cg-dashboard-v2 .cg-v3-profile .cg-v3-profile-header{padding:16px!important}
  .cg-v3-profile .user-profile-hero-photo .account-avatar-large{width:65px;height:65px}
  .cg-v3-profile .user-profile-hero-copy h1{font-size:23px!important}
  html.nzn-liquid-glass-ui .cg-dashboard-v2 .cg-v3-profile-summary>.dashboard-panel,
  .cg-dashboard-v2 .cg-v3-profile-summary>.dashboard-panel{padding:16px!important}
}
@media(max-width:385px){
  .cg-v3-heading{flex-wrap:wrap}
  .cg-dashboard-v2 .cg-v3-create-button{width:100%}
  .cg-v3-identity-text strong{font-size:12px}
  .cg-v3-identity-text>small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.cg-v3-user-row{transition:none!important}}


/* Correção de navegação: o botão Voltar precisa ser facilmente identificado. */
.cg-users-v3 .cg-v3-back-nav,
.cg-v3-profile .cg-v3-back-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  margin:0 0 16px!important;
  min-height:46px;
  position:relative;
  z-index:3;
}
.cg-users-v3 .cg-v3-back-link,
.cg-v3-profile .cg-v3-back-link{
  box-sizing:border-box;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px;
  min-height:46px!important;
  padding:10px 16px!important;
  border:1px solid #c7bcee!important;
  border-radius:12px!important;
  background:#f2eeff!important;
  color:#533ca6!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.35;
  text-decoration:none!important;
  box-shadow:0 2px 7px rgba(61,48,120,.07)!important;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.cg-users-v3 .cg-v3-back-link:hover,
.cg-v3-profile .cg-v3-back-link:hover{
  background:#e6deff!important;
  border-color:#8f78df!important;
  box-shadow:0 5px 14px rgba(73,53,146,.12)!important;
}
.cg-users-v3 .cg-v3-back-link:focus-visible,
.cg-v3-profile .cg-v3-back-link:focus-visible{
  outline:3px solid #7b60dc!important;
  outline-offset:3px!important;
}
@media(max-width:700px){
  .cg-users-v3 .cg-v3-back-nav,
  .cg-v3-profile .cg-v3-back-nav{
    margin-bottom:14px!important;
  }
  .cg-users-v3 .cg-v3-back-link,
  .cg-v3-profile .cg-v3-back-link{
    min-height:48px!important;
    width:auto!important;
    max-width:100%;
    padding:12px 16px!important;
    font-size:14px!important;
  }
}

/* Autenticacao corporativa: escopo exclusivo, responsivo e compativel com o tema. */
.cg-entra-settings{display:grid;gap:14px;min-width:0;width:100%;max-width:960px;margin:0 auto}
.cg-entra-settings .dashboard-panel{min-width:0;display:grid;gap:12px;align-content:start}
.cg-entra-settings h2,.cg-entra-settings p,.cg-entra-settings dl{margin:0}
.cg-entra-settings h2{font-size:18px;line-height:1.35;letter-spacing:-.02em}
.cg-entra-settings p,.cg-entra-settings small{line-height:1.55;overflow-wrap:anywhere}
.cg-entra-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.cg-entra-heading .user-status{white-space:normal;max-width:100%;line-height:1.4}
.cg-entra-checks{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cg-entra-checks li{display:flex;gap:8px;align-items:baseline;font-size:13px;line-height:1.45}
.cg-entra-checks li span{font-weight:750;flex-shrink:0}
.cg-entra-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cg-entra-settings .field{min-width:0;margin:0}
.cg-entra-settings .input,.cg-entra-settings .select{width:100%;min-width:0}
.cg-entra-copy{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cg-entra-copy code{flex:1 1 240px;min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.5}
.cg-entra-settings .btn{justify-self:start;white-space:normal;min-height:42px}
.cg-entra-policies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cg-entra-policies div{padding:12px;border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 15%,transparent);border-radius:12px;min-width:0}
.cg-entra-policies dt{font-size:12px;opacity:.75}
.cg-entra-policies dd{font-size:14px;font-weight:650;margin:4px 0 0;overflow-wrap:anywhere}
.cg-entra-recovery{border-top:1px solid color-mix(in srgb,currentColor 16%,transparent);padding-top:12px;min-width:0}
.cg-entra-recovery summary{font-weight:700;cursor:pointer;line-height:1.5}
.cg-entra-recovery[open]>*:not(summary){margin-top:12px}
@media(max-width:600px){.cg-entra-fields,.cg-entra-checks{grid-template-columns:1fr}.cg-entra-settings .btn{width:100%;justify-self:stretch}.cg-entra-copy{display:grid;grid-template-columns:minmax(0,1fr)}.cg-entra-policies{gap:8px}.cg-entra-policies div{padding:10px}.cg-entra-settings h2{font-size:17px}}
