#sidebar [contenteditable]:empty {
    caret-color: transparent;
}

#sidebar [contenteditable]:empty:after {
    border-left: 1px solid transparent;
}

#sidebar [contenteditable]:empty:focus:after {
    animation: blink-cursor 0.75s step-start infinite;
}

@keyframes blink-cursor {
    50% {
        border-left-color: black;
    }
}

.sidebar-user {
    display: flex;
    padding: 18px;
    align-items: center;
}

.sidebar-user-image {
    width: 40px;
    height: 40px;
    margin-right: 18px;
    border-radius: 100%;
    object-fit: cover;
}

.sidebar-user-more {
    flex: 1;
    width: 22px;
    max-width: 22px;
    height: 22px;
    margin-left: 8px;
    content: '\e857';
    border-radius: 7.5px;
    position: relative;
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user:not(.badge) > .sidebar-user-more::before {
    font-family: 'fermat-icons';
    font-size: 18px;
    content: '\e857';
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.sidebar-user.badge > .sidebar-user-more::before {
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #E14942;
    position: absolute;
    content: "";
}

.sidebar-user.badge .sidebar-user-dropdown-notifications:before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #E14942;
    position: absolute;
    margin-left: -6px;
    margin-top: -11px;
}

.sidebar-user-more:hover {
    background-color: #e0dfdf;
    cursor: pointer;
}


.sidebar-user-data {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-data > .username {
    font-size: 14px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    align-items: center;
    white-space: nowrap;
}

.sidebar-user-data > .email {
    font-size: 12px;
    color: #A2A2A2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.sidebar-documents {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.sidebar-documents-list {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

.sidebar-searchbox {
    min-height: 32px;
    display: block;
    margin: 10px;
    border: 1px solid #DEDEDE;
    background: #FAF9F5;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    outline: none;
    cursor: text;
}

.sidebar-searchbox:before {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 12px;
    opacity: 0.6;
    background-image: url('/static/images/search.svg'), url('/static/app/images/search.svg');
    background-size: contain;
}

.sidebar-searchbox:empty:after {
    content: attr(data-placeholder);
    color: rgba(0, 0, 0, 0.4);
}

.sidebar-group > summary,
.sidebar-document {
    height: 32px;
    display: flex;
    align-items: center;
    user-select: none;
}

.sidebar-group > summary {
    padding-left: 22.5px;
    padding-right: 10px;
}

.sidebar-group > summary:before {
    font-size: 18px;
    font-family: fermat-icons;
    content: '\e82f';
}

.sidebar-document {
    margin-left: 10px;
    padding-left: 20px;
    padding-right: 10px;
    cursor: pointer;
}

.sidebar-document.filtered {
    display: none;
}

.sidebar-group.filtered {
    display: none;
}

.sidebar-document:hover {
    color: #636363;
}

.sidebar-group.active:not([open]) > summary,
.sidebar-document:active,
.sidebar-document.active {
    background-color: #EBEBEB;
}

.sidebar-document:before {
    width: 24px;
    height: 24px;
    font-family: 'fermat-icons';
    content: '\e808';
    font-size: 14px;
    margin-left: -4px;
    padding-right: 4px;
}

.sidebar-document.proto {
}

.sidebar-document.proto:before {
    background: url('/static/images/spinner.svg') no-repeat center, url('/static/app/images/spinner.svg') no-repeat center;
    background-size: contain;
    animation: infinite 1s linear spin;
}

.sidebar-document > .name,
.sidebar-group > summary > .name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    outline: none;
}

.btn-plus,
.btn-options {
    width: 22px;
    height: 22px;
    margin-left: 5px;
    border-radius: 7.5px;
    background-repeat: no-repeat;
    background-position: center;
}

.sidebar-document > .btn-options {
    margin-left: 10px;
}

.sidebar-group > summary:hover > .btn-plus {
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;

}

.sidebar-group > summary:hover > .btn-plus::before {
    font-family: 'fermat-icons';
    font-size: 18px;
    content: '\e813';
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.sidebar-group > summary > .btn-plus:hover {
    opacity: 0.8;
}

.sidebar-document.active-menu > .btn-options,
.sidebar-document:hover > .btn-options,
.sidebar-group.active-menu > summary > .btn-options,
.sidebar-group > summary:hover > .btn-options {
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.sidebar-document.active-menu > .btn-options::before,
.sidebar-document:hover > .btn-options::before,
.sidebar-group.active-menu > summary > .btn-options::before,
.sidebar-group > summary:hover > .btn-options::before {
    font-family: 'fermat-icons';
    font-size: 18px;
    content: '\e857';
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.sidebar-group > summary:hover > .btn-options {
    background-color: transparent;
}

.sidebar-group > summary > .btn-options:hover, .sidebar-group > summary > .btn-plus:hover {
    background-color: #e0dfdf;
}

.sidebar-document:hover > .btn-options:hover,
.sidebar-group > summary:hover > .btn-options:hover {
    background-color: #e0dfdf;
    opacity: 0.8;
}

.sidebar-new-group {
    display: flex;
    align-items: center;
    min-height: 32px;
    outline: none;
}

.sidebar-new-group:before {
    font-family: fermat-icons;
    font-size: 18px;
    content: '\e813';
    display: inline-block;
    margin-left: 19.5px;
    margin-right: 8px;
    opacity: 0.3;
}

.sidebar-new-group:focus:before {
    font-family: fermat-icons;
    font-size: 18px;
    content: '\e82f';
}

.sidebar-new-group:empty:after {
    content: attr(data-placeholder);
    color: rgba(0, 0, 0, 0.3);
}

.sidebar-new-document {
    order: 1;
    display: flex;
    align-items: center;
    height: 32px;
    outline: none;
    overflow: hidden;
    margin-left: 30px;
}

.sidebar-new-document:before {
    width: 22px;
    height: 14px;
    opacity: 0.3;
    font-family: 'fermat-icons';
    content: '\00E849';
    font-size: 20px;
    margin-left: -4px;
    padding-right: 4px;
}

.sidebar-new-document:empty:after {
    content: attr(data-placeholder);
    color: rgba(0, 0, 0, 0.3);
}

.sidebar-footer {
    /*margin-bottom: 8px;*/
    padding: 2px 0px;
}

#new-space-button {
    width: 100%;
    height: 40px;
    border-radius: 4px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#new-space-button:hover {
    background-color: #2a2a2a;
}

#new-space-button:active {
    background-color: #636363;
}

#new-space-button.new-space-button-disabled {
    background-color: #DEDEDE;
}

#new-space-button .new-space-text {
    color: white;
    font-size: 16px;
}

#new-space-button.new-space-button-disabled .new-space-text {
    color: #A2A2A2;
}

.sidebar-footer-element {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 6px 0;
    padding-left: 20px;
    transition: 150ms background-color;
    position: relative;
}

.sidebar-footer-element:hover,
.sidebar-footer-element.active,
.sidebar-footer-element:active {
    background-color: #EBEBEB;
}

.sidebar-footer-element > img {
    width: 22px;
    height: 18px;
    object-fit: contain;
    margin-right: 9px;
}

.sidebar-entry-dropdown-wrapper {
    position: fixed;
}

.sidebar-entry-dropdown-div {
    position: absolute;
    background-color: white;
    box-shadow: 0px 11px 20px rgba(0, 0, 0, 0.10);
    border-radius: 3px;
    width: 205px;
    margin-left: 8px;
    padding-top: 0.7em;
    padding-bottom: 0.7em;
    z-index: 100;
    cursor: pointer;
    border: 1px solid #DEDEDE;
}
