/* test-label.css - the TEST bar for a client test shop. Served only by the test host (see
   test-label.js). It never reaches a live shop. */

#__test-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 2147483647;
  margin: 0;
  padding: 0 8px;
  box-sizing: border-box;
  background: #B00020;
  color: #fff;
  font: 700 15px/32px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

/* border-box: the till sets html,body{height:100%;overflow:hidden}, so the 32px must come out of
   that height, not push the bottom of the till (the pay buttons) off the screen. */
body {
  padding-top: 32px !important;
  box-sizing: border-box !important;
}
.app {
  height: calc(100vh - 32px) !important;
}

/* The till's full-screen layers and modal overlays are fixed at top:0. Start them below the bar
   so nothing a cashier taps (a modal's close button, the sign-in pad) sits under it. */
.overlay,
#login,
#landing,
#setup,
#bogate,
#fpmodal,
#exponly {
  top: 32px !important;
}
.overlay .modal {
  max-height: calc(100vh - 32px - var(--kb, 0px) - 24px) !important;
}

/* The slip lines test-label.js puts first and last in the page: print only. */
.__test-print-only {
  display: none !important;
}

@media print {
  #__test-bar {
    display: none !important;
  }
  body {
    padding-top: 0 !important;
  }
  #__test-slip-top.__test-print-only,
  #__test-slip-bottom.__test-print-only {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    margin: 4px 0 !important;
    padding: 4px !important;
    border: 2px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    font: 700 14px/1.3 monospace !important;
    text-align: center !important;
  }
}
