html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 170px;
}


body {
    padding-right: 0px !important;
    font-size: 17px;
    font-family: 'Inter', '微軟正黑體', sans-serif;
    letter-spacing: 1px;
}

/* ----basic setting ----- */

:root {
    --main-color: #5A90CE;
    --vice-color: #696C72;
    --dark-color: #383D44;
    --darkgray-color: #54575B;
    --gray-color: #CCCCCC;
    --lightgray-color: #E4E4E4;
    --green-color: #83AF78;
    --orange-color: #F08548;
    --red-color: #E04848;
    --yellow-color: #F5B50F;
    --robinblue-color: #5AC7CE;
    --lightgreen-color: #A2CE5A;
    /* light series */
    --main-color-l: rgba(90, 144, 206, 0.1);
    --green-color-l: rgba(131, 175, 120, 0.1);
    --red-color-l: rgba(224, 72, 72, 0.08);
    --yellow-color-l: rgba(245, 180, 15, 0.08);
}

a {
    color: var(--main-color);
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}

    a:focus,
    a:hover {
        text-decoration: none;
        outline: 0;
        color: var(--main-color);
        cursor: pointer;
    }

img {
    border: 0;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
label {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ----basic setting end ----- */


/* ---- sidenav & main-ct ----- */
.os-flex {
    display: flex;
    flex-wrap: wrap;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}


.side-nav {
    transition: .3s ease;
    width: 240px;
    max-height: calc(100vh - 80px);
    position: fixed;
    background-color: rgba(34, 132, 81, 0.1);
    box-shadow: 8px 0 10px -7px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.side-sticky {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
}


.main-ct {
    transition: .3s ease;
    position: sticky;
    margin-left: 240px;
    top: 80px;
    min-height: calc(100vh - 80px);
    width: calc(100% - 240px);
    padding: 30px 45px 80px;
    background-color: rgba(244, 244, 244, 0.6);
}

@media (max-width: 1440px) {
    .main-ct {
        padding: 30px 50px;
    }
}

@media (max-width: 992px) {
    .main-ct {
        margin-left: 0;
        width: 100%;
        padding: 30px 15px;
    }
}

@media (max-width: 576px) {
    .main-ct {
        padding: 30px 15px 80px;
    }
}

.content {
    padding: 15px 30px;
    background-color: #fff;
    transition: .3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
    }
}

/* ---- sidenav & main-ct end ----- */

/* ----- header ----- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    box-shadow: 0 5px 10px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

    header .logo {
        width: 420px;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: .3s ease;
    }

        header .logo a {
            width: 100%;
        }

        header .logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: .3s ease;
        }

@media (max-width: 576px) {
    header .logo {
        width: 300px;
    }
}

header .logout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    font-size: 20px;
}

    header .logout .admin {
        color: #228452;
        width: 100%;
        text-align: center;
    }

    header .logout a span {
        display: inline-block;
    }

    header .logout a {
        text-align: center;
        display: block;
        width: 110px;
        min-width: 110px;
        font-weight: 800;
        color: var(--darkgray-color);
    }

        header .logout a i {
            font-size: 20px;
        }


.nav-menu {
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    height: 100%;
}


    .nav-menu::-webkit-scrollbar {
        width: 7px;
    }

    .nav-menu::-webkit-scrollbar-button {
        background: transparent;
        border-radius: 4px;
    }

    .nav-menu::-webkit-scrollbar-track-piece {
        background: transparent;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background-color: rgba(102, 102, 102, 0.2);
    }

    .nav-menu::-webkit-scrollbar-track {
        box-shadow: transparent;
    }

    .nav-menu ul {
        padding: 0;
        margin: 0;
    }

    .nav-menu > ul > li {
        position: relative;
        list-style: none;
    }


        .nav-menu > ul > li > a {
            display: flex;
            position: relative;
            height: 50px;
            padding: 10px 20px;
            transition: 0.3s;
            font-size: 18px;
            text-align: left;
            letter-spacing: 3px;
            color: rgba(94, 119, 106, 1);
            border-bottom: 1px solid rgba(34, 132, 81, 0.09);
        }

            .nav-menu > ul > li > a > i {
                display: inline-block;
                margin-right: 5px;
                width: 30px;
            }

        .nav-menu > ul > .active > a,
        .nav-menu .drop-down.on > a,
        .nav-menu > ul > li:hover > a {
            color: rgba(34, 132, 81, 0.75);
            background-color: rgba(255, 255, 255, 0.8);
        }

    .nav-menu .drop-down > a {
        display: flex;
        align-items: center;
    }



        .nav-menu .drop-down > a::after {
            display: block;
            content: '\f078';
            margin-left: 15px;
            font-size: 16px;
            color: var(--gray-color);
            font-family: 'Font Awesome 6 Pro';
            transition: .3s ease;
        }

    .nav-menu .drop-down.on > a::after {
        transform: rotate(180deg);
    }

    .nav-menu .drop-down > ul {
        background-color: #FAFAFA;
    }

    .nav-menu .drop-down.active > ul {
        background-color: #FAFAFA;
    }

    .nav-menu .drop-down > ul li {
        list-style: none;
        display: block;
    }

    .nav-menu .drop-down > ul > li a {
        display: block;
        position: relative;
        padding: 10px 20px 10px 35px;
        word-break: break-all;
        transition: 0.3s ease;
        font-size: 18px;
        text-align: left;
        letter-spacing: 2px;
        color: #999;
    }


    .nav-menu .drop-down > ul > li.active a,
    .nav-menu .drop-down > ul > li:hover a {
        color: #228452;
    }



/* ----- header end----- */



/* ----- mobile nav ----- */
.mobile-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    left: -260px;
    width: 260px;
    background: #fafafa;
    transition: 0.4s;
}

    .mobile-nav * {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-nav a {
        display: block;
        position: relative;
        color: var(--darkgray-color);
        padding: 10px 20px;
        transition: 0.3s;
        border-bottom: 1px solid #eee;
    }

        .mobile-nav a i {
            margin-right: 10px;
        }


    .mobile-nav > ul > .active > a,
    .mobile-nav > ul > li:hover > a {
        color: #228452;
        text-decoration: none;
        background-color: var(--green-color-l);
    }



    .mobile-nav .drop-down > a:after {
        content: "\ea99";
        font-family: IcoFont;
        padding-left: 10px;
        position: absolute;
        right: 15px;
    }

    .mobile-nav .active.drop-down > a:after {
        content: "\eaa0";
    }



    .mobile-nav .drop-down ul {
        display: none;
        overflow: hidden;
        background-color: #fff;
    }

    .mobile-nav .drop-down li {
        padding-left: 20px;
    }

        .mobile-nav .drop-down li a {
            font-size: 15px;
            transition: .3s ease;
        }

        .mobile-nav .drop-down li.active a,
        .mobile-nav .drop-down li:hover a {
            color: #228452;
        }

.mobile-nav-toggle {
    position: fixed;
    right: 15px;
    top: 24px;
    z-index: 1020;
    border: 0;
    background: none;
    font-size: 25px;
    transition: all 0.3s;
    outline: none !important;
    line-height: 1;
    padding: 0;
}

    .mobile-nav-toggle i {
        color: #228452;
    }

.mobile-nav-overly {
    width: 100%;
    height: 100%;
    z-index: 1010;
    top: 0;
    left: 0;
    position: fixed;
    background: #deeadc;
    opacity: .8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: none;
}

.mobile-nav-active {
    overflow: hidden;
}

    .mobile-nav-active .mobile-nav {
        left: 0;
    }

    .mobile-nav-active .mobile-nav-toggle i {
        color: #228452;
    }

.mobile-nav .mb-admin {
    font-weight: 800;
    color: #228452;
    padding: 10px 20px;
}



/* ----- mobile-nav end ----- */


/* ----- component ----- */

h1 {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 30px;
    letter-spacing: 1px;
    transition: .3s ease;
}

h2 {
    font-weight: bold;
    color: var(--darkgray-color);
    font-size: 25px;
    letter-spacing: 1px;
    transition: .3s ease;
}

h3 {
    font-weight: bold;
    color: var(--main-color);
    font-size: 20px;
    letter-spacing: 1px;
    transition: .3s ease;
}

    h3.dark {
        color: var(--darkgray-color);
    }

@media (max-width: 768px) {
    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }
}

a.main-link {
    font-size: 15px;
    border-bottom: 1px dashed var(--orange-color);
}

.status {
    background-color: #fff;
    padding: 5px 10px;
    font-size: 15px;
    color: var(--main-color);
}

    .status span {
        color: var(--red-color);
    }

.nav-tabs {
    border-bottom: none;
}

    .nav-tabs .nav-link {
        padding: 6px 20px;
        border: none;
        border-radius: 0;
        color: var(--darkgray-color);
        background-color: #e5e5e5;
    }

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        padding: 6px 12px;
        font-size: 15px;
    }
}

