/* =========================================================
   CelesTI – Gerenciador de Funções (cgfu)
   Estilo baseado no exemplo enviado, porém para fundo branco
   com paleta Amplax.
========================================================= */

/* Escopo / largura total */
.cgfu-wrap,
.cgfu-wrap *{
  box-sizing:border-box !important;
}

.cgfu-wrap.cgfu-wrap--full{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  font-family:"Open Sans",sans-serif !important;
  color:#717376 !important;
  background:transparent !important; /* sem fundo na seção */
}

/* Card sem “fundo” global do shortcode */
.cgfu-card.cgfu-card--no-bg{
  width:100% !important;
  background:transparent !important;  /* remove fundo do card */
  border:none !important;            /* remove moldura geral */
  border-radius:0 !important;
  padding:0 !important;
  margin:0 0 30px 0 !important;
  box-shadow:none !important;
}

/* Grid do formulário */
.cgfu-grid{
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(1,1fr) !important;
  gap:0 18px !important;
}

.cgfu-col{min-width:0 !important;}

@media (max-width:900px){
  .cgfu-grid{grid-template-columns:1fr !important;}
}

/* Labels (minúsculo, 15px, 600, margem top 30 / left 10) */
.cgfu-label{
  text-transform:lowercase !important;
  font-size:15px !important;
  font-weight:600 !important;
  color:#717376 !important;
  margin:15px 0 8px 10px !important;
  display:block !important;
}

/* Campos com fundo leve/transparência (sem borda pesada) */
.cgfu-input,
.cgfu-password{
  width:100% !important;
  height:52px !important;
  padding:0 14px !important;
  margin:0 0 0 0 !important;
  background:rgba(0,0,0,0.04) !important; /* transparência leve */
  border:none !important;
  border-radius:10px !important;
  font-size:15px !important;
  font-weight:400 !important;
  font-family:"Open Sans",sans-serif !important;
  color:#717376 !important;
  transition:all .2s ease !important;
}

.cgfu-input:focus,
.cgfu-password:focus{
  outline:none !important;
  border: none!important;
}

/* Ações */
.cgfu-actions{
  width:100% !important;
  display:flex !important;
  justify-content:flex-end !important;
  margin-top:20px !important;
}

/* Botões padrão */
.cgfu-btn{
  font-family:"Open Sans",sans-serif !important;
  font-size:16px !important;
  font-weight:700 !important;
  padding:15px 22px !important;
  border-radius:10px !important;
  border:none !important;
  background:#E82A34 !important;
  color:#fff !important;
  cursor:pointer !important;
  text-decoration:none !important;
  transition:background .2s ease, transform .02s ease !important;
  line-height:1 !important;
}

.cgfu-btn:hover{
  background:#E7131E !important;
  color:#fff !important;
}

.cgfu-btn:active{
  transform:translateY(1px) !important;
}

.cgfu-btn--ghost{
  background:#fff !important;
  border:1px solid #E82A34 !important;
  color:#E82A34 !important;
}

.cgfu-btn--ghost:hover{
  background:#f6f6f6 !important;
  border-color:#E7131E !important;
  color:#E7131E !important;
}

.cgfu-btn--danger{
  background:#E82A34 !important;
  color:#fff !important;
}

.cgfu-btn--danger:hover{
  background:#E7131E !important;
}

/* Notificações */
.cgfu-note{
  width:100% !important;
  background:rgba(0,0,0,0.04) !important;
  padding:12px 14px !important;
  border-radius:10px !important;
  margin-bottom:18px !important;
  font-size:14px !important;
  font-weight:600 !important;
  color:#717376 !important;
}

/* LISTA */
.cgfu-head,
.cgfu-row{
  width:100% !important;
  display:grid !important;
  grid-template-columns:2.5fr 2fr 1fr !important;
  gap:12px !important;
  align-items:center !important;
}

.cgfu-head{
  margin-top:10px !important;
  padding:12px 10px !important;
  border-bottom:1px solid #E4E4E4 !important;
  font-weight:700 !important;
  font-size:14px !important;
  color:#717376 !important;
}

.cgfu-row{
  padding:14px 10px !important;
  border-bottom:1px solid #E4E4E4 !important;
}

.cgfu-row:last-child{border-bottom:none !important;}

.cgfu-user strong{
  font-size:15px !important;
  font-weight:700 !important;
  color:#717376 !important;
}

.cgfu-user small{
  font-size:12px !important;
  color:#919191 !important;
}

/* Responsivo */
@media (max-width:768px){
  .cgfu-head{display:none !important;}

  .cgfu-row{
    grid-template-columns:1fr !important;
    border:1px solid #E4E4E4 !important;
    border-radius:10px !important;
    padding:12px !important;
    margin-bottom:10px !important;
  }

  .cgfu-actions{justify-content:flex-start !important;}
}



/* ====== ALERTA COM BOTÃO FECHAR ====== */

.cgfu-alert {
    position: relative !important;
    padding-right: 40px !important;
}

.cgfu-alert-close {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #717376 !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.cgfu-alert-close:hover {
    color: #000 !important;
}

