/*
 * =============================
 * @author: 	Peter Slagter
 * @module: 	mod_library2
 * @about: 		Main CSS-file for the library 2
 * =============================
 */

/* Defaults */
/* Vertical flow */

form#l2-sel-filter,
div#l2-doc-image {
	margin: 0 0 1em 0;
	position: relative;
	background-color: #515A5F;
}

div#l2-doc-image img {
	position: relative;
	margin: 0 auto;
}

div.probase_tree {
	padding-bottom: 1.5em;
}

/*
 * =============================
 * Document selection (search, tree or labels)
 * =============================
 */

/*
	Search field
	--------------------------------------------------
*/
form#l2-sel-filter {
	background-color: transparent;
}

form#l2-sel-filter div.field {
	margin: 0;
}

form#l2-sel-filter div.fieldinput {
	position: relative;
	margin: 0;
	padding: 0;
}

form#l2-sel-filter input {
	display: block;
	width: 93%;
	height: 15px;
	padding: 4px;
	text-indent: 3px;
	border: 1px solid #ccc;
	-moz-border-radius: 12px; /* FF1+ */
	-webkit-border-radius: 12px; /* Saf3-4 */
	border-radius: 12px; /* Opera 10.5, IE 9, Saf5, Chrome */
	-moz-box-shadow: inset 0px 1px 3px #000; /* FF3.5+ */
	-webkit-box-shadow: inset 0px 1px 3px #000; /* Saf3.0+, Chrome */
	box-shadow: inset 0px 1px 3px #000; /* Opera 10.5, IE 9 */
}

form#l2-sel-filter input:hover,
form#l2-sel-filter input:focus {
	background-color: #e2eef4;
	outline: 0;
}

form#l2-sel-filter.l2-sel-filter-active input,
form#l2-sel-filter.l2-sel-filter-active input:hover {
	background-color: #C2E0EF;
}

.l2-sel-filter-clear {
	position: absolute;
	right: 6%;
	top: 5px;
	width: 16px;
	height: 16px;
	text-indent: -999em;
	cursor: pointer;
	background: transparent url(../img/library2-sprite.png) no-repeat -15px 2px;
}

.l2-sel-filter-active .l2-sel-filter-clear {
	/*display: block;*/
}

/*
	ProBase Tree
	--------------------------------------------------
*/
div.probase_tree {
	margin-bottom: 0;
	border-bottom: 1px solid #a5a5a5;
}

/*
	Label selection
	--------------------------------------------------
*/
div#l2-sel-labels {
	padding-top: 1em;
	border-top: 1px solid #fff;
	overflow: hidden;
}

div#l2-sel-labels div {
	float: left;
	margin: 0 20px 1em 0;
}

div#l2-sel-labels h3,
div#l2-sel-labels h4 {
	margin-bottom: 1em;
	white-space: nowrap;
}

div#l2-sel-labels ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

div#l2-sel-labels li {
	display: inline-block;
	margin-bottom: 6px;
    margin-left: 3px;
}

.l2-tag {
	margin-right: 3px;
	cursor: pointer;
}

div#l2-sel-labels li a,
.l2-tag {
    position: relative;
	background: #fbfbfb;
	padding: 3px 8px;
	display: inline-block;
	border: 1px solid #e5e5e5;
    border-radius: 2px;
	text-decoration: none;
	color: #444;
}

div#l2-sel-labels li a:hover,
.l2-tag:hover {
    border-color: #d8d8d8;
    color: #000;
    background-color: #fff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1);
}

div#l2-sel-labels li.active a,
.l2-tag--active {
    padding-right: 12px;
}

div#l2-sel-labels li.active a {
	border-color: #ccc;
	color: #4e4e4e;
	background: #d5d5d5;
	box-shadow: inset 0 1px 3px 0 rgba(0,0,0,0.15);
}

div#l2-sel-labels li.active a:after,
.l2-tag:after {
    position: absolute;
    display: block;
    content: "";
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: url(../img/remove-tags.png) no-repeat 0 0;
}

