/* 
 * CSS-Definitionen für Div-Tabellen
 * Alle Farben müssen via Custom Properties aus der colors.css genutzt werden
 */

/* Div-Table Container */
.widget-table-container {
  width: 100%;
  overflow-x: auto;
  background-color: var(--color-background-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Div-Table Header */
.widget-table-header {
  display: flex;
  background-color: var(--color-background-tertiary);
  border-bottom: 1px solid var(--color-border-primary);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.widget-table-header-cell {
  flex: 1;
  padding: 1rem;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid var(--color-border-primary);
}

.widget-table-header-cell:last-child {
  border-right: none;
}

/* Div-Table Body */
.widget-table-body {
  display: flex;
  flex-direction: column;
}

.widget-table-row {
  display: flex;
  border-bottom: 1px solid var(--color-border-primary);
  transition: background-color 0.2s ease;
}

.widget-table-row:hover {
  background-color: var(--color-hover-overlay);
}

.widget-table-row:last-child {
  border-bottom: none;
}

.widget-table-cell {
  flex: 1;
  padding: 1rem;
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid var(--color-border-primary);
}

.widget-table-cell:last-child {
  border-right: none;
}

/* Responsive Design */
@media (max-width: 576px) {
  .widget-table-header-cell,
  .widget-table-cell {
    padding: 0.75rem 0.5rem;
    font-size: var(--font-size-sm);
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .widget-table-header-cell,
  .widget-table-cell {
    padding: 0.875rem;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .widget-table-header-cell,
  .widget-table-cell {
    padding: 1rem;
  }
}

@media (min-width: 1440px) {
  .widget-table-header-cell,
  .widget-table-cell {
    padding: 1.25rem;
  }
}