/* The POC draws the screen inside a phone frame (#phone, poc.css); on a real phone the screen is the viewport. */
body{padding:0; margin:0}
#scr{max-width:480px; margin:0 auto; height:100dvh; border-radius:0}
/* The POC's fake phone status bar (time, signal) stays in the markup; a real phone shows its own. */
#scr .sb{display:none}
/* P7F4 (offline_scan/DESIGN.md 6.7): the scan result's full-width colour band for 1.5 s - green ok, yellow check, red refused */
.scan-band{position:fixed; left:0; right:0; top:0; height:14px; z-index:50; animation:scanBand 1.5s forwards}
.scan-band.ok{background:var(--approved)} .scan-band.chk{background:var(--pending)} .scan-band.ref{background:var(--rejected)}
@keyframes scanBand{0%,85%{opacity:1}100%{opacity:0}}
/* owner item 76 (05.12): "Lista pe hartie" - the table on screen, and on paper only the list (name, group, table) */
.paper-print{display:grid; gap:8px}
.paper-t{width:100%; border-collapse:collapse; font-size:14px; line-height:20px}
.paper-t th, .paper-t td{text-align:left; padding:4px 6px; border-bottom:1px solid var(--divider)}
/* D8-messages fix 1 (review P3-1): a memento "  - " sub-step (leader.js bubble) sits under its item text (.mb-li, base.css); base.css stays the POC file */
.mb-sub{padding-left:24px; text-indent:-10px}
/* fix 1 (P1-2): the list in normal flow over as many pages as it needs - everything not on the way to it is not drawn, and its
   ancestors (#scr: a 100dvh box with overflow:hidden, the scrolling body) grow to the list instead of clipping it to one page */
@media print{
  #scr, #scr > .body{height:auto !important; overflow:visible !important; position:static !important}   /* a browser without :has */
  body:has(.paper-print) *:not(:has(.paper-print)):not(.paper-print):not(.paper-print *){display:none !important}
  html:has(.paper-print), body:has(.paper-print), *:has(.paper-print){display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; max-width:none !important; overflow:visible !important; position:static !important; padding:0 !important; margin:0 !important; border:0 !important; box-shadow:none !important}
  .paper-print{display:block; position:static; width:100%}
  .paper-t{font-size:11pt}
  .paper-t thead{display:table-header-group}
  .paper-t tr{break-inside:avoid}
}
