.history-section-title {
  margin: 0 0 12px;
  color: #444;
  font-size: 1rem;
}

.archive-section {
  margin-top: 22px;
  border-top: 1px solid #e5e5e5;
  padding-top: 14px;
}

.archive-section summary {
  cursor: pointer;
  color: #666;
  font-weight: bold;
  padding: 8px 2px 14px;
}

#archiveList {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: .9;
}

.archived-entry { background: #f7f7f7; }
.archive-label { color: #777; font-size: .78rem; white-space: nowrap; }
.empty-message, .error-message { text-align: center; color: #999; padding: 20px; list-style: none; }
.error-message { color: #d9534f; }

.status-badge[data-status*="完了"], .status-badge[data-status*="お届け済み"] { background-color: #28a745; }
.status-badge[data-status*="配達中"], .status-badge[data-status*="通過"], .status-badge[data-status*="輸送中"] { background-color: #007bff; }
.status-badge[data-status*="受付"], .status-badge[data-status*="引受"], .status-badge[data-status*="発送"] { background-color: #fd7e14; }
.status-badge[data-status*="確認"], .status-badge[data-status*="未登録"] { background-color: #ffc107; color: #333; }
.status-badge[data-status*="失敗"] { background-color: #dc3545; }
