/*
 * Base structure
 */

@import url('variables.css');

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
  font-family: "Lato", sans-serif !important;
}


/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
  display: none;
}
@media (min-width: 768px) {
  .sidebar {
    position: fixed;
    top: 65px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    x-background-color: #e8ebf0;
	background-color: #fff;
    border-right: 1px solid #e8ebf0;	
	margin-bottom: 60px;
  }
}

/* Sidebar navigation */
.nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
  color: #fff;
  background-color: #002957;
  border-left: 8px solid #f1563f;
}

.nav-sidebar li > a
{
	color: #002957;
}


/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}

.page-header .homelink .fa-lg
{
	font-size: 20px;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
  margin-bottom: 30px;
  text-align: center;
}
.placeholders h4 {
  margin-bottom: 0;
}
.placeholder {
  margin-bottom: 20px;
}
.placeholder img {
  display: inline-block;
  border-radius: 50%;
}

/**
 * Värejä
 */
.navbar-inverse
{
	background-color: #fff;
	border-color: #101010;
}	
.navbar-inverse .navbar-brand
{
	color: #fff;
}


/* submenu */
.submenu
{
	padding-left: 25px;
}

.submenu-level-1 > .active > a
{
	background-color: #72abda;	
	color: #fff;	
}
.submenu-level-1 > .active > a:hover,
.submenu-level-2 > .active > a:hover
{
	background-color: #002957;	
}

.submenu-level-2 > .active > a
{
	background-color: #92bbe0;	
	color: #000;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav a:hover,
.navbar-inverse .navbar-nav > li > a:active,
.navbar-inverse .navbar-nav a:active
{
	color: #000;
}

.tila-info
{
	display: inline-block;
	vertical-align: top;
}

.tila-info > .tila-info-item,
.tila-info-subitem:last-child
{
	margin-right: 0px !important;
}

.tila-info
{
	margin-right: 25px;
	margin-bottom: 25px;
	background-color: #fff;
}

.tila-info-subitem table
{
	width: 350px !important;
	max-width: 350px !important;
	margin-bottom: 0px;
}
.tila-info-subitem table.table.list, .tiladata-lomake table.table.list
{
	width: 100% !important;
	max-width: 800px !important;
}
.tiladata-lomake 
{
	max-width: 960px;
}
.tila-info-subitem
{
	vertical-align: top !important;
	font-size: 16px;
}

.asio-thumbnail
{
	max-height: 125px;
	overflow: hidden;
	margin-right: 0px !important;
}
.asio-thumbnail > img
{
	width: 250px !important;
	max-width: 250px !important;
}
.asio-calendar .fc-center > h2
{
	font-size: 14px;
	margin: 0 !important;
	padding: 0;
}

.tiladata-lomake .panel-body
{
	padding-left: 0px;
	padding-right: 0px;
}



/* ... from Asio-common-bootstrap ... */

/**
 * Asio-Bootstrap - yhteiset stylet
 */

.loading-marker
{
	display: none;
}

body.loading .loading-marker
{
	display: block;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 300px;
	height: 300px;
	margin-top: -150px; /* Half the height */
	margin-left: -150px; /* Half the width */	
}

.badge-notify
{
   background:red;
   position:relative;
   top: -20px;
   left: -35px;
} 

.navbar-legacy-ylapalkki
{
    position: relative;
    float: right;
    margin-top: 8px;
    x-margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    border-radius: 4px;
}

.legacy
{
	display: none;
}

.resp-hdr
{
	background-color: #f0f0f0;
}


.nopadding 
{
   padding: 0 !important;
   margin: 0 !important;
}


/* navbar related styles
-------------------------------------------------- */
body {
	padding-top: 60px;
}
.navbar-inverse .navbar-toggle
{
	border: 0px none;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}
body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;  
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #e8ebf0;
}

.navbar
{
	min-height: 80px;
	border-bottom: 5px solid #e8ebf0;
}
body
{
	padding-top: 90px;
}
.navbar .navbar-form.navbar-right
{
	margin-top: 25px;
}
.navbar .navbar-right
{
	margin-top: 15px;
}
.navbar-brand
{
	height: 80px;
	line-height: 50px;
	max-width: 85%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;	
	padding: 0px;
}
.navbar-brand span.logo
{
	background-color: #002957;
	display: inline-block;
	max-height: 100%;
	padding: 15px 30px;
}
span.infra-selector
{
	line-height: 80px;
	padding-left: 25px;	
}
body .navbar-inverse .navbar-brand,
body .navbar-inverse .navbar-brand:hover
{
	color: #002957;
}
.navbar-brand img
{	
	height: 50px;
	margin: auto;	
}


