/* Print Styles for Moving Labels */

@media print {
  /* Hide everything except print content */
  body * {
    visibility: hidden;
  }

  .print-container,
  .print-container * {
    visibility: visible;
  }

  .print-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  /* A4 Page Setup */
  .print-page {
    width: 210mm;
    height: 297mm;
    page-break-after: always;
    page-break-inside: avoid;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .print-page:last-child {
    page-break-after: auto;
  }

  /* Label Card Styles */
  .label-card {
    width: 180mm !important;
    height: 260mm !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 40mm !important;
    background: white !important;
    border-radius: 0 !important;
    page-break-inside: avoid !important;
  }

  /* Remove shadows and effects */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ensure colors print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Hide navigation, headers, footers */
  nav,
  header,
  footer,
  .no-print {
    display: none !important;
  }

  /* Page margins */
  @page {
    size: A4 portrait;
    margin: 0;
  }
}

/* Screen Preview Styles */
@media screen {
  .print-container {
    display: none;
  }
}
