/**
 * jquery.todoList
 */
#ccpm-tasks .ccpm-todo {
    position: relative;
    min-width: 15em;
}

#ccpm-tasks .postbox>.inside {
    padding: 0 24px 24px;
    margin: 0;
}

#ccpm-tasks .link-button {
    border-radius: 2px;
    padding: 2px 5px;
    cursor: pointer;
    text-decoration: none;
}
#ccpm-tasks .link-button.button-primary {
    background: #007cba;
    color: white;
    border-radius: 2px;
    padding: 2px 5px;
    cursor: pointer;
}
#ccpm-tasks .link-button.button-small {
    background: #007cba;
    font-size: small;
    color: white;
    border-radius: 2px;
    padding: 2px 5px;
    cursor: pointer;
}

#ccpm-tasks .link-button.button-secondary {
    background: #007cba;
    color: white;
    border-radius: 2px;
    padding: 2px 5px;
    cursor: pointer;
}

#ccpm-tasks .notice {
    display: none;
}

.ccpm-todo *,
.ccpm-todo *:before,
.ccpm-todo *:after {button button-primary
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.ccpm-todo .ccpm-todo-title {
    padding: .5em 2em .5em .5em;
    position: relative;
    max-height: 5em;
    overflow: hidden;
}

.ccpm-todo .ccpm-todo-title-text {
    display: inline-block;
    width: 100%;
}

.ccpm-todo .ccpm-todo-menu-show {
    display: block;
    position: absolute;
    right: -1px;
    top: -1px;
    font-weight: 900;
    cursor: pointer;
    vertical-align: middle;
    font-size: .9em;
    height: 6em;
    padding: .2em;
}

.ccpm-todo .ccpm-todo-menu {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 10em;
    padding: .2em;
    z-index: 1;
}

.ccpm-todo .ccpm-todo-menu-actions {
    position: absolute;
    right: .2em;
    top: .2em;
}

.ccpm-todo .ccpm-todo-menu-actions .ccpm-todo-action {
    padding: .2em;
    display: inline-block;
}

.ccpm-todo .ccpm-todo-menu-items {
    max-height: 10em;
    overflow-y: auto;
    margin: 2em 0em 1em;
}

.ccpm-todo .ccpm-todo-menu-items a {
    display: block;
    padding: .2em;
    margin-bottom: 0.5em;
}

.ccpm-todo .ccpm-todo-footer {
    position: relative;
}

.ccpm-todo .ccpm-todo-action {
    cursor: pointer;
    text-decoration: none;
}

.ccpm-todo .ccpm-todo-bu tton {
    display: inline-block;
}

.ccpm-todo .ccpm-todo-button-confirm {
    display: inline-block;
    margin-top: 5px;
    font-weight: 600;
    background: #d54e21;
    padding: 2px 6px;
    border-radius: 3px;
    color: #fff;
    margin-left: 4px;
    cursor: pointer;
    border: none
}

.ccpm-todo .ccpm-todo-button-cancel {
    display: inline-block;
    padding: .2em;
    height: 6em;
}

.ccpm-todo-item-action-remove-cancel .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ccpm-todo .ccpm-todo-add {
    padding: 0 27px 0 0;
    position: relative;
    border: none;
}

.ccpm-todo .ccpm-todo-add-input,
.ccpm-todo .ccpm-todo-add-action {
    line-height: 1.5em;
    display: inline-block;
}

.ccpm-todo .ccpm-todo-add-input {
    width: 100%;
    border: none;
}

.ccpm-todo .ccpm-todo-add-input-text {
    width: 100%;
    border: none;
}

.ccpm-todo .ccpm-todo-add-action {
    display: inline-block;
    text-decoration: none;
    overflow: hidden;
    font-weight: 900;
    padding: 0em;
    position: absolute;
    top: 6px;
    right: 0;
}

.ccpm-todo .ccpm-todo-edit {
    position: relative;
}

.ccpm-todo .ccpm-todo-edit-input {
    width: 100%;
    padding-right: 28px;
}

.ccpm-todo .ccpm-todo-edit-input input {
    width: 100%;
}

.ccpm-todo .ccpm-todo-edit-save {
    background-repeat: no-repeat;
    display: inline-block;
    position: absolute;
    right: 7px;
    top: 5px;
    text-align: center;
    cursor: pointer;
}

.ccpm-todo .ccpm-todo-item {
    margin: 5px 0 0;
    position: relative;
    overflow: hidden;
}

.ccpm-todo .ccpm-todo-item-title {
    border-bottom: medium none;
    border-top: medium none;
    border-right: medium none;
    padding: 0.5em;
    margin-left: 30px;
    padding-right: 23px;
    overflow: hidden;
}

.ccpm-todo .ccpm-todo-item-title-text {
    display: inline-block;
    width: 100%;
}

.ccpm-todo .ccpm-todo-item-actions-left {
    display: inline-block;
    position: absolute;
    top: 7px;
    left: 6px;
}

.ccpm-todo .ccpm-todo-item-actions-right {
    display: inline-block;
    position: absolute;
    top: 0px;
    right: 0px;
    height: 6em;
}

.ccpm-todo .ccpm-todo-item-action-remove {
    background-repeat: no-repeat;
    display: inline-block;
    text-align: center;
    overflow: hidden;
    position: absolute;
    right: 0px;
    top: 6px;
    cursor: pointer;
    color: #aaa;
}

.ccpm-todo .ccpm-todo-item-action-remove-confirm {
    background-repeat: no-repeat;
    text-indent: -1000px;
    text-align: center;
    overflow: hidden;
    display: inline-block;
    padding: .2em;
    width: 19px;
    height: 24px;
    /* image from: https://www.iconfinder.com/icons/284073/bin_delete_editor_recycle_trash_icon#size=24 */
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAYCAYAAAAYl8YPAAACTUlEQVQ4T62VS0iVURSFVRpYGCnlxKIGUdBLbRA9zGgmaYI0SKVhEWVENCjTgVGgUhhElBrmSAslGvlqJhg9iAbaAyVKpHQghqFYEkH2LTkH9v05XW/ggcVZe+91193/Oec/f3JS/JFCeZWR/IT/+ddPkuN4qTYCthrNG/ieeGYTFLOW6DCR8rj+fQqsS0S9hGZKZmkgdRnM5mWmRf4IVjhDLfB2MAxU/wV2gE+uPsu8G3w2DXxXzm/AV4INprgGrrVU1zJLB/OuLm0+GDP6d/Bsb/aKYK8pboS/BOsDZu/JnQBDRv8UfsSbPSE4Zoq74J1Ajxvt7Dm5KjBg9K3wU97sDsF5UzwIvwkOBMx6yDWDLqO/Dr/qzS4T3DDFo/Bzaj1g9ohcH2gz+tPwFm+mNWg3RcXFoCxg1kTuA7hr9EXwXm92mKDfFCvg2eBMwKye3ByoNfpc+JA320Kgs+ZHNUTHozJgdoXcWnDJ6DPh37yZboYfpqj1mwF1AbOz5HRotU4a2u2VYMHeGtMkMpxAu/UWNAbMysmVgFKnHWXeLG7NdIp3OkEHs7b+YcCskNwFUOC0z5gPRc10ir1AW38PdAfM8sjdAvvMH6vbmM4eEJ90ghfMWnz9a/QNUPePwTanbWBe3Az7mNeIa5xA50hnTI8eNdOF8Br4C/Ui/HbUTLtz35npxtgPvgTMVpObBP7bcNx1GtOZFlbvnYY+HFo/PeZvoCtHN8sC0DdA3wI/9P7qhokxyyEeNKJE6Sb3BDFmOtVaq/8Z6lR3n7pP+guXqYbxgVDCfwAAAABJRU5ErkJggg==");
}

.ccpm-todo .ccpm-todo-item-checkbox {
    background-repeat: no-repeat;
    display: inline-block;
    text-indent: -1000px;
    text-align: center;
    overflow: hidden;
    height: 20px;
    width: 20px;
    opacity: .7;
    cursor: pointer;
    border: 2px solid #ccc;
}

.ccpm-todo .ccpm-todo-item-done .ccpm-todo-item-checkbox, .ccpm-todo .ccpm-todo-item-done .ccpm-todo-item-checkbox::before {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 24px;
    line-height: 1;
    font-family: dashicons;
    text-decoration: inherit;
    font-weight: normal;
    font-style: normal;
    vertical-align: top;
    text-align: center;
    -webkit-transition: color .1s ease-in 0;
    transition: color .1s ease-in 0;
    -webkit-font-smootask: antialiased;
    -moz-osx-font-smootask: grayscale;
}

.ccpm-todo .ccpm-todo-item-done .ccpm-todo-item-checkbox {
    text-indent: 0;
    overflow: visible;

}

.ccpm-todo .ccpm-todo-item-done .ccpm-todo-item-checkbox:before {
    content: "\f147";
    margin: -4px 0 0 -4px;
}

.ccpm-todo .ccpm-todo-item-done .ccpm-todo-item-title-text {
    text-decoration: line-through;
    color: #888;
}

.ccpm-todo .ccpm-todo-item-done:hover .ccpm-todo-item-title-text {
    text-decoration: none;
}

.ccpm-todo .ccpm-todo-hide-done .ccpm-todo-item-done {
    display: none;
}


#poststuff .bm .cmb-field-list .cmb2-id--bm-project-tasks {
    float: none;
    width: 100%;
}

