

@media (min-width: 1800px) {
  

  body {
    font-size: 0.92em !important;

  }

}

@media (max-height: 1000px) {
  

  .optionSummery ,
  .tradinginfo,
  .optionsinfo {
    display:none;
  }
  #optiondiv{
    height:640px !important;
  }
}



table:not(.tradeOrderBook) {
  user-select: none; /* 텍스트 선택 방지 */
}



.daymode  .trdivider .tddivider{
  border-left: 1px solid #eee!important;
  border-right: 1px solid #eee !important;
}

.nightmode .trdivider .tddivider{
  border-left: 1px solid #555 !important;
  border-right: 1px solid #555 !important;
}


.priceLevelDIV{
  height:10%;

}

.priceLevel {
  width: 100%; /* 테이블의 전체 너비 */
  table-layout: fixed; /* 균등한 칸 배분 */
  padding:7px;
  border-collapse: collapse; 
}


.priceLevel th,
.priceLevel td {
  text-align: center;
  padding: 8px; /* 셀 안의 여백 */
}

#priceLevel-tooltip-layer {
  display: none;
  position: absolute;
  padding: 10px;
  z-index: 10;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  max-width: 200px;
  line-height: 1.5;
}


.daymode #priceLevel-tooltip-layer {
  border: 1px solid #ccc;
  background-color: white;
  
}
.nightmode #priceLevel-tooltip-layer {
  border: 1px solid #666;
  background-color: #777;

}







@media (max-width: 1500px) {
  
  .exchangeinfo,
  .optionLabel1{
    display: none;
  }

}


#optiondiv {
  position: fixed;
  display: flex;
  right: -100%;  /* 기본 상태: 화면 오른쪽 밖 */
  top: 12%;
  width: 1080px;
  height: 903px;
  z-index: 102;
  text-align: center;
  visibility: hidden;
  transition: right 0.2s ease, visibility 0.2s ease;
}



#parent-container {
  display: flex;
  flex-direction: column;
  height: 100%; /* 또는 원하는 고정 높이 */
  min-height: 0;
}

/* 고정 높이 영역 */
#maintable-container {
  flex: 0 0 12%;
}

#middletable-container {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
}

#middletable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  height: 100%;  
}

#middletable .charttd {
  vertical-align: top;
  width:33%;
}

.chartContainer {
  display: block;
  width:100%;
  height:85%;
  position: relative;
}

.smallChartContainer {
  display: flex;
  justify-content: space-between; 
  flex: 1; /* 필요에 따라 비율 조정 가능 */
  margin-right: 10px; /* 좌우 간격을 주고 싶으면 사용 */
  margin-left: 10px; 
  height:15%;
}

.smallChartContainer:last-child {
  margin-right: 0; /* 마지막 div의 마진을 제거 */
}

