/* ---- Document preview modal ----------------------------------------------- */
.doc-preview-body {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #f1f3f5;
	overflow: hidden;
}

.doc-preview-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.doc-preview-loader {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f1f3f5;
}

.doc-preview-loader-progress {
	width: 260px;
	max-width: 80%;
	height: 6px;
	margin-top: 0.75rem;
}

.doc-preview-loader-progress .progress-bar {
	transition: width 0.15s linear;
}

.doc-preview-center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 0;
	padding: 1rem;
}

.doc-preview-frame {
	flex: 1;
	width: 100%;
	border: 0;
}

.doc-preview-img,
.doc-preview-media {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.doc-preview-text {
	flex: 1;
	overflow: auto;
	padding: 1rem;
	background: #fff;
	font-size: 0.8125rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.doc-preview-docx {
	flex: 1;
	overflow: auto;
}

.doc-preview-sheet {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	background: #fff;
}

.doc-preview-sheet-table {
	flex: 1;
	overflow: auto;
}

.doc-preview-sheet-table td {
	white-space: nowrap;
	font-size: 0.8125rem;
}

.doc-preview-sheet-tabs {
	border-top: 1px solid #dee2e6;
	border-bottom: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
}
