/*
Bootstrap dialog override
*/
button:focus {
    outline: none;
}

.no-modal {
    display: none;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    z-index: 1000;
}

.no-modal .modal-dialog {
    margin: 0 auto;
}

/*
Cancel the responsible
*/
/*.no-modal .modal-dialog {
    width: 600px;
}*/

.modal-dialog {
    min-width: 240px;
}



.modal-open .no-modal {
    overflow: visible;
}


.modal-open {
    overflow: visible;
    padding-right: 0 !important;
}

.modal-header {
    background: #f1f1f1;
}

.modal-content {
    border-radius: 0;
}

.modal-footer {
    background: #f1f1f1;
    border-top: solid 1px #dfdfdf;
    padding: 0;
    margin-bottom: -1px;
}

.modal-footer .btn {
    padding: 14px;
    /*background-color: transparent;*/
    border: none;
    border-left: 1px solid #C0C0C0;
    border-radius: 0;
    color: #000;
    min-width: 94px;
}

.modal-footer .btn-default {
    background-color: #f1f1f1;
}

.modal-footer .btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.modal-footer .btn + .btn {
    margin: 0 0 0 -4px;
}

/*
modal footer inner modal-body
*/
.modal-body .modal-footer {
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: -15px;
}

.modal.msg-popup .modal-dialog {
    width: 300px !important;
    margin: 30px auto 60px;
}

.modal.msg-popup .modal-body {
    background-color: #000;
    color: #fff;
    position: relative;
    padding: 14px 32px 14px 14px;
    font-size: 14px;
}

.modal.msg-popup .modal-body textarea {
    color: #000;
    text-align: left;
    width: 100%;
}

.modal.msg-popup .modal-content {
    border: none;
}

.modal.msg-popup .modal-close-btn {
    position: absolute;
    top: 4px;
    right: 0;
    color: #999;
    cursor: pointer;
    padding: 12px;
}

/*.modal-sm .btn {
  width: 49%;
}*/


.modal-backdrop.in {
  display: none;
}


/*
防止在iframe内容上时，拖放终止
*/
.modal-cover,
.dragging .modal-cover{
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  bottom: 0;
}

.active .modal-cover {
  display: none;
}

.dragging .modal-cover{
  display: block;
}


