
:root {

	--ctgNavbarForeground:  #337ab7;
	--ctgNavbarBackground: #dddddd;
	--ctgNavbarHighlight: #bfbfbf;
	--ctgNavbarBottomBorder: #dddddd;

	--ctgSidebarForeground: #ECECEC;
	--ctgSidebarBackground: #243E56;
	--ctgSidebarHighlight: #4D6276;
	--ctgSidebarSelected: #ffffff;
	
	--ctgTopbarForeground: #ffffff;
	--ctgTopbarBackground: #000000;

	--ctgSidebarWidth: 270px;
	--ctgNavbarHeight: 80px;
	--ctgNavbarHeaderHeight: 28px;
	--ctgNavbarToggleBarHeight: 40px;

	--ctgNavbarImageMaxHeight: .72;
	--ctgNavbarImageMaxHeightTablet: .64;
	--ctgNavbarImageMaxHeightMobile: .56;

	--ctgBodyFontSize: 1rem;

}

/*******************************************************************
	Typography
*******************************************************************/

html {

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* Override Bootstrap or other Default Font Size Back to Browser Standard - Kendo and others need this */
	font-size: 1rem; 

}

/*******************************************************************
	Layout
*******************************************************************/

body {

	/* System Fonts */ 
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

	/* Most of our commands were designed for bootstrap 3 with a 14px font size */
	font-size: var(--ctgBodyFontSize);

	min-height: 100vh;
	display: grid;
	column-gap: 0px;
	row-gap: 0px;
	grid-template-columns: var(--ctgSidebarWidth) 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		"navbar navbar"
		"sidebar main"
		"footer footer"

}

/*******************************************************************
	Buttons
*******************************************************************/

.ctg_button {

   display: inline-block;
   padding: 6px 12px 6px 12px;
   border-width: 1px;
   border-style: solid;
   border-radius: .375rem;
   text-decoration: none;
   line-height: 1.5;
   text-align: center;
   font-size: 14px;
   vertical-align: middle;
   color: white;

}

.ctg_button a {
	 color: white;
}

.ctg_button:hover {
	 color: white;
}

.ctg_button_primary {

   background-color: #337ab7;
   border-color: #2e6da4;

}

.ctg_button_primary:hover {

   background-color: #286090;
   border-color: #204d74;

}


.ctg_button_success {

   background-color: #198754;
   border-color: #198754;

}

.ctg_button_success:hover {

   background-color: #157347;
   border-color: #146c43;

}




/*******************************************************************
	Navbar
*******************************************************************/

#ctg_navbar {

	height: calc(var(--ctgNavbarHeight) + var(--ctgNavbarHeaderHeight));
	top: 0;
	position: sticky;
	grid-area: navbar;
	color: var(--ctgNavbarForeground);
	background-color: var(--ctgNavbarBackground);
	padding: 0px;
	margin: 0px;
	z-index: 10;
	border-bottom: 1px solid var(--ctgNavbarBottomBorder);
}

.ctg_navbar_header {

	width:100%; 
	color: var(--ctgNavbarHeaderForeground);
	background-color: var(--ctgNavbarHeaderBackground);
	font-size:.95em;
	height: 28px;
	line-height: 28px;
    padding: 0px 0px 0px 15px;

}

.ctg_navbar_header  a {

	color: var(--ctgNavbarHeaderForeground);
	text-decoration: none;

}

.ctg_navbar_content {

   display: flex;
   padding: 0px 15px 0px 15px;
   

}

.ctg_navbar_brand {

	line-height: var(--ctgNavbarHeight);
	height: var(--ctgNavbarHeight);

}

.ctg_navbar_brand_text {

	font-size: 2.0em;
	line-height: calc(var(--ctgNavbarHeight) * .5);
	height: calc(var(--ctgNavbarHeight) * .5);
	margin:auto 10px 10px auto;
	vertical-align:bottom;
	display: inline-block;

}

.ctg_navbar_brand_text a {

	color: var(--ctgNavbarForeground);

}

