/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@keyframes highlight-fade {
  from { background-color: rgb(254 249 195); }
  to { background-color: transparent; }
}

.highlight {
  animation: highlight-fade 1.5s ease-out;
}

.toast-enter { animation: toast-in 0.3s ease-out; }
.toast-exit { animation: toast-out 0.3s ease-in forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-1rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-1rem); }
}

@media print {
  @page {
    margin: 0;
    size: 3in 2in;
  }

  body:has(#barcode-print-page) * {
    visibility: hidden;
  }

  body:has(#barcode-print-page) #printable-barcode,
  body:has(#barcode-print-page) #printable-barcode * {
    visibility: visible;
  }

  body:has(#barcode-print-page) #printable-barcode {
    position: fixed;
    left: 0;
    top: 0;
    width: 3in;
    height: 2in;
    padding: 0.1in;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  body:has(#barcode-print-page) #printable-barcode > div {
    padding: 0.08in;
    border-width: 1px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  body:has(#barcode-print-page) #printable-barcode .text-center {
    padding-bottom: 0.06in;
    margin-bottom: 0.06in;
  }

  body:has(#barcode-print-page) #printable-barcode .text-xs {
    font-size: 6pt;
    margin-bottom: 1px;
  }

  body:has(#barcode-print-page) #printable-barcode .text-lg {
    font-size: 9pt;
  }

  body:has(#barcode-print-page) #printable-barcode .font-semibold {
    font-size: 7pt;
    line-height: 1.2;
  }

  body:has(#barcode-print-page) #printable-barcode .font-medium {
    font-size: 7pt;
  }

  body:has(#barcode-print-page) #printable-barcode img {
    height: 0.4in;
  }

  body:has(#barcode-print-page) #printable-barcode .space-y-2 {
    margin-top: auto;
  }

  body:has(#barcode-print-page) #printable-barcode .space-y-2 > * + * {
    margin-top: 0.04in;
  }

  body:has(#barcode-print-page) #printable-barcode .space-y-4 > * + * {
    margin-top: 0;
  }

  body:has(#barcode-print-page) #printable-barcode .mt-2 {
    margin-top: 0.04in;
  }
}
