/* web.css — web-only rules: the data-source banner and chip, and the admin screen. main.css is a copy
   of the desktop stylesheet, so web-only rules live here and reuse its tokens (--c-*, --radius). */

.data-banner {
  background: #b45309;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  position: sticky;
  top: 48px;
  z-index: 99;
}
.data-chip {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.data-chip-mock { background: #fbbf24; color: #1e293b; }

/* sign-in could not reach the server (app.js _loadSession) */
.boot-error { max-width: 560px; margin: 48px auto; }

.admin-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ds-current { font-size: 13px; margin: 8px 0 12px; }
.ds-current strong { font-weight: 700; }
.ds-current .ds-mock { color: #b45309; }
.ds-options { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.ds-options label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ds-options .ds-host { color: var(--c-text-muted); font-size: 12px; }

.header-link {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s;
}
.header-link:hover { background: rgba(255,255,255,.25); }
.header-link.active { background: #fff; color: var(--c-primary); }

.admin-screen { padding: 20px; }
.admin-wrap { width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-head h2 { font-size: 20px; font-weight: 700; }
.admin-card { padding: 16px 18px; }

.admin-query { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.admin-field { display: flex; flex-direction: column; min-width: 160px; }
.admin-field-wide { min-width: 320px; flex: 1 1 320px; }
.admin-field-button { min-width: 0; }
.admin-field .field-label { margin-top: 0; }
.admin-hint { color: var(--c-text-muted); font-size: 12px; margin-top: 8px; min-height: 1em; }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-toolbar-right .text-input { width: auto; min-width: 150px; }
.admin-summary { font-size: 13px; font-weight: 600; color: var(--c-text); }

.audit-table-wrap {
  margin-top: 10px;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.audit-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.audit-table th {
  position: sticky;
  top: 0;
  background: var(--c-bg);
  text-align: left;
  font-weight: 600;
  padding: 7px 10px;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.audit-table td { padding: 6px 10px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
.audit-table tbody tr:nth-child(even) { background: #fafbfc; }
.audit-table tbody tr:hover { background: #eef4ff; }
.audit-table .num { text-align: right; }
.audit-table .nowrap { white-space: nowrap; }
.audit-table .mono { font-family: Consolas, 'Courier New', monospace; font-size: 11.5px; color: var(--c-text-muted); }
.audit-table .empty { text-align: center; color: var(--c-text-muted); padding: 24px; }
.audit-table .ev-generated { color: var(--c-success); font-weight: 600; white-space: nowrap; }
.audit-table .ev-lookup { color: var(--c-text-muted); white-space: nowrap; }
.audit-table .ev-refused { color: var(--c-red); font-weight: 600; white-space: nowrap; }
.audit-table .data-mock { color: #b45309; font-weight: 600; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-primary);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .admin-head { flex-direction: column; }
  .admin-field, .admin-field-wide { min-width: 100%; }
}
