*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* ヘッダー全体 */
.header {
  position: relative;
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::before {
  position: absolute;
  content: "";
  top: 50%;
  left: 2%;
  width: 148px;
  height: 30px;
  background: url(https://plus-company.jp/wp/wp-content/themes/corporate/assets/images/logo.svg)
    no-repeat center center;
  transform: translateY(-50%);
}

/* ロゴエリア */
.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 30px;
  margin-right: 15px;
}

/* タイトル */
.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #333333;
  margin: 0;
  font-family: "Arial", sans-serif;
}

/* DatePickerRangeのカスタマイズ */
.DateInput {
  width: 150px !important;
}

.DayPicker_transitionContainer {
  height: 340px !important;
}
.DateInput_input {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  background-color: white !important;
  color: #333 !important;
}

.DateInput_input:focus {
  border-color: #2196f3 !important;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1) !important;
}

.DateRangePickerInput {
  border: none !important;
  background-color: transparent !important;
}

.DateRangePickerInput_arrow {
  display: none !important;
}

/* カレンダーポップアップのスタイル */
.CalendarMonth_table {
  margin-top: 40px !important;
}
.DayPickerKeyboardShortcuts_show {
  display: none !important;
}

.CalendarDay__default {
  border: 1px solid #f0f0f0 !important;
  color: #333 !important;
  background-color: white !important;
  border-radius: 4px !important;
  margin: 1px !important;
}

.CalendarDay__default:hover {
  background-color: #f5f5f5 !important;
  border-color: #2196f3 !important;
}

.CalendarDay__selected_span {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  color: #1976d2 !important;
}

.CalendarDay__selected_start,
.CalendarDay__selected_end {
  background-color: #2196f3 !important;
  border-color: #2196f3 !important;
  color: white !important;
}

.CalendarDay__selected_start:hover,
.CalendarDay__selected_end:hover {
  background-color: #1976d2 !important;
}

.DayPickerNavigation_button {
  border: none !important;
  background-color: transparent !important;
  color: #666 !important;
  font-size: 18px !important;
}

.DayPickerNavigation_button:hover {
  background-color: #f5f5f5 !important;
  border-radius: 50% !important;
}

.CalendarMonth_caption {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #333 !important;
  text-align: center !important;
  padding: 15px 0 !important;
}

.DayPicker_weekHeader {
  color: #666 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* 日付範囲の表示を改善 */
.DateRangePickerInput {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* クイックボタンとの間隔調整 */
.quick-btn {
  padding: 10px 20px;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.quick-btn:hover {
  background-color: #2196f3;
  color: white;
  border-color: #2196f3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}
/* スコアカード */
.scorecard {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  gap: 1px;
}

.scorecard-title {
  font-size: 16px;
  color: #666666;
  margin: 0;
  font-weight: normal;
}
.scorecard-flex {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
}

.scorecard-value {
  font-size: 30px;
  margin: 8px 0 0;
  line-height: 1;
}

.scorecard-subtitle {
  font-size: 14px;
  color: #999999;
  margin: 10px 0 0 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px;
  }

  .header-nav {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-start;
  }

  .header-title {
    font-size: 15px;
  }
  .header::before {
    top: 50%;
    left: 2%;
    width: 64px;
    height: 14px;
  }

  .scorecard {
    max-width: 100%;
  }

  .scorecard-value {
    font-size: 26px;
  }
}

/* 全体のページスタイル */
body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background-color: #f8f9fa;
}
/* #scorecards-container {
  margin-top: 30px;
} */

.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.scorecard:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
    padding: 0 10px;
  }
}

/* テーブルスタイル */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.filter-controls {
  display: flex;
  flex-direction: row;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  justify-content: left;
  gap: 14px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
  background-color: white;
  table-layout: fixed;
}
#btn-export-csv:hover {
  background-color: #185526 !important;
}

.date-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.date-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.target-column {
  background-color: #e7f3ff;
}

.comparison-column {
  background-color: #f0fff0;
}

