/* F&I Studio Web — styles propres à la version navigateur (chargés seulement par dist-web/index.html).
 *
 * Aperçu PDF intégré (.fi-web-pdf-viewer) : équivalent de la fenêtre d'aperçu interne de Windows
 * (electron/pdf-preview-controller.js), au lieu d'un nouvel onglet que le navigateur peut bloquer.
 * EXCEPTION documentée (docs/DESIGN_SYSTEM.md §G) : aucun composant officiel de visionneuse plein
 * écran n'existe ; l'en-tête et les boutons sont les composants officiels (.fi-modal-header,
 * .fi-button), seule la boîte (taille, cadre du document) est définie ici, avec les tokens. */
.fi-web-pdf-viewer {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1100px, calc(100vw - var(--fi-space-2xl) * 2));
  height: calc(100vh - var(--fi-space-2xl) * 2);
  max-width: none;
  max-height: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fi-border);
  border-radius: var(--fi-radius-xl);
  background: var(--fi-surface);
  box-shadow: var(--fi-shadow-lg);
  overflow: hidden;
}
.fi-web-pdf-viewer:not([open]) { display: none; }
.fi-web-pdf-viewer::backdrop { background: color-mix(in srgb, var(--fi-ink) 45%, transparent); }
.fi-web-pdf-viewer .fi-modal-header { flex: none; padding: var(--fi-space-md) var(--fi-space-xl); }
.fi-web-pdf-viewer .fi-modal-header__title {
  margin: 0;
  font-size: var(--fi-text-lg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fi-web-pdf-viewer__frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  border-top: 1px solid var(--fi-border);
  background: var(--fi-surface-2);
}
