/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Mar 24, 2016, 10:01:51 AM
    Author     : Tantion Tan
*/

.chart_container{
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px; 
    overflow: hidden;
    min-width: 100px;
    min-height:100px;
    font-size: 14px;
    /*width: 640px;*/
    /*height:500px;*/
}

.chart_container.noselect {
    /*    -webkit-touch-callout: none;  iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* IE/Edge */
}

.chart_container *{
    font-family: sans-serif;
}

.chart_container input,
.chart_container select{
    margin: 0;
    padding: 0;
    border: 1px;
    border-radius: 0;
    -webkit-appearance: none;
    -webkit-border-radius:0px;
}

.chart_container ol, 
.chart_container ul,
.chart_container li,
.chart_container a,
.chart_container div{
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    line-height: 120%;
    list-style: none;
    text-decoration: none;
    /*color: #222;*/
}

.chart_container a{
    cursor: pointer;
}

.chart_container ul.list{
    font-size: 0;
    display: inline-block;
}
.chart_container ul.list>li{
    display: inline-block;
}

.chart_container select::-ms-expand{
    display: none
}
.chart_container select{
    height: 24px;
    background: url("../img/dropdown-arrow.png") no-repeat right center #F4F4F4;
    border: 0;
    margin: 0;
    padding: 0 15px 0 3px;
    outline : none;
    overflow : hidden;
    text-indent : 0.01px;
    cursor: pointer;

    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
}

.chart_container table{
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}
.chart_container table td,
.chart_container table th{
    border: 0;
    margin: 0;
    /*padding: 5px;*/
}

.chart_container>div{
    position: absolute;
}
.chart_container .status-bar{
    width: 100%;
    top: 50px;
    height: 48px;
    padding-left: 10px;
    padding-top: 5px;
    font-size: 12px;
    border-top-style: solid;
    border-top-width: 2px;
}
.chart_container .popup_area{
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    z-index: 200;
}
.chart_container .popup_area a.icon_popup{
    text-align: right;
    display: block;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    /*opacity: 0.6;*/
    /*border: 1px solid #666666;*/
}
.chart_container ul.icon_area{
    position: absolute;
    left: 0;
    top: 100px;
    bottom: 0;
    width: 40px;
    font-size:0px;
    z-index: 1;
}
.chart_container ul.icon_area>li{
    display: inline-block;
    margin-top: 5px;
    margin-left: 7px;
}
.chart_container ul.icon_area>li a{
    text-align: right;
    display: block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    border: 1px solid #666666;
    background-color: #444444;
}
.chart_container ul.icon_area>li a.selected{
    background-color: #D2D3D6;
    border: 1px solid D2D3D6;
    opacity: 0.8;
}
.chart_container ul.icon_area>li a:hover{
    opacity: 0.8;
    border: 1px solid #CCCCCC;
}
.chart_container ul.icon_area>li a.disabled{
    opacity: 0.4;
    cursor: default;
    border: 1px solid #5B5B5B;
    background-color: #5B5B5B;
}
.chart_container .icon_area a .tooltiptext{
    visibility: hidden;
    position: absolute;
    border-radius: 6px;
    padding: 8px;
    z-index: 1;
    left: 44px;
    background-color: black;
    color: white;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    white-space: nowrap;
}
.chart_container .icon_area a .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}
.chart_container .icon_area a:hover .tooltiptext {
    visibility: visible;
}
.chart_container .main_chart{
    top: 100px;
    left: 40px;
    right: 0;
    bottom: 60px;
}
.chart_container .overview_chart{
    left:40px;
    right: 0;
    height: 60px;
    bottom: 0;
}

.chart_container div.button{
    color: #CCC;
    height: 20px;
    background-color: #555555;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    line-height: 20px;
    vertical-align: middle;

    /*    -webkit-appearance: button;
        -moz-appearance: button;
        -ms-appearance: button;
        -o-appearance: button;
        appearance: button;*/
}

/*dropdown box css style*/
.chart_container ul.navigation{
    /*width: 450px;*/
    /*height: 50px;*/
}
.chart_container ul.navigation > li {
    position: relative;
    height: 100%;
    float: left;
    width: 49px;
    border-right-width: 1px;
    border-right-style: solid;
}

/* 選單 li 裡面連結之樣式 */
.chart_container ul.navigation > li > a{
    display: block;
    margin:0;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}
