
.task_item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px 15px 15px 15px;
    border: 1px solid #F2F6FB;
    border-radius: 16px;
    background: #fff;
    box-shadow: 10px 10px 20px 0 rgba(237, 242, 250, 0.8);
}

.task_item.shown_comments {
    border-radius: 16px 16px 0 0;
}

.tasks_list .task_item {
    border: none;
    box-shadow: none;
}

.task_item.doing {
    background: rgba(177, 243, 174, 0.3) !important;
}

.tasks_list .task_item.doing .task_footer div.comments {
    background: #DFF4E6 !important;
}

.task_item .task_head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 65px;
    margin: 0 -10px;
    padding: 10px 10px;
    border-radius: 12px;
    background: #F1F4FF;
    gap: 10px 5px;
}

.task_item .task_head.done .ttl {
    display: none;
}

.task_item.dofirst:after {
    display: block;
    content: "";
    height: 20px;
    width: 20px;
    background: url(../images/pedestal.svg) no-repeat 100% 100%;
    background-size: contain;
    position: absolute;
    top: -2px;
    left: -2px;
    z-index: 1;
    pointer-events: none;
}

.loading .task_item.dofirst:after {
    display: none;
}

.modtasks .task_item {
    background: #F2F6FB;
}

.modtasks .task_item .task_head {
    min-height: 55px;
}

.modtasks .task_item .task_head .tasktype:before {
    width: 40px;
    height: 40px;
}

.modtasks .tasks_list {
    grid-template-columns: repeat(1, 1fr);
}

.scroll-scrolly_visible > .tasks_list {
    margin-right: 15px;
    margin-bottom: 40px;
}

.modtasks .itemswrap.scroll .owl-stage {
    display: flex;
}

.modtasks .tasks_list.scroll.scroll-scrolly_visible {
    padding-right: 12px;
}

.modtasks + .modplace + .modtasks,
.modtasks + .modtasks {
    margin-top: 25px;

}

.modtasks .task_item .task_lineitems {
    max-height: 180px !important;
}

.tasks_list:not(.recently_completed) .task_item.done {
    background-color: #CACACA;
}

.tasks_list:not(.recently_completed) .task_item.done .task_head {
    background-color: #CACACA;
}

.tasks_list:not(.recently_completed) .task_item.done .task_head .tasktype:before {
    background-color: #bbbbbb;
}

.tasks_list:not(.recently_completed) .task_item.done .task_info {
    border-bottom: 2px solid #CACACA;
}

.tasks_list:not(.recently_completed) .task_item.done legend {
    color: #333;
    border-color: #F1F4FF;
}

.task_item.done .btn.fullscreen:before {
    background-color: #F1F4FF;
}

.rstasks .tasks_list:not(.recently_completed) .task_item .task_head.done * {
    color: #333;
}

.tasks_list .task_item .task_head.done .moveButtons {
    display: none;
}

.task_item .task_head .cid {
    font-size: 30px;
    font-weight: 300;
    line-height: 30px;
    display: flex;
    align-items: center;
    order: -3;
    gap: 5px 5px;
}

.modtasks .task_item .task_head {
    padding: 0 10px;
    background: transparent;
}

.task_item .task_head .info {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    gap: 2px 5px;
    padding-right: 25px;
    line-height: 20px;
    font-size: 14px;
}

.task_item .task_foruser {
    font-weight: normal;
    color: #2C2F38;
}

.task_item .task_dates {
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 1px 12px;
}

.task_item .task_dates .val {
    display: inline !important;
}

.task_item .task_created .param {
    line-height: 1.1;
}

.task_item .task_data {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 3px 0;
}

.task_item .task_data > * {
    display: flex;
    justify-content: space-between;
}

.task_item .task_info {
    margin: 0 -5px 5px -5px;
    padding: 5px 5px;
    border-bottom: 2px solid #F1F4FF;
}

.task_item .task_head .task_info {
    margin: 0 -5px 0px -5px;
}

.modtasks .task_item .task_info_wrap {
    margin: 0;
    padding: 10px 10px;
    border-radius: 16px;
    background: #fff;
}

.modtasks .task_item.done .task_info_wrap {
    background: #bbbbbb;
}

.task_item .task_info .task_inf {
}

