/* Dashboard-specific styles. Colors, fonts and base components come from
   tokens.css and components.css (letmetrythis Designvorlage). */

.site-header .brand img { border-radius: 50%; }
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; flex: none; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; }
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.dash { padding-block: var(--space-7) var(--space-8); }
.dash-hero { margin-bottom: var(--space-6); }
.dash-hero h1 { max-width: none; }
.dash-hero .lead { margin: var(--space-4) 0 var(--space-3); }
.sync { margin: 0; }
.sync.error { color: var(--danger); }

/* Filters */
.controls { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--space-3); padding: var(--space-5); }
.field { display: block; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); text-transform: lowercase; }
.field .input { display: block; width: 100%; margin-top: var(--space-2); font-family: var(--font-sans); text-transform: none; }

/* Product and version groups */
.product { margin-top: var(--space-8); }
.product > h2 { margin-bottom: var(--space-4); }
.version { margin-top: var(--space-4); padding: var(--space-5); }
.version h3 { margin-bottom: var(--space-3); }
.version h3 .meta { margin-left: var(--space-2); font-weight: var(--fw-regular); letter-spacing: 0; }

/* Table */
.table-wrap { overflow-x: auto; }
.update-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.update-table th, .update-table td { padding: var(--space-3) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.update-table tbody tr:last-child td { border-bottom: 0; }
.update-table thead th { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--muted); text-transform: lowercase; }
.update-table tbody tr:hover { background: var(--primary-soft); }
.update-table td.mono { font-family: var(--font-mono); font-size: var(--fs-sm); }
.kb-cell a { font-family: var(--font-mono); font-weight: var(--fw-bold); text-decoration: none; }
.kb-cell a:hover { text-decoration: underline; }
.doc-cell { text-align: right; white-space: nowrap; }

/* Update type pills */
.type-pill { display: inline-block; padding: .2rem .65rem; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: nowrap; background: var(--primary-soft); color: var(--primary); }
.type-pill.security-quality { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.type-pill.preview { background: var(--accent-soft); color: var(--accent-text); }
.type-pill.out-of-band { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }

.empty { margin-top: var(--space-7); color: var(--muted); }

.footer-brand { display: inline-flex; align-items: center; gap: var(--space-2); }
.footer-brand img { border-radius: 50%; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .controls { grid-template-columns: 1fr; }
}
