@import "assets/css/abstracts/custom-variables.scss";
@import '~bootstrap/scss/_functions';
@import '~bootstrap/scss/_variables';
@import '~bootstrap/scss/mixins/_breakpoints';

/**************************
* VIEW DOCUMENT
 **************************/

/**************************
 * DOCUMENT TITLE and SECONDARY NAVBAR
 **************************/

.doc-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0px;
}

.doc-title-badge {
    height: min-content;
}

/**************************
* DOCUMENT PREVIEW
 **************************/
.preview-frame-wrapper {
    overflow-y: auto;

    .full-screen-header {
        display: none;
        height: var(--header-height);

    }

    // Full screen mode activated
    &:fullscreen {
        // Shows full screen mode header when full screen mode is activated
        .full-screen-header {
            position: sticky;
            z-index: 1;
            display: flex;
        }
    }
}

.preview_frame {
    aspect-ratio: .752;
    position: relative;
}

.documents-pdf-iframe {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.document-preview {
    &__iframe {
        position: absolute;
        top: 0;
        left: 0;
        padding: 0 15px;
        border: 0;
        height: 100%;
        width: 100%;
    }

    &__html, &__body {
        background: transparent;
        overflow-y: auto;
    }
}

.document-preview-image-body {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 200px;
    width: 100%;
    height: 100%;
    text-align: center;
}

.document-preview-image {
    max-width: 100%;
    width: auto;
    max-height: 100%;
}

/**************************
* DOCUMENT DETAILS
 **************************/
.document-panel-details {
    flex: 0 0 0%;
    max-width: 0%;
    overflow: hidden;

    &:not(.is-visible) {
        padding: 0;
    }

    &.is-ready {
        transition: flex-basis 0.3s ease, max-width 0.3s ease;
    }

    &.is-visible {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;

        @include media-breakpoint-down(sm) {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }
}

.document-panel-details__inner {
    opacity: 0;
    pointer-events: none;
}

.document-panel-details.is-ready .document-panel-details__inner {
    transition: opacity 0.15s ease;
}

.document-panel-details.is-visible .document-panel-details__inner {
    opacity: 1;
    pointer-events: auto;
}

.avatar {
    float: left;
    margin: 0 5px 0 0;
}

.viewed-by {
    li {
        margin: 0 10px 0 0;
        float: left;
        width: 34px;
        height: 34px;
    }

    a {
        display: block;
        margin: 0;
    }

    .avatar {
        float: none;
        margin: 0;
        width: 30px;
    }
}

.media dl {
    font-size: 11px;
    margin: 0;
}

.media dt {
    float: left;
}

.media dd {
    float: left;
    margin-right: 20px;
}

/**************************
* USER COMMENTS
 **************************/
.all-comments {
    max-height: 448px;
    overflow: auto;

    .media {
        margin-top: 0;
    }
}

.user-comment {
    margin-left: 40px;

    .profile {
        border-bottom: 1px solid $gray-100;
        padding-bottom: 5px;
        margin-bottom: 3px;
        font-size: 11px;
    }
}

.documentBookmarked {
    color: $yellow-500;
}


table.DocsClipboard {
    border: 2px solid $gray-800;
}

sup.accent {
    color: $red-700;
    font-weight: bold;
}
