/* =========================================================
   Table theme classes for markdown rendering
   ========================================================= */

/* ---------- shared reset (all tables) ------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 2rem;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.85rem;
}

/* =========================================================
   .table-clean
   Minimal: thin border, light header, no background noise.
   ========================================================= */
.table-clean {
  border: 1px solid #d0d0d0;
}

.table-clean th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #bbb;
}

.table-clean td {
  border-bottom: 1px solid #e8e8e8;
  color: #444;
}

.table-clean tr:last-child td {
  border-bottom: none;
}

/* =========================================================
   .table-striped
   Alternating row colours for long data tables.
   ========================================================= */
.table-striped {
  border: 1px solid #ccc;
}

.table-striped th {
  background-color: #4a6fa5;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.table-striped td {
  color: #333;
}

.table-striped tbody tr:nth-child(odd) {
  background-color: #f0f4fa;
}

.table-striped tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* =========================================================
   .table-dark
   Dark header, subtle body — good for reference/command tables.
   ========================================================= */
.table-dark {
  border: 1px solid #444;
  border-radius: 6px;
  overflow: hidden;         /* clips radius on inner borders */
}

.table-dark th {
  background-color: #1e2a3a;
  color: #e8eef4;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: none;
}

.table-dark td {
  background-color: #2c3e50;
  color: #cdd9e5;
  border-bottom: 1px solid #3d5166;
}

.table-dark code {
  background: #16202e;
  color: #7ec8e3;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

/* =========================================================
   .table-highlight
   Coloured header + hover row highlight — good for task lists.
   ========================================================= */
.table-highlight {
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border-radius: 8px;
  overflow: hidden;
}

.table-highlight th {
  background: linear-gradient(135deg, #6c63ff, #48a7f8);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.table-highlight td {
  padding: 0.65rem 1rem;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.table-highlight tbody tr:last-child td {
  border-bottom: none;
}

.table-highlight tbody tr:hover {
  background-color: #f0edff;
  transition: background 0.15s ease;
}

/* =========================================================
   .striped  (utility — can be combined with other classes)
   Adds zebra striping on top of any existing theme.
   ========================================================= */
.striped tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.03);
}

/* =========================================================
   .table-utimaco
   Utimaco branded style: blue header with light gray alternate rows.
   Professional corporate appearance with clear visual hierarchy.
   ========================================================= */
.table-utimaco {
  border: none;
  margin: 1.5rem 0 2rem;
}

.table-utimaco th {
  background: linear-gradient(to right, #0066cc 0%, #0052a3 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  text-align: left;
  border: none;
}

.table-utimaco td {
  padding: 0.65rem 1rem;
  color: #333;
  border-bottom: 1px solid #e8e8e8;
  background-color: #ffffff;
}

.table-utimaco tbody tr {
  transition: background-color 0.15s ease;
}

.table-utimaco tbody tr:nth-child(odd) {
  background-color: #e8e8e8;
}

.table-utimaco tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.table-utimaco tbody tr:hover {
  background-color: #e8f0ff;
}

.table-utimaco tbody tr:last-child td {
  border-bottom: none;
}