.nav-tabs .nav-link:not(:last-of-type) {
    border-right: 1px solid #ccc;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-right: none;
    background-color: var(--main-color);
    color: #fff;
}

.section-page {
    padding: 30px 0;
}

@media (max-width: 992px) {
    .section-page {
        padding: 20px 0;
    }
}


.breadcrumb {
    background-color: transparent;
    padding: 0;
    justify-content: end;
    margin: 15px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "|";
    color: var(--gray-color);
}

.breadcrumb-item {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    height: fit-content;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 200px;
}

    .breadcrumb-item.active {
        max-width: unset;
    }

    .breadcrumb-item a {
        color: #aaaaaa;
    }

    .breadcrumb-item.active a {
        color: var(--main-color);
    }



.modal {
    padding-right: 0px !important;
    backdrop-filter: blur(4px);
}


@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px !important;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 600px !important;
        margin: 0 auto;
    }
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

    .modal-content .modal-header {
        background-color: var(--dark-color);
        color: #fff;
    }

        .modal-content .modal-header .close {
            position: absolute;
            color: #fff;
            top: 17px;
            right: 17px;
        }

.modal-backdrop {
    background-color: var(--main-color);
}

.modal-dialog-lg {
    max-width: 90% !important;
}

.modal-dialog-top {
    margin-top: 30px;
    display: flex;
    align-items: start;
    min-height: calc(100% - 1rem);
}

