/* RH presentation polish for institutional review.
   Scope: visual hierarchy only. No rule, API, or permission changes. */

.app.navx-auth .rh-module-shell{
  position:relative;
  max-width:1120px;
  border-radius:24px;
  border-color:rgba(15,23,42,.075);
  background:
    radial-gradient(circle at 18% 0%, rgba(37,99,235,.10), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(20,184,166,.08), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,250,255,.96));
  box-shadow:
    0 28px 70px rgba(15,23,42,.11),
    0 8px 24px rgba(15,23,42,.06);
}

.rh-module-head{
  position:relative;
  padding:26px 26px 18px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.12), rgba(20,184,166,.055)),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.90));
}

.rh-module-head::before{
  content:"";
  position:absolute;
  left:0;
  top:22px;
  bottom:18px;
  width:5px;
  border-radius:0 8px 8px 0;
  background:linear-gradient(180deg, #2563eb, #14b8a6);
}

.rh-module-head h2{
  font-size:32px;
}

.rh-module-head p{
  max-width:760px;
  font-weight:650;
}

.rh-module-actions .readonly-pill,
.rh-phase-chip{
  border-color:rgba(22,163,74,.22);
  background:linear-gradient(180deg, rgba(22,163,74,.11), rgba(255,255,255,.72));
  color:#14532d;
  box-shadow:0 10px 22px rgba(22,163,74,.08);
}

.rh-module-nav{
  padding:16px 26px 0;
}

.rh-module-tabs{
  gap:10px;
}

.rh-tab-btn{
  min-height:48px;
  padding-inline:18px;
}

.rh-tab-btn.active{
  color:#1d4ed8;
  background:linear-gradient(180deg, #fff, rgba(247,250,255,.94));
  border:1px solid rgba(37,99,235,.20);
  border-bottom-color:rgba(255,255,255,0);
  box-shadow:0 14px 30px rgba(37,99,235,.13);
}

.rh-tab-btn.active::after{
  content:"";
  position:absolute;
  left:14px;
  right:14px;
  bottom:-2px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg, #2563eb, #14b8a6);
}

.rh-tab-panel{
  padding:20px 26px 26px;
}

.rh-readonly-summary{
  margin:18px 26px 0;
}

.rh-summary-tile,
.rh-ops-kpi{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.86));
  border-color:rgba(37,99,235,.11);
}

.rh-summary-tile::before,
.rh-ops-kpi::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:4px;
  background:linear-gradient(90deg, rgba(37,99,235,.80), rgba(20,184,166,.62));
}

.rh-summary-tile strong,
.rh-ops-kpi strong{
  color:#0f172a;
}

.rh-operacao-card,
.rh-readonly-list-card,
.rh-unidades-card,
.rh-auditoria-card{
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.90));
  border-color:rgba(37,99,235,.11);
}

.rh-ops-toolbar{
  position:relative;
  grid-template-columns:minmax(220px, 1.25fr) minmax(150px, .9fr) minmax(150px, .82fr) minmax(180px, auto);
  padding:16px;
  border-radius:20px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.08), rgba(20,184,166,.035)),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,255,.84));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86);
}

.rh-ops-toolbar .btn-primary,
.rh-readonly-toolbar .btn-primary,
.rh-head-refresh{
  min-height:46px;
  border-radius:15px;
}

.rh-ops-topgrid{
  grid-template-columns:minmax(0, 1.28fr) minmax(280px, .72fr);
}

.rh-ops-meta-card,
.rh-ops-report-card,
.rh-ops-distribution,
.rh-ops-item{
  border-radius:21px;
  border-color:rgba(15,23,42,.085);
  background:linear-gradient(180deg, #fff, rgba(248,251,255,.92));
}

.rh-ops-meta-card,
.rh-ops-report-card{
  box-shadow:0 16px 34px rgba(15,23,42,.06);
}

.rh-ops-block{
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.86));
}

.rh-ops-item{
  position:relative;
  overflow:hidden;
  padding:18px;
  box-shadow:0 16px 34px rgba(15,23,42,.07);
}

.rh-ops-item::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:rgba(37,99,235,.62);
}

.rh-ops-item.is-without-reservation::before{
  background:rgba(100,116,139,.55);
}

.rh-ops-item.is-pending-consumption::before{
  background:linear-gradient(180deg, #2563eb, #f59e0b);
}

.rh-ops-item.is-consumed::before{
  background:linear-gradient(180deg, #0f766e, #16a34a);
}

.rh-ops-item-head{
  padding-left:2px;
}

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

.rh-ops-action{
  border-color:rgba(245,158,11,.20);
  background:
    linear-gradient(135deg, rgba(245,158,11,.13), rgba(255,255,255,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}

.rh-ops-action.is-consumo{
  border-color:rgba(37,99,235,.20);
  background:
    linear-gradient(135deg, rgba(37,99,235,.11), rgba(255,255,255,.94));
  color:#1e3a8a;
}

.rh-ops-action.is-consumo .rh-ops-action-label{
  color:#1e3a8a;
}

.rh-ops-validate-btn{
  flex:1 1 180px;
  min-height:42px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(37,99,235,.98), rgba(29,78,216,.95));
  color:#fff;
  border-color:rgba(37,99,235,.22);
  box-shadow:0 12px 24px rgba(37,99,235,.18);
}

.rh-ops-validate-btn:hover{
  filter:saturate(1.04);
  box-shadow:0 16px 30px rgba(37,99,235,.22);
}

.rh-ops-result{
  border-radius:16px;
  padding:12px 13px;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.rh-ops-result.is-ok{
  background:linear-gradient(135deg, rgba(22,163,74,.12), rgba(255,255,255,.96));
}

.rh-ops-result.is-bad{
  background:linear-gradient(135deg, rgba(239,68,68,.10), rgba(255,255,255,.96));
}

.rh-colab-item,
.rh-unidade-item,
.rh-audit-item{
  border-radius:18px;
  background:linear-gradient(180deg, #fff, rgba(248,251,255,.92));
  border-color:rgba(15,23,42,.085);
}

.rh-colab-item{
  padding:15px;
  box-shadow:0 12px 26px rgba(15,23,42,.055);
}

.rh-colab-name{
  font-size:16px;
}

.rh-colab-actions .btn{
  min-height:38px;
  border-radius:13px;
}

.rh-search-row .input,
.rh-ops-search-row .input,
.rh-ops-toolbar .input{
  min-height:46px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}

@media (max-width:900px){
  .rh-module-head{
    padding:22px 18px 16px;
  }

  .rh-module-nav{
    padding:14px 18px 0;
  }

  .rh-tab-panel{
    padding:16px 18px 20px;
  }

  .rh-readonly-summary{
    margin:16px 18px 0;
  }

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

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

@media (max-width:600px){
  .app.navx-auth .rh-module-shell{
    border-radius:20px;
  }

  .rh-module-head h2{
    font-size:26px;
  }

  .rh-ops-item{
    padding:15px;
  }

  .rh-ops-validate-btn,
  .rh-ops-export,
  .rh-search-row .btn,
  .rh-ops-toolbar .btn{
    width:100%;
  }

  .rh-colab-meta,
  .rh-unidade-meta{
    gap:6px;
  }

  .rh-mini-chip{
    font-size:11px;
  }
}
