@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;
    }
}

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

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

/**************************
 * 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;
}

/* 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;
}

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

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

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

