/* v6.3.0 途中交代モーダル
   dashboard の既存 .cc-overlay + .cc-box パターンを継承しつつ、
   情報ボックス・セクション見出し・メンバーリスト・区切り線を追加 */

/* ===== 情報ボックス（元隊員・現場・時間） ===== */
#handoverModal .ho-info-box {
  background: var(--color-surface-2);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}
#handoverModal .ho-info-row {
  display: flex;
  gap: 12px;
  margin: 4px 0;
}
#handoverModal .ho-info-row .ho-info-label {
  color: var(--color-text-muted);
  min-width: 80px;
  flex-shrink: 0;
}
#handoverModal .ho-info-row strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== 区切り線 ===== */
#handoverModal .ho-divider {
  border: none;
  border-top: 1px solid var(--color-divider);
  margin: 16px 0;
}

/* ===== セクション ===== */
#handoverModal .ho-section {
  margin-bottom: 16px;
}
#handoverModal .ho-section-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}
#handoverModal .ho-required {
  color: var(--color-red);
  font-size: 11px;
  font-weight: normal;
  margin-left: 6px;
}
#handoverModal .ho-hint {
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: 4px;
}

/* ===== input / select ===== */
#handoverModal .ho-input,
#handoverModal input[type="datetime-local"].ho-input,
#handoverModal input[type="text"].ho-input,
#handoverModal select.ho-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  box-sizing: border-box;
}
#handoverModal .ho-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ===== メンバーリスト ===== */
#handoverModal .ho-member-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 4px;
  background: var(--color-surface);
  margin-top: 8px;
}
#handoverModal .ho-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 180ms;
  font-size: 13px;
}
#handoverModal .ho-member-item:hover {
  background: var(--color-surface-2);
}
#handoverModal .ho-member-item.has-conflict {
  background: rgba(242, 153, 0, 0.08);
}
#handoverModal .ho-member-item input[type="radio"] {
  margin: 0;
  flex-shrink: 0;
}
#handoverModal .ho-member-main {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#handoverModal .ho-member-sub {
  font-size: 11px;
  color: var(--color-text-faint);
  flex-shrink: 0;
}
#handoverModal .ho-dept {
  color: var(--color-text-muted);
  font-size: 11px;
  margin-left: 4px;
}
#handoverModal .ho-warn {
  color: #c5221f;
  font-size: 11px;
  margin-left: 4px;
}

/* ===== モーダル全体のサイズ調整 ===== */
#handoverModal .cc-box {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

/* v6.3.2: 上番時刻を削除した代わりの補足テキスト */
#handoverModal .handover-footnote {
  margin: 16px 0 8px;
  padding: 10px 12px;
  background: var(--color-surface-2);
  border-radius: 8px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}
#handoverModal .handover-footnote small {
  font-size: inherit;
  color: inherit;
}

/* ===== ダークモード微調整 ===== */
[data-theme="dark"] #handoverModal .ho-info-box {
  background: var(--color-surface-2);
}
[data-theme="dark"] #handoverModal .ho-member-item.has-conflict {
  background: rgba(242, 153, 0, 0.14);
}
[data-theme="dark"] #handoverModal .handover-footnote {
  background: var(--color-surface-2);
}
