/***
bootstrap reset
***/

ul,
ol {
    list-style-type: none;
}

a {
    color: #2186e7;
}

a:hover,
a:focus {
    color: #2186e7;
    text-decoration: underline;
}

.label {
    padding: 0.3em 0.6em 0.3em;
}

.breadcrumb {
    border-bottom: 1px solid #ccc;
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 7px 15px;
}

p.bg-primary {
    padding: 15px;
}

/* nav-tabs */
.nav-tabs > li > a {
    margin-right: 0;
    height: 40px;
}
.nav-tabs > li.active > a {
    border-top: 3px solid #3794e3;
}
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-top: 3px solid #3794e3;
}

/* Common Attributes*/
.w100 {
    width: 100px;
}
.w120 {
    width: 120px;
}
.w150 {
    width: 150px;
}
.w200 {
    width: 200px;
}
.w300 {
    width: 300px;
}
.w400 {
    width: 400px;
}
.w500 {
    width: 500px;
}

/* table */
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    vertical-align: middle;
}

.table > thead > tr > th {
    border-bottom: 1px solid #ddd !important;
    color: #444;
    background: -webkit-gradient(
        linear,
        0 0,
        0 100%,
        from(#fafafa),
        to(#f3f3f3)
    );
    background: -moz-linear-gradient(top, #fafafa, #f3f3f3);
    background: -ms-linear-gradient(top, #fafafa, #f3f3f3);
    background-color: #f5f5f5\0;
    *background: #f5f5f5;
}
table.text-center thead th {
    text-align: center;
}
table > tbody > tr > td.td_have_btn {
    padding-top: 6px;
    padding-bottom: 6px;
}
table > tbody > tr > td.td_have_btn .btn {
    min-width: 40px;
}
.table td .radio,
.table td .checkbox,
.table td .radio-inline,
.table td .checkbox-inline {
    padding-top: 0;
}
.table-column-switch {
    padding-left: 5px;
}
table.table-text-control {
    table-layout: fixed;
}
table.table-text-control tbody tr td {
    padding-left: 2px;
    padding-right: 2px;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

/* modal */
.modal-title {
    font-weight: 600;
}
.modal-dialog {
    margin-top: 100px;
}
.modal-info {
    color: #666;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    line-height: 1.4;
    margin-left: -15px;
    margin-right: -15px;
    padding: 7px 20px;
}
.modal-square-row {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 23px;
    padding-right: 20px;
}

/* dropdown */
.dropdown-menu {
    padding: 0;
}
.dropdown-menu > li > a {
    padding: 8px 15px;
}

/* panel */
.panel .panel-body-condensed {
    padding: 10px 15px;
}
.panel .panel-body-border-bottom {
    border-bottom: 1px solid #ddd;
}
.panel .panel-table-pagination {
    border-top: 1px solid #ddd;
}
.panel .panel-table-pagination .pagination {
    margin: 7px 10px 3px;
}
.panel .panel-table-pagination .table-options {
    margin: 7px 10px 3px;
}
.panel .fixed-table-container {
    border: none;
}
.panel .panel-heading .row .panel-title {
    font-size: 14px;
    padding-right: 15px;
    padding-top: 3px;
}

/* common-form */
.common-form .form-group {
    margin-bottom: 0;
    padding-top: 8px;
    padding-bottom: 7px;
}
.common-form .form-control {
    display: inline-block;
    width: auto;
}
.common-form textarea.form-control {
    width: 99%;
}
.common-form .form-group:last-child {
    padding-top: 10px;
    padding-bottom: 12px;
    border-bottom: none;
}
.common-form .form-group:nth-of-type(even) {
    background-color: #f9f9f9;
}
.common-form .form-group:hover {
    background-color: #e6eff9;
}
.common-form .form-group .glyphicon-pencil {
    color: #ea4335;
}
.common-form .radio,
.common-form .checkbox,
.common-form .radio-inline,
.common-form .checkbox-inline {
    padding-top: 2px;
}

/* form */
.form-group-sm textarea.form-control {
    height: auto;
}
.form-group-sm p.form-control-static {
    padding-left: 1px;
}
.form-group-sm .form-control-feedback {
    width: 30px;
    height: 30px;
    line-height: 30px;
}
.form-horizontal .form-group-sm.has-feedback .form-control-feedback {
    right: 20px;
}

/* table-toolbar */
.table-toolbar .form-group {
    padding-top: 0;
    padding-left: 6px;
    padding-right: 6px;
}
.table-toolbar .main-page-title {
    font-size: 1.3em;
    font-weight: bold;
}

/** 中间内容区域 */
body {
    overflow: hidden;
}

#header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
    z-index: 19;
}

#header .navbar-header .navbar-brand {
    color: #2196f3;
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
    padding-left: 10px;
}
#header .navbar-nav > li > a {
    color: #3794e3;
    font-weight: 700;
    padding-left: 12px;
    padding-right: 12px;
}
#header .navbar-nav > li > a:hover,
#header .navbar-nav > li > a:focus {
    background-color: #f1f1f1;
}

#header .navbar-nav li.active > a {
    background-color: #f1f1f1;
    border-bottom: 3px solid #3794e3;
    height: 50px;
}

.layout_leftnav {
    position: absolute;
    top: 52px;
    left: 0;
    bottom: 30px;
    width: 160px;
}
.layout_rightmain {
    background-color: #fff;
    position: absolute;
    top: 52px;
    right: 0;
    bottom: 30px;
    left: 160px;
    padding-bottom: 30px;
    overflow: auto;
}
.inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.layout_footer {
    background-color: #f6f7f7;
    border-top: 1px solid #ccc;
    color: #999;
    position: fixed;
    height: 30px;
    right: 0;
    left: 0;
    bottom: 0;
    line-height: 28px;
    text-align: center;
    font-size: 12px;
    z-index: 999;
}

