// http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html?^%$         flex 布局参考

// ------ stock show 数据部分 ------
.wrapper {
  display: -webkit-flex; /* Safari */
  display: flex;
  flex-wrap: wrap;

  margin-top: 50px;
  color: #333;

  table {
    text-align: right;
    .theader-style {
      font-weight: bolder;
      vertical-align: middle;
      text-align: center;
      background-color: #f9f9f9;
    }
    tr:hover {
      cursor: pointer;
    }
  }
}

.industry-list {
  .industry-title {
    font-size: 20px;
    font-weight: bold;
    min-width: 210px;
    .btn-group {
      margin-right: 40px;
      .dropdown-menu {
        line-height: 1.8;
        color: #f9f9f9;
        padding: 5px 0;
        margin: 2px 0 0;
        list-style: none;
        font-size: 12px;
        text-align: left;
        min-width: 170px;
        li {
          span {
            font-weight: normal;
          }
          a {
            background-color: #fff;
            color: #333;
            font-weight: normal;
            line-height: 1.8;
            padding: 3px 12px;
          }
          a:hover {
            background-color: #f1f1f1;
          }
        }
      }
    }
  }
  .industry-li {
    white-space: nowrap;     //压缩后不换行
    margin-top: 20px;
    min-width: 210px;
    .industry-li-title {
      padding: 7px 10px;
      margin-right: 35px;
      font-weight: bold;
    }
    li {
      margin-right: 35px;
      padding: 7px 10px;
      border-radius:5px;
    }
    a {
      text-decoration: none;
      color: #666;
    }
    li:hover {
      background-color: #222;
      text-decoration: none;
      color: #f9f9f9;
      // filter:alpha(Opacity=100);
      // -moz-opacity:0.8;
      // transition: 0.4s;
      // border-radius:5px;
    }
  }
  .industry-li-all {
    white-space: nowrap;     //压缩后不换行
    margin-top: 20px;
    min-width: 210px;
    li {
      min-width: 110px;
      margin-right: 10px;
      padding: 7px 12px 7px 10px;
      border-radius:5px;
    }
    a {
      text-decoration: none;
      color: #666;
    }
    li:hover {
      background-color: #1f1f1f;
      text-decoration: none;
      color: #f9f9f9;
      // filter:alpha(Opacity=100);
      // -moz-opacity:0.8;
      // transition: 0.4s;
      // border-radius:5px;
    }
  }
}

.stock-info {
  display: -webkit-flex; /* Safari */
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  h1 {
    margin-top: 0;
    font-size: 30px;
    font-weight: 500;
    span {
      font-size: 20px;
      font-weight: 500;
    }
  }
  .stock-intro {
    flex-grow: 1;
    align-self: flex-start;
    a {
      text-decoration: none;
      color: #333;
    }
    // height: 200px;
    .stock-title {
      margin-bottom: 10px;
      .stock-name {
        font-size: 30px;
        font-weight: 500;
      }
      .stock-symbol {
        font-size: 20px;
        font-weight: 500;
        line-height: 1.1;
      }
      .stock-price {
        font-size: 20px;
        padding: 3px 15px;
        margin-left: 20px;
        background-color: #f9f9f9;
        em {
          font-size: 12px;
        }
      }
    }
    .to-finance-btn {
      margin: 75px 0 15px;
    }
    .main_business {
      height:40px;
      overflow:hidden;                  //超出40px高度时隐藏
      span {
        font-weight: bolder;
        font-size: 12px;
      }
      p {
        line-height: 20px;
        text-align: justify;
      }
    }
    .stock-pyramid-rating {
      margin-top: 20px;
      margin-bottom: 10px;
      span {
        font-weight: lighter;
        font-size: 22px;
        color: #bfb199;
        transition: 0.5s;
      }
      span:hover {
        transition: 0.5s;
        color: #8B814C;
      }
    }
  }
  .star-stock:hover {
    cursor: pointer;
  }
}

.table-left {
  flex-grow: 1;
  align-self: flex-end;
}

.table-right {
  flex-grow: 1;
}

.modal {
  .modal-body {
    color: #333;
    line-height: 20px;
    text-align: justify;
    font-size: 12px;
    img {
      max-width:100%;
      height:auto;
    }
    blockquote {
      p {
        font-size: 12px;
        color: #999;
      }
    }
    i {
      font-size: 12px;
      color: #999;
    }
    li {
      margin: 5px 0;
    }
  }
}


// industry and sector 页面按钮样式
.dropdown {
  .dropdown-menu {
    line-height: 1.8;
    color: #f9f9f9;
    padding: 5px 0;
    margin: 2px 0 0;
    list-style: none;
    font-size: 12px;
    text-align: left;
    min-width: 250px;
    li {
      span {
        font-weight: normal;
      }
      a {
        background-color: #fff;
        color: #333;
        font-weight: normal;
        line-height: 1.8;
        padding: 3px 12px;
      }
      a:hover {
        background-color: #f1f1f1;
      }
    }
  }
}
