/* Custom Stylesheet for Jeep Gunung Guntur Invoice App */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Bebas+Neue&display=swap');

:root {
  --primary: #d97706; /* Amber 600 */
  --primary-dark: #b45309; /* Amber 700 */
  --slate-dark: #0f172a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f1f5f9;
  color: #1e293b;
}

/* Authentic Digital Rubber Stamp */
.stamp-badge {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-25%) rotate(-8deg);
  border: 3.5px dashed;
  border-radius: 8px;
  padding: 4px 14px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 2px;
  pointer-events: none;
  user-select: none;
  opacity: 0.9;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8) inset;
  transition: all 0.3s ease;
  z-index: 10;
}

.stamp-lunas {
  color: #15803d;
  border-color: #15803d;
  background-color: rgba(21, 128, 61, 0.08);
}

.stamp-dp {
  color: #b45309;
  border-color: #b45309;
  background-color: rgba(180, 83, 9, 0.08);
}

.stamp-pending {
  color: #b91c1c;
  border-color: #b91c1c;
  background-color: rgba(185, 28, 28, 0.08);
}

.stamp-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  line-height: 1;
}

.stamp-subtitle {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Drawer transitions */
.drawer-backdrop {
  transition: opacity 0.3s ease-in-out;
}
.drawer-content {
  transition: transform 0.3s ease-in-out;
}

/* Modals */
.modal-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* PDF Exporting Mode (Applied dynamically during html2pdf download) */
body.pdf-exporting .no-print,
body.pdf-exporting .col-aksi,
body.pdf-exporting .btn-remove {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.pdf-exporting input,
body.pdf-exporting textarea,
body.pdf-exporting select {
  display: none !important;
}

body.pdf-exporting .pdf-live-view {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
}

/* Ensure single page fit without awkward page splits */
.print-container {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

/* Print Optimization */
@page {
  size: A4 portrait;
  margin: 8mm 10mm 8mm 10mm;
}

@media print {
  html, body {
    background-color: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11pt !important;
  }

  .no-print, .col-aksi, .btn-remove {
    display: none !important;
  }

  body input,
  body textarea,
  body select {
    display: none !important;
  }

  body .pdf-live-view {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.35 !important;
  }

  .print-border-b {
    border-bottom: 1px solid #94a3b8 !important;
  }

  .stamp-badge {
    opacity: 0.85 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