@media (min-width: 576px) {
    .modal-dialog-top {
        min-height: calc(100% - 3.5rem);
    }
}


.modal label,
.modal input,
.modal select,
.modal textarea {
    width: 100%;
}



textarea {
    outline: none;
}

input {
    outline: none;
}

select {
    outline: none;
}

    input:disabled,
    select:disabled,
    textarea:disabled {
        background-color: #ebebeb;
        color: var(--darkgray-color);
    }

input[type='checkbox'] {
    position: relative;
    width: unset !important;
    height: unset !important;
    height: 25px;
    width: 25px;
}

    input[type='checkbox']::before {
        display: block;
        content: '';
        position: absolute;
        width: 25px;
        height: 25px;
        top: -7px;
        left: -3px;
        border: 1px solid #656565;
        background-color: #fff;
        border-radius: 3px;
        z-index: 1;
    }

    input[type='checkbox']::after {
        display: flex;
        justify-content: center;
        align-items: center;
        content: '\f00c';
        font-family: 'Font Awesome 6 Pro';
        position: absolute;
        width: 25px;
        height: 25px;
        top: -7px;
        color: var(--red-color);
        left: -3px;
        transition: .3s ease;
        transform: scale(0);
        z-index: 2;
    }

    input[type='checkbox']:checked::after {
        transform: scale(1);
    }

    input[type='checkbox'].toggleBtn {
        height: 25px !important;
    }

        input[type='checkbox'].toggleBtn::before {
            width: 50px;
            border-radius: 50px;
            background-color: #e6e6e6;
            transition: .3s ease;
            top: 0px;
        }

        input[type='checkbox'].toggleBtn::after {
            transform: none;
            content: '';
            border: 1px solid #e6e6e6;
            background-color: #fff;
            width: 23px;
            height: 23px;
            border-radius: 50px;
            top: 1px;
            left: -2px;
        }

        input[type='checkbox'].toggleBtn:checked::before {
            background-color: var(--main-color);
        }

        input[type='checkbox'].toggleBtn:checked::after {
            border: 1px solid var(--main-color);
            left: 23px;
        }

