@import "./vars.css";

#account-contacts .show {
    display: flex;
    margin-bottom: 30px;
}
#account-contacts .show a {
    margin-left: 10px;
    text-decoration: underline;
    color: var(--grey-color);
}
#account-contacts .show a:hover {
    text-decoration: none;
}
#account-contacts .search {
    position: relative;
    margin-bottom: 30px;
}
#account-contacts .search i {
    position: absolute;
    font-size: 14px;
    color: #555;
    left: 15px;
    top: 0;
    bottom: 0;
    height: 14px;
    margin: auto;
}
#account-contacts .search .text-input {
    padding-left: 40px;
    width: 466px;
    margin-right: 20px;
}
#account-contacts .modal-container {
    width: 476px;
}
#account-contacts .modal-button {
    margin-bottom: 30px;
}
#account-contacts .modal-body #name-type .field:first-child {
    width: 70%;
    margin-right: 10px;
}
#account-contacts .modal-body #phone-email .field {
    width: calc(50% - 5px);
}
#account-contacts .modal-body #phone-email .field:first-child {
    margin-right: 10px;
}
#account-contacts .modal-body .button-red {
    width: 207px;
}
#account-contacts .actions {
    display: inline-flex;
    align-items: center;
}
#account-contacts .edit {
    font-size: 10px;
    width: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 1px solid #E9E9E9;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    transition: all .3s;
    cursor: pointer;
}
#account-contacts .edit:hover {
    color: #fff;
    background: var(--main-color);
}
#account-contacts .delete {
    margin-left: 20px;
    font-size: 20px;
    transition: all .3s;
    color: #9D9D9D;
    cursor: pointer;
    height: 20px;
    display: inline-flex;
}
#account-contacts .delete:hover {
    color: var(--main-color);
}
#account-contacts .table {
    margin: 10px 0;
}

#account-contact .misc {
    margin-top: 30px;
    display: flex;
}
#account-contact .misc > .left {
    flex: 0 0 466px;
    margin-right: 20px;
}
#account-contact .misc .right {
    flex: 1 1 auto;
}
#account-contact .user-link .button-red {
    margin-top: 20px;
} 
#account-contact .user-link .form, #account-contact .contact-link .form {
    border: 1px solid #E9E9E9;
    border-radius: var(--border-radius);
    margin-top: 20px;
    padding: 20px;
}
#account-contact .user-link .form {
    display: none;
}
#account-contact .user-link .form.active {
    display: block;
}
#account-contact .user-link .user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#account-contact .user-link .user a {
    font-size: 14px;
    text-decoration: underline;
}
#account-contact .user-link .user button {
    border: 0;
    background: 0;
    padding: 0;
    font-size: 20px;
    color: #9D9D9D;
    cursor: pointer;
    height: 20px;
}
#account-contact .content-block .body {
    font-size: 14px;
}
#account-contact .content-block .field .text-input {
    width: 100%;
}
#account-contact .content-block:first-child {
    margin-bottom: 20px;
}
#account-contact .contact-link .footer {
    display: none;
}
#account-contact .contact-link .footer.active {
    display: block;
}
#account-contact .contact-link .form {
    margin-top: 0;
}
#account-contact .contact-link .form #new_link {
    margin-top: 20px;
    margin-bottom: 10px;
    width: 100%;
}
#account-contact .contact-link .create {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 10px;
    color: var(--light-grey-color);
}
#account-contact .contact-link .body .link-contact,
#account-contact .contact-link .create a,
#account-contact .notes-block .add  {
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-weight: 500;
    font-size: 13px;
}
#account-contact .contact-link .body .link-contact i,
#account-contact .contact-link .create a i,
#account-contact .notes-block .add i {
    font-size: 20px;
    margin-right: 8px;
    color: var(--main-color);
}
#account-contact .contact-link .body {
    padding: 0;
}
#account-contact .contact-link .empty {
    padding: 20px 20px 0;
}
#account-contact .contact-link .link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #E9E9E9;
}
#account-contact .contact-link .link .actions,
#account-contact .notes-block .contact-note .actions {
    display: flex;
    align-items: center;
}
#account-contact .contact-link .link .actions .edit,
#account-contact .notes-block .contact-note .actions .edit {
    font-size: 10px;
    color: #555;
    width: 24px;
    height: 24px;
    border: 1px solid #E9E9E9;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}
