/*Fonts ––––––––––––––––––––––––––––––––––––––––––––––––––*/
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

body{
  margin: 0px;
  padding: 0px;
  background-color: #F3F4F9;
  font-family: 'Roboto';
  color: #203cb3;
  overflow-x: hidden;
}

.banner {
  height: fit-content;
  background-color:rgb(2,21,70);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* border-bottom: 1px solid #4B5460; */
  padding: 1rem 1rem;
  width: 100%;
}

.banner-logo{
  width: 100%;
}

.banner_button {
  font-size: 2rem;
  margin: 1rem;
}

.dcc_control {
  margin: 0;
  padding: 5px;
  width: calc(100%-40px);
}



.filter {
  background-color: white;
  border-radius: 8px;
  height: auto;
  width: 100%;
}
.filter > .card-body {
  padding: 0.4rem 0.6rem 0.2rem;
}

/* dcc.Tabs compact + sidebar-style coloring */
.tab, .tab--selected {
  padding: 5px 16px !important;
  font-size: 0.85rem !important;
  line-height: 1.4 !important;
  border: none !important;
  background-color: transparent !important;
  color: #080808 !important;
  border-radius: 50px !important;
  transition: background-color 0.15s ease !important;
}
.tab:hover {
  background-color: #e8f0fe !important;
}
.tab--selected:hover {
  background-color: #C7DEFF !important;
}
.tab--selected {
  background-color: #C7DEFF !important;
  font-weight: bold !important;
  color: #080808 !important;
  border-bottom: none !important;
}
/* タブバー下線を非表示 */
.tabs-container .tab-parent,
.tabs--top {
  border-bottom: 1px solid #dee2e6 !important;
}
.tab-container .tab {
  height: auto !important;
  min-height: unset !important;
}

/* compact score slider */
.score-slider-compact .rc-slider {
  height: 16px;
  padding: 5px 0;
}
.score-slider-compact .rc-slider-rail,
.score-slider-compact .rc-slider-track {
  height: 5px;
}
.score-slider-compact .rc-slider-handle {
  width: 16px;
  height: 16px;
  margin-top: -6px;
}
.score-slider-compact .rc-slider-mark {
  top: 14px;
  font-size: 1rem;
}
.score-slider-compact .rc-slider-mark-text {
  font-size: 1rem;
  font-weight: 600;
}

.score-slider-block {
  margin-top: 10px;
  padding-top: 8px;
  padding-bottom: 0;
}

.score-slider-row {
  margin-top: 2px;
  margin-bottom: 0;
}

.score-slider-compact {
  margin-top: 4px;
}

/* スコアラベルをスライダーハンドルに縦位置合わせ */
.score-slider-label {
  padding-bottom: 12px;  /* 下側余白を上側へ寄せる */
  font-size: 0.8rem;
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}

.signal_boad {
  border-radius: 5px;
  background-color: white;
  height: 350px;
  width: 250px;
}


.score_boad {
    border-radius: 8px;
    background-color: white;
    height: auto;
    min-width: 460px;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.score_boad > .card-header {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
}
.score_boad > .card-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.75rem;
}

/* ---- Score card bar chart ---- */
.sc-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}
.sc-bar-label {
    width: 85px;
    font-size: 0.9rem;
    color: #555;
    text-align: right;
    padding-right: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 600;
}
.sc-bar-track {
    position: relative;
    flex: 1;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.sc-bar-value {
    width: 52px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    padding-left: 8px;
    flex-shrink: 0;
}

/* ---- Stock detail grid ---- */
.sc-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px 10px;
    background-color: #fafafa;
}
.sc-detail-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0;
}
.sc-detail-label {
    color: #999;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.sc-detail-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
}

.method_card {
  background-color: white;
  width: 100%;
}

.rank_table {
  background-color: white;
  width: 100%;
}


/* ---- Brand card (右側チャート) ---- */
.brand_card {
  border-radius: 8px;
  padding: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.brand_card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.3rem 0.5rem;
}
.brand_card .card-body > .dcc_graph-container {
  flex: 1;
  overflow: hidden;
}

/* ---- Plotly graph margin optimization ---- */
.dcc_graph {
  height: 100%;
}
#chart-teq {
  height: 100%;
}

.score_font {
  font-size: 4.5rem;
  font-weight: bold;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile: detail grid 2 columns */
@media (max-width: 768px) {
    .sc-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* .div-logo{
  display: inline-block;
  float: right;
}

.header_button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 80%;
  font-size: 2rem;
} */



/*------------ Signup ---------------*/

#signup-panel{
  display: flex;
  flex-direction:column;
  border:1px solid grey;
  height:450px;
  width:20%;
  padding:25px;
  margin-top:50px;
  margin-left:auto;
  margin-right:auto;
  background-color:white;
  border-radius:15px;
}

#register-button{
  text-decoration:none;
  border:1px solid grey;
  padding:5px;
  text-align:center;
  border-radius:5px;
  margin-top:25px;
  background-color:rgb(66,196,247);
  color:white;
}

#first-name{
  margin-top:15px;
}
#last-name{
  margin-top:15px;
}

#password-again{
  margin-top:15px;
}
#have-account{
  text-align:center;
}

#account{
  text-align:center;
}




.card {
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #333;
    font-weight: bold;
}

.table th {
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* ---- Yutai page styles ---- */
.yutai-kpi-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1976D2;
    line-height: 1;
}
.yutai-kpi-label {
    font-size: 0.9rem;
    color: #999;
    margin-top: 4px;
}

/* ---- Filter panel labels ---- */
.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 2px;
    display: block;
}

/* ---- Cross trading timeline (yutai) ---- */
.cross-kpi-card {
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cross-kpi-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}
.cross-kpi-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}
.cross-urgency-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.cross-profit-positive { color: #00897B; font-weight: 700; }
.cross-profit-negative { color: #D32F2F; font-weight: 700; }
/* ===== テーマ ボタン群 ===== */
#theme-btn-area {
  background: #f8f9fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 6px 8px;
}
.theme-group-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 3px;
}
.theme-group-row:last-child {
  margin-bottom: 0;
}
.theme-group-label {
  font-size: 0.68rem;
  color: #999;
  min-width: 4.2rem;
  text-align: right;
  padding-right: 6px;
  white-space: nowrap;
  border-right: 1px solid #ddd;
  margin-right: 4px;
}
.theme-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.theme-btn {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  line-height: 1.5;
}
.theme-btn:hover {
  background: #e3edf9;
  border-color: #4a90d9;
  color: #1565c0;
}
.theme-btn-active {
  background: #1976D2 !important;
  color: #fff !important;
  border-color: #1565c0 !important;
  font-weight: 600;
}
@media (max-width: 768px) {
  .theme-group-label {
    min-width: 2.5rem;
    font-size: 0.62rem;
  }
  #theme-btn-area {
    padding: 4px 6px;
  }
}

/* Sidebar Bootstrap Icon styling */
.sidebar-icon {
  font-size: 1.25rem;
  color: #4a7ab5;
  display: flex;
  justify-content: center;
}

.nav-pills .nav-link.active .sidebar-icon {
  color: #1565c0;
}
