/* オリジナルstyle.cssに無い、モック内で使ってる自作クラスの補完 */

/* 入力欄: 旧 w-100p */
.w-100p {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
}
.w-100p:focus {
  outline: none;
  border-color: #00a8b2;
}

/* バッジ */
.badge-etc {
  background: #00a8b2;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  display: inline-block;
}
.badge-deleted {
  background: #888;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  display: inline-block;
}
.badge-duplicate {
  background: #e84646;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 12px;
}

/* 削除済み行 */
.basic-table tbody tr.deleted-row td {
  color: #999;
  background: #fafafa !important;
}

/* form-row */
.form-row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.form-label-fixed {
  min-width: 80px;
  font-size: 13px;
  color: #444;
  flex-shrink: 0;
}

/* bg-green セクション内の見出しスペース */
.bg-green {
  padding: 12px 16px;
  margin-bottom: 12px;
}

/* 月ナビ */
.s-month {
  padding: 6px 0 10px;
}

/* ボタンの最低共通スタイル */
.btn-green, .btn-orange, .btn-pink, .btn-white {
  display: inline-block;
  padding: 4px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn-white {
  border: 1px solid #999;
  background: #fff;
  color: #999;
}

/* モーダル(モック用) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-box {
  background: #fff;
  border-radius: 6px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.modal-box .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #e0e0e0;
  font-weight: bold;
}
.modal-box .modal-body {
  padding: 18px;
}
.modal-box .modal-footer {
  padding: 10px 18px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* change-log */
.change-log {
  margin-top: 24px;
  border-top: 1px solid #ddd;
  padding-top: 12px;
}
.change-log summary {
  color: #888;
  font-size: 13px;
  cursor: pointer;
}

/* ETC計算テーブル */
.etc-calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}
.etc-calc-table th {
  background: #00a8b2;
  color: #fff;
  padding: 6px 10px;
  border: 1px solid #80c4c9;
}
.etc-calc-table td {
  padding: 6px 10px;
  border: 1px solid #ddd;
}