.l2-tag:hover:after,
div#l2-sel-labels li.active a:hover:after {
    background-position: 0 -19px;
}

/*
 * =============================
 * DataGrid
 * =============================
 */

div#mt-main {
	padding: 0 3px;
}

div.col-2 div#mt-main {
	padding: 0 0 0 3px;
}

div.datagrid {
	margin: 0;
	background: transparent;
	border: 0;
}

.l2-dashboardActions {
	clear: none !important; /** Changing this behavior will break the dasboard layout */
}

/*
	QuickLinks layout
	--------------------------------------------------
*/

.mod-library .l2-dashboardActions {
	padding: 10px 10px 0;
	margin-bottom: 0;
	list-style: none;
	background: none;
	border: 0;
	overflow: hidden;
}

.l2-dashboardActions li {
	display: inline-block;
	margin-left: -1px;
	zoom: 1;
	*display: inline;
}

.l2-dashboardActions li img.icon {
	float: none;
	vertical-align: middle;
	margin: 0;
	padding: 0;
}

.l2-dashboardActions a {
	display: block;
	padding: 0.25em 0.7em 0.35em;
	font-size: 11px;
	line-height: 18px;
	border: 1px solid #dcdcdc;
	text-decoration: none;
	color: #444;
	background: -moz-linear-gradient(top, #ffffff 0%, #f0f0f0 100%);
	background: -webkit-linear-gradient(top, #ffffff 0%,#f0f0f0 100%);
	background: linear-gradient(to bottom, #ffffff 0%,#f0f0f0 100%);
}

.l2-dashboardActions li:last-child a {
	border-radius: 0 2px 2px 0;
}

.l2-dashboardActions .first a {
	border-radius: 2px 0 0 2px;
}

.l2-dashboardActions .first:last-child a {
	/* In cases one button all corners rounded */
	border-radius: 2px;
}

.l2-dashboardActions li:hover a {
	border-bottom-color: #aaa;
	box-shadow: 0px 2px 2px -2px rgba(0,0,0,0.4);
	color: #000;
}

/*
	DataGrid optionals
	--------------------------------------------------
*/

.l2-libraryDashboard div.dg-optionals {
	padding: 0;
	border: 0;
}

div.dg-optionals img.icon {
	padding: 1px;
}

div.dg-optionals a.selected img.icon {
	background: #ddd;
}

/** Active filters */
.l2-activeFilters strong {
	display: block;
	margin-bottom: 5px;
}

.l2-activeFilters ul {
	margin: 0;
	padding: 0;
	list-style: none;
	clear: left;
}

.l2-activeFilters li,
.l2-filterContent,
.l2-filterLabel {
	display: inline-block;
	margin-right: 5px;
}

/*
	DataGrid filters
	--------------------------------------------------
*/

.dg-filter-container {
	padding: 0 5px;
	box-sizing: border-box;
}

/*
	Library 2 header
	--------------------------------------------------
*/

.l2-libraryDashboard .l2-header {
	padding: 10px;
	clear: none;
	border-top: 0;
	color: #000;
	background-color: #fff;
}

.l2-libraryDashboard .l2-header--empty {
	padding: 0;
}

.l2-dashboardTitle {
	position: absolute;
	top: 6px;
	left: 10px;
}

.l2-dashboardTitle span {
	font-size: .8em;
	color: #999;
}

/*
	DataGrid category view
	--------------------------------------------------
*/

ul.dg-tools li.dg-l2-category {
	width: 24px;
	margin-left: 5px;
}

ul.dg-tools li.dg-l2-category,
ul.dg-tools li.dg-l2-categories {
	background: transparent url(../img/library2-sprite.png?v=2) no-repeat 0 -150px;
}

ul.dg-tools li.dg-l2-categories {
	background-position: -24px -150px;
}

ul.dg-tools li.dg-l2-category:hover {
	background-position: -98px -150px;
}

ul.dg-tools li.dg-l2-categories:hover {
	background-position: -122px -150px;
}

ul.dg-tools li.dg-l2-category-active,
ul.dg-tools li.dg-l2-category-active:hover {
	background-position: -48px -150px;
}

ul.dg-tools li.dg-l2-categories-active,
ul.dg-tools li.dg-l2-categories-active:hover {
	background-position: -73px -150px;
}

/*
	DataGrid filter
	--------------------------------------------------
*/

/* defaults */
h3.dg-filtertitle {
	background: transparent url(../img/library2-sprite.png) no-repeat left top;
}

div.dg-filter {
	padding-bottom: 1px;
}

form.dg-filter,
div.dg-filter {
	background-position: right -50px;
}

h3.dg-filtertitle {
	font-weight: normal;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	background-position: -999px -999px;
}

h3.dg-ft-down {
	background-position: 100% -114px;
}

h3.dg-ft-up,
h3.dg-ft-up:hover {
	background-position: 100% -93px;
}

.dg-ft-desc h3.dg-ft-up:hover {
	background-position: 100% -119px;
}

form.dg-ft-moving {
	background: #fff;
	opacity: .65;
}

form.dg-ft-moving h3,
form.dg-ft-moving h3 a {
	background: #eee;
}

h3.dg-filtertitle a {
	font-weight: bold;
}

form.dg-filter-active span.dg-label {
	text-indent: 5px;
}

span.dg-col-resize {
	height: 41px;
}

form.dg-filter-drop span.dg-col-resize {
	height: 20px;
}

/*
	DataGrid table
	--------------------------------------------------
*/

table.dg-table td {
	padding: 2px 10px 2px 14px;
	line-height: 1;
}

table.dg-table tr.even td {
	background-color: transparent;
}

/*
	DataGrid table footer
	--------------------------------------------------
*/

ol.dg-table-footer li {
	padding: 0;
}

/*
	DataGrid list
	--------------------------------------------------
*/

body.mod-library div.datagrid-list form.dg-filter,
body.mod-editor div.datagrid-list form.dg-filter {
	border-right: 0;
}

/*
	DataGrid footer
	--------------------------------------------------
*/

div.dg-footer {
	border: 0;
	color: #666;
	background-color: #fff;
}

/*
 * =============================
 * Document specs & information
 * =============================
 */

/*
	Document image
	--------------------------------------------------
*/
div#l2-doc-image {
	position: relative;
	overflow: hidden;
}

div#l2-doc-image img {
	display: block;
}

span#l2-doc-imagetools {
	display: block;
	position: absolute;
	bottom: 0;
	left: -999em;
	width: 100%;
	height: 20px;
	padding: 2px 5px;
	background-color: #f6f6f6;
	opacity: .7;
}

