/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
  padding-top: 50px;
}


/*
 * 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: 51px;
    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. */
    background-color: #f5f5f5;
    border-right: 1px solid #eee;
  }
}

/* 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: #428bca;
}


/*
 * Main content
 */

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


/*
 * 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: #000;
	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-2 > .active > a
{
	background-color: #92bbe0;	
	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
{
	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-brand
{
	max-width: 85%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 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;
  left: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 60px;
  background-color: #f5f5f5;
}


@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;
}
