body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    color: #667085;
}

/* <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap" rel="stylesheet"> */

/* body {
    font-family: 'Plus Jakarta Sans', sans-serif;
  } */
  

.nav-top-header-task {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card {
    margin-bottom: 0.5rem;
}

.nav-top-header-task i {
    cursor: pointer;
    padding: 5px;
    border: 1px solid #E4E7EC;
    border-radius: 4px;
    color: #667085;
    aspect-ratio: 1 / 1;
    font-size: 10px;
    margin-right: 10px;
}
.user-plan{
    padding: 16px;
}
.card-header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
}

.card-header-title i {
    color: #344054;
    font-size: 16px;
    font-weight: 600;
}

.card-header-name {
    color: #344054;
    font-weight: 600;
    font-size: 18px;
}

.task-container {
    padding: 8px;
}

.task-header,
.task-header-content {
    display: flex;
    align-items: center;
    gap: 10px
}

.task-header-description {
    display: flex;
    align-items: flex-start; 
    /* line-height: 2; */
}

.task-header i {
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-item-name {
    color: #667085;
    font-weight: 400;
}

.card-item-name img {
    padding-right: 5px;
}

/*.task-header-content i,*/
/*.card-item-item {*/
/*    color: #D92D20;*/
/*}*/

.task-header-content {
    border-radius: 7px;
    max-width: 70px;
    max-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    gap: 10px
}
.fa-star-1 {
    color:#F79009;
    padding-right: 5px;
}
.fa-star-2 {
    color: #F04438;
    padding-right: 5px;
}
.fa-star-0 {
    color: #079455;
    padding-right: 5px;
}
#progressChart {
    width: 30px !important;
    height: 30px !important;
    margin-right: 5px;
}

.progress-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: #667085;
}

.item-time {
    font-weight: 500;
    font-size: 14px;
    overflow: hidden;
}

.item-time span{
    padding-left: 10px !important;
}

.item-infor {
    display: flex;
    align-items: center;
    gap: 10px
}

.item-infor img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.item-infor-name {
    font-weight: 500;
    color: #667085;
}

.item-infor-role {
    max-width: 77px;
    max-height: 24px;
    border-radius: 4px;
    padding: 2px 6px 2px 6px;
    background-color: #F2F4F7;
    font-size: 12px;
}

.item-group-avatar {
    display: flex;
    align-items: text;
}

.member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: -15px;
}

.member-avatar:first-child {
    margin-left: 0;
}

.description {
    flex-shrink: 0;
    white-space: nowrap;
}

.dropdown {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #667085;
}

.form-select-status {
    padding-right: 30px;
    appearance: auto !important;
}

.dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
}

.container {
    width: 100%;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 14px;
    color: #6c757d;
    padding: 10px 14px 10px 35px;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.add_task {
    /*background: linear-gradient(45deg, #9054F7, #2E8EF5);*/
    border: none;
    border-radius: 8px;
    padding: 10px 14px 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    max-height: 44px;
    max-width: 176px;
   
}

.add_task a {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 20px;
    color: white;
}

.add_task a:hover {
    color: white;
}

.add_task:active {
    transform: scale(0.98);
}

.wrapper_icon {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    border: 1px solid #E4E7EC;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7F56D9;
}

.container-tool {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-tool-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container-tool-search {
    width: 200px;
}

.container-tool-item {
    width: 180px;
}

.container-tool-item .form-select {
    line-height: 20px;
}
.task-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-task {
    display: flex;
    /*justify-content: center;*/
    /*align-items: center;*/
    flex-shrink: 0;
    white-space: nowrap;
}

.wrapper-task-item {
    padding: 10px;
    width: 33.333%;
    /*max-height: 350px;*/
}

.process-task-item {
    box-sizing: border-box;
    padding: 15px;
}

.task-item-name {
    text-align: left;
    color: #344054;
    font-weight: 600;
    font-size: 18px;
}

.task-item-infor {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    width: 100%;
    max-height: 196px;
    margin-top: 10px;
    padding: 15px;
    word-wrap: break-word;
}

.task-item-infor:hover {
    border-color: #B692F6; /* Màu tím */
    cursor: pointer; /* Đổi con trỏ khi hover */
}

.task-star-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-title {
    font-size: 16px;
    font-weight: 600;
    color: #182230;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    display: block;
}

.task-item-infor-time {
    margin-top: 25px;
}

.task-star {
    color: red;
}

.task-time {
    display: flex;
    border-radius: 4px;
    align-items: center;
    gap: 20px
}

.task-name {
    align-self: stretch;
    border-radius: 4px;
    gap: 8px;
    font-size: 16px;
    line-height: 1;
    margin: auto 0;
}

.btn-primary {
    font-size: 14px;
    min-width: 100px;
    text-transform: none;
    font-weight: 600;
    color: #fff !important;
}
.status-select {
    color: white;
    font-weight: bold;
    border: none;
}

/*.status-0 { background-color: #6c757d; }*/
/*.status-1 { background-color: #0d6efd; }*/
/*.status-2 { background-color: #198754; }*/

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot-0 { background-color: #6c757d; }
.dot-1 { background-color: #0d6efd; }
.dot-2 { background-color: #198754; }


#statusButton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 200px;
    font-size: 14px;
    border-radius: 8px;
    text-align: left;
}

.status-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-icon {
    margin-left: auto;
}

.detail-task-time {
    display: flex;
    align-items: center;
    gap: 10px
}

/* Thêm nhiệm trong chi tiết task */

.progress-task {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}
.progress {
    height: 8px;
    background-color: #e0f2f1;
    border-radius: 10px;
    flex: 1;
    /* line-height: 1.5; */
}

.percent-task {
    font-size: 16px;
}

.progress-bar {
    background-color: #2e7d32;
    border-radius: 10px;
}

.list-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px
}

.group-item {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 6px 12px;
    display: flex;
    align-items: center;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #6a1b9a;
}

.delete-btn {
    background: none;
    border: none;
    color: gray;
}

.btn-add-task-detail {
    background-color: #F9F5FF;
    color: #7F56D9;
    border-radius: 10px;
}

.comment-box {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

.comment-box-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-chat {
    border: none;
    outline: none;
    flex: 1;
    font-size: 16px;
    color: #667085;
}

textarea {
    overflow: auto;
    resize: vertical;
}

.input-box textarea {
    font-weight: 400 !important;
}

.title-detail-task {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: white;
    font-weight: 500;
    width: 100%;
    /* position: fixed;
    top: 0; */
}

.task-name {
    line-height: 1.5;
}

.comment-box .input-chat::placeholder {
    font-size: 14px;
}
.template-action-buttons .dropdown-menu{
    left: -50px !important;
}
.detail-task-attachments .attachment-item{
    padding: 3px 10px 0px 44px;
    background: #F2F4F7 url(/images/svg/file.svg) no-repeat 0px center;
    border-radius: 5px;
    border: 1px solid #E4E7EC;
    margin: 5px;
}
#task-list {
    .checklist-item{
        display: inline-flex;
        align-items: center;
        width: 100%;
        border-radius: 10px;
        border: 1px solid #ddd;
        padding: 0 15px;
        margin: 5px;
    }
    .task-sequence{
        padding: 0 10px 0 15px;
    }
    .task-name{
        flex-grow: 1;
    }
    .task {
        border: 1px solid #ccc;
        background-color: #f8f9fa;
        transition: background-color 0.3s;
        display: inline-flex;
        align-items: center;
        width: 100%;
        border-radius: 10px;
        border: 1px solid #ddd;
        padding: 10px 15px;
        margin: 10px;
    }
    .task.completed {
        background-color: #d4edda;
        text-decoration: line-through;
    }
    .edit-input {
        flex-grow: 1;
        margin-left: 10px;
        display: none;
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.10);
        padding: 5px;
    }
    .btn-remove {
        margin-left: 10px;
    }
    .placeholder {
        border: 2px dashed #007bff;
        background-color: #e9ecef;
        height: 60px;
        margin: 10px 0;
        display: none;  /* Initially hidden */
    }


}

.btn-add-checlist-detail{
    color: #7F56D9 !important;
    background: #F9F5FF !important;
}
.btn-add-checlist-detail:hover{
    color: #7F56D9 !important;
}
#listUsersTable_filter{
    display: none;
}
#history_subtask{
    border-top: 1px solid #E4E7EC;
    padding-top: 20px;
    font-size: 14px;
    /*max-height: 200px;*/
    /*overflow-y: scroll;*/
}

