main.container {
  max-width: 1300px;
}

.products-table {
  min-width: 1080px;
}

.col-slug {
  width: 260px;
}

.col-card-count {
  width: 260px;
}

.col-sage {
  width: 180px;
}

.col-actions {
  width: 220px;
}

.filters-inline {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.filters-inline .field {
  min-width: 320px;
}

#createProductModal .modal-body .field + .field,
#editProductModal .modal-body .field + .field {
  margin-top: 14px;
}

.products-table .row-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.products-table .row-actions .btn {
  margin: 0 !important;
  width: auto;
  justify-content: center;
  white-space: nowrap;
}

.products-table .btn.danger,
#deleteProductModal .btn.danger {
  background: rgba(255,77,77,0.12);
  border-color: rgba(255,77,77,0.40);
}

.products-table .btn.danger:hover:not(:disabled),
#deleteProductModal .btn.danger:hover:not(:disabled) {
  background: rgba(255,77,77,0.20);
  border-color: rgba(255,77,77,0.68);
}

.delete-product-modal {
  width: min(560px, 96vw);
}

.delete-product-text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

.delete-product-warning {
  padding: 14px 16px;
  border: 1px solid rgba(255,77,77,0.34);
  border-radius: 16px;
  background: rgba(255,77,77,0.09);
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
}

@media (max-width: 720px) {
  main.container {
    width: 100%;
    max-width: none;
    padding: 12px 10px 22px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .header-actions {
    display: grid;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .header-actions .btn {
    width: 100%;
  }

  .filters-inline,
  .filters-inline .field {
    width: 100%;
    min-width: 0;
  }

  .filters-inline input {
    width: 100%;
  }

  .products-table {
    min-width: 900px;
  }

  .products-table .row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .products-table .row-actions .btn {
    width: 100%;
  }
}