.ctg_navbar_brand_image {

	max-height: calc(var(--ctgNavbarHeight) * var(--ctgNavbarImageMaxHeight));
	vertical-align: middle;

}

.ctg_navbar_sidebar_toggle {

	padding:0px 0px 0px 10px;
	margin:0px;

	width:100%; 
	
	height:var(--ctgNavbarToggleBarHeight);
	line-height:var(--ctgNavbarToggleBarHeight);

	color:var(--ctgSidebarForeground);
	background-color: var(--ctgSidebarBackground);
	font-size:1.2em;
	display:none;

}

.ctg_navbar_buttons {

	display: flex;
	margin:auto 10px 10px auto;
}

.ctg_navbar_buttons a {

	margin-left: 9px;

}

.ctg_navbar_dropdown {

	position: relative;
	color: var(--ctgNavbarForeground);
	padding: 0px 5px 5px 5px;
	margin: auto 10px 10px 0px;
}

.ctg_navbar_dropdown_content {

	display: none;
	position: absolute;
	top: 34px;
	right: 0px;
	background-color: var(--ctgNavbarBackground);
	width: 200px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
	list-style: none;
	padding: 6px 0px 6px 0px;
	border: 1px solid var(--ctgNavbarHighlight);

}

.ctg_navbar_dropdown_show {

  display: block !important;

}

.ctg_navbar_dropdown_content li {
	width: 100%;
}

.ctg_navbar_dropdown_content li a {

	display: inline-block;
	font-size: .9em;
	text-decoration: none;
	color: var(--ctgNavbarForeground);
	height: 28px;
	line-height: 28px;
	padding-left: 16px;
	width: 100%;
	vertical-align: middle;

}

.ctg_navbar_dropdown_content li a:hover {

	background-color: var(--ctgNavbarHighlight);

}

.ctg_navbar_dropdown_mobile {
	display: none;
}

.ctg_navbar_dropdown_content_divider {

	Height: 0;
	margin: 8px 0px 8px 0px;
	overflow: hidden;
	border-top: 1px solid var(--ctgNavbarHighlight);
 
}

#ctg_sidebar {

	height: calc(100vh - var(--ctgNavbarHeight) - var(--ctgNavbarHeaderHeight));
	top: calc(var(--ctgNavbarHeight) + var(--ctgNavbarHeaderHeight));
	position: sticky;
	display:flex;
	flex-direction: column;
	align-self: start;
	grid-area: sidebar;
	color:var(--ctgSidebarForeground);
	background-color: var(--ctgSidebarBackground);
	z-index: 10;
	overflow: auto;

	-ms-overflow-style: none;  /* Internet Explorer 10+ */
	scrollbar-width: none;  /* Firefox */

	font-size: .875rem;

}

#ctg_sidebar a {

	text-decoration: none;
	color:var(--ctgSidebarForeground);

}

#ctg_sidebar::-webkit-scrollbar {

	display:none;

}

.ctg_sidebar_ul, .ctg_sidebar_bottom_ul {

	margin: 0px;
	padding: 10px 0px 0px 0px;
	width: var(--ctgSidebarWidth);

}

.ctg_sidebar_li, ctg_sidebar_bottom_li {

	width: 100%;

}

.ctg_sidebar_bottom {

	margin-top:auto;
	margin-bottom:50px;

}

.ctg_sidebar_nav_link {

	position: relative;
	display: inline-block;
	width: 100%;
	height: 3.25em;
	color:var(--ctgSidebarForeground);
	text-decoration: none;
	padding: 0px 10px 0px 20px;
	line-height:3.25em;
	vertical-align: middle;

}

.ctg_sidebar_nav_link:hover {

	background: var(--ctgSidebarHighlight);
	color:var(--ctgSidebarForeground);

}

.ctg_sidebar_nav_link i {

	padding-right: 10px;
	width: 25px;
	text-align:center;

}

.ctg_sidebar_submenu_link {

	position: relative;
	display: inline-block;
	width: 100%;
	height: 2.25em;
	color:var(--ctgSidebarForeground);
	text-decoration: none;
	padding: 0px 10px 0px 40px;
	line-height:2.25em;
	vertical-align: middle;

}

