/* web/css/pages/profile.css */

.profile-shell{
  padding: 18px;
  display:flex;
  justify-content:center;
}

.profile-card{
  width:min(980px, 100%);
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.08);
}

/* ===== Header ===== */
.profile-header{
  padding: 18px 18px 16px;
  background: #0b7285;
  color: #fff;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.profile-title{
  margin:0;
  font-size:26px;
  font-weight:800;
}
.profile-subtitle{
  margin:6px 0 0;
  font-size:13px;
  opacity:.92;
}
.profile-badge{
  margin-top:6px;
  font-size:12px;
  opacity:.95;
}

/* ===== Corpo ===== */
.profile-body{
  margin: 14px 18px 18px;
  padding: 16px;
}

/* Remove “card dentro de card” */
.profile-body.card{
  background: transparent;
  border: none;
  padding: 0;
  margin: 14px 18px 18px;
  box-shadow: none;
}

/* ===== Blocos ===== */
.pf-block{
  padding: 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  margin: 0 0 20px;
}
.pf-block:last-child{ margin-bottom: 0; }

/* Tarja azul */
.pf-block-title,
.pf-section-title{
  display: block;
  width: 100%;
  background: #0b7285;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 14px;
  padding: 10px 12px;
  margin: -16px -16px 14px;
}

/* ===== Linhas / Labels ===== */
.pf-line{ margin-bottom: 12px; }
.pf-line:last-child{ margin-bottom: 0; }

.pf-label{
  font-size: 12px;
  color:#64748b;
  margin-bottom:6px;
  font-weight:700;
}

/* ===== Inputs ===== */
input, select{
  width: min(420px, 100%);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  outline: none;
}
input:focus,
select:focus{
  border-color: rgba(14,165,233,.65);
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* ===== Valores atuais ===== */
.pf-current{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
}

/* ===== Pill simples (ex: CRM antigo) ===== */
.pf-pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid rgba(0,0,0,.10);
  font-weight: 700;
  color:#0f172a;
}

/* ===== Chips (Especialidades, RQE etc.) ===== */
.pf-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.pf-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14,165,233,.25);
  background: rgba(14,165,233,.08);
  color:#075985;
  font-weight: 800;
}

/* ===== BOTÃO X — PADRÃO ÚNICO (usado em Especialidades e RQE) ===== */
.pf-chip-x{
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;

  font-size: 14px;
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
  padding: 0;
}

.pf-chip-x:hover{
  background: rgba(239, 68, 68, 0.22);
}

/* ===== Compatibilidade (caso algum X antigo ainda exista) ===== */
.pf-x{
  all: unset;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;

  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.pf-x:hover{
  background: rgba(239, 68, 68, 0.22);
}

/* ===== Autocomplete ===== */
.pf-autocomplete{
  position:relative;
  width:min(520px, 100%);
}
.pf-autocomplete-list{
  position:absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow:auto;
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  display:none;
  z-index: 20;
}
.pf-autocomplete-item{
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 650;
}
.pf-autocomplete-item:hover{
  background: rgba(14,165,233,.08);
}

/* ===== Ações ===== */
.pf-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding-top: 6px;
}

button{
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(14,165,233,.30);
  background: #0ea5e9;
  color:#fff;
  font-weight: 900;
  cursor:pointer;
}

button.secondary{
  border: 1px solid rgba(0,0,0,.14);
  background: #475569;
  color:#fff;
}

/* ===== Auxiliares ===== */
.pf-mini{
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #e2e8f0;
  font-weight: 800;
  cursor: pointer;
}

.pf-help{
  margin-top: 8px;
  font-size: 12px;
  color:#64748b;
}
