/*
 * ============================================================================
 * Copyright (c) 2026 ATH SOLUTIONS (PTY) LTD. All rights reserved.
 * KwaZulu-Natal, Republic of South Africa.
 * ============================================================================
 *
 * @BEGIN Developer Log Header Block
 * @FILENAME: table.css
 * @TITLE: PATHWRITE
 * @DESCRIPTION: Data table component - wrapper, toolbar, header/body cells, pagination.
 * @AUTHOR: Ary van der Pijl
 * @COMPANY: ATH SOLUTIONS (PTY) LTD
 * @WEBSITE: https://www.ath.solutions/
 * @EMAIL: info@ath.solutions
 * @COPYRIGHT: All Rights Reserved
 * @LICENSE: ATH SOLUTIONS - PROPRIETARY SOFTWARE LICENCE AGREEMENT (https://www.ath.solutions/documents/ath_solutions_software_licence_agreement.pdf)
 *
 * BEGIN CHANGELOG
 * @IMPORTANT NOTICE: Developers working on these files MUST update and maintain the Developers Change Log, failure to do is not an option:
 * !==================================================================================================================================================================
 * VERSION 1.0.2
 * - File Modified | Ary van der Pijl | 2026-08-18 | Gap Analysis follow-up (REQ-GAP-001 Section 6, "Concurrent session monitoring"): added .table-col-220 - replaces a style="max-width:220px" (hard-constraint violation) on the new admin Sessions page's device/user-agent column. |
 * VERSION 1.0.1
 * - File Modified | Ary van der Pijl | 2026-08-15 | Added .table-filter-search/.table-filter-select - reusable replacement for the inline style="max-width:..." (hard-constraint violation) found on table toolbar search/filter inputs across subscriber and admin pages during the multi-language retrofit. Also added .table-filter-date (max-width:150px) for the date-range filter inputs on admin/orders.php, .table-col-35/.table-col-120 for the column-width style="width:..." attributes on admin/system-config.php, .table-filter-select-wide (max-width:200px) for the wider page-select on admin/canvas-viewer.php, and .table-filter-min-md/-lg (min-width:160px/220px) for author/templates.php's filter bar (min-width, not max-width, since that bar's inputs need to grow with the flex layout rather than cap out). |
 * VERSION 1.0.0
 * + File Created | Ary van der Pijl | 2026-08-06 | Extracted from main.css as part of the Phase 17 CSS architecture split (9-file hierarchy per STD-E). |
 * ==================================================================================================================================================================!
 * END CHANGELOG
 */

/* ─── Table ──────────────────────────────────────────────────────────────── */

.table-filter-search {
  max-width: 280px;
}

.table-filter-select {
  max-width: 160px;
}

.table-filter-date {
  max-width: 150px;
}

.table-col-35 {
  width: 35%;
}

.table-col-120 {
  width: 120px;
}

.table-col-220 {
  max-width: 220px;
}

.table-filter-select-wide {
  max-width: 200px;
}

.table-filter-min-md {
  min-width: 160px;
}

.table-filter-min-lg {
  min-width: 220px;
}

.table-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.table-toolbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.table-toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.table {
  margin: 0;
}

.table th {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
}

.table td {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: var(--color-surface-2);
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.table-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

