/*
* JSTREE
*
*/

.jstree-no-icon {
    padding-left:5px !important;
}

/*
-----------------------------------
	DIRECTORY LIST
-----------------------------------
*/

@media (min-width: 768px) {
    
    .directories .row-border-divided > [class*="col-sm"]:first-child {
        border-right:1px dashed #d7dfe4;
        margin-right:-1px;
    }
}

.directories .directories-folders-heading {
    padding-bottom:15px;
    border-bottom:1px dashed #d7dfe4;
}

.directories-folders-tree.jstree-proton .jstree-anchor {
    margin-right: 23px;
}

.directories .directories-folder-actions {
    float:right;
    margin-left:15px;
    margin-top:-2px;
	display: block;
}

.directories .directories-folder-title {
    margin-top:0;
    padding-bottom:10px;
    border-bottom:1px dashed #d7dfe4;
    font-size:145%;
}

.directories .directories-folder-description {
    margin-bottom:14px;
    padding-bottom:10px;
    border-bottom:1px dashed #d7dfe4;
}

.directories .directories-folder-description:empty {
    display:none;
}

.directories .directories-folder-documents.actions-enabled .checkbox.document-selector,
.directories .directories-folder-documents.actions-enabled .checkbox.download-selector
{
	display: none;
}

.directories .directories-folder-documents.actions-enabled.action-move .checkbox.document-selector,
.directories .directories-folder-documents.actions-enabled.action-download .checkbox.download-selector
{
	display: inherit;
}


/*
-----------------------------------
	TABLE VERSION DOCUMENTS
-----------------------------------
*/

.td-nesting-table .table-version-document {
	box-shadow:0 2px rgba(0,0,0,0.04) inset;
	border-top:1px rgba(0,0,0,0.1) solid;
	border-bottom:1px rgba(0,0,0,0.1) solid;
}

.td-nesting-table .table-version-document tr th {
	background-color: rgba(0,0,0,.010) !important;
	border-bottom-width:1px !important;
}

.td-nesting-table .table-version-document tr th {
	background-color: rgba(0,0,0,.010) !important;
	border-bottom-width:1px !important;
}

.td-nesting-table .table-version-document tr th:first-child,
.td-nesting-table .table-version-document tr td:first-child {
	padding-left:20px !important;
}





/*
-----------------------------------
	TOOLTIP
-----------------------------------
*/

.picker-table .btn.file-preview + .tooltip .tooltip-inner {
	background-color:#667C8A;
	padding:9px 10px;
	margin-left:-9px;
	border-radius:0;
	box-shadow:2px 0 rgba(0,0,0,0.1);
}

.picker-table .btn.file-preview + .tooltip .tooltip-arrow {
	margin-left:-9px;
	border-right-color: #667C8A;
}

/*
-----------------------------------
	TABLE
-----------------------------------
*/

.table td.actions {
	white-space:nowrap;
	width:1%;
	text-align:center;
}

.table td.actions .btn-link {
	border-radius:4px;
	background-color:rgba(0,0,0,0.03);
}

.table td.actions .btn-link:hover {
	background-color:rgba(0,0,0,0.06);
}


.table td .created-by {
	display:block;
	white-space:nowrap;
	font-size:90%;
	line-height: 15px;
}

.table td .created-on {
	font-size:90%;
	color:#aaa;
	white-space:nowrap;
	line-height: 11px;
}

/*
-----------------------------------
	FILE ACTIONS AND SELECTION LINE
-----------------------------------
*/

.nb-document-selected {
	display: inline-block;
	width: 7em;
	font-weight: bold;
}

.nb-document-selected .warning {
	color: red;
}

.move-all-selected-tree,
.mass-actions,
.mass-download {
	display:inline-block;
}


.actions-enabled.action-download .mass-actions,
.actions-enabled.action-move .mass-download {
	display: none;
}

.move-all-selected-tree .jstree-anchor {
	padding: 1px 4px !important;
	font-size: 12px !important;
}

.move-all-selected-tree .jstree-anchor > .jstree-themeicon {
	margin:0 0 0 -2px;
}

.mass-actions .delete-all-selected {
	font-size: 12px !important;
}

.on-stream-disclaimer {
	margin-left:25px;
}

.library-top-container {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
}

.directories-folders-actions {
    display: flex;
    justify-content: space-between;
    gap:2px;

    .btn-title {
        font-size: 12px !important;
    }
}

#library-folder-actions {
	display: flex;
	gap: 0.5rem;
	margin-left: auto;
	.btn {
		align-items: center; 
		display: inline-flex;
		font-size: 12px !important;
		padding: 5px 10px;
		white-space: nowrap; 
		height: 28px;
	}
	  
	
	.btn-group button:focus {
		box-shadow: none;
		border: 1px solid rgba(0,123,255,.25);
		box-sizing: border-box;
	}

	.btn-group .dropdown-toggle:focus {
		background-color: #d4d4d4;
	}
}

.directories-folder-details {
	width: 100%;
}

.directories-folder #library-folder-actions {
	display: flex;
}

.table-library thead > tr > th.dt-orderable-asc:hover, .table-library thead > tr > th.dt-orderable-desc:hover {
	outline: 2px solid transparent !important;
}

.table-library thead > tr > th .dt-column-order {
	position: relative !important; 
	margin-left: 1rem;
}

.table-library thead tr th, 
#libraryDocumentsList thead tr th {
	min-width: fit-content !important;
	white-space: nowrap;
	overflow: hidden;
}

.table-library .td-actions .btn-sm {
	padding: 1px 5px;
  	font-size: 12px !important;
  	line-height: 1.5;
}

#libraryDocumentsList thead tr th {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#libraryDocumentsList td {
	padding: 8px;
	font-size: 13px;
}

.directories-folder-help-message .fa-info-circle {
	margin-right: 1rem;
}

.update-document-tab {

	margin-top: 2.5rem;

	nav {
		padding-bottom: 0.5rem;
	}

	.version-tab {
		padding: 1rem;
	}
	
	.version-tab:hover {
		text-decoration: none;
	}

	.btn-success {
		margin-bottom: 1rem;
	}

}

#control-group-documents .dropdown-menu > li > a:hover {
	text-decoration: none;
	background-color: #f5f5f5;
}

#documentform .directories-folders-actions {
	justify-content: flex-start;
}

@media (max-width: 767px) {
	.library-top-container {
		flex-wrap: wrap-reverse;
	}
}

@media (max-width: 460px) {
	.directories-folder #library-folder-actions {
		flex-direction: column;
	}
}