:root {
    --shc-bg: #f7f2ff;
    --shc-color: mediumpurple;
    --shc-button-bg: mediumpurple;
    --shc-button-border: mediumpurple;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    /*margin-bottom: 60px;*/
    background-color: var(--shc-bg);
}

.page-title {
    margin-bottom: 10px;
}

table.table {
    min-width: 600px;
}

table > thead > tr > th.action {
    width: 100px;
}

button {
    border: 0;
    background: none;
    color: #435ebe;
    font-weight: 700;
}

select.readonly {
    pointer-events: none;
    background-color: #E9ECEF;
}

a {
    color: var(--shc-color);
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--shc-color);
}

/*#region -- bootstrap extension -- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn.btn-main {
    color: #fff;
    background-color: #435ebe;
    border-color: #435ebe;
}

    .btn.btn-main i {
        margin-right: 5px;
    }

.btn.btn-main-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn.btn-main-danger i {
        margin-right: 5px;
    }

.btn.btn-sub {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

    .btn.btn-sub i {
        margin-right: 5px;
    }

.table.table-func th {
    text-align: left;
}

.card.card-func .card-title {
    margin-bottom: 0;
}

.mw-75 {
    max-width: 75%;
}

.mw-50 {
    max-width: 50%;
}

.mw-25 {
    max-width: 25%;
}

.bg-lightpurple {
    background: var(--shc-bg) !important;
}

.bg-purple {
    background: var(--shc-button-bg) !important;
}

.color-purple {
    color: var(--shc-color) !important;
}
/*#endregion */

/*#region -- Mazer extension -- */
.dataTable-dropdown label {
    margin-left: 0 !important;
    margin-right: 15px;
}

#error {
    background-color: #fff !important;
}

.sidebar-wrapper .menu .sidebar-item.active .sidebar-link {
    background-color: var(--shc-button-bg);
}

.btn.btn-main, .btn.btn-primary {
    background-color: var(--shc-button-bg);
    border-color: var(--shc-button-border);
}

.form-check-input:checked {
    background-color: var(--shc-button-bg);
    border-color: var(--shc-button-border);
}

.sidebar-wrapper .menu .submenu .submenu-item.active > a {
    color: var(--shc-color);
}

.page-link {
    color: var(--shc-color);
}

.pagination.pagination-primary .page-item.active .page-link {
    background-color: var(--shc-button-bg);
    border-color: var(--shc-button-border);
}
/*#endregion */
/*#region -- img preview -- */
.photoswipe-preview {
    max-height: 200px;
}

.photoswipe-delete {
    position: relative;
    right: 26px;
    top: -88px;
    width: 20px;
    height: 20px;
    z-index: 1;
    cursor: default;
}

.img-preview-inner {
    position: relative;
    display: inline-block;
}

.img-delete {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.img-preview-item {
    display: inline-block;
    max-height: 100px;
    padding: 5px;
    cursor: pointer;
}

/*#endregion */


/*#region -- img zoom in/out -- */

.imgPreview {
    z-index: 100;
    display: none;
    top: 0;
    left: 0;
    width: 100%; /*容器佔滿整個螢幕*/
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
}

    .imgPreview img {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        max-width: 100%;
        max-height: 100%;
        cursor: pointer;
    }

/*#endregion */

.sidebar-wrapper .menu {
    margin-top: 0;
}

.logo {
    font-size: 1.5rem;
}

    .logo a {
        display: inline-block;
        width: 100%;
        height: 100%;
        color: var(--shc-color);
    }

    .logo img {
        height: 70px !important;
    }

#main {
    height: 100vh;
}


.paging {
    margin-top: .75rem;
}
/*
input[type="number"] {
    text-align: right;
}*/
.bage-primary {
    background-color: #435ebe;
}

.badge-radius {
    border-radius: 50%;
    margin-left: 5px;
}

.js-table-number {
    cursor: pointer;
}

.js-clear-time {
    font-size: 10px;
    color: blue !important;
    cursor: pointer;
}

button {
    color: rebeccapurple;
}

.pagination-pagerow > select {
    padding-top: 5px;
    padding-bottom: 4px;
    margin-right: 1em;
}

.bg-amount {
    background-color: #fff200;
}

.text-click {
    font-size: 13.5px;
    color: black;
    border: 1px solid black;
    border-radius: 5px;
    padding: 2px;
    cursor: pointer;
}
