/* evidence.css — visor PDF (#pdf-modal y componentes relacionados) */

.pdf-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pdf-box {
  background: white; border-radius: 10px;
  width: 100%; max-width: 780px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  font-family: system-ui, sans-serif;
}
.pdf-header {
  padding: 12px 16px; border-bottom: 0.5px solid #e0e0d8;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  flex-shrink: 0;
}
.pdf-header-txt { min-width: 0; }
.pdf-titulo { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.35; }
.pdf-sub    { font-size: 11px; color: #6b6b6b; margin-top: 3px; line-height: 1.4; }

.pdf-nav {
  padding: 6px 16px; border-bottom: 0.5px solid #f0f0f0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  flex-shrink: 0; font-size: 11px; color: #6b6b6b;
}
#pdf-info { font-variant-numeric: tabular-nums; }
.pdf-nota-pag { color: #6b6b6b; }

.pdf-btn {
  font-size: 11px; padding: 3px 10px; border-radius: 6px;
  border: 0.5px solid #ccc; background: white; cursor: pointer; color: #444;
  font-family: inherit;
}
.pdf-btn:hover:not(:disabled) { background: #f3f3f0; }
.pdf-btn:disabled { color: #bbb; cursor: default; }
.pdf-btn:focus-visible { outline: 2px solid #2563c9; outline-offset: 1px; }

.pdf-leyenda { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #6b6b6b; }
.pdf-leyenda-rect {
  width: 14px; height: 9px; border-radius: 2px;
  background: rgba(255, 220, 0, 0.3); border: 1.5px solid rgba(200, 160, 0, 0.8);
}
.pdf-aviso { margin-left: auto; font-size: 11px; color: #6b6b6b; }

.pdf-lienzo {
  flex: 1; overflow: auto; padding: 16px; background: #f5f5f0;
  display: flex; justify-content: center; position: relative;
}
#pdf-canvas { box-shadow: 0 2px 12px rgba(0,0,0,0.15); border-radius: 4px; max-width: 100%; height: auto; align-self: flex-start; }

.pdf-error {
  padding: 20px; font-size: 12px; color: #7a2a2a;
  background: #fcebeb; border-radius: 8px; line-height: 1.6; align-self: flex-start;
}
