*,
::after,
::before {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  margin: 0;
  color: #374151;
  background-color: #f5f7fa;
  line-height: 1.5;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  min-height: 100vh;
}

a {
  font-weight: 700;
  text-decoration: none !important;
  color: #0f4fab;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

h3 {
  font-size: 20px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  border: none;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in;
}

.btn.btn--primary {
  background-color: #0f4fab;
  color: #fff;
}

.btn.btn--primary:hover {
  background-color: rgb(35 56 118);
}

th,
td {
  padding: 0;
}

.table {
  font-size: 14px;
  border-collapse: collapse;
}

.table th {
  background-color: #dadfe64a;
  padding: 12px 16px;
  text-align: left;
}

.table td:first-child,
.table th:first-child {
  border-radius: 12px 0 0 12px;
}

.table td:last-child,
.table th:last-child {
  border-radius: 0 12px 12px 0;
}

.table td {
  color: #6b7280;
  padding: 12px 16px;
}

.table td b {
  font-weight: 800;
  color: #374151;
}
.top-nav {
  background-color: #fff;
  padding: 12px 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.14);
  position: sticky;
  top: 0;
  z-index: 10;
}

.invoice {
  border: 2px solid #ececec;
  /* min-height: calc(100vh - 112px); */
  width: 800px;
  margin: 24px auto;
  padding: 32px 32px 32px;
  -webkit-print-color-adjust: exact;
  border-radius: 8px;
  background: url({{.baseURL}}/static/images/paid-stamp-bg.png) no-repeat center 50% #fff;
  ;
}

.invoice .letter-head .logo {
  display: flex;
}

.invoice .letter-head .logo img {
  width: auto;
  height: 48px;
}

.invoice .letter-head .title {
  text-align: right;
}

.invoice .letter-head .title h3 {
  color: #0f4fab;
  line-height: 24px;
  font-weight: 1000;
}

.invoice .letter-head .title span {
  font-size: 14px;
  color: #6b7280;
}

.invoice .letter-head .info {
  vertical-align: baseline;
}

.invoice .letter-head .info td {
  padding: 40px 0;
}

.invoice .letter-head .info td:not(:first-child) {
  padding-left: 16px;
}

.invoice .letter-head .info .row {
  display: flex;
  font-size: 14px;
}

.invoice .letter-head .info .row:not(:first-child) {
  margin-top: 12px;
}

.invoice .letter-head .info .label {
  color: #6b7280;
  width: 40%;
}

.invoice .letter-head .info .caption {
  display: flex;
  font-weight: 600;
}

.invoice .letter-head .info .caption::before {
  content: ":";
  display: inline;
  padding: 0 4px;
}

.invoice .notes {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 160px;
  background-color: #dadfe64a;
  padding: 16px;
  border-radius: 12px;
}

.invoice .notes .label {
  color: #6b7280;
}

.invoice .notes .caption {
  font-weight: 600;
  color: #374151;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  text-align: justify;
  text-justify: distribute;
  hyphens: auto;
  -webkit-hyphens: auto;
  word-spacing: -2px;
  word-break: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice .signature {
  color: #374151;
}

.invoice .signature .barcode {
  display: flex;
  flex-direction: column;
  width: 120px;
}

.invoice .signature .barcode svg {
  margin: 4px 0;
  width: 80px;
  height: auto;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.14);
  border-radius: 4px;
}

.no-break {
  page-break-inside: avoid;
}

@media screen and (min-width: 768px) {
  .invoice {
    width: 800px;
  }
}

@media print {
  @page {
    size: A4;
    /* Set to A4 size */
    margin: 6mm;
  }

  body {
    background-color: unset;
    margin: 0;
    /* Adjust margins as needed */
  }

  .top-nav {
    display: none;
  }

  .invoice {
    visibility: visible;
    /* Show only the invoice */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 10mm;
    /* Adjust margins as needed */
    box-shadow: none;
    border: none;
  }
}