/* Vista previa de documentos (PDF, receta, ficha, consentimiento, etc.): barra oscura arriba + hoja sobre fondo gris. Mismo look que la orden de laboratorio. */
html body #expPreviewModal, html body #pdfViewerModal { padding: 0 !important; background: #3a3a3c !important; backdrop-filter: none !important; }
html body #expPreviewModal .exp-prev, html body #pdfViewerModal > .modal-card {
  width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important;
  border-radius: 0 !important; border: 0 !important; box-shadow: none !important; background: #3a3a3c !important; color: #fff;
}
/* barra superior */
html body #expPreviewModal .exp-prev-h, html body #pdfViewerModal > .modal-card > div:first-child {
  min-height: 60px; padding: 8px 24px !important; background: #1c1c1e !important; border: 0 !important; gap: 12px !important; flex-wrap: wrap;
}
html body #expPreviewModal .exp-prev-t { display: flex; align-items: baseline; gap: 10px; }
html body #expPreviewModal .exp-prev-t h3, html body #pdfViewerTitle { color: #fff !important; font-size: 17px !important; font-weight: 700; margin: 0; }
html body #expPreviewModal .exp-prev-t span, html body #pdfViewerSubtitle { color: #a1a1a6 !important; font-size: 13px !important; }
html body #expPreviewModal .exp-ptab { height: 36px; border-color: #636366; background: #2c2c2e; color: #fff; padding: 0 16px; }
html body #expPreviewModal .exp-ptab.on { background: #0A84C7; border-color: #0A84C7; }
html body #expPreviewModal .exp-prev-h .exp-btns { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
html body #expPreviewModal .exp-prev-h .exp-btns button, html body #pdfViewerModal > .modal-card > div:first-child button.secondary {
  height: 40px; min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid #636366; background: #2c2c2e; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
html body #expPreviewModal .exp-prev-h .exp-btns button.cta { background: #0A84C7; border-color: #0A84C7; }
html body #expPreviewModal .exp-prev-h .exp-btns button:hover, html body #pdfViewerModal > .modal-card > div:first-child button.secondary:hover { filter: brightness(1.15); }
html body #expPreviewModal .exp-x, html body #pdfViewerModal .icon-btn { color: #fff !important; width: 40px; height: 40px; font-size: 26px; line-height: 1; }
html body #pdfViewerModal > .modal-card > div:first-child > div:first-child > div:first-child { background: rgba(10,132,199,.2) !important; color: #5AC8FA !important; }
html body #pdfViewerModal > .modal-card > div:first-child button.secondary span, html body #pdfViewerModal > .modal-card > div:first-child button.secondary svg { color: #fff; }
/* escenario */
html body #expPreviewModal .exp-prev-body, html body #expPreviewModal .exp-pages, html body #pdfViewerModal > .modal-card > div:nth-child(2) { background: #48484a !important; }
html body #expPreviewModal .exp-page { box-shadow: 0 12px 40px rgba(0,0,0,.45); }
/* pie: solo aviso y zoom */
html body #expPreviewModal .exp-prev-f { background: #1c1c1e; border: 0; padding: 6px 24px; min-height: 44px; }
html body #expPreviewModal .exp-prev-f > span { color: #a1a1a6; }
html body #expPreviewModal .exp-zoom button { background: #2c2c2e; border-color: #636366; color: #fff; border-radius: 10px; height: 36px; }
html body #expPreviewModal .exp-zoom span { color: #fff; }
@media (max-width: 834px) {
  html body #expPreviewModal .exp-prev-h, html body #pdfViewerModal > .modal-card > div:first-child { padding: 8px 14px !important; }
  html body #expPreviewModal .exp-prev-h .exp-btns { width: 100%; }
  html body #expPreviewModal .exp-prev-h .exp-btns button { flex: 1; }
}

html body #expPreviewModal, html body #pdfViewerModal { touch-action: pan-x pan-y; }
