* {
  margin: 0;
  padding: 0;
}

body {
  /* font-family: arial, Arial, Helvetica, sans-serif; */
  font-family: "Poppins", serif;
}

.container {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 600px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Style which class are written in js file  */
.active-payment-status-cod {
  color: white;
  background-color: #696969;
  border-radius: 4px;
  padding: 5px 20px; /* Padding Y: 5px, Padding X: 20px */
  font-weight: 600;
}

.active-payment-status {
  color: white;
  border-radius: 4px;
  padding: 5px 25px; /* Padding Y: 5px, Padding X: 20px */
  font-weight: 600;
  background-color: #7dcc04;
}

.space-between {
  display: flex;
  justify-content: space-between;
  background-color: #e2f1fb;
  padding: 0.8rem;
  border-radius: 20px;
}

.space-between1 {
  display: flex;
  justify-content: space-between;
  /* background-color: #e2f1fb; */
  padding: 1rem;
}

.inv-date {
  margin-top: 3%;
  display: flex;
  justify-content: space-between;
  /* background-color: #f8f8f8; */
  background-color: #eeeeee;
  padding: 1rem;
  border-radius: 20px;
}

.user-add {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: end;
}

.inv-details {
  /* width: 40%; */
  display: flex;
  flex-direction: column;
  align-items: start;
}

.pro-invoice {
  margin-top: 2%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  font-weight: 600;
}

.pro-invoice a {
  font-size: medium;
  background-color: #e2f1fb;
  padding: 8px 18px;
  border-radius: 50px;
  text-decoration: none;
  color: #1d2332;
}

.justify-flex-start {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.logo {
  width: 9rem;
  height: 9rem;
}

#companyDetails {
  display: flex;
  flex-direction: column;
  text-align: right;
}

#sayacareMessage {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-self: flex-start;
}

#sayacareMessage .text {
  font-size: larger;
  font-weight: bold;
}

#sayacareLogo,
#janSwasthyaLogo {
  border: none;
  background-color: transparent;
}

#janSwasthyaLogo {
  align-self: flex-end;
}

.com-name {
  margin-top: 8px;
  font-size: larger;
  font-weight: 400;
  color: #1d2332;
}

.address {
  margin-top: 8px;
  color: #1d2332;
  font-weight: 400;
}

.order-status {
  font-weight: 600;
  font-size: 1.2rem;
  color: #f37323;
  line-height: 1.2rem;
}

.invoice-number-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.invoice-no-text {
  color: #1d2331;
  font-size: 1.4rem;
  font-weight: 600;
}

.invoice-title {
  color: black;
  font-size: 1.5rem;
  font-weight: 500;
  /* margin-top: -5rem; */
}

.payment-stat {
  width: 20%;
  display: flex;
  justify-content: end;
}

.inv-generate {
  color: #676767;
  font-size: 1rem;
  font-weight: 400;
}
.text-align-right {
  text-align: right;
}

.text-align-left {
  text-align: left;
}

.text-align-center {
  text-align: left;
  font-weight: 500;
  color: #1d2331;
  font-size: medium;
}

.discount-text {
  color: #23ae4f;
}

table {
  border-spacing: 0;
}

/* Stling for table daata , the text inside table */

.inv-data-table {
  border-collapse: collapse; /* Ensures borders align properly */
  width: 100%; /* Optional: Makes table responsive */
}

.inv-data-table td {
  padding: 0.63rem;
  font-size: 0.9rem;
  text-align: center;
  overflow-wrap: break-word; /* Prevents text overlap */
  font-weight: 500;
  color: #1d2331;
  /* border-bottom: 2px solid #dfdddd; /* Consistent bottom border */
  /* vertical-align: top; Align content to the top of the cell */
}

.tested-text {
  text-align: center;
  font-size: larger;
  font-style: italic;
  gap: 20px;
}

#invoice-table .columns td {
  /* background-color: rgb(119, 117, 117); */
  background-color: #f6f6f6;
}

.inv-data-table tr:nth-child(odd) {
  /* background-color: rgb(234, 234, 234); */
  background-color: #eeeeee;
}

.inv-data-table tr:first-child {
  /* background-color: rgb(253, 190, 63); */
  background-color: white;
}

.inv-data-table tr {
  /* background-color: rgb(253, 190, 63); */
  background-color: white;
}

.inv-data-table tr {
  /* border-bottom: 5px solid green; Light gray border */
  border-bottom: 2px solid #dfdddd;
}

.inv-data-table tr:first-child td {
  color: #676767;
  font-weight: 500;
  border: none;
}

#cust-gst-tr {
  display: none;
  font-weight: 600;
}

#invoice {
  padding-top: 2rem;
}

.inv-for {
  color: black;
  font-size: larger;
  margin-bottom: 10px;
  font-weight: 600;
}

.add-text {
  font: 200;
}

.grid-2-auto {
  width: 40%;
  display: grid;
  grid-template-columns: auto auto;
}

.amount-text {
  grid-column: 1 / -1; /* Span across both columns */
  text-align: center; /* Center-align the content */
  margin-top: 5px;
  padding: 10px;
  background-color: #e2f1fb; /* Optional: Add background color */
  border-radius: 10px;
  font-weight: 600;
  color: #1882c0;
}

.border-2 {
  padding-top: 10px;
  border-top: 2px solid #b5aeae;
}

/* .border-dashed-2 {
  padding: 10px;
  border-top: 2px dashed rgb(179, 171, 171);
} */

