/* Perfil */
.pf-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-item > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Modal Alto Custo (abre no Dashboard) ===== */
.hc-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 54px 14px 14px;
  z-index: 9999;
}
.hc-overlay.hidden{ display:none; }

.hc-modal{
  width: min(920px, 96vw);
  max-height: calc(100vh - 90px);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
}

.hc-top{
  background:#0b7285;
  color:#fff;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.hc-title{ font-weight: 800; }
.hc-x{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  background: rgba(255,255,255,.15);
  border: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-0.5px);
  transition: background .2s ease, transform .15s ease;
}

.hc-x:hover{
  background: rgba(255,255,255,.25);
  transform: translateY(-0.5px) scale(1.05);
}

.hc-x:active{
  transform: translateY(-0.5px) scale(.95);
}

.hc-body{
  padding: 12px 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  overflow: hidden;
}
.hc-search{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  outline: none;
}
.hc-search:focus{
  border-color: rgba(11,114,133,.55);
  box-shadow: 0 0 0 3px rgba(11,114,133,.12);
}
.hc-status{
  font-size: 12px;
  opacity: .75;
}

.hc-list{
  border-top: 1px solid rgba(0,0,0,.10);
  margin-top: 6px;
  padding-top: 6px;
  overflow: auto;
  min-height: 220px;
}

/* o JS cria linhas com .hc-row e texto .hc-name */
.hc-row{
  padding: 10px 8px;
  cursor: pointer;
  border-radius: 10px;
}
.hc-row:hover{ background: rgba(11,114,133,.08); }
.hc-name{ font-weight: 800; }

.hc-actions{
  padding: 10px 14px;
  display:flex;
  justify-content:flex-end;
  border-top: 1px solid rgba(0,0,0,.10);
}
.hc-cancel{
  padding: 10px 14px;
  border-radius: 10px;
}

/* Botão Desconectar (vermelho) */
#btnLogout {
  background-color: #dc3545; /* vermelho */
  color: #fff;
}

#btnLogout:hover {
  background-color: #b02a37; /* vermelho mais escuro no hover */
}

/* Lista de Diretrizes */
#diretrizesList{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:4px 0;
}

.diretriz-item{
  appearance:none;
  border:1px solid rgba(0,0,0,.12);
  background:#ffffff;
  border-radius:10px;
  padding:10px 12px;
  text-align:left;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition: all .15s ease;
}

.diretriz-item:hover{
  background:#f1f5f9;
  transform: translateX(3px);
}

/* ===== Modal Diretrizes: lista vertical ===== */
#dgList{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
}

/* garante que cada item ocupe a linha inteira */
#dgList .hc-item{
  width: 100%;
  display: block;
  text-align: left;
}

/* opcional: evita que o texto "empurre" pra ficar estranho */
#dgList .hc-item-title{
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-add{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #0ea5e9;
  color: #fff;
  font-weight: 800;
  margin-right: 10px;
}

.hc-add:hover{
  filter: brightness(0.95);
}

.hc-add.hidden{
  display:none;
}
