.manager-content{
    padding-top: 15px;
    margin-top: 65px;
}

.header-a{
    color: #000;
}

.header-a.active{
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
}

.program-week {
    justify-content: center;
    padding: 0 1%;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    list-style: none;
}

.program-week .nav-item {
    width: 90%;
    text-align: center;
}

.program-week .nav-link.active,
.program-week .nav-item.show .nav-link {
    color: #35bea2;
}

.program-week a {
    color: #707070;
}
.wrapper {
    display: flex;
    align-items: stretch;
    perspective: 1500px;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #e6e6e6;
    color: #0000;
    transition: all 0.6s cubic-bezier(0.945, 0.02, 0.27, 0.665);
    transform-origin: center left; /* Set the transformed position of sidebar to center left side. */
    margin-left: -250px;
    transform: rotateY(100deg);
}

/* #sidebar.active {
    margin-left: -250px;
    transform: rotateY(100deg); /* Rotate sidebar vertically by 100 degrees. 
} */
#sidebar.active {
    margin-left: 0;
    transform: none;
}
@media (max-width: 768px) {
    /*
    #sidebar {
        margin-left: -250px;
        transform: rotateY(100deg);
    }
    #sidebar.active {
        margin-left: 0;
        transform: none;
    }
*/
    /* Reversing the behavior of the bars: 
       Removing the rotation from the first,
       last bars and reappear the second bar on default state, 
       and giving them a vertical margin */
    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type {
        transform: none;
        opacity: 1;
        margin: 5px auto;
    }

    /* Removing the vertical margin and make the first and last bars rotate again when the sidebar is open, hiding the second bar */
    #sidebarCollapse.active span {
        margin: 0 auto;
    }
    #sidebarCollapse.active span:first-of-type {
        transform: rotate(45deg) translate(2px, 2px);
    }
    #sidebarCollapse.active span:nth-of-type(2) {
        opacity: 0;
    }
    #sidebarCollapse.active span:last-of-type {
        transform: rotate(-45deg) translate(1px, -1px);
    }
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: rgba(0, 0, 0, 0.45);
    margin: auto;
    margin-bottom: 4px;
    transition: all 400ms linear;
    cursor: pointer;
}

.navbar-collapse {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    height: 100vh;
    overflow-y: scroll;
    background-color: #FFF;
    z-index: 101;
}
.navbar-collapse .header-a {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 10px;
    border-bottom: solid 1px #afafaf;
}

.navbar-collapse .header-a.active {
    border-bottom: solid 1px #1a73e8;
}

.navbar-toggle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
}
.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
.navbar-toggle[aria-expanded="false"] span:nth-child(2) {
    opacity: 1;
}
.navbar-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.navbar-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(-45deg);
    position: relative;
    top: 7.5px;
}
.navbar-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(45deg);
    position: relative;
    bottom: 6px;
}



/*  */
.header-func-area{
    flex: 1;
}

.modal {
    overflow-y: auto;
}    

/* Important part */
.modal-dialog{
    overflow-y: initial !important
}
.modal-body{
    height: 70vh;
    overflow-y: auto;
}

.flex-height{
    height: 400px;
    overflow-y: auto;
}

img{
    width: 100%;
}



.search-area {
    margin-bottom: 10px;
}

.search-area > div {
    padding-right: 0;
    margin-bottom: 5px;
}

.form-content div {
    margin-bottom: 5px;
}

.form-content div.form-hr {
    width: 100%;
    border-bottom: 1px solid #7070704b;
    margin: 30px 15px 25px;
}

.form-content .form-hr-narrow {
    width: 100%;
    border-bottom: 1px solid #7070704b;
    margin: 10px 5px 10px;
}

button:disabled {
    cursor: not-allowed;
    background-color: #e9ecef !important;
}

/* 事件合約 modal_contract */
.contract-fee-block {
    padding: 10px;
    border: #afafaf solid 1px;
}

.contract-total {
    padding-left: 20px;
}


/* 執行單位 modal_section */
.event-section-block {
    padding: 10px;
    border: #afafaf solid 1px;
}

.event-section-block:nth-of-type(odd) {
    background-color: #ff000034;
}
.event-section-block:nth-of-type(even) {
    background-color: #e5ff007c;
}

.event-section-company-block {
    padding: 10px;
    border: #afafaf solid 1px;
    background-color: #fff;
}

.add_section_company_block {
    margin-top: 10px;
}