#ccpm-tasks {
    margin: 0;
    display: block;
}

#ccpm-tasks #ccpm-new-task {
    display: inline-block;
    margin-bottom: 5px;
}

#ccpm-tasks .col-left {
    position: absolute;
    min-height: 1px;
    padding: 0;
    width: 560px;
    z-index: 9;
    display: none;
}

#ccpm-tasks .col-right {
    position: relative;
    min-height: 1px;
    width: 100%;
    z-index: 8;
}

/* @media (min-width: 768px) and (max-width: 991px) {
    #ccpm-tasks .col-left { width:220px; }
    #ccpm-tasks .col-right { width:calc(100% - 240px);}        
}
/* @media (min-width: 768px) and (max-width: 991px) {    
    #ccpm-tasks .col-left { width:220px; }
    #ccpm-tasks .col-right { width:calc(100% - 240px);}        
}                                          
@media (min-width: 992px) and (max-width: 1199px) {
    #ccpm-tasks .col-left { width:260px; }
    #ccpm-tasks .col-right { width:calc(100% - 280px);}
}
@media (min-width: 1200px) {
    #ccpm-tasks .col-left { width:280px; }
    #ccpm-tasks .col-right { width:calc(100% - 300px);}
}
 */
#ccpm-tasks .postbox.add-task {
    background: #fafafa;
    box-shadow: 1px 20px 30px -2px rgba(0, 0, 0, 0.3);
}

