.swatch {
  display: inline-block;
  flex-shrink: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body,
.login-screen {
  min-height: 100dvh;
}

#cameraVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#closeMenu {
  display: none;
}

td .swatch {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
  border: 0;
  box-shadow: 0 0 0 1px rgba(23, 60, 50, 0.18);
}

@media (max-width: 760px) {
  main {
    padding-bottom: calc(45px + env(safe-area-inset-bottom));
  }

  aside {
    padding-top: calc(27px + env(safe-area-inset-top));
    padding-bottom: calc(27px + env(safe-area-inset-bottom));
  }

  .no-results {
    display: block !important;
    padding: 22px 12px;
    color: #78857f;
    text-align: center;
  }

  .no-results td {
    display: block;
  }

  main,
  header,
  .view,
  .sale-layout,
  .sale-main,
  .scan-hero,
  .recent,
  .cart,
  .scan-input,
  #cameraBox,
  .camera-frame {
    min-width: 0;
    max-width: 100%;
  }

  .scan-hero,
  .recent,
  .cart {
    width: 100%;
  }

  .scan-input input {
    min-width: 0;
    width: 100%;
  }

  .scan-input button {
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  .camera-frame {
    width: 100%;
    height: 220px;
    overflow: hidden;
  }

  .camera-frame p {
    position: relative;
    z-index: 2;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9;
    background: rgba(8, 28, 23, 0.42);
  }

  #closeMenu {
    display: grid;
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 28px;
    line-height: 1;
  }

  #quickScan {
    font-size: 11px !important;
    padding: 10px 12px;
    white-space: nowrap;
  }

  #quickScan::after {
    content: none !important;
  }

  #newModel {
    width: 40px;
  }

  .table-wrap {
    overflow-x: hidden;
  }

  .table-wrap table,
  .table-wrap tbody {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr) 34px 48px 34px;
    align-items: center;
    width: 100%;
    border-top: 1px solid #eff1ec;
  }

  .table-wrap tbody td {
    min-width: 0;
    padding: 12px 3px;
    border: 0;
  }

  .table-wrap tbody td:first-child {
    padding-left: 10px;
  }

  .table-wrap tbody td:nth-child(2) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .table-wrap tbody td:last-child {
    padding-right: 6px;
    text-align: right;
  }

  .table-wrap .product {
    gap: 6px;
  }

  .table-wrap .thumb {
    flex: 0 0 30px;
    width: 30px;
    height: 34px;
    font-size: 14px;
  }

  .table-wrap .product > div {
    min-width: 0;
  }

  .table-wrap .product b,
  .table-wrap .product small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .table-wrap .product b {
    font-size: 11px;
  }

  .table-wrap .product small {
    font-size: 8px;
  }

  .table-wrap .mini {
    width: 30px;
    height: 30px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    border-radius: 50%;
  }

  .table-wrap .mini::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
  }
}