#account-contact .contact-link .link .actions .delete,
#account-contact .notes-block .contact-note .actions .delete {
    font-size: 20px;
    height: 20px;
    color: #9D9D9D;
    margin-left: 10px;
}
#account-contact .contact-link .link .name {
    font-size: 14px;
    margin-bottom: 10px;
}
#account-contact .contact-link .link .phone {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}
#account-contact .contact-link .link .description {
    color: var(--grey-color);
}
#account-contact .contact-link .link .spoiler {
    display: none;
}
#account-contact .contact-link .link .spoiler.active {
    display: block;
}
#account-contact .contact-link .body .link-contact {
    margin: 20px;
}
#account-contact .note-form {
    box-shadow: 0px 4px 30px rgba(97, 97, 97, 0.1);
    border-radius: var(--border-radius);
    display: none;
}
#account-contact .note-form.active {
    display: block;
}
#account-contact .note-form .heading {
    font-weight: 500;
    font-size: 18px;
    height: 52px;
    border-bottom: 1px solid #E9E9E9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
#account-contact .note-form .heading a {
    font-size: 12px;
}
#account-contact .note-form .body {
    padding: 20px;
}
#account-contact .note-form .buttons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    display: none;
}
#account-contact .note-form #add-buttons {
    display: block;
}
#account-contact .notes-block .contact-note {
    display: flex;
    background: #FAFAFA;
    border: 1px solid #E9E9E9;
    border-radius: var(--border-radius);
    padding: 20px;
    justify-content: space-between;
}
#account-contact .notes-block .contact-note + .contact-note {
    margin-top: 10px;
}
#account-contact .notes-block .contact-note .date {
    color: var(--light-grey-color);
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 10px;
}
#account-contact .notes-block .contact-note .message {
    color: var(--grey-color);
    padding-right: 10px;
}

#account-contacts-link-edit .link {
    margin-bottom: 26px;
    font-size: 14px;
    color: var(--grey-color);
}
#account-contacts-link-edit .link a {
    text-decoration: underline;
    color: var(--dark-grey-color);
}
#account-contacts-link-edit .button-red {
    margin-top: 20px;
}
#account-contacts-action strong {
    margin-bottom: 16px;
    display: block;
}
#account-contacts-action .button-wide {
    margin-top: 20px;
}
#account-contacts-action .button-white {
    margin-left: 20px;
}

.account-contacts-files .owner {
    color: var(--grey-color);
    text-decoration: underline;
}
.account-contacts-files .access {
    font-size: 12px;
    margin-top: 6px;
}
.account-contacts-files .files-accesses-box {
    position: relative;
    color: var(--dark-grey-color);
}
.account-contacts-files .files-accesses-box form {
    position: absolute;
    box-shadow: 0px 4px 30px rgba(97, 97, 97, 0.1);
    border-radius: var(--border-radius);
    background: #FFFFFF;
    padding: 14px 20px 20px;
}
.account-contacts-files .files-accesses-box .heading {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}
.account-contacts-files .files-accesses-box .heading .contact-note {
    margin-left: 10px;
}
.account-contacts-files .files-accesses-box .buttons {
    margin-top: 20px;
}
.account-contacts-files .files-accesses-box .field {
    margin-top: 16px;
    width: 145px;
}
.account-contacts-files .files-accesses-box .select-input {
    width: 100%;
}
.account-contacts-files .files-accesses-box .field i {
    bottom: 11px;
    font-size: 14px;
    color: #9D9D9D;
}

@media(max-width: 768px) {
    #account-contacts .search {
        display: flex;
        align-items: center;
    }
    #account-contacts .search .text-input {
        width: auto;
    }
    #account-contact .misc {
        flex-direction: column;
    }
    #account-contact .misc > .left {
        width: 100%;
        flex: 0 0 100%;
        margin-right: 0;
    }
    #account-contact .misc .right {
        margin-top: 20px;
    }
}