/* App 登录管理后台的补充样式，只作用于 /app-admin 页面，不影响 NFC 后台 */
:root {
  --app-brand: #0f766e;
  --app-brand-strong: #115e59;
}

.brand-mark.app-mark { background: var(--app-brand); }

button.primary.app-primary { background: var(--app-brand); }
button.primary.app-primary:hover { background: var(--app-brand-strong); }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 0.4rem;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  background: #f8fbff;
}

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

.stat .stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.stat.alert { background: #fffaeb; border-color: #fde68a; }
.stat.alert .stat-value { color: var(--warn); }

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.check-inline input { width: auto; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.row-actions button {
  padding: 0.42rem 0.6rem;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
}

.device-cell { min-width: 11rem; }
.device-cell .device-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.pending-tag {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--warn);
}

.quick-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.quick-dates button {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.app-dialog {
  border: 0;
  border-radius: 20px;
  padding: 1.25rem;
  width: min(30rem, calc(100% - 2rem));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.app-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.app-dialog h3 { margin: 0 0 0.35rem; }
.app-dialog p { margin-top: 0; }