/* Apri P7M Web: what differs from the Windows app (app.css). */

/* The PDF of the invoice, the verification report and the recent files are in the Windows app. The batch results
   are downloaded as one ZIP, so there is no output folder to choose. */
#btnPdf, #btnReport, #recentBox, #btnPickOutput { display: none !important; }

/* Inside the pages of the site (launcher.js) the viewer covers the page: the back arrow closes it. */
body.embedded .appbar { display: none; }

body { -webkit-tap-highlight-color: transparent; }

/* Phones cannot choose a folder: there "Scegli file o ZIP" picks several files at once. */
body.mobile #btnPickFolder, body.mobile #viewBatch .check { display: none; }

@media (max-width: 760px) {
  .appbar { height: 50px; padding: 0 10px; }
  .appbar-actions .btn { padding: 0 12px; }
  .appbar-actions #btnPro { display: none; } /* on phones Pro opens from "Elaborazione multipla" */
  .brand span { display: none; }
  .home { padding: 16px 12px 28px; gap: 14px; }
  .drop { padding: 26px 16px 22px; }
  .drop-art img { width: 64px; height: 64px; }
  .drop h1 { font-size: 21px; }
  .feature-row li { font-size: 12px; }
  /* Document: the verification above, the preview below, everything in one scrolling column. */
  #viewDoc { overflow: auto; }
  .doc-head { flex-wrap: wrap; gap: 6px; padding: 6px 8px; }
  .doc-title { flex: 1 1 calc(100% - 50px); }
  .doc-actions { width: 100%; justify-content: flex-start; }
  .doc-actions .btn { padding: 0 10px; height: 34px; }
  .doc-body { display: block; flex: none; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; padding: 12px; }
  .preview { min-height: 75vh; }
  .pane { min-height: 70vh; }
  .pane iframe { height: 75vh; }
  .toasts { left: 10px; right: 10px; bottom: 10px; align-items: stretch; }
  .modal { padding: 10px; }
  .modal-card { padding: 20px 18px; }
  #viewBatch .row { flex-wrap: wrap; }
}

/* Narrow phones: "Elaborazione multipla" becomes an icon with the PRO tag, so the bar fits (390 px). */
@media (max-width: 480px) {
  #btnBatch .lbl { display: none; }
  #btnBatch { gap: 6px; }
}
