.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.panel {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 16px;
  width: 600px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--bd);
}

.headerRow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tx);
}

.meta {
  font-size: 13px;
  color: var(--tx-d);
  margin-top: 4px;
}

.close {
  font-size: 18px;
  color: var(--tx-m);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}

.filters {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

/* モックのエリアモーダルは行が横幅いっぱいに並ぶので、左右の余白は行側で持つ */
.body {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
  font-size: 13px;
  color: var(--tx-d);
  line-height: 1.6;
}

/* 読み込み中 / エラー / 該当0件 の1行表示 */
.message {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--tx-m);
}

/* 「問題エリア（3 / 16エリア）」「全16エリア（完了率昇順）」 */
.countLine {
  padding: 4px 24px 8px;
  font-size: 12px;
  color: var(--tx-m);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--bd) 40%, transparent);
}

.areaName {
  width: 120px;
  font-size: 13px;
  color: var(--tx-d);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ★△× の行は名前を太字＋濃色にする（モックの fontWeight 600 / color c.tx）★ */
.areaNameProblem {
  font-weight: 600;
  color: var(--tx);
}

/* ★判定の札（GradeBadge）と「結果待ち」を入れる固定幅の枠★ — 中身の幅が行ごとに違うと、バー（`.bar` の flex: 1）の
   伸び縮みで完了率の列（`.rate`）が行ごとにずれる（「結果待ち」の行だけ約16px左に寄っていた）。★枠の幅を全行で同じにする★。
   幅の根拠: 「結果待ち」は 11px × 全角4文字 = 44px、EN の "Pending" も 11px で約40px（`.pending` に letter-spacing・padding は無い）。
   GradeBadge は 28px（`components/ui/GradeBadge.module.css` の `.badge`）。★余裕を見て 48px★。中身は中央に寄せる。
   ★`.pending` の font-size を上げる・文言を変えるときは、この幅も見直すこと★ */
.gradeSlot {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* ★結果待ちのエリア（指示書BB A3 / D-173）★ — 判定の札の代わりに「結果待ち」。色は控えめな文字色だけ（✓✗ の色を使わない。
   清掃詳細ログの結果待ちと同じ）。幅は外側の `.gradeSlot` が持つ */
.pending {
  font-size: 11px;
  color: var(--tx-m);
  white-space: nowrap;
  text-align: center;
}

.bar {
  flex: 1;
}

/* 共通の ProgressBar は縦積み用に margin-top を持っているので、行の中では打ち消す */
.bar > * {
  margin-top: 0;
}

.rate {
  width: 40px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
}

.rate[data-tone="ok"] {
  color: var(--ok);
}
.rate[data-tone="wn"] {
  color: var(--wn);
}
.rate[data-tone="ng"] {
  color: var(--ng);
}

.footer {
  padding: 12px 24px;
  border-top: 1px solid var(--bd);
  display: flex;
  justify-content: flex-end;
}

.closeBtn {
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid var(--bd);
  background: transparent;
  color: var(--tx-d);
  cursor: pointer;
}
