/* Palm Eye Cloud portal — print, export and share on every card (exporter.js): the card button and menu, and the
 * branded print: Palm Eye header and footer on every printed page, the watermark tile, the chrome left out.
 * Copyright © 2026 Palm Digitalz. All rights reserved. */
.print-head, .print-foot, .print-wm, .print-denied { display: none; }
.exp-btn { margin-left: 6px; width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: none; color: var(--tertiary); cursor: pointer; opacity: .75; transition: background .15s, color .15s, opacity .15s; }
.card:hover .exp-btn, .exp-btn:focus-visible, .exp-btn[aria-expanded="true"] { opacity: 1; }
.exp-btn:hover { background: var(--surface2); color: var(--label); }
.exp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.card-head { align-items: flex-start; }
.exp-menu { position: absolute; z-index: 60; min-width: 220px; }
.exp-menu[hidden] { display: none; }

@media print {
  @page { size: A4; margin: 20mm 12mm 18mm 12mm; }
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff !important; }
  #side, #top, .side-scrim, #offline, #toasts, #tip, #modal-root, .cmdk-back, .page-actions, .exp-btn, .exp-menu, .crumbs, .vhead-actions, .rd-bar, .seg, .btn { display: none !important; }
  body.has-side .app, #app { margin: 0 !important; padding: 0 !important; }
  .card { break-inside: avoid; box-shadow: none !important; border: 1px solid #E5E1DA !important; }
  .grid { display: block !important; }
  .grid > * { margin-bottom: 10px; }
  .print-head { display: flex !important; position: fixed; top: -14mm; left: 0; right: 0; height: 10mm; align-items: center; gap: 8px; font: 600 11px -apple-system, Helvetica, Arial, sans-serif; color: #1C1C1E; border-bottom: 1px solid #E5E1DA; }
  .print-mark { display: inline-flex; }
  .print-brand { font-weight: 700; font-size: 12px; }
  .print-title { color: #6B6B70; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .print-conf { color: #A65D10; font-weight: 700; letter-spacing: .12em; border: 1px solid #A65D10; border-radius: 4px; padding: 1px 6px; font-size: 9px; }
  .print-foot { display: flex !important; position: fixed; bottom: -12mm; left: 0; right: 0; height: 8mm; align-items: center; justify-content: space-between; gap: 12px; font: 500 8.5px -apple-system, Helvetica, Arial, sans-serif; color: #8A8A8E; border-top: 1px solid #E5E1DA; }
  .print-wm { display: block !important; position: fixed; inset: -20mm -12mm; background-repeat: repeat; z-index: 9000; pointer-events: none; }
  /* one card: everything else hidden, the card at the top of the page */
  body.print-one #app * { visibility: hidden; }
  body.print-one #app .print-target, body.print-one #app .print-target * { visibility: visible; }
  body.print-one #app .print-target { position: absolute; left: 0; top: 0; width: 100%; }
  /* a client without export: a notice instead of the page */
  body.no-export > *:not(.print-denied) { display: none !important; }
  body.no-export .print-denied { display: block !important; padding: 40mm 10mm; font: 16px -apple-system, Helvetica, Arial, sans-serif; color: #1C1C1E; }
}
