/* Secomandi V2 — janela de leitura PDF, integrada ao acervo. */
.sv-pdf-modal {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  width: min(1420px, 96vw);
  max-width: 96vw;
  height: min(96dvh, 1000px);
  max-height: 96dvh;
  border: 1px solid #536b70;
  border-radius: 12px;
  color: #23393e;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 25px 75px #0006;
}
.sv-pdf-modal::backdrop {
  background: rgba(10, 20, 25, .78);
  backdrop-filter: blur(3px);
}
.sv-pdf-janela {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.sv-pdf-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f8f7f4;
  border-bottom: 1px solid #d9dedc;
  padding: 12px 18px;
}
.sv-pdf-identificacao { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sv-pdf-legenda { color: #927241; font-size: .7rem; letter-spacing: .12em; font-weight: 750; }
#sv-pdf-titulo {
  font-size: .95rem; font-weight: 700; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sv-pdf-descricao { color: #57676a; font-size: .76rem; line-height: 1.4; }
.sv-pdf-acoes { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.sv-pdf-acoes a, .sv-pdf-acoes button {
  box-sizing: border-box;
  text-decoration: none;
  font: 650 .85rem/1.3 Inter, system-ui, sans-serif;
  padding: 10px 14px;
  border: 1px solid #9aa9a9;
  border-radius: 7px;
  cursor: pointer;
  background: #fff;
  color: #24434b;
  white-space: nowrap;
}
.sv-pdf-acoes .sv-pdf-fechar { background: #2c464d; border-color: #2c464d; color: #fff; }
.sv-pdf-fechar span { font-size: 1.15rem; margin-left: 4px; }
.sv-pdf-acoes button:hover, .sv-pdf-acoes a:hover {
  background: #e4eae8; color: #17383f; text-decoration: none;
}
.sv-pdf-acoes .sv-pdf-fechar:hover { background: #132e34; color: #fff; }
.sv-pdf-modal :is(a,button):focus-visible { outline: 3px solid #b29159; outline-offset: 3px; }
.sv-pdf-documento { min-height: 0; background: #4a4d50; }
.sv-pdf-documento iframe {
  display: block; border: 0; width: 100%; height: 100%;
  background: #555; min-height: 0;
}
.sv-pdf-rodape {
  padding: 7px 18px; display: flex; justify-content: space-between; gap: 12px;
  font-size: .76rem; background: #faf9f6; color: #5c6464;
  border-top: 1px solid #dfe3e1;
}
.sv-pdf-rodape a { color: #355f68; text-decoration: underline; }
@media (max-width: 640px) {
  .sv-pdf-modal {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
    border: 0; border-radius: 0;
  }
  .sv-pdf-cabecalho { padding: 9px 10px; gap: 8px; }
  .sv-pdf-legenda, .sv-pdf-descricao, .sv-pdf-rodape { display: none; }
  #sv-pdf-titulo { font-size: .83rem; }
  .sv-pdf-acoes { gap: 5px; }
  .sv-pdf-acoes a, .sv-pdf-acoes button { padding: 9px 8px; font-size: .74rem; }
  .sv-pdf-fechar span { margin-left: 1px; }
}
@media (max-width: 360px) {
  .sv-pdf-acoes a { font-size: .68rem; }
  #sv-pdf-titulo { font-size: .76rem; }
}
