.ml-5 {
  margin-left: 5px;
}

.logo_img {
  height: 36px;
  object-fit: cover;
}

.detailLarge {
  font-size: 1.6rem;
  font-weight: bold;
}

.nav-link-icon.d-md-none.d-lg-inline-block {
  color: #333;
}

.nav-link-title {
  color: #333;
}

.d-none.d-xl-block.ps-2 div {
  color: #333;
  font-weight: bold;
}

.d-none.d-xl-block.ps-2 .small.text-secondary {
  color: #333 !important;
}

.dropdown-toggle:after {
  color: #333;
}

@media (min-width: 768px) {
  .d-none {
    display: block !important;
  }
}



/****************************************************************************
カレンダー要素のカスタマイズ
****************************************************************************/
/* ▼ 月選択・日付入力共通の基本スタイル */
input[type="month"],
input[type="date"] {
  /* ベース */
  display: inline-block;
  width: 200px;          /* 必要に応じて変更 */
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;

  /* 枠線や背景 */
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;

  /* ブラウザごとのappearanceをリセット */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* フォーカス時のアウトライン(青枠等)を好みに合わせて調整 */
  outline: none;
}

/* フォーカス時のスタイル */
input[type="month"]:focus,
input[type="date"]:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25); /* 好みに合わせて調整 */
}

.fw-700 {
  font-weight: 700 !important;
}







/****************************************************************************
  1) .side-modal: 全体ラッパ
     - Bootstrap「.modal」等と干渉しないクラス名
     - 幅・高さ100%で画面を覆い、右スライドするモーダルダイアログを内包
****************************************************************************/
.side-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  display: none; /* 初期は非表示 */
  z-index: 1050; /* 最上面に配置 */
  overflow: hidden; /* 背景スクロールを防ぐ */
}

/* ".show" を付与すると表示する */
.side-modal.show {
  display: block;
}

/* スマホ向け(768px以下) */
@media screen and (max-width: 768px) {
  .side-modal {
    width: 100%;
  }
}




/****************************************************************************
  2) バックドロップ: 背景の半透明 + ブラー
****************************************************************************/
.side-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1040; /* モーダルダイアログより背面に */
  background-color: rgba(0,0,0,0.3); /* お好みの透明度 */
  backdrop-filter: blur(4px);        /* ブラー効果 */
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
}

/* モーダル全体が "show" になったらバックドロップ表示+フェードイン */
.side-modal.show .side-modal-backdrop {
  display: block;
  opacity: 1;
}

/****************************************************************************
  3) モーダルダイアログ (サイドからスライド)
****************************************************************************/
.side-modal-dialog {
  position: absolute;
  top: 0;
  height: 100%;
  background: #fff;
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 1051; /* バックドロップより前面 */
}

/* 右スライド用クラス */
.side-modal-dialog-right {
  right: 0;
  transform: translateX(100%); /* 初期は画面外へ押し出し */
}

/* 表示状態 (.show) になるとスライドイン */
.side-modal.show .side-modal-dialog-right {
  transform: translateX(0);
}

/****************************************************************************
  4) 幅設定: 全デバイスで100%
****************************************************************************/
.side-modal-dialog-right {
  width: 100%;
}

/****************************************************************************
  5) コンテンツ内のレイアウト
****************************************************************************/
.side-modal-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #fff;
  /* 必要なら border-radius: 4px 0 0 4px; で左角丸 */
}

.side-modal-header,
.side-modal-body,
.side-modal-footer {
  padding: 1rem;
}

.side-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
}

.side-modal-title {
  margin: 0;
}

.side-modal-body {
  flex: 1 1 auto;
  overflow-y: auto; /* 縦スクロール可能に */
}

.side-modal-footer {
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/****************************************************************************
  6) ボタン類: デフォルトの見た目のまま
****************************************************************************/
.my-btn-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}


/****************************************************************************
modal-daily-aggregate.php用のスタイル
****************************************************************************/
/* フォーム内の主要なセクション見出し */
.form-section-legend {
  font-size: 20px; /* 約1.25rem */
  font-weight: 600;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6; /* 区切り線を追加 */
}

/* フォーム内のサブセクション見出し */
.form-subsection-legend {
  font-size: 18px; /* 約1.125rem */
  font-weight: 600 !important;
  color: #212529; /* text-muted から標準色に戻す */
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  /* padding-left: 0.5rem; /* ms-2 の代わりだったが、fieldsetのpaddingで調整するため不要かも */
}
/* fieldset内の最初のサブセクションlegendは、上のマージンを調整 */
fieldset > fieldset:first-child > .form-subsection-legend {
  margin-top: 0.25rem;
}
/* 枠線付きサブfieldset内のlegendの調整 */
.border.rounded .form-subsection-legend {
  font-size: 0.9rem; /* 枠線付きのサブ凡例は少し小さく */
  font-weight: 600;
  color: #212529; /* text-muted */
  margin-bottom: 0.25rem;
  margin-left: 0; /* px-2と合わせる */
  padding: 0 0.25rem;
  width: auto; /* 背景と重ならないように */
  border-bottom: none; /* 主要なlegendとの重複を避ける */
}


/* 元の値を表示するためのスタイル */
.original-value-hint {
  font-size: 0.7rem !important;
  white-space: nowrap;
  display: block;
  text-align: right;
  margin-top: -2px;
  padding-right: 5px;
  /* color: #198754; Bootstrap text-success の色 */
}
.is-manually-changed { /* 編集可能なフィールドが手動変更された際のスタイル */
  background-color: #fff3cd;
  border-color: #ffeeba;
}
/* (オプション) マウスホイールでの数値変更を防ぐためのスピンボタン非表示 */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}

.link-txt {
  color: #007bff !important; /* 一般的なリンク色 (青系) - 必要に応じて変更してください */
  text-decoration: none;
  cursor: pointer; /* クリック可能であることを示すためカーソルを変更 */
}

.link-txt:hover,
.link-txt:focus {
  text-decoration: underline; /* ホバー時やフォーカス時に下線を表示（任意） */
  color: #0056b3; /* ホバー時の色（任意） */
}

#deviceImportList .badge.bg-success {
  color: #fff;
}