/* ==========================================================================
   WMS PACKING LIST GUDANG SURABAYA - DC SBY
   Stylesheet Utama & Format Cetak A4 (PT. Presindo Central)
   ========================================================================== */

:root {
  --wms-bg: #f1f5f9;
  --wms-text: #0f172a;
  --wms-primary: #2563eb;
  --wms-primary-dark: #1d4ed8;
  --wms-border: #cbd5e1;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--wms-bg);
  color: var(--wms-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dropzone Drag State */
.sj-dropzone-active {
  border-color: #4f46e5 !important;
  background-color: rgba(224, 231, 255, 0.85) !important;
  transform: scale(1.005);
}

/* Subtle Pulse for Auto-Save Indicator */
@keyframes softPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.autosave-dot {
  animation: softPulse 2.2s infinite ease-in-out;
}

/* ==========================================================================
   PRINT MEDIA QUERIES (KHUSUS CETAK PACKING LIST A4 PORTRAIT)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 8mm 10mm 8mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print {
    display: none !important;
  }

  #print-area {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  table.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt !important;
    line-height: 1.25 !important;
  }

  table.print-table thead {
    display: table-header-group;
  }

  table.print-table tfoot {
    display: table-footer-group;
  }

  table.print-table tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  table.print-table th,
  table.print-table td {
    border: 1px solid #1e293b !important;
    padding: 3px 5px !important;
  }

  .print-footer-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
