/* RH executive density pass.
   Scope: visual hierarchy and responsive density only. No API, auth or rule changes. */

.app.navx-auth .rh-module-shell{
  max-width:1160px;
}

.rh-module-head{
  isolation:isolate;
}

.rh-module-head::after{
  content:"";
  position:absolute;
  right:28px;
  bottom:18px;
  width:148px;
  height:148px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(37,99,235,.10), transparent 37%),
    radial-gradient(circle at 50% 50%, rgba(20,184,166,.08), transparent 66%);
  opacity:.82;
  z-index:-1;
}

.rh-breadcrumb span:first-child{
  display:inline-flex;
  align-items:center;
  gap:7px;
}

.rh-breadcrumb span:first-child::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:3px;
  background:linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow:0 0 0 4px rgba(37,99,235,.10);
}

.rh-module-tabs{
  padding:4px 4px 0;
  border-radius:22px 22px 0 0;
  background:linear-gradient(180deg, rgba(255,255,255,.74), rgba(244,248,255,.58));
  border:1px solid rgba(37,99,235,.09);
  border-bottom:0;
}

.rh-tab-btn{
  min-width:148px;
  justify-content:center;
  color:rgba(15,23,42,.70);
}

.rh-tab-btn.active{
  transform:translateY(1px);
}

.rh-readonly-summary{
  gap:12px;
}

.rh-summary-tile{
  min-height:94px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rh-summary-tile strong{
  font-size:1.42rem;
}

.rh-operacao-card{
  display:grid;
  gap:16px;
}

.rh-operacao-card > .rh-section-head,
.rh-operacao-card > .rh-ops-toolbar,
.rh-operacao-card > .msg,
.rh-operacao-card > .rh-ops-topgrid,
.rh-operacao-card > .rh-ops-summary,
.rh-operacao-card > .rh-ops-readiness,
.rh-operacao-card > .rh-governance-dry-run,
.rh-operacao-card > .rh-search-row,
.rh-operacao-card > .rh-ops-list,
.rh-operacao-card > .rh-ops-pagination{
  margin-top:0;
  margin-bottom:0;
}

.rh-ops-toolbar{
  grid-template-columns:minmax(260px, 1.35fr) minmax(150px, .72fr) minmax(150px, .72fr) minmax(190px, auto);
  gap:12px;
}

.rh-ops-topgrid{
  grid-template-columns:minmax(0, 1.2fr) minmax(300px, .8fr);
}

.rh-ops-meta-card,
.rh-ops-report-card{
  min-height:168px;
}

.rh-ops-summary{
  grid-template-columns:repeat(6, minmax(0, 1fr));
}

.rh-ops-kpi{
  min-height:92px;
}

.rh-ops-kpi .pilot-label,
.rh-gov-kpi .pilot-label,
.rh-summary-tile .pilot-label{
  color:#334155;
}

.rh-ops-kpi strong,
.rh-gov-kpi strong{
  font-size:26px;
}

.rh-ops-distribution{
  min-height:88px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.rh-ops-readiness,
.rh-governance-dry-run{
  position:relative;
  overflow:hidden;
}

.rh-ops-readiness::before,
.rh-governance-dry-run::before{
  content:"";
  position:absolute;
  left:0;
  top:18px;
  bottom:18px;
  width:5px;
  border-radius:0 999px 999px 0;
}

.rh-ops-readiness::before{
  background:linear-gradient(180deg, #14b8a6, #2563eb);
}

.rh-governance-dry-run::before{
  background:linear-gradient(180deg, #f59e0b, #2563eb);
}

.rh-ops-readiness-head,
.rh-governance-dry-run-head{
  padding-left:5px;
}

.rh-ops-readiness-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.rh-readiness-item{
  min-height:128px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78);
}

.rh-readiness-item-head{
  align-items:center;
}

.rh-readiness-item .rh-mini-chip{
  white-space:normal;
  justify-content:center;
  text-align:center;
}

.rh-governance-dry-run{
  background:
    radial-gradient(circle at 0% 0%, rgba(245,158,11,.12), transparent 22rem),
    linear-gradient(180deg, rgba(255,251,235,.88), rgba(255,255,255,.92));
}

.rh-gov-context{
  align-items:flex-start;
}

.rh-gov-kpis{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.rh-gov-candidate{
  border-radius:18px;
  box-shadow:0 12px 24px rgba(15,23,42,.055);
}

.rh-ops-list{
  gap:14px;
}

.rh-ops-item{
  padding:18px 18px 18px 20px;
}

.rh-ops-item-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:start;
}

.rh-ops-title{
  font-size:20px;
}

.rh-ops-item-main{
  grid-template-columns:minmax(0, 1fr) minmax(300px, .62fr);
  gap:14px;
}

.rh-ops-audit{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.rh-ops-audit .rh-ops-block{
  min-height:136px;
}

.rh-ops-governance{
  grid-column:1 / -1;
  border-radius:18px;
}

.rh-ops-action{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:100%;
  border-radius:18px;
}

.rh-ops-action strong{
  font-size:13px;
}

.rh-ops-action p{
  line-height:1.42;
}

.rh-ops-action-buttons{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.rh-ops-action-buttons .btn,
.rh-ops-action-buttons .rh-ops-muted{
  width:100%;
  min-height:42px;
  justify-content:center;
  text-align:center;
}

.rh-ops-action-buttons .rh-ops-history-btn{
  grid-column:1 / -1;
}

.rh-readonly-list-card{
  display:grid;
  gap:14px;
}

.rh-readonly-toolbar,
.rh-auditoria-head{
  padding-bottom:2px;
}

.rh-search-row{
  margin:0;
}

.rh-colaboradores-list{
  gap:12px;
}

.rh-colab-item{
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:stretch;
  padding:16px;
}

.rh-colab-side{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:7px;
}

.rh-colab-actions{
  justify-content:flex-start;
}

.rh-auditoria-list,
.rh-unidades-list{
  gap:12px;
}

.rh-audit-item,
.rh-unidade-item{
  padding:15px;
}

@media (max-width:1040px){
  .rh-ops-toolbar,
  .rh-ops-topgrid,
  .rh-ops-item-main{
    grid-template-columns:1fr;
  }

  .rh-ops-summary{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .rh-ops-action{
    min-height:0;
  }
}

@media (max-width:760px){
  .rh-module-head::after{
    right:-38px;
    bottom:-42px;
    width:132px;
    height:132px;
    opacity:.55;
  }

  .rh-readonly-summary,
  .rh-ops-summary,
  .rh-ops-readiness-grid,
  .rh-gov-kpis{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .rh-ops-audit{
    grid-template-columns:1fr;
  }

  .rh-ops-action-buttons{
    grid-template-columns:1fr;
  }

  .rh-ops-item-head{
    grid-template-columns:1fr;
  }

  .rh-colab-item{
    grid-template-columns:1fr;
  }
}

@media (max-width:460px){
  .rh-readonly-summary,
  .rh-ops-summary,
  .rh-ops-readiness-grid,
  .rh-gov-kpis{
    grid-template-columns:1fr;
  }

  .rh-summary-tile,
  .rh-ops-kpi{
    min-height:78px;
  }

  .rh-readiness-item{
    min-height:0;
    gap:10px;
  }
}
