
@use 'mixins.scss';
@use 'common.scss';

div.dt-buttons {
	div.btn-group {
		position: initial;
	}

	span.dt-button-spacer {
		&.empty {
			margin: 1px;
		}

		&.bar {
			&:empty {
				height: inherit;
			}
		}
	}

	.btn.processing {
		@include mixins.dtb-processing();
	}
}

div.dropdown-menu.dt-button-collection {
	margin-top: 4px;
	width: 200px;

	.dt-button {
		position: relative;

		&.dropdown-toggle {
			&::after {
				position: absolute;
				right: 12px;
				top: 14px;
			}
		}
	}

	div.dt-button-split {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-content: flex-start;
		align-items: stretch;

		a:first-child {
			min-width: auto;
			flex: 1 0 50px;
			padding-right: 0;
		}

		button:last-child {
			min-width: 33px;
			flex: 0;
			background: transparent;
			border: none;
			line-height: 1rem;
			color: rgb(33, 37, 41);
			padding: 0 16px;
			overflow: visible;

			&:hover {
				color: #16181b;
				background-color: #f8f9fa;
			}
		}
	}

	@include mixins.dtb-fixed-collection();
}

div.dt-button-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999;
}

@media screen and (max-width: 767px) {
	div.dt-buttons {
		float: none;
		width: 100%;
		text-align: center;
		margin-bottom: 0.5em;

		a.btn {
			float: none;
		}
	}
}
