.duplicate-warning-dialog {
	max-width: 400px;
	.buttons {
		display: flex;
		gap: 0.5rem;
		justify-content: end;
	}
}

.file-browser {
	flex: 1;
	min-width: 0;
	height: 100%;
	background-color: var(--color-a);
	display: flex;
	flex-direction: column;
	border-right: 1px solid var(--color-c);
	z-index: 1;
}

.browser-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid var(--color-c);
	padding: 0.5rem;

	& > div {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	& > span {
		text-wrap: nowrap;
		margin: 1rem;
	}
}

.filter-files {
	border: none;
	border-bottom: 1px solid var(--color-c);
}

.file-list-wrapper {
	position: relative; /*for loading screen*/
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	& > .error {
		display: flex;
		width: 100%;
		height: 100%;
		align-items: center;
		justify-content: center;
	}

	& > .file-list {
		overflow-y: auto;
		padding: 0.5rem;
		display: flex;
		flex-direction: column;
		gap: 0.25rem;

		& > .directory-item,
		& > .file-item {
			padding: 0.5rem;
			background-color: var(--color-c);
			display: flex;
			gap: 1.5rem;
			align-items: center;
			&:hover {
				background-color: var(--color-c-highlight);
			}
			& > span {
				min-width: 0;
				margin-right: auto;
			}
		}

		& > .directory-item {
			font-weight: bold;
			cursor: pointer;
			& > .download-button-wrapper {
				display: flex;
				flex-direction: column;
				align-items: center;
				line-height: 0.5rem;
				font-size: 12px;
			}
		}
	}
}

.breadcrumb {
	padding: 0.5rem;
	border-bottom: 1px solid var(--color-c);
	display: flex;
	flex-wrap: wrap;

	&.breadcrumb-nowrap {
		flex-wrap: nowrap;
		text-wrap: nowrap;
		& > span {
			text-overflow: ellipsis;
			overflow: hidden;
			flex: 1;
			max-width: fit-content;
		}
	}

	gap: 0.5rem;
	& > span {
		cursor: pointer;
		color: var(--color-d);
		&:hover {
			text-decoration: underline;
		}
	}
	& > .toggle-browser-actions {
		margin-left: auto;
	}
}

@media (max-width: 750px) {
	.file-browser {
		z-index: 1;
		position: absolute;
		width: 100%;
		box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
	}

	.hidden {
		display: none;
	}
}