.smallChart {
  width:100%;
  height:95%;
  display: flex; /* Flexbox 사용 */
  flex-direction: row; /* 행 방향으로 배치 */
  justify-content: space-around; /* 요소들 사이에 공간 배치 */
  align-items: center; /* 요소들 수직 정렬 */
}



  #futureTodayStart,
  #futureTodayHigh,
  #futureTodayLow,
  #futureTodayMiddle,
  #futureTodayCur,
  #marketindex,
  #fut_monthhigh{
    width:5%;  
  }
    
  .topinfo .tdfut-title,
  .topinfo .tdopt-title{
    width:5%;
  }
    
  .topinfo .tdfutMonth,
  .topinfo .tdoptMonth,
  .opt_openinterest,
  #top_future_5,
  .atMoneyStrikeTitle {
    width:5%;
  }

  .tdfutureTitle,
  .topinfo .titledayoverday {
    width:5%;
  }
 
  #dayOverday {
    width:4%;
  }
  
  #futureTodayVolatility {
    width:4%;
  }

  .topinfo #fut_openinterest {
    font-size: 13px;
    line-height: 90%;

  }
  .topinfo .exchangeinfo {
    width:5%;
    text-align:left;
    padding-left:5px;
    font-size: 13px;
    line-height: 90%;
  }
  .topinfo .currency {
    width:95px;
    padding-left:5px;
  }
    
   .topinfo select {
    width:80px;
    padding:2px;
    text-align:center;
  }

  #optiondiv .optionSummery tr{
    height:25px;
  }

  #middletable .charttd .tradetable tr,
  #optiondiv .optioninfo tr, 
  .tradinglist tr, 
  #optiondiv .tradinginfo tr{
    height:26px;
  }

  .topinfo{
    height:100%;
    table-layout: fixed;
    border-collapse: collapse;
  }

  .topinfo tr{
    height:25%;
  }

  .topinfo td {
    font-size: clamp(8px, 1.5vw, 14px);
  }

  .trendnInflection td {
    height: 76px; /* 고정 높이 설정 */
    width: 77px; /* 고정 높이 설정 */
  }


  .td-current-price {
    font-weight: bold;
    font-size: 18px;
  }
    
  .loading-image-future,
  .loading-image-option1,
  .loading-image-option2,
  .loading-image-option3,
  .loading-image-option4,
  .loading-image-option5 {
    position: absolute; /* 절대 위치 지정 */
    top: 50%;            /* 부모 세로 중간 */
    left: 50%;           /* 부모 가로 중간 */
    transform: translate(-50%, -50%); /* 자기 자신 중심에 정렬 */
    width: 50px; /* 이미지 크기 설정 */
    height: 50px; /* 이미지 크기 설정 */
    z-index: 101; /* 컨텐츠 뒤에 배치 */
  }

  .loading-image-small {
    position: absolute; /* 절대 위치 지정 */
    top: 50%;            /* 부모 세로 중간 */
    left: 50%;           /* 부모 가로 중간 */
    transform: translate(-50%, -50%); /* 자기 자신 중심에 정렬 */
    width: 50px; /* 이미지 크기 설정 */
    height: 50px; /* 이미지 크기 설정 */
    z-index: 101; /* 컨텐츠 뒤에 배치 */
  }

  .highlight-border-high {
    box-shadow: inset 0 0 0 1px var(--color-high) !important;
  }
  
  .highlight-border-low {
    box-shadow: inset 0 0 0 1px var(--color-low) !important;
  }
  
  .highlight-border-both {
    box-shadow: inset 0 0 0 1px var(--color-both) !important;
  }

    
  #opt_call_monthhigh_1,
  #opt_call_monthlow_1,
  #opt_call_monthhigh_2,
  #opt_call_monthlow_2,
  #opt_call_monthhigh_3,
  #opt_call_monthlow_3,
  #opt_call_monthhigh_4,
  #opt_call_monthlow_4,
  #opt_call_monthhigh_5,
  #opt_call_monthlow_5,
  #opt_call_monthhigh_6,
  #opt_call_monthlow_6,
  #opt_call_monthhigh_7,
  #opt_call_monthlow_7{
    min-width: 50px; 
  }

  .optionTitle {
    width:50px;
  }

  

.topinfo .warning {
  background-color:rgb(194, 64, 64);
  color:#eee;
}


.topinfo .exchangeinfo .currency {
  display: inline-block;
  min-width: 80px; /* 최소 너비 설정 */
  text-align: left; /* 텍스트 정렬 */
}


.daymode .expressStrikeReverseCallBase,
.daymode .expressStrikeReversePutBase,
.daymode .expressStrikeReverseCall,
.daymode .expressStrikeReversePut,
.daymode #expressStrikeGroup {
  border: 1px solid #ccc;
  background-color: #eee;
  color: #555;
  font-size: 15px;
  cursor: pointer;
  padding:0px 6px;
  height: 23px;;
  text-align:center;
  margin-left:2px;
}

.daymode .expressStrikeReverseCall.active,
.daymode .expressStrikeReversePut.active,
.daymode #expressStrikeGroup.active {
  border: 1px solid #bbb;
  background-color: #444;
  color: #eee;
}

.daymode .expressStrikeReverseCall:disabled,
.daymode .expressStrikeReversePut:disabled {
  border: 1px solid lightgray;
  background-color: lightgray;
  color: darkgray;
  cursor: not-allowed;
}

.daymode #expressStrikeSummeryCall,
.daymode #expressStrikeSummeryPut,
.daymode .expressStrikeCall,
.daymode #expressStrike,
.daymode .expressStrikePut{
  border: 1px solid #ccc;
  background-color: #eee;
  color:#555
}


