﻿body {
  padding: 10px;
  background-color: white;
  color: black;
  font-size: 12px;
}
a {
  color: #337ab7;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}
.bg-basic {
  background-color: white;
}
.body-content {
  padding-left: 15px;
  padding-right: 15px;
}
.dl-horizontal dt {
  white-space: normal;
}
input,
select,
textarea {
  max-width: 280px;
}
.gainercolor {
  color: #D6589F;
  font-weight: bold;
}
.losercolor {
  color: #337ab7;
  font-weight: bold;
}
.wrapper {
  display: inline-block;
  margin-right: 10px;
  vertical-align: top;
}
.wrapper > .tickerwrapper {
  position: relative;
  /*height: 250px;*/
  width: 155px;
  /*overflow-y: auto;*/
}
.wrapper > .tickerwrapper > .ticker {
  border: 1px solid lightgreen;
  border-bottom: none;
  border-collapse: collapse;
  width: 100%;
}
.wrapper > .tickerwrapper > .ticker:nth-child(odd) {
  background-color: lightgreen;
}
#gainerList,
#loserList {
  display: inline-block;
}
#gainerList .wrapper > .tickerwrapper > .ticker {
  border: 1px solid #FFE5FF;
}
#gainerList .wrapper > .tickerwrapper > .ticker:nth-child(odd) {
  background-color: #DDEBF7;
}
#loserList .wrapper > .tickerwrapper > .ticker {
  border: 1px solid transparent;
}
#loserList .wrapper > .tickerwrapper > .ticker:nth-child(odd) {
  background-color: #DDEBF7;
}
#favoritesList {
  display: inline-block;
  border-right: solid 1px #ccc;
  margin-bottom: 50px;
}
#favoritesList .wrapper > .tickerwrapper {
  padding: 0;
  margin: 0;
  list-style: none;
}
#favoritesList .wrapper > .groupname {
  font-size: 14px;
}
#favoritesList .wrapper > .tickerwrapper > .ticker {
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: none;
  border-bottom: none;
  padding: 2px 3px;
  background-color: white;
}
#favoritesList .wrapper > .tickerwrapper > .ticker > .price {
  text-align: right;
}
#favoritesList .wrapper > .tickerwrapper > .ticker > .percent {
  text-align: right;
}
#favoritesList .wrapper > .tickerwrapper > .ticker > .d5percent {
  width: 30px;
  text-align: right;
}
#favoritesList .wrapper > .tickerwrapper > .ticker:first-child {
  border-top: 1px solid transparent;
}
#favoritesList .wrapper > .tickerwrapper > .ticker:last-child {
  border-bottom: 1px solid transparent;
}
#favoritesList .wrapper > .tickerwrapper > .ticker:nth-child(5n+0) {
  margin-bottom: 15px;
  border-bottom: 1px solid transparent;
}
#favoritesList .wrapper > .tickerwrapper > .ticker:nth-child(5n+1) {
  border-top: 1px solid transparent;
}
.text-favorite {
  color: red;
}
.text-gray {
  color: #ccc;
}
.portlet-placeholder {
  border: 1px dotted black;
  margin: 0 1em 1em 0;
  height: 25px;
  width: 100%;
}
.wrapper > .tickerwrapper > .ticker.header {
  position: sticky;
  width: 100%;
  top: 0;
  background-color: lightgreen;
}
.wrapper > .tickerwrapper > .ticker:last-of-type {
  border-bottom: 1px solid lightgreen;
}
.wrapper > .tickerwrapper > .ticker > div {
  display: inline-block;
  font-size: 12px;
}
.wrapper > .tickerwrapper > .fixedmarketinfo > div {
  font-size: 16px;
}
.wrapper > .tickerwrapper > .ticker > div.details {
  z-index: 100;
  position: absolute;
  min-width: 300px;
  display: none;
  border: 1px solid white;
  border-radius: 3px;
  padding: 10px;
  background-color: white;
}
.wrapper > .tickerwrapper > .ticker > div.symbol {
  width: 30px;
  position: relative;
}
.wrapper > .tickerwrapper > .ticker > div.symbol > .icons {
  position: absolute;
  right: 0;
  top: 0;
  white-space: nowrap;
}
.wrapper > .tickerwrapper > .ticker > div.symbol > .icons a {
  text-decoration: none;
}
.wrapper > .tickerwrapper > .ticker > div.price {
  width: 40px;
}
.wrapper > .tickerwrapper > .ticker > div.percent {
  width: 30px;
}
.wrapper > .tickerwrapper > .ticker > div.d10 {
  display: none;
}
.wrapper > .tickerwrapper > .ticker > div.d20 {
  display: none;
}
.wrapper > .tickerwrapper > .ticker > div.d30 {
  display: none;
}
.wrapper > .tickerwrapper > .ticker > div.d40 {
  display: none;
}
.wrapper > .tickerwrapper > .ticker > div.d50 {
  display: none;
}
.wrapper > .tickerwrapper > .ticker > div.d60 {
  display: none;
}
.wrapper > .tickerwrapper > .ticker > div.sorter {
  width: 20px;
}
#htmlurltooltip > div.header {
  margin-left: 5px;
}
#htmlurltooltip > div.header > div {
  display: inline-block;
  margin-right: 15px;
}
.table.narrowpadding td,
.table.narrowpadding th {
  padding: 3px;
}
.monitoringboardwhitespace {
  height: 15px;
}
.monitoringboardwhitespace + .losercolor {
  border-top: 1px solid #DDEBF7;
}
.monitoringboardwhitespace + .gainercolor {
  height: 15px;
  border-top: 1px solid #DDEBF7;
}
.table tr > .left2pxborder {
  border-left-width: 3px;
}
hr {
  margin: 5px 0;
}
.stockdetails .header > div {
  display: inline-block;
}
.favoritesListRev {
  display: inline-block;
  width: calc(50% - 5px);
  vertical-align: top;
}
.wrapperRev ul {
  padding: 0;
}
.wrapperRev .tickerwrapper li {
  display: inline-block;
  width: 105px;
  border: 1px solid #aaa;
  border-radius: 2px;
  vertical-align: top;
  margin-bottom: 5px;
}
.wrapperRev .tickerwrapper .header {
  display: none;
}
.wrapperRev .tickerwrapper .symbol {
  display: block;
  text-align: center;
  font-weight: bolder;
  color: dimgray;
  font-size: 14px;
}
.wrapperRev .tickerwrapper .percentwrapper {
  text-align: center;
}
.wrapperRev .tickerwrapper .percentwrapper .percent {
  display: inline-block;
  width: calc(100% / 4 - 3px);
  overflow: hidden;
  border: 1px solid #aaa;
}
.wrapperRev .tickerwrapper .indicators {
  text-align: center;
}
.wrapperRev .tickerwrapper .indicators div {
  display: inline-block;
  font-weight: initial;
  vertical-align: top;
  text-align: center;
}
.wrapperRev .tickerwrapper .indicators2 div {
  width: calc(50% - 3px);
  overflow: hidden;
}
.wrapperRev .tickerwrapper .price {
  text-align: center;
}
.portlet-groupplaceholder {
    display: inline-block;
    width: 200px;
    height: 300px;
    vertical-align: top;
    border: 1px dashed gray;
}
/* 차트 위에 떠있는 정보창 (Legend) 스타일 */
.chart-legend {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 20;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    line-height: 18px;
    font-weight: 300;
    pointer-events: none; /* 마우스 클릭이 차트로 통과되도록 설정 */
    color: black;
    background-color: rgba(255, 255, 255, 0.7); /* 배경을 반투명하게 */
    padding: 4px 8px;
    border-radius: 4px;
    display: none; /* 기본적으로 숨김 (데이터 로드 후 표시) */
}
/* 각 항목별 색상 강조 (선택사항) */
.legend-label {
    font-weight: bold;
    margin-right: 3px;
}

.legend-value {
    margin-right: 10px;
}