.open-modal {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
}

.modal.show {
    display: flex!important;
}

.modal-content {
    /*background-color: #fefefe;*/
    background-color: #f4f5f7;
    margin: 15% auto;
    padding: 20px;
    padding-top: 0;
    border: 1px solid #888;
    width: 65%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto!important;
    scrollbar-color: #152ba5;
    /* firefox */
    scrollbar-width: thin;
    scrollbar-color: #152ba5 #eee;
    border-radius: 3px;
}

.modal-content .panel {
    box-shadow: 0 1px 2px -1px #091e4240, 0 0 0 1px #091e4214;
    -webkit-box-shadow: 0 1px 2px -1px #091e4240, 0 0 0 1px #091e4214;
    /*    border-radius: 3px;*/
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #152ba5
}

.modal[lang="at"] .modal-content::-webkit-scrollbar-thumb {
    background-color: rgb(143, 0, 32)
}

.modal[lang="at"] .modal-content {
    /*background-color: #fefefe;*/
    background-color: #f4f5f7;
    margin: 15% auto;
    padding: 20px;
    padding-top: 0;
    border: 1px solid #888;
    width: 65%;
    max-width: 900px;
    max-height: 90vh;
    overflow: auto!important;
    scrollbar-color: rgb(143, 0, 32);
    /* firefox */
    scrollbar-width: thin;
    scrollbar-color: rgb(143, 0, 32) #eee;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar {
    width: 7px;
    height: 8px;
    background-color: #eee;
}

.close,
.window_minimize {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.window_minimize:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.window_minimize {
    margin-right: 10px
}

.project_modal_title,
.modal_title {
    padding: 10px 20px;
    font-weight: bold;
    color: #FFF;
}

.project_modal_title_row {
    position: relative;
}

.modal.archived .project_modal_title_row:before {
    content: 'Archiválva';
    position: absolute;
    top: -25px;
    font-weight: bold;
    background: lightgray;
    padding: 5px 20px;
    text-transform: uppercase;
    -webkit-box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 75%);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 75%);
}

.project_kategoria,
.task_deadline,
.project_status_in_modal {
    margin-left: 20px;
}

.project_status_in_modal {
    margin-right: 20px;
}

.project_users_in_modal {
    order: 5;
    margin-left: auto;
}

.project_tags_in_modal .project_tag {
    margin-right: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.project_tags_in_modal .project_tag i {
    position: relative;
    padding: 3px 10px;
    line-height: initial!important;
}

.project_tags_in_modal .project_tag i:before {
    display: none!important
}

.project_tags_in_modal .project_tag i:after {
    content: attr(title);
    font-weight: normal!important;
    color: #FFFFFF!important;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"!important;
}

.project_modal_content {
    margin-top: 10px;
}


/**
* single project modal
*/

.modal .accordion {
    /*margin-bottom: 10px;*/
    position: relative;
    border: 1px
}

.modal .accordion:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    content: "\f078";
    margin-left: auto;
    color: black;
    position: absolute;
    right: 10px;
}

.modal .accordion.active:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 700;
    content: "\f077"!important;
    margin-left: auto;
    color: black;
}

.modal .project_kategoria:not(:empty):before {
    font-family: "Font Awesome 5 Free";
    margin-right: 5px;
    content: "\f022"!important;
    margin-left: auto;
    color: black;
}

.project_modal_content article {
    padding-right: 20px;
}

.project_data_row {
    margin-bottom: 10px;
    /*padding: 0 0 15px 0;*/
    font-size: 14px;
    border-bottom: 1px solid #EEE;
}

.project_data_row_title {
    margin-bottom: 0!important;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.project_data_row_title i {
    margin-left: 5px;
    margin-right: 5px;
    font-size: inherit;
}

.project_data_row_title img {
    margin-left: 2px;
    margin-right: 5px;
}

.aside_nav i {
    margin-right: 5px;
    width: 20px;
    text-align: center;
    font-size: inherit;
}

.project_data_content {
    padding: 5px 20px 20px;
}

.project_data_content.active.contenteditable:not([contenteditable="true"]):not(.open) {
    display: -webkit-box!important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-bottom: 5px;
    margin-bottom: 20px;
    cursor: pointer;
}


/**
* OPERA -ba an emjó a line clamp, de ez asszem megoldja
.last-line {
  height: 3.6em; // exactly three lines
  text-overflow: -o-ellipsis-lastline;
}
*/

.project_data_content.contenteditable div {
    width: 100%;
}

.project_data_row .accordion {
    background: #091e420a;
    padding: 5px;
    box-shadow: 0 1px 2px -1px #091e4240, 0 0 0 1px #091e4214;
    -webkit-box-shadow: 0 1px 2px -1px #091e4240, 0 0 0 1px #091e4214;
}

.project_data_row .accordion:hover {
    background: #e4e4e4!important;
    transition: all ease-in-out 0.1s;
    -webkit-transition: all ease-in-out 0.1s;
    -moz-transition: all ease-in-out 0.1s;
}

.project_data_content[contenteditable]:focus {
    outline: 0px solid transparent;
    border-left: 3px solid #5066cb;
    /*    margin-top: 10px;*/
}

.project_data_content:empty:after {
    color: gray;
    font-size: 90%;
    content: 'Kattints duplán ha szeretnél hozzáadni leírást';
}

.aside_nav {
    padding: 5px 10px;
    /*border-radius: 3px;*/
    margin-bottom: 10px;
    color: #000;
    font-size: 14px;
    width: 100%!important;
    max-width: 100%!important;
    background: #091e420a;
    box-shadow: 0 1px 2px -1px #091e4240, 0 0 0 1px #091e4214;
    -webkit-box-shadow: 0 1px 2px -1px #091e4240, 0 0 0 1px #091e4214;
}

.aside_nav:not(.nohover):hover,
.edit-project-data:hover {
    cursor: pointer;
    font-weight: 500;
    transition: all ease-in-out 0.1s;
    -webkit-transition: all ease-in-out 0.1s;
    -moz-transition: all ease-in-out 0.1s;
}

.project-setting {
    cursor: pointer;
    border: none!important;
    justify-content: flex-start!important;
    padding: 3px 5px!important;
    margin-bottom: 2px;
    min-width: 100%;
    word-break: break-all;
}

.project-user-setting.project-setting {
    padding: 0!important;
}

.project-setting.owner div:after {
    content: '(tulajdonos)';
    color: gray;
    font-size: 13px;
    display: block;
}

.project-setting:not(:last-child) {
    border-bottom: 1px solid #EEE;
}

.project-setting.related {
    position: relative;
}

.project-setting.related:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00c";
    position: absolute;
    right: 5px;
}