#ccpm-tasks .postbox h2 {
    border-bottom: 1px solid #ddd;
    font-weight: 500;
}

#ccpm-tasks .postbox h2 .dashicons {
    float: right;
}

#ccpm-tasks .input-wrap {
    display: inline-block;
    margin: 5px 0;
    width: 100%;
}

#ccpm-tasks .input-wrap .half {
    display: inline-block;
    margin: 0 2% 0 0;
    width: 49%;
    float: left;
}

#ccpm-tasks .input-wrap .half:last-child {
    margin: 0;
}

#ccpm-tasks .input-wrap .select2-selection, #ccpm-tasks .input-wrap input[type="text"], #ccpm-tasks .input-wrap textarea, #ccpm-tasks .input-wrap #color {
    width: 100%;
    padding: 5px 10px;
    font-size: 14px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    background-color: #fff;
    color: #32373c;
    outline: none;
    transition: 0.05s border-color ease-in-out;
    border-radius: 0;
}

#ccpm-tasks .input-wrap input[type="text"]:focus, #ccpm-tasks .input-wrap textarea:focus {
    box-shadow: 0 0 4px rgba(38, 160, 242, 0.3);
    border: 1px solid rgba(38, 160, 242, 0.4);
}

#ccpm-tasks .input-wrap .select2-selection {
    padding: 0;
    min-height: 20px;
}

#ccpm-tasks .input-wrap .select2-selection li {
    margin-bottom: 0;
}

#ccpm-tasks .input-wrap #color {
    display: inline;
    width: 80px !important;
    padding: 3px 4px;
    margin-top: 0;
}

#ccpm-tasks .input-wrap .wp-picker-container {
    padding: 0px;
    float: right;
}

#ccpm-tasks .input-wrap .wp-picker-container.wp-picker-active {
    background: #fff;
    padding: 10px;
    z-index: 999;
    position: relative;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4)
}

#ccpm-tasks .input-wrap .wp-color-result {
    margin: 0;
}

#ccpm-tasks .input-wrap .wp-picker-input-wrap {
    float: right;
}


#ccpm-tasks .input-wrap #ccpm-file-container img {
    max-width: 100px;
}

#ccpm-tasks .ccpm-message {
    padding: 6px 16px;
    background: #fff;
    font-weight: bold;
    border-left: 4px solid #00a0d2;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}


#ccpm-tasks .sort-wrapper *, .sort-wrapper *:before, .sort-wrapper *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#ccpm-tasks .sort-wrapper h4 {
    display: inline-block;
    width: 32%;
    float: left;
    margin: 9px 2% 0 0;
    padding: 6px;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
}

#ccpm-tasks .sort-wrapper h4.col-1 {
    background-color: #be3f3f;
}

#ccpm-tasks .sort-wrapper h4.col-2 {
    background-color: #e09d30;
}

#ccpm-tasks .sort-wrapper h4.col-3 {
    background-color: #308129;
}

#ccpm-tasks .sort-wrapper h4:nth-child(3) {
    margin-right: 0 !important;
}

