//@import "../../../abstracts/abstracts";

.dbqkbf-folder-text-container,
.dbqkba-article-text-container {
	float: left;
	width: calc(100% - 140px);
	max-width: calc(100% - 140px);
	height: 100%;
	padding: 20px 20px 20px 0;
}

.dbqkba-article-text-container {
	.dbqkba-document-tags {
		max-width: 968px;
		margin-left: auto;
		margin-right: auto;

		.dbqkba-document-tag {
			padding: 5px 10px;
			border-radius: 5px;
			margin: 5px 5px 0px 0px;
			display: inline-block;

			&:last-of-type { 
				margin: 5px 0px 0px 0px;
				margin-right: 0px;
			}

			&:hover {
				background: $color-primary !important;
				color: $color-white !important;
			}
		}
	}
}

.dbqkbf-folder,
.dbqkba-article,
.dbqkbc-file-item {
	//@include border-radius;
	background-color:color(gray-8);
	//box-shadow: $global-box-shadow;
	margin: 0;
	z-index: 1;
	flex: 1;
	display: flex;
	align-items: stretch;
	height: 100%;
	position: relative;

	&:hover {
		z-index: 2;
	}
	&:has(.dropdown.show) {
		z-index: 3;
	}
	img,
	svg {
		width: auto;
		height: auto;
		max-width: 100%;
		max-height: 100%;
	}
	svg {
		fill: $text-color-default;// $color-primary;
	}
	h5 {
		width: 100%;
		color: $color-primary;
		font-size: 11px;
		line-height: 16px;
		font-weight: 600;
		padding: 0;
		margin: 0 0 7px 0;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}
	h4 {
		color: $dbqkbc-folder-tile-header-color;
		font-size: $dbqkbc-folder-tile-header-font-size;
		font-weight: $dbqkbc-folder-tile-header-font-weight;
		width: 100%;
		line-height: 20px;
		margin: 0 0 5px 0;
		padding: 0;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
	}
	p {
		color: color(text-color-default);
		text-shadow: $dbqkbc-folder-tile-text-shadow;
		line-height: $dbqkbc-folder-tile-text-line-height;
		font-size: $font-size-small;
		font-weight: 400;
		margin: 0 0 5px 0;
		padding: 0;
		width: 100%;
		>a {
			color: $color-primary;
			text-decoration: underline;
			font-size: 10px;
			font-weight: 500;
			width: 100px;
		}
	}
	button {
		float: left;
		height: 100%;
		display: flex;
		align-items: stretch;
		position: relative;
		width: 40px;
		background: 0;
		border: 0;
		margin: 0;
		padding: 0 10px;
		background: 0;
		border-radius: 0 $border-radius-button-default $border-radius-button-default 0;
		svg {
			float: left;
			width: 16px;
			height: 16px;
			fill: $color-primary;
			position: absolute;
			top: 50%;
			left: 50%;
			-ms-transform: translate(-50%, -50%);
			transform: translate(-50%, -50%);
		}
		&:hover {
			svg {
				fill: #FFFFFF;
			}
		}
		span {
			width: 16px;
			height: 16px;
		}
	}
}

.dbqkba-article,
.dbqkbc-file-item {
	background: $color-layer-3;
}

.dbqkbc-file-item.dbqkbc-active-item {
	padding-left: 5px;
}


.dbqkbf-folder {
	svg {
		padding: 25px;
	}
	img {
		border-radius: 50%;
	}
}

.dbqkbc-arrow-button {
	svg {
		padding: 0 !important;
	}
}

.dbqkbc-article {
	#document-topics {
		.topic {
			header {
				display: none;
			}
			.document-header {
				background: rgb(255, 102, 85);
				background: linear-gradient(90deg, rgba(255, 102, 85, 1) 0%, rgba(255, 153, 102, 1) 100%);
				padding: 30px 15px;
				border-radius: $border-radius-default $border-radius-default 0 0;
				margin-bottom: 30px;
			}
			section {
				.document-header {
					h1 {
						color: #ffffff;
						margin-bottom: 0px;
					}
				}
			}
		}
	}
}

.dbqkbc-articles-container {
	.dbqkbc-article {
		#document-topics {
			.topic {
				.document-footer {
					background: #f3f3f3;
					margin-top: 30px;
					border-radius: 0px 0px $border-radius-default $border-radius-default;
					padding: 5px 15px;
					p {
						color: #bbbbbb;
						margin-bottom: 5px;
					}
				}
			}
		}
	}
}
.dbqkbf-folder-img-container,
.dbqkba-article-img-container {
	float: left;
	height: $dbqkbc-folder-tile-icon-size;
	display: flex;
	align-items: stretch;
	width: $dbqkbc-folder-tile-icon-size;
	position: relative;
	background: 0;
	border-radius: 50%;
	padding: $dbqkbc-folder-tile-icon-padding;
	margin: $dbqkbc-folder-tile-icon-margin;
	background: color(gray-7);
}