input[type='radio'] {
    position: relative;
    width: unset !important;
    height: unset !important;
}

    input[type='radio']::after {
        position: absolute;
        display: block;
        width: 25px;
        height: 25px;
        content: '';
        top: -7px;
        left: -3px;
        border: 1px solid #e6e6e6;
        background-color: #fff;
        border-radius: 3px;
        z-index: 1;
    }

    input[type='radio']::before {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 25px;
        height: 25px;
        content: '\f00c';
        font-family: 'Font Awesome 6 Pro';
        top: -7px;
        left: -3px;
        z-index: 2;
        transform: scale(0);
        transition: .3s ease;
        color: var(--red-color);
    }

    input[type='radio']:checked::before {
        transform: scale(1);
    }

.check-box {
    width: fit-content;
    margin-right: 25px;
    align-items: center;
    display: inline-flex;
    margin-bottom: 5px;
}

.radio-box {
    width: fit-content;
    margin-right: 25px;
    align-items: center;
    display: inline-flex;
}

    .radio-box label,
    .check-box label {
        width: fit-content !important;
        min-width: unset !important;
    }

    .radio-box input,
    .check-box input {
        margin-right: 15px;
    }

        .radio-box input:checked ~ label,
        .check-box input:checked ~ label {
            color: var(--red-color);
        }

input[type=file] {
    height: 40px !important;
    font-size: 15px;
    color: var(--main-color);
    letter-spacing: 1px;
}

    input[type=file]::file-selector-button {
        margin-right: 10px;
        border: none;
        background: var(--main-color);
        padding: 2px 20px;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
        transition: opacity .2s ease;
    }

        input[type=file]::file-selector-button:hover {
            opacity: .85;
        }

.address-box {
    width: 100%;
    display: flex;
}

    .address-box > div {
        width: 100% !important;
    }

@media (max-width: 576px) {
    .address-box {
        flex-wrap: wrap;
    }
}

.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.address-box > div .select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.fm-group label {
    display: block;
    color: #333;
}

