﻿@charset "utf-8";

.sidebar {
    width: 280px;
    background: white;
    height: 100%;
    overflow: auto;
    transition: all 0.3s linear;
    position: relative;
    z-index: 11;
    box-shadow: 3px 3px 6px rgba(55, 61, 73, 0.29);
}

    .sidebar.active {
        display: none;
    }

.sidebar-menu {
    padding: 0 0px 20px 0px;
    height: calc(100vh - 68.3px);
    overflow: auto;
}



.sidebar-LastLoginDateTime {
    font-size: small;
    font-weight: bold;
    color: var(--colorText);
    padding: 0px 0;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--mainColor);
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    height: calc(100% - 75px);
}



.sidebar-menu a {
    display: block;
    text-decoration: none;
    padding: 16px 20px 16px 28px;
    position: relative;
    font-size: 1.125rem;
    font-weight: bold;
}

.sidebar-menu > ul > li > a::after {
    font-family: 'icomoon' !important;
    font-weight: 900;
    content: "\e900";
    position: absolute;
    right: 20px;
    font-size: 0.9rem;
}

/*.sidebar-menu > ul > li > a.submenu-open::after {
    content: "\e901";
}*/

.sidebar-menu a:hover {
    background: #fff;
}

.sidebar-menu .fas {
    margin-right: 12px;
}


.sidebar-menu > ul > li > a:hover,
.sidebar-menu > ul > li > a.submenu-open {
    background: var(--lightColor);
    color: var(--colorText);
}

.sidebar-menu a:not([href]):not([class]):hover {
    border-color: var(--mainColor);
    color: var(--colorText);
}

.sidebar-menu ul ul {
    display: none;
}


@media (max-width: 1023px) {
    .sidebar {
        display: none;
    }

        .sidebar.active {
            display: block;
        }
}

.copyright {
    /*ie*/
    color: #f5f5f5;
    text-align: right;
    color: var(--lightGrayText);
    font-size: 10px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    right: 20px;
}

}

.submenu-open span, .submenu-open a {
    cursor: pointer;
}


/*menu*/
.sidebar-menu a:not([href]):not([class]) {
    color: var(--grayText);
    border-left: 6px solid var(--grayBg);
    padding-left: 44px;
    font-size: 1.125rem;
    font-weight: bold;
}

.lingot {
    position: absolute;
    bottom: 20px;
    margin-bottom: 10px;
    bottom: 0px;
}

    .panel-group i, .lingot i {
        margin-right: 10px;
    }



/*使用者資訊*/
.loginInfo {
    padding: 20px;
    border-radius: 8px;
    width: 335px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
    position: absolute;
    z-index: 21;
    background: white;
    margin-top: 4px;
    text-align: left;
    right: 40px;
    display: none;
}

    .infoTitle,
    .infoContent, .loginInfo .lingot a {
        display: inline-block;
        font-size: 1.125rem;
        letter-spacing: 1px;
        font-weight: bold;
    }

.infoTitle {
    width: 5rem;
    color: var(--blackText);
}

.infoContent {
    color: var(--colorText);
}

.loginInfo .lingot a {
    border-radius: 8px;
    position: relative;
    color: var(--colorText);
    padding: 8px 20px;
    background: var(--inputBg);
    border-radius: 50px;
    margin-left: 8px;
}

.loginInfo div + div {
    margin-top: 8px;
}

.loginInfo .lingot {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    text-align: right;
}

    .loginInfo .lingot a:hover,
    .loginInfo .lingot a:focus {
        background: var(--mainColor);
        color: white;
    }

@media screen and (max-width: 767px) {
    .sidebar {
        width: 100%;
    }

    .content.active {
        display: none;
    }
}


/*menu*/

.menu-btn {
    display: inline-block;
    transition: all 0.3s linear;
    margin-right: 40px;
    vertical-align: middle;
}

