@font-face {
    font-family: "Loos";
    src: url("../fonts/Loos_Normal_Medium.otf");
}

* {
    font-family: "Loos", Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

.layout {
    background-color: #fafafa;
    width: 100%;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.layout_container {
    display: flex;
    gap: 20px;
    height: 100%;
}

#sidebar {
    width: 270px;
    height: calc(100vh - 40px);
    background-color: #0c1f2e;
    border-radius: 32px;
    padding: 20px;
}

#chat {
    width: 400px;
    background-color: #ffffff;
    height: calc(100vh - 40px);
    padding: 20px;
    border-radius: 32px;
}

.layout_content {
    height: calc(100% - 60px);
}

.layout_wrapper {
    width: calc(100% - 710px);
    background-color: #fff;
    padding: 20px;
    border-radius: 32px;
}

.auth_user {
    background-color: #112a3d;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 4px;
    border-radius: 100px;
    justify-content: flex-start;
}

.auth_user > img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.auth_user > p {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.search_bar {
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.search_bar > img {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.search_bar > input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    border-radius: 100px;
    padding-left: 40px;
    padding-right: 20px;
    height: 44px;
    color: #fff;
    font-size: 12px;
    margin-bottom: 20px;
    background: transparent;
    align-items: center;
    display: flex;
}

.sidebar_menu {
    margin-top: 20px;
    width: 100%;
}

.menu_item > a {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 52px;
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.8);
}


.menu_item > a.active {
    background-color: #fff;
    color: #1f1f1f;
}

.logout{
    margin-top: 160px;
}

.logout > a {
    background-color: red;
    color: #fff;
    justify-content: center;
}

.chat_item {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 20px;
}

.chat_item.sender {
    flex-direction: row-reverse;
}

.chat_user > img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
}

.chat_box {
    padding: 14px;
    background-color: #0c1f2e;
    width: 100%;
    border-radius: 14px;
    position: relative;
}

