/* Tela: ajustes */

.aj {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  align-items: start; max-width: 1080px;
}
.aj-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.aj-card { overflow: hidden; }

/* Cabeçalho dos cartões */
.aj-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.aj-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
}
.aj-ico .ico { width: 17px; height: 17px; }
.aj-titles { flex: 1; min-width: 0; line-height: 1.35; }
.aj-titles h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.aj-titles span { display: block; font-size: 13px; color: var(--ink-3); }
.aj-head .btn { flex: none; }

/* Linhas de informação */
.aj-rows { border-top: 1px solid var(--line); }
.aj-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.aj-row:last-child { border-bottom: 0; }
.aj-label { width: 150px; flex: none; font-size: 13px; color: var(--ink-3); }
.aj-value { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.aj-value.is-empty { color: var(--ink-3); font-weight: 400; }
.aj-row--btn .btn { flex: none; }

/* Logo / iniciais */
.aj-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--brand-line);
}
.aj-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aj-avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.aj-avatar--xl { width: 76px; height: 76px; font-size: 24px; }

.aj-salon { display: flex; align-items: center; gap: 14px; padding: 2px 18px 16px; }
.aj-salon-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.aj-salon-text strong { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.aj-salon-text span { font-size: 13.5px; color: var(--ink-3); }

/* Semana (resumo) */
.aj-week { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.aj-week li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 18px;
  font-size: 14.5px;
}
.aj-week li + li { border-top: 1px solid var(--line); }
.aj-week li strong { font-weight: 500; font-variant-numeric: tabular-nums; }
.aj-week li.is-closed span, .aj-week li.is-closed strong { color: var(--ink-3); }

/* Fichas do link */
.aj-groups { display: flex; flex-direction: column; gap: 16px; padding: 4px 18px 18px; }
.aj-group { display: flex; flex-direction: column; gap: 8px; }
.aj-group-label { font-size: 13.5px; font-weight: 600; }
.aj-groups .pchip { height: 34px; padding: 0 13px; font-size: 13.5px; }

/* Plano */
.aj-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 18px 14px;
}
.aj-plan > div { display: flex; flex-direction: column; line-height: 1.35; }
.aj-plan strong { font-size: 16px; font-weight: 600; }
.aj-plan span:not(.chip) { font-size: 14px; color: var(--ink-2); }
.aj-plan-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); }

/* Sair */
.aj-out { max-width: 1080px; display: flex; justify-content: center; padding: 22px 0 4px; }
.aj-logout {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: #B42318;
}
.aj-logout .ico { width: 16px; height: 16px; }
.aj-logout:hover { background: #FEF3F2; }

/* ---------- Janela: meu salão ---------- */
.aj-logo-edit { display: flex; align-items: center; gap: 16px; }
.aj-logo-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.aj-logo-hint { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.aj-file { position: relative; cursor: pointer; }
.aj-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.aj-file:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.aj-remove { font-size: 13.5px; color: #B42318; }

/* ---------- Janela: dias e horários ---------- */
.aj-days { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.aj-day { padding: 10px 14px 12px; }
.aj-day + .aj-day { border-top: 1px solid var(--line); }
.aj-day.is-closed { padding-bottom: 10px; background: #FBFBFC; }
.aj-day-top { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.aj-day-top strong { flex: 1; font-size: 15px; font-weight: 600; }
.aj-day-state { font-size: 13px; color: var(--ink-3); }
.aj-day:not(.is-closed) .aj-day-state { color: var(--brand-strong); font-weight: 500; }
.aj-day.is-closed strong { color: var(--ink-3); font-weight: 500; }
.aj-day-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.aj-day-times .field { flex-direction: row; align-items: center; gap: 8px; }
.aj-day-times .field > span { font-size: 13px; font-weight: 500; color: var(--ink-3); width: 30px; flex: none; }
.aj-day-times .input { height: 42px; font-size: 15px; font-variant-numeric: tabular-nums; }
.aj-day.is-bad .aj-day-times .input { border-color: #F2B8B5; }
.aj-day-err { margin: 6px 0 0; font-size: 13px; color: #B42318; }
.aj-days, .aj-copy, .aj-copy-hint { flex: none; }
.aj-copy { align-self: stretch; }
.aj-copy-hint { margin-top: -6px; justify-content: center; }

/* ---------- Janela: senha ---------- */
.aj-show { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; align-self: flex-start; }
.aj-show input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }

/* ---------- Tablet: uma coluna ---------- */
@media (max-width: 1180px) {
  .aj { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .aj-out { max-width: 680px; }
}

/* ---------- Celular ---------- */
@media (max-width: 820px) {
  .aj, .aj-col { gap: 12px; }
  .aj-head { padding: 14px 14px 10px; }
  .aj-row { padding: 10px 14px; flex-wrap: wrap; gap: 2px 12px; }
  .aj-label { width: 100%; }
  .aj-row--btn .aj-label { width: auto; flex-basis: 100%; }
  .aj-row--btn .aj-value { flex: 1; }
  .aj-salon { padding: 2px 14px 14px; }
  .aj-week li { padding: 8px 14px; }
  .aj-groups { padding: 2px 14px 16px; }
  .aj-plan { padding: 0 14px 12px; }
  .aj-plan-foot { padding: 12px 14px 14px; }
  .aj-out { padding-top: 14px; }
}

@media (max-width: 380px) {
  .aj-day-times { grid-template-columns: 1fr; gap: 8px; }
}
