/* Custom Base CSS for Invoice/Shipping Label Application */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.8);
}

/* Glassmorphism utility card */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.6);
}
.dark .glass-card {
  background: rgba(31, 41, 55, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.4);
}

/* Print CSS Configurations */
@media print {
  /* Hide all app shells, forms, sidebars, buttons, headers */
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12px;
  }
  
  /* Hide everything in layout except the specific invoice-container */
  body > *:not(#print-container-wrapper),
  #app-sidebar,
  #app-header,
  #form-controls-section,
  #action-buttons-group,
  .no-print {
    display: none !important;
  }

  #print-container-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  #invoice-preview {
    width: 210mm !important;
    height: 297mm !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }
}

/* Custom Invoice/Label Styling - Replicating reference image exactly */
.invoice-label-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #000000;
  background-color: #ffffff;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid #000000;
  font-size: 11px;
  line-height: 1.3;
}

/* Custom black box badge for Pickup */
.pickup-badge {
  background-color: #000000;
  color: #ffffff;
  padding: 1px 4px;
  font-weight: 800;
  font-size: 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* Outer grid table cells */
.label-border-right {
  border-right: 2px solid #000000;
}
.label-border-bottom {
  border-bottom: 2px solid #000000;
}
.label-border-left {
  border-left: 2px solid #000000;
}
.label-border-all {
  border: 2px solid #000000;
}

/* Product list & tax invoice table styling */
.label-table {
  width: 100%;
  border-collapse: collapse;
}
.label-table th {
  background-color: #f3f4f6;
  border-bottom: 1.5px solid #000000;
  font-weight: 700;
  text-align: left;
  padding: 4px 6px;
  font-size: 10px;
}
.label-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #d1d5db;
  vertical-align: top;
  font-size: 10px;
}
.label-table tr.total-row td {
  border-top: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  font-weight: 700;
  background-color: #fafafa;
}

/* Barcode SVGs fitment */
.barcode-svg {
  max-height: 55px;
  width: 100%;
}
