/* Start custom CSS */.page-heading-with-image {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  background-color: #fafafa; /* Subtle light background */
  border-radius: 10px; /* Rounded corners for a modern look */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

.heading-content {
  flex: 1; /* Ensure content area takes equal width */
  max-width: 45%; /* Set max width to allow more space for the image */
}

.heading-content h1 {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff; /* White text for contrast */
  line-height: 1.4;
  background-color: #0056b3; /* Theme blue */
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Optional: Add a small orange accent underline */
.heading-content h1::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -8px;
  width: 40px;
  height: 4px;
  background-color: #ffa500; /* Accent orange */
  border-radius: 2px;
}


.heading-content p {
  font-size: 1.1em;
  color: #777; /* Lighter gray text for contrast */
  line-height: 1.6;
  margin-top: 0;
}

.heading-image {
  flex: 1; /* Ensure image area takes equal width */
  display: flex;
  justify-content: flex-end; /* Align image to the right */
}

.heading-image img {
  max-width: 50%; /* Make the image take up 90% of the container width */
  height: auto;
  border-radius: 8px; /* Slightly rounded corners */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Soft shadow for the image */
}









/* Container */
.bill-container {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  border-left: 6px solid #0056b3;
  border-top: 3px solid #ffa500;
}

/* Table */
.bill-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.bill-container th {
  background: linear-gradient(to right, #0056b3, #003f80);
  color: #fff;
  padding: 12px;
  text-align: left;
  font-weight: 600;
}

.bill-container td {
  padding: 10px;
  border: 1px solid #ccc;
  transition: background 0.3s ease;
}

.bill-container tr:hover td {
  background-color: #f5f9ff;
}

/* Input Fields */
.bill-container input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bill-container input:focus {
  border-color: #0056b3;
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
  outline: none;
}

/* Buttons */
button, .delete-btn, #download-pdf {
  background: linear-gradient(to right, #ffa500, #ff9100);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 15px;
  transition: background 0.3s;
}

button:hover, .delete-btn:hover, #download-pdf:hover {
  background: linear-gradient(to right, #ff9100, #e67e00);
}

/* Company & Customer Details */
.company-details, .customer-details {
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fdfdfd;
  border-radius: 8px;
  border-left: 5px solid #0056b3;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.company-details label, .customer-details label {
  font-weight: 600;
  display: block;
  margin-top: 10px;
  color: #0056b3;
}

.company-details h3, .customer-details h3 {
  color: #0056b3;
  margin-bottom: 10px;
}

/* Invoice Header */
.invoice-header {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 5px solid #ffa500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.invoice-header h3 {
  color: #0056b3;
  margin-bottom: 15px;
}

/* Layout Flex */
.invoice-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.invoice-field {
  flex: 1;
  min-width: 200px;
}

.invoice-field label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
  color: #003f80;
}

.invoice-field input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Totals Section */
.totals-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.total-box {
  flex: 1;
  padding: 15px;
  background: #f8f8f8;
  border: 2px solid #0056b3;
  border-radius: 10px;
  font-weight: bold;
  font-size: 18px;
  text-align: center;
  color: #0056b3;
  box-shadow: 0 0 8px rgba(0,0,0,0.03);
}

/* Delete Button */
.delete-btn {
  background-color: #ff4d4d !important;
  margin-left: 8px;
}
.delete-btn:hover {
  background-color: #cc0000 !important;
}



/* Invoice format and pdf*/

#invoice-area {
  background: #fff;
  padding: 30px;
  max-width: 800px;
  margin: auto;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.invoice-header h2 {
  color: #0056b3;
  margin-bottom: 10px;
}

.invoice-details, .from-to {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.invoice-table th, .invoice-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.invoice-table th {
  background: #0056b3;
  color: #fff;
}

.invoice-table tfoot td {
  font-weight: bold;
  background: #f4f4f4;
}
.invoice-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.company-info, .invoice-info {
  width: 48%;
}

.customer-info {
  border: 1px solid #eee;
  padding: 10px;
  margin-bottom: 20px;
  background: #f9f9f9;
}

  .invoice-a4 {
    font-family: Arial, sans-serif;
    font-size: 14px;
    width: 100%;
  }

  .invoice-a4 h2, .invoice-a4 h3 {
    color: #0056b3;
    margin-bottom: 10px;
  }

  .invoice-section {
    margin-bottom: 20px;
  }

  .invoice-table {
    width: 100%;
    border-collapse: collapse;
  }

  .invoice-table th,
  .invoice-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
  }

  .invoice-table th {
    background-color: #f2f2f2;
  }

  .totals {
    text-align: right;
    margin-top: 15px;
  }

  .totals p {
    margin: 5px 0;
  }

.invoice-wrapper {
  width: 800px;
  margin: auto;
  background: #fff;
  padding: 30px;
  font-family: 'Segoe UI', sans-serif;
  border: 1px solid #ccc;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-placeholder {
  width: 100px;
  height: 80px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.invoice-title {
  font-size: 36px;
  color: #0056b3;
  font-weight: bold;
}

.invoice-section-flex {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
}

.invoice-section-flex div {
  width: 30%;
}

.invoice-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  font-size: 14px;
}

.invoice-table th {
  background-color: #0056b3;
  color: white;
  padding: 8px;
}

.invoice-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.invoice-totals {
  margin-top: 20px;
  text-align: right;
  font-size: 16px;
}

.invoice-totals p {
  margin: 4px 0;
}

.grand-total {
  font-weight: bold;
  color: #ffa500;
  font-size: 18px;
}

#invoice-preview {
  width: 794px;
  min-height: 1123px;
  padding: 40px;
  margin-top: 20px;
  background: white;
  color: #000;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
}





/* Ensure all elements are visible in PDF */
#invoice-preview-content, #invoice-preview-content * {
  visibility: visible !important;
}

/* Force black text for PDF */
#invoice-preview-content {
  color: #000 !important;
  background-color: #fff !important;
}

/* Improve table borders in PDF */
.invoice-preview-table, .invoice-preview-table th, 
.invoice-preview-table td {
  border: 1px solid #000 !important;
  border-collapse: collapse !important;
}/* End custom CSS */