.officehub-rail {
	position: fixed;
	z-index: 10000;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: 84px;
	padding: 8px 0;
	border-right: 1px solid #c8ccd2;
	background: #f8f9fb;
	overflow: auto;
	box-sizing: border-box;
}

body:not(.task-login):not(.task-error-login) #layout {
	margin-left: 84px;
	width: calc(100% - 84px);
}

body:not(.task-login):not(.task-error-login) #layout-menu,
body:not(.task-login):not(.task-error-login) #taskmenu {
	overflow: visible;
}

body:not(.task-login):not(.task-error-login) #taskmenu .special-buttons {
	bottom: 0 !important;
}

.officehub-rail-main {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.officehub-rail-spacer {
	flex: 1;
	min-height: 12px;
}

.officehub-rail-item {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 68px;
	width: 100%;
	padding: 7px 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #30343a;
	text-align: center;
	font: 11px/1.15 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-decoration: none;
}

.officehub-rail-item:hover {
	background: #edf2fb;
	color: #30343a;
	text-decoration: none;
}

.officehub-rail-item.active {
	background: #e6f0ff;
}

.officehub-rail-item img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

@media (max-width: 700px) {
	.officehub-rail {
		top: auto;
		right: 0;
		width: auto;
		height: 72px;
		flex-direction: row;
		border-right: 0;
		border-top: 1px solid #c8ccd2;
	}

	body:not(.task-login):not(.task-error-login) #layout {
		margin-left: 0;
		width: 100%;
		height: calc(100% - 72px);
	}

	.officehub-rail-main {
		flex-direction: row;
		overflow-x: auto;
	}

	.officehub-rail-spacer {
		display: none;
	}

	.officehub-rail-item {
		min-width: 74px;
		min-height: 64px;
	}
}
