.modal-backdrop {
  z-index: 1000 !important;
  background-color: rgba(0, 0, 0, 0.6) !important; /* 背景は暗い */
  pointer-events: none !important;
}

.modal {
  z-index: 1001 !important;
}

.modal-dialog {
  z-index: 1002 !important;
  position: relative !important;
}
.modal-content {
  background-color: #ffffff !important;
  color: #000 !important;
  position: relative !important;
  z-index: 9999 !important;
  border-radius: 16px !important;
  padding: 24px;
  isolation: isolate;
  pointer-events: auto !important;

  /* 💎 エメラルドグリーンの強発光 */
  box-shadow:
    0 0 10px rgba(0, 255, 191, 0.6),
    0 0 30px rgba(0, 255, 191, 0.5),
    0 0 60px rgba(0, 255, 191, 0.4),
    0 0 100px rgba(0, 255, 191, 0.3),
    0 0 140px rgba(0, 255, 191, 0.2);
  
  animation: emeraldPulse 2s ease-in-out infinite alternate;
}

@keyframes emeraldPulse {
  0% {
    box-shadow:
      0 0 40px rgba(0, 255, 191, 0.7),
      0 0 80px rgba(0, 255, 191, 0.6),
      0 0 120px rgba(0, 255, 191, 0.5),
      0 0 160px rgba(0, 255, 191, 0.4);
  }
  100% {
    box-shadow:
      0 0 60px rgba(0, 255, 191, 1),
      0 0 100px rgba(0, 255, 191, 0.9),
      0 0 140px rgba(0, 255, 191, 0.6),
      0 0 180px rgba(0, 255, 191, 0.3);
  }
}

.modal-content {
  z-index: 1003 !important;
  position: relative !important;
  background-color: #ffffff !important;  /* ✅ 完全な白 */
  color: #000 !important;
  isolation: isolate !important;         /* ✅ 背景から分離 */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4) !important;
  border-radius: 12px;
  transform: translateZ(0);              /* ✅ レイヤー化してブレンド防止 */
}
.modal-backdrop {
  display: none !important;
}

.modal-content {
  background-color: #ffffff !important;
  color: #000000 !important;
  position: relative !important;
  z-index: 9999 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  pointer-events: auto !important;
  isolation: isolate !important;
  animation: emeraldPulse 2s ease-in-out infinite alternate !important;
}

.modal-content {
  background-clip: unset !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.bar-wrapper.bar-blue .bar     { fill: #a3cfff !important; }
.bar-wrapper.bar-red .bar      { fill: #f7a6a6 !important; }
.bar-wrapper.bar-yellow .bar   { fill: #fff3a1 !important; }
.bar-wrapper.bar-green .bar    { fill: #b7f0b1 !important; }
.bar-wrapper.bar-pink .bar     { fill: #f9c2e0 !important; }
.bar-wrapper.bar-emerald .bar  { fill: #a0f5e0 !important; }
.bar-wrapper.bar-purple .bar   { fill: #d5c3f2 !important; }
.bar-wrapper.bar-orange .bar   { fill: #ffddb1 !important; }
.bar-wrapper.bar-default .bar  { fill: #e0e0e0 !important; }

.inspection-dashboard {
  background: #f3faf9; /* 河合エメラルドの超うすい版 */
  border-radius: 0.5rem;
}

.bg-kawai {
  background: #12a599 !important; /* 河合カラー：やや青緑 */
}

.bg-kawai-light {
  background: rgba(18,165,153,0.12) !important;
  color: #12a599 !important;
}

.text-kawai {
  color: #12a599 !important;
}

.kawai-card {
  border-left: 6px solid rgba(18,165,153,0.85);
  border-radius: 1rem;
}

.kawai-card .list-group-item {
  border: 0;
  border-bottom: 1px dashed rgba(0,0,0,0.04);
}

.kawai-card .list-group-item:last-child {
  border-bottom: 0;
}

.kawai-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(18,165,153,0.25);
}
