:root {
    /*--bs-body-font-family: 'Microsoft JhengHei, Arial' !important;*/
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /*margin-bottom: 60px;*/
    background-color: var(--bs-body-bg) !important;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.light-style .layout-navbar .navbar.landing-navbar {
    /*background: #808080;*/
}

#content {
    flex: 1;
    visibility: hidden;
}

    #content.container {
        padding-top: 6.2rem;
    }

/* form */

.form-check-input {
    cursor: pointer;
}

label.required::after {
    content: '*';
    padding-left: 3px;
    font-size: 15px;
    color: red;
}

/* options */
option:disabled {
    background-color: #e2e2e2;
}

/* sweet alert */
div:where(.swal2-container) {
    z-index: 3000 !important;
}

/* breadcrumb */

nav._breadcrumb .breadcrumb-item button {
    background: none !important;
    border: none;
    padding: 0 !important;
    /* font-family: arial, sans-serif; */
    color: #697a8d;
    cursor: pointer;
}

nav._breadcrumb {
    display: flex;
    justify-content: space-between;
}

    nav._breadcrumb ._prev {
        font-size: 0.9rem;
    }

/* pagination */
nav._pagination {
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

    nav._pagination ul {
        margin: 0px;
    }

/* facnbox */

.fancybox__container {
    z-index: 9999 !important;
}

/* select2 */

.select2-dropdown {
    z-index: 9999 !important;
}

/* table sorting */
table.sortable th.is-sortable {
    position: relative;
    padding-right: 2em;
    user-select: none;
    cursor: pointer;
}
    /* 上箭頭 */
    table.sortable th.is-sortable::before {
        content: '';
        position: absolute;
        right: 1em;
        top: 30%;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 6px solid #ccc;
        pointer-events: auto;
        transition: border-color 0.2s;
    }

    /* 下箭頭 */
    table.sortable th.is-sortable::after {
        content: '';
        position: absolute;
        right: 1em;
        top: 55%;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #ccc;
        pointer-events: auto;
        transition: border-color 0.2s;
    }

    /* 4. 升冪高亮上箭頭 */
    table.sortable th.is-sortable.sort-asc::before {
        border-bottom-color: #333;
    }

    /* 5. 降冪高亮下箭頭 */
    table.sortable th.is-sortable.sort-desc::after {
        border-top-color: #333;
    }