*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	overflow-y: auto;
	height: 100%;

	&.noscroll {
		overflow: hidden;
	}
}

body {
	position: relative;
	display: flex;
	overflow: visible;
	flex-direction: column;
	width: 100%;
	height: 100%;
	padding: 0;
	font-family: var(--body-font-family);
	font-size: var(--text-small-size);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:focus {
	outline: 0;
	outline-style: none;
	outline-color: transparent;
}

.clearfix {
	clear: both;

	&::after {
		display: table;
		clear: both;
		content: '';
	}
}

button {
	padding: 0;
	cursor: pointer;
	text-align: left;
	text-transform: inherit;
	color: inherit;
	border-width: 0;
	background: none;
	font-style: inherit;
}

#rocket-chat {
	position: relative;
	display: flex;
	overflow: hidden;
	flex: 1 1 auto;
	height: 100%;
	max-height: 100%;
	align-items: stretch;

	&.animated-hidden {
		visibility: hidden;
		opacity: 0;
	}
}

.ps-scrollbar-y-rail {
	background: transparent !important;
}

.ps-scrollbar-y {
	width: 4px !important;
}

@media print {
	#rocket-chat.menu-nav,
	.messages-container .wrapper {
		position: relative !important; /* 1 */
	}

	body {
		height: auto !important; /* 1 */
	}

	.messages-container-main,
	.messages-container-wrapper,
	.main-content-flex {
		flex: 1 0 auto !important; /* 1 */
		height: auto !important; /* 1 */
	}

	.rc-alerts {
		display: none !important; /* 1 */
	}

	.rcx-box {
		&--full.rcx-box {
			overflow: visible !important /* 1 */;
			height: auto !important /* 1 */;
		}
	}
}

.gallery-item {
	max-width: 100%;
	cursor: pointer;
}