.menu-logo {
    vertical-align: middle;
    position: relative;
    width: 32px;
    height: 32px;
}


.menu-btn:hover {
    cursor: pointer;
}

/*header*/

#header {
    background: var(--colorText);
}

    #header > div {
        align-items: center;
    }

        #header > div::after, .login-main:before {
            content: '彰化縣衛生局諮詢預約系統';
            font-size: 1.4rem;
            position: absolute;
            top: 1rem;
            left: 150px;
            z-index: 10;
            font-weight: bold;
            color: white;
            letter-spacing: 2px;
        }

.login-main:before {
    left: 78px;
}

.mem i {
    margin-right: 6px;
}

.name:hover {
    cursor: pointer;
}

.name {
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 50px;
    margin-right: 40px;
}

    .name:before {
        content: '';
        display: inline-block;
        width: 1.25rem;
        height: 1.25rem;
        background: url(../../Images/menIcon.svg);
        margin-right: 0.5rem;
    }

    .name,
    .name:before,
    .name p {
        vertical-align: middle;
        display: inline-block;
        font-weight: bold;
        color: var(--colorText);
    }

        .name p {
            font-size: 1.125rem;
        }

.mem {
    /*width: 337px;*/
    min-width: 337px;
    width: fit-content;
    text-align: right;
    padding: 16px 0;
    position: relative;
    z-index: 1;
}

.control-font-size {
    display: inline-block;
    width: fit-content;
    float: left;
    margin-right: 70px;
}

    .control-font-size button {
        padding: 1px 5px;
        min-height: 10px;
    }


.mem:before {
    width: 337px;
    position: absolute;
    content: '';
    background: url(../../Images/topBg.svg) no-repeat;
    display: inline-block;
    right: 0;
    z-index: -1;
    height: 67.5px;
    top: 0;
}

@media screen and (max-width: 375px) {
    .mem:before {
        width: 228px;
    }

    .name {
        margin-right: 20px;
    }

    .loginInfo {
        right: 20px;
    }
}

/*content*/

.content {
    width: calc(100% - 280px);
    position: relative;
}

    .content.active {
        width: 100%;
    }

@media (max-width: 575px) {
    .content.active .mem::before {
        content: "";
        background: rgba(0, 0, 0, .8);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

@media (max-width: 1023px) {
    .content {
        width: 100%;
    }

        .content.active {
            width: calc(100% - 250px);
        }

    .menu-logo, #header > div::after {
        display: none;
    }
}


/*switchMenu*/
.switchMenu {
    display: inline-block;
    background: var(--lightColor);
    font-size: 1.125rem;
    border-radius: 8px;
    margin-bottom: 20px;
}

    .switchMenu button {
        font-weight: bold;
        padding: 10px 20px;
        border-radius: 8px;
        color: var(--colorText);
        border-width: 0;
        background: var(--lightColor);
    }

        .switchMenu button.act {
            background: var(--mainColor);
            color: white;
        }

/*breadcrumb*/
.breadcrumb a:hover {
    color: var(--colorText);
}

.manual {
    margin-right: 5px;
    display: inline-block;
    color: white !important;
    font-size: larger;
}

    .manual i {
        padding: 0px;
        letter-spacing: 0px;
        color: white !important;
    }

.personalMsg {
    margin-right: 5px;
    display: inline-block;
    color: white !important;
    font-size: larger;
}

    .personalMsg i {
        padding: 0px;
        letter-spacing: 0px;
        color: white !important;
    }

.alert-personalMsg {
    margin-right: 0px;
    display: inline-block;
    letter-spacing: 0px;
    width: 15px;
    height: 15px;
    border-radius: 99em;
    background-color: #fc1203;
    color: #fff;
    line-height: 15px !important;
    font-weight: 400;
    font-size: x-small !important;
    text-align: center !important;
    position: relative;
    top: -10px;
    left: -20px;
    z-index: 2;
}
