:root { --cui-banner-h: 24px; } /* adjust as needed */

.cui-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9998;

  height: var(--cui-banner-h);
  line-height: var(--cui-banner-h); /* vertically centers text */

  padding: 0 12px; /* horizontal only */
  box-sizing: border-box;

  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: #502b85;
  color: #ffffff;
}

.cui-banner--top {
  top: 0;
}

.cui-banner--bottom {
  bottom: 0;
}

/* Avoid clipping content under fixed print banners */
#app-content {
  padding-top: 16pt;
  padding-bottom: 24pt;
}

@media print {
  /* Keep banners visible when printing */
  .cui-banner {
    position: fixed;
    background: #fff !important;
    color: #000 !important;
    z-index: 9998;
  }

  /* A little smaller for print, still bold */
  .cui-banner {
    font-size: 12pt;
    padding: 4pt 0;
    border: none;
  }

}

.cui-di-block {
  position: fixed;
  right: 12px;
  bottom: 60px; /* above bottom banner */
  z-index: 9997;
  width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  border: 1px solid #000;
  background: #fff;
  padding: 10px;
}

@media print {
  .cui-di-block {
    position: fixed;
    right: 0.5in;
    bottom: 1.0in; /* keep above footer */
    width: 3.5in;
  }
}
