/* Philnance — Documentos por confirmar (#/documentos): estilos só desta vista (ecrãs 10 e 20 do design).
   Telemóvel: um cartão por documento (sugestão, Ligar / Escolher outro / Não passa por estas contas) e a folha
   "Escolher outro". Computador: lista à esquerda, detalhe com os movimentos parecidos à direita. */
.cab-docs .cabecalho-t { font-size: 27px; letter-spacing: -.02em; }
.docs { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.doc-cartoes { display: flex; flex-direction: column; gap: 14px; }
.doc-c { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.doc-c-cab { display: flex; align-items: center; gap: 12px; }
.doc-c-txt { flex: 1; min-width: 0; line-height: 1.3; }
.doc-c-nome { font: 600 15px var(--sans); letter-spacing: 0; overflow-wrap: anywhere; }
.doc-c-sub { font: 400 12.5px var(--sans); color: var(--ink2); }
.doc-c-v { flex: none; font: 500 15px var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-sug { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--accent-tint); font: 400 13.5px/1.35 var(--sans); }
.doc-sug > .ms { color: var(--accent); }
.doc-sug-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-sug-t b { font-weight: 600; }
.doc-acoes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.doc-acoes .btn { height: 46px; padding: 0 10px; border-radius: 23px; white-space: normal; line-height: 1.1; }
.doc-fora-2 { font-size: 13px; }
.doc-fora { align-self: center; color: var(--ink2); font-size: 13.5px; }
.doc-nada { font: 400 13.5px var(--sans); color: var(--ink2); }

/* correções feitas à mão */
.doc-ligados-cab { flex-wrap: wrap; padding: 14px 0 4px; }
.doc-lig .btn-quieto { flex: none; }
.doc-lig-ico { color: var(--green); }
.doc-lig-fora { color: var(--ink3); }

/* escolher o movimento (folha no telemóvel; detalhe no computador) */
.doc-folha { display: flex; flex-direction: column; gap: 14px; padding-bottom: 4px; }
.doc-folha-sub { font: 400 13px var(--sans); color: var(--ink2); }
.doc-folha-sub .valor { color: var(--ink); font-weight: 500; }
.doc-gmail { justify-content: flex-start; gap: 8px; height: 48px; padding: 0 20px; border-radius: 24px; }
.doc-rot { margin-top: 4px; }
.doc-cands { display: flex; flex-direction: column; gap: 8px; }
.doc-cand {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); cursor: pointer;
}
.doc-cand.on { border-color: var(--accent); background: var(--accent-tint); }
/* o botão de opção cobre o cartão inteiro (alvo grande); o círculo visível tem 20 px */
.doc-cand-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.doc-cand-o { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--line2); border-radius: 50%; background: var(--card); pointer-events: none; }
.doc-cand-in:checked + .doc-cand-o { border: 6px solid var(--accent); }
.doc-cand-in:focus-visible + .doc-cand-o { outline: 2px solid var(--accent); outline-offset: 3px; }
.doc-cand:has(.doc-cand-in:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.doc-cand-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.doc-cand-txt b { font: 500 14.5px var(--sans); overflow-wrap: anywhere; }
.doc-cand-sub { font: 400 12.5px var(--sans); color: var(--ink2); }
.doc-cand .valor { flex: none; font: 500 14.5px var(--sans); }
.doc-procura {
  display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 23px;
  background: var(--card); color: var(--ink3);
}
.doc-procura:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.doc-procura .ms { font-size: 19px; }
.doc-procura input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; font: 400 16px var(--sans); color: var(--ink); }
.doc-procura input::placeholder { color: var(--ink3); opacity: 1; }
.doc-det-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.doc-det-acoes .btn { flex: 1 1 auto; white-space: normal; line-height: 1.15; }
/* na folha, as ações ficam à vista enquanto se percorre a lista */
.doc-folha .doc-det-acoes { position: sticky; bottom: -2px; z-index: 1; margin: 0 -20px; padding: 12px 20px 4px; background: var(--card); }

@media (min-width: 1024px) {
  .cab-docs .cabecalho-t { font-size: 34px; }
  .doc-grelha { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
  .doc-esq { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
  .doc-lista { padding: 14px; }
  .doc-ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .doc-row {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px; border: 0; border-radius: 18px;
    background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  }
  .doc-row:hover { background: var(--chip); }
  .doc-row[aria-pressed="true"] { background: var(--accent-tint); }
  .doc-row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
  .doc-row-txt b { font: 600 15px var(--sans); overflow-wrap: anywhere; }
  .doc-row-sub { font: 400 13px var(--sans); color: var(--ink2); }
  .doc-row .valor { flex: none; font: 500 15px var(--sans); }
  .doc-ligados-cab { padding-top: 18px; }
  .doc-det { display: flex; flex-direction: column; gap: 18px; padding: 28px 30px; position: sticky; top: 24px; }
  .doc-det-cab { display: flex; align-items: center; gap: 18px; }
  .doc-det-cab .cat-ico { width: 56px; height: 56px; }
  .doc-det-cab .cat-ico .ms { font-size: 26px; }
  .doc-det-txt { flex: 1; min-width: 0; }
  .doc-det-nome { font: 400 30px/1.1 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
  .doc-det-sub { margin-top: 6px; font: 400 14px var(--sans); color: var(--ink2); }
  .doc-det-v .valor { font: 300 44px/1 var(--serif); letter-spacing: -.02em; }
  .doc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .doc-tile { gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--paper); }
  .doc-tile-v { font: 500 15px var(--sans); font-variant-numeric: tabular-nums; }
  .doc-gmail { height: 52px; border-radius: 26px; }
  .doc-procura input { font-size: 14px; }
  .doc-det-acoes .btn { flex: none; height: 52px; padding: 0 22px; border-radius: 26px; font-size: 15px; }
}