.task_item .task_info a,
.task_item .task_add_data a,
.task_item .task_text a {
    text-decoration: underline !important;
    word-break: break-all;
}

.task_item .task_info b,
.task_item .task_text b,
.task_item .task_info b *,
.task_item .task_text b * {
    font-weight: 500 !important;
}

.task_item .task_text {
    word-break: keep-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.task_item .task_text .text {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.task_item .task_text .text + div {
    padding-top: 10px;
}

.task_item .task_title + .task_content:not(.empty) {
    margin: 5px -10px 5px -10px;
    padding: 10px 10px 0;
    border-top: 2px dashed #CEDCEE;
}

.task_item .task_content .text + .task_notes_items {
    padding-top: 15px;
}

.task_item .task_notes_items .note {
    color: #979797;
}

.task_item .task_footer {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: auto -10px 0 -10px;
    padding: 15px 10px 0;
    border-top: 1px solid #CEDCEE;
    gap: 10px 10px;
}

.task_item.done .task_footer {
    border-top: 1px solid #F1F4FF;
}

.task_item .task_footer .task_actions {
    display: grid;
    order: -1;
    grid-auto-rows: auto;
    grid-template-columns:  repeat(2, minmax(0, 1fr));
    grid-gap: 10px 10px;
}

.task_item .task_footer .task_actions .btn {
    /*flex-grow: 2;*/
    line-height: 1.1;
    min-height: 24px;
}

.task_item .task_footer .btn.showcomments {
    border: 1px solid #F1F4FF;
}

.task_item.done .task_footer .btn.showcomments {
    background-color: #F1F4FF;
    border-color: #F1F4FF;
}

.task_item .task_footer .btn.showcomments:not(.empty) {
    background: #d4f3d3;
    border-color: #baf7b9;
}

.task_item .task_head .btn-edit:before,
.checklist_list_history .btn-ascr:before,
.checklist_list_history .btn-delete:before,
.task_item .task_footer .task_actions .btn:before {
    width: 18px;
    min-width: 18px;
    height: 18px;
}

.task_item .task_footer .task_actions .btn-secondary.approval {
    color: #FFBF21;
    border-color: #FFBF21;
    grid-column: 1/-1;
    font-size: 16px;
    font-weight: normal !important;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 15px;
    transition: all ease-in .2s;
    border-radius: 8px;
}

.task_item .task_footer .task_actions .btn.btn-secondary.approval {
    cursor: pointer;
}

.task_item .task_footer .task_actions .btn-secondary.approval:before {
    color: #FFBF21;
    background-color: #FFBF21;
}

.task_item .task_footer .task_comments {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 100%;
}

.owl-item .task_item .task_footer .task_comments {
    display: none;
}

.task_item .task_footer .task_comments .details .lbl {
    display: none;
}

.task_item .task_footer div.comments {
    position: absolute;
    z-index: 9;
    top: 100%;
    left: -5px;
    width: calc(100% + 10px);
    margin-top: 5px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 0 0 5px 5px;
    background: #fff;
    box-shadow: 0 10px 5px 5px rgba(237,242,250,0.6);
}

.task_item.done .task_footer div.comments {
    background-color: #CACACA;
}

.modal .task_item .task_footer div.comments {
    position: static;
    box-shadow: none;
    padding: 0;
    z-index: 1;
    width: 100%;
    background-color: transparent;
}

.task_item .task_footer div.comments .attach img {
    max-height: 120px;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.task_item .task_footer div.comments .attach video {
    max-height: 120px;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.task_item .task_lineitems_wrap + * {
    margin-top: 15px;
}

.task_item .task_lineitems .item .free > * {
    display: none !important;
}

.task_item .task_lineitems .th.allfree > span:not(:first-child) {
    display: none !important;
}

.task_item .task_deadline .val span1,
.task_item .task_data .val {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 10px;
    border-radius: 5px;
    gap: 5px 5px;
}

.task_item .task_deadline .val > span {
    padding: 0 10px;
    border-radius: 5px;
}

.task_item .task_deadline .val {
    margin-right: -10px;
}

.task_item .task_head .val {
    display: flex;
    align-items: center;
    gap: 2px 5px;
    flex-wrap: wrap;
    line-height: 20px;
}

.task_item .task_data .val .avatar {
    margin-right: 0 !important;
}

.task_item .usr {
    display: flex;
    align-items: center;
}

.task_item .usr:after {
    display: block;
    content: ",";
}

.task_item .usr:last-child:after {
    display: none;
}

#priority_chosen1 li[data-option-array-index="2"],
select#priority1 option[value="2"],
.task_item.normal .task_priority .val {
    color: #3AC638;
    background: #d4f3d3;
}

#priority_chosen1 li[data-option-array-index="3"],
select#priority1 option[value="3"],
.task_item .task_deadline .val span,
.task_item.high .task_priority .val {
    color: #FF9921;
    background: #ffe9ce;
}

#priority_chosen1 li[data-option-array-index="4"],
select#priority1 option[value="4"],
.task_item .task_deadline .val span.now,
.task_item.very-important .task_priority .val {
    color: #D30E01;
    background: #ffc7c7;
}

.task_item.notapproved:before {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 10px;
    display: block;
    width: 150px;
    height: 50px;
    content: "";
    pointer-events: none;
    background-color: #ff0000;
    -webkit-mask: url(../images/not-approved.svg) no-repeat 100% 100%;
    mask: url(../images/not-approved.svg) no-repeat 100% 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.modal .vehicle.sold .name:before,
#tasks_listing .task_add_data .vechicle.sold .val:before {
    display: inline-block;
    vertical-align: middle;
    content: "";
    margin-right: 10px;
    width: 25px;
    height: 19px;
    background-color: #ff0000;
    -webkit-mask: url(../images/sold.svg) no-repeat 100% 100%;
    mask: url(../images/sold.svg) no-repeat 100% 100%;
    -webkit-mask-size: contain;
    mask-size: contain;
}

#tasks_listing .task_add_data .vechicle.sold.nulled .val:before {
    background-color: #FF9921;
}

#tasks_listing .progress .progress_text {
    top: 0;
}

.loading .task_item.notapproved:before {
    display: none !important;
}

.wrapped-items .task_item + .task_item {
    margin-top: 15px;
}

.task_item .task_head .btn-edit,
.task_item .task_head .btn-edit:before,
.task_item .task_head .btn-nudge,
.task_item .task_head .btn-nudge:before {
    margin: 0 auto;
    box-shadow: none !important;
}

.task_item .task_head .tasktype {
    order: -1;
    display: flex;
    align-items: center;
    gap: 5px 5px;
}

.task_item .task_head .tools .btn-edit {
    position: absolute;
    top: 5px;
    right: 10px;
}

.modtasks .task_item .task_head .tools .btn-edit {
    top: 0;
}

.task_item .task_head .tools .btn-nudge {
    line-height: 26px;
    position: absolute;
    right: 10px;
    bottom: 5px;
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
}

.modtasks .task_item .task_head .tools .btn-nudge {
    bottom: 0;
}

.task_item .task_head .tools > * {
}

.task_item .task_head .btn-edit:hover,
.task_item .task_head .btn-nudge:hover,
.task_item .task_head .btn-edit:focus,
.task_item .task_head .btn-nudge:focus {
    border-color: #5078FE;
}

.tasks_listing_actions,
.tasks_listing_actions .task_actions,
.tasks_listing_actions .cnt {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 10px;
}

.tasks_listing_actions .task_actions .btn-main:before {
    background-color: #fff;
}

.tasks_listing_actions .cnt {
    flex-wrap: nowrap;
}

.tasks_listing_actions {
    flex-wrap: nowrap;
    margin-bottom: 25px !important;
    padding: 15px !important;
    box-shadow: 10px 10px 20px 0 #EDF2FA !important;
}

.modal .tasks_listing_actions .btn {
    flex-basis: initial;
}

.modal .tasks_listing_actions .btn span {
    display: none;
}

.modal .tasks_listing_actions .btn:before {
    margin: 0;
}

.modal .tasks_listing_actions .task_actions {
    margin-left: auto;
}

.page.tasks #tasks_list .taskcheck {
    display: initial !important;
}

.page.tasks #tasks_list .task_head .tools {
    order: 10;
}

