.gtabcontrol {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	flex: 1;
}

.gtabcontrol > .scroll-wrapper .scroll-btn {
	height: 40px;
	border-bottom: 1px solid #CCC;
	font-style: normal;
	line-height: 40px;
	text-align: center;
	color: #A0A0A0;
	background-image: none !important;
}
.gtabcontrol.objectWrapperSelected:not(.gtabcontrol__tabs_bg_gray) > .scroll-wrapper .scroll-btn {
	color: white;
}
.gtabcontrol > .scroll-wrapper > .scroll-btn.shaded {
	box-shadow: 0px 0 10px rgba(0,0,0,0.5);
}
.gtabcontrol > .scroll-wrapper > .scroll-btn.left::after {
	font-family: 'fontawesome-webfont' !important;
	content: "\f104";
	font-size: 15px;
}
.gtabcontrol > .scroll-wrapper .scroll-btn.left:hover::after {
	font-size: 16px;
}
.gtabcontrol > .scroll-wrapper .scroll-btn.right::after {
	font-family: 'fontawesome-webfont' !important;
	content: "\f105";
	font-size: 16px;
	top: 1px;
	left: 1px;
	position: relative;
}
.gtabcontrol > .scroll-wrapper .scroll-btn.right:hover::after {
	font-size: 17px;
}
.gtabcontrol > .scroll-wrapper.disabled .scroll-btn::after {
	content: "" !important;
}

.gtabcontrol > .scroll-wrapper {
	box-shadow: inset 0 -1px 0 #CCC;
	background: none;
}
.gtabcontrol > .scroll-wrapper ul {
	margin: 0;
	height: 40px;
	box-sizing: border-box;
	background-color: transparent;
}

.gtabcontrol > .scroll-wrapper ul li {
	height: 39px;
	margin: 0;
}

.gtabcontrol > .scroll-wrapper ul li a {
	height: 34px;
	line-height: 34px;
	border: 1px solid #CCCCCC;
	border-radius: 3px 3px 0 0;
	margin-right: -1px;
	margin-top: 4px;
	padding-left: 15px;
	padding-right: 15px;
	font-family: "Roboto Medium";
	font-weight: normal;
	font-size: 12px;
	color: #3F3F3F;
	background-color: white;
}

.gtabcontrol > .scroll-wrapper ul li.disabledTab a {
	pointer-events: none;
	opacity: 0.5;
}

.gtabcontrol > .scroll-wrapper ul li.disabledTab:hover {
	cursor: not-allowed !important;
}

.gtabcontrol > .scroll-wrapper ul li a.selected {
	height: 39px;
	line-height: 39px;
	margin-top: 0px;
	background-color: #F6F6F6;
	font-size: 14px;
	color: #0066B7;
	border-bottom: 0;
}

.gtabcontrol .panels {
    flex: 1;
    overflow: auto;
	display: flex;
	height: 100%;
	flex-direction: column;
}

.gtabcontrol .gtab {
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: auto;
	box-sizing: border-box;
	display: none; /* hide initial tab content */
}
.gtabcontrol .gtab > .gcontainer {
	flex: none;
}

.gtabcontrol .gtab.objectWrapper {
	min-height: 200px;
}

.gtabcontrol.gtabcontrol__active_tab_white > .scroll-wrapper ul li a.selected {
	background-color: white;
}
.gtabcontrol.gtabcontrol__inactive_tab_gray > .scroll-wrapper ul li a {
	background-color: #F9F9F9;
}
.gtabcontrol.gtabcontrol__tabs_bg_gray > .scroll-wrapper {
	background-color: #F6F6F6;
}

.gtabcontrol > .scroll-wrapper ul li a .tab_label {
	font-family: inherit;
}

.gtabcontrol > .scroll-wrapper ul li a .function_key {
    padding-left: 4px;
    padding-right: 4px;
    border: 1px solid #9DC6DD;
    border-radius: 3px;
    margin-left: -8px;
    margin-right: 8px;
    box-sizing: border-box;
    background-color: white;
    padding-top: 3px;
    padding-bottom: 2px;
    font-size: 12px;
    box-shadow: inset 0 -1px 0 #9DC6DD;
    text-align: center;
    position: relative;
    top: -1px;
    color: #80B3DD;
    background-color: #E6F5FC;
}

.gtabcontrol > .scroll-wrapper ul li a.selected .function_key {
	background-color: transparent;
	border: 1px solid #CCCCCC;
	box-shadow: inset 0 -1px 0 #CCCCCC;
	color: #CCCCCC;
}

/* Add padding top if there is no title or breadcrumbs and tabcontrol is immediately bellow */

body > #form_title_w:not(.shown) + #breadcrumbs:not(.shown) + .gform > .gtabcontrol:first-child {
	padding-top: 10px;
}

body > #form_title_w:not(.shown) + #breadcrumbs:not(.shown) + .gform > .gflexborderlayout:first-child > .gflexbordercontainer.top > .gtabcontrol:first-child {
	padding-top: 10px;
}
