#calendarBlock {
    position:relative;
    padding:6rem 0;
}


#calendarBlock .toolbar {
    /* display: flex; */
    /* justify-content:space-between; */
    /* margin: 2rem 0; */
    height: 37px;
    position:absolute;
    width:100%;
    top:2rem;
    z-index:2;
}

#calendarBlock > .toolbar ~ .toolbar {
     z-index:1;
}

#calendarBlock .toolbar .toolbar-month {
    display: flex;
    justify-content:center;
    font-size: 1.2rem;
    padding-right:9rem
}

#calendarBlock .toolbar button {
    padding: 0.4rem 0.6rem;
    border-radius: 5px;
    border: 1px solid;
    background-color: #3C6071;
    border-color: #3C6071;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(255, 255, 255, .75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
    float:left;
}

#calendarBlock .toolbar .ts-mb-flex {
    float:right;
}

#calendarBlock .toolbar .ts-mb-flex button {
    margin-left:0.5rem
}


#calendarBlock .toolbar button.opacity {
    opacity: 0.7 !important;
}

#calendarBlock table {
    width: 100%;
    border-collapse: collapse;
    border: #e1e1e1 solid 1px;
    table-layout: fixed;

}

#calendarBlock table thead th {
    padding: 0.5rem 0;
    text-align: center;
}

#calendarBlock table tbody td {
    padding: 5px;
    text-align: center;
    border: #e1e1e1 solid 1px;
    height: 133px;
    vertical-align: top;
    text-align: right;
}

@media (max-width:1024px){#calendarBlock table tbody td {height: 120px;}}

#calendarBlock table tbody td.expired {
    background-color: #f5f5f5;
}

#calendarBlock table tbody td.expired:nth-child(1),
#calendarBlock table tbody td.expired:nth-child(7) {
    background-color: #f5f7f9 !important;
}

#calendarBlock table tbody td.expired.today {
    background-color: #f0f0f0;
}

#calendarBlock table tbody td ul {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

#calendarBlock table tbody td ul li {
    padding: 2px 0;
}

#calendarBlock table tbody td ul li a {
    font-size: 0.85rem;
    color: #3c6070;
    padding: 2px 0;
}

#calendarBlock .fullyday {
    color: #d51c16;
}

#calendarBlock .resetday {
    color: #666;
    font-size: 1rem;
    padding: 1rem;
}


@media (max-width: 767px) {
    #calendarBlock .toolbar .toolbar-month {
        padding-right:0;
    }

    #calendarBlock table{

        border: #e1e1e1 solid 1px;
    }
    #calendarBlock table thead th {
        display:none;
    }
    #calendarBlock table tbody {
        flex-grow: 1;
    }
    #calendarBlock table tbody tr {
        display: flex;
        flex-direction: column;
    }
    #calendarBlock table tbody td {
        flex-grow: 1;
        height: initial;
        padding: 0;
        border: none;
    }

    #calendarBlock table tbody td div {
        font-weight: bold;
        font-size: 1rem;
        padding: 8px 14px;
        background-color: #eee;
    }
    #calendarBlock table tbody td ul {
        margin: 0;
    }
    #calendarBlock table tbody td ul li {
        border-top: #e1e1e1 solid 1px;
        font-size: 1.2rem;
        padding: 8px 14px;
        text-align: left;
        display: flex;
        align-items: center;
    }

    #calendarBlock table tbody td ul li span {
        flex: 1;
    }

    #calendarBlock table tbody td ul li::before {
        content: '整天';
        font-size: 1rem;
        flex: 1;
    }
    #calendarBlock table tbody td ul li a {
        font-size: 1.2rem;
        flex: 1;
    }
    #calendarBlock .resetday {
        padding:0;
        font-size: 1.2rem;
    }
    

} 