.nightmode .expressStrikeReverseCallBase,
.nightmode .expressStrikeReverseCall,
.nightmode .expressStrikeReversePutBase,
.nightmode .expressStrikeReversePut,
.nightmode #expressStrikeGroup {
  border: 1px solid #444;
  background-color: #444;
  color: #ccc;
  font-size: 15px;
  cursor: pointer;
  padding:0px 5px;
  text-align:center;
}

.nightmode .expressStrikeReverseCall.active,
.nightmode .expressStrikeReversePut.active,
.nightmode #expressStrikeGroup.active {
  border: 1px solid #777;
  background-color: #000;
  color: #ddd;
}

.nightmode .expressStrikeReverseCall:disabled,
.nightmode .expressStrikeReversePut:disabled ,
.nightmode .expressStrikePut:disabled {
  border: 1px solid #777;
  background-color: #555;
  color: #333;
  cursor: not-allowed;
}

.nightmode #expressStrikeSummeryCall,
.nightmode #expressStrikeSummeryPut,
.nightmode .expressStrikeCall,
.nightmode #expressStrike,
.nightmode .expressStrikePut{
  border: 1px solid #444;
  background-color: #444;
  color:#dddddd
}


#expressStrikeSummeryCall,
#expressStrikeSummeryPut,
.expressStrikeCall,
.expressStrikePut,
#expressStrike {
  padding:2px;
  text-align:center;
  width:60px !important;
  height:24px;
}
#mainStrike {
  padding:2px;
  text-align:center;
  width:105px !important;
}

/*선물 진폭이 부족한 상태*/
@keyframes blink {
  0%, 100% {
    background-color: rgb(255, 231, 187); 
    color: #888888; 
  }
  50% {
    background-color: #eee; 
    color: #888888; 
  }
}



/* 선물 진폭이 부족한 상태 */
.alertState {
  animation: blink 0.5s infinite; /* 0.5초 동안 반복되는 애니메이션 */
}


#buyingVolume { 
  color: var(--color-buy);  
}
#sellingVolume { 
  color: var(--color-sell);  
}


.topinfo, 
#middletable .charttd .tradetable, 
#middletable .middle .tradetable, 
#middletable .optiontable .optioninfo, 
.tradinglist, 
#middletable .optiontable .optionSummery,
#middletable .optiontable .tradinginfo{
  vertical-align:top;
  text-align:center;
  width:100%;
  /* border: 1px solid #CCCCCC; */
  border-collapse: collapse;
  border-spacing: 0; 
  
}

/* 
 .topinfo th, 
#middletable .charttd .tradetable th,
#middletable .middle .tradetable th,
#middletable .optiontable .optioninfo th , 
.tradinglist th, 
#middletable .optiontable .optionSummery th,
#middletable .optiontable .tradinginfo th{
  border: 1px solid #CCCCCC;
} */



#indexBtnArea {
  position: fixed;
  bottom: 55px;
  right: 20px;
  display: flex;
  align-items: center; /* 수직 중앙 정렬 */
  gap: 5px; /* 요소 간 간격 */
}


.showOptionPriceBtn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  margin-right:5px;
}

.past-searchBtn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

#profitlist_btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
}

.mainmenu-wrapper select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #eee; /* 변경된 배경 색상 */
  background-image: linear-gradient(45deg, transparent 50%, gray 50%),
                    linear-gradient(135deg, gray 50%, transparent 50%),
                    linear-gradient(to right, #ccc, #ccc);
  background-position: calc(100% - 20px) calc(1em + 2px),
                       calc(100% - 15px) calc(1em + 2px),
                       calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 16px;
  color: #333;
}

.mainmenu-wrapper #past-yearmonth {
  width:155px;
}

.mainmenu-wrapper #past-day {
  width:125px;
}


.mainmenu-wrapper #past-searchBtn {
  z-index:101;
}

.nightmode .showOptionPriceBtn{  
  background-color: #555;
  color:#dddddd;
}
.nightmode #profitlist_btn{  
  background-color: #555;
  color:#dddddd;
}


#atMoneyStrike {
  width:5%;
}




#optiondiv.visible {
  right: 0;
  visibility: visible;
}

#optiondiv.hidden {
  right: -100%;
  visibility: hidden;
}

/* 
right: -100%;
 초기 상태 등 추가 설정
transition: right 0.2s ease; */

