*, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family:'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, '文泉驛正黑', 'WenQuanYi Zen Hei', '儷黑 Pro', 'LiHei Pro', '微軟正黑體', 'Microsoft JhengHei',  '微软雅黑', 'メイリオ', '맑은 고딕', sans-serif;
}
img {
  max-width: 100%;
}
*:focus {
  outline: none;
}
.info-box-text {
  text-transform: none;
}
.form-group .datepicker,
.form-group .cke_contents {
  padding: 6px 12px;
}
.form-group .select2-container {
    max-width: 100%;
    width: 100% !important;
}
.form-horizontal .form-group {
    margin-bottom: 5px;
}
.form-horizontal .form-group .form-control,
.form-horizontal .checkbox,
.form-horizontal .checkbox-inline,
.form-horizontal .radio,
.form-horizontal .radio-inline,
.form-horizontal .input-group,
.form-group .select2-container,
.form-group > div > .btn,
.form-group .cke {
    margin-bottom: 10px;
}
.form-horizontal .input-group .form-control {
    margin-bottom: 0;
}
.form-group.captcha {
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
}
.form-group .captcha-box {
    display: inline-block;
    vertical-align: middle;
}
.alert-primary {
    background-color: #3c8dbc !important;
    border-color: #2e6da4;
    color: #fff;
}
.item-group {
    padding: 10px 0 5px;
}
.item-group + .item-group {
    border-top: 1px dashed #ddd;
}
.item-root {
    color: #3c8dbc;
}
.pics .input-group {
    margin-top: 5px;
}
.search-panel-box .box-header {
    padding: 0;
}
.search-panel-box .search-title {
    display: block;
    padding: 2px 1px 1px;
}
.search-panel-box .search-title a {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
}
.search-panel-box .search-title a:hover,
.search-panel-box .search-title a:active,
.search-panel-box .search-title a:focus {
    color: #333;
    background: #eee;
}
.search-panel-box .search-title a::after {
    content: '\f077';
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: absolute;
    right: 10px;
    top: 10px;
}
.search-panel-box .search-title a.collapsed::after {
    content: '\f078';
}
.box-footer .pagination,
.box-footer .page-info {
    margin: 5px 0;
}
.box-footer .page-info {
    padding: 5px;
}
.has-error .cke {
	border-color: #dd4b39;
}
.rank-list {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style-type: none;
    margin: 0 -5px;
}
.rank-list li {
    padding: 5px;
    counter-increment: step-counter;
}
.rank-list li .txt::before {
    content: counter(step-counter)'. ';
}
.rank-list li .fa {
    display: inline-block;
    margin-right: 10px;
    position: absolute;
    left: 14px;
    top: 12px;
}
.rank-list .txt {
    padding: 10px 10px 10px 40px;
    background: #f0f0f0;
    height: 100%;
    cursor: move;
    position: relative;
}

.list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.tree-menu li {
    position: relative;
}
.tree-menu li a {
    display: block;
    position: relative;
    color: inherit;
}
.tree-menu > li {
    border-bottom: 1px solid #eee;
}
.tree-menu > li > a {
    padding: 10px 20px 10px 35px;
}
.tree-menu > li > a:hover {
    text-decoration: underline;
}
.tree-menu > li > a::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #333;
    position: absolute;
    top: 18px;
    left: 20px;
}
.tree-menu > li.has-child > a::before {
    display: none;
}
.tree-menu > li.active > a {
    color: #3aa9ea;
}
.tree-menu>li>a:hover,
.tree-menu>li>a:active,
.tree-menu>li>a:focus {
    color: #000;
}
.tree-menu ul {
    color: #888;
    padding-left: 35px;
}
.tree-menu ul a {
    display: block;
    padding: 5px 0;
}
.tree-menu ul li.has-child > a {
    margin-left: 15px;
}
.tree-menu ul li::before {
    content: '├';
    display: inline-block;
    color: #aaa;
    position: absolute;
    top: 4px;
    left: -20px;
}
.tree-menu ul li:last-child::before {
    content: '└';
}
.tree-menu ul li a:hover,
.tree-menu ul li.active > a {
    color: #00c0ef;
}
.tree-menu ul li.active > a {
    text-decoration: underline;
}
.tree-menu ul li.has-child > a {
}
.tree-menu ul a {
    color: inherit;
}
.tree-menu ul ul {
    position: relative;
    padding-left: 20px;
}
.tree-menu ul ul::before {
    content: '';
    border-left: 2px dotted #ccc;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -16px;
}
.tree-menu ul li:last-child > ul::before  {
    display: none;
}
.tree-menu .toggle-submenu {
    position: absolute;
    left: 0;
    top: 8px;
    width: 30px;
    height: 24px;
    line-height: 24px;
    /*cursor: pointer;*/
    pointer-events: none;
    padding-right: 6px;
    text-align: right;
}
.tree-menu .toggle-submenu:hover {
    color: #00c0ef;
}
.tree-menu ul .toggle-submenu {
    top: 4px;
    left: -15px;
}
.tree-menu .toggle-submenu::before {
    content: '\f196';
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#img-list .img-item {
  position: relative;
  margin-bottom: 30px;
}
#img-list .img-item .form-control {
  margin-top: 10px;
}
#img-list .img-item .deleteImage {
  position: absolute;
  right: 5px;
  top: 5px;
  border-radius: 50%;
  -webkit-box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.3);
}
#img-list .img-item .delete-checkbox {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 5px;
}
#img-list .img-item .delete-checkbox input {
  width: 20px;
  height: 20px;
}


