/* 公共样式：兼顾 PC 管理后台与手机签到页 */
:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe3ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.11), transparent 35%),
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.1), transparent 30%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

body {
  background: #f1f5f9;
}

select {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

.hidden {
  display: none !important;
}

.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.admin-login-card {
  width: min(100%, 400px);
  padding: 32px;
  text-align: center;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-shell > .sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
}

.admin-shell > .main-content {
  min-width: 0;
}

.sidebar {
  padding: 22px 18px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px 2px;
}

.side-brand .brand-mark {
  width: 44px;
  height: 44px;
  box-shadow: none;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.main-content {
  padding: 28px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 4px 0 6px;
  font-size: 32px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

.card-header-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.metric-card {
  border-radius: 22px;
  min-height: 120px;
}

.metric-label {
  color: var(--muted);
  font-size: 14px;
}

.metric-value {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 800;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.record-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.schedule-form,
.inline-form {
  display: grid;
  gap: 16px;
}

.schedule-form .control-row,
.inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-list {
  display: grid;
  gap: 12px;
}

.employee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-grid > div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  gap: 8px;
}

.admin-login-card .brand-mark {
  margin: 0 auto 18px;
}

.admin-login-card h1 {
  margin: 0 0 8px;
}

.admin-login-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  text-align: left;
}

.admin-login-card .helper {
  color: var(--danger);
  min-height: 20px;
}

.container {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #fff;
  font-size: 24px;
  box-shadow: var(--shadow);
}

.brand h1 {
  margin: 0;
  font-size: 22px;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two-col {
  grid-template-columns: 1.05fr 1.35fr;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 0;
}

.card-header h2,
.card-header h3 {
  margin: 0;
}

.card-body {
  padding: 20px;
}

.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
}

.badge.success {
  background: #dcfce7;
  color: #166534;
}

.badge.danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(248,250,252,0.96));
  border: 1px solid var(--border);
}

.kpi .label {
  color: var(--muted);
  font-size: 13px;
}

.kpi .value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 800;
}

.controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.control-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.qr-wrap {
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--border);
  min-height: 390px;
}

.qr-box {
  width: min(100%, 380px);
  text-align: center;
}

.qr-box img {
  width: 100%;
  max-width: 320px;
  border-radius: 20px;
  border: 10px solid #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.qr-meta {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
}

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

thead th {
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  font-size: 14px;
}

