th {
    text-align: center;
}

.text_right {
    text-align: right;
}

.text_center {
    text-align: center;
}

.highlight_num {
    text-align: right;
    background-color: #E8A317;
}

.highlight_text {
    text-align: center;
    background-color: #E8A317;
}

.highlight_left {
    text-align: left;
    background-color: #E8A317;
}

textarea {
    resize : none; /* Firefox, Chrome */
}

btn:focus, a:focus {
     outline: none;
}
.navbar-toggler:focus {
     outline: none !important;
     box-shadow: none;
}

.form-control:focus {
    border-color: #cbdcea;;
    box-shadow: none;
}

/*button外觀*/
.btn-black{
    background-color:#cbdcea;
    border-color:#cbdcea;
    font-size:16px;
}
.btn-black:hover{
    color: #FFF;
}

/*table 固定左邊第一欄*/
thead th, 
tfoot th {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
}

thead th:first-child,
tfoot th:first-child {
    left: 0;
    z-index: 3;
}

tfoot {
    position: -webkit-sticky;
    bottom: 0;
    z-index: 2;
}

tfoot th {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: hsl(20, 50%, 70%);
}

tfoot td:first-child {
    z-index: 3;
}

tbody {
    overflow: scroll;
}

tr > :first-child {
    position: -webkit-sticky;
    position: sticky; 
    background: #cbdcea;
    left: 0; 
    z-index:1;
}

/*table fix head*/
.tableFixHead { 
    overflow-y: auto;
    height: 600px;
    /*z-index: 5;*/
}

.table-hover tbody tr:hover td {
    background-color: rgb(243, 227, 227);
    /*vertical-align: middle;*/
}

/*table -scroll*/
.table-scroll {
    position:relative;
    max-width:100%;
    margin:auto;
    overflow:hidden;
}
.table-wrap {
    width:100%;
    overflow:auto;
}
.table-scroll table {
    width:100%;
    margin:auto;
    border-collapse:separate;
    border-spacing:1px;
    color:rgb(77, 77, 77);
}
.table-scroll th, .table-scroll td {
    padding:3px 4px 3px 4px;
    white-space:nowrap;
    vertical-align:middle;
    color:rgb(77, 77, 77);
}
.table-scroll thead, .table-scroll tfoot {
    background:#cbdcea;
}

/*show or hide column*/
.clearfix:before,.clearfix:after {
    content: " ";display: table; /* 2 */}
.clearfix:after {clear: both;}
.clearfix {*zoom: 1;}

.options {margin-bottom: 8px;}

/*jquery UI*/
.ui-icon-red {
    background-image: url('/static/css/images/ui-icons_cc0000_256x240.png');
}
.ui-icon {
    zoom: 130%; 
    -moz-transform: scale(1.3); 
    -webkit-zoom: 1.3; 
    -ms-zoom: 1.3;
    /*z-index: 1;*/
    position: relative;
}
.ui-dialog .ui-dialog-buttonpane { 
    text-align: center;
}
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: none;
}
.ui-dialog .ui-dialog-buttonpane {
    text-align: center; /* left/center/right */
}
.ui-tooltip {
    white-space: pre-line;
}

.hidden {
    display: none;
}

/* Style checkboxes as Toggle Buttons */
.ck-button {
    margin:2px;
    background-color:#EFEFEF;
    border-radius:4px;
    border:1px solid #aaa;
    overflow:auto;
    float:left;
    color:#aaa;
    font-size:14px;
}
.ck-button:hover {
    background-color:#ddd;
}
.ck-button label {
    float:left;
    width:auto;
    margin-bottom: 0;
    cursor: pointer;
}
.ck-button label span {
    text-align:center;
    padding:2px 6px;
    display:block;
}
.ck-button label input {
    position:absolute;
    top:-20px;
}
.ck-button input:checked + span {
    color:#111;
}

/*自訂head排列*/
.self-left-text {
    margin:2px;
    float:left;
    font-size:16px;
    padding-top:2px;
}

.self-right-text {
    margin:2px;
    float:right;
    font-size:16px;
    padding-top:2px;
}

.self-left {
    margin:2px;
    float:left;
}

.self-right {
    margin:2px;
    float:right;
}

/*自訂鍵外觀*/
.self-input {
    background-color:white;
    border-radius:4px;
    border:1px solid #aaa;
    overflow:auto;
    font-size:14px;
    padding:2px 6px;
    width:140px;
}


.index-tool {
    background-color:#EFEFEF;
    border-radius:4px;
    border:1px solid #aaa;
    overflow:auto;
    font-size:14px;
    padding:2px 6px;
}

