/* Fenêtre de saisie (static/modal.js) : formulaire en iframe, navigation masquée côté formulaire. Jetons de refonte.css. */
html body[data-design] .modal_dialog { width: min(980px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 32px)); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-text); box-shadow: 0 24px 64px rgba(18, 62, 75, .28); }
html body[data-design] .modal_dialog[open] { display: flex; flex-direction: column; }
html body[data-design] .modal_dialog::backdrop { background: rgba(18, 62, 75, .4); backdrop-filter: blur(2px); }
html body[data-design] .modal_head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--c-line); }
html body[data-design] .modal_head h2 { margin: 0; font-size: var(--fs-h3); }
html body[data-design] .modal_close { min-width: 44px; min-height: 44px; font-size: 1.5rem; line-height: 1; }
html body[data-design] .modal_frame { flex: 1; width: 100%; border: 0; background: var(--c-bg); }
@media (max-width: 760px) { html body[data-design] .modal_dialog { width: 100vw; height: 100dvh; border-radius: 0; } }
/* Page chargée dans une fenêtre : le titre est déjà dans l'en-tête de la fenêtre. */
html body[data-design][data-modal-frame] .page_heading, html body[data-design][data-modal-frame] .tenant-page_head,
html body[data-design][data-modal-frame] .tenant-page_back, html body[data-design][data-modal-frame] .portfolio_back { display: none; }
/* Dans la fenêtre, les formulaires profitent de toute la largeur (saisie plus confortable). */
html body[data-design][data-modal-frame] .form_card, html body[data-design][data-modal-frame] .bf_layout,
html body[data-design][data-modal-frame] .bf_heading, html body[data-design][data-modal-frame] .bf_alert { max-width: none; }
html body[data-design][data-modal-frame] .lease-wiz { max-width: 860px; }
/* Fenêtre « large » (création d'un bien) : presque tout l'écran pour naviguer entre les rubriques sans défiler à l'étroit. */
html body[data-design] .modal_dialog.is-wide { width: min(1240px, calc(100vw - 32px)); height: calc(100dvh - 32px); }
/* Le titre est déjà dans l'en-tête de la fenêtre : on retire celui du formulaire de bien. */
html body[data-design][data-modal-frame] .bf_heading { display: none; }
/* Formulaire de bien dans la fenêtre : barres collées au bord de la fenêtre (plus de décalage de la barre du haut). */
html body[data-design][data-modal-frame] .bf_tabs { top: 0; margin-top: 0; }
html body[data-design][data-modal-frame] .bf_actions { bottom: 0; }
html body[data-design][data-modal-frame] .bf_layout { padding-top: 0; }
html body[data-design][data-modal-frame] .main_component { padding-top: 12px; }
