@font-face {
   font-family: "PrintFont";
   src: url("../fonts/CalSans-Regular.woff2") format("woff2");
   font-weight: normal;
   font-style: normal;
   font-display: swap;
}
@font-face {
   font-family: "PrintFont";
   src: url("../fonts/CalSans-Regular.woff2") format("woff2");
   font-weight: bold;
   font-style: normal;
   font-display: swap;
}
@font-face {
   font-family: "PrintFont";
   src: url("../fonts/CalSans-Regular.woff2") format("woff2");
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}

.printable .d-flex {
   display: flex !important;
   align-items: flex-start !important;
   gap: 6px !important;
}
.printable .justify-content-between {
   justify-content: space-between !important;
}
.printable .text-center {
   text-align: center !important;
}
.printable .text-end {
   text-align: right !important;
   white-space: nowrap !important;
   flex-shrink: 0 !important;
}
.printable h1 {
   font-family: "PrintFont", Arial, Helvetica, sans-serif !important;
   color: #000000 !important;
   letter-spacing: normal !important;
   font-size: calc(1.375rem + 1.5vw) !important;
   font-weight: 700 !important;
   line-height: 1.2 !important;
   margin-top: 0 !important;
   margin-bottom: 0.5rem !important;
}
@media (min-width: 1200px) {
   .printable h1 {
      font-size: 2.5rem !important;
   }
}

.printable,
.printable h6,
.printable p,
.printable div,
.printable span {
   font-family: "PrintFont", Arial, Helvetica, sans-serif !important;
   color: #000000 !important;
   height: auto !important;
   min-height: 0 !important;
   overflow: visible !important;
}

.printable {
   font-family: "PrintFont", Arial, Helvetica, sans-serif !important;
   color: #000000 !important;
   /* display: none; */
   width: 100%;
   height: auto;
   box-sizing: border-box;
   font-weight: bold;
   margin-top: 15px;
}
.print {
   padding: 20px;
}
.imageprint {
   display: none;
}
.viewprint {
   visibility: hidden;
   position: absolute;
   top: -9999px;
}
.alamat {
   margin-top: 5vh;
}
.alamat h6 {
   line-height: 1.2;
   font-size: 1.1rem;
   font-weight: bold;
}

.print p {
   font-size: 0.9rem;
}

.no-order {
   margin: 12px 0 !important;
}

.before-header *,
.header *,
.detail *,
.footer *,
.alamat *,
.footer-word * {
   margin: 0;
   line-height: 1.2;
   letter-spacing: 2px;
   font-size: 12px;
   word-break: break-word;
   font-weight: bold;
}

hr {
   /* border-top: dotted 2px; */
   margin: 2px 0;
   opacity: 0.5;
   border: none;
   height: 1px;
   background: #000;
   background: repeating-linear-gradient(
      90deg,
      #000,
      #000 6px,
      transparent 6px,
      transparent 12px
   );
}

@media print {
   @page {
      size: auto;
      margin: 0;
   }

   body {
      -webkit-print-color-adjust: exact; /* Untuk Chrome */
      print-color-adjust: exact; /* Untuk Firefox */
      text-rendering: optimizeLegibility; /* Meningkatkan kualitas teks */
      font-family: Arial, sans-serif; /* Ganti dengan font yang sesuai */
   }

   .printable {
      width: 100%;
      height: auto;
      margin: 0 auto;
      display: block; /* Pastikan elemen ini ditampilkan saat dicetak */
      break-inside: avoid; /* Menghindari pemisahan konten di dalam elemen ini */
      page-break-inside: avoid;
      padding-top: 0 !important; /* Menghilangkan padding atas jika ada */
   }

   .imageprint {
      display: flex !important;
      justify-content: center;
      margin: 0; /* Menghilangkan margin jika ada */
   }

   .viewprint {
      visibility: visible !important;
      position: static !important;
      display: block !important;
      margin: 0 auto !important; /* Center horizontally */
      width: 58mm !important; /* Ensure print size stays */
      box-sizing: border-box;
   }

   .no-print {
      display: none !important;
   }

   /* .printable {
       display: unset !important;
    } */
}