.ctg_sidebar_submenu_link:hover {

	background: var(--ctgSidebarHighlight);
	color:var(--ctgSidebarForeground);
	text-decoration: none;

}

.ctg_sidebar_submenu_header {

	cursor: pointer;
}

.ctg_sidebar_submenu_header .ctg_sidebar_submenu_arrow {

  position: absolute;
  right: 18px;
  top: 18px;
  display: inline-block;
  margin-right: auto;
  padding:0px;

}

.ctg_sidebar_submenu_ul {

	display: none;
	margin: 0px;
	padding: 0px 0px 0px 0px;
	width: var(--ctgSidebarWidth);

}

.ctg_sidebar_submenu_li {

	width: 100%;

}

.ctg_sidebar_submenu_show {
	font-weight:bold;
}

.ctg_sidebar_submenu_show ~ .ctg_sidebar_submenu_ul {

	display: block;
		
}

.ctg_sidebar_submenu_show .ctg_sidebar_submenu_arrow {

	transform: rotate(180deg);
	
}

.ctg_sidebar_selected, ctg_sidebar_selected:hover {

	color: var(--ctgSidebarSelected) !important;
	font-weight: 600;
	text-decoration: none;
}


.ctg_avatar_container {

	margin: 1px 6px 0px 6px;
    width: 33px;
    height: 33px;
    border-radius: 100%;
    background: #eee no-repeat center;
    background-size: cover;
}

#ctg_main {

	grid-area: main;
	overflow: auto;
	padding: 20px 20px 40px 20px;
	   
}

.ctg_main_container { 

	width: calc(1680px - var(--ctgSidebarWidth));
	margin-left: auto;
	margin-right: auto;

}

@media(max-width:1700px) {

	.ctg_main_container {
		width: calc(1480px - var(--ctgSidebarWidth));
	}

}

@media(max-width:1480px) {

	/* At this point the sidebar will disappear */	
	
	.ctg_main_container {
		width: 1200px;
	}
}

@media(max-width:1200px) {
	.ctg_main_container {
		width: 960px;
	}
}

@media(max-width:992px) {
	.ctg_main_container {
		width: 720px;
	}
}

@media(max-width:768px) {
	.ctg_main_container {
		width: 540px;
	}
}

@media(max-width:576px) {
	.ctg_main_container {
		width: 100%;
	}
}


.ctg_main_container_fluid {

	width: 100%;
	margin-left: auto;
	margin-right: auto;

}

#ctg_footer {

   	width:100%;
	padding: 8px;
	color: var(--ctgNavbarForeground);
	background-color: var(--ctgNavbarBackground);
	position: fixed;
	bottom: -2px;
	grid-area: footer;
	font-size: 11px;
	z-index: 15;

}

/* Tablet or Monitor Less than 1080p we lose the left bar */

@media(max-width:1480px) {

	body{
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto;
		grid-template-areas:
			"navbar"
			"main"
			"footer"
	}

	#ctg_navbar {

		height: calc(var(--ctgNavbarHeight) + var(--ctgNavbarHeaderHeight) + var(--ctgNavbarToggleBarHeight));
	
	}
	

	.ctg_navbar_brand_image {
		max-height: calc(var(--ctgNavbarHeight) * var(--ctgNavbarImageMaxHeightTablet));
	}

	#ctg_sidebar {

		width: var(--ctgSidebarWidth);
		position: fixed;
		display: none;
		top: calc(var(--ctgNavbarHeight) + var(--ctgNavbarHeaderHeight) + var(--ctgNavbarToggleBarHeight));
      	padding-bottom: 40px;
		z-index: 20;
	
	}

	.ctg_sidebar_show {

		display: flex !important;

	}

	.ctg_navbar_sidebar_toggle {

		display: block;

	}


}

/* Mobile */

@media(max-width:576px) {

	.ctg_navbar_brand_image {
		max-height: calc(var(--ctgNavbarHeight) * var(--ctgNavbarImageMaxHeightMobile));
	}
	.ctg_navbar_dropdown {
		margin: auto 10px 10px auto;
	}
	.ctg_navbar_dropdown_mobile {
		display: block;
	}
	.ctg_navbar_buttons {
		display: none;
	}


}

