@font-face {
    font-family: '正黑體修正';
    unicode-range: U+7db0, U+78A7, U+7B75; /* ASCII (碧筵綰) */
    font-style: normal;
    font-weight: bold;
    src: local(Yu Gothic), local(MS Gothic);
}
@font-face {
    font-family: '正黑體修正';
    unicode-range: U+7db0, U+78A7, U+7B75; /* ASCII (碧筵綰) */
    font-style: normal;
    font-weight: normal;
    src: local(微軟正黑體);
}

body.console {
    font-size: 14px;
    font-family: "微軟正黑體","Microsoft JhengHei","正黑體修正","Microsoft YaHei","微软雅黑体","LiHei Pro","黑體",sans-serif, arial important;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #ffffff;
}

body.console p, body.console ul li, body.console ol li {
    font-size: inherit;
    line-height: inherit;
}

.control-sidebar a, .navbar a, .main-sidebar a {
    text-decoration: none !important;
}

.content-header {
    position: -webkit-sticky;
    position: sticky;
    top: 57px;
    height: 70px;
    background-color: #f8f9faf8;
    border-bottom: 1px solid #dee2e6;
    z-index: 1020;
}

.content-header h1 {
    max-width: calc(100% - 60px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/*bugfix: bootstrap modal關閉時會不斷增加 padding-right*/
.modal-open .modal {
    padding-right: 0 !important;
}

/*custom modal close button*/
.modal .modal-header {padding-top:0.5rem;padding-bottom:0.5rem;}
.modal .modal-header .close, .modal .modal-header .close:hover, .modal .modal-header .close:focus {opacity:1;outline:none;}
.modal .modal-header .close svg {width:22px;height:22px;stroke:#a0a0a0;stroke-width:12px;fill:transparent;}
.modal .modal-header .close svg:hover {stroke:#ff0000;stroke-width:16px;}
.modal .modal-content textarea {
    width: 100%;
    border: 1px solid #888;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 0.5rem;
}
.modal .modal-content textarea:focus {
    padding: 0.5rem;
}

/*custom modal size*/
.modal .modal-xxl {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}
.modal .modal-fs {
  max-width: calc(100vw - 40px);
  margin-left: auto;
  margin-right: auto;
}

/*full screen backdrop*/
.fsBackdrop {
    position: fixed;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
    border: none;
    width: 100vw;
    height: 100vh;
    background: rgba(128,128,128,0.5);
    z-index: 2147483646;
}

.imgLoading {
    position: fixed;
    left: calc(50% - 120px);
    right: calc(50% - 120px);
    top: calc(50% - 120px);
    bottom: calc(50% - 120px);
    width: 240px;
    opacity: 0.5;
    z-index: 2147483647;
}

#gotoPageTop {
    display: block;
    position: fixed;
    bottom: -50px;
    right: calc(50vw - 24px);
    z-index: 999;
    width: 48px;
    cursor: pointer;
    opacity: 0.6;
    -webkit-transition: bottom 1s;
    transition: bottom 1s;
}

#gotoPageTop:hover {
    opacity: 1;
}

.e-float-text {
    font-size: 14px !important;
}

.page-header {
  font-size: 1.4em;
  font-weight: 500;
}

h1 {
  font-size: 2rem;
  display: inline-block;
}
.page-header .actionButtons {
  float: right; }

.sectionTitle {
  font-size: 15px;
  font-weight: 700; }

.e-float-input.switch-padding {
  padding:4px 0 8px; }

.input-label {
    position: relative;
    text-align: right;
}

.input-label div, .input-label label {
    line-height: 1.4;
    margin-bottom: 4px;
    margin-top: 16px;
    padding: 4px 0 8px;
    word-break: break-word;
    font-size: 14px;
    font-weight: 700;
}

.input-label.required label::before {
    content: "*";
    color: red;
    margin-right: 0.15rem;
    font-size: 1.1rem;
    font-weight: 700;
}

span.input-label {
    line-height: 1.4;
    margin-bottom: 4px;
    margin-top: 16px;
    padding: 4px 0 8px;
    word-break: break-word;
    font-size: 14px;
}

.input-label.input-error {
    color: #ee0000;
}

.input-label.input-error:after {
    content: "⚠";
}

.input-label.input-error label {
    background: #ffdddd;
}

.field-label {
    position: relative;
    text-align: right;
}

.field-label div, .field-label label {
    line-height: 1.4;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 4px 0;
    word-break: break-word;
}

.field-value {
    position: relative;
    text-align: left;
}

.field-value div {
    line-height: 1.4;
    margin-bottom: 4px;
    margin-top: 4px;
    padding: 4px 0;
}

@media (max-width: 575px) {
    .input-label, .field-label {
        text-align: left;
    }
    .input-label div, .input-label label, .field-label div, .field-label label {
        margin-top: 0px;
        margin-bottom: 0px;
        padding: 0;
        line-height: 1;
        font-size: 12px;
        color: #999;
    }
    .e-float-input {
        margin-top: 4px !important;
        margin-bottom: 20px !important;
    }
}
.switch-label-left {
    margin-right: 14px;
}

.switch-label-right {
    margin-left: 14px;
}

@media (max-width: 575px) {
    .e-grid .gridCommand {
        display: block;
    }
}
@media (min-width: 576px) {
    .e-grid .gridCommand {
        display: inline-block;
    }
}

.e-grid .e-altrow {
    background-color: #f8f8f8;
}

.e-grid .itemImg {
    height: 100%;
    max-width: 100px;
    max-height: 100px;
    margin: 4px 0;
    box-shadow: 0 0 3px #ddd;
    cursor: zoom-in;
}

.e-grid .e-gridheader th[aria-filtered="true"] .e-headertext {
    color: #0000ff !important;
    font-weight: 900;
}

.e-grid .e-headercell, .e-grid .e-detailheadercell {
    padding: 0 8px !important;
}

.e-grid th.e-headercell[aria-sort='ascending'], .e-grid th.e-headercell[aria-sort='descending'] {
    background-color: rgba(139, 195, 74, 0.25);
    font-weight: 900;
}

.e-grid .e-unboundcell {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.e-grid .e-preview::before, .e-grid-menu .e-preview::before {
    content: '\e345';
}

.e-grid .e-description::before, .e-grid-menu .e-description::before {
    content: '\e30d';
}

.e-grid .e-rowdragdrop {
  width: 14px;
  min-width: 14px;
}

.e-grid .e-rowcell.itemImage {
    padding: 0;
    margin: auto;
}

/*command column內的button同大小,均分*/
.grid-row-command .e-unboundcelldiv {
    width: 100%;
    display: -ms-flexbox!important;
    display: flex!important;
    flex-flow: row wrap;
    -ms-flex-pack: distribute!important;
    justify-content: space-between!important;
}
.grid-row-command .e-unboundcelldiv button {
    min-width: 60px;
    max-width: 120px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
    white-space: normal;
}
.grid-row-command .e-unboundcelldiv .e-btn, .e-css.e-btn {
    padding: 6px 6px 4px;
    overflow: hidden;
}

.grid-row-command .e-unboundcelldiv button .e-btn-icon:before {
    color: #fff;
    text-shadow: 0 0 1px #000, 0 0 1px #000;
}

/*bugfix: 刪除確認dialog的target設在grid,遮罩背景只在grid. 應遮蓋全視窗, dialog出現的位置才會正確*/
.e-dlg-container {
    position: fixed !important;
}

.e-dlg-container .e-dialog {
    max-height: 76vh !important;
}

.button-face {
    padding: 4px 8px;
    margin: 0 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 4px;
}

.modal-dialog.dataModal {
    width: 95vw;
}

.modal-header {
    cursor: move;
}
.modal-body {
    max-height: 76vh;
    overflow-y: auto;
}

.modal .e-tab .e-tab-header .e-toolbar-item {
  user-select: none;
}
.modal .e-tab .e-tab-header .e-toolbar-item .e-tab-text {
  text-transform: none;
  font-size: 1.15rem;
}
.modal .e-tab.e-fill .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    text-shadow: 1px 1px #000;
}
.modal .e-tab .e-tab-header .e-toolbar-item .e-tab-icon {
    color: #0ff !important;
}

.jodit-workplace {
    background: #fff;
}
.modal .jodit_sticky>.jodit-toolbar__box {
    top: -1rem;
}

.e-control {
    font-size: 14px;
}

.e-btn {
  text-transform: none !important;
}

/*--- AdminLTE template customization ---*/
.nav-sidebar .menu-open>.nav-link i.right {
    color: #ff9000;
    transform: rotate(-90deg) scale(1.3);
}
.navbar {
    font-size: 15px;
    color: #000;
}
.brand-link .brand-image {
    float: none;
    margin: auto !important;
}
.brand-link .brand-text {
    text-shadow: 0 0 1px #fff, 0 0 1px #000, 0 0 1px #000;
}

[class*='sidebar-light-'] {
    background-color: #f8f8f8 !important;
}

.sidebar * {
    font-size: 1.05rem;
}
.sidebar .nav-link {
    padding: 0.5rem 0rem !important;
}

.sidebar .nav-pills .nav-link, .nav-treeview>.nav-item>.nav-link {
    color: #080808 !important;
}

.sidebar .menu-accordion {
    font-size: 1.25rem;
}
.sidebar .nav-link .nav-icon {
    color: #88898a;
}
.sidebar .nav-link.active .nav-icon {
    color: #e3165b;
}
.sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent; /* make block scrollable but hide scrollbar */
}
.sidebar-collapse .main-sidebar .nav-sidebar.nav-child-indent .nav-treeview {
    padding-left: 1rem;
}

.nav-sidebar>.nav-item {
    border-bottom: 1px solid #606060;
}
.nav-sidebar .nav-item>.nav-link {
    margin-top: .2rem;
}
.nav-sidebar.nav-child-indent .nav-treeview {
    padding-left: 1.5rem;
}
.control-sidebar {
    font-size: 14px;
}
.control-sidebar .account-info, .control-sidebar .topup-info {
    word-break: break-all;
}
.control-sidebar .info-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #45aaff;
    text-shadow: 0 0 1px #000, 0 0 1px #000, 0 0 1px #fff;
    margin-bottom: 0.5rem;
}
.control-sidebar .info-label {
    font-weight: 500;
    color: #fff;
}

input[type=checkbox].color-checkbox {
    margin-right: 0.25rem;
    cursor: pointer;
    font-size: 1.1rem;
    width: 1.25rem;
    height: 1.25rem;
    position: relative;
    vertical-align: middle;
}
input[type=checkbox].color-checkbox:after {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    top: 0px;
    content: " ";
    background-color: #808080;
    color: #fff;
    display: inline-block;
    visibility: visible;
    border-radius: 3px;
}
input[type=checkbox].color-checkbox:checked:after {
    content: "✓";
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
    background-color: #ff0000;
    line-height: 1.25rem;
    overflow: hidden;
}

.dropdownlist-group-name {
    color: blue;
    font-size: 1.2em;
    font-weight: 500;
}

.e-fe-popup.e-dlg-resizable .e-dlg-content {
    overflow: auto !important;
}
.e-fe-popup.e-dialog .e-image {
    height: auto !important;
}
