﻿
/* 手機 */
@media screen and (max-width: 767px) {
    .employee-bonus-detail-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 0px 20px;
    }
    
    .employee-bonus-detail-container > .content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
    }
    
    /* ---------------------------------------------------------------------------------------------------- */
    
    .employee-bonus-detail-container > .content > .data-box {
        width: 100%;
        background-color: #fffbeb;
        border-radius: 8px;
        border: 1px solid #ffd230;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
        padding: 20px;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box > span {
        color: #7b3306;
        font-size: 15px;
        font-weight: 700;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box > input {
        width: calc(100% - 75px);
        height: 36px;
        background-color: #ffffff;
        border: 1px solid #ffd230;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box > input.word-5 {
        width: calc(100% - 90px);
    }
    
    /* ---------------------------------------------------------------------------------------------------- */

    #filter-box-control:checked + .filter-box {
        transform: translateY(0px);
    }

    .employee-bonus-detail-container .filter-box {
        width: 100vw;
        height: 132px;
        background-color: #ffffff;
        box-shadow: 0px 0px 1px #000000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
        position: fixed;
        bottom: 40px;
        left: 0px;
        z-index: 4;
        transform: translateY(133px);
        transition: .5s;
    }
    
    .employee-bonus-detail-container .filter-box > .left {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
    }
    
    .employee-bonus-detail-container .filter-box > .left > .back-btn {
        display: none;
    }

    .employee-bonus-detail-container .filter-box > .left > .box {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .employee-bonus-detail-container .filter-box > .left > .box > span {
        font-size: 15px;
        font-weight: 700;
    }
    
    .employee-bonus-detail-container .filter-box > .left > .box > select {
        width: 180px;
        height: 36px;
    }
    
    .employee-bonus-detail-container .filter-box > .left > .box > input {
        width: 230px;
        height: 36px;
    }
    
    /* ---------------------------------------------------------------------------------------------------- */

    .employee-bonus-detail-container > .content > .table-div {
        margin-bottom: 60px;
    }

    /* ---------------------------------------------------------------------------------------------------- */
    
    .employee-bonus-detail-container > .content .bonus-in {
        background-color: #d0fae5;
        border: 1px solid #a4f4cf;
        border-radius: 8px;
        box-sizing: border-box;
        color: #009966;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 8px 10px;
    }
    
    .employee-bonus-detail-container > .content .bonus-in::before {
        content: "\f35b";
        color: #009966;
        font-family: "Font Awesome 6 Free";
        font-size: 16px;
        font-weight: 900;
    }
    
    .employee-bonus-detail-container > .content .bonus-out {
        background-color: #ffe2e2;
        border: 1px solid #ffc9c9;
        border-radius: 8px;
        box-sizing: border-box;
        color: #e7000b;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 8px 10px;
    }
    
    .employee-bonus-detail-container > .content .bonus-out::before {
        content: "\f358";
        color: #e7000b;
        font-family: "Font Awesome 6 Free";
        font-size: 16px;
        font-weight: 900;
    }
}

/* PC */
@media screen and (min-width: 768px) {
    .employee-bonus-detail-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 20px 0px;
    }
    
    .employee-bonus-detail-container > .content {
        width: 1226px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 0px 20px 20px 20px;
    }
    
    /* ---------------------------------------------------------------------------------------------------- */
    
    .employee-bonus-detail-container > .content > .data-box {
        width: 100%;
        background-color: #fffbeb;
        border-radius: 8px;
        border: 1px solid #ffd230;
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        align-content: flex-start;
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box {
        width: calc((100% - 40px) / 3);
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box > span {
        color: #7b3306;
        font-size: 15px;
        font-weight: 700;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box > input {
        width: calc(100% - 75px);
        height: 36px;
        background-color: #ffffff;
        border: 1px solid #ffd230;
    }
    
    .employee-bonus-detail-container > .content > .data-box > .box > input.word-5 {
        width: calc(100% - 90px);
    }
    
    /* ---------------------------------------------------------------------------------------------------- */
    
    .employee-bonus-detail-container > .content > .filter-box {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
    
    .employee-bonus-detail-container > .content > .filter-box > .left {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
    }
    
    .employee-bonus-detail-container > .content > .filter-box > .left > .box {
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .employee-bonus-detail-container > .content > .filter-box > .left > .box > span {
        font-size: 15px;
        font-weight: 700;
    }
    
    .employee-bonus-detail-container > .content > .filter-box > .left > .box > select {
        width: 180px;
        height: 36px;
    }
    
    .employee-bonus-detail-container > .content > .filter-box > .left > .box > input {
        width: 230px;
        height: 36px;
    }
    
    /* ---------------------------------------------------------------------------------------------------- */
    
    .employee-bonus-detail-container > .content > .table-div > .thead { width: 100%; }
    
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr { width: 100%; }
    
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr.select { background-color: #cceded; }
    
    .employee-bonus-detail-container > .content > .table-div > .thead > .tr > .td:nth-child(1),
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr > .td:nth-child(1) { flex: 0 0 130px; }
    
    .employee-bonus-detail-container > .content > .table-div > .thead > .tr > .td:nth-child(2),
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr > .td:nth-child(2) { flex: 0 0 180px; }
    
    .employee-bonus-detail-container > .content > .table-div > .thead > .tr > .td:nth-child(3),
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr > .td:nth-child(3) { flex: 0 0 130px; }
    
    .employee-bonus-detail-container > .content > .table-div > .thead > .tr > .td:nth-child(5),
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr > .td:nth-child(5) { flex: 0 0 130px; }
    
    .employee-bonus-detail-container > .content > .table-div > .tbody > .tr > .td:nth-child(5) { gap: 30px; }
    
    /* ---------------------------------------------------------------------------------------------------- */
    
    .employee-bonus-detail-container > .content .bonus-in {
        background-color: #d0fae5;
        border: 1px solid #a4f4cf;
        border-radius: 8px;
        box-sizing: border-box;
        color: #009966;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 10px;
    }
    
    .employee-bonus-detail-container > .content .bonus-in::before {
        content: "\f35b";
        color: #009966;
        font-family: "Font Awesome 6 Free";
        font-size: 16px;
        font-weight: 900;
    }
    
    .employee-bonus-detail-container > .content .bonus-out {
        background-color: #ffe2e2;
        border: 1px solid #ffc9c9;
        border-radius: 8px;
        box-sizing: border-box;
        color: #e7000b;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 10px;
    }
    
    .employee-bonus-detail-container > .content .bonus-out::before {
        content: "\f358";
        color: #e7000b;
        font-family: "Font Awesome 6 Free";
        font-size: 16px;
        font-weight: 900;
    }
}
