@page {
  size: A4 portrait;
  margin: 20mm 15mm 20mm 15mm;
}

body {
  background: #fff !important;
  color: #222;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 13pt;
}

.container, .card {
  width: 100% !important;
  max-width: 800px;
  margin: 0 auto !important;
  background: #fff !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

.invoice-section {
  display: block !important;
}

h3, h4 {
  margin-bottom: 0.5em;
  font-weight: 600;
}

img[alt="Harvi Logo"] {
  max-width: 90px;
  max-height: 90px;
  margin-bottom: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse !important;
  margin-bottom: 1.5em;
}
.table th, .table td {
  border: 1px solid #333 !important;
  padding: 6px 10px !important;
  font-size: 12pt;
}
.table th {
  background: #f2f2f2 !important;
  font-weight: 600;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5em;
}
.col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-9, .col-md-12 {
  flex: 1 1 0;
  padding: 0 8px;
}

/* Header and company info */
.invoice-section .row.mb-3 {
  align-items: flex-start;
  border-bottom: 2px solid #222;
  padding-bottom: 10px;
  margin-bottom: 18px !important;
}
.invoice-section h4 {
  font-size: 1.3em;
  margin-bottom: 0.2em;
}
.invoice-section .company-info {
  font-size: 1em;
  margin-bottom: 0.2em;
}
.invoice-section .gst-number {
  font-size: 1.1em;
  font-weight: 600;
  color: #222;
}

/* To section */
.invoice-section .row.mb-2 {
  margin-bottom: 12px !important;
}

/* Bank details/footer */
.invoice-section .mt-4 {
  border-top: 2px solid #222;
  margin-top: 18px !important;
  padding-top: 10px;
  font-size: 1em;
}

/* Hide buttons and form fields */
.no-print, form, input, textarea, select, button {
  display: none !important;
}

/* Remove Bootstrap print artifacts */
@media print {
  .no-print, form, input, textarea, select, button {
    display: none !important;
  }
  .invoice-section {
    display: block !important;
  }
  .main-title { display: none !important; }
}

.invoice-table, .invoice-table th, .invoice-table td {
  border: 1.5px solid #222 !important;
  border-collapse: collapse !important;
}

.invoice-table th, .invoice-table td {
  background: #fff !important;
} 