tbody tr:hover {
  background: rgba(37, 99, 235, 0.03);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.failed {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.pending {
  background: #e0e7ff;
  color: #3730a3;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: var(--shadow);
  max-width: min(360px, calc(100vw - 36px));
}

.toast.success {
  background: rgba(22, 163, 74, 0.95);
}

.toast.error {
  background: rgba(220, 38, 38, 0.95);
}

.toast.info {
  background: rgba(37, 99, 235, 0.95);
}

.sign-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 12px;
}

.sign-card {
  width: min(100%, 540px);
  background: var(--panel-strong);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
  overflow: hidden;
}

.sign-hero {
  padding: 26px 24px 20px;
  background: linear-gradient(135deg, #1d4ed8, #14b8a6);
  color: #fff;
}

.sign-hero h1,
.sign-hero p {
  margin: 0;
}

.sign-hero p {
  margin-top: 8px;
  opacity: .9;
}

.sign-content {
  padding: 22px 24px 26px;
  display: grid;
  gap: 16px;
}

.sign-result {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.sign-result.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.sign-result.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.sign-result .icon {
  font-size: 40px;
  line-height: 1;
}

.sign-grid {
  display: grid;
  gap: 12px;
}

.sign-meta {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.helper {
  font-size: 13px;
  color: var(--muted);
}

.schedule-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.schedule-item .actions {
  align-items: center;
  justify-content: flex-end;
}

.schedule-item .btn {
  padding: 8px 10px;
  font-size: 12px;
}

/* GitHub 风格后台布局 */
.schedule-layout {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 16px;
}

.settings-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.setting-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: grid;
  gap: 10px;
}

.setting-label {
  font-size: 12px;
  color: #6b7280;
}

.setting-value {
  font-size: 22px;
  color: #1f2937;
}

.coordinate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 10px 12px;
  border-radius: 6px;
  display: inline-flex;
  width: fit-content;
}

.copy-btn,
.icon-btn {
  border: 0;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 8px 10px;
  cursor: pointer;
}

.copy-btn:hover,
.icon-btn:hover {
  background: #bfdbfe;
}

.icon-btn.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.database-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
}

.status-dot.failed {
  background: #ef4444;
}

.status-dot.healthy {
  background: #22c55e;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.status-dot-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
}

.status-dot-label .status-dot {
  background: #9ca3af;
}

.status-dot-label.on {
  color: #16a34a;
}

.status-dot-label.on .status-dot {
  background: #22c55e;
}

.status-dot-label.off {
  color: #6b7280;
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.employee-card {
  width: 180px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: grid;
  gap: 14px;
}

.employee-card.enabled {
  border-color: #22c55e;
}

.employee-card.disabled {
  border-color: #d1d5db;
}

.employee-name {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.employee-time {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.employee-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.link-danger {
  border: 0;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
}

.link-danger:hover {
  text-decoration: underline;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #374151;
}

.toggle-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.toggle-wrap input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background .2s ease;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .2s ease;
}

.toggle-wrap input:checked + .toggle {
  background: #22c55e;
}

.toggle-wrap input:checked + .toggle::after {
  transform: translateX(16px);
}

.schedule-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.schedule-form {
  gap: 14px;
}

.schedule-form .field input {
  min-height: 36px;
  border-radius: 8px;
  border-color: #d1d5db;
}

.schedule-item {
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.schedule-item:hover,
.employee-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.schedule-item .actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #f6f8fa;
  color: #1f2328;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  background: #f6f8fa;
  color: #1f2328;
}
.sidebar {
  width: 240px;
  flex: 0 0 240px;
  min-height: 100vh;
  padding: 20px 14px;
  background: #25292e;
  color: #f0f6fc;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.side-brand { display:flex; align-items:center; gap:10px; font-size:18px; }
.side-brand .brand-mark { width:34px; height:34px; border-radius:10px; font-size:16px; }
.sidebar nav { display:grid; gap:5px; }
.sidebar nav a { padding:10px 12px; border-radius:6px; color:#c9d1d9; text-decoration:none; font-size:14px; }
.sidebar nav a:hover, .sidebar nav a.active { background:#30363d; color:#fff; }
.sidebar > .btn { margin-top:auto; color:#c9d1d9; border-color:#57606a; }
.main-content { width:min(1180px,100%); padding:32px 40px 56px; margin:0 auto; }
.page-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:24px; }
.eyebrow { margin:0 0 6px; color:#57606a; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.page-header h1 { margin:0; font-size:28px; letter-spacing:-.02em; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:#d0d7de; padding:0; overflow:hidden; }
.settings-grid > div { display:grid; gap:8px; padding:20px; background:#fff; }
.schedule-form { display:grid; gap:18px; }
.schedule-form .control-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
.inline-form { display:flex; gap:12px; align-items:end; flex-wrap:wrap; }
.employee-list { display:flex; flex-wrap:wrap; gap:10px; }
.employee-chip { display:inline-flex; align-items:center; padding:8px 12px; border:1px solid #d0d7de; border-radius:999px; background:#fff; font-size:14px; }
.employee-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid #d0d7de; }
.employee-row:last-child { border-bottom:0; }
/* 员工二维码页 */
.qr-page-wrap {
  max-width: 720px;
}

.qr-center-card {
  margin-top: 12px;
}

.qr-center-card .qr-wrap {
  min-height: 480px;
}

.qr-center-card .qr-box {
  width: 100%;
  max-width: 420px;
}

.qr-center-card .qr-box img {
  max-width: 340px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .48);
}

.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.pill.on {
  color: #166534;
  background: #dcfce7;
}

.pill.off {
  color: #6b7280;
  background: #e5e7eb;
}

.timeline-list {
  display: grid;
  gap: 12px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.summary-card {
  text-align: left;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.summary-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 18px rgba(59,130,246,.12);
}

.fingerprint-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 360px;
  word-break: break-all;
}

.timeline-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #9ca3af;
  border-radius: 12px;
  background: #fff;
}

.timeline-item.success,
.timeline-item.active,
.timeline-item.enabled {
  border-left-color: #22c55e;
}

.timeline-item.failed {
  border-left-color: #ef4444;
}

.timeline-item.disabled {
  border-left-color: #9ca3af;
}

.timeline-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.timeline-item.success .timeline-mark,
.timeline-item.active .timeline-mark,
.timeline-item.enabled .timeline-mark {
  background: #22c55e;
}

.timeline-item.failed .timeline-mark {
  background: #ef4444;
}

.timeline-content {
  min-width: 0;
}

.timeline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

@media (max-width: 960px) {
  .admin-shell { display:block; }
  .sidebar { width:100%; min-height:auto; padding:12px; gap:12px; }
  .sidebar nav { display:flex; overflow:auto; }
  .sidebar nav a { white-space:nowrap; }
  .sidebar > .btn { margin-top:0; width:auto; align-self:flex-start; }
  .main-content { padding:24px 16px 40px; }
  .page-header { flex-direction:column; }
  .schedule-form .control-row,
  .schedule-group,
  .settings-cards,
  .filters { grid-template-columns:1fr; }
  .schedule-layout { grid-template-columns:1fr; }
  .settings-grid { grid-template-columns:1fr; }
  .employee-grid { grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); }
  .employee-card { width:100%; }
  .grid.two-col,
  .control-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .qr-wrap {
    min-height: unset;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 16px, 1200px);
    padding-top: 12px;
  }

  .card-header,
  .card-body,
  .sign-content,
  .sign-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand h1 {
    font-size: 19px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
