* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  color: #333;
  background-color: #f5f5f5;
}

.invoice-container-wrap {
  max-width: 1200px;
  margin: 20px auto;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.invoice-container {
  position: relative;
  padding: 20px;
}

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 80px;
  color: rgba(0, 0, 0, 0.1);
  font-weight: bold;
  z-index: 1000;
  pointer-events: none;
}

/* Header */
.themeholy-header {
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid #dee2e6;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.header-logo {
  margin-right: 20px;
}

.header-logo img {
  max-width: 100px;
  padding: 10px;
}

.header-info {
  text-align: center;
}

.header-info h1 {
  font-size: 30px;
  margin-bottom: 5px;
  color: #2c3e50;
}

.header-info .address {
  font-size: 12px;
  color: #666;
}

.header-info .contact {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.header-bottom {
  text-align: center;
}

.header-bottom h4 {
  font-size: 20px;
  color: #2c3e50;
  margin: 0;
}

/* Info Sections */
.info-row {
  display: flex;
  margin-bottom: 15px;
  gap: 20px;
}

.info-col {
  flex: 1;
}

.info-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  font-size: 12px;
}

.info-box strong {
  color: #2c3e50;
}

.text-primary {
  color: #007bff !important;
  font-weight: bold;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
  display: inline-block;
}

.bg-warning {
  background-color: #ffc107;
  color: #000;
}

.bg-success {
  background-color: #28a745;
  color: #fff;
}

/* Section Headers */
.section-header {
  background-color: #e9ecef;
  padding: 10px 15px;
  margin: 20px 0 10px 0;
  border-radius: 5px;
}

.section-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #2c3e50;
}

/* Tables */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 11px;
}

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

.invoice-table th {
  background-color: #f8f9fa;
  font-weight: bold;
  font-size: 12px;
}

.invoice-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Summary */
.summary-row {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.summary-col {
  flex: 1;
}

.summary-box,
.payment-summary {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

.summary-box h6,
.payment-summary h6 {
  margin-bottom: 10px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  padding: 3px 0;
  border-bottom: 1px dotted #ccc;
}

.summary-item:last-child {
  border-bottom: none;
  font-weight: bold;
}

/* History */
.history-container {
  max-height: 300px;
  overflow-y: auto;
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 15px;
}

.history-item {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background: white;
  margin-bottom: 10px;
  border-radius: 5px;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-icon {
  margin-right: 15px;
  margin-top: 5px;
  color: #007bff;
}

.history-content h6 {
  margin: 0 0 5px 0;
  font-size: 12px;
  font-weight: bold;
  color: #2c3e50;
}

.history-content p {
  margin: 0 0 5px 0;
  font-size: 11px;
  color: #666;
}

.history-date {
  font-size: 10px;
  color: #999;
}

/* Notes */
.notes-section {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.notes-section h6 {
  margin-bottom: 10px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 12px;
}

/* Buttons */
.invoice-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

.btn-payment {
  background-color: #28a745;
  color: white;
}

.btn-payment:hover {
  background-color: #218838;
}

.btn-print {
  background-color: #00c764;
  color: white;
}

.btn-print:hover {
  background-color: #00a854;
}

.btn-download {
  background-color: #2d7cfe;
  color: white;
}

.btn-download:hover {
  background-color: #1c6cfc;
}

/* Print Styles */
@media print {
  body {
    background-color: white;
  }

  .invoice-buttons {
    display: none;
  }

  .invoice-container-wrap {
    box-shadow: none;
    margin: 0;
  }

  .watermark {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .info-row,
  .summary-row {
    flex-direction: column;
  }

  .invoice-buttons {
    flex-direction: column;
    align-items: center;
  }

  .invoice-table {
    font-size: 10px;
  }

  .invoice-table th,
  .invoice-table td {
    padding: 4px;
  }
}