.fm-group input,
.fm-group textarea {
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.fm-group select {
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.fm-button {
    height: 100%;
    display: flex;
    align-items: end;
}


.btn-list {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
    justify-content: end;
}

    /* .btn-list .dropdown, */
    .btn-list button {
        margin: 2px 0px 2px 5px;
    }

button {
    height: 35px;
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    outline: none;
    border: none;
    letter-spacing: 1.5px;
    transition: .3s ease;
}

@media (max-width: 576px) {
    button {
        font-size: 15px;
    }
}

button:hover {
    opacity: .85;
}

button:focus {
    outline: none;
}

button.small {
    height: 28px;
    padding: 3px 10px;
    margin-bottom: 3px;
}

button.middle {
    height: 30px;
    padding: 3px 10px;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 24px;
}

button.main {
    background-color: var(--main-color);
}

button.record {
    background-color: var(--vice-color);
}

button.back {
    background-color: #eee;
    color: var(--dark-color);
}

button.print {
    background-color: var(--green-color);
}

button.gear {
    background-color: var(--orange-color);
}

button.print:hover {
    color: #fff;
    opacity: .85;
}


.swal2-container button {
    height: unset !important;
}

.dropdown {
    display: inline-block;
}

.dropdown-menu {
    border: 1px solid #eee;
}

button.edit {
    background-color: var(--orange-color);
}

button.delete {
    background-color: var(--red-color);
}

button.view {
    background-color: #868A90;
}

button.file {
    background-color: var(--yellow-color);
}

button.setting {
    background-color: var(--robinblue-color);
}

button.mail {
    background-color: var(--lightgreen-color);
}

button.main-border {
    background-color: #fff;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

button.dark-border {
    background-color: #fff;
    color: #101010;
    border: 1px solid #101010;
}

button.red-border {
    background-color: #fff;
    color: var(--red-color);
    border: 1px solid var(--red-color);
}

button.ex-dl {
    background-color: #fff;
    color: var(--green-color);
    border: 1px solid var(--green-color);
}

button.cancel {
    background-color: var(--gray-color);
}

button.addLesson.active {
    background-color: #aaa;
}

.main-table {
    width: 100%;
}

    .main-table th,
    .main-table td {
        vertical-align: middle;
        padding: 5px 10px;
        font-weight: normal;
        font-size: 18px;
        box-sizing: content-box;
    }

    .main-table thead {
        background-color: var(--dark-color);
        color: #fff;
    }

    .main-table tbody tr {
        border-bottom: 1px solid #c1c1c1;
        /* transition: .3s ease;*/
    }

        .main-table tbody tr:hover {
            background-color: var(--main-color-l);
        }

    .main-table .red-mark {
        color: var(--red-color);
    }

    .main-table .func-btn-t {
        text-align: left;
    }

    .main-table .func-btn {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: start;
    }

        .main-table .func-btn button {
            margin: 2px 3px;
        }

@media (max-width: 1200px) {
    .main-table thead {
        display: none;
    }

    .main-table tbody tr {
        border-bottom: 1px solid var(--main-color);
        display: block;
        margin-bottom: 15px;
    }

        .main-table tbody tr:hover {
            background-color: transparent;
        }

    .main-table td {
        display: flex;
        border-bottom: 1px solid #eee;
        /* transition: .3s ease;*/
    }

        .main-table td.num {
            font-size: 17px;
            font-weight: 700;
        }

        .main-table td.func-btn,
        .main-table td > .func-btn {
            justify-content: end;
        }

        .main-table td.selectbox {
            padding: 15px;
        }

        .main-table td::before {
            display: block;
            width: 150px;
            min-width: 150px;
            content: attr(data-title);
            color: var(--main-color);
        }

        .main-table td.selectbox::before,
        .main-table td.num::before,
        .main-table td.func-btn::before {
            display: none;
        }
}

@media (max-width: 576px) {
    .main-table td {
        flex-wrap: wrap;
        width: 100%;
    }

        .main-table td::before {
            width: 100%;
            margin-bottom: 5px;
        }
}

.infobox {
    display: flex;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

    .infobox .info-t {
        width: 150px;
        min-width: 150px;
        color: var(--main-color);
    }

    .infobox .info-ct {
        color: var(--darkgray-color);
    }



.infobox-img {
    padding: 20px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    width: 100%;
}

.infobox-img-t {
    text-align: center;
    margin-bottom: 10px;
    color: var(--main-color);
}

.infobox-img img {
    display: block;
    margin: 0 auto;
    width: 85%;
    height: 200px;
    object-fit: contain;
    transition: .3s ease;
}

@media (max-width: 576px) {
    .infobox-img img {
        width: 100%;
    }
}


.editbox {
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {
    .infobox {
        flex-wrap: wrap;
    }

        .infobox .info-t {
            width: 100%;
            min-width: 100%;
        }
}


.editbox label {
    display: block;
    width: 150px;
    min-width: 150px;
    color: var(--darkgray-color);
    font-size: 16px;
}

.editbox input,
.editbox textarea {
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
    /*transition: .3s ease;*/
}

.editbox textarea {
    height: auto;
}

    .editbox input:focus,
    .editbox textarea:focus {
        border-color: var(--main-color);
    }

.editbox select {
    border: 1px solid black;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.editbox > .radio-group {
    padding: 5px 3px;
    height: 35px;
    width: 100%;
}

@media (max-width: 480px) {
    .editbox {
        flex-wrap: wrap;
    }

        .editbox label {
            width: 100%;
            min-width: 100%;
            margin-bottom: 3px;
        }
}


.editbox-img {
    padding: 20px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    width: 100%;
    height: 200px;
}

    .editbox-img img {
        display: block;
        margin: 0 auto;
        width: 85%;
        height: 100%;
        object-fit: contain;
        transition: .3s ease;
    }

@media (max-width: 576px) {
    .editbox-img img {
        width: 100%;
    }
}

.linkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color-l);
    padding: 20px;
    height: 160px;
    border-radius: 5px;
    transition: .3s ease;
}

    .linkbox:hover {
        opacity: .8;
    }

    .linkbox .box-ct {
        text-align: center;
        letter-spacing: 1.5px;
    }

    .linkbox h3 {
        color: var(--main-color);
        font-size: 30px;
        margin-bottom: 5px;
    }

    .linkbox h6 {
        font-size: 22px;
        color: var(--darkgray-color);
    }

        .linkbox h6 span {
            color: var(--red-color);
        }

    .linkbox.green {
        background-color: var(--green-color-l);
    }

        .linkbox.green h3 {
            color: var(--green-color);
        }

    .linkbox.red {
        background-color: var(--red-color-l);
    }

        .linkbox.red h3 {
            color: var(--red-color);
        }

    .linkbox.yellow {
        background-color: var(--yellow-color-l);
    }

        .linkbox.yellow h3 {
            color: var(--yellow-color);
        }


.notice-text {
    color: var(--red-color);
    font-size: 15px;
}


.ck.ck-editor__main > .ck-editor__editable {
    min-height: 350px !important;
}


/* ----- component end ----- */

/* ----- login ----- */

.login-bg {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-image: url(../img/login-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 10px 0px 20px -13px rgba(0, 0, 0, 0.8);
}


.login-flex {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 992px) {
    .login-bg {
        display: none;
    }

    .login-flex {
        background-image: url(../img/login-bg-md.png);
        padding: 0px 15px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
}



.login-box {
    width: 460px;
    height: auto;
}

@media (max-width: 992px) {
    .login-box {
        width: 400px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 5px;
        backdrop-filter: blur(4px);
        padding: 20px 15px 40px;
    }
}

@media (max-width: 420px) {
    .login-box {
        width: 100%;
    }
}

.login-logo {
    width: 150px;
    margin: 0 auto;
}

    .login-logo img {
        width: 100%;
    }

@media (max-width: 992px) {
    .login-logo {
        width: 120px;
    }
}

.login-logotext {
    text-align: center;
}

    .login-logotext h1 {
        font-size: 25px;
        margin-bottom: 10px;
    }

@media (max-width: 992px) {
    .login-logotext h1 {
        font-size: 22px;
    }
}

.login-logotext h6 {
    font-size: 13px;
    color: var(--main-color);
}

.recaptcha {
    width: 280px;
    margin: 0 auto;
}

/* ----- login end ----- */


/* ---- pagination ---- */

.pagination {
    justify-content: center;
    margin: 25px 0 0;
}

    .pagination li a,
    .pagination li span {
        display: block;
        text-align: center;
        border-bottom: 2px solid #eee;
        color: #aaa;
        width: 30px;
        margin: 0 5px;
        font-weight: 600;
        transition: .3s ease;
    }

    .pagination li.active a,
    .pagination li:hover a,
    .pagination li.active span,
    .pagination li:hover span {
        border-bottom-color: rgba(90, 144, 206, 0.3);
        color: var(--main-color);
    }

/* ---- pagination end ---- */


/* ---- footer ---- */


footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

    footer .copyright {
        font-size: 14px;
        text-align: center;
        color: var(--gray-color);
        padding-bottom: 5px;
        opacity: .6;
    }

/* ---- footer end---- */
.hidden {
    display: none !important;
}

.contents {
    display: contents !important;
}
/*-- 民國日期樣式 --*/
.table-condensed > thead > tr > th {
    text-align: center;
}

.table-condensed > tbody > tr > td > span {
    margin: 0px 2px;
}

.datepicker-dropdown {
    margin-top: 80px !important;
}
/*-- 民國日期樣式 end --*/

#finace-report.table td, .table th {
    padding: 4px 10px 4px 10px;
}
/*-- 拖曳不會跑版 --*/

.ui-sortable-helper {
    overflow: auto;
    display: flex;
}
.ui-sortable-placeholder > td:not(:first-child) {
    display: none;
}
.main-table td {
    border: 1px solid black;
}