/* 80mm Thermal Receipt Simulation Styles */

.thermal-receipt-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-width: 100%;
}

.thermal-paper {
  width: 430px;
  min-width: 390px;
  max-width: 100%;
  box-sizing: border-box;
  background: #fdfdfd;
  color: #111827;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08);
  font-family: "Consolas", "Courier New", Courier, monospace;
  font-size: 12.5px;
  line-height: 1.35;
  border-radius: 4px;
  position: relative;
  user-select: text;
}

/* Receipt Top & Bottom Cut Effect */
.thermal-paper::before,
.thermal-paper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-size: 12px 6px;
  background-repeat: repeat-x;
}

.thermal-paper::before {
  top: -6px;
  background-image: radial-gradient(circle at 6px 0, transparent 6px, #fdfdfd 6px);
}

.thermal-paper::after {
  bottom: -6px;
  background-image: radial-gradient(circle at 6px 6px, transparent 6px, #fdfdfd 6px);
}

.receipt-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
  width: 100%;
}

.receipt-logo-img {
  display: block;
  margin: 0 auto;
  max-width: 110px;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(140%);
}

.receipt-text-pre {
  white-space: pre !important;
  word-break: keep-all !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
  overflow-x: auto;
  font-family: "Consolas", "Courier New", Courier, monospace;
  font-size: 12.5px;
  font-weight: 600;
  color: #000000;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

/* POS Countertop Receipt Stand Dock */
.receipt-stand {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  width: 460px;
  max-width: 100%;
  background: #181d24;
  border: 1.5px solid #2d3748;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.receipt-stand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #111827;
  border-bottom: 1.5px solid #2d3748;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f3f4f6;
  user-select: none;
}

.receipt-stand-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.receipt-stand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.3px;
}

.receipt-stand-clip-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0.65rem;
  background: #181d24;
}

.receipt-stand-clip {
  width: 70px;
  height: 5px;
  background: #4b5563;
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.receipt-stand-body {
  padding: 0.75rem 1rem 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overflow-x: hidden;
}

.receipt-stand-body::-webkit-scrollbar {
  width: 6px;
}
.receipt-stand-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.receipt-stand-body::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 3px;
}
.receipt-stand-body::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Responsive breakpoint for admin two-column layout */
@media (max-width: 1100px) {
  .admin-split-view {
    grid-template-columns: 1fr !important;
  }
  .receipt-stand {
    position: static;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}

