/* Invoice Modal Styles */
.invoice-modal-content {
  /* padding: 20px; */
  max-height: 80vh;
}
.price-selector-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.price-selector-modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  max-height: 90%;
  overflow: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close-price-selector-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-price-selector-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}
.invoice-modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}

.download-invoice-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.download-invoice-btn:hover {
  background: #0056b3;
}

.close-invoice-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.close-invoice-btn:hover {
  background: #545b62;
}

/* Resize Icon Styles */
.resize-icon {
  width: 120px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.LetterHeadContainer-Main {
  /* background-color: #e5e5e5; */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* padding: 40px 20px; */
}

/* LetterHead Main Container */
.LetterHeadContainer {
  width: 210mm;
  min-height: 100vh;
  /* height: 297mm; */
  background-color: #ffffff;
  font-family: Arial, sans-serif !important;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* LetterHead Header Section */
.LetterHeadHeader {
  padding: 30px 40px 0px 40px;
  display: flex;
}
/* ........................................invoice */
.invoice-header {
  display: flex;
  justify-content: end;
  align-items: flex-start;
  width: 60%;
  padding-bottom: 16px;
}
.invoice-header-main-leftside {
  width: 40%;
}

.invoice-header-left {
  flex: 1;
}

.invoice-title {
  text-align: right;
  font-family: "Acumin Pro Bold" !important;
  color: #24a9e1;
  font-size: 28px;
  /* font-weight: bold; */
  margin-bottom: 20px;
}

.invoice-info {
  text-align: right;
  font-family: "Acumin Pro Medium" !important;
  font-size: 15px;
  color: #231f20;
  line-height: 1.6;
}

.invoice-business-info {
  background-color: #f7f7f7;
  padding: 10px 0px;
  padding-left: 30px;
  padding-right: 160px;

  line-height: 1.2;
}

.invoice-business-name {
  font-family: "Acumin Pro" !important;
  font-weight: bold;

  color: #231f20;
  font-size: 15px;
}
.invoice-business-points {
  font-family: "Acumin Pro" !important;

  color: #231f20;
  font-size: 14.666px;
}
/* .......................................invoice */

/* LetterHead Logo */
.LetterHeadLogo {
  /* width: 140px; */
  height: auto;
}

/* LetterHead Logo Image */
.LetterHeadLogoImage {
  width: 100%;
  height: auto;
  display: block;
}

/* LetterHead Tagline */
.LetterHeadTagline {
  font-size: 11px;
  color: #000000;
  margin-top: 5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* LetterHead Content Area */
.LetterHeadContent {
  padding: 0 40px;
  min-height: 850px;
}

/* LetterHead Footer */
.LetterHeadFooter {
  /* position: absolute; */
  bottom: 0;
  width: 100%;
}

/* LetterHead Footer Info */
.LetterHeadFooterInfo {
  display: flex;
  justify-content: end;
  padding: 20px 50px 1px 50px;
  gap: 25px;
}

/* LetterHead Footer Item */
.LetterHeadFooterItem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: right;
}

/* LetterHead Footer Icon Box */
.LetterHeadFooterIconBox {
  width: 32px;
  height: 32px;
  background-color: #2c3e50;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* LetterHead Footer Icon */
.LetterHeadFooterIcon {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

/* LetterHead Footer Text Container */
.LetterHeadFooterTextContainer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
  font-size: 12px;
  color: gray;
  font-weight: 500;
}

/* LetterHead Footer Text */
.LetterHeadFooterText {
  line-height: 1.3;
}

/* LetterHead Footer Label */
.LetterHeadFooterLabel {
  text-align: left;
}

.LetterHeadColorStrip {
  display: flex;
  align-items: flex-end; /* yeh ensure karega ke sab blocks neeche align hon */
  height: 30px; /* overall container height */
  overflow: visible;
}

.LetterHeadColorBlock {
  position: relative;
}

/* LetterHead Color Cyan (first - sabse chhoti height) */
.LetterHeadColorCyan {
  width: 18%;
  background-color: #28a9df;
  height: 18px; /* sabse chhoti */
}

.LetterHeadColorCyan::after {
  content: "";
  position: absolute;
  top: 0;
  right: -15px;
  width: 30px;
  height: 98%;
  background-color: inherit;
  transform: skewX(-35deg);
}

/* LetterHead Color Red (thori zyada height) */
.LetterHeadColorRed {
  margin-left: 24px;
  width: 20%;
  transform: skewX(-35deg);
  background-color: #eb2028;
  height: 23px; /* cyan se zyada */
}

/* LetterHead Color Navy (aur zyada height) */
.LetterHeadColorNavy {
  margin-left: 7px;
  margin-right: 7px;

  width: 22%;
  background-color: #202c39;
  transform: skewX(-35deg);
  height: 23px; /* red se zyada */
}

/* LetterHead Color Light Blue (same as navy ya thori kam) */
.LetterHeadColorLightBlue {
  width: 22%;
  transform: skewX(-35deg);
  background-color: #28a9df;
  margin-right: 24px;
  height: 23px; /* navy ke barabar ya thori kam */
}

/* LetterHead Color Dark Red (last - sabse zyada height) */
.LetterHeadColorDarkRed {
  width: 18%;
  background-color: #eb2028;
  height: 30px; /* sabse lambi */
}

.LetterHeadColorDarkRed::after {
  content: "";
  position: absolute;
  top: 0;
  left: -15px;
  width: 30px;
  height: 100%;
  background-color: inherit;
  transform: skewX(-35deg);
}
/* ...............................................................invoice table container ........................................... */

.invoice-section-title {
  background-color: #e8f4f8;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 0;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table thead {
  background-color: #28a9df;
  color: white;
}

.invoice-table thead th {
  padding: 8px 15px;
  text-align: left;
  font-size: 13px;
  font-weight: bold;
}

.invoice-table thead th:first-child {
  width: 40px;
}

.invoice-table thead th:nth-child(2) {
  width: auto;
}

.invoice-table thead th:nth-child(3) {
  width: 120px;
  text-align: end;
  padding-right: 0px;
}

.invoice-table thead th:nth-child(4) {
  width: 80px;
  text-align: right;
  padding-right: 0px;
  padding-left: 3px;
}

.invoice-table thead th:nth-child(5) {
  width: 100px;
  text-align: right;
  padding-left: 3px;
}

.invoice-table tbody td {
  padding-left: 5px;
  padding-right: 15px;
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: 13px;
  color: #333;

  vertical-align: top;
}

.invoice-table tbody td:first-child {
  font-weight: bold;
}

.invoice-table tbody td:nth-child(3) {
  text-align: center;
}

.invoice-table tbody td:nth-child(4),
.invoice-table tbody td:nth-child(5) {
  text-align: right;
}

.invoice-item-description {
  margin-bottom: 3px;
  font-size: 15px;
  text-transform: uppercase;
}

.invoice-item-detail {
  /* font-family: 'Acumin Pro'; */
  padding-bottom: 5px;
  font-size: 14px;
  color: #231f20;
  line-height: 1.5;
}

.invoice-coupon-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
  margin-top: 8px;
}

.invoice-coupon-text {
  font-size: 14px;
  font-weight: bold;
  color: #231f20;
  margin-bottom: 3px;
}

.invoice-coupon-code {
  font-size: 14px;
  color: #231f20;
}

.invoice-coupon-code strong {
  font-weight: bold;
}

.invoice-net-ht-row {
  /* background-color: #bce5f2; */
}

.invoice-net-ht-row td {
  padding: 10px 15px;
  font-weight: bold;
  font-size: 13px;
}

.invoice-net-ht-row td:first-child {
  text-align: right;
}

.invoice-net-ht-row td:last-child {
  text-align: right;
}

.invoice-totals-section {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  width: 300px;
  padding: 10px 15px;
  font-size: 13px;
  /* border-bottom: 1px solid #e0e0e0; */
}

.invoice-total-row.invoice-total-net-ht {
  background-color: #bce5f2;
  font-weight: bold;
}

.invoice-total-row.invoice-vat-row {
  background-color: white;
  justify-content: end;
}

.invoice-total-row.invoice-total-ttc {
  background-color: #28a9df;
  color: white;
  font-weight: bold;
  border-bottom: none;
}

.invoice-total-label {
  text-align: left;
}

.invoice-total-amount {
  text-align: right;
  min-width: 80px;
}

.invoice-payment-section {
  width: 350px;
  margin-top: 40px;
  padding: 0px 20px;
  padding-top: 25px;
  padding-bottom: 60px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 13px;
  color: #333;
}

.invoice-negative-amount {
  color: #333;
}

/* New styles for coupon row alignment */
.invoice-coupon-row td {
  padding-top: 0px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}
/* Add the existing invoice styles from your PDF generator */
/* Copy all the CSS from createInvoiceHTML function here */
