* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

        .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
   background:linear-gradient(135deg, #87CEEB, #4682B4);
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.1);
}

.header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem;
	    color: white !important;
/*     font-family: inherit; */
	}

.download-btn {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto 30px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

.receipt-content {
  background: white;
  border: 1px solid #e0e0e0;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.receipt-header {
  background: #FF6347;
  padding: 15px 0;
}
.address-section {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.address-section .billed-to-section {
  width: 50%;
}


.receipt-top {
  background: #f5f5f5;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  background: #5a5a5a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.company-info {
  color: #333;
  font-size: 0.9rem;
  line-height: 1.6;
}

.company-info .company-name {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
}

.receipt-title-section {
  text-align: right;
  flex-shrink: 0;
}

.receipt-title {
  color: #5a5a5a;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.receipt-meta {
  text-align: right;
}

.receipt-meta-item {
  margin-bottom: 15px;
}

.receipt-meta-label {
  color: #003366;
  font-weight: bold;
  font-size: 0.85rem;
  margin-bottom: 5px;
  display: block;
}

.receipt-meta-value {
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
  min-width: 200px;
  display: inline-block;
  min-height: 20px;
}

.receipt-body {
  padding: 40px;
}

.billed-to-section {
  margin-bottom: 30px;
}

.billed-to-label {
  color: #003366;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #003366;
  display: inline-block;
}

.billed-to-content {
  color: #333;
  line-height: 1.8;
  font-size: 0.9rem;
}

.items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.items-table thead {
  background: #FF6347;
  color: white;
}

.items-table th {
  padding: 12px;
  text-align: left;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.items-table th:last-child {
  text-align: right;
}

.items-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .address-section {
    flex-direction: column;
  }

  .address-section .billed-to-section {
    width: 100%;
  }
}

.items-table td:last-child {
  text-align: right;
}

.items-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.notes-section {
  margin: 20px 0;
  color: #333;
}

.notes-label {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.notes-content {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #666;
}

.totals-section {
  margin-top: 20px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #333;
}

.total-row.balance {
  background: #FFE4E1;
  font-weight: bold;
  color: #003366;
  font-size: 1.1rem;
  margin-top: 5px;
}

.total-label {
  font-weight: bold;
}

.total-value {
  text-align: right;
  min-width: 100px;
}

.balance-amount {
  font-weight: bold;
}

.receipt-footer {
  background: #FF6347;
  padding: 15px 0;
}

@media (max-width: 768px) {
  .container {
    padding: 0px;
  }
	.e-con{
		padding:6px
	}

  .receipt-top {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .receipt-title-section {
    text-align: left;
  }

  .receipt-title {
    font-size: 1.5rem;
  }

  .receipt-meta {
    text-align: left;
  }

  .receipt-body {
    padding: 20px;
  }

  .items-table {
    font-size: 0.85rem;
  }

  .items-table th,
  .items-table td {
    padding: 8px 6px;
  }

  .total-row {
    font-size: 0.85rem;
  }

  .download-btn {
    max-width: 100%;
  }
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .download-btn {
    display: none;
  }

  .receipt-content {
    box-shadow: none;
  }
}