div#l2-doc-image:hover span#l2-doc-imagetools {
	left: 0;
}

/*
	Document specs / information - definition list
	--------------------------------------------------
*/
dl#l2-doc-specs {
	width: 100%;
	height: 100%;
	margin: 0;
}

dl#l2-doc-specs dt {
	display: block;
	float: left;
	font-weight: normal;
	color: #5c5c5c;
}

dl#l2-doc-specs dd {
	margin:0;
	padding-bottom: 0.2em;
	padding-top: 0.2em;
	border-bottom: 1px solid #CCCCCC;
	border-top: 1px solid #FFFFFF;
}

dl#l2-doc-specs dd:first-of-type {
	border-top: 0;
}

dl#l2-doc-specs dt {
	margin: 3px 5px 0 0;
	clear: left;
}

/*
	Document tag component
	--------------------------------------------------
*/
.multiple-tags-note {
	margin-top: 30px;
}

.multiple-tags-note span.alert {
	color: red;
	font-weight: bold;
}

/*
	Document upload page
	--------------------------------------------------
*/
div.multi-upload-thumbnail {
	width: 90px;
	height: 90px;
	line-height: 90px;
	padding: 20px;
	vertical-align: middle;
	text-align: center;
}

/*
	.datagrid-fullscreen
	CSS for fullscreen modus of DataGrid
*/
div.datagrid-fullscreen {
	background-color: #fff;
}

/*
	All workspaces / current workspace
*/
div.all_workspace_switch div.probase_tree {
	border: none;
}
