/* RESET STYLES */
* {
    box-sizing: border-box;
}
body, p, ul, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

/* GENERAL */
body {
    font-family: var(--font-family-main);
    font-size: var(--font-size-text);
}
body::-webkit-scrollbar-track{
	background-color: var(--container-color);
}
body::-webkit-scrollbar {
	width: 10px;
}
body::-webkit-scrollbar-thumb {
	border-radius: 20px;
    background-color: var(--icon-color);
    opacity: .8;
}
.show-password {
    color: var(--text-color);
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 3;
}
.show-password.password-shown {
    right: 16px;
}
.show-password.password-shown::before {
    content: "\f06e";
}
.arrow-back {
    margin-right: 8px;
}
.light-text {
    font-size: var(--font-size-text);
    color: var(--text-color);
}
.modal.blur-modal {
    backdrop-filter: blur(4px);
}
.modal.blur-modal-2 {
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, .15);
}
.margin-bottom-20 {
    margin-bottom: 20px;
}
.margin-left-20 {
    margin-left: 20px;
}

/* CUSTOM DROPDOWN : TAGS */
.custom-select-ui .custom-select, .custom-select-ui .options-dropdown {
    display: none;
}
.custom-select-ui .option-selected {
    width: fit-content;
    border: 1px solid var(--border-color);
    background-color: var(--border-color);
    color: var(--maindark-color);
    padding: 0.25rem 3rem 0.25rem 0.75rem;
    text-align: left;
    display: block;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
}
.custom-select-ui .option-selected::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
    color: var(--maindark-color);
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 14px;
}
.custom-select-ui .options-dropdown.show {
    display: block;
    z-index: 15;
}
.custom-select-ui .options-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ced4da;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
}
.custom-select-ui .options-dropdown .one-option {
    padding: 3px 15px;
    margin: 8px 0;
    border: 1px solid var(--border-color);
    background-color: var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}
.custom-select-ui .options-dropdown .one-option:hover {
    opacity: .8;
}
.custom-select-ui .options-dropdown .one-option.blue-color, .custom-select-ui .option-selected.blue-color {
    border-color: var(--bluelight-color);
    background-color: var(--bluelight-color);
    color: var(--blue-color);
}
.custom-select-ui .option-selected.blue-color::after {
    color: var(--blue-color);
}
.custom-select-ui .options-dropdown .one-option.green-color, .custom-select-ui .option-selected.green-color {
    border-color: var(--greenlight-color);
    background-color: var(--greenlight-color);
    color: var(--green-color);
}
.custom-select-ui .option-selected.green-color::after {
    color: var(--green-color);
}
.custom-select-ui .options-dropdown .one-option.red-color, .custom-select-ui .option-selected.red-color {
    border-color: var(--redlight-color);
    background-color: var(--redlight-color);
    color: var(--red-color);
}
.custom-select-ui .option-selected.red-color::after {
    color: var(--red-color);
}
.custom-select-ui .options-dropdown .one-option.yellow-color, .custom-select-ui .option-selected.yellow-color {
    border-color: var(--yellowlight-color);
    background-color: var(--yellowlight-color);
    color: var(--yellow-color);
}
.custom-select-ui .option-selected.yellow-color::after {
    color: var(--yellow-color);
}
.custom-select-ui .options-dropdown .one-option.orange-color, .custom-select-ui .option-selected.orange-color {
    border-color: var(--orangelight-color);
    background-color: var(--orangelight-color);
    color: var(--orange-color);
}
.custom-select-ui .option-selected.orange-color::after {
    color: var(--orange-color);
}
.modal .modal-footer .modal-error {
    color: var(--red-color);
    border: 1px solid var(--red-color);
    border-radius: var(--border-radius);
    background-color: var(--redlight-color);
    padding: 7px 15px;
    font-weight: 600;
}

/* CUSTOM DROPDOWN : MEMBERS */
.profiles-choice {
    display: none;
    position: absolute;
    background: white;
    z-index: 15;
    border: 1px solid var(--text-color);
    padding: 10px;
    border-radius: var(--border-radius);
}
.profiles-choice.show {
    display: block;
}
.profiles-choice .one-profile {
    display: flex;
    margin-bottom: 10px;
    width: 100%;
    align-items: center;
}
.profiles-choice .one-profile .icon-profile {
    margin-right: 10px;
    cursor: auto;
}
.profiles-choice .one-profile .icon-profile:hover {
    opacity: 1;
}
.profiles-choice .one-profile .name-profile {
    width: calc(100% - 155px);
}
.profiles-choice .one-profile .btn {
    padding: 5px 10px;
    margin-left: 15px;
    width: 80px;
}

/* CUSTOM DROPDOWN : ICONS */
.icons-choice {
    display: none;
    position: absolute;
    background: white;
    z-index: 15;
    grid-template-columns: repeat(5, 45px);
    grid-gap: 10px;
    border: 1px solid var(--text-color);
    padding: 10px;
    border-radius: var(--border-radius);
    top: 50px;
    right: 0;
    max-height: 230px;
    overflow-y: auto;
}
.icons-choice.show {
    display: grid;
}
.icons-choice::-webkit-scrollbar-track{
    background-color: var(--mainhover-color);
}
.icons-choice::-webkit-scrollbar {
	width: 10px;
}
.icons-choice::-webkit-scrollbar-thumb {
	border-radius: 20px;
	background-color: var(--container-color);
    opacity: .8;
}
.icons-choice .task-icon {
    margin-left: 0 !important;
}