.dd {
    position: relative;
    display: block;
    margin: 0;
    padding: 0 10px;
}

.dd-list {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dd-list .dd-list {
    padding-left: 30px;
}

.dd-collapsed .dd-list {
    display: none;
}

.dd-item,
.dd-empty,
.dd-placeholder {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 20px;
    line-height: 20px;
}

.dd-handle {
    position: absolute;
    margin: 0;
    left: 0;
    top: 0;
    cursor: pointer;
    width: 30px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: none;
    border: 0;
    border-radius: 0;
    color: #ccc;
}

.dd-handle:hover {
  color: #fff;
  background: #3C8DBC;
  cursor: move;
}

.dd-item > button {
    display: block;
    position: relative;
    cursor: pointer;
    float: left;
    width: 40px;
    height: 40px;
    margin-left: 30px;
    padding: 0;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    border: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    font-weight: bold;
}

.dd-item > button::before {
    content: '';
    display: block;
    background: url('../img/dd_ic.png') 50% 0;
    width: 15px;
    height: 15px;
    position: absolute;
    left: 7px;
    top: 12px;
}
.dd-item > button:hover::before {
    background-position: 50% 100%;
}

.dd-item > button[data-action="collapse"]::before {
    background-position: 100% 0;
}
.dd-item > button[data-action="collapse"]:hover::before {
    background-position: 100% 100%;
}

.dd-placeholder,
.dd-empty {
    margin: 5px 0;
    padding: 0;
    min-height: 30px;
    background: #f2fbff;
    border: 1px dashed #b6bcbf;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.dd-empty {
    border: 1px dashed #bbb;
    min-height: 100px;
    background-color: #e5e5e5;
    background-image: -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), -webkit-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    background-image: -o-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), -o-linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%, #fff);
    -webkit-background-size: 60px 60px;
            background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

.dd-dragel {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
}

.dd-dragel > .dd-item .dd-handle {
    margin-top: 0;
}

.dd-dragel .dd-handle {
    background: #666;
}
.dd-dragel .dd-handle::before {
    background-position: 0 100%;
}

.dd-content {
    display: block;
    height: 40px;
    margin: 5px 0;
    white-space: nowrap;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    padding: 10px 150px 10px 40px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #DADFF0;
}
.dd-content label {
  position: relative;
  z-index: 10;
  display: inline-block;
  line-height: 40px;
  width: 30px;
  text-align: center;
  margin: -10px 0 -10px -10px;
}

.dd-item:hover > .dd-content {
    border-color: #3C8DBC;
}

.dd-dragel > .dd-item > .dd-content {
    margin: 0;
}
.dd .txt {
    text-align: right;
    padding: 0 5px;
    color: #444;
}
.dd-content .btn-holder {
    position: absolute;
    right: 5px;
    top: 5px;
}
.dd-content .btn-circle {
  width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 0;
  border-radius: 50%;
}
.dd-content .btn-circle:hover {
  background: #e2e2e2;
  color: #333;
}
.box.box-solid>.box-header .btn-primary:hover {
    background-color: #367fa9;
}
.nav-tabs-custom>.tab-content {
  padding: 0;
  border-radius: 0;
}
.bootstrap-select .btn {
  border-radius: 0;
  box-shadow: none;
  border-color: #d2d6de;
}
.bootstrap-select .btn:focus {
  outline: none !important;
  border-color: #3c8dbc;
  background: #fff;
}

@media print {
  a[href]:after {
    content: none !important;
  }
}
@media screen and (max-width: 767px) {
    .dd .txt {
        display: none;
    }
    .dd-content {
        height: auto;
        padding-right: 10px;
        padding-bottom: 40px;
    }
    .dd-content .btn-holder {
        top: auto;
        bottom: 5px;
        left: 5px;
        text-align: right;
    }
    .dd-content .btn-holder .btn.switch::before {
        content: '前台顯示';
    }
}
