/* Five bill headers — same on the bill page, print, and WhatsApp image. */
.tb-bill-sheet {
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 16px;
}
.tb-billhead {
  --inv-accent: #1E3A8A;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #0B1220;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.tb-bill-logo { flex: 0 0 auto; }
.tb-bill-logo img,
.tb-bill-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}
.tb-bill-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #EEF2FF;
  color: var(--inv-accent);
  border: 1px solid #CBD5E1;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.tb-bill-shop { flex: 1 1 auto; min-width: 0; }
.tb-bill-shop strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--inv-accent);
}
.tb-bill-shop span,
.tb-bill-contact span {
  display: block;
  font-size: 0.78rem;
  color: #64748B;
  white-space: pre-line;
}
.tb-bill-contact { flex: 0 0 auto; text-align: right; }

.layout-banner.tb-billhead { background: var(--inv-accent); }
.layout-banner .tb-bill-shop strong,
.layout-banner .tb-bill-shop span,
.layout-banner .tb-bill-contact span { color: #fff; }
.layout-banner .tb-bill-logo {
  background: #fff;
  border-radius: 14px;
  padding: 4px;
}
.layout-banner .tb-bill-logo img,
.layout-banner .tb-bill-mark { width: 56px; height: 56px; }

.layout-right.tb-billhead { padding: 0; align-items: stretch; }
.layout-right .tb-bill-shop { order: 1; padding: 12px 0 12px 14px; }
.layout-right .tb-bill-contact { order: 2; padding: 12px 14px; align-self: center; }
.layout-right .tb-bill-logo {
  order: 3;
  display: flex;
  align-items: center;
  background: var(--inv-accent);
  padding: 10px 14px;
}
.layout-right .tb-bill-mark,
.layout-right .tb-bill-logo img {
  width: 56px;
  height: 56px;
  background: #fff;
  border-color: #fff;
  border-radius: 12px;
}

.layout-card .tb-bill-logo {
  background: var(--inv-accent);
  padding: 6px;
  border-radius: 16px;
}
.layout-card .tb-bill-mark { background: #fff; border-color: #fff; }

.layout-stripe.tb-billhead { border-left: 10px solid var(--inv-accent); }
.layout-stripe .tb-bill-mark,
.layout-stripe .tb-bill-logo img { border-radius: 8px; width: 56px; height: 56px; }

.tb-share-card .tb-billhead { margin: -22px -24px 14px; border-radius: 0; }
.tb-share-card .tb-bill-sheet { border: 0; margin: 0; }

@media (max-width: 560px) {
  .tb-billhead { flex-wrap: wrap; }
  .tb-bill-contact { text-align: left; width: 100%; }
  .tb-share-card .tb-billhead { flex-wrap: nowrap; }
  .tb-share-card .tb-bill-contact { width: auto; text-align: right; }
}