/* specified background color for first li */
.chart_container ul.navigation > li{
    /*background: #FFF;*/
}
.chart_container ul.navigation > li:hover>a{
    -webkit-transition: background-color 500ms linear;
    -moz-transition: background-color 500ms linear;
    -o-transition: background-color 500ms linear;
    -ms-transition: background-color 500ms linear;
    transition: background-color 500ms linear;
}
.chart_container ul.navigation > li:last-child:hover{
    /*background: rgb(51,51,51);*/
}

/* 當第一層選單被觸發時，指定第二層顯示 */
.chart_container ul.navigation li:hover > div{
    /*display: block !important;*/
}

/*----------------------option-----------------------*/
.chart_container .gear_off{
    background-image: url("../img/btn_06_off.png");
    background-repeat: no-repeat;
    background-position-y: center;
}

.chart_container div.option_compare,
.chart_container div.option{
    position: relative;
    padding: 10px;
    padding-right: 0;
}

.chart_container div.option > input[type="radio"] {
    display:none;
}
.chart_container div.option > input[type="radio"] + label {
    background: url("../img/radio_off.png") left center no-repeat;
}
.chart_container div.option > input[type="radio"]:checked + label {
    color: white;
    font-weight: bold;
    background: url("../img/radio_on.png") left center no-repeat;
}

.chart_container .checkBox > input[type="radio"] {
    display:none;
}
.chart_container .checkBox > input[type="radio"] + label {
    background: url("../img/radio_off.png") left center no-repeat;
}
.chart_container .checkBox > input[type="radio"]:checked + label {
    font-weight: bold;
    background: url("../img/radio_on.png") left center no-repeat;
}
.chart_container .checkBox > input[type="checkbox"] {
    display:none;
}
.chart_container .checkBox > input[type="checkbox"] + label {
    background: url("../img/checkbox_off.png") left center no-repeat;
}
.chart_container .checkBox > input[type="checkbox"]:checked + label {
    font-weight: bold;
    background: url("../img/checkbox_on.png") left center no-repeat;
}

.chart_container div.option_compare .color_icon{
    position: absolute;
    left: 10px;
    top: 11px;
    border:1px solid #CCC;
    width: 14px;
    height: 14px;
}

.chart_container .checkBox label {
    font-size: 13px;
    padding: 0;
    padding-left: 24px;
    margin: 0;
    cursor: pointer;
}

.chart_container div.option_compare div.text {
    display: inline-block;
    margin-left: 26px;
    line-height: 18px;
    height: 18px;
    font-size: 13px;
    font-weight: bold;
    color: #FFF;
    cursor: default;
}

.chart_container ul.color_selector{
    display: block;
    width: 180px;
    font-size: 0;
}

.chart_container ul.color_selector>li{
    display: inline-block;
    margin: 4px;
    width: 26px;
    height: 26px;
    border:1px solid white;
}

.chart_container ul.color_selector>li.selected{
    border-width: 2px;
    margin: 3px;
}

/*--------------------------image---------------------------*/
.chart_container .btn_close{
    background-image: url("../img/btn_close.png");
}

.chart_container .btn_1_off{
    background-image: url("../img/btn_01_off.png");
}
.chart_container .btn_2_off{
    background-image: url("../img/btn_02_off.png");
}
.chart_container .btn_3_off{
    background-image: url("../img/btn_03_off.png");
}
.chart_container .btn_4_off{
    background-image: url("../img/btn_04_off.png");
}
.chart_container .btn_5_off{
    background-image: url("../img/btn_05_off.png");
}
.chart_container .btn_6_off{
    background-image: url("../img/btn_06_off.png");
}
.chart_container .btn_7_off{
    background-image: url("../img/btn_07_off.png");
}
.chart_container .btn_8_off{
    background-image: url("../img/btn_08_off.png");
}

.chart_container .btn_1_on{
    background-image: url("../img/btn_01_on.png");
}
.chart_container .btn_2_on{
    background-image: url("../img/btn_02_on.png");
}
.chart_container .btn_3_on{
    background-image: url("../img/btn_03_on.png");
}
.chart_container .btn_4_on{
    background-image: url("../img/btn_04_on.png");
}
.chart_container .btn_5_on{
    background-image: url("../img/btn_05_on.png");
}
.chart_container .btn_6_on{
    background-image: url("../img/btn_06_on.png");
}
.chart_container .btn_7_on{
    background-image: url("../img/btn_07_on.png");
}
.chart_container .btn_8_on{
    background-image: url("../img/btn_08_on.png");
}