/**
*
*/

#minimized_modals:not(:empty) {
    flex-wrap: wrap;
    position: fixed;
    width: calc(100% - 55px);
    bottom: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #EEE;
}

.minimized_modal {
    color: #FFF;
    cursor: pointer;
    max-width: max-content;
    border-right: 1px solid #7f7f7f;
}

.minimized_modal .open-modal {
    padding: 5px 5px 5px 10px;
}

.minimized_modal:hover {
    filter: brightness(102%);
    -webkit-filter: brightness(102%);
    -moz-filter: brightness(102%);
    transform: scale(1.04);
    -webkit-transform: scale(1.04);
    -moz-transform: scale(1.04);
    transition: all ease-in-out 0.15s;
    -webkit-transition: all ease-in-out 0.15s;
    -moz-transition: all ease-in-out 0.15s;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.minimized_modal i {
    font-size: 11px;
    margin-left: 10px;
}

.close_minimized_modal {
    padding: 5px;
    padding-right: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
}

.close_minimized_modal:hover {
    text-shadow: 1px 1px 1px #000;
    transition: all ease-in-out 0.15s;
    -webkit-transition: all ease-in-out 0.15s;
    -moz-transition: all ease-in-out 0.15s;
}


/**
* Loader
*/

.loader .loader_container {
    position: relative;
}


/*
.loader .loader_container:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(/wp-content/plugins/oneplace/images/loader-gif.gif);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}
*/

.loader .loader_container:before,
.loader:empty:before {
    content: '';
    position: absolute;
    left: calc(50% - 30px);
    /*top: calc(50% - 30px);*/
    top: 50%;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    border-top: 3px solid #152ba5;
    border-right: 3px solid #152ba5;
    border-bottom: 4px solid #152ba5;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    z-index: 100000;
}

.loader .loader_container:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

#project_modal .loader_container:after,
#edit_oneplace_bidding_modal .loader_container:after {
    opacity: 1!important;
}

#project_modal .project_comment,
#project_modal .project_price {
    padding: 10px 5px;
    /*
    border-bottom: 1px solid #EEE;
    border-top: 1px solid #EEE;
    */
    /* margin-top: 10px;*/
    max-width: unset;
}

#project_modal .project_comment:before {
    content: 'Gyors jegyzet: '!important;
    color: gray;
    margin-right: 10px;
}

#project_modal .project_price:before {
    content: 'Díj: '!important;
    color: gray;
    margin-right: 10px;
}

#project_modal .project_price:empty:after {
    content: 'Nincs megadva'!important;
    color: #000;
    margin-right: 10px;
}

.modal.project_datas.archived .archive_project {
    display: none!important;
}

.modal .project_tasks_buttons:empty:after {
    content: 'Nincsenek dokumentumok';
    color: gray;
    font-size: 13px;
}


/**
*
*/

.create_new_note_modal .modal-content {
    min-height: unset!important
}

.create_new_note_modal .project_modal_content {
    border: none!important;
    padding: 0!important;
}


/**
*
*/

.modal.out .modal-content {
    transform: scale(1);
    animation: unfoldOut 0.5s 0.1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes unfoldIn {
    0% {
        transform: scaleY(0.005) scaleX(0);
    }
    50% {
        transform: scaleY(0.005) scaleX(1);
    }
    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes unfoldOut {
    0% {
        transform: scaleY(1) scaleX(1);
    }
    50% {
        transform: scaleY(0.005) scaleX(1);
    }
    100% {
        transform: scaleY(0.005) scaleX(0);
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.modal.out {
    display: flex!important;
}

.modal .modal-content {
    animation: moveUp 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideUpLarge {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes moveUp {
    0% {
        transform: translateY(150px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes moveDown {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(150px);
    }
}


/*
.project_modal_title {
    text-shadow: 1px 1px 6px #9e9e9e;
}
*/


/**
*
*/

.modal.completed .project_modal_title_row:before {
    content: 'Lezárt feladat';
    position: absolute;
    top: -25px;
    font-weight: bold;
    background: lightgray;
    padding: 5px 20px;
    text-transform: uppercase;
    -webkit-box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 75%);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 5px 0px rgb(0 0 0 / 75%);
}

.modal.completed .project_modal_content form {
    pointer-events: none!important;
}

.project_modal_title {
    margin-bottom: 5px;
    max-width: 60%;
}