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

@charset "utf-8";
/* CSS Document */

/**************************
 * BREADCRUMB
 **************************/
.breadcrumb > li.last_crumb:before {
    padding-right: 0;
}

.breadcrumble-wrapper {
    @media only screen and (min-width: 1011px) {
        overflow: visible;
    }
}

.breadcrumble {
    li {
        a {
            .pointer {
                background: url(/images/icons/iconset.png) -7px -324px no-repeat;
                width: 10px;
                height: 10px;
                display: inline-block;
                position: relative;
                top: 6px;
                text-indent: -999em;
            }
        }

        &:hover {
            a {
                .pointer {
                    background-position: -26px -324px;
                }
            }
        }
    }
}

.breadcrumble-node {
    position: relative;
}

.breadcrumb ul a {
    display: block;
    padding: 6px 12px;
}

.breadcrumb ul a:hover {
    background-color: $gray-100;
}

.breadcrumble ul {
    left: -999em;
    top: 22px;
    position: absolute;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 14em;
    z-index: 320;
    max-height: 120px;
    overflow: auto;
    border-radius: 3px;
}

.breadcrumb li:hover ul {
    left: 15px;
}

.breadcrumble ul li {
    border-left: 1px solid $gray-200;
    border-right: 1px solid $gray-200;
    border-top: 1px solid $gray-200;

    &:last-child {
        border-bottom: 1px solid $gray-200;
    }
}

.breadcrumble ul a.current {
    font-weight: bold;
    background-color: $gray-100;
}

.breadcrumble +

.documentPreview .breadcrumble li a .pointer {
    margin: 0px 0 2px;
}

.documentPreview .breadcrumble li:hover a .pointer {
    background-position: -2px -320px;
}

//docs folders tree popup breadcrumb
.breadcrumb-folders-tree-wrapper .breadcrumb.breadcrumb-folders-tree {
    flex-wrap: wrap;

    .breadcrumb-item:first-child {
        flex: 0 auto !important;
    }
}

.tab-container {
    clear: left;
}

.checked-out-items .document-btn {
    margin-top: 8px;
}

.checked-out-items .dropdown-toggle {
    white-space: normal;
    word-wrap: anywhere;
}

/* Desktops and laptops */
@media only screen and (min-width: 1024px) {
    .document-panel-preview {
        float: left;
        width: 70%;
    }
    .document-panel-details {
        float: right;
        width: 30%;
    }
    .checked-out-items li, .clipboard li,
    .documentDetails a, .dd_selected_files p,
    .document-panel-details p {
        word-wrap: break-word;
    }
    .tab-container {
        margin-left: 10px;
    }
}

/**************************
 * DOCUMENT SORTING
 **************************/
.documentSort label {
    float: right;
    display: block;
    white-space: nowrap;
    padding: 0;
    margin: 4px 0;
    width: 140px;
}


/**************************
 * PARENT FOLDER
 **************************/
.parentFolder {
    font-size: 11px;
    min-height: 29px;
    background-color: $gray-100;
    position: relative;
}

.parentFolder a:hover,
.parentFolder a:hover ~ label {
    background-color: $gray-200;
}


/**************************
 * DOCUMENT LIST
 **************************/
.alert-trashcan {
    margin: 10px 0;
}

.docAlert {
    margin: 0;
    -webkit-box-shadow: 0 1px 3px $gray-300;
    -moz-box-shadow: 0 1px 3px $gray-300;
    box-shadow: 0 1px 3px $gray-300;
}

.qq-uploader-extra-dropzones {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1050;
    max-height: 260px;
    line-height: 260px;
    text-align: center;
    width: 540px;
    color: $gray-700;
    margin: -240px 0 0 -270px;
    border: 1px solid $gray-500;
    border: 1px solid rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    -moz-opacity: 0.9;
    filter: alpha(opacity=9);
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
}

.qq-upload-drop-area-active {
    color: #fff;
}

.dd_selected_files li {
    word-wrap: break-word;
}


.documentList {
    margin: 0 0 12px;
}

