/* Custom Styles & Official Vietnamese E-Invoice Print Layout */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Captcha SVG container from GDT */
.gdt-captcha-box svg {
  width: 180px;
  height: 40px;
  display: block;
  background: #ffffff;
  border-radius: 6px;
}

/* Official Vietnamese GTGT E-Invoice Paper Template */
.einvoice-paper {
  font-family: 'Times New Roman', Times, serif;
  background: #ffffff;
  color: #000000;
  width: 210mm;
  min-height: 275mm;
  margin: 0 auto;
  padding: 12mm 14mm;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #cbd5e1;
  position: relative;
  line-height: 1.4;
}

.einvoice-frame {
  border: 2px double #1e3a8a;
  padding: 16px 20px;
  min-height: 250mm;
  position: relative;
  background-image: radial-gradient(rgba(30, 58, 138, 0.03) 1px, transparent 0);
  background-size: 16px 16px;
}

.einvoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.einvoice-table th,
.einvoice-table td {
  border: 1px solid #1e3a8a;
  padding: 6px 8px;
}

.einvoice-table th {
  background-color: #eff6ff;
  color: #1e3a8a;
  font-weight: bold;
  text-align: center;
}

.signature-valid-box {
  border: 2px solid #16a34a;
  background-color: #f0fdf4;
  color: #15803d;
  padding: 10px 14px;
  border-radius: 4px;
  text-align: left;
  font-size: 12.5px;
  position: relative;
  max-width: 280px;
  margin: 8px auto 0 auto;
}

/* Print Media Query for PDF / Printer */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-invoice-area,
  #printable-invoice-area * {
    visibility: visible;
  }
  #printable-invoice-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none !important;
    border: none !important;
  }
  .no-print {
    display: none !important;
  }
}
