/* myBCA Mockup v2.0.1 — Preview panel, zoom controls, canvas surface, caption and footer. */

.preview-column {
  position: sticky;
  top: 94px;
  min-width: 0;
}
.preview-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.preview-toolbar {
  min-height: 46px;
  margin-bottom: 18px;
  padding: 0;
  align-items: center;
}
.preview-eyebrow { margin-bottom: 6px; }
.preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667b87;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
#zoomLabel {
  min-width: 45px;
  text-align: center;
  font-weight: 600;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 0 1px;
  border: 1px solid #cfe0ea;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-600);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.icon-button:hover { transform: translateY(-1px); background: var(--brand-050); border-color: #bcd3e1; }
.icon-button:active { transform: translateY(0); }
.icon-button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
  box-shadow: none;
}
.canvas-stage {
  min-height: 0;
  flex: 1 1 0;
  contain: size layout paint;
  padding: 24px 28px 28px;
  display: flex;
  align-items: safe center;
  justify-content: center;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--scroll-thumb) #edf4f7;
  border: 1px solid rgba(0, 92, 170, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(45deg, rgba(0, 92, 170, 0.022) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(-45deg, rgba(0, 92, 170, 0.022) 25%, transparent 25%) 0 11px / 22px 22px,
    #edf4f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.canvas-surface {
  width: min(100%, 420px);
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  margin-block: auto;
  transition: width 160ms cubic-bezier(.2, .8, .2, 1);
}
#receiptCanvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: var(--shadow-canvas);
}
.preview-caption {
  margin: 11px 10px 0;
  color: #7b8d97;
  font-size: 10.6px;
  line-height: 1.5;
  text-align: center;
}
.footer {
  width: min(1460px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #84949d;
  font-size: 10.5px;
}