.tree-nav a {
    color: #000;
    cursor: pointer;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tree-nav .separator {
    border-bottom: solid 1px #000;
}

.tree-nav .nav {
    display: none;
}

.tree-nav .active > .nav {
    display: block;
}

/*
selected link
*/
.tree-nav a.selected,
.tree-nav a.selected:hover {
    background-color: #e5f1fc;
}

/*
selected icon
*/
.tree-folder:before {
    content: "\e117";
}


.active > a .tree-folder:before {
    content: "\e118";
}

.tree-arrow .tree-folder:before{
    content: "\e114";
}

.tree-arrow .active > a .tree-folder:before {
    content: "\e113";
}




.tree-folder,
.tree-indent,
.tree-item {
    position: relative;
    top: 1px;
    display: inline-block;
    height: 1em;
    width: 1em;
}

.tree-icon {
    margin-right: 6px;
}

.tree-icon img {
    width: 100%;
    display: block;
}

.tree-flag,
.tree-nav .title .tree-flag {
    position: absolute;
    right: 8px;
    top: 14px;
    font-size: 12px;
    width: 16px;
}

.tree-item {
    color: #666;
}



/*
The whole page is a dialog
*/
.dialog {
    position: fixed;
    z-index: 1000;
}

.dialog .modal-header {
    border-top: solid 4px #666;
    background: #fff;
}

.dialog .modal-content {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}

.dialog .modal-body {
    overflow: auto;
}

.dialog.active {
    z-index: 1010;
}

.dialog.active .modal-header {
    border-top-color: #0097e3;
}

.dialog.active .modal-content{
    box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
}


[data-dialog-resize] {
    position: fixed;
}

[data-dialog-resize="e"] {
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    cursor: e-resize;
}

[data-dialog-resize="s"] {
    bottom: 0;
    width: 100%;
    height: 4px;
    cursor: s-resize;
}

[data-dialog-resize="se"] {
    bottom: 0;
    right: 0;
    width: 4px;
    height: 4px;
    cursor: se-resize;
}

.dialog-iframe .modal-body {
    padding: 0;
    margin-bottom: -1px;
}

.dialog-iframe iframe {
    border: none;
    display: block;
    width: 100%;
}


.dialog-page {
    /*background: #efefef;*/
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.dialog-page .modal-header {
    position: relative;
    cursor: default;
    z-index: 1000;
}

.dialog-page .modal-body {
    position: absolute;
    bottom: 36px;
    left: 0;
    right: 0;
    top: 0;
    font-size: 12px;
    overflow: auto;
    /*
    padding-top: 6px;
    padding-left: 6px;
    padding-right: 6px;
    */
    padding: 0;
}

.dialog-page .modal-body > .row {
    margin-left: 0;
    margin-right: 0;
}

.dialog-page .modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
}

.dialog-page .tab-content {
    position: absolute;
    top: 32px;
    left: 6px;
    right: 6px;
    bottom: 8px;
    padding: 6px;
    border-left: solid 1px #ddd;
    border-bottom: solid 1px #ddd;
    border-right: solid 1px #ddd;
    overflow: auto;
    background: #fff;
}

.dialog-page .tab-content .row {
    margin-left: -6px;
    margin-right: -6px;
}

.dialog-page .nav-tabs {
    margin-top: 4px;
    margin-left: 6px;
    margin-right: 6px;
}

.dialog-page .nav-tabs > li > a {
    padding: 4px 6px;
    /*font-size: 12px;*/
}

.dialog-page :focus {
    outline: none;
}

.dialog-page .dialog .modal-body  {
    position: relative;
    padding: 15px;
}

.dialog-page .dialog .modal-footer {
    position: relative;
}

.modal-footer .pagination {
    float: left;
    margin: 0 0;
}

.modal-footer .pagination > li > a {
    border-radius: 0;
}


.modal.msg-popup {
    top: auto;
    z-index: 1030;
}

.modal.msg-box {
    z-index: 1030;
}


/*
bootstrap global override
*/
fieldset {
    font-size: 12px;
    padding: .35em .625em .75em;
    margin: 0 2px;
    border: 1px solid #ccc;
}

fieldset > legend {
    color: #666;
    font-weight: bold;
    font-size: 12px;
    border-bottom: none;
    background: transparent;
    display: block;
    width: inherit;
    margin: 0;
}

fieldset.active {
    background-color: #ff0;
}

.fieldset {
    font-size: 12px;
}

.btn-group[disabled],
.btn-group.disabled,
fieldset input[disabled],
fieldset .input[disabled],
fieldset select[disabled],
fieldset textarea[disabled],
.fieldset input[disabled],
.fieldset .input[disabled],
.fieldset select[disabled],
.fieldset textarea[disabled] {
    background-color: rgb(235, 235, 228);
    color: #aaa;
    pointer-events: none;

    filter: alpha(opacity=65);
    opacity: .65;
}

fieldset *[type=button][disabled],
.fieldset *[type=button][disabled] {
    color: #999;
    border-color: #ddd;
}

fieldset label,
.fieldset label {
    display: block;
    font-weight: normal;
    max-width: 100%;
}

fieldset label .input-icon,
.fieldset label .input-icon {
    position: relative;
    padding-right: 16px;
}

fieldset label .input-icon input,
.fieldset label .input-icon input {
    width: 100%;
}

fieldset label .input-icon a,
.fieldset label .input-icon a {
    color: #333;
    position: absolute;
    top: 2px;
    right: 2px;
}

legend label {
    display: inline;
}

fieldset input,
fieldset .input,
fieldset select,
fieldset textarea,
.fieldset input,
.fieldset .input,
.fieldset select,
.fieldset textarea {
    font-size: 12px;
    padding: 0;
    border: solid 1px #ccc;
    line-height: 18px;
}

fieldset label span:first-child,
.fieldset label span:first-child {
    display: block;
    float: left;
    clear: left;
    font-size: 12px;
    line-height: 20px;
    width: 38%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

fieldset label span + input,
fieldset label span + .input,
fieldset label span + .input-icon,
fieldset label span + select,
fieldset label span + textarea,
.fieldset label span + input,
.fieldset label span + .input,
.fieldset label span + .input-icon,
.fieldset label span + select,
.fieldset label span + textarea {
    width: 62%;
    display: inline-block;
}

fieldset label input + span,
.fieldset label input + span {
    margin-left: 6px;
}

.fieldset label input[type="radio"],
fieldset label input[type="checkbox"] {
    position: relative;
    top: 2px;
}


fieldset label span + input[type=checkbox],
fieldset label span + input[type=radio],
fieldset label span + input[type=checkbox],
fieldset label span + input[type=radio],
.fieldset label span + input[type=checkbox],
.fieldset label span + input[type=radio],
.fieldset label span + input[type=checkbox],
.fieldset label span + input[type=radio] {
    width: auto;
}

/*
fieldset .form-control,
.fieldset .form-control {
    padding: 0;
    height: auto;
    border-radius: 0;
}

fieldset .form-control + .form-control,
.fieldset .form-control + .form-control {
    margin-right: 12px;
}
*/

fieldset *[type=button],
.fieldset *[type=button] {
    border: none;
    display: inline-block;
    line-height: 22px;
    color: #fff;
    background: #337ab7;
    padding: 0 12px;
    height: 22px;
    border-radius: 4px;
    font-size: 12px;
}

fieldset .table,
.fieldset .table {
    border: 1px solid #ddd;
    background-color: #f1f1f1;
}

fieldset .table > thead > tr > th,
fieldset .table > tbody > tr > th,
.fieldset .table > thead > tr > th,
.fieldset .table > tbody > tr > th {
    background-color: #eee;
    border-bottom: none;
}

fieldset .table > thead > tr > th,
fieldset .table > tbody > tr > td,
fieldset .table tr > td,
.fieldset .table > thead > tr > th,
.fieldset .table > tbody > tr > td,
.fieldset .table tr > td {
    border-left: solid 1px #ddd;
    font-weight: 400;
    padding: 2px;
}

fieldset .table input,
.fieldset .table input {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
}



.modal-header {
    padding: 0;
    cursor: move;
}

.modal-header button {
    opacity: 0.8;
    margin: 0;
    line-height: 40px;
    text-align: center;
    width: 36px;
    padding: 0;
    border: none;
    background-color: transparent;
    float: right;
    position: relative;
    margin-top: -2px;
    z-index: 1;
}

.modal-header button:hover,
.modal-header button:active {
    color: #999;
    outline: none;
}

.modal-title {
    font-size: 14px;
    margin: 7px 12px;
}

.modal-footer .btn {
    padding: 7px 14px;
}




/*
narrow menu
*/

.nav-menu {
    height: 30px;
    padding: 0;
    background-color: #444;
    position: relative;
    z-index: 1010;
}

.nav-menu ul {
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.nav-menu > ul {
    float: left;
}

.nav-logo {
    float: left;
    line-height: 30px;
    color: #fff;

    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;

    padding: 0 16px 4px;
}

.nav-logo b {
    color: #ff0;
}

.nav-menu > ul > li {
    display: block;
    float: left;
}

.nav-menu > ul > li > a {
    color: #e6e6e6;
    cursor: pointer;
    display: block;
    text-decoration: none;
    padding: 5px 12px 0;
    line-height: 24px;
    z-index: 410;
}

.nav-menu ul li > ul {
    display: none;
    padding: 0;
    position: absolute;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4);
    border-top: solid 1px #222;
    margin-top: -1px;
    z-index: 400;
}

.nav-menu ul li li a,
.nav-menu ul li li label {
    color: #ddd;
    cursor: pointer;
    display: block;
    text-decoration: none;
    padding: 6px 64px 6px 32px;
    font-weight: 400;
    min-width: 120px;
    margin: 0;
}

.nav-menu ul li li:hover a,
.nav-menu ul li li:hover label {
    background-color: #666;
    color: #fff;
}

.nav-menu ul li li input[type="checkbox"] {
    position: absolute;
    left: 8px;
    top: 5px;
    border: none;
}

.nav-menu ul li ul li {
    display: block;
    position: relative;
}

.nav-menu ul li ul li > div {
    float: left;
    margin: 0 4px;
    clear: left;
}

.nav-menu ul li:hover > ul,
.nav-menu ul li.open > ul {
    display: block;
    background-color: #444;
}

.nav-menu.has-open ul li:hover > ul {
    display: none;
}

.nav-menu.has-open ul li.open > ul {
    display: block;
}

.nav-menu .nav-header a {
    color: #999 !important;
    padding-left: 17px;
}

.nav-menu .nav-header:hover a {
    background-color: transparent;
}

.nav-menu li a s {
    position: absolute;
    top: 7px;
    text-decoration: none;
    right: 12px;
    color: #aaa;
}




.tool-header {
    background: #4d4d4d;
    border-bottom: solid 1px #222;
    min-height: 16px;
    color: #fff;
    cursor: pointer;
    padding: 4px 12px;
    font-size: 12px;
}

.tool-close + .tool-container {
    display: none;
}

.tool-close .glyphicon-chevron-down:before {
    content: "\e113";
}



/*
nav-bar
*/
.nav-bar .btn-group {
    border: none;
    box-shadow: none;
}

.nav-bar .btn-group .btn {
    color: #000;
    border-radius: 0;
}

.nav-bar .btn-group.open    > .btn,
.nav-bar .btn-group:hover   > .btn {
    border-color: transparent;
}

.nav-bar .btn-group.open    > .dropdown-menu,
.nav-bar .btn-group:hover   > .dropdown-menu {
    display: block;
    margin-top: -1px;
    border-radius: 0;
}

.nav-bar .dropdown-menu li > a {
    cursor: pointer;
    padding-left: 32px;
    position: relative;
}

.nav-bar .dropdown-menu li > a > i:first-child {
    color: #666;
    left: 7px;
    top: 5px;
    position: absolute;
}

.nav-bar .dropdown-header {
    padding-left: 32px;
}


/*
fixed row
*/
.row-0 [class^='col'],
.row-0 [class*=' col'] {
    padding-left: 0;
    padding-right: 0;
}

.row-0:before,
.row-0:after {
    display: table;
    content: " ";
}

.row-0:after {
    clear: both;
}


.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
  float: left;
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 {
    width: 100%;
}
.col-11 {
    width: 91.66666667%;
}
.col-10 {
    width: 83.33333333%;
}
.col-9 {
    width: 75%;
}
.col-8 {
    width: 66.66666667%;
}
.col-7 {
    width: 58.33333333%;
}
.col-6 {
    width: 50%;
}
.col-5 {
    width: 41.66666667%;
}
.col-4 {
    width: 33.33333333%;
}
.col-3 {
    width: 25%;
}
.col-2 {
    width: 16.66666667%;
}
.col-1 {
    width: 8.33333333%;
}
.col-pull-12 {
    right: 100%;
}
.col-pull-11 {
    right: 91.66666667%;
}
.col-pull-10 {
    right: 83.33333333%;
}
.col-pull-9 {
    right: 75%;
}
.col-pull-8 {
    right: 66.66666667%;
}
.col-pull-7 {
    right: 58.33333333%;
}
.col-pull-6 {
    right: 50%;
}
.col-pull-5 {
    right: 41.66666667%;
}
.col-pull-4 {
    right: 33.33333333%;
}
.col-pull-3 {
    right: 25%;
}
.col-pull-2 {
    right: 16.66666667%;
}
.col-pull-1 {
    right: 8.33333333%;
}
.col-pull-0 {
    right: auto;
}
.col-push-12 {
    left: 100%;
}
.col-push-11 {
    left: 91.66666667%;
}
.col-push-10 {
    left: 83.33333333%;
}
.col-push-9 {
    left: 75%;
}
.col-push-8 {
    left: 66.66666667%;
}
.col-push-7 {
    left: 58.33333333%;
}
.col-push-6 {
    left: 50%;
}
.col-push-5 {
    left: 41.66666667%;
}
.col-push-4 {
    left: 33.33333333%;
}
.col-push-3 {
    left: 25%;
}
.col-push-2 {
    left: 16.66666667%;
}
.col-push-1 {
    left: 8.33333333%;
}
.col-push-0 {
    left: auto;
}

.col-offset-12 {
    margin-left: 100%;
}
.col-offset-11 {
    margin-left: 91.66666667%;
}
.col-offset-10 {
    margin-left: 83.33333333%;
}
.col-offset-9 {
    margin-left: 75%;
}
.col-offset-8 {
    margin-left: 66.66666667%;
}
.col-offset-7 {
    margin-left: 58.33333333%;
}
.col-offset-6 {
    margin-left: 50%;
}
.col-offset-5 {
    margin-left: 41.66666667%;
}
.col-offset-4 {
    margin-left: 33.33333333%;
}
.col-offset-3 {
    margin-left: 25%;
}
.col-offset-2 {
    margin-left: 16.66666667%;
}
.col-offset-1 {
    margin-left: 8.33333333%;
}
.col-offset-0 {
    margin-left: 0;
}





/* define height and width of scrollable area. Add 16px to width for scrollbar          */
fieldset .datagrid,
.fieldset .datagrid {
    margin-bottom: 20px;
}

fieldset .datagrid table,
.fieldset .datagrid table {
    margin-bottom: 0;
}

fieldset .datagrid thead,
.fieldset .datagrid thead {
    position: relative;
    border-bottom: solid 1px #ddd;
    display: block;
}

fieldset .datagrid tbody,
.fieldset .datagrid tbody {
    display: block;
    overflow: auto;
}

fieldset .datagrid th,
fieldset .datagrid td,
.fieldset .datagrid th,
.fieldset .datagrid td {
    width: 10%;
}


.ie10- fieldset .datagrid,
.ie10- .fieldset .datagrid {
    overflow: auto;
}




.select-editor {
    position: relative;
    height: 34px;
    overflow: hidden;
    border: solid 1px #ccc;
    min-width: 81px;
}

.select-editor select {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 32px;
    border: none;
    width: 100%;
    margin: 0;
}

.select-editor input {
    position: absolute;
    padding-left: 6px;
    padding-right: 6px;
    top: 0px;
    left: 0px;
    border: none;
    width: 90%;
    height: 32px;
}

.select-editor input.form-control {
    position: absolute;
    width: 84%;
    width: calc(100% - 24px);
}

.select-editor select:focus,
.select-editor input:focus {
    outline:none;
}

.select-editor[disabled] input,
.select-editor[disabled] select {
    background-color: rgb(235, 235, 228);
}

fieldset .select-editor {
    height: 22px;
}

fieldset .select-editor select {
    height: 20px;
}

fieldset .select-editor input {
    height: 20px;
}


.btn.disabled,
.btn[disabled],
.btn-group[disabled],
.btn-group.disabled,
fieldset[disabled] .btn {
    pointer-events: none;
}



.table-print {
    margin: 0;
}

.table-print>thead>tr>th {
    text-align: center;
    white-space: nowrap;
}

.table-print>tbody>tr>td,
.table-print>thead>tr>th {
    border: 1px solid #000;
    vertical-align: middle;

    font-weight: 400;
    padding: 2px;
    font-size: 12px;
}

.table-print>tfoot>tr>td {
    padding: 2px;
    font-size: 12px;
}

.table-print p {
    margin: 6px 0;
}

.table-print>thead>tr:first-child {
    border-top: 2px solid #000;
}

.table-print>thead>tr,
.table-print>tbody>tr {
    border-left: 2px solid #000;
    border-right: 2px solid #000;
}

.table-print>tbody>tr:last-child {
    border-bottom: 2px solid #000;
}

.table-print>thead>tr.table-header {
    border-left: none;
    border-top: none;
    border-right: none;
    border-bottom: 2px solid #000;
}

.table-print>thead>tr.table-header th {
    border: none;
}

.table-print>thead>tr>th.text-left {
    text-align: left;
}

.table-print>thead>tr>th.text-right {
    text-align: right;
}

.table .table-header th,
.table .table-footer td {
    padding: 0;
}

.input-group-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.input-group-flex .input-group-addon,
.input-group-flex .input-group-btn {
  width: auto;
}

.input-group-flex > .form-control,
.input-group-flex > .form-select {
  flex: 1 1 auto;
  width: 1%;
}

@media (max-width: 767px) {
    /*
    .no-modal .modal-dialog {
        width: auto;
    }
    */
}


@media (min-width: 992px) {
    /*
    .no-modal .modal-lg {
        width: 900px;
    }
    */
}