/* Login page */
.login-body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: gainsboro;
    font-family: Arial, Helvetica, sans-serif;
}

.login-container {
    display: grid;
    grid-template-columns: repeat(2,1fr); /* hiển thị 2 cột trên 1 khung */
    padding: 15px;
    height: 95vh;
}

.login-container-title {
    position: relative;
    border-radius: 20px 0px 0px 20px;
    background-image: linear-gradient(#3333FF, #000099);
}

.login-container-title-content {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
    text-align: center;
}

.login-container-login {
    position: relative;
    border-radius: 0px 20px 20px 0px;
    background-color: white;
}

.login-container-login-content {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #000;
}

    .login-container-login-content input {
        width: 94%;
        padding: 15px;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom-color: gainsboro;
        background-color: transparent;
        outline: none;
    }

        .login-container-login-content input:focus {
            border-bottom-color: #000099;
        }

    .login-container-login-content button {
        width: 100%;
        border-radius: 30px;
        padding: 15px;
        border: none;
        background-image: linear-gradient(#3333FF, #000099);
        color: #fff;
    }

/* End login page */

/* Layout page */
a {
    text-decoration: none;
    cursor: pointer;
    color: #000;
}

button {
    cursor: pointer;
}

.layout-body {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.layout-header {
/*    position: absolute;*/
    position: fixed;
    width: 100%;
    height: 50px;
    background-color: #003333;
    z-index: 9999;
}

/* left */
.layout-header-left-tool {
    position: relative;
    float: left;
}

.layout-header-left button {
    border: none;
    background-color: transparent;
    height: 50px;
    width: 50px;
    font-size: 25px;
    color: #fff;
    cursor: pointer;
}

/*.layout-header-left:hover .layout-header-left-dropdown {
    display: block;
}*/


.layout-header-left-dropdown {
    top: 100%;
    display: none;
    position: absolute;
    padding: 10px;
    min-width: 50%;
    left: 0;
    z-index: 1;
    border-radius: 0px 10px 10px 10px;
    background-color: whitesmoke;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    color: black;
}

.layout-header-left-dropdown-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.layout-header-left-dropdown-function {
    padding: 5px;
    display: inline-block;
}

    .layout-header-left-dropdown-function:hover {
        border-radius: 10px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    }
/* left */

/* right */
.layout-header-right {
    position: relative;
    float: right;
    padding-right: 1%;
}

.layout-header-right-dropdown {
    top: 100%;
    display: none;
    position: absolute;
    padding: 5px;
    left: 0;
    z-index: 2;
    width: 100%;
    background-color: #F5F5F5;
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    color: black;
    float: left;
}

.layout-header-right-tool button {
    background-color: transparent;
    border: none;
    font-weight: bold;
    font-size: 15px;
    color: white;
    height: 50px;
}

.layout-header-right:hover .layout-header-right-dropdown {
    display: block;
}

.layout-header-right-dropdown-function button {
    color: #000;
}

.layout-header-right-dropdown-function div:hover {
    background-color: gainsboro;
}
/* right */

/* Footer */
.layout-footer {
    position: absolute;
    width: 100%;
    height: 50px;
    background-color: #003333;
}

.layout-footer-content {
    padding-top: 15px;
    padding-right: 10px;
    float: right;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 12px;
}
/* Footer */

/* content*/
.layout-content {
    position: relative;
    padding-top: 50px;
    width: 100%;
    min-height: 100vh;
}

.layout-content-title {
    background-color: #008080;
    color: #fff;
    height: 90px;
    text-align: center;
}

    .layout-content-title span {
        font-size: 27px;
        font-weight: bold;
    }

.layout-content-border-content {
    padding: 20px;
}

.layout-border-radius {
    overflow-x: auto;
    min-height: 100vh;
}

/* Bullentin board */
.bulletinboard-title {
    border: 1px solid #DCDCDC;
    border-radius: 15px 15px 0px 0px;
    padding: 20px;
    background-color: gainsboro;
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

.bulletinboard-content {
    border: 1px solid #DCDCDC;
    border-radius: 0px 0px 15px 15px;
    padding: 15px;
}
/* End Bullentin board */

/* organizaionchart */
.department-border {
    padding: 10px;
}

.department-container:hover {
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.5);
    border-radius: 15px;
}

.department-title {
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #008080;
    border-radius: 15px 15px 0px 0px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    color: #fff;
    background-color: #008080;
}

.department-content {
    border: 1px solid gainsboro;
    border-radius: 0px 0px 15px 15px;
    background-color: gainsboro;
    font-size: 12px;
}

.piechart-title {
    padding-top: 30%;
}

.avatar {
    padding: 10px;
}

/* End organizaionchart */

/* content*/

/* End layout page */

/* Kích thước phù hợp với thiết bị */
/* Từ 1 cột thành 1 cột */
.col1-merge-col1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}

/* Từ 2 cột thành 1 cột */
.col2-merge-col1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* Từ 2 cột thành 2 cột */
.col2-merge-col2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* Từ 3 cột thành 1 cột*/
.col3-merge-col1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Từ 3 cột thành 2 cột */
.col3-merge-col2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Từ 3 cột thành 3 cột */
.col3-merge-col3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Từ 4 cột thành 1 cột */
.col4-merge-col1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Từ 4 cột thành 2 cột */
.col4-merge-col2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Từ 4 cột thành 3 cột */
.col4-merge-col3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* Từ 4 cột thành 4 cột */
.col4-merge-col4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
/* END */

/* Giao diện Tablet */
@media (max-width: 800px) {
    .col4-merge-col1 {
        font-size: 12px;
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Giao diện điện thoại */
@media (max-width: 600px) {

    /* Login */
    .login-container {
        grid-template-columns: repeat(1, 1fr); /*Đổi 2 cột trên 1 khung thành 1 cột trên 1 khung*/
    }

    .login-container-title {
        height: 30vh;
        border-radius: 20px 20px 0px 0px;
    }

    .login-container-login {
        height: 67vh;
        border-radius: 0px 0px 20px 20px;
    }

    .login-container-login-content {
        top: 40%;
    }
    /* Login */

    /* Layout */
    .layout-header-left-dropdown-content {
        grid-template-columns: repeat(3, 1fr); /*Đổi 6 cột trên 1 khung thành 3 cột trên 1 khung*/
    }
    /* Layout */

    /* Content */
    .col1-merge-col1 {
        font-size: 12px;
        grid-template-columns: repeat(1, 1fr);
    }

    .col2-merge-col1 {
        font-size: 12px;
        grid-template-columns: repeat(1, 1fr);
    }

    .col2-merge-col2 {
        font-size: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

    .col3-merge-col1 {
        font-size: 12px;
        grid-template-columns: repeat(1, 1fr);
    }

    .col3-merge-col2 {
        font-size: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

    .col3-merge-col3 {
        font-size: 12px;
        grid-template-columns: repeat(3, 1fr);
    }

    .col4-merge-col1 {
        font-size: 12px;
        grid-template-columns: repeat(1, 1fr);
    }

    .col4-merge-col2 {
        font-size: 12px;
        grid-template-columns: repeat(2, 1fr);
    }

    .col4-merge-col3 {
        font-size: 12px;
        grid-template-columns: repeat(3, 1fr);
    }

    .col4-merge-col4 {
        font-size: 12px;
        grid-template-columns: repeat(4, 1fr);
    }

    /* organizaiton chart*/
    .piechart-div {
        overflow-x: auto;
    }

    .piechart-image {
        overflow-x: auto;
        width: 400px;
        height: 100px;
    }

    .piecchart-title {
        padding: 0px;
        text-align: center;
    }
    /* organizaiton chart*/

    /* Content */
}

/* End */

/* Design Element */

/*--Table--*/
.form-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
}

    .form-table td, th {
        border: 1px solid #ddd;
        text-align: left;
    }

    .form-table th {
        height: 20px;
        padding: 5px;
        text-align: center;
        background-color: gainsboro;
        color: #000;
    }

    .form-table td {
        padding: 10px;
    }
/*--Table--*/

/*--Input--*/
.form-input-search {
    padding: 8px;
    width: 250px;
    outline: none;
}

.form-input-input {
    font-family: Arial;
    padding: 8px;
    outline: none;
    border: none;
/*    border-bottom: 1px solid gray;
*/    font-size: 16px;
}

/*--Input--*/

/*--Textarea--*/

/*--Textarea--*/
.form-textarea {
    width: 95%;
    height: 50px;
    padding: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    border: none;
    outline: none;
}
/*--Search--*/
.form-search button {
    padding: 8px;
    width: 35px;
    border-radius: 5px 0px 0px 5px;
    border: 2px solid #4F4F4F;
    background-color: #4F4F4F;
    color: #fff;
}

.form-search input {
    border-radius: 0px 5px 5px 0px;
    border: 2px solid black;
}
/*--Search--*/

/*--Button--*/
.form-btn-confirm {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 15px;
    background-color: #336633;
    color: #fff;
}

.form-btn-delete {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 15px;
    background-color: red;
    color: #fff;
}
/*--Button--*/

/* End Design Element */


/*--Phan trang--*/
.pagination ul {
    display: flex;
}

    .pagination ul li {
        color: #008080;
        list-style: none;
        line-height: 45px;
        text-align: center;
        font-size: 18px;
        font-weight: 500;
        cursor: pointer;
        user-select: none;
        transition: all 0.3s ease;
    }

        .pagination ul li.numb {
            list-style: none;
            height: 45px;
            width: 45px;
            margin: 0 3px;
            line-height: 45px;
            border-radius: 50%;
        }

            .pagination ul li.numb.first {
                margin: 0px 3px 0 -5px;
            }

            .pagination ul li.numb.last {
                margin: 0px -5px 0 3px;
            }

        .pagination ul li.dots {
            font-size: 22px;
            cursor: default;
        }

        .pagination ul li.btn {
            padding: 0 20px;
            border-radius: 50px;
        }

        .pagination li.active,
        .pagination ul li.numb:hover,
        .pagination ul li:first-child:hover,
        .pagination ul li:last-child:hover {
            color: #fff;
            background: #008080;
        }

/* Set print page size and margins */
@page {
    size: A4; /* A4 paper size */
    margin: 20mm;  /*Optional: Adjust margins as needed */
}

/* General print styles */
@media print{

    .layout-content {
        padding-top: 0px;
        margin: 0;
        font-family: Arial, sans-serif;
        width: 210mm; /* A4 width */
        height: 297mm; /* A4 height */
    }

    /* Avoid printing extra elements */
    .no-print {
        display: none;
    }

    /* Ensure the content fits */
    .content {
        width: 100%;
        height: auto;
    }
}


/* End Design Element */