.chart_container .icon_popup{
    background-image: url("../img/popup_off.png");
}
.chart_container .icon_popup:hover{
    background-image: url("../img/popup_on.png");
}

.chart_container .icon_delete{
    background-image: url("../img/icon_delete.png");
}
.chart_container .icon_copy_line{
    background-image: url("../img/icon_copy_line.png");
}
.chart_container .icon_cross_line{
    background-image: url("../img/icon_cross_line.png");
}
.chart_container .icon_eci{
    background-image: url("../img/icon_eci.png");
}
.chart_container .icon_marker{
    background-image: url("../img/icon_marker.png");
}
.chart_container .icon_trade{
    background-image: url("../img/icon_trade.png");
}
.chart_container .icon_move{
    background-image: url("../img/icon_move.png");
}
.chart_container .icon_horizontal{
    background-image: url("../img/icon_horizontal.png");
}
.chart_container .icon_vertical{
    background-image: url("../img/icon_vertical.png");
}
.chart_container .icon_line{
    background-image: url("../img/icon_line.png");
}
.chart_container .icon_retracement{
    background-image: url("../img/icon_retracement.png");
}
.chart_container .icon_fan{
    background-image: url("../img/icon_fan.png");
}
.chart_container .icon_arcs{
    background-image: url("../img/icon_arcs.png");
}

.chart_container .icon_cross_line.selected{
    background-image: url("../img/icon_cross_line_selected.png");
}
.chart_container .icon_eci.selected{
    background-image: url("../img/icon_eci_selected.png");
}
.chart_container .icon_marker.selected{
    background-image: url("../img/icon_marker_selected.png");
}
.chart_container .icon_trade.selected{
    background-image: url("../img/icon_trade_selected.png");
}
.chart_container .icon_move.selected{
    background-image: url("../img/icon_move_selected.png");
}
.chart_container .icon_horizontal.selected{
    background-image: url("../img/icon_horizontal_selected.png");
}
.chart_container .icon_vertical.selected{
    background-image: url("../img/icon_vertical_selected.png");
}
.chart_container .icon_line.selected{
    background-image: url("../img/icon_line_selected.png");
}
.chart_container .icon_retracement.selected{
    background-image: url("../img/icon_retracement_selected.png");
}
.chart_container .icon_fan.selected{
    background-image: url("../img/icon_fan_selected.png");
}
.chart_container .icon_arcs.selected{
    background-image: url("../img/icon_arcs_selected.png");
}


/*
.chart_container .icon_currency{
    background-image: url("../img/icon_currency.png");
}
.chart_container .icon_open{
    background-image: url("../img/icon_open.png");
}
.chart_container .icon_print{
    background-image: url("../img/icon_print.png");
}
.chart_container .icon_save{
    background-image: url("../img/icon_save.png");
}
.chart_container .icon_time{
    background-image: url("../img/icon_time.png");
}
*/

.chart_container .color_1{
    background-color: rgb(63,63,63);
}
.chart_container .color_2{
    background-color: rgb(0,149,215);
}
.chart_container .color_3{
    background-color: rgb(207,39,26);
}
.chart_container .color_4{
    background-color: rgb(255,204,0);
}
.chart_container .color_5{
    background-color: rgb(95,156,3);
}
.chart_container .color_6{
    background-color: rgb(119,119,119);
}
.chart_container .color_7{
    background-color: rgb(158,91,49);
}
.chart_container .color_8{
    background-color: rgb(209,120,164);
}
.chart_container .color_9{
    background-color: rgb(50,204,254);
}
.chart_container .color_10{
    background-color: rgb(152,153,51);
}

.chart_container .loading{
    /*display: block !important;*/
    top:0;
    left:0;
    z-index: 1;
    height: 100%;
    width:100%;
    background-color: rgba(100,100,100,0.1);
}

.chart_container .loading div{
    height: 100%;
    width:100%;
    text-align: center;
    background:no-repeat url('../img/loading.gif') center;
}

.chart_container .chart_error{
    display: none;
    top:100px;
    left:40px;
    bottom: 0;
    right: 0;
    padding: 10px;
}

/*--header_area---------------------------------------*/
.chart_container .header_area{
    width: 100%;
    top: 0;
    height: 50px;
    z-index: 20;
}

