@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white;
    color: black;
  }
  .no-print {
    display: none !important;
  }
  @page {
    size: A4 portrait;
    margin: 10mm;
  }
}

.invoice-box {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding: 20px;
  border: 2px solid #1e293b;
  border-radius: 8px;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  color: #0f172a;
  background: #ffffff;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #334155;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.invoice-title {
  text-align: center;
}

.invoice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #f8fafc;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 15px;
  font-size: 13px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
}

.invoice-table th, .invoice-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: center;
}

.invoice-table th {
  background: #f1f5f9;
  font-weight: bold;
}

.invoice-signatures {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px dashed #94a3b8;
  text-align: center;
  font-size: 13px;
}

.signature-box {
  width: 30%;
  height: 80px;
  border-top: 1px solid #64748b;
  padding-top: 8px;
}