/*******************************************************************
	Core overrides
*******************************************************************/

.clear {
	clear: both;
}

ul.topbar {
    list-style: none;
    margin: 0 0 0 0;
    padding: 0;
}

ul.topbar li.title {
    float: left;
    font-size: 20px;
    font-weight: bold;
    font-family: arial;
    color: #006;
    border: none;
    padding: 2px;
    margin: 0 0 6px 0;
}

ul.topbar li.button {
    float: left;
    margin: 0 5px 6px 0;
}

ul.topbar li.express_button {
    float: left;
    margin: 0 5px 6px 0;
}

ul.topbar li.express_button a {
    border-color: #aaa;
    border-style: solid;
    border-width: 1px;
    color: #aaa;
    display: block;
    font-size: x-small;
    font-weight: bold;
    padding: 1px 2px;
    text-decoration: none;
}

ul.topbar li.express_button a:hover {
    color: #555;
}

ul.topbar li.right {
    float: right;
    margin: 0 0 6px 5px;
}

ul.topbar li.button a {
    display: block;
    border: 1px solid;
    font-size: 11px;
    font-weight: normal;
    padding: 3px;
    padding-right: 5px;
    line-height: 16px;
    background-color: #eee;
    text-decoration: none;
    color: #000;
    margin-right: 6px;
}

ul.topbar li.button a:hover {
    border: 1px solid #c00;
}

ul.topbar li.button img {
    margin-bottom: -4px;
}



/* core warnngs and notices */

.warning {
	color: #fff;
	background-color: #B90000;
	padding: .75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 2px;
	margin-bottom: 15px;
}

.notice {
	color: #fff;
	background-color: #356d35;
	padding: .75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 2px;
	margin-bottom: 15px;
}

/*******************************************************************
	Helpers
*******************************************************************/

.drop-shadow {
	-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
}



/*******************************************************************
	Bootstrap overrides
*******************************************************************/

.alert {

	padding: 8px 12px 8px 12px;
	margin-bottom: 8px;
}


.popover{ position:fixed !important; }

a:hover {
	text-decoration: none;
}


.btn {
	border-radius: 4px;
	-webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
	box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
}

.btn-sm {
	margin-bottom: 5px;
}

.btn-danger {
	background-color: #B90000;
	border: 1px solid #B90000;
}


.btn-header {
	background-color: #E62D18;
	color: #fff;
}


.btn-login {

	background-color: #00CC6D;
	color: #fff;

}

.btn-register {

	background-color: #3A8FFB;
	color: #fff;

}

.btn-header:hover, .btn-header:focus, .btn-header:active {
	background-color: #e62d18;
	color: #fff;
	outline: none;
}

.form-control {
	border-radius: 2px;
	/*height: 40px;*/
}

@media (min-width: 768px) {
	.form-horizontal .control-label {
		padding-top: 11px;
	}
}

/******************************************************************************/


/*
 * Component: Info Box
 * -------------------
 */

.info-box {
  display: block;
  min-height: 90px;
  background: #fff;
  width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-bottom: 15px;
}
.info-box small {
  font-size: 14px;
}
.info-box .progress {
  background: rgba(0, 0, 0, 0.2);
  margin: 5px -10px 5px -10px;
  height: 2px;
}
.info-box .progress,
.info-box .progress .progress-bar {
  border-radius: 0;
}
.info-box .progress .progress-bar {
  background: #fff;
}
.info-box-icon {
  border-top-left-radius: 2px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 2px;
  display: block;
  float: left;
  height: 90px;
  width: 90px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0, 0, 0, 0.2);
}
.info-box-icon > img {
  max-width: 100%;
}
.info-box-content {
  padding: 5px 10px;
  margin-left: 90px;
}
.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 18px;
}
.progress-description,
.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.info-box-text {
  text-transform: uppercase;
}
.info-box-more {
  display: block;
}
.progress-description {
  margin: 0;
}
