/* ==========================================================================
   経済指標カレンダー専用（lfx_market / indicatorscalendar only）
   ========================================================================== */
/* --- 重要度：★ importance--- */
.imp_stars {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 1px;
}
.imp_stars.center {
  display: block;
  text-align: center;
}
.imp_stars .imp_star.on,
.imp_stars .imp_star.off {
  color: #ffa319;
}

/* --- 重要度 / importance legend --- */
#indicatorswrapper .indicator-description ul.description {
  display: flex !important;
  display: -webkit-flex !important;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: end;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  -webkit-align-items: center;
  align-items: center;
  float: none !important;
  gap: 2px 0;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
#indicatorswrapper .indicator-description ul.description::before {
  content: "重要度：";
}
#indicatorswrapper .indicator-description ul.description li {
  margin: 0 !important;
  white-space: nowrap;
}
#indicatorswrapper .indicator-description ul.description li .imp_stars {
  margin-right: 2px;
}
#indicatorswrapper .indicator-description ul.description li:not(:last-child)::after {
  content: "／";
  margin: 0 2px;
}

/* --- タブ型ボタン（日別／週間／月間）/tab buttons --- */
.calendar-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.calendar-tabs .calendar-tab {
  flex: 1 1 0;
  min-width: 96px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  color: #00adee;
  background: #fff;
  border: 1px solid #00adee;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, color 0.15s;
}
.calendar-tabs .calendar-tab:hover {
  background: #e5f6fd;
}
.calendar-tabs .calendar-tab.is-active,
.calendar-tabs .calendar-tab.is-active:hover {
  background: #00adee;
  color: #fff;
}

/* --- 本日ボタン /today button --- */
#indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.today {
  margin-right: 10px;
  background: #fff;
}

/* ==========================================================================
   PC（768px~）
   ========================================================================== */
@media (min-width: 768px) {
  #indicatorswrapper .indicators-table .table-noresponsive {
    display: none;
  }
  #indicatorswrapper .indicators-table .table-responsive {
    overflow: visible;
  }
  #indicatorswrapper .indicators-table .table-responsive .table-market thead th {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--indicator-sticky-top, 62px) !important;
    background-color: #fff;
  }
}

/* ==========================================================================
   SP（~767px）
   ========================================================================== */
@media (max-width: 767px) {
  #indicatorswrapper .indicators-table .table-responsive {
    display: none;
  }
  .calendar-tabs {
    gap: 6px;
  }
  .calendar-tabs .calendar-tab {
    min-width: 0;
    padding: 10px 4px;
    font-size: 14px;
  }

  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .btn-printout {
    display: none;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.today {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.next {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
  }

  /* カード表示 /card display */
  .indicators-table .table-noresponsive thead tr {
    background-color: #00adee;
    color: #fff;
  }
  .indicators-table .table-noresponsive .table > thead > tr > th {
    border-bottom: 0;
  }
  #indicatorswrapper .indicators-table .table-noresponsive img {
    border: 1px solid #ccc;
    margin: 0 !important;
  }
  .indicators-table .table-noresponsive table {
    table-layout: fixed;
  }
  .indicators-table .table-noresponsive table thead th {
    top: var(--indicator-sticky-top, 62px) !important;
    background-color: #00adee;
    color: #fff;
    position: -webkit-sticky;
    position: sticky;
    box-shadow: inset 0px 1px #ccc, 0px 1px #ccc;
  }
  .indicators-table .table-noresponsive table.table-market > tbody > tr > td {
    border: 0;
  }
  .indicators-table .table-noresponsive table.table-market > tbody > tr:nth-child(2n) {
    background-color: #eee;
  }
  .indicators-table .table-noresponsive .table-hover > tbody > tr:hover {
    background-color: transparent;
  }
  .indicators-table .table-noresponsive table.tb-inner {
    width: 100%;
    border: 1px solid #ccc;
    margin: 10px 0 0;
    background-color: #fff;
    border-collapse: collapse;
  }
  .indicators-table .table-noresponsive table.tb-inner,
  .indicators-table .table-noresponsive table.tb-inner td {
    border: 1px solid #ccc;
  }
}

/* ==========================================================================
   ~430px
   ========================================================================== */
@media (max-width: 430px) {
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool {
    display: flex;
    display: -webkit-flex;
    flex-direction: column;
    -webkit-flex-direction: column;
    align-items: stretch;
    -webkit-align-items: stretch;
    gap: 8px;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol {
    width: 100%;
    margin: 0;
    text-align: center;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.prev {
    order: 1;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.today {
    order: 2;
  }
  #indicatorswrapper .indicatorscontent .indicatorsheader .indicatorstool .navcontrol.next {
    order: 3;
  }
}
