﻿
body {
    font-family: Arial, "Microsoft YaHei", Tahoma, Helvetica, sans-serif;
}

/*
    login
*/
.login .input-code {
    width: 173px;
}
.login .code {
    cursor: pointer;
    width: 120px;
    height: 34px;
}
.login .foot-logo {
    height: 50px;
}

/*
    datatables
*/
.dataTable {
    clear: both;
    margin-top: 20px;
}

.dataTable .row-details {
    margin-top: 3px;
    display: inline-block;
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.dataTable .details-box {
    display: none;
    background: #f5f5f5;
}

.dataTable .details {
    padding: 10px;
}

.dataTable .details table {
    margin: 0;
}

/*
    input count
*/
.md-input-wrapper-count {
    padding-bottom: 24px;
}

.md-input-wrapper-count .md-input-bar {
    bottom: 24px;
}

.md-input-wrapper-count .text-count-wrapper {
    font-size: 12px;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0;
    -webkit-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in;
}

.md-input-wrapper-count > .md-input-wrapper-count .text-count-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
}

.form-md-line-input > label,
.md-input-focus > label {
    top: -6px;
    font-size: 12px;
}

.form-md-line-input.md-input-wrapper-count .text-count-wrapper,
.md-input-focus.md-input-wrapper-count .text-count-wrapper {
    opacity: 1;
}

.has-error.md-input-wrapper-count .text-count-wrapper {
    color: #e53935;
}

.has-success.md-input-wrapper-count .text-count-wrapper {
    color: #7cb342;
}

.text-count-wrapper {
    font-size: 12px;
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: 0;
    -webkit-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in;
}

.form-md-line-input > .form-md-line-input .text-count-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
}

.form-md-line-input > label,
.md-input-focus > label {
    top: -6px;
    font-size: 12px;
}

.form-md-line-input.form-md-line-input .text-count-wrapper,
.md-input-focus.form-md-line-input .text-count-wrapper {
    opacity: 1;
}

.md-input-focus .md-input-bar:before,
.md-input-focus .md-input-bar:after {
    width: 50%;
}

.has-error .md-input-bar:before,
.has-error .md-input-bar:after {
    background: #e53935;
    width: 50%;
}

.has-error .md-input-bar:before {
    left: 50%;
}

.has-error .md-input-bar:after {
    right: 50%;
}

.has-error.form-md-line-input .text-count-wrapper {
    color: #e53935;
}

.has-success .md-input-bar:before,
.has-success .md-input-bar:after {
    background: #7cb342;
    width: 50%;
}

.has-success .md-input-bar:before {
    left: 50%;
}

.has-success .md-input-bar:after {
    right: 50%;
}

.has-success.form-md-line-input .text-count-wrapper {
    color: #7cb342;
}

/*
    select2
*/
[class^='select2'] {
    border-radius: 0px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: none;
    border-bottom: 1px solid #c2cad8;
}
.select2-container--default .select2-selection--multiple {
    border: none;
    border-bottom: 1px solid #c2cad8;
}

/*

*/
.photo-upload {
    width: auto;
    height: auto;
}
.photo-upload .photo {
    max-height: 150px;
    border: 2px solid #eee;
    margin-right: 5px;
}
.photo-upload .plain-link {
    vertical-align: bottom;
}

.sortable {
   list-style: none;
   margin: 0;
   padding: 0 5px;
   width: 100%;
}
.sortable li {
    list-style: none;
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px;
}

/***
Jstree
***/
.jstree-default .jstree-clicked {
  border: 0;
  background-color: #e1e1e1;
  box-shadow: none; }

.jstree-default .jstree-hovered {
  border: 0;
  background-color: #eee;
  box-shadow: none; }

.jstree-default .jstree-wholerow-clicked,
.jstree-wholerow .jstree-wholerow-clicked {
  background: none;
  border: 0;
  background-color: #e1e1e1;
  box-shadow: none; }

.jstree-default .jstree-wholerow-hovered,
.jstree-wholerow .jstree-wholerow-hovered {
  border: 0;
  background-color: #eee;
  box-shadow: none; }

.jstree-icon.icon-lg {
  margin-top: 1px; }

.jstree-open > .jstree-anchor > .fa-folder:before {
  margin-left: 2px;
  content: "\f07c"; }

.jstree-default.jstree-rtl .jstree-last {
  background: transparent;
  background-repeat: no-repeat; }

.gallery{

}
.gallery .loading {
    display: inline-block;
    margin-left: 10px;
}
.gallery .photo-box {
    border: 1px solid #e7ecf1;
    padding: 2px;
    margin-bottom: 20px;
}
.gallery .photo-box:hover {
    border: 1px solid #ccc;
    padding: 2px;
    margin-bottom: 20px;
}
.gallery .photo-panel {
    width: 100%;
    height: 150px;
    position: relative;
    cursor: pointer;
}
.gallery .photo-panel img {
    max-width: 100%;
    max-height: 150px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.gallery .photo-foot {
    padding: 0 5px;
    height: 20px;
    line-height: 20px;
    border-top: 1px solid #e7ecf1;
}
.gallery .photo-foot .kb {
    color: #ccc;
    font-size: 11px;
}
.gallery .photo-foot .remove {
    cursor: pointer;
}
.gallery .photo-foot .remove:hover {
    color: #ccc;
}

.file-box {
    height: auto;
}
.file-box-item {
    margin-bottom: 5px;
    display: block;
    padding: 10px;
    border: 1px solid #999;
}
.file-box-item .plain-link {
    color: #999;
}

.file-box .sortable-placeholder {
    height: 42px;
    margin-bottom: 5px;
    border: 1px dashed #000;
    background: #eee;
}

.file-box .handle:hover { 
    -ms-transform:scale(1.5);
    -webkit-transform:scale(1.5);
    transform:scale(1.5); 
    cursor: move;
}