/* =====================================================================
   TABLES.CSS — Shared table styles for latest/ip/machine/office pages
   ===================================================================== */

.data-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.data-table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-board);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
.data-table .data-row { transition: background .12s; }
.data-table .data-row:hover { background: var(--bg-board); }
.data-table .data-row:last-child td { border-bottom: none; }

.data-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; line-height: 1.4; }
.data-table .mono { font-family: var(--font-mono); font-weight: 600; }
.data-table .small { font-size: 11px; }
.data-table a { color: var(--accent); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

.status-chip {
  display: inline-block;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--bg-board); color: var(--text);
}
.status-chip.status-done { background: rgba(22,163,74,.12); color: var(--ok); }
.status-chip.status-in_progress { background: rgba(217,119,6,.12); color: var(--warn); }
.status-chip.status-blocked { background: rgba(220,38,38,.12); color: var(--danger); }
.status-chip.status-todo, .status-chip.status-planned { background: rgba(37,99,235,.12); color: var(--accent); }
.status-chip.status-cancelled { background: rgba(113,113,122,.12); color: var(--text-mute); }
.status-chip.status-resolved, .status-chip.status-closed { background: rgba(22,163,74,.12); color: var(--ok); }
.status-chip.status-open { background: rgba(217,119,6,.12); color: var(--warn); }
.status-chip.status-investigating { background: rgba(147,51,234,.12); color: var(--accent-2); }
.status-chip.status-doing { background: rgba(217,119,6,.12); color: var(--warn); }

.priority-pill {
  display: inline-block;
  padding: 2px 7px; border-radius: var(--r-sm);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--bg-board); color: var(--text-mute);
}
.priority-pill.priority-urgent { background: var(--danger); color: #fff; }
.priority-pill.priority-high   { background: var(--warn); color: #fff; }
.priority-pill.priority-medium { background: var(--accent); color: #fff; }
.priority-pill.priority-low    { background: var(--text-faint); color: #fff; }

.model-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-board);
  padding: 1px 6px;
  border-radius: var(--r-sm);
  color: var(--text-mute);
  display: inline-block;
  margin-top: 4px;
}

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-mute);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.empty-state p { font-size: 13px; }