#optiondiv .left-div {
  background-color: transparent; /* 배경을 투명하게 설정 */
  flex: 1; /* 왼쪽 div가 가능한 너비를 차지하도록 설정 */
}
.daymode #optiondiv .expressStrikeTable {  
  background-color: #ddd;
  border: 1px solid #CCCCCC;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding-bottom:10px;
}

.nightmode #optiondiv .expressStrikeTable {  
  border: 1px solid #666;
  background-color: #444;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding-bottom:10px;
}

.daymode #optiondiv  .left-close-option {
  margin-top:10px;
  background-color: #ddd;
  padding: 5px;;
  border: 1px solid #bbb;
  width:130px;
}

.nightmode #optiondiv  .left-close-option {
  margin-top:10px;
  background-color: #444;
  padding: 5px;;
  border: 1px solid #666;
  color:#eee;
  width:130px;
}


#optiondiv .expressStrikeTable th {  
  height : 30px;
}

#optiondiv .expressStrikeTable.optionsinfo {  
  margin-top:655px;
}

.summery-option-kospi200{
  width:85px;
  height:35px;
  text-align: center !important;
}

#kospi200_forMonthlyOption {
  font-weight:bold !important;
}


#optiondiv  .right-div {
  flex: 1; /* 오른쪽 div도 남은 공간을 차지 */
}

#optiondiv  .optionContainer {
  width:920px;
}


.daymode #optiondiv .right-div{
  background-color: #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nightmode #optiondiv .right-div {
  background-color: #444;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* daymode 스타일 */
.daymode .tradinglist, 
.daymode .tradinglist td, 
.daymode .tradinglist th, 
.daymode .topinfo th, 
.daymode #middletable .charttd .tradetable th,
.daymode #middletable .middle .tradetable th,
.daymode .topinfo td, 
.daymode #middletable .charttd .tradetable td,
.daymode #middletable .middle .tradetable td,
.daymode .topinfo, 
.daymode #middletable .charttd .tradetable, 
.daymode #middletable .middle .tradetable, 
.daymode #optiondiv .optioninfo th, 
.daymode #optiondiv .optionSummery th,
.daymode #optiondiv .tradinginfo th, 
.daymode #optiondiv .optioninfo td, 
.daymode #optiondiv .optionSummery td,
.daymode #optiondiv .tradinginfo td, 
.daymode #optiondiv .optioninfo, 
.daymode #optiondiv .optionSummery,
.daymode #optiondiv .tradinginfo,
.daymode #middletable .priceLevel td {
  border: 1px solid #CCCCCC;
}

/* nightmode 스타일 */
.nightmode  .topinfo th, 
.nightmode #middletable .charttd .tradetable th,
.nightmode #middletable .middle .tradetable th,
.nightmode #optiondiv .optioninfo th, 
.nightmode .tradinglist th, 
.nightmode #optiondiv .optionSummery th,
.nightmode #optiondiv .tradinginfo th, 
.nightmode  .topinfo td, 
.nightmode #middletable .charttd .tradetable td,
.nightmode #middletable .middle .tradetable td,
.nightmode #optiondiv .optioninfo td, 
.nightmode .tradinglist td, 
.nightmode #optiondiv .optionSummery td,
.nightmode #optiondiv .tradinginfo td, 
.nightmode  .topinfo, 
.nightmode #middletable .charttd .tradetable, 
.nightmode #middletable .middle .tradetable, 
.nightmode #optiondiv .optioninfo, 
.nightmode .tradinglist, 
.nightmode #optiondiv .optionSummery,
.nightmode #optiondiv .tradinginfo,
.nightmode #middletable .priceLevel td {
  border: 1px solid #666;
}




#opt_monthly_call_strike_1,
#opt_overnight_call_strike_1,
#opt_monthly_put_strike_1,
#opt_overnight_put_strike_1 ,
#wky_monday_call_strike_1,
#wky_monday_put_strike_1 ,
#wky_thursday_call_strike_1,
#wky_thursday_put_strike_1  {
  
  width: 70px !important;
}

#opt_monthly_call_price_1,
#opt_monthly_put_price_1,
#opt_overnight_call_price_1,
#opt_overnight_put_price_1,
#wky_monday_call_price_1,
#wky_monday_put_price_1, 
#wky_thursday_call_price_1,
#wky_thursday_put_price_1 {
  width:50px !important;
}


