.printable {
  background: white;
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;

  .label {
    border: 1px solid black;
    border-radius: 10px;
    padding: 1rem;
    max-width: 500px;
    margin: auto;
  }

  .logo{
    height: 75px;
    text-align: center;
    img{
      height: 100%;
      width: auto;
    }
  }

  .barcode {
    display: grid;
    justify-content: center;
    text-align: center;
    width: 100%;
    img{
      width: 100%;
      height: auto;
    }
  }

  .details-table{
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 1rem;

    div{
      border-right: 2px solid #eee;
      padding-right: 1rem;
      &:last-child{
        border-right: none;
        padding-right: none;
      }
    }
  }

  table {
    display: table;
    thead {
      display: table-header-group;
    }
    tbody {
      display: table-row-group;
    }
    tr {
      display: table-row;
      border: none;
      background: white;
    }
    tr:nth-of-type(2n) {
      background: rgba(0, 0, 0, 0.1);
    }
    td:before {
      display: none;
    }
  }

  .footer{
    text-align: center;
    position: absolute;
    bottom: 1rem;
    width: 100%;
    font-size: .8rem;
    font-weight: bold;
    border-bottom: 2px solid black;
  }

  &:has(.packing-label){
    place-content: unset;
  }

  .packing-label{
    min-width: 800px;
    max-width: 95%;
    padding-inline: 1rem;
    
    .logo{
      text-align: left;
      height: 75px;
    }

    .label-header {
      display: flex;
      justify-content: space-between;
      width: 100%;
      gap: 1rem;
      align-items: center;

      h3{
        width: fit-content;
      }

      .barcode{
        justify-content: right;
        width: fit-content;
        img{
          height: 70px;
          width: auto;
        }
      }
    }
    
  }
}

@media print {
  aside, header, footer, main, .no-print, #scanButton {
    display: none !important;
  }

  .printable {
    display: grid;
  }
}