.payment-methods {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  /* padding-bottom: 10px; */
  /* border-bottom: 2px dashed rgb(179, 171, 171); */
}

#payment-status {
  font-weight: bold;
}

.total-btn {
  display: grid;
  grid-template-columns: auto auto;
}

.link-btn {
  width: 48%;
  margin: 8px;
  border-radius: 60px;
  border: 2px solid black;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pay-now {
  padding: 10px;
  color: black;
  font-weight: bold;
}

.icon {
  margin: 4px;
  height: 44px;
  color: black;
}

.gray-text {
  color: black;
}

#inv-for-name {
  text-transform: capitalize;
}

.download-btn {
  margin-top: 5rem;
  border: none;
  outline: none;
  font-size: 1.2rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #f27323;
  color: #fff;
  border-radius: 50px;
  padding: 15px 20px;
  cursor: pointer;
}

/* -------------------------------- hide pre data table inv-data-user */
#inv-data-user {
  display: none;
}

/* skeleton laoder ----------------------------- */
.mt-2 {
  margin-top: 12px !important;
}

.w-10 {
  width: 10%;
}

.w-20 {
  width: 20%;
}

.w-30 {
  width: 30%;
}

.w-40 {
  width: 40%;
}

.w-50 {
  width: 50%;
}

.w-60 {
  width: 60%;
}

.w-70 {
  width: 70%;
}

.w-80 {
  width: 80%;
}

.w-90 {
  width: 90%;
}

.w-100 {
  width: 100%;
}

.h-10 {
  height: 10px;
}

.h-20 {
  height: 20px;
}

.h-30 {
  height: 30px;
}

.h-40 {
  height: 40px;
}

.h-50 {
  height: 50px;
}

.skeleton-loader {
  margin-top: 0px;
  margin: 2px;
  border-radius: 2px;
  display: block;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 80%
    ),
    lightgray;
  background-repeat: repeat-y;
  background-size: 50px 500px;
  background-position: 0 0;
  animation: shine 1s infinite;
}

@keyframes shine {
  to {
    background-position: 100% 50%, /* move highlight to right */ 0 0;
  }
}

.bold-gray {
  font-weight: bold;
  color: rgba(167, 161, 161, 0.856);
}

/* -----------------------------------------loader  */
#error-popup {
  display: none;
}

.alert-msg {
  color: rgb(245, 236, 236);
  font-weight: bold;
}

.close-popup-btn {
  height: auto;
  width: 60px;
  font-size: larger;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: transparent;
  margin-left: 1rem;
}

.call-btn {
  margin: 10px;
  height: 20px !important;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  color: #127cf5;
  border: 2px solid #127cf5;
}

.loaderWrapper {
  margin: 10px;
  background-color: #fff;
  border-left: 6px solid #127cf5;
  width: auto !important;
  padding: 10px;
  box-shadow: 6px 6px 12px rgba(209, 209, 209, 0.7);
  border-radius: 2px;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.text-info {
  color: #727171;
}

.flexRow {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#label {
  margin-top: 4rem;
}

.inputs {
  font-size: medium;
  height: 20px;
  width: 500px;
  border: 0px;
}

.inputs:focus {
  outline: 0px;
}

h4,
h3 {
  color: rgba(0, 0, 0, 0.678);
}

#name4label,
#label4state {
  text-transform: capitalize;
}

.itemName {
  display: flex;
  gap: 0.2rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 600;
  color: #1d2331;
}

.comments {
  background-color: #eeeeee;
  margin-right: 10%;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: clamp(400px, 60%, 900px);
  position: relative; /* Make the parent element a positioning context */
  display: flex;
  flex-direction: column; /* Adjust text and image to align properly */
  overflow: hidden; /* Ensures image doesn't overflow */
  height: 320px; /* Increase the height of the container */
}

.comments1 {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-right: 10%;
  line-height: 1.2rem;
  width: clamp(300px, 80%, 700px);
  text-align: start;
  font-weight: 500;
  color: #676767;
  z-index: 2; /* Place the text above the image */
  font-size: 14px;
}

.comments-object {
  position: absolute; /* Position the image absolutely inside the parent */
  bottom: 10px; /* Move the image further down */
  right: 20px; /* Align to the right */
  z-index: 1; /* Place the image behind the text */
  width: 180px; /* Adjust size as needed */
  height: 200px;
  opacity: 0.9; /* Optional: Makes the image appear as a faint background */
}

.object-image {
  object-fit: fill;
  width: 100%;
  height: 100%;
}

/* -----------------------------------------pdf Container  */
#pdfContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  gap: 2rem 1rem;
  width: 100%;
  border-top: 3px solid #dfdddd;
  padding-top: 1%;
}

.pdfContainerHeading {
  color: #1c3c6b;
  font-size: 2.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  text-align: center;
}

.pdfViewerContainer {
  flex: 1;
  height: 640px;
  margin-top: 0.2rem;
  padding: 20px;
  border-radius: 10px;
  background-color: #e2f1fb;
}

.pdfContent {
  padding-top: 1rem;
}

.pdfContent p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.pdfContent p span {
  font-weight: 600;
}

.pdfContent a {
  margin-block: 1rem;
}

#notFound {
  background-color: #f8f8f8;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

#notFound p {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

/* Small screens media queries */
@media (max-width: 767px) {
  .pdfViewerContainer {
    height: 435px;
  }

  .table-footer {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .comments {
    margin-right: 0;
    margin-bottom: 2rem;
  }
}