/* テキスト寄せ */
.text-right { text-align: right; }
.text-red { color: #e84646; }

/* ============================================================
   ETC統合処理 用
   ============================================================ */

/* プログレスバー */
.progress-bar-wrap {
  width: 100%;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  height: 22px;
  position: relative;
}
.progress-bar-fill {
  background: linear-gradient(90deg, #43cea2 0%, #185a9d 100%);
  color: #fff;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: width 0.6s ease;
  white-space: nowrap;
  padding: 0 8px;
}

/* ステータスバッジ */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}
.status-uploading { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.status-processing { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.status-completed { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.status-failed { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

/* アップロード行（ETCUpload画面） */
.upload-dropzone {
  border: 2px dashed #b2dfdb;
  border-radius: 8px;
  padding: 16px;
  background: #f1f8e9;
}

/* code 要素のスタイル */
code {
  background: #f5f5f5;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9em;
}

/* 出力ファイルタブ */
.output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 12px;
  border-bottom: 2px solid #00796b;
  padding-bottom: 0;
}
.output-tab {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  position: relative;
  margin-bottom: -2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.output-tab:hover {
  background: #e8f5e9;
  color: #2e7d32;
}
.output-tab.active {
  background: #fff;
  color: #00796b;
  border-color: #00796b;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}
.output-tab-count {
  background: #e0e0e0;
  color: #555;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: normal;
  min-width: 22px;
  text-align: center;
}
.output-tab.active .output-tab-count {
  background: #00796b;
  color: #fff;
}

/* 出力ファイル名（長文対応） */
.output-filename {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}

/* ============================================================
   ETCデータ取込画面 (item01.jpg 準拠)
   ============================================================ */
.etc-upload-page {
  padding: 30px 40px 60px;
  min-height: calc(100vh - 100px);
}

/* 対象年月 */
.etc-upload-yearmonth {
  max-width: 320px;
  margin-bottom: 30px;
}
.etc-upload-yearmonth-label {
  display: block;
  font-weight: bold;
  color: #1c2433;
  margin-bottom: 8px;
  font-size: 14px;
}
.etc-upload-yearmonth-select-wrap {
  position: relative;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.etc-upload-yearmonth-select {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 20px;
  border: 1px solid #cfe9df;
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  color: #1c2433;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.etc-upload-yearmonth-select:focus {
  outline: none;
  border-color: #43cea2;
}
.etc-upload-yearmonth-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
}

/* カードグリッド */
.etc-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .etc-upload-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .etc-upload-grid { grid-template-columns: 1fr; }
}

/* 個別カード */
.etc-upload-card {
  background: #fff;
  border: 1.5px solid #cfe9df;
  border-radius: 14px;
  padding: 18px 16px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.etc-upload-card-title {
  font-weight: bold;
  color: #1c2433;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 12px;
}
.etc-upload-card-subtype {
  color: #1c2433;
  font-size: 14px;
  font-weight: bold;
  margin-top: 2px;
}

/* ドロップゾーン */
.etc-upload-dropzone {
  background: #f5f7f9;
  border: 1.5px dashed #c4d2dc;
  border-radius: 10px;
  padding: 22px 10px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 12px;
}
.etc-upload-dropzone:hover {
  border-color: #43cea2;
  background: #f0fbf6;
}
.etc-upload-dropzone.drag-over {
  border-color: #43cea2;
  background: #e8fbf2;
  border-style: solid;
}
.etc-upload-dropzone.has-file {
  border-color: #43cea2;
  background: #f0fbf6;
}
.etc-upload-dropzone-icon {
  color: #8a9aa3;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}
.etc-upload-dropzone.has-file .etc-upload-dropzone-icon { color: #2e9d6f; }
.etc-upload-dropzone-label {
  color: #6b7780;
  font-size: 13px;
}

/* カードフッター（ボタン + ステータス） */
.etc-upload-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.etc-upload-select-btn {
  background: linear-gradient(135deg, #2cb88b 0%, #1e9e75 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(46, 157, 117, 0.25);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.etc-upload-select-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(46, 157, 117, 0.35);
}
.etc-upload-status {
  color: #8a9aa3;
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.etc-upload-status-selected {
  color: #2e9d6f;
  font-weight: bold;
}

/* 送信ボタン */
.etc-upload-submit-wrap {
  text-align: center;
  margin-top: 40px;
}
.etc-upload-submit-btn {
  background: linear-gradient(135deg, #2cb88b 0%, #1e7a82 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 18px 60px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  min-width: 380px;
  box-shadow: 0 6px 18px rgba(46, 157, 117, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.etc-upload-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(46, 157, 117, 0.45);
}
.etc-upload-help {
  display: block;
  margin-top: 14px;
  color: #6b7780;
  font-size: 13px;
  text-decoration: underline;
}
.etc-upload-help:hover { color: #1e7a82; }

/* ============================================================
   処理状況画面 (item02.jpg 準拠)
   ============================================================ */
.etc-status-page {
  padding: 30px 40px 60px;
  min-height: calc(100vh - 100px);
}

.etc-status-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 28px 32px 30px;
  margin-bottom: 30px;
}

/* プログレスバー */
.etc-status-progress {
  background: #eaeef1;
  border-radius: 999px;
  height: 64px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}
.etc-status-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e7a82 0%, #2cb88b 55%, #4ad79f 100%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.8s ease;
  position: relative;
}
.etc-status-progress-text {
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* 本体（ドーナツ + テキスト） */
.etc-status-body {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* ドーナツ */
.etc-status-donut {
  flex: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes donut-spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}
.etc-status-donut-arc {
  transform-origin: 70px 70px;
  animation: donut-spin 3s linear infinite;
}

/* テキストブロック */
.etc-status-text-block { flex: 1; }
.etc-status-summary {
  font-size: 32px;
  color: #1c2433;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  font-weight: 500;
}
.etc-status-summary strong {
  font-weight: bold;
  font-size: 38px;
  margin-right: 2px;
}
.etc-status-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #1c2433;
}
.etc-status-badge-now {
  background: #eef2f6;
  color: #1c2433;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.etc-status-step-label {
  font-weight: 500;
}

/* 小さいスピナー */
@keyframes mini-spin {
  to { transform: rotate(360deg); }
}
.etc-status-mini-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cfe9df;
  border-top-color: #2cb88b;
  border-radius: 50%;
  animation: mini-spin 0.9s linear infinite;
  display: inline-block;
}

/* 最近の履歴セクション */
.etc-status-recent {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 20px 24px;
  margin-top: 30px;
}
.etc-status-recent-title {
  color: #00796b;
  border-bottom: 2px solid #e0f7fa;
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 18px;
}

/* ============================================================
   グローバル処理中インジケータ（右下フローティング）
   ============================================================ */
.processing-indicator {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 1500;
  overflow: hidden;
  font-size: 13px;
  animation: pi-slide-in 0.35s ease-out;
}
@keyframes pi-slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.processing-indicator-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #1e7a82 0%, #2cb88b 100%);
  color: #fff;
  font-weight: bold;
}
.processing-indicator-header.is-done {
  background: linear-gradient(135deg, #2cb88b 0%, #43cea2 100%);
}
.processing-indicator-dot-done {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  color: #2cb88b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.processing-indicator-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: pi-pulse 1.4s infinite;
}
@keyframes pi-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.processing-indicator-header-text { flex: 1; }
.processing-indicator-collapse-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.processing-indicator-collapse-btn:hover { background: rgba(255, 255, 255, 0.35); }

.processing-indicator-list {
  max-height: 60vh;
  overflow-y: auto;
}
.processing-indicator-item {
  padding: 12px 30px 12px 14px;
  border-bottom: 1px solid #f0f3f5;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}
.processing-indicator-item:hover { background: #f5fdfb; }
.processing-indicator-item:last-child { border-bottom: none; }
.processing-indicator-item.is-completed {
  background: #f0fbf6;
}
.processing-indicator-item.is-completed:hover {
  background: #e6f8ee;
}
.processing-indicator-item.is-failed {
  background: #fdecea;
}
.processing-indicator-item.is-failed:hover {
  background: #fbdbd6;
}

/* dismiss × ボタン */
.processing-indicator-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: #9aa5ad;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.processing-indicator-dismiss:hover {
  background: #eaeef1;
  color: #1c2433;
}

/* 完了/失敗のステータスアイコン */
.processing-indicator-check {
  width: 16px;
  height: 16px;
  background: #2cb88b;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.processing-indicator-cross {
  width: 16px;
  height: 16px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  flex-shrink: 0;
}

/* 完了時の「出力ファイルを見る」CTA */
.processing-indicator-cta {
  color: #2cb88b;
  font-weight: bold;
}

/* 完了時のバー（緑塗りつぶし） */
.is-completed .processing-indicator-bar-fill {
  background: linear-gradient(90deg, #43cea2 0%, #2cb88b 100%);
}
.is-failed .processing-indicator-bar-fill {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}
.is-completed .processing-indicator-item-percent { color: #2cb88b; }
.is-failed .processing-indicator-item-percent { color: #c0392b; }

.processing-indicator-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.processing-indicator-item-id {
  font-weight: bold;
  color: #1c2433;
}
.processing-indicator-item-percent {
  font-weight: bold;
  color: #2cb88b;
  font-size: 14px;
}

.processing-indicator-bar {
  height: 8px;
  background: #eaeef1;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.processing-indicator-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2cb88b 0%, #4ad79f 100%);
  border-radius: 999px;
  transition: width 0.8s ease;
}

.processing-indicator-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6b7780;
  font-size: 12px;
}
.processing-indicator-step {
  display: flex;
  align-items: center;
  gap: 6px;
}

.processing-indicator-mini-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #cfe9df;
  border-top-color: #2cb88b;
  border-radius: 50%;
  animation: mini-spin 0.9s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

.processing-indicator-footer {
  padding: 8px 14px;
  text-align: right;
  background: #fafbfc;
}
.processing-indicator-footer a {
  color: #2cb88b;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
}
.processing-indicator-footer a:hover { text-decoration: underline; }

/* 最小化状態 */
.processing-indicator-mini {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1e7a82 0%, #2cb88b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(46, 157, 117, 0.45);
  z-index: 1500;
  gap: 2px;
}
.processing-indicator-mini:hover { transform: scale(1.05); }
.processing-indicator-mini.is-done {
  background: linear-gradient(135deg, #2cb88b 0%, #43cea2 100%);
}
.processing-indicator-mini .processing-indicator-mini-spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  width: 16px;
  height: 16px;
}
.processing-indicator-mini-percent {
  font-size: 13px;
  font-weight: bold;
}
.processing-indicator-mini-check {
  color: #fff;
  display: inline-flex;
}

/* 階層展開用 */
.master-tree-row {
  cursor: pointer;
}
.master-tree-row:hover { background: #e0f7fa; }
.master-tree-expand {
  display: inline-block;
  width: 16px;
  text-align: center;
  color: #00796b;
  font-weight: bold;
  user-select: none;
}
.master-tree-children {
  background: #f5fdfb;
}
.master-tree-children td {
  padding: 12px 16px;
}
.master-tree-sub {
  background: #fafafa;
  border-radius: 4px;
  padding: 12px;
  margin: 6px 0;
  border-left: 3px solid #00796b;
}
.master-tree-sub-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

/* ============================================================
   会員フラット一覧（Excel風）
   ============================================================ */
/* 箱型スクロール（枠線・max-height）をやめ、横はみ出し時だけ横スクロール */
.member-scroll { overflow-x: auto; }
/* この表ではヘッダーの sticky を無効化（箱がないため） */
table.basic-table.member-table thead th { position: static; }
/* basic-table の nowrap/中央寄せ/クリップを会員表では解除 */
table.basic-table.member-table td {
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: none;
  padding: 6px 8px;
}
/* 結合セル（管理No・企業名・支店・車両）は上寄せ */
table.basic-table.member-table td.mtop { vertical-align: top; }
/* 日付・状態など短い列は中央寄せ */
table.basic-table.member-table td.tc { text-align: center; white-space: nowrap; }
/* 管理Noグループの区切りを罫線で明示 */
table.basic-table.member-table tr.grp-start > td { border-top: 2px solid #26a69a; }
/* カード番号 */
table.basic-table.member-table td .cardno {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12px;
  background: none;
  padding: 0;
}

/* 行アクション（枠なしの薄いアイコン） */
.row-actions { display: inline-flex; flex-wrap: nowrap; gap: 2px; }
.mbtn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 3px;
  border: none; background: none; color: #b0bec5;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.mbtn i { margin: 0; }
.mbtn:hover { color: #00796b; }
.mbtn.mbtn-warn:hover { color: #ef6c00; }
.mbtn.mbtn-danger:hover { color: #c62828; }
/* テキスト付きの追加ボタン（＋車両 / ＋カード） */
.mbtn.mbtn-add { color: #26a69a; font-size: 11px; min-width: 0; }
.mbtn.mbtn-add:hover { color: #00796b; text-decoration: underline; }
.mbtn.mbtn-add i { margin-right: 2px; }

/* 有効期限の警告バッジ（小） */
.exp-badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 10px; font-size: 10px; font-weight: bold; white-space: nowrap; }
.exp-expired { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }
.exp-soon { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
/* 旧/非表示タグ（カード・車両） */
.inactive-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 10px; font-size: 10px; font-weight: bold; background: #eceff1; color: #78909c; border: 1px solid #cfd8dc; }

/* 履歴リンク */
.hist-link { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; color: #1565c0; font-size: 11px; }
.hist-link:hover { text-decoration: underline; }

/* ============================================================
   行の操作メニュー（車両・カード管理）
   ボタンを表の中に並べず、1行1つの「操作」ボタンから開く
   ============================================================ */
.row-menu {
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  padding: 4px 0;
  overflow: hidden;
}
.row-menu-head {
  padding: 6px 12px 8px;
  border-bottom: 1px solid #eceff1;
  font-size: 13px;
  font-weight: 600;
  color: #37474f;
}
.row-menu-sub { font-size: 11px; font-weight: normal; color: #90a4ae; margin-top: 2px; }
.row-menu-sep { height: 1px; background: #eceff1; margin: 4px 0; }
.row-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 12px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  color: #37474f;
  cursor: pointer;
}
.row-menu-item i { width: 14px; color: #90a4ae; margin: 0; }
.row-menu-item:hover:not(:disabled) { background: #e0f2f1; color: #00695c; }
.row-menu-item:hover:not(:disabled) i { color: #00796b; }
.row-menu-item.danger { color: #c62828; }
.row-menu-item.danger:hover:not(:disabled) { background: #ffebee; color: #b71c1c; }
.row-menu-item.danger:hover:not(:disabled) i { color: #c62828; }
.row-menu-item:disabled { opacity: 0.35; cursor: not-allowed; }

/* モーダル内の注意書き（入れ替え時など） */
.modal-note {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

/* ETCデータ取込: 高速会社ごとの縦積みレイアウト */
.etc-upload-company { margin-bottom: 22px; }
.etc-upload-company-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 4px;
  margin-bottom: 8px;
  border-bottom: 2px solid #26a69a;
}
.etc-upload-company-name { font-size: 16px; font-weight: bold; color: #00695c; }
/* 高速会社の見出しを緑／赤で交互に色分け（取り違え防止） */
.etc-upload-company-head--a { border-bottom-color: #1e88e5; }
.etc-upload-company-head--a .etc-upload-company-name { color: #1565c0; }
.etc-upload-company-head--b { border-bottom-color: #e53935; }
.etc-upload-company-head--b .etc-upload-company-name { color: #c62828; }
.etc-upload-company-files { font-size: 12px; color: #78909c; }
.etc-upload-company-row { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 14px; }
@media (max-width: 767px) {
  .etc-upload-company-row { grid-template-columns: 1fr; }
}

/* 会員名・車両番号は折り返さない（1行1レコードで読ませるため） */
table.basic-table.member-table td.nw { white-space: nowrap; }

/* 列数の多い表用の最小幅。狭い画面では列を潰さず横スクロールさせる */
/* 登録から1週間以内の新規レコードに付ける new バッジ */
.new-badge {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  border-radius: 10px; font-size: 10px; font-weight: bold;
  color: #fff; background: #e53935; vertical-align: middle;
  white-space: nowrap;
}

.w-min1100 { min-width: 1100px !important; }
.w-min1400 { min-width: 1400px !important; }