.trendnInflection td {
  padding:0px;
  margin:0px;
  overflow: hidden; /* 내용이 넘치지 않도록 설정 */
  position: relative; 
  vertical-align: top;
}
.trendnInflection td .content {
  padding:0px;
  margin:0px;
  overflow: hidden; /* 내용이 넘치지 않도록 설정 */
  font-size:10px !important;
  text-align:left;
  line-height: 100%;
  width: 100%; 
  box-sizing: border-box;
}


.tdcalculate {
  font-weight:bold;
}

.daymode .criticalPrice{
  background-color: #f2f2e2;
} 


.daymode .td-current-price {
  background-color:#fbfbf1;
} 

.nightmode .criticalPrice{
  background-color: #444444;
}

.nightmode .td-current-price {
  background-color:#333;
} 


.chartFuture,
.chartOption {
  width:100%;
  height: 50%;
  position: relative;
}

.chartSmall1,
.chartSmall2  {
  height:100%;
  width:100%;
  margin-top:6px;
  position: relative;  
}


.extratools{
  width:400px; 
  padding-top:10px;
}

.chartTradingActivityContainer {
  display: block;
  width:100%;
  height:600px;
  position: relative;
}

#chartTradingActivityFuture,
#chartTradingActivityCallOption,
#chartTradingActivityPutOption,
#chartFuturueOverNight,
#chartFutureNasdaq,
#chartFutureHangseng ,
#chartSamsungElectronics  {
  width:100%;
  height: 200px;
  position: relative;
}



.option-up-button {
  position: absolute; /* 절대 위치 지정 */
  top: 0; /* 상단 부터의 거리 */
  left: 78px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  width:16px;
  height:22px;
  margin:1px;
  text-align:center;
  font-size:0.70em
}
.option-down-button {
  position: absolute; /* 절대 위치 지정 */
  top: 0; /* 상단 부터의 거리 */
  left: 96px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  width:16px;
  height:22px;
  margin:1px;
  text-align:center;
  font-size:0.70em
}



.summery-optioncall-up-button,
.summery-optionput-up-button {
  width:20px;
  height:22px;
  margin:1px;
  text-align:center;
  font-size:0.70em;
}
.summery-optioncall-down-button,
.summery-optionput-down-button {
  width:20px;
  height:22px;
  margin:1px;
  text-align:center;  
  font-size:0.70em;
}
 

#chartStrike {
  position: absolute; /* 절대 위치 지정 */
  top: 0px; /* 상단 부터의 거리 */
  left: 0px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  width:78px;
  padding:2px;
  text-align:center;
}


.ma-labels {
  position: absolute; top: 18px; left: 0px; padding-left:9px; z-index: 102;
}

.optionLineButton {
  position: absolute; /* 절대 위치 지정 */
  top: 1px; /* 상단 부터의 거리 */
  left: 117px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
}

.daymode .optionLineButton button {
  border: 1px solid #ccc;
  background-color: #eee;
  padding: 2px;
  font-size: 0.85em;
}

.daymode  .optionLineButton button.active {
  background-color: #bcd; /* 눌렀을 때 색상 */
  border-color: #999;
}
.nightmode .optionLineButton button {
  border: 1px solid #444;
  background-color: #444;
  color:#dddddd;
  padding: 2px;
  font-size: 0.85em;
}

.nightmode .optionLineButton button.active {
  background-color: #777; /* 눌렀을 때 색상 */
  color:#eee;
}

.optionLabel1 {
  position: absolute; /* 절대 위치 지정 */
  top: 0px; /* 상단 부터의 거리 */
  left: 240px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  padding:4px;
}

.optionLabel {
  position: absolute; /* 절대 위치 지정 */
  top: 0px; /* 상단 부터의 거리 */
  left: 85px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  padding:4px;
}

.chartLabeloption2,
.chartLabeloption3,
.chartLabeloption4,
.chartLabeloption5 {
  position: absolute; /* 절대 위치 지정 */
  top: 0px; /* 상단 부터의 거리 */
  left: 0px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  padding:4px;
}
 
.daymode #chartStrike ,
.daymode .option-up-button,
.daymode .option-down-button,
.daymode .summery-optioncall-up-button  ,
.daymode .summery-optioncall-down-button, 
.daymode .summery-optionput-up-button  ,
.daymode .summery-optionput-down-button   {
  border: 1px solid #ccc;
  background-color: #eee;  
}