.task_item .comments_items {
    margin-top: 10px;
    margin-bottom: 15px;
}

.task_item .comments_items ul {
    overflow: auto;
    max-height: 250px;
}

.task_item .comments_items ul.scrollbar-inner.scroll-scrolly_visible {
    padding-right: 13px;
    padding-bottom: 10px !important;
}

.task_item .comments_items ul li + li {
    margin-top: 15px;
}

.task_item .comments_items .inf {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 5px;
    color: #848798;
}

.task_item .comments_items .inf .date {
    font-size: 13px;
    color: #B6B8C2;
}

.task_item .comments_items .text {
    font-size: 14px;
    position: relative;
    display: block;
    padding: 5px;
    border: 1px solid #CEDCEE;
    border-radius: 3px;
    background: #fff;
    overflow-x: clip;
    word-wrap: break-word; /* IE */
    word-break: break-all; /* Modern browsers */
    overflow-wrap: break-word; /* Modern browsers */
    white-space: normal; /* Ensure it wraps normally */
}

.task_item .comments_items .text i {
    font-style: normal;
    position: absolute;
    top: 2px;
    right: 2px;
    display: block;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.task_item .comments_items.loading {
    overflow: hidden;
    min-height: 220px;
}

.modal .tasks.page .task_item {
    border: 1px solid #EDF2FA;
    box-shadow: 10px 10px 20px 0 #EDF2FA;
}


.modal-dialog.taskinfo .task_item .scrollable {
    max-height: none !important;
    overflow: visible;
}



.modal  li.task_notes_item  .btns label,
.task_item li.task_notes_item   .btns label {
    line-height: 18px;
    width: 100%;
    height: 18px;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid #BEC4C8;
}

.modal li.task_notes_item  .btns .button label,
.task_item li.task_notes_item  .btns .button label{
    border-radius: 5px;
}

.modal li.task_notes_item  .btns.taskwaitingapproval .button:last-child label,
.task_item li.task_notes_item  .btns.taskwaitingapproval .button:last-child label {
    border-radius: 0 5px 5px 0;
    max-width: 50px;
}

.modal li.task_notes_item  .btns.taskwaitingapproval  .button:first-child label,
.task_item li.task_notes_item  .btns.taskwaitingapproval  .button:first-child label {
    border-radius: 5px 0 0 5px;
    max-width: 50px;
}

.modal li.task_notes_item  .btns  label,
.task_item li.task_notes_item  .btns  label {
    line-height: 18px;
    width: 100%;
    height: 18px;
    margin-bottom: 0;
    cursor: pointer;
    border: 1px solid #BEC4C8;

}

.modal li.task_notes_item  .btns,
.task_item li.task_notes_item  .btns  {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    width: 64px;
    min-width: 64px;
}
.modal li.task_notes_item  .btns > span,
.task_item li.task_notes_item  .btns > span {
    flex-grow: 2;
}

.modal li.task_notes_item,
.task_item li.task_notes_item   {
    display: flex;
    flex-wrap: wrap;
}

.modal li.task_notes_item.task_part_item ,
.task_item li.task_notes_item.task_part_item    {

    flex-wrap: nowrap;
}


.modal li.task_notes_item >*:first-child,
.task_item li.task_notes_item  >*:first-child {
    flex-grow: 2;
}

.modal li.task_notes_item  .btns input + label,
.task_item li.task_notes_item  .btns input + label {
    font-weight: normal;
    background-color: #EDEDED;
}

.modal li.task_notes_item  .btns input.done:not(:disabled) + label,
.task_item li.task_notes_item  .btns input.done:not(:disabled) + label {
    background-color: #19db22;
}

.modal li.task_notes_item  .btns input.unapproved:checked + label,
.task_item li.task_notes_item  .btns input.unapproved:checked + label {
    background-color: #FF0C00
}


.modal li.task_notes_item  .btns input.approved.checked + label,
.task_item li.task_notes_item  .btns input.approved.checked + label,
.modal li.task_notes_item  .btns input.approved:checked + label,
.task_item li.task_notes_item  .btns input.approved:checked + label {
    background-color: #19db22;
}


.modal li.task_notes_item .btns input.unapproved.checked + label,
.task_item li.task_notes_item .btns input.unapproved.checked + label,
.modal li.task_notes_item .btns input.unapproved:checked + label,
.task_item li.task_notes_item .btns input.unapproved:checked + label{
    background-color: #FF0C00;
}

.modal li.task_notes_item .btns input:disabled + label,
.task_item li.task_notes_item .btns input:disabled + label{
    cursor: not-allowed;
    opacity: 1;
}