.chart_container .header_area ::-webkit-scrollbar {
    width: 20px;
    margin: 10px;
}
.chart_container .header_area ::-webkit-scrollbar-track {
    background-color: rgb(40,40,40);
}
.chart_container .header_area ::-webkit-scrollbar-thumb {
    background-color: #444444;
    border: 2px solid #555555;
    background-clip: padding-box;
    height: 100px;
}
.chart_container .header_area {
    scrollbar-face-color: #444444;
    scrollbar-arrow-color:#FFFFFF;
    scrollbar-track-color: #555555;
    scrollbar-shadow-color:#555555;
    scrollbar-highlight-color:#555555;
    scrollbar-3dlight-color:#555555;
    scrollbar-darkshadow-Color:#555555;
}

.chart_container .header_area .ui-autocomplete{
    min-height: 26px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 16px;
    background-color: #444444;
    color: white;
}

.chart_container .header_area .sym,
.chart_container .header_area .sym_input,
.chart_container .header_area .btn_buy,
.chart_container .header_area .btn_sell{
    position: absolute;
    top:8px;
    height: 34px;
    bottom: 8px;
    font-size: 16px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
}

.chart_container .header_area .sym,
.chart_container .header_area .sym_input{
    left: 10px;
    width: 85px;
    text-align: left;
    padding-left: 15px;
    height: 30px;
    border-width: 2px;
    border-style: solid;
    color: inherit;
}
.chart_container .header_area .btn_buy{
    left: 125px;
    width: 100px;
}
.chart_container .header_area .btn_sell{
    left: 230px;
    width: 100px;
}
.chart_container .header_area .currency{
    padding-left: 6px;
}

/*--tools_area---------------------------------------*/
.chart_container .tools_area{
    position: absolute;
    top: 0;
    width: 350px;
    right: 0;
}
.chart_container .tools_area hr{
    border-color: #AAA;
    margin-bottom: 5px;
}
.chart_container .tools_area .tools_menu{
    display: none;
    position: absolute;
    top: 50px;
    min-width: 150px;
    padding: 10px;
    /*min-height: 100px;*/
    max-height: 725px;
}

.chart_container .tools_menu_2{
    width: 560px;
    right: -200px;
}

.chart_container .tools_menu_2 li.selected>a{
    color: yellow;
}
.chart_container .tools_menu_2 th{
    height: 30px;
    line-height: 30px;
}
.chart_container .tools_menu_2 td{
    padding: 2px;
}
.chart_container .tools_menu_2 td > *{
    display: inline-block;
}
.chart_container .tools_menu_2 select{
    width: 40px;
}
.chart_container .tools_menu_2 input{
    width: 50px;
    text-align: center;
    margin: 10px;
    margin-left: 0;
}
.chart_container .tools_menu_2 li{
    border-left: 1px solid #444444;
}

.chart_container .tools_menu_2 li>a{
    font-size: 16px;
    display: block;
    height: 49px;
    width: 48px;
    color: white;
    text-align: center;
    line-height: 50px;
    background-color: #555555;
}

.chart_container .tools_menu_3{
    width: 180px;
    right: -150px;
}
.chart_container .tools_menu_3 li{
    padding: 10px;
}

.chart_container .tools_menu_4{
    width: 400px;
    right: -100px;
    /*display: block !important;*/
}
.chart_container .tools_menu_4>div.disabled{
    display: none;
    position: absolute;
    top:0;
    left:0;
    bottom: 0;
    right: 0;
    background-color: rgba(100,100,100,0.6);
}
.chart_container .tools_menu_4>div.disabled div{
    margin-top: 200px;
    width:100%;
    text-align: center;
}
.chart_container .tools_menu_4 .setting{
    margin-top: 8px;
}
.chart_container .tools_menu_4 .setting .label{
    display: inline-block;
    height: 26px;
    line-height: 25px;
    font-size: 13px;
    width: 130px;
    margin-left: 30px;
}
.chart_container .tools_menu_4 .lower_indicator .setting select{
    visibility: hidden;
    width: 60px;
    margin-right: 5px;
}
.chart_container .tools_menu_4 .overlay_indicator{
    padding-bottom: 30px;
}
.chart_container .tools_menu_4 .overlay_indicator .button_area,
.chart_container .tools_menu_4 .overlay_indicator .overlayindicator{
    display: inline-block;
    height: 30px;
    line-height: 30px;
}
.chart_container .tools_menu_4 .overlay_indicator .overlayindicator{
    width: 220px;
}
.chart_container .tools_menu_4 .overlay_indicator .button_area div.button{
    display: inline-block;
    width: 60px;
    height: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    margin: 0 5px;
}
.chart_container .tools_menu_4 .overlay_indicator select{
    width: 100px;
    margin-left: 30px;
    margin-right: 20px;
}
.chart_container .tools_menu_4 li>input[type=text]{
    width: 38px;
    height: 20px;
    margin: 2px;
    border: 0;
    text-align: center;
}
.chart_container .tools_menu_4 .lower_indicator{
    padding-right: 10px;
}
.chart_container .tools_menu_4 .selected_ta{
    padding-bottom: 10px;
}
.chart_container .tools_menu_4 .move_up,
.chart_container .tools_menu_4 .move_down{
    float: right;
    width: 25px;
    height: 25px;
    margin-right: 6px;
    background-color: #555555;
}
.chart_container .tools_menu_4 ul.select_area{
    margin-top: 10px;
}
.chart_container .tools_menu_4 ul.select_area li{
    width: 185px;
    height: 30px;
    font-size: 14px;
}

