.sale-items-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 22px 12px;
  overflow: hidden;
}

.sale-items-head {
  align-items: center;
  background: var(--blue-050);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 9px 14px;
}

.sale-items-head > div {
  align-items: baseline;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.sale-items-head h2 {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.sale-items-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sale-items-head > strong {
  color: var(--blue-800);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.sale-items-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.sale-items-table th {
  background: #f8faff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 9px 10px;
  text-align: left;
  text-transform: uppercase;
}

.sale-items-table th:nth-child(1) { width: 26%; }
.sale-items-table th:nth-child(2) { width: 9%; }
.sale-items-table th:nth-child(3) { width: 18%; }
.sale-items-table th:nth-child(4) { width: 20%; }
.sale-items-table th:nth-child(5) { width: 13%; }
.sale-items-table th:nth-child(6) { width: 14%; }

.sale-items-table th:not(:last-child),
.sale-items-table td:not(:last-child) {
  border-right: 1px solid var(--line-soft);
}

.sale-items-table td {
  border-top: 1px solid var(--line);
  font-size: 13px;
  padding: 8px 10px;
  vertical-align: middle;
}

.sale-items-table tbody tr {
  background: #fff;
  transition: background var(--speed);
}

.sale-items-table tbody tr:hover { background: #f8fbff; }

.sale-items-table tbody tr.is-latest {
  background: #e8f3ff;
  box-shadow: inset 4px 0 var(--blue-600);
}

.sale-item-name strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sale-item-unit {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sale-item-barcode {
  color: var(--blue-800);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px !important;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sale-item-price,
.sale-item-total {
  text-align: right;
  white-space: nowrap;
}

.sale-item-price {
  color: var(--muted);
  font-weight: 800;
}

.sale-item-total strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.sale-table-qty {
  margin: auto;
  min-height: 32px;
  width: max-content;
}

.sale-table-qty .icon-btn {
  height: 27px;
  width: 28px;
}

.sale-table-qty span {
  font-size: 13px;
  min-width: 25px;
}

.sale-items-mobile {
  border-radius: 0;
  border-width: 0 0 1px;
  display: none;
  margin: 0;
}

.sale-items-mobile .sale-items-head { display: none; }

@media (max-width: 920px) and (min-width: 761px) {
  .sale-items-table th,
  .sale-items-table td {
    padding-left: 7px;
    padding-right: 7px;
  }

  .sale-items-table th:nth-child(1) { width: 24%; }
  .sale-items-table th:nth-child(2) { width: 9%; }
  .sale-items-table th:nth-child(3) { width: 22%; }
  .sale-items-table th:nth-child(4) { width: 19%; }
  .sale-items-table th:nth-child(5) { width: 13%; }
  .sale-items-table th:nth-child(6) { width: 13%; }
}

@media (max-width: 760px) {
  .sale-items-desktop { display: none; }
  .sale-items-mobile { display: block; }

  .sale-items-mobile .sale-items-table th:nth-child(2),
  .sale-items-mobile .sale-items-table td:nth-child(2),
  .sale-items-mobile .sale-items-table th:nth-child(4),
  .sale-items-mobile .sale-items-table td:nth-child(4),
  .sale-items-mobile .sale-items-table th:nth-child(5),
  .sale-items-mobile .sale-items-table td:nth-child(5) {
    display: none;
  }

  .sale-items-mobile .sale-items-table th:nth-child(1) { width: 42%; }
  .sale-items-mobile .sale-items-table th:nth-child(3) { width: 34%; }
  .sale-items-mobile .sale-items-table th:nth-child(6) { width: 24%; }

  .sale-items-mobile .sale-items-table th,
  .sale-items-mobile .sale-items-table td {
    padding: 8px 7px;
  }

  .sale-items-mobile .sale-item-name strong { font-size: 13px; }
}

@media (max-width: 680px) {
  .sale-items-panel.sale-items-desktop {
    margin-left: 14px;
    margin-right: 14px;
  }
}
