/* Modale delle tabelle GH dei monconi (23/10/2026): gh-monconi-mua, gh-monconi-xcn, versioni-precedenti */
.gh-modal { margin: auto; width: min(1400px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.gh-modal::backdrop { background: rgba(10, 16, 28, 0.75); }
.gh-modal[open] { display: flex; flex-direction: column; }
.gh-modal__title { margin: 0; padding: 1rem 3.5rem 0.75rem 1.25rem; color: var(--instructions-accent, #ff0000); font-weight: 700; font-size: 1.1rem; }
.gh-modal__body { overflow: auto; padding: 0 1.25rem 1.25rem; }
.gh-modal__body img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94vh - 4.5rem); margin: 0 auto; }
/* su telefono la tabella resta leggibile: più larga dello schermo, si scorre */
@media (max-width: 767px) { .gh-modal__body img { max-width: none; max-height: none; width: 640px; } }
.gh-modal__close { position: absolute; top: 0.45rem; right: 0.5rem; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: transparent; color: #121212; cursor: pointer; }
.gh-modal__close svg { width: 1.5rem; height: 1.5rem; }
.gh-modal__close:hover, .gh-modal__close:focus-visible { color: var(--instructions-accent, #ff0000); }
html.gh-modal-open { overflow: hidden; }