.self-btn {
    background-color:#EFEFEF;
    border-radius:4px;
    border:1px solid #aaa;
    overflow:auto;
    font-size:14px;
    padding:2px 6px;
}


.btn-scroll {
    background-color:#EFEFEF;
    border-radius:4px;
    border:1px solid #aaa;
    overflow:auto;
    font-size:14px;
    padding:2px 6px;
}
.btn-scroll:hover {
    background-color:#ddd;
}

.self-btn:hover {
    background-color:#ddd;
}
.self-btn label {
    float:left;
    width:auto;
    margin-bottom: 0;
}

.self-select {
    background-color:#EFEFEF;
    border-radius:4px;
    border:1px solid #aaa;
    overflow:auto;
    /*float:left;*/
    font-size:14px;
    padding:3px 6px;
}
.self-select:hover {
    background-color:#ddd;
}
.self-select label {
    float:left;
    width:auto;
    margin-bottom: 0;
}

/*table設定寬度自動換行*/
.stock_name {
    display: block;
    word-wrap:break-word;
    width: 50px;
    white-space: normal;
}

.etf_name {
    display: block;
    word-wrap:break-word;
    width: 75px;
    white-space: normal;
}


.stock_category {
    display: block;
    word-wrap:break-word;
    width: 90px;
    white-space: normal;
}

.compare_item {
    display: block;
    word-wrap:break-word;
    width: 70px;
    white-space: normal;
}

/*watch show contents*/
.watch_table {
    display:table;
    font-size:14px;
    border-spacing: 5px;
}
.watch_tr {
  display: table-row;
}
.watch_td_sort {
    display: table-cell;
    font-size:14px;
    white-space:nowrap;
}
.watch_td_notes {
    display: table-cell;
    font-size:14px;
}

/*head select*/
.head-select {
    background-color:#EFEFEF;
    border-radius:3px;
    border:1px solid #aaa;
    overflow:auto;
    /*float:left;*/
    font-size:14px;
    padding:1px 1px 1px 1px;
}

/*sparkline css setting*/
.indexline_toolformat {
    width: 105px;
    height: 40px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;    
}

.closeline_toolformat {
    width: 85px;
    height: 40px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;    
}

.smaline_toolformat {
    width: 110px;
    height: 25px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;
}

.invester_toolformat {
    width: 70px;
    height: 40px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;    
}

.ratioline_toolformat {
    width: 80px;
    height: 40px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;
}

.revenueratio_toolformat {
    width: 55px;
    height: 25px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;
}

.revenue_toolformat {
    width: 185px;
    height: 25px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;
}

.eps_toolformat {
    width: 105px;
    height: 25px;
    /*color:#00FFFF;*/
    background-color: transparent;
    margin: 0;
}


/*下拉多選CSS Setting*/
.multi-select-container {
    display: inline-block;
    position: relative;
}

.multi-select-menu {
    position: absolute;
    left: 0;
    top: 0.8em;
    z-index: 1;
    float: left;
    min-width: 100%;
    background: #fff;
    margin: 1em 0;
    border: 1px solid #aaa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    width: auto; 
    max-height: 200px; /*設定多選的下拉長度*/
    overflow: scroll;
    display: none;
}

.multi-select-menuitem {
    display: block;
    font-size: 0.875em;
    padding: 0.6em 1em 0.6em 30px;
    white-space: nowrap;
}

.multi-select-menuitem--titled:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    margin: 0 0 0.25em -20px;
}

.multi-select-menuitem--titledsr:before {
    display: block;
    font-weight: bold;
    content: attr(data-group-title);
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.multi-select-menuitem + .multi-select-menuitem {
    padding-top: 0;
}

.multi-select-presets {
    border-bottom: 1px solid #ddd;
}

.multi-select-menuitem input {
    position: absolute;
    margin-top: 0.25em;
    margin-left: -20px;
}

.multi-select-button {
    display: inline-block;
    font-size: 0.875em;
    padding: 0.2em 0.6em;
    max-width: 16em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: -0.5em;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: default;
}

.multi-select-button:after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.4em 0.4em 0 0.4em;
    border-color: #999 transparent transparent transparent;
    margin-left: 0.4em;
    vertical-align: 0.1em;
}

.multi-select-container--open .multi-select-menu {
    display: block;
}

.multi-select-container--open .multi-select-button:after {
    border-width: 0 0.4em 0.4em 0.4em;
    border-color: transparent transparent #999 transparent;
}

.multi-select-container--positioned .multi-select-menu {
    /* Avoid border/padding on menu messing with JavaScript width calculation */
    box-sizing: border-box;
}

.multi-select-container--positioned .multi-select-menu label {
    /* Allow labels to line wrap when menu is artificially narrowed */
    white-space: normal;
}