/* Ajustes específicos da tela de cadastro (laboratorios.php) */

.actions-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Linha de senha antes dos botões */
.actions-credentials{
  margin-bottom: 12px;
}

/* Botão largura total (mesmo padrão dos demais módulos) */
.btn-c-lab{
  width: 100%;
}

/* Botão de Termos (vermelho=0 / verde=1) */
.btn-termos{
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,.45);
  background: rgba(239,68,68,.12);
  color: rgba(239,68,68,1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
}
.btn-termos:hover{ filter: brightness(.99); }
.btn-termos:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(53,158,255,.18);
}
.btn-termos:disabled{
  opacity: .65;
  cursor: not-allowed;
}
.btn-termos[data-termos="1"]{
  border-color: rgba(34,197,94,.45);
  background: rgba(34,197,94,.12);
  color: rgba(34,197,94,1);
}


/* Suporte a col-4/col-6 (mesma lógica das demais col-*) */
.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }

/* Alertas do formulário */
.form-alert{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-8, 12px);
  border: 1px solid rgba(229,231,235,.9);
  background: rgba(245,247,248,.8);
  color: var(--cyan-8, #0f4c5c);
  font-size: 14px;
}
.form-alert--error{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.06);
}
.form-alert--ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.06);
}

@media (max-width: 520px){
  .actions-row{
    grid-template-columns: 1fr;
  }
  .col-4,
  .col-6{
    grid-column: span 12;
  }
}

/* Input com botão de "olho" (mostrar/ocultar senha) */
.input-wrap{
  position: relative;
}

.input-wrap .input{
  padding-right: 44px; /* espaço para o botão do olho */
}

.btn-eye{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-eye:hover{
  background: rgba(0,0,0,.05);
}

.btn-eye:focus-visible{
  outline: 2px solid rgba(59,130,246,.6);
  outline-offset: 2px;
}

.btn-eye .icon-eye-off{
  display: none;
}

.btn-eye.is-visible .icon-eye{
  display: none;
}

.btn-eye.is-visible .icon-eye-off{
  display: inline;
}


/* Garantia local: col-12 ocupa a linha toda (caso não exista no style.css base) */
.col-12{ grid-column: span 12; }


/* Ações do documento (visualizar/abrir) */
.doc-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.doc-open-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.doc-open-link:hover{
  background: rgba(0,0,0,.03);
}

.doc-open-link:focus-visible{
  outline: 2px solid rgba(59,130,246,.6);
  outline-offset: 2px;
}

