/* Castellaris Workflow v85 — documentos da consulta */
.v85-card { margin-top: 16px; padding: 18px 20px; }
.v85-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.v85-card-h h2 { margin: 0; }
.v85-novos { display: flex; flex-wrap: wrap; gap: 8px; }
.v85-novos .btn { font-size: 13px; }
.v85-lista { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid #e6ebf2; }
.v85-lista li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e6ebf2; }
.v85-lista li small { color: #5b6b80; margin-left: 6px; }
.v85-lista li span:last-child { display: flex; gap: 6px; }
.v85-vazio { margin: 12px 0 0; color: #5b6b80; font-size: 13px; }

.v85-dialog .wf65-dialog { width: min(1180px, 96vw); max-height: 94vh; display: flex; flex-direction: column; }
.v85-ed { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr); gap: 18px; overflow: hidden; flex: 1; min-height: 0; }
.v85-form { overflow: auto; padding-right: 6px; }
.v85-prev { overflow: auto; background: #eef2f7; border-radius: 10px; padding: 18px; }
.v85-prev > div { background: #fff; padding: 28px 30px; box-shadow: 0 1px 4px rgba(0,0,0,.12); font-size: 11pt !important; }
.v85-f { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; font-size: 13px; }
.v85-f > span { font-weight: 700; color: #12305a; }
.v85-f em { font-weight: 400; color: #5b6b80; }
.v85-f input, .v85-f textarea { border: 1px solid #cfd8e3; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; }
.v85-f textarea { resize: vertical; line-height: 1.45; }
.v85-chk { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 13px; }
.v85-pac { border: 1px solid #e0e6ef; border-radius: 10px; padding: 8px 12px 2px; margin: 0 0 12px; background: #f9fbfd; }
.v85-pac legend { font-weight: 700; color: #12305a; font-size: 13px; padding: 0 4px; }
.v85-pac legend small { font-weight: 400; color: #5b6b80; }
.v85-med { margin-top: 8px; border-top: 1px solid #e6ebf2; padding-top: 8px; }
.v85-med summary { cursor: pointer; font-weight: 700; color: #12305a; font-size: 13px; margin-bottom: 8px; }
.v85-med summary b { color: #a3341e; }
.v85-med-g { display: grid; grid-template-columns: 2fr 1fr .6fr; gap: 0 10px; }
.v85-m-cidade { grid-column: 1 / 2; }
.v85-m-local { grid-column: 1 / -1; }
.v85-link { background: none; border: 0; padding: 0; color: #12305a; text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }
.v85-acoes { display: flex; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid #e6ebf2; margin-top: 12px; }
.v85-del { color: #a3341e; }
@media (max-width: 860px) { .v85-ed { grid-template-columns: 1fr; overflow: auto; } .v85-prev { max-height: 50vh; } }
.v85-form { overflow-x: hidden; min-width: 0; }
.v85-form * { box-sizing: border-box; }
.v85-f, .v85-med-g > * { min-width: 0; }
.v85-f input, .v85-f textarea { width: 100%; min-width: 0; }
/* etapa "Documentos" */
.v85-pagina { display: flex; flex-direction: column; gap: 16px; }
.v85-pagina .v85-card { margin-top: 0; }
.v85-novos .btn.on { background: #12305a; color: #fff; border-color: #12305a; }
.v85-sub { margin: 16px 0 0; font-size: 14px; color: #12305a; }
.v85-lista li.on { background: #f3f7fc; }
.v85-todos { margin-top: 10px; }
.v85-inline .wf65-dialog { position: static; width: 100%; max-height: none; box-shadow: none; border: 1px solid #e0e6ef; border-radius: 14px; background: #fff; padding: 18px 20px; }
.v85-inline .wf65-dialog-head h2 small { font-weight: 400; color: #5b6b80; font-size: 13px; }
.v85-inline .v85-ed { max-height: none; overflow: visible; }
.v85-inline .v85-form, .v85-inline .v85-prev { max-height: 72vh; }
.v85-escolha { padding: 18px; border: 1px dashed #cfd8e3; border-radius: 12px; text-align: center; }
.v85-nav { display: flex; justify-content: space-between; }
.v85-card-h > span { display: flex; gap: 8px; }
.v85-ver { max-height: 70vh; }
.v85-inline, .v85-inline .wf65-dialog { width: 100% !important; max-width: none !important; margin: 0 !important; transform: none !important; }
.v85-inline .v85-prev { overflow: auto; }
