html,
body {
    padding: 0;
    margin: 0;
    height: 100%;
    min-height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #4f5f6f;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    border-radius: 0;
    background: #78bd2e;
}

::-webkit-scrollbar-thumb:window-inactive {
    background: #85CE36;
}

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    background-color: #fff;
}

.main-wrapper {
    width: 100%;
    position: absolute;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    outline: none;
}

.app {
    position: relative;
    width: 100%;
    padding-left: 240px;
    min-height: 100vh;
    margin: 0 auto;
    left: 0;
    background-color: #f0f3f6;
    -webkit-box-shadow: 0 0 3px #ccc;
    box-shadow: 0 0 3px #ccc;
    -webkit-transition: left 0.3s ease, padding-left 0.3s ease;
    transition: left 0.3s ease, padding-left 0.3s ease;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .app {
        padding-left: 0;
    }
}

@media (min-width: 1200px) {
    .d-xl-none {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .header .header-block-nav {
        padding: 5px;
        padding-right: 25px;
    }

    .header .header-block-collapse {
        width: 155px;
    }

    .page-link {
        padding: 0.3rem .6rem;
    }

}

input,
textarea {
    outline: none;
}

button,
input {
    overflow: visible;
}

button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button,
select {
    text-transform: none;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    border-radius: 0;
}

input[type="radio"],
input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

.radio,
.checkbox {
    display: none;
}

article,
aside,
dialog,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

h3,
.h3 {
    font-size: 1.75rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-bottom: 0.5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

label {
    display: inline-block;
    margin-bottom: .5rem;
}

table {
    table-layout: fixed;
    word-break: break-all;
    width: auto !important;
    min-width: 100%;
}

table label {
    margin-bottom: 0;
}

table th {
    text-align: center;
}

table td {
    vertical-align: middle !important;
}

table.bt td {
    text-align: left !important;
}


.form-control::-webkit-input-placeholder {
    font-style: italic;
    color: #c8d0da;
}

.form-control:-moz-placeholder {
    /* Firefox 18- */
    font-style: italic;
    color: #d7dde4;
}

.form-control::-moz-placeholder {
    /* Firefox 19+ */
    font-style: italic;
    color: #d7dde4;
}

.form-control:-ms-input-placeholder {
    font-style: italic;
    color: #d7dde4;
}

.btn.btn-primary {
    color: #ffffff;
    background-color: #85CE36;
    border-color: #85CE36;
}

/* -------------------------------- login ---------------------------------*/
.auth {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    background-color: #667380;
    overflow-x: hidden;
    overflow-y: auto;

    background-image: url(../images/manage/login.jpg);
    background-position: center center;
    background-size: cover;
}

.auth-container {
    width: 450px;
    min-height: 330px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
}

@media (max-width: 767.98px) {
    .auth-container {
        width: 100%;
        position: relative;
        left: 0;
        top: 0;
        -webkit-transform: inherit;
        transform: inherit;
        margin: 0;
        margin-bottom: 10px;
        margin-top: 80px;
    }
}

.auth-container .auth-header {
    text-align: center;
    border-bottom: 1px solid #85CE36;
}

.auth-container .auth-title {
    color: #97A4B1;
    padding: 20px;
    line-height: 30px;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
}

.auth-container .auth-content {
    padding: 30px 50px;
    min-height: 260px;
}

.text-center {
    text-align: center !important;
}

.btn.btn-secondary {
    color: #4f5f6f;
    background-color: #fff;
    border-color: #d7dde4;
}

/* -------------------------------- header -------------------------------- */

.header {
    background-color: #d7dde4;
    height: 70px;
    position: absolute;
    left: 240px;
    right: 0;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
    z-index: 999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

@media (max-width: 767.98px) {
    .header {
        left: 0;
        height: 50px;
        position: fixed;
    }
}

@media (max-width: 991.98px) {
    .header {
        left: 0;
        position: fixed;
    }
}

.header .header-block-collapse {
    padding-right: 5px;
}

.header .header-block-collapse .collapse-btn {
    background: none;
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    color: #85CE36;
    font-size: 24px;
    line-height: 40px;
    border-radius: 0;
    outline: none;
    padding: 0;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: initial;
}

.header .header-block-nav {
    margin-left: auto;
    white-space: nowrap;
    padding-right: 15px;
    display: table;
}

.header .header-block-nav a {
    text-decoration: none;
}

.header>ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header>ul>li {
    display: table-cell;
    position: relative;
}

.header .dropdown-menu a .icon {
    color: #85CE36;
    text-align: center;
    width: 16px;
}

.dropdown-menu .dropdown-item:hover {
    color: #85CE36 !important;
    background: none;
    background-color: whitesmoke;
}

.dropdown-menu .dropdown-item i {
    margin-right: 10px;
}

.header>ul>li>a {
    text-align: right;
    width: 150px;
    padding: 0 15px;
    color: #4f5f6f;
    text-decoration: none;
}

.header .name {
    display: inline-block;
    margin-right: 9px;
    font-weight: bold;
}

.header .dropdown-menu {
    position: absolute;
    transform: translate3d(0px, 30px, 0px);
    top: 0px;
    left: 0px;
    will-change: transform;
    right: 0;
    min-width: 180px;
    white-space: normal;
    float: left;
    -webkit-box-shadow: 2px 3px 6px rgba(126, 142, 159, 0.1);
    box-shadow: 2px 3px 6px rgba(126, 142, 159, 0.1);
    border: 1px solid rgba(126, 142, 159, 0.1);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 15px;
    z-index: 1001;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
}

.header .dropdown-menu a {
    padding: 10px 15px;
}

/* -------------------------------- aside -------------------------------- */

.sidebar {
    background-color: #3a4651;
    width: 240px;
    padding-bottom: 60px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    -webkit-transition: left 0.3s ease;
    transition: left 0.3s ease;
    z-index: 1001;
    /* 固定 */
    position: fixed;
}

.sidebar-overlay {
    position: absolute;
    display: none;
    left: 200vw;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

@media (max-width: 991.98px) {
    .sidebar-open .sidebar-overlay {
        left: 0;
        opacity: 1;
    }

    .sidebar {
        position: fixed;
        left: -240px;
    }

    .sidebar-overlay {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .sidebar-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
}

.sidebar-open .sidebar {
    left: 0;
}

.sidebar .sidebar-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header .brand {
    color: #fff;
    text-align: left;
    padding-left: 25px;
    line-height: 70px;
    font-size: 16px;
}

.logo {
    background-image: url(../images/manage/logo.png);
    background-size: cover;
    display: inline-block;
    width: 45px;
    height: 45px;
    vertical-align: middle;
    margin-right: 5px;
    position: relative;
}

.sidebar .sidebar-menu {
    font-size: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .sidebar-menu>li>a {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    padding-right: 15px;
}

.sidebar .sidebar-menu li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    display: block;
}

a:not(.btn) {
    -webkit-transition: initial;
    transition: initial;
    text-decoration: underline;
    color: #969696;
}

.sidebar .sidebar-menu>li>a i {
    margin-right: 5px;
    font-size: 14px;
}

.sidebar .sidebar-menu>li>a i.arrow {
    font-size: 20px;
}

.sidebar .sidebar-menu .arrow {
    float: right;
    font-size: 18px;
    line-height: initial;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-right: 0;
}

.sidebar .sidebar-menu>li.open>a {
    background-color: #333e48;
}

.sidebar .sidebar-menu li a:hover,
.sidebar .sidebar-menu li.open>a,
.sidebar .sidebar-menu li.open a:hover {
    color: #ffffff;
    background-color: #2d363f;
}

.sidebar .sidebar-menu li.open>a .arrow {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.sidebar .sidebar-menu li a:focus,
.open .sidebar .sidebar-menu li a:focus {
    background-color: inherit;
}

.loaded .sidebar .sidebar-menu ul {
    height: auto;
}

.sidebar .sidebar-menu ul {
    padding: 0;
    height: 0px;
    overflow: hidden;
}

.sidebar .sidebar-menu>li>.sidebar-nav>li a {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 50px;
    padding-right: 15px;
    background-color: #333e48;
}

.sidebar .sidebar-menu>li.active>a,
.sidebar .sidebar-menu>li.active>a:hover {
    background-color: #85CE36 !important;
    color: #ffffff !important;
}

.sidebar .sidebar-menu>li>.sidebar-nav>li.active a {
    color: #ffffff;
}

.sidebar .sidebar-menu ul {
    height: auto;
}

.metismenu .sidebar-nav {
    max-height: 0;
    /* 展開動畫 - 會卡卡的
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    transition: max-height 1s ease-in;
    */
    overflow: hidden;
}

.metismenu .sidebar-nav.open {
    max-height: 500px;
    /* 展開動畫 - 會卡卡的
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
    transition: max-height 1s ease-in;
    */
}

/* -------------------------------- article -------------------------------- */

.app .content {
    padding: 95px 20px 75px 20px;
    min-height: 100vh;
}

@media (min-width: 1200px) {
    .app .content {
        padding: 105px 40px 85px 40px;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .app .content {
        padding: 100px 35px 80px 35px;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .app .content {
        padding: 95px 20px 75px 20px;
    }
}

@media (max-width: 767.98px) {
    .app .content {
        padding: 70px 20px 70px 20px;
    }
}

/* -------------------------------- grid -------------------------------- */

/* -------------------------------- content -------------------------------- */

.title-block {
    padding-bottom: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #d7dde4;
}

.title-block::after {
    display: block;
    clear: both;
    content: "";
}

.title {
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 0;
}

.title-description {
    margin: 0;
    font-size: 0.9rem;
    font-weight: normal;
    color: #7e8e9f;
}

.subtitle-block {
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #e0e5ea;
}

.subtitle {
    font-size: 1.2rem;
    margin: 0;
    color: #7e8e9f;
}

.card {
    background-color: #fff;
    -webkit-box-shadow: 1px 1px 5px rgba(126, 142, 159, 0.1);
    box-shadow: 1px 1px 5px rgba(126, 142, 159, 0.1);
    margin-bottom: 10px;
    border-radius: 0;
    border: none;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
}

.card-block {
    padding: 15px;
}

@media (min-width: 1200px) {
    .card-block {
        padding: 20px;
    }
}

@media (max-width: 767.98px) {
    .card-block {
        padding: 10px;
    }
}

.card .title-block,
.card .card-title-block {
    padding-bottom: 0;
    margin-bottom: 20px;
    border: none;
}

.card .title {
    font-size: 1.1rem;
    color: #4f5f6f;
}

.card .title-block::after,
.card .card-title-block::after {
    display: block;
    clear: both;
    content: "";
}

label,
.control-label {
    font-weight: 600;
}

input.form-control {
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    border: none;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-bottom: 1px solid #d7dde4;
}

input.form-control:focus {
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-bottom: 1px solid #85CE36;
}

textarea.form-control:focus,
select.form-control:focus {
    border: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid #85CE36;
}

.radio+span,
.checkbox+span {
    padding: 0;
    padding-right: 10px;
}

table .radio+span,
table .checkbox+span {
    padding-right: 0;
}

.radio+span:before,
.checkbox+span:before {
    content: "\f0c8";
}

.checkbox.show+span:before {
    content: "\f070";
}

.radio:checked+span:before,
.checkbox:checked+span:before {
    content: "\f14a";
}

.checkbox.show:checked+span:before {
    content: "\f06e";
}

.checkbox.ban+span:before {
    content: "\f111";
}

.checkbox.ban:checked+span:before {
    content: "\f05e";
}

.radio+span:before,
.checkbox+span:before {
    font-family: "Font Awesome 5 Free";
    font-size: 21px;
    display: inline-block;
    vertical-align: middle;
    color: #c8d0da;
}

.radio:checked+span:before,
.checkbox:checked+span:before {
    color: #85CE36;
}

.icon_btn {
    background-color: #fff;
    border: solid #85CE36;
    border-width: 1px 1px 1px 1px;
    color: #85CE36;
    cursor: pointer;
    font-size: 16px;
    border-radius: .25rem;
}

.icon_btn:before {
    font-family: "Font Awesome 5 Free";
    margin-right: 10px;
}

.icon_btn:hover {
    background: #ffb22b;
    border-color: #ffb22b;
    color: #ffffff;
}

.icon_btn:focus {
    outline: none;
}

.icon_btn.save:before {
    content: "\f0c7";
}

.icon_btn.closed:before {
    content: "\f00d";
}

.icon_btn.plus:before {
    content: "\f0fe";
}

.icon_btn.edit:before {
    content: "\f303";
}

.icon_btn.delete:before {
    content: "\f2ed";
}

.icon_btn.reply:before {
    font-weight: 900;
    content: "\f3e5";
}

.icon_btn.search:before {
    font-weight: 900;
    content: "\f002";
}

.icon_btn.check:before {
    content: "\f00c";
}

.icon_btn.cog:before {
    font-weight: 900;
    content: "\f013";
}

.icon_btn.play:before {
    font-weight: 900;
    content: "\f04b";
}

.icon_btn.export:before {
    content: "\f56e";
    font-weight: 900;
}

.text-right {
    text-align: right !important;
}

.pagination {
    margin-top: 0;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

.pagination .page-item .page-link {
    color: #85CE36;
    text-decoration: none;
}

.page-link:focus {
    z-index: 2;
    outline: 0;
    box-shadow: 0 0 0 0;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active .page-link:focus,
.pagination .page-item.active .page-link:hover {
    color: #fff;
    border-color: #85CE36;
    background-color: #85CE36;
}

.imgUpload-area {
    display: block;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 200px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 22px;
    color: #777;
    background-color: #FFF;
    background-image: none;
    text-align: center;
    border: 2px solid #E5E5E5;
    -webkit-transition: border-color .15s linear;
    transition: border-color .15s linear;
    margin-bottom: 1rem;
}

.imgUpload-area:hover {
    background-size: 30px 30px;
    background-image: -webkit-linear-gradient(135deg, #F6F6F6 25%, transparent 25%, transparent 50%, #F6F6F6 50%, #F6F6F6 75%, transparent 75%, transparent);
    background-image: linear-gradient(-45deg, #F6F6F6 25%, transparent 25%, transparent 50%, #F6F6F6 50%, #F6F6F6 75%, transparent 75%, transparent);
    -webkit-animation: stripes 2s linear infinite;
    animation: stripes 2s linear infinite;
}

@keyframes stripes {
    from {
        background-position: 0 0
    }

    to {
        background-position: 60px 30px
    }
}

.imgUpload-area .message {
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.imgUpload-area .message i {
    font-size: 50px;
    color: #CCC;
}

.imgUpload-area .message p {
    margin: 5px 0 0;
}

.imgUpload-area input {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.imgUpload-preview {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: #FFF;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    text-align: center;
}

.imgUpload-preview img {
    top: 50%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    position: relative;
    max-width: 100%;
    max-height: 100%;
    background-color: #FFF;
    -webkit-transition: border-color .15s linear;
    transition: border-color .15s linear;
}

.imgUpload-area .imgUpload-clear {
    display: none;
    opacity: 1;
    background: #3a4651;
    position: absolute;
    z-index: 7;
    top: 5px;
    right: 5px;
    border: 1px solid #FFF;
    text-transform: uppercase;
    font-size: 18px;
    padding: 4px 8px;
    font-weight: 700;
    color: #FFF;
    -webkit-transition: all .15s linear;
    transition: all .15s linear;
    border-radius: .25rem;
}

.fileUpload-btn {
    width: 100%;
}

.fileUpload-text {
    margin-left: 10px;
    font-weight: 100;
}

.dtp-buttons>button.btn {
    border: none;
    border-radius: 2px;
    position: relative;
    box-shadow: none;
    color: rgba(0, 0, 0, 0.87);
    padding: 5px 16px;
    font-size: 12px;
    margin: 10px 1px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0;
    will-change: box-shadow, transform;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1),
        background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: 0;
    cursor: pointer;
    text-decoration: none;
    background: transparent;
}

.dtp-buttons>button.btn:hover,
.dtp-buttons>button.btn:focus {
    background-color: rgba(153, 153, 153, 0.2);
}

.dtp div.dtp-picker {
    padding: 0;
}

.function-btn {
    color: #85CE36 !important;
    cursor: pointer;
    font-size: 16px;
    border-radius: .25rem;
    text-decoration: inherit !important;
    margin: 5px;
}

.function-btn::before {
    font-family: "Font Awesome 5 Free";
}

.function-btn.edit::before {
    font-weight: 900;
    content: "\f303";
}

.function-btn.delete::before {
    content: "\f2ed";
}

/* summerNote */
.custom-control-input {
    opacity: unset;
    position: unset;
}

.note-image-input.note-form-control.note-input[type="file"] {
    width: 100%;
}