/* CUSTOM DROPDOWN : SEARCH */
.dropdown-search {
    position: relative;
    display: block;
    margin-bottom: 20px;
}
.dropdown-search button {
    cursor: pointer;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    text-align: left;
    background: unset;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem 0.75rem;
    color: var(--maindark-color);
}
.dropdown-search button::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
    position: absolute;
    right: 15px;
}
.dropdown-search .dropdown-search-content {
    display: none;
    position: absolute;
    margin-top: calc(-3.5rem - 2px);
    background-color: #f6f6f6;
    min-width: 100%;
    border: 1px solid #ced4da;
    z-index: 1;
    border-radius: var(--border-radius);
}
.dropdown-search .dropdown-search-content.show {
    display: block;
    outline: 1px solid var(--text-color);
}
.dropdown-search .dropdown-search-content input[type=text] {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: var(--border-radius);
}
.dropdown-search .dropdown-search-content i {
    position: absolute;
    top: 15px;
    left: 15px;
}
.dropdown-search .dropdown-search-content input[type=text]:focus {
    outline: none;
}
.dropdown-search .dropdown-search-content .elems {
    max-height: 200px;
    overflow-y: auto;
}
.dropdown-search .dropdown-search-content .elems.products {
    max-height: 140px;
}
.dropdown-search .dropdown-search-content .elems::-webkit-scrollbar-track{
    background-color: #f6f6f6;
}
.dropdown-search .dropdown-search-content .elems::-webkit-scrollbar {
	width: 10px;
}
.dropdown-search .dropdown-search-content .elems::-webkit-scrollbar-thumb {
	border-radius: 20px;
	background-color: var(--text-color);
    opacity: .8;
}
.dropdown-search .dropdown-search-content span {
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}
.dropdown-search .dropdown-search-content span.hide-when-added {
    display: none !important;
}
.dropdown-search span:hover {
    background-color: #ddd;
}
.dropdown-search .dropdown-search-content span.new-elem {
    background: var(--main-color);
    border: 1px solid var(--main-color);
    color: white;
    font-weight: bold;
    width: fit-content;
    margin: 5px 15px;
    padding: 3px 8px;
    border-radius: 5px;
}
.dropdown-search .dropdown-search-content span.new-elem:hover {
    background: #f6f6f6;
    color: var(--main-color);
}

/* DROP FILES */
.drop-files {
    text-align: center;
    border: 2px dashed var(--text-color);
    padding: 20px 10px;
    font-size: var(--font-size-menu);
    font-weight: 500;
}
.drop-document {
    margin-bottom: 20px;
    max-width: calc(50% - 20px);
    min-width: 320px;
    cursor: pointer;
}
.drop-files.drophover {
    border-color: var(--main-color);
    background: var(--mainhover-color);
}
.drop-files i {
    font-size: var(--line-height-subtitle);
    margin-bottom: 10px;
}
.drop-files input[type=file] {
    display: none;
}
.drop-files label {
    cursor: pointer;
    color: var(--main-color);
}
.drop-files .legend {
    font-size: var(--font-size-text);
    color: var(--text-color);
    font-weight: 300;
}
.drop-files .file-selected {
    margin-top: 10px;
}
.drop-files .file-selected.error {
    color: var(--red-color);
}
.link_document {
    position: relative;
    margin-bottom: 10px;
    margin-right: 40px;
    display: inline-block;
}
.link_document a {
    border: 1px solid var(--maindark-color);
    color: var(--maindark-color);
    border-radius: var(--border-radius);
    background: white;
    padding: 2px 5px;
}
.link_document a:hover {
    color: white;
    background: var(--maindark-color);
}
.link_document i::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    content: "\e2b4";
    position: absolute;
    right: -20px;
    color: var(--red-color) !important;
    cursor: pointer;
}
.link_document i:hover::after {
    color: var(--maindark-color) !important;
}
#drop-document-photo-popup {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 9999;
    backdrop-filter: blur(4px);
}
#drop-document-photo-popup .content-photo-popup {
    border: 0;
    border-radius: var(--border-radius-block);
    background-color: white;
    padding: 1rem;
    width: 50%;
    min-width: 350px;
    transform: translateX(50%);
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.popup-payments {
    position: absolute;
    background-color: #e9ecef;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    padding: 1rem;
    z-index: 9999999;
    margin-top: -100px;
    margin-left: 15px;
}
.popup-payments .popup-payments-one-line {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
    border-top: 1px solid #ced4da;
}
.popup-payments .popup-payments-one-line .section-subtitle {
    grid-column: 1 / span 2;
    margin-bottom: -5px;
    margin-top: 5px;
    font-size: 14px;
}
.popup-payments .popup-payments-submit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 10px;
    border-top: 1px solid #ced4da;
}
.popup-payments .popup-payments-one-line-new-payment {
    text-decoration: underline;
    text-decoration-color: var(--main-color);
    color: var(--main-color);
    margin-top: -10px;
    margin-bottom: 20px;
    cursor: pointer;
}