/**
 * Agrico-M — responsive product list tables (admin list pages).
 * Admin layout uses admin.css (TailAdmin); do not rely on Tailwind breakpoints in PHP thClass/tdClass.
 * Hide .agrico-table-desktop-only columns below 768px. Hide lower-priority
 * .agrico-table-wide-only columns until the admin content has a full wide desktop.
 *
 * @see docs/guides/ADMIN_RESPONSIVE_TABLES.md
 * @see .cursor/rules/admin-responsive-tables.mdc
 */
@media (max-width: 767.98px) {
  th.agrico-table-desktop-only,
  td.agrico-table-desktop-only {
    display: none !important;
  }

  .admin-profile-audit-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .admin-profile-audit-table th,
  .admin-profile-audit-table td {
    white-space: normal;
  }

  .admin-profile-audit-table th:nth-child(1),
  .admin-profile-audit-table td:nth-child(1) {
    width: 31%;
  }

  .admin-profile-audit-table th:nth-child(2),
  .admin-profile-audit-table td:nth-child(2) {
    width: 24%;
  }

  .admin-profile-audit-table th:nth-child(3),
  .admin-profile-audit-table td:nth-child(3) {
    width: 45%;
  }
}

@media (max-width: 1439.98px) {
  th.agrico-table-wide-only,
  td.agrico-table-wide-only {
    display: none !important;
  }

  .admin-table-head-cell,
  .admin-table-cell {
    padding-left: .75rem;
    padding-right: .75rem;
  }
}

.admin-table-action-head,
.admin-table-action-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fffdf9;
  box-shadow: -10px 0 16px -16px rgba(28, 25, 23, .55);
}

.admin-table-action-head {
  z-index: 3;
  background: #faf8f3;
}

tbody tr:hover .admin-table-action-cell {
  background: #fffaf5;
}