.daymode .optionLabel ,
.daymode .chartLabeloption2,
.daymode .chartLabeloption3,
.daymode .chartLabeloption4,
.daymode .chartLabeloption5,
.daymode .chartLabeloptions {
  background-color: #eee;  
}

.nightmode #chartStrike,
.nightmode .option-up-button,
.nightmode .option-down-button, 
.nightmode .summery-optioncall-up-button  ,
.nightmode .summery-optioncall-down-button, 
.nightmode .summery-optionput-up-button  ,
.nightmode .summery-optionput-down-button  {
  border: 1px solid #444;
  background-color: #444;
  color:#dddddd

}

.nightmode .optionLabel ,
.nightmode .chartLabeloption2,
.nightmode .chartLabeloption4,
.nightmode .chartLabeloption5,
.nightmode .chartLabeloptions,
.nightmode .chartLabeloption3 {
  background-color: #555;
  color:#dddddd;
}



.nightmode .ma-labels {
  background-color: #555;
  color:#dddddd

}

.chartLabel,
.chartLabeloptions,
.otherChartLabel,
.chartTradingActivityLabel {
  position: absolute; /* 절대 위치 지정 */
  top: 0; /* 상단 부터의 거리 */
  left: 5px; /* 왼쪽 부터의 거리 */
  z-index: 101; /* 다른 요소들 위에 오도록 z-index 설정 */
  padding:2px;
}

.otherchart-button {
  width:52px;
  height:18px;
  margin-bottom:3px;
  text-align:center;
  font-size:0.70em
}



#middletable .optiontable{
  position: relative; 
  overflow: hidden; /* 넘치는 콘텐츠 숨김 */
  height: 100%; 
}

#middletable .optiontable .tdtradinginfo{
  vertical-align: top;
}

#pprt_ord_psbl_cash,
#fut_pricePerOne {
  width:100px !important;
}

#fut_startDeposit {
  width:70px;
}

#sll_buy_dvsn_name {
  width:45px;
}

#lqd_psbl_qty {
  width:35px;
}
#ccld_avg_unpr1,
#futureTodayCurAccount {
  width:70px;
}

#future_diff {
  width:50px;
}

#fee {
  width:80px;
}

#futr_evlu_pfls_amt ,
#trad_pfls_amt {
  width:100px;
}




.tdtradinginfoblank{
  width:17px;
}


.tdtradinglist {
  width: 250px;
  vertical-align: top;
}

.table-container {
  width: 100%;
  max-height: 100px; 
  overflow-y: auto;
  overflow-x: hidden;
}

.tradinglist {
  max-height: 50px; 
}


.noRecord{  
  height:70px !important;
  color: #ababab;
  font-style: italic;
}

#middletable .optiontable .ruletitle{  
  display: flex;
  align-items: center; /* 세로 중앙 정렬 */
  justify-content: center; /* 가로 중앙 정렬 */
  width: 100%;
  height: 29px;
  border: 1px solid #CCCCCC;
  background-color: #eee;
}




#middletable .optiontable .rulemessage{
  margin-top:1px;
  width: 100%; /* 셀에 맞게 크기 조정 */
  min-height: 30px; /* 최대 높이 설정 */
  overflow: auto; /* 필요시 스크롤바 표시 */
}

#drawingOptionCanvas {
  position: absolute;
  top: 0;
  left: 200px;
  width:100%;
  height:100%;
  pointer-events: auto;
}



.info-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin: 0 0;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.info-table th, .info-table td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ccc;
}

.info-table th {
  background-color: #e9e9e9;
  font-weight: bold;
}

.nightmode .info-table {
  background-color: #555;
  border: 1px solid #333;
}

.nightmode .info-table th,
.nightmode .info-table td {
  background-color: #777;
  border: 1px solid #444;
}

.badge-accident::after {
  content: '★'; /* 별 이모티콘 */
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 20px;
  color: green; /* 이모티콘 색상 */
}

.badge-check::after {
  content: '✔'; /* 체크 이모티콘 */
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 20px;
  color: green; /* 이모티콘 색상 */
}




