//@import "../../../abstracts/abstracts";

html,
body {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	color: color(text-color-default);
	font-size: $font-size-base;
	overflow: hidden;
}

body {
	@include set-font;

	&::before {
		display: none !important; // This is to suppress sass compile errors which would be displayed as a header.
	}
}

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: none;
    transition: none;
}

p {
	@include set-font($font-family-p, $font-size-p, $line-height-p, null, null);
}

h1 {
	@include set-font($font-family-h1, $font-size-h1, $line-height-h1, null, null);
}

h2 {
	@include set-font($font-family-h2, $font-size-h2, $line-height-h2, null, null);
}

a {
	@include set-font(null, null, null, color(text-color-a), $font-weight-a);
	text-decoration: $font-text-decoration-a;

	&:hover {
		color: color(text-color-a-hover);
	}
}

@if ($background-image-full-screen == true) {
	#content-wrapper {
		width: 100%;
	}
}

.dbq-flex {
	flex: 1;
}

@for $i from 1 through 12 {
	.dbq-flex-#{$i} {
		flex: #{$i};
	}
}

// Temporary code (to be sorted out)
hr {
	border-top: 1px solid #e5e7ec;
}

*:hover {
	-webkit-transition: none;
	-o-transition: none;
	-moz-transition: none;
	transition: none;
}

.dbqnc-badge {
	margin-right: -4px;
	margin-top: -2px;
	padding: 4px !important;
	font-size: 10px;
	line-height: 10px !important;
	font-weight: 500;
}

.header {
	.alert {
		padding: 10px 30px !important;
		margin-bottom: 0;
	}
}

.dbq-right-column {
	position: relative;
	float: left;
	overflow: hidden;
	display: block;
	height: 100% !important;
	width: 80%;
	width: -moz-calc(100% - #{$sidebar-width});
	width: -webkit-calc(100% - #{$sidebar-width});
	width: calc(100% - #{$sidebar-width});
	z-index: 2;

	&.fullwidth {
		width: 100% !important;
	}

	#dbq-content-container {
		flex: 1;
        overflow: hidden;
	}

	#dbq-notification-center {
		height: calc(100% - 1px);
	}

	&.dbqnc-expanded {
		#dbq-notification-center {
			display: block !important;
			width: 320px;	
		}

		#dbq-content-container {
			width: calc(100% - 320px);
		}

		.dbq-application-navbar {
			width: calc(100% - 320px);
		}
	}
}

#content {
	float: left;
	height: 100%;
	width: calc(100% - 280px);
	max-width: 100%;
	flex: none;
	overflow: auto;
	.tab-content {
		height: 100%;
		.tab-pane {
			height: 100%;
		}
	}
}

#dbq-content-container {
	#content {
		float: left;
		height: 100%;
		width: 100%;
		max-width: 100%;
		flex: none;
		overflow: auto;
	}
}

.form-group:empty {
	display: none;
}

#document-editor-container .form-group {
	margin-bottom: 1rem;
}

.dbq-form {
	border-radius: 0 0 $border-radius-default $border-radius-default !important;
}

.document-class-list-control-content-container,
.dbq-scrollbar {
	@include scrollbar;
}

#content-wrapper {
	table {
		@include scrollbar;
	}
}

.dbq-scrollbar {
	@include scrollbar;
}


// Leftovers
#content-wrapper {
	.form-inline {
		border-radius: 10px;
	}
	.ui-widget-content {
		font-family: $font-family-default;
	}
	button.btn-default.dropdown-toggle:enabled {
		padding: $field-checkbox-padding-y 10px !important; 
	}
}

.dbq-checkbox-label-filters {
	max-width: 300px;
	overflow: hidden;
	display: inline-block;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.glyphicon-home:before {
	float: left;
	font-size: 12px;
	line-height: 12px;
}

#dashboard-list-add-button:enabled,
.dashboard-list-remove-button-container button.btn-default:enabled {
	padding: 8px 10px !important;
}

.icon-marker-before:before {
	right: 0 !important;
	margin-right: 5px !important;
}

.spinner-border-sm {
	float: left;
	width: 14px !important;
	height: 14px !important;
	margin: 3px 6px !important;
	border-width: 2px !important;
}

#user_info {
	color: #001323;
	a {
		color: $color-primary !important;
	}
}

#submenu.editor {
	background: #ffffff;
}

.pagination li > a.active {
	background-color: $color-primary !important;
	color: #626d86;
	border: 1px solid $color-primary !important;
}

.foldertree-header {
	background: 0 !important;
	color: #001323 !important;
	border-bottom: 0 !important;
}


.clr-recent-swatches-title {
	color: color(text-color-default);
}

.inline-loading-indicator {
    width: 24px;
    height: 24px;
    border: 3px solid $text-color-default;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
	flex-shrink: 0;
}

@keyframes rotation {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
} 