/* 物理量リスト */

div#sidemenu ul li {
}

ul.prodselect {
  list-style: none;
  padding: 0;
  margin: 0;
}

.div_categoly {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prod-row {
  display: flex!important;
  flex-direction: row;
  align-items: center;
  gap: 5px; /* li とボタンの間隔 */
  padding-right:12px;
  margin-top:0px!important;
}

.prod-row li {
  flex: 1;
  padding: 4px 6px;
  cursor: pointer;
  background: #f0f0f0;
  border-radius: 4px;
}

/* 提供期間ボタン（i アイコン） */
.period-btn {
  width: 25px!important;
  height: 25px;
  margin:0px!important;
  border-radius: 10%;
  border: solid 1px black;
  background: #eee;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
/*  line-height: 22px;*/
  padding: 0!important;
  cursor: pointer;
  position:relative;
  top:-2px;
  left: -2px;
}

.period-btn:hover {
/*  background: #007bff; */
  background: rgb(255,120,1);
  color: #fff;
}

.dataexp {
  display: block!important;
  font-size: 8pt!important;
  margin:0px 2rem 10px 1.3rem!important;
  font-weight: normal!important;
}

.dataexp img {
  width: 10pt;
  padding: 0 2px;
}

/* モード切り替えタブ */
#modal-mode-sel button {
  padding: 5px 10px;
  margin: 2px;
  cursor: pointer;
  width: 200px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #f8f8f8;
}

.calendar_icon {
  width:18px;
  padding:2px;
}


#modal-mode-sel button.active {
  background-color: rgba(168,217,38,1.0);
  color: rgb(128,0,128);
  font-weight: bold;
  border: 1px solid #666;
}

#region-tabs {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0px 0 14px;
}

/* 領域タブ */
.tab-container button {
  padding: 3px 12px;
  /*margin: 2px;*/
  cursor: pointer;
  width: 160px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background:#f8f8f8;
}

.tab-container button.disabled {
  color: #aaa;
  background: #eee;
  cursor: not-allowed;
}

.tab-container button.active {
  background-color: rgba(168,217,38,1.0);
  color: rgb(128,0,128); 
  font-weight: bold;
  border: 1px solid #666;
}

/* モーダル */
#modal_wrapper_data {
  display: none;
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 120%;
  background-color: rgba(0,0,0,0.75);
  z-index: 20;  
}

.modal {
  display: none;

/*
  position: fixed;
  top: 20%;
  left: 10%;
  right: 10%;
  background: white;
  border: 1px solid #aaa;
  padding: 25px;
  z-index: 1000;
*/

  position: fixed;
  top: 5%;
  left: 10%;
  right: 10%;
  bottom: 5%;
  margin: 5vh auto;
  max-width: 1100px;
  /*max-height: 500px;*/
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  z-index: 1000;

  overflow-y: scroll;

}

.modal-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 16pt;
}

.modal-close {
  cursor: pointer;
}

.modal h3 {
  font-size: 1rem;
}

/* 最終更新日時 */
.last-updated {
  font-size: 0.8em;
  color: #666;
  margin: 4px 0 8px 0;
}

#periodTable.is-open {
  display: block;
}

#table-area h3 {
  margin-bottom: 5px;
}

.modal_table{
  border: 1px solid #808080;
  padding: 5px;
  border-collapse: collapse;
  width: 100%;
  font-size: 10pt;
  table-layout: fixed;
}

.modal_table th,.modal_table td{
  border: 1px solid #808080;
  padding: 3px;
  border-collapse: collapse;
  width: 20%;
  text-align: center;
}

.modal_table th {
  background-color: #222;
  color: white;
}


.timeline-modal {
/*
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
*/
}

.timeline-modal.is-open { 
  display: block;
}

.timeline-modal__backdrop {
  position: absolute; 
  inset: 0; background:
  rgba(0,0,0,0.5);
}


.timeline-modal__dialog {
  position: relative;
/*
  margin: 5vh auto;
  max-width: 1100px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
*/
  z-index: 1000;
}


.timeline-modal__title {
  margin: 0 40px 10px 0;
  font-size: 1.25rem;
}

.timeline-modal__subtitle {
  font-weight: normal;
  font-size: 14pt;
  color: #666;
  margin-left: .5rem;
  font-weight:bold
}

.timeline-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: none;
  cursor: pointer;
  color: #666;
}
.timeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.timeline-tabs button {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 3px 12px;
  background: #f8f8f8;
  cursor: pointer;
  width: 160px;
}
.timeline-tabs button[aria-selected="true"] {
  background: rgba(168,217,38,1);
  color: rgb(128,0,128);
  border-color: #666;
  font-weight: bold;
}

.timeline-tabs button.disabled {
  color: #aaa;
  background: #eee;
  cursor: not-allowed;
}

.timeline-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.timeline-chart-section {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 8px 8px 12px;
}
.timeline-chart-title {
  margin: 6px 8px 4px;
  font-size: 1rem;
  color: #333;
}
.timeline-no-data {
  padding: 20px;
  color: #666;
}
#timelineRegionTabs { margin-top: 0px; margin-bottom: 12px; }
