/* 一覧の絞り込み・会話の吹き出し・返信欄（初期の作り。04 より後に読まれるので同名の設定はこちらが勝つ）
   ★見た目の設定は css/ の番号順に読み込む（base.html）。後の番号ほど優先される。
   ★2026-10-09 に style.css を順番を変えずに切り分けたもの（つなぐと元と同じ）。 */

/* メッセージ一覧 */
.filter-tabs { display: flex; gap: 4px; margin-bottom: 14px; }

.filter-tabs a {
  padding: 7px 18px;
  font-size: 13px;
  color: #44505e;
  text-decoration: none;
  border: 1px solid #c4ccd6;
  border-radius: 6px;
  background: #fff;
}

.filter-tabs a.tab-active {
  background: #2d6cdf;
  border-color: #2d6cdf;
  color: #fff;
  font-weight: bold;
}

.row-link { cursor: pointer; }

.badge-alert { background: #fdecea; color: #b3261e; }
.badge-warn { background: #fff8e6; color: #9a6700; }
.badge-muted { background: #eef1f4; color: #6a7480; }

.settings-divider { border: none; border-top: 1px solid #eef1f4; margin: 18px 0; }
.col-status { width: 110px; }
.col-date { width: 140px; white-space: nowrap; font-size: 12px; color: #5a6573; }

/* 会話画面 */
.thread-item { margin: 4px 0 0; font-size: 13px; color: #5a6573; }

.chat { display: flex; flex-direction: column; gap: 10px; }   /* 吹き出しの間隔を詰める */

.chat-row { display: flex; }
.chat-in { justify-content: flex-start; }
.chat-out { justify-content: flex-end; }

.chat-bubble {
  max-width: 70%;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  padding: 12px 14px;
}

.chat-out .chat-bubble { background: #e8f1fd; border-color: #c3d9f5; }

.chat-meta { font-size: 11px; color: #8a94a0; margin-bottom: 6px; }
.chat-subject { font-size: 12px; font-weight: bold; color: #44505e; margin-bottom: 6px; }
.chat-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; }

.chat-ja-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; }

/* メッセージ添付画像（サムネ） */
.chat-attachments {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-attach-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dde3ea;
  background: #f4f6f9;
  cursor: pointer;
  display: block;
}

.btn-translate { margin-top: 8px; }

/* 返信欄 */
.reply-alert { margin-top: 20px; }

.reply-card {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  padding: 20px;
}

.reply-card h2 { font-size: 15px; margin: 0 0 6px; color: #1f3a5f; }

.reply-to { font-size: 13px; color: #5a6573; margin: 0 0 14px; }

.reply-tools {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.reply-tools label {
  font-size: 12px;
  color: #5a6573;
  display: block;
}

.reply-tools select, .reply-tools textarea {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #c4ccd6;
  border-radius: 6px;
  font-family: inherit;
}

.reply-ja-label { flex: 1; min-width: 280px; }
.reply-ja-label textarea { width: 100%; resize: vertical; }

.btn-send { background: #1a7f37; }
.btn-send:hover { background: #156a2e; }