#ccpm-tasks .sortable {
    width: 32%;
    min-height: 20px;
    list-style-type: none;
    margin-right: 2%;
    padding: 0;
    float: left;
    border-bottom: 2px dashed #ddd;
    margin-top: 0;
    background: #f9f9f9;
}

#ccpm-tasks .sortable.cols-1 {
    width: 100%;
    margin: 0;
}

#ccpm-tasks .sortable.cols-2 {
    width: 49%;
    margin-right: 2%;
}

#ccpm-tasks .sortable.cols-3 {
    width: 32%;
    margin-right: 2%;
}

#ccpm-tasks .sortable.cols-4 {
    width: 24%;
    margin-right: 1.333%;
}

#ccpm-tasks .sortable:last-child {
    margin: 0 !important;
}

#ccpm-tasks .sortable li.task {
    margin: 0 0 10px 0;
    padding: 7px 8px 4px;
    width: auto;
    display: block;
    min-height: 46px;
    background: #fff;
    border: none;
    border-bottom: 3px solid #fff;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

#ccpm-tasks .sortable li.task .handle {
    width: calc(100% - 50px);
    padding: 1px 0 0 0;
    background: transparent;
    display: block;
    position: relative;
    z-index: 9999;
    float: left;
    margin: 3px 0 0;
    border-top: 2px dotted rgba(0, 0, 0, 0.15);
    border-bottom: 2px dotted rgba(0, 0, 0, 0.15);
}

#ccpm-tasks .sortable li.task .handle:hover {
    cursor: move;
    border-top: 2px dotted rgba(0, 0, 0, 0.3);
    border-bottom: 2px dotted rgba(0, 0, 0, 0.3);
}


#ccpm-tasks .sortable li.task .edit, #ccpm-tasks .sortable li.task .delete {
    margin-top: -4px;
    margin-right: -3px;
    position: relative;
    float: right;
    cursor: pointer;
}

#ccpm-tasks .sortable li.task .edit {
    margin-left: 0px;
    margin-right: 0px;
}

#ccpm-tasks .sortable li.task .edit .dashicons, #ccpm-tasks .sortable li.task .delete .dashicons {
    color: #bbb;
}

#ccpm-tasks .sortable li.task .edit:hover .dashicons, #ccpm-tasks .sortable li.task .delete:hover .dashicons {
    color: #777;
}

#ccpm-tasks .sortable li.task .inner .confirm {
    position: absolute;
    top: 0px;
    right: 4px;
    background: #fff;
    padding: 4px 0px 4px 8px;
    box-shadow: 0 0 5px 8px rgba(255, 255, 255, 0.9);
    display: block;
    width: auto;
    z-index: 99;
    font-size: 12px
}

#ccpm-tasks .sortable li.task .confirm .confirm-delete {
    background: #d54e21;
    padding: 1px 5px;
    border-radius: 3px;
    color: #fff;
    margin-left: 4px;
    cursor: pointer
}

#ccpm-tasks .sortable li.task .confirm .cancel-delete {
    color: #0073aa;
    cursor: pointer
}


#ccpm-tasks .sortable li.task .inner {
    width: 100%;
    display: inline-block;
    margin-top: 3px;
    padding: 0 2px;
    position: relative;
}

#ccpm-tasks .sortable li.task .title {
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 8px
}

#ccpm-tasks .sortable li.task .file {
    width: 100%;
    display: inline-block;
    position: relative;
    margin: 10px 0 15px;
}

#ccpm-tasks .sortable li.task .file img {
    max-width: 100%;
    display: block;
    height: auto;
    float: left;
    margin-right: 20px;
}

#ccpm-tasks .sortable li.task .file .icons {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px 0 3px;
}

#ccpm-tasks .sortable li.task .file .icons .dashicons {
    color: #fff;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.7);
    width: 16px;
    font-size: 18px;
}

#ccpm-tasks .sortable li.task .file .data span {
    display: block;
    word-wrap: break-word;
    width: calc(100% - 70px);
    float: left;
}

#ccpm-tasks .sortable li .notes {
    padding: 8px 0;
}

#ccpm-tasks .sortable li .todos {
    margin: 10px 0;
}

#ccpm-tasks .sortable li .todos li {
    margin-bottom: 3px;
}

#ccpm-tasks .sortable li .todos li.true .text {
    color: #aaa;
    text-decoration: line-through;
}

#ccpm-tasks .sortable li .todos li.true .dashicons::before {
    content: "\f147";
}

#ccpm-tasks .sortable li .todos li.false .dashicons::before {
    content: "\f460";
}

#ccpm-tasks .sortable li .start_date {
    margin: 2px 0 4px;
}

#ccpm-tasks .sortable li .end_date {
    margin: 2px 0 4px;
}