@keyframes blinkboth {
  0%, 100% { background-color: transparent; }
  50% { background-color: var(--color-both); }
}
  
@keyframes blinkcall {
  0%, 100% { background-color: transparent; }
  50% { background-color: var(--color-call); }
}

@keyframes blinkput {
  0%, 100% { background-color: transparent; }
  50% { background-color: var(--color-put); }
}

.blinkboth {
  animation: blinkboth 1s linear infinite;
}

.blinkcall {
  animation: blinkcall 1s linear infinite;
}
.blinkput {
  animation: blinkput 1s linear infinite;
}

.controlPanel-container {
  left: 0px; /* 좌측 정렬 */
  bottom: 2px; /* 하단 정렬 */
  padding: 3px;
  width:290px;
  margin-left:2px;
  margin-top:2px;
  margin-right:5px;
  border-radius: 5px;
  background-color: #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.controlPanel-container .hideOptionPriceBtn{
  transition: transform 0.3s;
}

#controlPanel {
  margin-bottom: 20px;
}
#controlPanel button, input[type="color"] {
  margin-right: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 4px;
  padding-right: 4px; 
}
#controlPanel .selectedTool {
  background-color: #9592e2; /* 선택된 도구의 배경색 */
  color: white; /* 선택된 도구의 글자색 */
}
#controlPanel #colorPicker {
  width:30px;
}
#controlPanel button {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6; /* 기본 상태의 투명도 */
}
#controlPanel button.selectedTool {
  opacity: 1; /* 선택된 버튼의 투명도 */
}
#controlPanel button:focus {
  outline: none;
}
.eraserCursor {
  cursor: url('../media/eraser_cursor.png'), auto !important;
}

.detailCursor {
  cursor: url('../media/detail_cursor.png'), auto !important;
}

.drawCursor {
  cursor: crosshair;
}

#linesContainer {
  z-index: 10000;
}

.detailsArea {
  animation: flashRed 1.2s ease-out; /* 애니메이션 이름, 지속 시간, 타이밍 함수 설정 */
}



.pastdata .topinfo {
  background-color: #ddd;

}





/* 전체 컨테이너: 재생/정지/시간 표시를 가로 정렬(Flex) */
.replay-ui {
  display: flex;
  align-items: center;        /* 요소 간 간격 */
  background-color: #ddd;  /* 배경색 */
  padding: 2px 10px;       /* 내부 여백 */
  border-radius: 4px;      /* 모서리를 둥글게 */
  position: relative;      /* 필요 시 z-index 조절 가능 */
  z-index: 210;
}


/* 시간 표시(예: 08:45:38) */
.replay-time {
  font-size: 14px;
  font-weight: bold;
  color: #555;
}

/* 버튼 스타일 (play, stop 등) */
.replay-ui button {
  background: none;
  border: 1px solid #555;
  margin-top:1px;
  padding: 2px 5px;
  color: #555;
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
  transition: background-color 0.2s;
  margin-left:3px;
}
.replay-ui button:hover {
  background-color: #ddd;
}
.replay-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* 반투명 흰색 */
  z-index: 10000;  /* replay-ui 내부 다른 요소들보다 위에 표시 */
  pointer-events: auto; /* 오버레이가 클릭 이벤트를 받음 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.replay-overlay img {
  width: 50px; /* 필요에 따라 조정 */
  height: 50px;
}

.progress-wrap {
  flex: 1;
  width: 200px;
  position: relative;
}

/* 원본 슬라이더 스타일 */
.progress-bar {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #ccc;
  outline: none;
  cursor: pointer;
  margin-left:5px;
}

/* 프로그레스바 overlay 스타일 (확대된 슬라이더) */
.progress-overlay {
  position: absolute;
  top: -5px;
  left: 0;
  width: 500px;   /* 원하는 너비 */
  height: 50px;   /* 원하는 높이 */
  z-index: 210;
  pointer-events: auto; /* 보일 때 mouse 이벤트 받도록 */
  opacity: 0;          /* 기본은 숨김 */
  transition: opacity 0.3s ease;
}
/* overlay 활성화 시 */
.progress-overlay.show {
  opacity: 1;
  pointer-events: auto; /* 확대된 슬라이더로 이벤트 받아들임 */
}

/* 원본 슬라이더 thumb (크롬/사파리) */
.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
}

