/* ARQUIVO ÁLIBI — estilo dos documentos (o mesmo no PDF e na Central). Funciona em P&B. */
.doc {
  position: relative; background: var(--papel); color: var(--tinta); font-family: var(--f-doc); font-size: 14px; line-height: 1.5;
  padding: 26px 26px 18px; border-radius: 3px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  background-image: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.35), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(120,90,40,.12), transparent 55%);
}
.doc::before { /* fita adesiva */
  content: ""; position: absolute; top: -10px; left: 38px; width: 90px; height: 22px; background: color-mix(in srgb, var(--fita) 55%, transparent); transform: rotate(-4deg);
}
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.doc-tipo { font-family: var(--f-texto); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6A5F50; }
.doc-id { font-family: var(--f-impacto); font-weight: 800; font-size: 18px; color: #fff; background: var(--lacre); padding: 2px 10px; border-radius: 2px; }
.doc-bonus .doc-id { background: var(--tinta); outline: 2px solid var(--acento); }
.doc-titulo { font-family: var(--f-impacto); font-weight: 800; font-size: 20px; margin: 4px 0 12px; line-height: 1.2; }
.doc-pe { margin-top: 14px; padding-top: 8px; border-top: 1px dashed #A89D86; font-size: 10px; color: #6A5F50; font-family: var(--f-texto); }
.doc p { margin: 0 0 9px; }
.of-orgao { text-align: center; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.of-doc { text-align: center; font-weight: 700; font-size: 15px; margin: 2px 0 12px; text-decoration: underline; text-underline-offset: 4px; }
.doc-campos { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; }
.doc-campos th { text-align: left; width: 30%; padding: 4px 8px; background: rgba(26,23,20,.07); border: 1px solid #B8AD96; vertical-align: top; }
.doc-campos td { padding: 4px 8px; border: 1px solid #B8AD96; }
.doc-sub { font-weight: 700; margin: 10px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.doc-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 4px 0 10px; }
.doc-tab th { background: var(--tinta); color: var(--papel); text-align: left; padding: 5px 7px; font-weight: 700; }
.doc-tab td { padding: 5px 7px; border-bottom: 1px solid #B8AD96; vertical-align: top; }
.doc-tab tr:nth-child(even) td { background: rgba(26,23,20,.04); }
.nota { font-size: 12.5px; background: rgba(201,162,39,.16); border-left: 4px solid var(--fita); padding: 6px 10px; }
.assin { margin-top: 18px; text-align: right; font-size: 12px; }
.assin span { display: block; margin: 0 0 4px auto; width: 220px; border-bottom: 1px solid var(--tinta); height: 22px; }
.qa .q { margin-bottom: 2px; } .qa .a { margin-bottom: 12px; padding-left: 14px; }
.chat { background: #12151A; color: #E8EAED; font-family: var(--f-texto); border-radius: 16px; padding: 12px; max-width: 460px; }
.chat-top { font-weight: 800; padding: 4px 6px 10px; border-bottom: 1px solid #2A2F36; margin-bottom: 8px; display: flex; flex-direction: column; }
.chat-top small { font-weight: 600; color: #9AA0A6; font-size: 11px; }
.msg { background: #1F2630; border-radius: 10px; padding: 7px 10px 16px; margin: 6px 40px 6px 0; position: relative; font-size: 13px; }
.msg b { display: block; color: #8AB4F8; font-size: 11.5px; } .msg i { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #9AA0A6; font-style: normal; }
.mail .doc-campos th { width: 16%; } .mail-corpo { padding: 10px 4px; }
.recibo { background: #FBFAF6; max-width: 330px; margin: 0 auto; padding: 14px 16px; font-size: 12.5px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.recibo hr { border: 0; border-top: 1px dashed #777; margin: 8px 0; } .rl { display: flex; justify-content: space-between; gap: 10px; text-align: left; }
.jornal { background: #EDE6D3; padding: 14px 16px; font-family: Georgia, "Times New Roman", serif; border: 1px solid #C9BFA6; box-shadow: 2px 3px 0 rgba(26,23,20,.08); }
.j-nome { font-family: var(--f-titulo); font-weight: 900; font-size: 22px; text-align: center; border-bottom: 3px double var(--tinta); }
.j-data { text-align: center; font-size: 11px; margin: 3px 0 8px; } .jornal h3 { font-size: 21px; line-height: 1.2; margin: 6px 0; }
.j-fina { font-style: italic; margin-bottom: 8px; } .j-col { column-count: 2; column-gap: 18px; font-size: 13px; text-align: justify; }
.carta { background: #F7F2E6; padding: 16px 20px; font-family: Georgia, serif; font-style: italic; font-size: 14.5px; }
.c-cab { font-style: normal; font-weight: 700; border-bottom: 1px solid #B8AD96; padding-bottom: 4px; } .c-data { text-align: right; margin: 6px 0 12px; }
.c-rod { margin-top: 14px; font-style: normal; font-family: var(--f-maquina); color: var(--lacre); }
.agenda { background: #FBF8EF; padding: 12px 16px; background-image: repeating-linear-gradient(#FBF8EF 0 27px, #D9E3EA 27px 28px); }
.ag-tit { font-family: var(--f-impacto); font-weight: 800; margin-bottom: 8px; } .ag-dia { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 4px 0; }
.ag-it { font-family: Georgia, serif; font-style: italic; font-size: 14.5px; color: #1F2C5A; }
.appcard { background: #FFFFFF; border-radius: 14px; padding: 12px; max-width: 420px; font-family: var(--f-texto); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.app-top { font-weight: 800; margin-bottom: 8px; }
.ilus { margin: 0; } .ilus svg { width: 100%; height: auto; display: block; border: 6px solid #F4F1EA; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.ilus figcaption { font-size: 12px; margin-top: 8px; font-style: italic; }
.notas { margin: 10px 0 0; padding-left: 18px; font-size: 13px; } .notas li { margin-bottom: 4px; }
@media print { .doc { box-shadow: none; border: 1px solid #999; break-inside: avoid; } }
/* fotos, anexos e áudio dentro dos documentos */
.foto img, .anexo img { width: 100%; height: auto; display: block; border: 6px solid #F4F1EA; box-shadow: 0 4px 12px rgba(0,0,0,.25); background: #2A2520; min-height: 120px; }
.zoomavel { cursor: zoom-in; }
.anexo { margin: 14px 0 0; } .anexo figcaption { font-size: 12px; margin-top: 6px; font-style: italic; }
.dep-cab { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: start; } .dep-cab > div:only-child { grid-column: 1 / -1; }
.dep-foto img { width: 86px; height: 100px; object-fit: cover; object-position: top; border: 3px solid #F4F1EA; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: block; background: #2A2520; }
.audio-prova { --prog: 0%; display: flex; align-items: center; gap: 12px; background: var(--tinta); color: var(--osso); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; font-family: var(--f-texto); }
.audio-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lacre); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; }
.audio-play:focus-visible { outline: 3px solid var(--fita); outline-offset: 2px; }
.audio-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.audio-info b { font-size: 13.5px; } .audio-tempo { font-size: 12px; color: var(--osso-e); }
.audio-info::after { content: ""; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--fita) var(--prog), #3A342E var(--prog)); }
.audio-pdf { display: block; background: none; color: var(--tinta); border: 2px dashed var(--tinta); }
.audio-pdf span { display: block; font-size: 12px; margin-top: 2px; } .audio-pdf::after { display: none; }
.doc-campos th, .doc-campos td, .mail-corpo, .chat .msg { overflow-wrap: anywhere; }
/* números das provas nunca quebram; rótulos das fichas não se partem no meio da palavra */
.doc-id { white-space: nowrap; flex-shrink: 0; }
.doc-tipo { min-width: 0; }
.doc-campos th { overflow-wrap: normal; word-break: normal; hyphens: manual; white-space: nowrap; width: 1%; }
.doc-campos, .doc-tab { color: inherit; }
/* jornal: no celular, uma coluna só e sem justificar (evita buracos entre as palavras) */
@media (max-width: 560px) { .j-col { column-count: 1; text-align: left; } }
