/*
  dicode.ai — CSS só da página Abrir caixa de e-mail (/abrir-pst-mbox). Leva 16, peça C.
  Tela: assets/js/ferramentas/telas/abrir-pst-mbox.js; opções: templates/ferramentas/abrir-pst-mbox.html.
  Opção F · Suíço: cantos retos, linhas de 1px, sem sombras; laranja só com texto preto; alvos de
  toque de 44px. O texto de cada e-mail fica num iframe isolado (sandbox, sem scripts).
*/

.cx { display: grid; gap: 16px; min-width: 0; }
.cx [hidden] { display: none !important; }
.cx-ler { justify-self: start; min-height: 44px; }

/* Senha do .pst */
.cx-senha { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--preto); background: var(--branco); }
.cx-senha > * { margin: 0; }
.cx-senha-titulo { font-size: 20px; line-height: 1.25; font-weight: 800; font-stretch: 112%; }
.cx-senha-linha { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-senha-linha input {
  flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid var(--preto); border-radius: 0;
  background: var(--branco); color: var(--preto); font: 16px/1.3 var(--fonte);
}
.cx-senha-linha .botao { min-height: 44px; }
.cx-senha-erro { color: var(--preto); display: flex; gap: 8px; align-items: baseline; }
.cx-senha-erro::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--laranja); }

/* Caixa aberta */
.cx-area { display: grid; gap: 14px; min-width: 0; }
.cx-area > * { margin: 0; min-width: 0; }
.cx-resumo { font-size: 18px; font-weight: 600; }
.cx-avisos, .cx-avisos-msg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--cinza); }
.cx-avisos li, .cx-avisos-msg li { display: flex; gap: 10px; align-items: baseline; }
.cx-avisos li::before, .cx-avisos-msg li::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--laranja); transform: translateY(-1px); }
.cx-lgpd { margin: 0; }

.cx-navegar { display: grid; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .cx-navegar { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); align-items: start; }
}

