* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f5f5f5;
  color: #333;
}

.container { max-width: 1600px; margin: 0 auto; }

.updated-info {
  margin-left: auto;
  font-size: 11px;
  color: #999;
  align-self: center;
  white-space: nowrap;
}

.updated-info a {
  color: #999;
  text-decoration: none;
}

.updated-info a:hover {
  color: #666;
  text-decoration: underline;
}

.tabs-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 0;
}

.tab-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.tab-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
  padding: 8px 10px 10px 0;
  align-self: center;
}

.tab {
  display: inline-block;
  padding: 8px 16px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}

.tab:hover {
  color: #333;
  border-bottom-color: #adb5bd;
}

.tab.active {
  color: #2c3e50;
  font-weight: 600;
  border-bottom-color: #2c3e50;
}

.coverage-badge {
  display: inline-block;
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

.coverage-badge strong {
  color: #333;
}

.summary-badges {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #666;
}

.summary-badge {
  display: inline-block;
}

.summary-badge strong {
  color: #333;
}

.filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: #666;
}

.filter-group input,
.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 180px;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.clear-filters {
  padding: 8px 16px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.clear-filters:hover { background: #5a6268; }

.stats {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

th {
  background: #2c3e50;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

th:hover { background: #34495e; }
th .sort-indicator { margin-left: 5px; opacity: 0.5; }
th.sorted .sort-indicator { opacity: 1; }

td {
  padding: 12px 5px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-size: 14px;
}

td:first-child { padding-left: 15px; }
td:last-child { padding-right: 15px; }
tr:hover { background: #f8f9fa; }
tr:last-child td { border-bottom: none; }

code {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
}

.boundary-badge {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  margin: 1px;
}

.assignable-badge {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 3px 10px;
  border-radius: 12px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
  display: inline-block;
  margin: 2px;
}

.assignable-details {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

.no-permission {
  color: #999;
  font-style: italic;
}

.no-items {
  color: #999;
  font-style: italic;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #666;
}

.kind-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.kind-badge.type { background: #e3f2fd; color: #1565c0; }
.kind-badge.mutation { background: #fce4ec; color: #c62828; }
.kind-badge.field { background: #e8f5e9; color: #2e7d32; }

.description {
  max-width: 300px;
  font-size: 13px;
  color: #555;
}

.permission-cell {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
}

.access-badge {
  background: #fff3e0;
  color: #e65100;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  margin: 1px;
}

th.actions-header-group { padding: 8px 15px; }

.actions-sub-headers {
  display: flex;
  gap: 0;
}

.actions-sub-headers .sub-header {
  font-weight: 600;
  padding: 4px 10px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

.actions-sub-headers .sub-header:last-child { border-right: none; flex: 1; }

.actions-cell { padding: 8px; }

.actions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: auto;
  table-layout: fixed;
}

.actions-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.actions-table tr:last-child td { border-bottom: none; }
.actions-table tr:hover { background: #f8f9fa; }

@media (max-width: 1200px) {
  .filters { flex-direction: column; }
  .filter-group input,
  .filter-group select { width: 100%; }
}