.documentItem {
    position: relative;
    float: left;
    width: 100%;
    padding: 10px 2px;
}

.documentItem {
    border-top: 1px solid $gray-300;
}

.documentItem:hover {
    background-color: $gray-100;
}

.documentItem .document-btn {
    visibility: hidden;
}

.documentItem.open .document-btn,
.documentItem:hover .document-btn {
    visibility: visible;
    z-index: 110;
}

.documentItem.open .document-btn {
    opacity: 0.9;
    -moz-opacity: 0.9;
    filter: alpha(opacity=9);
}

.documentItem.open {
    background-color: $gray-100;
    z-index: 150;
}

.documentTrash {
    color: $gray-400;
}

.documentMenu .dropdown-menu {
    z-index: 120;
    border-color: $gray-400;
    display: none;
}

.documentMenu .document-btn {
    z-index: 110;
}

.icons-view .documentMenu {
    display: none;
}

.documentSelected, {
    border-color: $blue-600;
}

.documentSelected:hover {
    border-color: $blue-700;
}

.documentItem small {
    display: block;
    clear: both;
    font-size: 11px;
    color: #999;
}

/* dragging document */
.documentItem.ui-draggable-dragging {
    max-width: 200px;
    float: left;
}

.documentItem.ui-draggable-dragging .documentComments,
.documentItem.ui-draggable-dragging .documentData,
.documentItem.ui-draggable-dragging .documentOptions,
.documentItem.ui-draggable-dragging p,
.documentItem.ui-draggable-dragging .checker,
.documentItem.ui-draggable-dragging .documentBookmark {
    display: none;
}

.documentItem .documentDetails {
    margin: 0 0 0 5px;
}

.documentItem .documentLink img {
    width: 16px;
}

.documentItem .documentBookmark {
    position: relative;
}

.documentItem ul.documentData {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 10px;
    color: $gray-800;
    list-style: none;
}

.documentItem .documentData li {
    float: left;
    margin: 0 20px 0 5px;
}

.documentItem .documentData span {
    font-weight: bold;
    margin-right: 5px;
}

.documentItem .documentDetails .documentContainer {
    max-width: calc(100% - 56px);
}

/* VIEW: hide elements in minimal list and icon view */
.documentList .min-list-view small,
.documentList .min-list-view .documentData,
.documentList .min-list-view .documentComments,
.documentList .icons-view small,
.documentList .icons-view .documentData,
.documentList .icons-view .documentBookmark,
.documentList .icons-view .documentComments {
    display: none;
}

/* VIEW: icon */
.documentList .icons-view img {
    width: 48px;
    display: block;
}

.documentList .icons-view .documentItem {
    border-color: transparent;
    background-color: transparent;
}

.documentList .icons-view .documentItem {
    float: left;
    text-align: center;
    width: 120px;
    height: 135px;
    overflow: hidden;
    margin: 10px 10px 0 0;
    padding: 0;
    word-wrap: break-word;
}