.chat_box > p {
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.chat_box > p.chat_date {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

.chat_box:before {
    content: "\A";
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent #0c1f2e transparent transparent;
    position: absolute;
    left: -15px;
    top: 12px;
}

.chat_wrapper {
    margin-top: 30px;
    height: calc(100% - 92px);
    overflow-y: auto;
}

.chat_item.sender .chat_box {
    background-color: transparent;
}

.chat_item.sender .chat_box::before {
    content: unset;
}

.chat_item.sender .chat_box > p {
    font-weight: 500;
    color: #1f1f1f;
}

.chat_item.sender .chat_box > p.chat_date {
    color: rgba(31, 31, 31, 0.6);
}

.send_message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #fafafa;
    padding-left: 10px;
    box-sizing: border-box;
    border-radius: 10px;
}

.send_btn {
    background-color: #0c1f2e;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
}

.send_message > input {
    background-color: transparent;
    border: unset;
    outline: none;
    color: rgba(31, 31, 31, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.send_message > input::placeholder {
    color: rgba(31, 31, 31, 0.8);
}

.header_wrapper {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fafafa;
    border-radius: 14px;
}

.header_icon {
    background-color: rgba(12, 31, 46, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tasks_statuses {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tasks_status_item {
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 100px;
    cursor: pointer;
}

.tasks_status_item.active {
    background-color: #0c1f2e;
}

.tasks_status_item > p {
    color: #1f1f1f;
    font-weight: 500;
}

.tasks_status_item.active > p {
    color: #fff;
}

.task_list {
    margin: 24px 0;
}

.task_list_header {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    height: 46px;
    border-radius: 10px;
    width: max-content;
}

.tr {
    text-align: center;
    position: relative;
}

.tr > p {
    color: rgba(31, 31, 31, 0.8);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden; 
    width: 160px; 
    white-space: nowrap;
}

.tr.empty {
    width: 46px;
    cursor: pointer;
}

.tr.department {
    width: 160px;
}

.tr.anfang {
    width: 210px;
}

.tr.full {
    width: calc(100% - 622px);
    text-wrap: nowrap;
}

.task_list_body {
    display: flex;
    align-items: center;
    background-color: #fff;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
}

.task_list_body:nth-child(odd) {
    background-color: #fafafa;
}

.disable-chat{
    display: none;
}

.tp_total {
    /* display: flex; */
    align-items: center;
    display: none;
}

.tp_total p {
    color: rgba(31, 31, 31, 0.8);
    font-size: 12px;
    font-weight: 500;
    gap: 16px;
}

.total_n {
    background-color: #f6f6f6;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
}

.task_list {
    height: calc(100% - 148px);
    overflow-y: auto;
}

.unread {
    position: absolute;
    right: 6px;
    color: red;
    font-size: 26px;
    top: -8px;
}

.monitoring_list .tr.empty {
    width: 46px;
    cursor: pointer;
}

.monitoring_list .tr.department {
    width: 190px;
}

.monitoring_list .tr.anfang {
    width: 190px;
}

.monitoring_list .tr.full {
    width: calc(100% - 750px);
}

.task_form {
    background-color: #fafafa;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 24px;
}

.form_control {
    width: calc(50% - 10px);
}

.form_control label {
    margin-bottom: 10px;
    color: rgba(31, 31, 31, 0.8);
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.w-100 {
    width: 100% !important;
}

.form_control > input,
.form_control > select,
.form_control > textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #c7c7c7;
    outline: none;
}

.form_buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0 20px;
}

.form_action_btn > button {
    background-color: rgba(12, 31, 46, 0.05);
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 36px;
    border: 1px solid rgba(12, 31, 46, 0.1);
    border-radius: 100px;
    cursor: pointer;
}

.drop_file > label {
    width: 100%;
    background-color: rgba(43, 137, 211, 0.1);
    border: 1px dashed #2b89d3;
    padding: 38px;
    text-align: center;
    display: block;
}

.sm_drop_file > label{
    padding: 8px;
}

.drop_file > label p {
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    margin-bottom: 6px;
}

.drop_file > label span {
    color: rgba(31, 31, 31, 0.8);
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.task-details-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 24px;
    overflow-y: scroll;
    height: 100%;
    padding-right: 10px;
}
.task-details-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.task-details-header span {
    display: flex;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0%;
    align-items: center;
    justify-content: center;
}
.task-details-header span p {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0%;
    margin-left: 5px !important;
}
.checkboxes {
    display: flex;
    align-items: center;
    gap: 22px;
}

input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.custom-checkbox {
    position: relative;
    padding-left: 30px;
    font-size: 16px;
    cursor: pointer;
}

.custom-checkbox::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #1f1f1f;
    border-radius: 4px;
    transition: all 0.3s ease;
}

input[type="checkbox"]:checked + .custom-checkbox::before {
    background-color: #1f1f1f;
    border-color: #1f1f1f;
}

input[type="checkbox"]:checked + .custom-checkbox::after {
    content: " ";
    position: relative;
    left: 4px;
    top: 2px;
    font-size: 16px;
    font-size: 20px;
    color: #fff;
}

label {
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
}

label .fake-checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #1f1f1f;
    vertical-align: middle;
    border-radius: 4px;
    position: relative;
}

label .fake-checkbox::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 8px;
    border-right: 2px solid #1f1f1f;
    border-bottom: 2px solid #1f1f1f;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: all 0.2s;
}

label input {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

label input:checked + .fake-checkbox {
    border-color: #333;
}

label input:checked + .fake-checkbox::before {
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

label .text {
    font-weight: 700 !important;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #1f1f1f !important;
    margin-left: 5px !important;
}
.task-details-inner {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    background: #fafafa;
    border-radius: 20px;
    margin-top: 20px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}
.task-details-option {
    display: flex;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    align-items: center;
}
.task-details-option p {
    font-weight: 500;
    font-size: 14px;
    color: #1f1f1fcc;
}
.task-details-option strong {
    margin-left: 20px;
    font-weight: 500;
    font-size: 18px;
    color: #1f1f1f;
}
.task-details-option a {
    margin-left: 20px;
    text-decoration: none;
    color: #5574ff;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
}
.cc {
    margin-top: 22px;
}
.task-details-buttons {
    margin-top: 24px;
    display: flex;
    width: 100%;
    align-items: baseline;
    gap: 20px;
}
.task-details-buttons button {
    padding: 13px 30px;
    box-sizing: border-box;
    border-radius: 100px;
    border: 1px solid #0c1f2e1a;
    background: #0c1f2e0d;
    color: #000000;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    font-family: "Loos";
    cursor: pointer;
}
.taskread {
    font-weight: 500;
    font-size: 14px;
    margin-top: 24px;
    display: flex;
    align-items: center;
}
.taskread p {
    font-weight: 500;
    font-size: 18px;
    margin-left: 20px;
}
.comentsbutton {
    padding: 13px 20px;
    color: #000000;
    border: 1px solid #d9d9d91a;
    background: #d9d9d91a;
    border-radius: 100px;
    display: flex;
    margin-top: 24px;
    font-family: Loos;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}
.comentsbutton img {
    margin-right: 14px;
}

.task-details-main .drop_file{
    margin-top: 24px;
}
.sidebarnavbtn{
    display: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    outline: none;
    border: 1px solid #FFFFFF1A;
    background: #FFFFFF1A;
    color: #fff;
    font-size: 16px;
}
.showchat-button{
    display: none;
}

.modal{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    background-color: rgba(0,0,0, .6);
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_wrapper{
    background-color: #fff;
    border-radius: 20px;
    width: 600px;
    max-width: 90%;
    height: 660px;
    padding: 20px;
}

.modal_header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal_body{
    width: 100%;
    margin-top: 30px;
}

.comments_box{
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.comment_item{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(31, 31, 31, 0.1);
}

.comment_user > img{
    width: 60px;
    border-radius: 50%;
}

.comment_date{
    font-size: 14px;
    color: #1F1F1F;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.comment_date >span{
    color: rgba(31, 31, 31, 0.8);
    font-size: 12px;
}

.comment_box > p:last-child{
    font-size: 14px;
    color: #1F1F1F;
    margin-top: 10px;
    font-weight: 400;
}

.submitBtn{
    width: 100%;
    background-color: #0C1F2E;
    color: #fff;
    padding: 16px;
    font-size: 14px;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
}

.form_errors{
    width: 100%;
    display: block;
}

.form_errors > p{
    font-size: 12px;
    color: red;
}

@media  screen  and (max-width: 1440px) {
    .monitoring_list .tr.full{
        margin-left: 20px;
        min-width: 120px;
    }
    .layout_wrapper{
        width: calc(100% - 650px);
    }
    .task_form{
        height: 100%;
        padding-right: 15px;
        box-sizing: border-box;
    }
    #chat{
        width: 350px;
    }
    .tr.full{
        width: 150px;
    }
}

@media screen and (max-width:1366px) {
    .layout_content {
        height: 100%;
    }
    .layout_content{
        overflow-y: scroll;
    }
    .task_list_header {
        gap: 20px;
    }
    .task_list_body{
        gap: 20px;
    }
    .monitoring_list .tr.department{
        min-width: 140px;
    }
    .monitoring_list .tr.anfang {
        min-width: 190px;
    }
    .monitoring_list .tr.empty{
        min-width: 50px;
    }

    .monitoring_list .tr.full{
        width: 100%;
    }
    .task_form{
        height: max-content;
    }
    .form_buttons button{
        padding: 8px 24px;
        font-size: 14px;
    }
}
@media screen  and (max-width: 1024px){
    .layout{
        padding: 10px;
    }
    .layout_container {
        gap: 12px;
    }
    .chat_user > img{
        width: 45px;
        height: 45px;
    }
    .chat_box {
        padding: 9px;
    }
    .layout_wrapper{
        padding: 12px;
    }
    .send_btn{
        width: 35px;
        height: 35px;
    }
    #sidebar{
        width: 230px;
        padding: 12px;
    }
    .menu_item > a{
        font-size: 14px;
    }
    .layout_wrapper {
        width: calc(100% - 550px);
    }
    #chat {
        width: 300px;
    }
    .layout_content{
        overflow-x: hidden;
    }
    .tasks_status_item > p{
        font-size: 14px;
    }
    .tasks_status_item{
        padding: 10px;
    }
    .tasks_statuses {
        gap: 4px;
    }
}
@media screen and (max-width: 1000px) {
    .layout{
        height: auto;
    }
    .layout_container{
    }
    
}
@media screen and (max-width: 800px){
    .task-details-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkboxes{
        margin-top: 24px;
    }
    .task-details-buttons{
        flex-wrap: wrap;
    }
    .search_bar > img{
        top: calc(50% - 9px);
    }
    .tasks_statuses{
        overflow-x: scroll;
    }
    .tasks_statuses::-webkit-scrollbar{
        display: none;
    }
    .layout_container{
        flex-direction: column;
        align-items: center;
    }
    .layout_wrapper {
        width: 100%;
    }
    .sibebar_top{
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .sidebarnavbtn{
        display: flex;
    }
    #sidebar{
        width: 400px;
        height: max-content;
    }
    .sidebar_menu{
        display: none;
    }
    .sidebar_menu.show_sidebar {
        display: flex;
        flex-direction: column;
        animation: opensidebaranim 1s;
    }
    .sidebar_menu.hide_sidebar {
        animation: closesidebaranim 1s;
    }
    @keyframes opensidebaranim{
        0%{
            opacity: 0;
        }
        100%{
            opacity: 1;
        }

    }
    @keyframes closesidebaranim{
        0%{
            opacity: 1;
        }
        100%{
            opacity: 0;
        }
    }
    .showchat-button{
        display: flex;
        padding: 8px 13px;
        color: #fff;
        border-radius: 100px;
        background: #40975E;
        border: none;
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    .disable-chat{
        position: absolute;
        right: 26px;
        top: 20px;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        border: none;
        outline: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        display: block;
    }
    .showchat-button p{
        margin-left: 5px;
    }
    #chat{
        width: 100%;
        height: 100%;
        position: fixed;
        
    }
    /* .chat_main{
        display: none;
    } */
    .layout{
        height: 100vh;
        overflow-y: scroll;
    }
    .task_list{
        height: 100%;
    }
    .layout_content{
        height: max-content;
    }
    .show_chat {
        display: flex;
    }
}
@media screen and (max-width: 500px) {
    .task-details-option strong {
        font-size: 14px;
        margin-left: 10px;
    }
    .task-details-inner{
        padding: 10px;
    }
    .task-details-option p{
        font-size: 12px;
    }
    .task-details-option a{
        font-size: 14px;
        margin-left: 10px;
    }
    .task-details-buttons button{
        font-size: 14px;
    }
    .taskread p {
        font-size: 16px;
        margin-left: 10px;
    }
}

@media screen and (max-width: 420px){
    .task_form{
        flex-direction: column;
    }
    .form_control{
        width: 100%;
    }
    #sidebar{
        width: 100%;
    }
}