.chart_container .tools_menu_5{
    right: -50px;
}
.chart_container .tools_menu_5 ul.list{
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}
.chart_container .tools_menu_5 ul.list li{
    width: 100%;
    position: relative;
    height: 30px;
}

.chart_container .tools_menu_5 ul.list li>div{
    position: absolute;
    top:5px;
    height: 20px;
}

.chart_container .tools_menu_5 ul.list .color_icon{
    width: 18px;
    height: 18px;
    border:1px solid white;
}
.chart_container .tools_menu_5 ul.list .text{
    left: 30px;
    font-size: 16px;
    line-height: 20px;
}
.chart_container .tools_menu_5 ul.list .delete_button{
    right: 10px;
    width: 18px;
    height: 18px;
    background: url("../img/btn_close_2.png") center no-repeat;
    cursor: pointer;
}

.chart_container .tools_menu_5 input{
    display: inline-block;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
    width: 100px;
    padding: 0 7px;
    margin-left: 5px;
    border: 0;
}
.chart_container .tools_menu_5 .ui-autocomplete{
    min-height: 23px;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 14px;
    background-color: rgb(54,54,54);
    color: white;
}
.chart_container .tools_menu_5 .error_message{
    height: 12px;
    padding-top: 4px;
    padding-left: 5px;
    font-size: 12px;
    color: rgb(255,70,70);
}
.chart_container .tools_menu_5 .button{
    display: inline-block;
    width: 40px;
    margin-left: 15px;
    vertical-align: middle;
}

.chart_container .tools_menu_6{
    width: 200px;
    right: 0;
}
.chart_container .tools_menu_6 .backgroundcolor,
.chart_container .tools_menu_6 .chartdata{
    margin: 10px 0;
}
.chart_container .tools_menu_6 ul.list{
    width: 100%;
}
.chart_container .tools_menu_6 ul.list li{
    width: 100px;
    height: 30px;
    font-size: 14px;
}
/*---status-bar-------------------------------------------------------------------------*/
.chart_container .status-bar span.lbl{
    color: #999999;
}
.chart_container span.status-value{
    padding: 5px;
}

/*---main-chart-------------------------------------------------------------------------*/

.chart_container .lower_tooltip{
    position: absolute;
    left: 10px;
    margin-top: -5px;
    color: #999999;
    font-size: 10px;
}


.chart_container .cmp_area{
    position: absolute;
    top: 10px;
    left: 20px;
    height: 30px;
    /*background-color: #919191;*/
    vertical-align: central;
    padding-right: 15px;
}
.chart_container .cmp_area div {
    display: inline-block;
    height: 18px;
    vertical-align: middle;
}

.chart_container .close_area,
.chart_container .eci_area{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 12px;
    border: 1px solid white;
    color: white;
    background-color: rgba(100,100,100,0.8);
}

.chart_container .eci_area{
    width: 590px;
    padding-top: 20px; /* matches height of header */
}
.chart_container .eci_area>div{
    border-top: 1px solid white;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100px;
}

.chart_container .eci_area table{
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
.chart_container .eci_area table thead th span{
    display: block;
    height: 0;
    opacity: 0;
}

.chart_container .eci_area th div{
    position: absolute;
    top: 0;
    line-height: 20px;
    padding: 0 3px;
}

.chart_container .eci_area td{
    white-space: nowrap;
    padding: 5px;
    line-height: 1;
}

.chart_container .close_area div{
    display: block;
    height: 20px;
    line-height: 20px;
}