@font-face {
  font-family: "Cairo Label";
  src: url("/fonts/cairo-arabic-400.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Cairo Label";
  src: url("/fonts/cairo-arabic-700.woff2") format("woff2");
  font-weight: 700;
}

@page {
  size: 4in 6in;
  margin: 0;
}

@media print {
  html,
  body {
    width: 4in;
    height: 6in;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background: #fff !important;
  }

  .awb-label {
    break-inside: avoid;
    box-shadow: none !important;
  }

  .awb-screen {
    box-sizing: border-box;
    width: 4in;
    height: 6in;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
}

.awb-screen {
  min-height: 100vh;
  padding: 16px;
  background: #e2e8f0;
}

.awb-label {
  box-sizing: border-box;
  width: 4in;
  height: 6in;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-family: "Cairo Label", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 8px 30px rgb(15 23 42 / 20%);
}

.awb-label * {
  box-sizing: border-box;
}

.awb-header,
.awb-row,
.awb-address,
.awb-items,
.awb-footer {
  border-bottom: 1.5px solid #000;
  padding: 7px 9px;
}

.awb-header {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.awb-barcode {
  height: 102px;
  padding: 5px 8px;
  text-align: center;
  direction: ltr;
}

.awb-barcode svg {
  width: 100%;
  height: 92px;
}

.awb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.awb-grid > div {
  min-height: 42px;
  border-top: 1.5px solid #000;
  border-inline-end: 1.5px solid #000;
  padding: 5px 8px;
}

.awb-grid > div:nth-child(2n) {
  border-inline-end: 0;
}

.awb-label strong {
  display: block;
  font-size: 9px;
}

.awb-cod {
  padding: 8px;
  border-bottom: 2px solid #000;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.awb-footer {
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
}
