/* 画面の共通の見た目（計画 02-03）。ひな形には見た目の指定を書かず、ここだけに置く */
body {
  font-family: sans-serif;
  margin: 0;
  color: #222;
  background: #fafafa;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: #24364b;
  color: #fff;
}

.site-header .brand {
  font-weight: bold;
}

/* スマホの幅（390px）でも語の途中で折れないように、項目ごとに折り返さず、項目の単位で次の行へ送る（02-11 で発見） */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.site-nav a,
.site-nav button {
  white-space: nowrap;
}

.site-nav a {
  color: #fff;
}

.site-nav .logout {
  margin: 0;
}

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem;
}

/* フォーム */
.form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 28rem;
}

.form input,
.form select {
  padding: 0.4rem;
  font-size: 1rem;
}

.form button,
.site-nav button {
  padding: 0.4rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.form button {
  margin-top: 0.8rem;
}

/* 結果・失敗の表示欄 */
.message {
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
}

.message.error {
  background: #fdecea;
  color: #b3261e;
}

.message.ok {
  background: #e7f4ea;
  color: #11692a;
}

/* 状態のページの表 */
table.status {
  border-collapse: collapse;
  background: #fff;
}

table.status th,
table.status td {
  border: 1px solid #ccc;
  padding: 0.4rem 1rem;
  text-align: left;
}

td.ok {
  color: #11692a;
  font-weight: bold;
}

td.ng {
  color: #b3261e;
  font-weight: bold;
}

/* 登録の QR コード */
.qr svg {
  width: 12rem;
  height: auto;
  background: #fff;
}

/* 処理状況の表 */
table.jobs {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
}

/* スマホの幅では、表を枠の中だけで横に動かす（ページ全体が横に広がらない）。
   欄の中の語（判断メモ・受付・0.1秒）が1文字ずつ折れないようにする（02-11 で発見） */
#jobs-table {
  overflow-x: auto;
}

table.jobs th,
table.jobs td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  text-align: left;
}

/* 狭い画面だけ欄の語を折らない（広い画面では今までどおり欄の中で折り返し、横に動かさずに収める） */
@media (max-width: 40rem) {
  table.jobs th,
  table.jobs td {
    white-space: nowrap;
  }
}

table.jobs td.num {
  text-align: right;
}

.empty {
  color: #666;
}

/* 受け付けの進み具合 */
progress {
  width: 100%;
  max-width: 28rem;
  height: 1rem;
}