.documentList .icons-view .documentLink {
    display: -webkit-box;
    margin: 0 auto 10px;
    line-height: 19px;
    text-decoration: none;
    flex-direction: column;
    align-items: center;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.documentList .icons-view img {
    margin: 0 auto 5px;
}

.documentList .icons-view ion-icon {
    display: block;
    font-size: 48px;
    line-height: 1.42857;
    margin-bottom: 7px;
    text-decoration: none;
}

/**************************
* CLIPBOARD
**************************/
.no-user-select {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

/*
  container used to drag multiple items from clipboard
*/
.draggingContainer {
    min-width: 160px;
}

.draggingContainer li {
    background: none;
}

.draggingContainer .checker {
    display: none;
}


/**************************
* ADD DOCUMENT FULL
 **************************/
.record_types .well {
    padding: 6px 9px 9px;
}

/**************************
* VIEW DOCUMENT
 **************************/
/**************************
* PARENT FOLDER
 **************************/
.documentPreview .parentFolder {
    border: 0;
    margin-top: 8px;
    background: transparent;
}

.documentPreview .parentFolder a {
    display: inline;
}

/**************************
* PREVIEW PANEL
 **************************/
.previewPanel {
    float: left;
    width: 100%;
    margin: 0 0 18px;
}

/**************************
* DOCUMENT DETAILS
 **************************/
.well-custom-dms-toolbar {
    padding: 0 10px;
    margin: 10px 0;
}

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

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

.viewed-by a {
    display: block;
    margin: 0;
}

.viewed-by .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;
}

.all-comments .media {
    margin-top: 0;
}

.all-comments .well {
    margin-bottom: 5px;
}

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

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

.documentBookmarked {
    color: $yellow-400;
}


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

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

/* Workflow ->  Transition list table */
.transition {
    border-left: 0 !important;
    border-right: 0 !important;
}

select.DocsMetaSearchSelect {
    margin-left: 3px;
    width: 9em;
}


/* ERMS Tree View */
.erms_tree td {
    vertical-align: top;
    position: relative;
}

.tree-node {
    height: 16px;
    display: inline-block;
    width: 16px;
}

.tree-node:before {
    position: absolute;
    content: " ";
    top: 0;
    width: 16px;
    bottom: 0;
    background: url('/images/treeview/treeview-default-line.gif') no-repeat 0 -176px;
}

.tree-spacer:before {
    background: none;
}

.tree-t-shaped:before {
    background-position: 0 1px;
}

.tree-vertline:before {
    background-position: 0 -204px;
}

.tree-corner:before {
    background-position: 0 -1764px;
}

.tree-child:after {
    position: absolute;
    content: " ";
    top: 28px;
    width: 16px;
    bottom: 0;
    background: url('/images/treeview/treeview-default-line.gif') no-repeat 0 -206px;
}

.tree-toggle {
    margin-left: 2px;
}

.tree-node + .tree-child + .tree-toggle {
    margin-left: -1px;
}

#DocsRemindOptions {
    vertical-align: bottom;
}

.loading_bg {
    background: url(/images/default/icons/loading.gif) no-repeat 0px 7px;
    margin-left: -1px;
    padding: 5px 5px 5px 12px;
}

.loading {
    background: url("/images/default/icons/loading.gif") no-repeat 7px 7px $gray-100;
    clear: left;
    padding: 5px 5px 5px 30px;
    border-radius: 3px;
}

.table_options h4 {
    float: left;
}

.NoBorderHead {
    border-width: 0 1px 0 0 !important;
}

.DocsScrolledBox {
    min-width: 125px;
    max-height: 100px;
    white-space: nowrap;
    overflow: auto;
    height: expression(this.scrollHeight>100?"100px":"auto")
}

td.actions ul {
    color: $gray-700;
    list-style: none;
    padding: 0 0 10px 0;
    margin: 0 auto 5px auto;
    display: block;
}

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

.vertical-metadata {
    .form-group {
        display: block;
    }

    [class*="col-md"] {
        float: none;
        width: auto;
    }
}


/************* Advanced Documents Search ***************/

#advancedSearch {
    .select2-selection__rendered {
        @media only screen and (min-width: 992px) {
            max-width: 230px;
        }
    }

    .clear-tag {
        margin-bottom: 20px;
    }
}

/************* Documents Preview ***************/
.preview_frame {
    position: relative;
    margin: 0 0 10px;
    width: 100%;
    aspect-ratio: 0.752;
    max-height: 1070px;
}

// Hides full screen mode header until full screen mode is activated
.full-screen-wrapper .full-screen-header {
    display: none;
    height: var(--header-height);
}

// Full screen mode activated
.full-screen-wrapper.full-screen-mode {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 999999;

    // Shows full screen mode header when full screen mode is activated
    .full-screen-header {
        display: flex;
    }
}
.documents-pdf-iframe {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.document-preview {
    &__iframe {
        border: 0;
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        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%;
}

// Delete label max width
.delete-label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-tab {
    border: 1px solid rgba(0,0,0,.1);
    padding: 5px 15px 15px;
}

.preview_image_full_screen {
    display: flex;
    justify-content: center;
    align-items: center;
}
