/* Public booking has no global Bootstrap CSS. Keep this shared shell complete
   while Bootstrap's Modal controller continues to own focus and lifecycle. */
.profint-document-preview {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1055;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  color: var(--ink, #163c4f);
  font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
.profint-document-preview.show { display: block; }
.profint-document-preview,
.profint-document-preview *,
.profint-document-preview *::before,
.profint-document-preview *::after { box-sizing: border-box; }
.profint-document-preview .modal-dialog { position: relative; width: min(1440px, calc(100vw - 32px)); max-width: none; min-height: 0; margin: 16px auto; pointer-events: none; }
.profint-document-preview .modal-content { position: relative; width: 100%; height: calc(100dvh - 32px); min-width: 0; overflow: hidden; display: flex; flex-direction: column; pointer-events: auto; background: var(--surface, #fff); border: 1px solid var(--border, #c9dce6); border-radius: 18px; box-shadow: 0 24px 80px #08293c33; }
.profint-document-preview .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 16px 20px; border-bottom: 1px solid var(--border, #dbe7ed); }
.profint-document-preview .modal-title { min-width: 0; margin: 0; color: inherit; font-family: inherit; font-size: 1.125rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.profint-document-preview .btn-close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; color: inherit; background: #f2f7fa; border: 1px solid #d5e3eb; border-radius: 12px; cursor: pointer; opacity: 1; }
.profint-document-preview .btn-close::before { content: ""; width: 16px; height: 16px; background: linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 46% 54%, transparent 55%); }
.profint-document-preview .btn-close:hover { background: #e5f2f7; }
.profint-document-preview .document-preview__toolbar { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; padding: 16px 20px 0; }
.profint-document-preview .document-preview__toolbar .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 100%; margin: 0; padding: 10px 16px; border: 1px solid #bdd7e3; border-radius: 12px; background: #fff; color: #126984; font: 600 .875rem/1.35 Geist, system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.profint-document-preview .document-preview__toolbar .btn-primary { background: #087f9b; border-color: #087f9b; color: #fff; }
.profint-document-preview .document-preview__toolbar .btn:hover { filter: brightness(.95); }
.profint-document-preview .document-preview__toolbar .btn:disabled { opacity: .5; cursor: not-allowed; }
.profint-document-preview :is(button, a):focus-visible { outline: 3px solid #20acd4; outline-offset: 3px; }
.profint-document-preview .document-preview__status { flex-shrink: 0; margin: 8px 20px; color: var(--bs-secondary-color, #607c8d); font-size: .85rem; min-height: 22px; }
body:has(.profint-document-preview.show) > .modal-backdrop { position: fixed; inset: 0; z-index: 1050; width: 100vw; height: 100dvh; background: #082638; opacity: .5; }
.profint-document-preview [data-embedded-viewer] { flex: 1; min-height: 0; margin: 0 20px 20px; border-radius: 12px; }
.profint-document-preview .profint-embedded-viewer__header,
.profint-document-preview .profint-embedded-viewer__file-actions { display: none; }
.profint-document-preview .profint-embedded-viewer__body { height: 100%; max-height: none; padding: 0; }
.profint-document-preview .profint-embedded-viewer__file { height: 100%; display: block; }
.profint-document-preview .profint-embedded-viewer__document,
.profint-document-preview .profint-embedded-viewer__media { height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; }
@media (max-width: 600px) {
  .profint-document-preview .modal-dialog { width: 100%; margin: 0; }
  .profint-document-preview .modal-content { height: 100dvh; border-radius: 0; }
  .profint-document-preview .modal-header { padding: 12px; gap: 8px; }
  .profint-document-preview .modal-title { font-size: 1rem; }
  .profint-document-preview .document-preview__toolbar { padding: 12px 12px 0; gap: 8px; }
  .profint-document-preview .document-preview__toolbar .btn { flex: 1 1 auto; padding: 10px 12px; font-size: .8rem; }
  .profint-document-preview .document-preview__status { margin-inline: 12px; }
  .profint-document-preview [data-embedded-viewer] { margin: 0 12px 12px; }
}
