/* ===================================================================
   Ricevuta GEI-SIBSC 2026 — style.css
   Palette blu navy #0a1628 + verde #1a7340 — allineata con Portale
   =================================================================== */

/* ── Body responsive ─────────────────────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Main content stretch ────────────────────────────────────── */
.ric-main {
  flex: 1 0 auto;
}

/* ── App dropdown navbar ─────────────────────────────────────── */
.app-dropdown { position: relative; }
.app-dropdown-toggle {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: .35rem .6rem;
  border-radius: 6px;
  white-space: nowrap;
}
.app-dropdown-toggle:hover { background: rgba(255,255,255,.08); }
.app-dropdown-arrow { font-size: .65rem; opacity: .7; }
.app-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #dde2ef;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.13);
  padding: .5rem;
  list-style: none;
  margin: 0;
  min-width: 200px;
  z-index: 1050;
}
.app-dropdown-menu.open { display: block; }
.app-dropdown-menu li { margin-bottom: .25rem; }
.app-dropdown-menu li:last-child { margin-bottom: 0; }
.app-dropdown-menu a {
  display: block;
  width: 100%;
  text-align: left;
}
/* Mobile: dropdown inline */
@media (max-width: 768px) {
  .app-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    display: none;
  }
  .app-dropdown-menu.open { display: block; }
  .app-dropdown { width: 100%; }
  .app-dropdown-toggle { width: 100%; text-align: left; }
}

/* ── Card ricevuta ───────────────────────────────────────────── */
.ric-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,32,91,.10);
  overflow: hidden;
}
.ric-card-header {
  background: #1a2b4a;
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .85rem 1.25rem;
}
.ric-card-body {
  padding: 1.5rem 1.25rem;
}

/* ── Iframe anteprima A4 (portrait: 210×297mm) ───────────────── */
.ric-iframe-wrap {
  position: relative;
  width: 100%;
  /* A4 portrait ratio: 210/297 ≈ 70.7% */
  padding-bottom: 141.4%;
  border: 2px solid #1a7340;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,32,91,.13);
  background: #fff;
}
.ric-iframe-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 794px;    /* 210mm @ 96dpi */
  height: 1123px;  /* 297mm @ 96dpi */
  border: none;
  transform-origin: top left;
}

/* ── Flash messages container ────────────────────────────────── */
.flash-container { max-width: 680px; margin: .75rem auto; padding: 0 1rem; }
