/* Dashboard / list page patterns: stat tiles, tabs, action rows. */

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat .stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat .stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat .stat-value.ok {
  color: var(--green);
}

.stat .stat-value.warn {
  color: var(--amber);
}

.stat .stat-value.bad {
  color: var(--red);
}

.stat .stat-hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.action-tile {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 11, 28, 0.7);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.action-tile:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  text-decoration: none;
}

.action-tile strong {
  display: block;
  margin-bottom: 4px;
}

.action-tile span {
  color: var(--muted);
  font-size: 0.86rem;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 28, 0.7);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

.tab:hover {
  color: var(--text);
}

.tab-active {
  color: #061021;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  border-color: transparent;
}

.filter-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-row .field {
  margin-bottom: 0;
  min-width: 180px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 28, 0.6);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.list-row .list-main {
  min-width: 240px;
}

.list-row .list-main strong {
  display: block;
  font-size: 0.96rem;
}

.list-row .list-main span {
  color: var(--muted);
  font-size: 0.85rem;
}

.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
}