/* 원본 슬라이더 thumb (파이어폭스) */
.progress-bar::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #555;
  cursor: pointer;
}

/* (필요에 따라 확대한 슬라이더의 스타일도 조절 가능) */
.progress-bar-large {
  width: 100%;
  -webkit-appearance: none;
  height: 30px;   /* 원본보다 더 두껍게 */
  border-radius: 5px;
  background: #999;
  outline: none;
  cursor: pointer;
}
.progress-bar-large::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 80px;      /* 기본 14px보다 크게 지정 */
  height: 80px;     /* 높이도 크게 지정 */
  border-radius: 50%;
  background: blue;
  cursor: pointer;
  margin-top: -12px;  /* 트랙과의 수직 정렬 보정: 높이에 맞게 조절 */
}

/* 큰 슬라이더 thumb (파이어폭스) */
.progress-bar-large::-moz-range-thumb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: blue;
  cursor: pointer;
}
.speed-control {
  position: relative;
  display: inline-block;
}
.speed-btn {
  border: 1px solid #555;
  background: none;
  padding: 2px 5px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 4px;
  margin-right:3px;
}
.speed-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 50px; /* 옵션 너비 */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index:101;
}
.speed-dropdown div {
  padding: 4px 8px;
  cursor: pointer;
}
.speed-dropdown div:hover {
  background-color: #eee;
}


.hide {
  display: none;
}

.opacity-100 {
  opacity: 1;
}

.opacity-20 {
  opacity: 0.2;
}


.display-hidden {
  display: none !important;
}

.display-visible {
  display: block !important;
}
.tick5color {
  color:orange;
}
.tick20color {
  color:#999;
}


.tooltip {
  line-height: 0.8;
  position: absolute;
  display: none;
  padding: 8px;
  box-sizing: border-box;
  font-size: 12px;
  text-align: left;
  z-index: 102;
  top: 12px;
  left: 12px;
  pointer-events: none;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.tooltipdiv div{
  margin-top:4px;
}

.tooltip .margin {
  margin:10px;
}



#strike-popuplayer {
  display: none;           /* 초기에는 숨김 */
  position: absolute;
  padding: 10px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  z-index: 103;
  font-size:16px;
  width: 270px;     
}
#strike-popuplayer > div {
  display: table;
  table-layout: fixed;
  margin-bottom: 10px;
  width: 100%;
  height: 26px;
}
#strike-popuplayer button {
  height:100% !important
}

#strike-popuplayer > div > span {
  display: table-cell;
  vertical-align: middle;
  box-sizing: border-box; 
}

#strike-popuplayer > div > span.color_up,
#strike-popuplayer > div > span.color_down {
  width: 35%;
  padding-right: 8px;
}

/* 2) 나머지 셀: .color_up·.color_down 둘 다 아닌 span 만 90% */
#strike-popuplayer > div > span:not(.color_up):not(.color_down) {
  width: 65%;
}

#strike-popuplayer select {
  width:80px !important;
}

.daymode #strike-popuplayer {
  border: 1px solid #ccc;
  background: #eee;
}

.nightmode #strike-popuplayer {
  border: 1px solid #777;
  background-color: #000;
  color: #ddd;
}



/*************위클리 ****/
.weeklymode #middletable{
  height:100% !important;
}  
.weeklymode .chartContainer {
  height:95%;
}

.weeklymode #optiondiv {
  width: 920px !important;
  height: 640px !important;
  top: 130px !important;

} 


.weeklymode .optionSummery ,
.weeklymode .tradinginfo,
.weeklymode .optionsinfo {
  display:none;
}
.weeklymode .topinfo {
  background-color: #E8F5E9;
}
.weekly-title{
  width:120px;
}
#weeklyPageName{
  font-size:24px;
  line-height: 150%;
  color:#1565C0;

}

.tddivider{
  width:1px !important; 
  font-size: 1px !important; 
  height:1px !important;
  padding-inline: 0.25em !important;
}
.trdivider1px {
  font-size: 1px  !important;   
  padding-inline: 0.25em  !important;
  height: 1px !important;
}
.trdivider {
  font-size: 1px;   
  padding-inline: 0.25em;
  height: 5px !important;
  border-left: none  !important; /* 왼쪽 border 제거 */
  border-right: none  !important; /* 오른쪽 border 제거 */
}
