/* components/tables.css — Data tables.
   Part of the split style.css. Keep the load order in includes/layout.php. */

.table-wrap { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }

table.data th, table.data td { text-align: left; padding: 5px 6px; border-bottom: 1px solid rgba(36,22,15,.08); vertical-align: top; }

table.data th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #6e5d52; }

.row-acts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  max-width: 230px;
  font-family: var(--sans);
}

.row-acts-status { margin: 0; }

.row-acts-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.row-acts-inline { display: inline-flex; margin: 0; }

.row-acts-delete {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0 1px;
  color: #6e5d52;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.row-acts-delete:hover { color: var(--maroon); }

table.data thead th {
  position: sticky;
  top: 0;
  background: #f8f1de;
  z-index: 1;
}

table.data tbody tr:hover td { background: rgba(248, 241, 222, .65); }

@media (max-width: 760px) {
    .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
