/**
Просмотр документов
*/

.inview {
	max-width: 100%;
	overflow: auto;
}

.fullinview {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	overflow: auto;
}

.view {
	display: block;
	width: calc(100% + 30px);
	height: calc(100vh - 94px);
	overflow: auto;
	margin: -15px;
	box-sizing: border-box;
	border: 0;
}

.full-screen-view {
	width: calc(100vw - 70px);
	height: calc(100vh - 90px);
	overflow: auto;
	margin: -15px;
}

.full-screen-view._no-margin{
	margin: 0;
	width: calc(100vw - 100px);
	height: calc(100vh - 140px);
}

.view._with-paddings {
	padding: 10px;
}

.view._dark-background {
	background-color: #666;
}

.view._not-scrollable {
	overflow: hidden;
	position: relative;
}

a.export {
	display: inline-block;
	text-align: center;
}

a.export > img {
	width: 64px;
	height: 64px;
}

[id ^= "sheet"], #main_content > [id ^= "sheet"] {
	border: none;
	line-height: 1.2;
	padding: 0;
}

[id ^= "sheet"] a {
	text-decoration: underline !important;
	background: none !important;
	border: none !important;
}

.gridlines td.n {
	white-space: nowrap;
}

.gerber-legend {
	position: absolute;
	right: 20px;
	bottom: 20px;
	border: 1px solid #333;
	list-style: none;
	background: #fff;
	text-align: left;
	opacity: 0.5;
	transition: opacity 0.3s;
	padding: 5px;
	z-index: 1;
}

.gerber-legend:hover {
	opacity: 1;
}

.gerber-legend__marker {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin: 0 5px;
}

.gerber-legend__item {
	background: #fff;
	cursor: -webkit-grab;
	cursor: grab;
}

.gerber-legend__item.ui-draggable-dragging,
.gerber-view.ui-draggable-dragging {
	cursor: -webkit-grabbing;
	cursor: grabbing;
}

.gerber-output {
	transform: translateZ(0);
}

.gerber-view {
	top: 0 !important;
	left: 0 !important;
	cursor: -webkit-grab;
	cursor: grab;
	transform: scale(1, -1);
}

.gerber-view._transition {
	transition: transform 0.2s;
}

img.button.gerber-flip-button {
	position: absolute;
	right: 0;
	bottom: 0;
	margin-bottom: 0;
	z-index: 2;
	background-color: #fff;
}