@media (max-width: 820px) {
  .table-wrap {
    overflow: visible;
  }

  .admin-table {
    display: block;
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .admin-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
  }

  .admin-table tr:hover {
    background: var(--surface-2);
  }

  .admin-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .admin-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted-2);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.06em;
  }

  .admin-table td:nth-child(1)::before {
    display: none;
  }

  .orders-table tr {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orders-table td:nth-child(1),
  .orders-table td:nth-child(3),
  .orders-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .orders-table td:nth-child(2) {
    grid-column: span 2;
  }

  .orders-table td:nth-child(7) {
    margin-top: 2px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .orders-table td:nth-child(7)::before {
    display: none;
  }

  .orders-table td:nth-child(7) .table-actions {
    justify-content: flex-end;
  }

  .products-table tr {
    grid-template-columns: 1fr 1fr;
  }

  .products-table td:nth-child(1),
  .products-table td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .products-table td:nth-child(7) {
    margin-top: 2px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .products-table td:nth-child(7)::before {
    display: none;
  }

  .products-table td:nth-child(7) .table-actions {
    justify-content: flex-end;
  }

  .table-product-cell {
    min-width: 0;
  }

  .table-product-cell img {
    width: 46px;
    height: 46px;
  }

  .table-amount,
  .table-time {
    font-size: 11px;
  }

  .admin-toolbar {
    padding-bottom: 10px;
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .admin-nav a {
    justify-content: center;
    padding: 0 4px;
    font-size: 10px;
    gap: 6px;
  }

  .admin-nav a .icon {
    width: 16px;
    height: 16px;
  }
}
