/* estudos.css - página "Estudos" do painel do escritório (20/10/2026). Vale junto com cliente.css (mesmos tokens).
   Texto normal 16px, cabeçalho de coluna e rótulo de cartão 14,4px (nada abaixo de 14px), botões com 48px de altura. */

/* No computador a lista usa mais largura que o resto da área, para o endereço da página caber numa linha. */
@media (min-width: 1000px) {
  .pag-estudos .painel-corpo .ctr { max-width: 1400px; padding-left: 40px; padding-right: 40px; }
}

/* A lista é uma tabela no computador e vira uma pilha de cartões abaixo de 1000px. */
.est-tabela { background: var(--navy2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table.est { width: 100%; border-collapse: collapse; }
table.est th {
  text-align: left; font-size: .9rem; font-weight: 600; letter-spacing: .06em;
  color: var(--gray); padding: 16px 14px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--navy2);
}
table.est td {
  font-size: 1rem; font-weight: 400; color: var(--grayl); line-height: 1.5;
  padding: 18px 14px; border-bottom: 1px solid rgba(30,45,74,.55); vertical-align: top;
}
table.est tr:last-child td { border-bottom: none; }
table.est th:nth-child(1), table.est td:nth-child(1) { width: 15%; }
table.est th:nth-child(2), table.est td:nth-child(2) { width: 18%; }
table.est th:nth-child(3), table.est td:nth-child(3) { width: 14%; }
table.est th:nth-child(4), table.est td:nth-child(4) { width: 9%; }
table.est th:nth-child(5), table.est td:nth-child(5) { width: 12%; }

.est-nome strong { display: block; color: var(--white); font-weight: 500; }
.est-nome span { display: block; color: var(--grayl); }
.est-url { overflow-wrap: anywhere; }
.est-data { font-variant-numeric: tabular-nums; }

.est-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }

/* Botões da página: 48px de altura, texto de 16px sem caixa alta. */
.est-botao {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 14px; border-radius: 8px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.25;
  color: var(--white); background: none; border: 1px solid rgba(255,255,255,.28); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.est-botao:hover:not(:disabled) { border-color: var(--gold); color: var(--goldl); background: rgba(201,147,58,.07); }
.est-botao:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.est-botao:disabled { opacity: .45; cursor: not-allowed; }
.est-botao--principal { background: var(--gold); border-color: var(--gold); color: #080e1c; }
.est-botao--principal:hover:not(:disabled) { background: #f0c97a; border-color: #f0c97a; color: #080e1c; }

/* Aviso acima da lista */
#avisoEstudos { margin-bottom: 20px; }

/* Janela do código novo e pergunta de confirmação */
.est-fundo {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(5,9,18,.80);
}
.est-janela {
  width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--navy2); border: 1px solid var(--golddim); border-radius: 14px; padding: 28px;
}
.est-janela-titulo { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.2; color: var(--white); margin-bottom: 14px; }
.est-janela-frase { font-size: 1.0625rem; font-weight: 400; color: var(--grayl); line-height: 1.6; margin-bottom: 20px; }
.est-codigo {
  font-size: 2.5rem; font-weight: 600; letter-spacing: .18em; text-align: center; color: var(--goldl);
  font-variant-numeric: tabular-nums; background: var(--navy); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 8px 16px 26px; margin-bottom: 14px; user-select: all;
}
.est-copiado { font-size: 1rem; color: #a9dcbc; margin-bottom: 14px; }
.est-janela-botoes { display: flex; flex-wrap: wrap; gap: 12px; }
.est-janela-botoes .est-botao { flex: 1 1 160px; }

@media (max-width: 999px) {
  .est-tabela { background: none; border: none; border-radius: 0; overflow: visible; }
  table.est, table.est tbody, table.est tr, table.est td { display: block; width: auto !important; }
  table.est thead { display: none; }   /* os nomes das colunas passam a aparecer dentro de cada cartão (data-rotulo) */
  table.est td .etiqueta { justify-self: start; }
  table.est tr { background: var(--navy2); border: 1px solid var(--border); border-radius: 12px; padding: 8px 18px 18px; margin-bottom: 16px; }
  table.est td { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(30,45,74,.55); }
  table.est td::before { content: attr(data-rotulo); font-size: .9rem; font-weight: 600; letter-spacing: .04em; color: var(--gray); }
  table.est td.est-acoes { display: flex; border-bottom: none; padding: 16px 0 0; }
  table.est td.est-acoes::before { content: none; }
  .est-acoes .est-botao { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  table.est td { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
  .est-janela { padding: 22px 18px; }
  .est-codigo { font-size: 2.1rem; letter-spacing: .12em; padding-left: 18px; }
}