.layout_container {
    background: #eff3f8;
    position: absolute;
    top: 52px;
    right: 0;
    bottom: 30px;
    left: 0;
    overflow: auto;
}

.layout_container .index-chart-container {
    width: 100%;
}

.chart-container {
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
    width: 100%;
    padding-top: 15px;
}

/*** report ***/
#chart-conditions {
    border: 1px solid #ddd;
    background-color: #fcfcfc;
}

#chart-conditions .form-group {
    margin: 0;
    padding-top: 4px;
    padding-bottom: 2px;
    border-bottom: 1px dashed #e4e4e4;
}

#chart-conditions .form-group:last-child {
    border-bottom: none;
}

#chart-conditions .form-control-static {
    padding-left: 10px;
    padding-top: 2px;
}

#chart-conditions #model-line {
    padding-right: 25px;
}

#chart-conditions #model-line .checkbox-inline {
    padding-top: 4px;
}

span.dimension_item_render {
    position: relative;
    display: inline-block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 150px;
    width: auto;
    margin-right: 5px;
    padding-left: 9px;
    padding-right: 9px;
    line-height: 21px;
    height: 21px;
    text-align: center;
    color: #333;
    font-family: "微软雅黑";
    font-size: 12px;
    cursor: pointer;
}

span.dimension_item_render:hover {
    background: #d9eeff;
    color: #333;
}

span.dimension_item_render.selected,
span.dimension_item_render.selected:hover {
    background: #078fee;
    color: #fff;
}

.form-group span.dimension_item_render:first-child {
    margin-left: 0;
}

/* main style*/

.no-padding-sides {
    padding-left: 0;
    padding-right: 0;
}

.no-padding-vertical {
    padding-top: 0;
    padding-bottom: 0;
}

.no-margin-sides {
    margin-left: 0;
    margin-right: 0;
}

.no-margin-vertical {
    margin-top: 0;
    margin-bottom: 0;
}

/**  提示浮层  **/
#helpModal .row {
    margin-bottom: 15px !important;
}

#result_dialog {
    font-size: 1.2em;
}

#result_dialog .modal-header,
#result_dialog .modal-footer {
    padding: 10px 15px;
}
#result_dialog .glyphicon-ok-sign {
    color: #34a853;
}
#result_dialog .glyphicon-remove-sign {
    color: #ea4335;
}

.btn-wrap-bottom {
    position: fixed;
    padding: 4px;
    bottom: 22px;
    left: 174px;
    width: 100%;
    background-color: #f4f4f4;
    _position: absolute;
    z-index: 10;
}
.btn-wrap-bottom-noleft {
    position: fixed;
    padding: 4px;
    bottom: -10px;
    left: 10px;
    width: 100%;
    background-color: #f4f4f4;
    _position: absolute;
    z-index: 10;
}

ul.fileArea {
    padding: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}
ul.fileArea li {
    display: inline-block;
    margin-right: 15px;
    padding-top: 10px;
}
ul.fileArea li .thumbnail {
    margin-bottom: 0;
}
ul.fileArea li .thumbnail img {
    margin: auto;
    text-align: center;
    height: 150px;
    border: 1px solid #e7e7e7;
    display: block;
}
ul.fileArea li .caption {
    line-height: 30px;
}
ul.fileArea li .caption input {
    display: inline;
}
ul.fileArea li .caption button {
    float: right;
}
.main-body {
    padding-bottom: 40px;
}
[data-toggle="tooltip"] {
    cursor: pointer;
}
.fileupload {
    position: relative;
    overflow: hidden;
    display: inline-block;
    *display: inline;
    *zoom: 1;
}
.fileupload input {
    position: absolute;
    font-size: 12px;
    right: 0;
    top: 0;
    opacity: 0;
    filter: alpha(opacity=0);
    cursor: pointer;
}

.uploader {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 240px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    background-color: #f7f7f7;
}

.uploader .uploader-control {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
}

.uploader .uploader-handle {
    z-index: 2;
}

.uploader .uploader-reset {
    display: none;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
}

.uploader .uploader-reset label {
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.uploader .uploader-handle label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    background-color: #fff;
    padding: 10px;
}

.uploader .uploader-loading {
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    display: none;
    z-index: 2;
}

.uploader .uploader-loading img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
}

.uploader .uploader-result {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    display: none;
}

.uploader .uploader-result img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.uploader.done .uploader-handle,
.uploader[done] .uploader-handle,
.uploader.loading .uploader-handle,
.uploader[loading] .uploader-handle {
    display: none;
}

.uploader.loading .uploader-loading,
.uploader[loading] .uploader-loading {
    display: inline-flex;
}

.uploader.done .uploader-result,
.uploader[done] .uploader-result,
.uploader.done:hover .uploader-reset,
.uploader[done]:hover .uploader-reset {
    display: block;
}

.text-group {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.text-group .text-prefix {
    font-size: 13px;
    margin-bottom: 10px;
    width: 100%;
    user-select: none;
}

.text-group .text-value {
    border-bottom: 1px solid #ccc;
    padding: 5px 10px;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
}

.text-group .text-value img {
    width: 100%;
    height: auto;
    border: 0;
}


.form-footer {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.form-footer a {
    letter-spacing: 2px;
}
.form-footer .glyphicon {
    margin-right: 5px;
}
