/* --- qrcount.jp 管理画面スタイル (Light Mode) --- */
body {
  font: 14px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f9fafb; color: #333; margin: 0; padding-bottom: 60px;
}
.container { max-width: 980px; margin: 0 auto; padding: 24px; }
a{color:#1a9ab0}
.header {
  display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.title { font-size: 22px; font-weight: 700; }
.card {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.card + .card { margin-top: 16px; }

/* ★ create.html のレイアウト崩れ (Source 34) を修正 */
.row {
  display: grid; /* 2カラムのグリッドレイアウト */
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.col {
  /* .row が grid なので .col の定義は不要 */
}

.input, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #d1d5db; background: #f9fafb; color: #111; outline: none;
  box-sizing: border-box; /* ★ 幅100%を正しく計算 */
}
.input:focus { border-color: #22d3ee; }
.btn {
  appearance: none; padding: 10px 14px; border-radius: 12px;
  border: none;
  background: #22d3ee; /* LPのキーカラー */
  color: #001b1e; font-weight: 700; cursor: pointer;
  width: 100%; /* ★ ボタンの幅を100%に */
  box-sizing: border-box;
}
.btn.secondary { background: #e5e7eb; color: #333; width: auto; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.table th, .table td { padding: 10px 12px; text-align: left; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: #e5e7eb; color: #333; font-size: 12px;
}
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi .item {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-radius: 12px; padding: 12px; text-align: center;
}
.kpi .n { font-size: 24px; font-weight: 800; color: #22d3ee; }
.flex { display: flex; gap: 10px; align-items: center; }
.grid { display: grid; gap: 12px; }
footer { margin-top: 40px; color: #94a3b8; font-size: 12px; text-align: center; }
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  display: inline-block; background: #e5e7eb; border: 1px solid #d1d5db;
  padding: 4px 8px; border-radius: 8px; color: #333;
}
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.qr-box img { border: 1px solid #e5e7eb; border-radius: 12px; }
hr.hr { border: none; height: 1px; background: #e5e7eb; margin: 8px 0; }
.small { font-size: 12px; color: #94a3b8; }
canvas.chart {
  width: 100%; 
  height: 200px; /* ★ 高さを 200px に修正 (Source 55) */
  border-radius: 12px;
  background: #f9fafb; /* グラフ要素の背景 */
  border: 1px solid #e5e7eb;
}
.copy-btn { margin-left: 8px; width: auto; } /* ★ 幅を自動に */
label { font-size: 12px; color: #555; display: block; margin-bottom: 6px; }
@media (max-width: 600px) {
  .kpi { grid-template-columns: 1fr; } /* SPでは1カラムに */
  .row { grid-template-columns: 1fr; } 
}