#history_subtask{
    .chat-container {
        width: 400px;
        margin: 0 auto;
        border: 1px solid #ccc;
        border-radius: 10px;
        overflow: hidden;
    }

    .chat-header {
        background-color: #4CAF50;
        color: white;
        padding: 10px;
        text-align: center;
    }

    .chat-history {
        padding: 10px;
        max-height: 300px;
        overflow-y: auto;
        background-color: #f9f9f9;
    }

    .message {
        margin-bottom: 10px;
        width: 100%;
    }

    .message-avatar img {
        border-radius: 50%;
        width: 30px;
        height: 30px;
    }
    .message-avatar {
        width: 5%;
    }

    .message-content {
        width: 95%;
        margin-left: 10px;
        background-color: #fff;
        padding: 5px;
        border-radius: 10px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    .message-user {
        font-weight: bold;
        margin-bottom: 5px;
    }

    .message-text {
        margin-bottom: 5px;
    }

    .message-time {
        font-size: 0.8em;
        color: #888;
        text-align: right;
    }

    .chat-input {
        display: flex;
        border-top: 1px solid #ccc;
        padding: 10px;
        background-color: #fff;
    }

    .chat-input input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-right: 10px;
    }

    .chat-input button {
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .chat-input button:hover {
        background-color: #45a049;
    }
}

@media (max-width: 1200px) {}

@media (max-width: 1024px) {}

@media (max-width: 768px) {
    .form-select {
        font-size: 13px !important;
        color: #f00e0e;
        word-wrap: break-word;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .add_task {
        font-size: 12px;
        max-height: 40px;
        max-width: 150px;
        gap: 5px
    }
    
    .wrapper_icon {
        width: 14px;
        height: 14px;
    }

    .item-infor-name,.card-item-name, .item-time, 
    .item-infor-status , .task-header-content {
        font-size: 12px;
    }

    .item-infor-status {
        max-width: 140px;
    }

    .distance.mb-4 {
        margin-bottom: 4px !important;
    }

    .task-item-name {
        font-size: 14px;
    }

    .task-title {
        font-size: 12px;
    }

    .container-tool-wrapper {
        gap: 5px;
    }

    .container-tool-priority {
        width: 144px;
    }
    .process-task-item {
        padding: 10px;
    }

    .task-star-title {
        display: flex;
        align-items: flex-start;
    }
    
}


@media (max-width: 500px) {

    .container-tool-search {
        width: 100%;
        max-width: 100%;
    }

    .container-tool-search .search-box {
        width: 100%;
        max-width: 100%;
    }

    .container-tool-item {
        width: 100%;
        max-width: 100%;
    }

    .wrapper-task-item {
        min-width: 100%;
    }
}

.item-task-function-icons .item-task-function-item .dropdown-menu {
    transform: translate(-85px, 26px) !important;

}