.data-table tr:hover {
  background-color: #d3d3d3 !important;
}

.data-table tr:hover .target-column,
.data-table tr:hover .comparison-column {
  background-color: #d3d3d3 !important;
}

.table-header {
  background-color: #253238;
  padding: 12px 8px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #ddd;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  width: auto;
}

.table-row {
  transition: background-color 0.2s;
}

.table-row:nth-child(even) {
  background-color: #f1f1f1;
}

.table-row:hover {
  background-color: #d3d3d3 !important;
}
.table-cell {
  padding: 10px 8px;
  border: 1px solid #eee;
  text-align: right;
}

/* .table-cell:hover {
  background-color: rgb(194, 194, 194);
} */

.table-row:hover .table-cell {
  background-color: inherit; /* 親の背景色を継承 */
}

.table-cell:first-child {
  text-align: left;
}

.section-channel-filter {
  display: grid;
  grid-template-rows: auto auto;
}

/* レスポンシブテーブル */
@media (max-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  #table-container {
    overflow-x: auto;
  }
  .data-table {
    font-size: 12px;
    width: 1200px;
  }

  .table-header,
  .table-cell {
    padding: 8px 6px;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .js-plotly-plot {
    width: 100% !important;
    height: 400px !important;
  }

  /* グラフコンテナの調整 */
  #chart-container {
    overflow-x: auto;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  #user-header-container div {
    font-size: 12px;
  }
}

.column-header-name {
  text-align: center;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td {
  background-color: unset !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner tr {
  background-color: #fff !important;
}

#chart-container tr:hover {
  background-color: #d3d3d3 !important;
}

/* Dashチェックリストの無効化スタイル - チェックボックスとテキスト両方 */

/* チェックボックス本体の無効化 */
.dash-checklist input[disabled],
.dash-checklist input:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* チェックボックスのラベル（テキスト）の無効化 */
.dash-checklist input[disabled] + label,
.dash-checklist input:disabled + label {
  color: #999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
  pointer-events: none !important;
}

/* より具体的なセレクター（Dashの構造に合わせて） */
.dash-checklist .form-check input[disabled] + label,
.dash-checklist .form-check input:disabled + label {
  color: #999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
  pointer-events: none !important;
}

.dash-checklist .form-check input[disabled],
.dash-checklist .form-check input:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* ラベル全体のコンテナも無効化 */
.dash-checklist label:has(input[disabled]),
.dash-checklist label:has(input:disabled) {
  color: #999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* より広範囲なセレクター（念のため） */
.dash-checklist div:has(input[disabled]),
.dash-checklist div:has(input:disabled) {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* チェックボックスの隣接するスパン要素 */
.dash-checklist input[disabled] ~ span,
.dash-checklist input:disabled ~ span {
  color: #999 !important;
  opacity: 0.5 !important;
  text-decoration: line-through !important;
  cursor: not-allowed !important;
}

/* フォーカス状態も無効化 */
.dash-checklist input[disabled]:focus,
.dash-checklist input:disabled:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ホバー効果も無効化 */
.dash-checklist input[disabled]:hover + label,
.dash-checklist input:disabled:hover + label {
  background-color: transparent !important;
}

/* 最強力なセレクター（全ての可能性をカバー） */
.dash-checklist *[disabled],
.dash-checklist *:disabled,
.dash-checklist *[disabled] *,
.dash-checklist *:disabled * {
  color: #999 !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* 特にテキスト要素に対して */
.dash-checklist *[disabled] label,
.dash-checklist *:disabled label,
.dash-checklist *[disabled] span,
.dash-checklist *:disabled span {
  color: #999 !important;
  text-decoration: line-through !important;
}
/* シミュレーターテーブルのホバーエフェクト */
.simulator-results-table tr:hover{
/* .simulator-table-row:hover td { */
    /* background-color: #e3f2fd !important; */
    background-color: #d3d3d3 !important;
    cursor: pointer;
}
.simulator-results-table tr{
  background-color: red !important;
}