@media (min-width:768px)
{
	.navbar-brand
	{
		overflow: visible;
	}
}
@media (max-width:480px)
{
	.container
	{
      padding: 0;
      margin: 0;
    }
	
	.row
	{
		margin-left: 0;
		margin-right: 0;
	}

    .navbar-fixed-top, .navbar-fixed-bottom, .navbar-static-top
	{
      margin-left: 0;
      margin-right: 0;
      margin-bottom:0;
    }
}




/* -- LOADING-vehje -- */
body.loading div.container-main > *
{
	opacity: 0.25;
}
body.loading div.container-main > nav
{
	opacity: 1;
}

.loading-marker
{
	display: none;
}

body.loading .loading-marker
{
	display: block !important;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 300px;
	height: 300px;
	margin-top: -150px; /* Half the height */
	margin-left: -150px; /* Half the width */
}



.pub-t
{
	font-style: italic;
	font-size: 85%;
	margin-top: 20px;
}

.well.news
{
	background-color: #fff;
	max-width: 900px;
}
.news-heading h3
{
	font-size: 19px;
	padding-bottom: 15px;
	border-bottom: 1px solid #ddd;
}

.nav-sidebar .nav > li > a,
.nav-sidebar > li > a
{
	padding: 7px 15px;
}
.nav-sub-title > a
{
	font-size: 85%;
	color: #666;
	font-weight: bold;
	padding: 7px 5px;
}

.infra-selector
{
	/*max-width: 210px;*/
	max-width: 55vw;
	cursor: pointer;
}
.clickable
{
	cursor: pointer;
}


.panel-primary
{
	border-color: var(--theme-color);
	border-radius: 0px;
}
.panel-primary .panel-heading, .bg-primary
{
	background-color: var(--theme-color);
	border-radius: 0px;
}



ul.language-select
{
	list-style-type: none;
}
ul.language-select li a, .language-select
{
	color: #404547;	
	text-transform: uppercase;
	font-size: 12px;
}


@media (min-width: 768px) 
{
	.nav.navbar-nav.navbar-right
	{
		padding-right: 50px;
	}
	.nav-container
	{
		height: 140px;
	}
	.language-select-container
	{
		position: relative;
	}
	.language-select-container > .language-select
	{
		position: absolute;
		top: 25px;
		right: 2px;
	}
	
	.language-select-container > .language-select
	{
		right: 0px;
	}
}

@media (min-width: 1100px) 
{
	.nav.navbar-nav.navbar-right
	{
		padding-right: 140px;
	}
}

@media (min-width: 1300px) 
{
	.language-select-container > .language-select
	{
		width: 100px;
		right: -30px;
	}
}

@media (max-width:480px)
{
	.asio-foodsearch-container .tila-info-subitem.asio-bg-thumbnail
	{
		display: none;
	}
	.asio-foodsearch-container .tila-info-item > .tila-info-subitem
	{
		width: auto;
	}
	
	/* Laitekorttien yhteystiedot pienellä laitteella tablesta blokeiksi */
	.tiladata-lomake .col-md-12 table.list thead,
	.tiladata-lomake .col-md-12 table.list thead tr
	{
		display: none;
	}	
	.tiladata-lomake .col-md-12 table.list,
	.tiladata-lomake .col-md-12 table.list tbody,
	.tiladata-lomake .col-md-12 table.list tr,
	.tiladata-lomake .col-md-12 table.list td
	{
		display: block;
		border: 0px none;
		background-color: transparent;
		margin: 0px;
	}
	.tiladata-lomake .col-md-12 table.list td
	{
		padding: 0px;
	}
	.tiladata-lomake .col-md-12 table.list tr
	{
		margin-bottom: 15px;
	}
	.tiladata-lomake .col-md-12 table.list tr:last-of-type
	{
		margin-bottom: 0px;
	}
}


.html-after-tilainfo-container
{
	position: relative;
	display: block;
	float: right;
	width: 50%;	
}
.html-after-tilainfo-container > span
{
	text-align: right;
}
.html-after-tilainfo-container > *,
.modal-content > *
{
	text-align: left;
}
.html-after-tilainfo
{
	position: absolute;
	right: 0px;
	bottom: 0px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 5px solid transparent;
}
.html-after-tilainfo button, .html-after-tilainfo input
{
	margin-bottom: 5px;
}

.navbar-inverse .navbar-toggle
{
	margin-top: 25px;
}
.navbar-inverse .navbar-toggle .icon-bar
{
	background-color: #002957;
}
.navbar-inverse .navbar-toggle:hover .icon-bar,
.navbar-inverse .navbar-toggle:active .icon-bar,
.navbar-inverse .navbar-toggle:focus .icon-bar
{
	background-color: #fff;
}

@media (max-width: 767px)
{
	.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form
	{
		border-color: transparent;
	}
}