/* Pastas */
.cx-pastas { border: 1px solid var(--preto); background: var(--branco); min-width: 0; }
.cx-pastas-resumo {
  display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; min-height: 44px; padding: 8px 12px;
  cursor: pointer; list-style: none; overflow-wrap: anywhere;
}
.cx-pastas-resumo::-webkit-details-marker { display: none; }
.cx-pastas-resumo::after { content: '+'; margin-left: auto; font-family: var(--fonte-mono); }
.cx-pastas[open] > .cx-pastas-resumo::after { content: '−'; }
.cx-pastas[open] > .cx-pastas-resumo { border-bottom: 1px solid var(--linha); }
.cx-arvore, .cx-arvore-sub { list-style: none; margin: 0; padding: 0; }
.cx-arvore { max-height: min(60vh, 560px); overflow: auto; padding: 4px 0; }
.cx-pasta {
  display: flex; gap: 8px; align-items: center; width: 100%; min-height: 44px; padding: 6px 12px 6px calc(12px + var(--nivel, 0) * 14px);
  border: 0; border-radius: 0; background: none; color: var(--preto); font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.cx-pasta:hover { background: var(--superficie); }
.cx-pasta:focus-visible { outline: 2px solid var(--preto); outline-offset: -2px; }
.cx-pasta[aria-current="true"] { background: var(--laranja); color: var(--preto); font-weight: 600; }
.cx-pasta-nome { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.cx-pasta-total { flex: none; font-family: var(--fonte-mono); font-size: 12px; }

/* Busca e filtros */
.cx-lista-secao { display: grid; gap: 10px; min-width: 0; }
.cx-filtros { display: grid; gap: 8px; }
.cx-busca, .cx-ordem {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--preto); border-radius: 0; background: var(--branco);
  color: var(--preto); font: 16px/1.3 var(--fonte); min-width: 0;
}
.cx-busca { width: 100%; }
.cx-filtros-linha { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.cx-so-anexo { min-height: 44px; }
.cx-selecao { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--preto); }
.cx-todas { min-height: 44px; }
.cx-escolhidas { color: var(--preto); }
.cx-limpar { min-height: 44px; }
.cx-vazio { margin: 0; color: var(--cinza); }
.cx-nota-busca { margin: 0; color: var(--cinza); font-size: 14px; }
.cx-procurando { margin: 0; color: var(--cinza); }

/* Lista de mensagens */
.cx-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.cx-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--linha); min-width: 0; }
/* A caixa de marcar fica dentro de um label de 44 px de largura e da altura da linha (área de toque). */
.cx-item-marcar { flex: none; display: flex; align-items: flex-start; justify-content: center; width: 44px; min-height: 44px; padding-top: 11px; box-sizing: border-box; cursor: pointer; }
.cx-item-escolha { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--preto); cursor: pointer; }
.cx-item-abrir {
  flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; padding: 8px 4px; min-height: 44px; border: 0; border-radius: 0;
  background: none; color: var(--preto); font: inherit; text-align: left; cursor: pointer;
}
.cx-item-abrir:hover { background: var(--superficie); }
.cx-item-abrir:focus-visible { outline: 2px solid var(--preto); outline-offset: -2px; }
.cx-item-linha { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.cx-item-de { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-item-data { flex: none; font-family: var(--fonte-mono); font-size: 12px; color: var(--cinza); }
.cx-item-assunto { display: flex; gap: 6px; align-items: baseline; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.cx-item-clipe { flex: none; width: 8px; height: 8px; background: var(--laranja); border: 1px solid var(--preto); transform: translateY(-1px); }
.cx-mais { justify-self: start; min-height: 44px; }

/* Leitura de uma mensagem */
.cx-leitura { display: grid; gap: 14px; min-width: 0; scroll-margin-top: 16px; }
.cx-leitura > * { margin: 0; min-width: 0; }
.cx-leitura-topo { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.cx-leitura-topo .botao { min-height: 44px; }
.cx-leitura-corpo { display: grid; gap: 16px; min-width: 0; }
.cx-leitura-botoes { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-leitura-botoes .botao { min-height: 44px; }
.cx-aviso-anexos { margin: 0; }

.cx-cartao { display: grid; gap: 14px; min-width: 0; padding: 18px 0 0; border-top: 1px solid var(--preto); }
.cx-cartao--anexado { padding: 14px 0 0 14px; border-top: 1px solid var(--linha); border-left: 3px solid var(--linha); }
.cx-cartao > * { margin: 0; min-width: 0; }
.cx-origem { font-family: var(--fonte-mono); font-size: 12px; color: var(--cinza); overflow-wrap: anywhere; }
.cx-assunto { font-size: 20px; line-height: 1.25; font-weight: 600; overflow-wrap: anywhere; }
.cx-campos { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 15px; }
.cx-campos dt { color: var(--cinza); font-size: 13px; line-height: 1.7; }
.cx-campos dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cx-corpo { border: 1px solid var(--preto); background: var(--branco); min-width: 0; }
.cx-corpo iframe { display: block; width: 100%; height: 320px; max-height: min(70vh, 640px); border: 0; background: var(--branco); }
.cx-texto { margin: 0; padding: 12px; max-height: min(70vh, 640px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 15px/1.5 var(--fonte); }
.cx-vazio-corpo { margin: 0; padding: 12px; color: var(--cinza); font-size: 15px; }

.cx-anexos { display: grid; gap: 10px; min-width: 0; }
.cx-anexos > * { margin: 0; }
.cx-anexos-titulo { font-size: 16px; font-weight: 600; }
.cx-anexos-lista { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--linha); }
.cx-anexo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--linha); min-width: 0; }
.cx-anexo-texto { flex: 1 1 220px; min-width: 0; display: grid; gap: 2px; }
.cx-anexo-texto > * { margin: 0; }
.cx-anexo-nome { overflow-wrap: anywhere; font-size: 15px; }
.cx-anexo-info { color: var(--cinza); font-size: 13px; }
.cx-anexo-risco { font-size: 13px; color: var(--preto); display: flex; gap: 8px; align-items: baseline; }
.cx-anexo-risco::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--laranja); }
.cx-anexo .botao { min-height: 44px; padding: 10px 16px; }
.cx-todos { justify-self: start; }
.cx-anexados { display: grid; gap: 18px; min-width: 0; }

.cx-saida { margin: 0; }
