/*------------------------------------------------------------------
Project:	Fineli
Authors:	Toni Niemisalo & Jani Malminen & Aleksi Yrttiaho
-------------------------------------------------------------------*/


/*------------------------------------------------------------------
[Table of content]

1. Body / common
2. Header / #header
	2.1 language selection
	2.2 Title and logo
3. Navigation

4. Content
    4.1 Index
    4.2 News & info

5. Food items & components
	5.1 items
	5.2 components
	5.3 comparison

6. Footer
	5.1 Footer main
	5.2 Footer meta
7. Other
-------------------------------------------------------------------*/


/*------------------------------------------------------------------
[1. Body]
*/

body {
  font: 16px/1.4em "Source Sans Pro", Arial, sans-serif;
  border-top: 3px solid #9171bc;
}
a {
  color: #005CB1;
  text-decoration: none;
}
a.active {
  font-weight: 600;
}
/*
.btn {
  padding: 5px 12px;
  border: none;
}
*/

.btn.btn-primary .fa {
  color: #fff !important;
}
.btn.btn-primary {
  background: #9171bc;
  border: 0;
  color: #fff !important;
}
.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus {
  border: 0;
  background: #A181CC;
}
.btn.btn-primary:focus�{
  background: #A181CC;
  border-top: 1px solid #9171bc;
  border-right: 1px solid #9171bc;
}

button.btn.btn-xs:focus {
  background: #e6e6e6;
}
#menu:focus {
  background: #e6e6e6;
}

/*------------------------------------------------------------------
[2. Header]
*/

header.fineli {
  border-bottom: 1px solid #ccc;
  box-shadow: 0px 1px 6px -3px #000;
}
header.container {
  min-height: 100px;
}

/*------------------------------------------------------------------
[2.1 Language selection]
*/

ul.lang-selection, ul.sign-up {
  padding: 0;
}
ul.lang-selection li, ul.sign-up li {
  display: inline-block;
  padding-right: 15px;
  list-style-type: none;
}
ul.lang-selection li a, ul.sign-up li a {
  color: #606060;
}
ul.lang-selection li a:hover, ul.sign-up li a:hover {
  text-decoration: none;
  color: #000;
}
ul.sign-up {
  margin-top: 10px;
}
ul.sign-up li:first-child:after {
  content: " /"
}
ul.sign-up li {
  padding: 0;
}
ul.lang-selection li.active a:before, ul.lang-selection li a:hover:before {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  border: 5px solid #9171bc;
  border-color: #9171bc transparent transparent transparent;
  padding-top: 0px;
}
ul.lang-selection li a:before {
  content: "";
  display: block;
  margin: 0 auto;
  width: 0;
  border: 5px solid #fff;
  border-color: #fff transparent transparent transparent;
  padding-top: 0px;
}

/*------------------------------------------------------------------
[2.2 Title and logo]
*/

h1.title {
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-weight: 700;
  font-size: 3.9em;
  margin-top: 0px;
}
h1 a {
  color: #303030;
}
h1 a:hover, h1 a:focus {
  text-decoration: none;
  color: #303030;
}

a#thl-logo img {
  max-height: 60px;
  width: 250px;
  float: right;
  margin-top: 20px;
}
ul.quick-links {
  margin-top: 40px;
  font-size: 0.95em;
}
ul.quick-links li a {
  color: #000;
}
ul.quick-links li.active a {
  font-weight: 600;
}
ul.quick-links li a:hover {
  text-decoration: none;
}
.quick-links li {
  display: inline;
  margin-right: 15px;
}
.quick-links li.diary, li.menu-diary {
  background-image: url(../images/icons/icon-book.svg);
  background-repeat: no-repeat;
  padding-left: 18px;
  background-size: 16px auto;
  background-position: 0px 3px;
}
.quick-links li.favorite, li.menu-favorite {
  background-image: url(../images/icons/icon-star.svg);
  background-repeat: no-repeat;
  padding-left: 18px;
  background-size: 16px auto;
  background-position: 0px 3px;
}
.quick-links li.compare, li.menu-compare {
  background-image: url(../images/icons/icon-comparison.svg);
  background-repeat: no-repeat;
  padding-left: 18px;
  background-size: 16px auto;
  background-position: 0px 3px;
}

li.menu-compare, li.menu-diary, li.menu-favorite {
	background-position: 6px 12px;
}

/*------------------------------------------------------------------
[3. navigation]
*/

@media (max-width: 768px) {
	.menu.container {
		margin-left: 15px !important;
	}
	h1.title {
		margin-left: 15px;
	}
}

.menu.container {
  position: relative;
}

@media (min-width: 320px) {
  .navbar-left, .navbar-right {
    float: none !important;
  }
  .navbar-toggle {
    display: block;
    float: left;
  }
  .navbar-collapse {
    box-shadow: 2px 6px 5px -1px #ccc;
    position: absolute;
    background-color: #fff;
    z-index: 999;
    margin-top: 26px;
    padding: 0px;
    -webkit-border-radius: 10px;
    -webkit-border-top-left-radius: 0px;
    -webkit-border-top-right-radius: 0px;
    -moz-border-radius: 10px;
    -moz-border-radius-topleft: 0px;
    -moz-border-radius-topright: 0px;
    border-radius: 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    min-width: 210px;
  }
  .navbar-collapse.collapse {
    display: none!important;
    margin: 0;
    min-width:210px;
  }
  .navbar-collapse.collapsing {
    margin: 0;
  }
  .navbar-nav {
    float: none!important;
    margin: 33px 0px 0px 0px;
  }
  .navbar-nav>li {
    float: none;
  }
  .navbar-nav > li > a {
    padding: 10px 10px 10px 10px !important;
    color: #000;
    display:block;
  }
  .navbar-nav > li > a:hover {
    background-color: transparent;
    color: #9171bc;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
  }
  .collapse.in {
    display: block !important;
    margin: 0;
  }
}
.navbar-toggle {
  background-color: #fff;
  -webkit-border-radius: 10px;
  -webkit-border-top-left-radius: 0px;
  -webkit-border-top-right-radius: 0px;
  -moz-border-radius: 10px;
  -moz-border-radius-topleft: 0px;
  -moz-border-radius-topright: 0px;
  border-radius: 10px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  z-index: 1000;
  box-shadow: 1px 2px 4px -3px #000;
  min-width: 210px;
  margin: -1px 0px 0px 0px;
  padding: 5px 12px;
}

.navbar-toggle:hover {
	border: 1px solid #fff;
}

.navbar-toggle:focus {
	background-color: #fff !important;
	outline-style: ridge;
	border: 1px solid #9171bc;
}


.navbar-toggle span {
  margin-left: 120px;
}
.pagination-container {
  text-align: center;
  font-size: 1em;
}
.pagination > li > a, .pagination > li > span {
  border: 0;
  color: #303030;
}
.pagination > li.active > a, .pagination > li.active > span {
  background: #E6E6E6;
  color: #303030;
  font-weight: bolder;
  border-radius: 2px 2px 2px 2px;
}

/*------------------------------------------------------------------
[4.1 index]
*/

.search .addon-lg button {
  padding-top: 8px; 
  padding-bottom: 0px; 
  background: transparent; 
  border-width: 0px;
}
.search .addon-lg button:hover {
  color: #2B0B78;
  background: transparent;
}

.form-control {
  color: #000;
  font-size: 1.5em;
  border-color: #9171bc;
}

.form-control:focus {
    border-color: #9171bc;
    outline: 0px none;
    box-shadow: 0px 1px 1px rgba(145, 115, 186, 0.075) inset, 0px 0px 8px rgba(145, 115, 186, 0.6);
}

.icon-addon.addon-lg .form-control {
  height: 46px;
  line-height: 1.33;
  padding: 10px 16px 10px 10px;
}
.icon-addon {
  color: #9171bc;
  display: block;
  position: relative;
}
.icon-addon .glyphicon {
  font-size: 1.1em;
  right: 10px;
  margin-left: 0;
  padding: 12px 0;
  position: absolute;
  text-align: center;
  top: 3px;
  width: 24px;
  z-index: 2;
}

.icon-addon.addon-sm .form-control  {
  font-size: 1em;
  padding-right: 38px;
}
.icon-addon.addon-sm .glyphicon {
  padding: 6px 0;
  top: 2px;
}
.diary .icon-addon.addon-sm .glyphicon {
  padding: 6px 0;
  top: 32px;
}
.jumbotron {
  margin-top: -34px;
  padding-top: 68px;
  background-size: cover;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  height: 550px;
}
.jumbotron p.lead, a.ingress, .buttons {
  text-align: center;
  display: block;
  color: #fff;
}
a.ingress {
  padding-bottom: 20px;
}
.jumbotron a, .buttons {
  text-transform: uppercase;
}
.jumbotron-search {
  background-color: rgba(129, 91, 178, 0.85);
  padding: 35px;
  margin-top: 50px;
  border-radius: 4px;
}

#search-result {
  position: absolute;
  z-index: 1000;
}

.jumbotron #search-result {
  margin-top: -58px;
  width: calc(100% - 70px);
}

@media (max-width: 425px) {
	.jumbotron #search-result {
  		margin-top: -81px;
	}
}

#search-result .alert.alert-info {
  border: 0;
  background: transparent;
  font-size: 1.15em;
  color: #303030;
  padding: 0;
  margin: 0 0 0 19px;
}
#search-result ul li.result a {
  text-transform: none;
}
#search-result ul {
  list-style-type: none;
  border-width: 1px 1px 1px 1px;
  border-color: #9171bc;
  border-style: solid;
  margin: 0;
  padding: 0px 0px 15px 10px;
  background-color: #fff;
  -webkit-border-bottom-right-radius: 4px;
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomright: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}

/*------------------------------------------------------------------
[4.2 news & info]
*/

.news {
  text-align: center;
  padding-bottom: 30px;
  padding-top: 10px;
}

.news h2 {
  text-transform: uppercase;
  font-size: 1.5em;
}

.news h3 {
  text-transform: uppercase;
  font-size: 1.5em;
}
.news p {
  margin: 0;
}
.info {
  text-align: center;
}
.info>div>div {
  padding: 30px 0px;
}
.info h3, .info a {
  text-transform: uppercase;
}

.info h2 {
	font-size: 1.5em;
	text-transform: uppercase;
}

/*------------------------

[4.4 Site info]
*/

.page-info {
	margin-bottom: 30px;
}
.side-nav {
	margin-top: 20px;
}

.side-nav a {
  color: #303030;
  padding-left: 8px;
}

.right-side-content {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 20px 0px;
}

.side-nav ul {
	list-style-type: none;
	padding-left: 0px;
}

.side-nav ul li {
	display: block;
	padding: 0 0 5px 0;
}

.side-nav ul li a {
	padding-left: 8px;
}

.side-nav ul li.active a {
	border-left: 3px solid #9171bc;
	font-weight: bold;
	padding-left: 5px;
}

.side-nav ul li ul, .side-nav ul li.active ul {
	padding-left: 15px;
	padding-top: 5px;
}

.side-nav ul li.active li a {
	border-left: none;
	font-weight: normal;
	padding-left: 0;
}

.side-nav ul li a:hover {
	border-left: 3px solid #9171bc;
	padding-left: 5px;
	text-decoration: none;
}

.side-nav ul li.active ul li a {
	padding-left: 8px;
}

.side-nav ul li.active ul li a:hover {
	border-left: 3px solid #9171bc;
	padding-left: 5px;
	text-decoration: none;
}

.news-metadata {
	margin: 9px 0px;
}

/*------------------------------------------------------------------
[5. Food items & components]
*/

h1.component, h1.diary, h1.compare-heading, h1.components {
	font-weight: 900;
    font-size: 2.2em;
}

.foods-diary .fa, .foods-favorite .fa, .foods-compare .fa {
  color: #9171bc;
}

.jumbotron.foods {
  height: 240px;
}
.foods-search {
  background-color: rgba(129, 91, 178, 0.85);
  padding: 20px 20px 10px 20px;
}
a.diary, a.favorite, a.compare {
  color: #303030;
  display: block;
  width: 30px;
  height: 30px;
  text-align: center;
}
.favorite.active, .compare.active {
  color: #079e9e;
}
a.diary:hover, a.favorite:hover, a.compare:hover {
  background-color: #303030;
  color: #fff;
  border-radius: 50%;
}
a.favorite.active:hover, a.compare.active:hover {
  background-color: #079e9e;
}
a.favorite span, a.compare span {
  top: 5px;
  left: 1px;
}
a.diary span {
  top: 5px;
}
table.foods th {
  font-size: 0.75em;
}
table.foods thead th:nth-child(2), table.foods tbody td:nth-child(2) {
  background-color: #ccc;
}
div.disclaimer {
  margin-top: 20px;
}

div.disclaimer p {
	font-style: italic;
	font-size: 0.75em;
}

div.export {
  margin-top: -25px;
}
ul.export li {
  list-style-type: none;
  display: inline;
  margin-left: 20px;
}
.export li.pdf {
  background-image: url(../images/icons/icon-print-pdf.svg);
  background-repeat: no-repeat;
  background-size: 24px 24px;
  padding-left: 30px;
}
.export li.csv {
  background-image: url(../images/icons/icon-print-csv.svg);
  background-repeat: no-repeat;
  background-size: 24px 24px;
  padding-left: 30px;
}

.quick-select .btn {
	padding: 1px 5px 1px;
}


.account-tools {
	float: right;
	margin-top: 20px;
}

@media (max-width: 768px) {
	.account-tools {
		float: left;
		margin-top: 0px;
		padding-bottom: 10px;
	}
}

.account-tools .btn {
	padding: 3px 5px;
}

.account-tools .btn:active, .account-tools .btn:hover, .btn-default.active, .btn-default.hover {
	background-color: #e9e2f1;
}

.quick-select .btn:active, .quick-select .btn:hover, .btn-default.active, .btn-default.hover {
	background-color: #e9e2f1;
}

span.foods-favorite {
	background-image: url(../images/icons/icon-star.svg);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	padding: 0px 12px;
	background-position: 50% 50%;
}

span.foods-compare {
	background-image: url(../images/icons/icon-comparison.svg);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	padding: 0px 12px;
	background-position: 50% 50%;
}

span.foods-diary {
	background-image: url(../images/icons/icon-book.svg);
	background-repeat: no-repeat;
	background-size: 16px 16px;
	padding: 0px 12px;
	background-position: 50% 50%;
}

.food h2 {
	font-size: 1.5em;
}

/*------------------------------------------------------------------
[5.3 Comparison]
*/

#comparison-table td {
  vertical-align: middle;
  text-align: center;
}
#comparison-table td:first-child {
  vertical-align: middle;
  text-align: left;
  height: 65px;
}

#comparison-table {
	margin-left: 278px;
}
#comparison-table .dropdown-menu {
	background: #fff;
}
.food-comparison {
}
.table.food-comparison th, .table.food-comparison td {
	position: relative;
	z-index: 10;
  min-width: 280px;
}
.table.food-comparison .component-search {
  float: left;
}
.table.food-comparison td {
	height: 4em;
	overflow: hidden;
}
.table.food-comparison th {
	z-index: 200;
}
.food-comparison thead {
  background-color: #eee;
}
.table.food-comparison tr>th:first-child,
.table.food-comparison tr>td:first-child {
	position: absolute;
	background: #fff;
	z-index: 500;
	left: 15px;
  width: 280px;
}
.table.food-comparison >tr>th:first-child {
	padding: 0;
	border-color: #9171BC;
	z-index: 501;
}
.table.food-comparison tr>th:last-child,
.table.food-comparison tr>td:last-child {
	position: absolute;
	right: 0px;
	width: 45px;
  min-width: 45px;
	text-align: center;
	margin-top: -1px;
	height: 66px;
  background: #fff;
}

.table.food-comparison tr>td:last-child a {
	color: #767676;
	font-weight: 400;
}
.table.food-comparison tr>th:first-child>div {
	background: #9171BC;
	padding: 8px 13px 20px 13px;
	width: 280px;
	position: absolute;
  	border-top: 6px solid #9171BC;
	border-bottom: 1px solid #9171BC;
	border-radius: 4px 4px 0 0;
	top: -6px;
	left: -1px;
	right: -1px;
	z-index: 200;
}
.table.food-comparison tr>th:first-child .dropdown {
	background: #fff;
	width: 100%;
	border-radius: 4px 4px 4px 4px;
}
.table.food-comparison tr>th:first-child .btn {
	width: 100%;
	text-align: left;
	padding-left: 12px;
}
.table.food-comparison tr>th:first-child .dropdown:hover {
	background: #e6e6e6;
}
.table.food-comparison tr>th {
	border-bottom: 1px;
}
.table.food-comparison tr>th:last-child {
	height: 53px;
	background-color: #eee;
	border-top: 1px solid #ddd;
	padding-top:0px;
	margin-top: -1px;
}
.table.food-comparison .table-nav .fa{
	background: #eee;
	border: 1px solid #ddd;
  	border-bottom: 0;
	display: block;
	height: 54px;
	width: 24px;
	position: absolute;
	padding: 20px 0;
}
.table.food-comparison .table-nav .fa-chevron-left {
	left: -1px;
}
.table.food-comparison .table-nav .fa-chevron-right {
	right: -1px;
}

td.remove a span {
	top: 13px;
}

span.most {
	background-image: url(../images/icons/icon-sort.svg);
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
	display: inline-block;
	background-size: auto 100%;
}

span.least {
	background-image: url(../images/icons/icon-sort.svg);
	background-repeat: no-repeat;
	width: 16px;
	height: 16px;
	display: inline-block;
	background-size: auto 100%;
	-webkit-transform: rotate(180deg);
  	-moz-transform: rotate(180deg);
  	-o-transform: rotate(180deg);
  	-ms-transform: rotate(180deg);
  	transform: rotate(180deg);

}

.btn-group.comparison {
	margin-top: 5px;
}


/*------------------------------------------------------------------
[6. Footer]
*/

footer {
  background-color: #fff;
  color: #fff;
}
footer .mega {
  padding: 20px 0;
  background-color: #424242;
}
footer h1 {
  font-size: 0.95em;
  text-transform: uppercase;
  color: #989898;
  font-weight: bold;
  letter-spacing: 0.5pt;
  margin-top: 20px;
}
footer .mega ul li a {
  color: #EDEDED;
}
ul.weblink-list {
  padding: 0;
}
ul.weblink-list li {
  padding-bottom: 15px;
}
li.thlfi {
  background-image: url(../images/icons/icon-arrow.svg);
  background-repeat: no-repeat;
  line-height: 30px;
  list-style-type: none;
  padding-left: 40px;
}
li.facebook {
  background-image: url(../images/icons/icon-facebook.svg);
  background-repeat: no-repeat;
  line-height: 30px;
  list-style-type: none;
  padding-left: 40px;
}
li.twitter {
  background-image: url(../images/icons/icon-twitter.svg);
  background-repeat: no-repeat;
  line-height: 30px;
  list-style-type: none;
  padding-left: 40px;
}
li.youtube {
  background-image: url(../images/icons/icon-youtube.svg);
  background-repeat: no-repeat;
  line-height: 30px;
  list-style-type: none;
  padding-left: 40px;
}
footer ul.link-list, ul.netlink-list {
  list-style-type: none;
  padding-left: 0;
  padding-bottom: 5px;
}
footer ul.netlink-list li {
  padding-bottom: 7px;
}
footer .mega li {
  font-size: 0.9em;
}
footer .license {
  background-color: #fff;
  padding: 20px 0;
}
footer .license li {
  border-right: 1px solid #ccc;
  padding: 0 10px;
}
footer .license li a {
  color: #606060;
}
footer .license p.copy {
  color: #303030;
  font-weight: 600;
  margin: 0;
}

/*
 [7. Other]
 */

div.form-group.disabled label, div.form-group.disabled input {
    color: #ccc;
}

/* Icons */

.round {
  width: 150px;
  height: 150px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 50%;
  text-align: center;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-image: url(../images/sprite.svg);
  background-size: 32px 32px
}
.icon {
  display: inline-block;
  background-repeat: no-repeat;
  background-image: url(../images/sprite.svg);
}
.icondiary {
  width: 64px;
  height: 64px;
  background-position: -384px 0px;
  background-size: 1504px 160px;
  margin-top: 45px;
}
.favorite {
  width: 64px;
  height: 64px;
  background-position: -287px 0px;
  background-size: 1504px 160px;
  margin-top: 42px;
}
.compare {
  width: 64px;
  height: 64px;
  background-position: -192px 0px;
  background-size: 1504px 160px;
  margin-top: 42px;
}

/* Something */

a.disabled {
  color: gray;
  pointer-events: none;
  cursor: default;
}
.component-type {
  list-style: none;
  padding: 0;
  margin: 0;
}
.component-type li {
  display: inline;
}
.component-type li:after {
  content: ">";
}
.component-type li:last-child:after {
  content: "";
}
.component-list tr>td:first-child:first-letter {
  text-transform: uppercase;
}

/**
  Displays energy percentage per primary component
*/

.fineli-bar {
  display: block;
  position: relative;
  height: 16px;
  color: #303030;
  border-radius: 2px 2px 2px 2px;
  margin-top: 3px;
}
.table.components td, .table.components th {
  width: 16%;
}
.table.components td:nth-child(2), .table.components th:nth-child(2) {
  width: 20%;
  text-align: right;
}
.table.components td:first-child, .table.components th:first-child {
  width: 30%;
}

.table .bar {
  padding-right: 40px;
}
.fineli-bar {
  border: 1px solid #f0f0f0;
}
.fineli-bar span {
  position: absolute;
  right: -40px;
  margin-top: -5px;
}
div.diary .fineli-bar.rec span {
  position: absolute;
  right: -68px;
  margin-top: -5px;
  border-width: 0px;
}
.food-fat .fineli-bar {
  background: rgb(107, 140, 184);
}
.food-protein .fineli-bar {
  background: rgb(186, 110, 56);
}
.food-carbohydrate .fineli-bar {
  background: rgb(67, 34, 73);
}
.food-alcohol .fineli-bar {
  background: rgb(82, 70, 135);
}
.food-organicAcids .fineli-bar {
  background: rgb(187, 194, 121);
}
.food-sugarAlcohol .fineli-bar {
  background: rgb(24, 87, 49);
}
.food-fiber .fineli-bar {
  background: rgb(117, 196, 195);
}
span.scientific-name {
  font-size: 60%;
  font-style: italic;
  font-weight: normal;
}
.ingredient-list, .diet-list {
  list-style-type: none;
  padding-left: 0;
}

p.energy-unit {
	font-size: 1.5em;
	display: inline;
	margin: 0;
}

.energy {
	margin-top: 5px;
}


.diet-list li {
  background: #ddd;
  border-radius: 4px 4px 4px 4px;
  display: block;
  float: left;
  width: auto;
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 5px 5px;
}

.diet-list li:hover {
	background-color: #9171bc;
	color: #fff;
	cursor: default;
}
.food-info {
  list-style-type: none;
  padding-left: 0;
  display: table;
}

.food-info li {
	padding-bottom: 10px;
	font-size: 1em;
	display: table-row;
	height: 30px;
}

.food-info .property {
  color: #808080;
  display: table-cell;
}

.food-info .value {
	font-weight: bold;
	display: table-cell;
	padding-left: 20px;
}

.panel.panel-default {
  border-radius: 0;
  border: none;
}

/* Food page, component content per service */
/*
.recommendations {
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}
*/

.recommendations .recommendation {
  text-align: center;
  float: left;
  width: 120px;
  height: 160px;
  margin: 15px 15px 15px 0px;
  position: relative;
}
.recommendations .fa-circle {
  color: #fff;
    font-size: 8.125em;
    position: absolute;
    bottom: -75px;
    left: 3px;
    opacity: 0.4;

}
.recommendations p.proportion {
  position: absolute;
  left: 45px;
  bottom: 0;
}
.panel.panel-default .panel-heading a {
  display: block;
  position: relative;
  padding-right: 16px;
}
.panel.panel-default .panel-heading .glyphicon {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}
.panel.panel-default .panel-heading .glyphicon:before {
  content: "\e113";
}
.panel.panel-default .panel-heading .collapsed .glyphicon:before {
  content: "\e114";
}
.panel.panel-default >.panel-heading {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}
.panel-body {
  padding: 0;
}
.panel-group {
  display: block;
}

/* Filtered search */

ul.filter-list, ul.filter-list ul {
  list-style-type: none;
  padding-left: 15px;
}
ul.filter-list a span.show-more {
  padding-left: 5px;
}
a.remove-filter {
  color: #808080;
}
a.remove-filter span {
  padding-left: 5px;
}
.selected-filters {
  display: table;
}
.tag {
  background: #ddd none repeat scroll 0 0;
  border-radius: 4px;
  margin-bottom: 5px;
  margin-right: 5px;
  padding: 5px;
  width: auto;
}

/** foods **/

.btn {
  font-size: 1em;
}

.add {
	display: inline;
	margin-top: 35px;
}

.unit-selection .btn {
  font-size: 1em;
  margin: 0;
  padding: 0 0 5px 0;
}
.panel.panel-fineli .unit-selection .btn, #comparison-table .unit-selection .btn {
  font-size: 1em;
}
.panel-fineli .segment-1 h2 {
  width: calc(100% - 140px);
  float: left;
  margin: 0;
  padding: 0;
  line-height: 1.1;
  font-size: 1em;
}
.panel.panel-fineli {
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  box-shadow: none;
}
.panel.panel-fineli .panel-heading {
  border: 0;
  position: relative;
  padding: 0;
}
.panel.panel-fineli .panel-heading .fa.collapse {
  right: 15px;
  top: 18px;
  color: #303030;
}
.panel.panel-fineli .panel-heading .fa.collapse:before {
  content: "\f077";
}
.panel.panel-fineli .panel-heading .collapsed .fa.collapse:before {
  content: "\f078";
}
.panel.panel-fineli a[role=button] {}
.panel.panel-fineli .panel-body {
  padding: 0;
}
.panel.panel-fineli .panel-heading {
  display: table;
  width: 100%;
}
.panel.panel-fineli h3 {
  font-size: 1.25em;
  margin: 0;
  display: table-row;
}
.panel.panel-fineli .segment {
  display: table-cell;
  padding: 15px;
}
.panel.panel-fineli.header .segment {
  background: transparent;
}
.panel.panel-fineli .segment.segment-1 {
  padding: 0;
}
.segment-1 a {
  display: block;
  padding: 3px 0px 0px 0px;
  font-weight: bold;
}
.segment > span {
  display: block;
  padding: 15px;
  font-weight: bold;
}

.segment-1 a:hover, .segment-3 a:hover {
	text-decoration: none;
}
.panel.panel-fineli .segment-2 {
  background: #f2f2f2;
  width: 250px;
  text-align: right;
  border-left: 1px solid #dcdcdc;
  border-right: 1px solid #dcdcdc;
}
.panel.panel-fineli.header .segment-2 {
  background: #f2f2f2;
  color: #303030;
  border: 1px solid #dcdcdc;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  width: 250px;
  max-width: 250px;
}
.panel.panel-fineli .segment-3 {
  width: 50px;
  border: 0;
  position: relative;
}
@media (max-width: 768px) {
  .panel.panel-fineli .segment-2 {
    display: none;
  }
  
  h1 {
  font-size: 1.5em;
  }
}
.filter {
  display: inline-block;
  overflow: visible;
}
.filter.active .btn {
  font-weight: 600;
}
.filter .btn .fa {
  color: #9171bc;
}
.filter .dropdown-menu {
  position: absolute;
  width: 500px;
  max-height: 300px;
  overflow-y: scroll;

  padding: 5px 15px;
}
.filter .dropdown-menu .content {
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
}
.filter .dropdown-menu li {
  display: block;
  position: relative;
  max-width: 200px;
}
.filter .dropdown-menu ul {
  padding-left: 30px;
}
.filter .dropdown-menu ul li {
  max-width: 170px;
}
.filter .dropdown-menu li a {
  diplay: block;
  positon:relative;
  color: #303030;
  font-size: 1em;
  padding: 0;
  padding-left: 16px;
  font-weight: normal;
}

.filter .dropdown-menu li a .fa {
  position: absolute;
  left: 0;
}
.segment .dropdown-menu li a {
  color: #303030 !important;
  font-size: 1.15em;
}
.dropdown-menu .form-group {
  padding: 0 15px;
}
.filter .count {
  display: block;
  position: absolute;
  right: -26px;
  top: 5px;
  text-align: right;
}
.fineli-result-count {
  clear: both;
  padding-top: 15px;
  margin-bottom: 0;
}


hr {
  margin: 0;
}
.diary hr {
  margin: 20px 0;
}
.diary .btn {
  font-size: 1em;
}
.diary .name .btn, .diary .input-group-btn .btn {
  font-size: 14px;
}
h4.diary-day-header {
  width: 100%;
}
diary h4.diary-day-header div.tooltip {
  color: black !important;
}
.tooltip {
  font-size: 1em;
}
.diary .tooltip {
  font-size: 0.6em;
}
.tooltip.top > .tooltip-inner {
  background-color: rgb(107, 140, 184);
  max-width: 500px;
}
.tooltip.top .tooltip-arrow {
  border-top-color: rgb(107, 140, 184);
}
div.comment {
	display: none;
	width: 300px;
	position: relative;
	z-index: 1000;
}
div.comment div {
	position: absolute;
	background-color: white; 
	padding: 10px; 
	text-align: right;
}
.diary div.comment div button {
	margin-top: 6px;
	font-size: 0.65em;
}
.diary .l1 div.comment div button {
	margin-top: 6px;
	font-size: 0.65em;
}
.diary .l2 div.comment div button {
	margin-top: 6px;
	font-size: 1em;
}
.diary-dates .l1 a.comment:focus, .recipes .l2 a:focus {
	outline: 1px dotted white;
	outline-offset: -2px;
}
.diary .panel.panel-fineli {
  border: 0;
}
.columns {
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  max-height: 300px;
}
.btn.btn-xs {
  background: transparent;
  border: 0;
}
.component-search {
  padding: 0 0;
}

.component-search button {
  overflow: hidden;
  float: left;
}

span.favorite-food .btn:first-child {
	width: 90%;
}

.component-search button.favorite-btn {
  overflow: hidden;
  float: left;
  width: 90%;
  margin-top:3px;
}

@media (max-width: 992px) {
  .btn .lbl {
    display: none;
  }
}
div.diary #selected-reference-group {
    font-size: 1em;
    margin-top: 25px;
    float: right;
}

@media (max-width: 768px) {
	div.diary #selected-reference-group {
		float: left;
		margin-top: 0px;
		margin-bottom: 10px;
	}
}

@media (max-width: 992px) {
	div.diary #selected-reference-group {
		margin-bottom: 10px;
	}
}

div.diary #selected-reference-group .fa {
  color: #9171BC;
}
div.diary #selected-reference-group button {
  text-align: left;
  font-weight: 600;
}
div.diary #selected-reference-group ul {
  min-width: 200px;
}
.fineli-section {}
.fineli-row {
  display: table;
  width: 100%;
}
.fineli-row .segment {
  display: table-cell;
  padding: 10px 10px 15px 15px;
}
.fineli-row .segment.toggle, .fineli-row .segment.close {
  width: 45px;
}
.segment.toggle .fa.collapse:before {
  content: "\f077";
}
.collapsed .segment.toggle .fa.collapse:before {
  content: "\f078";
}
.fineli-row .segment.info {
  width: 250px;
  text-align: right;
}
.fineli-row.l2 .segment.info {
  font-weight: 600;
}
@media (max-width: 768px) {
  .fineli-row .segment.info, .fineli-row .segment-info {
    display: none;
  }
}
.fineli-row .segment {
  border-right: 1px solid #fff;
  border-bottom: 1px solid #7A5097;
}
.fineli-row a {
  color: #303030;
}
.fineli-row .fa {
  color: #000;
}
.fineli-row.l1 a, .fineli-row.l1 .fa {
  display: block;
  color: #fff;
  padding-left: 2px;
}

.fineli-row.l1 .segment {
  background-color: #9171bc;
  border-right-color: #fff;
  border-bottom-color: #7A5097;
  font-size: 1.5em;
}

.fineli-row.l1 .segment:first-child {
	width: 59px;
}

.fineli-row.l1 .segment .date {
  font-size: 0.55em;
  font-size: narrower;
}
.fineli-row.l1 .segment.info {
  background-color: #a181cc;
  color: #fff;
}
.fineli-row.l1:not(.collapsed) .segment {
  border-bottom-color: #9171bc;
}

.fineli-row.l2 .segment {
  background-color: #ebebeb;
  border-color: #cecece;
  border-bottom-color: #cecece;
}
.fineli-row.l2 .segment:first-child {
  padding-left: 22px;
  border-right: 1px solid #ccc;
  width: 60px;
}
.fineli-row.l3 .segment:first-child {
  padding-left: 75px;
}
.fineli-section:not(:last-child) .fineli-row.l2:last-child .segment {
  border-bottom-color: #7A5097;
}
.fineli-row.l3 .segment {
  background-color: #f6f6f6;
  border-color: #d2d2d2;
  border-bottom-color: #d2d2d2;
}
.fineli-row .segment:last-child, .fineli-row .segment.toggle {
  border-right: 0;
}
.fineli-row .segment.content {
  position: relative;
  padding-padding: 45px;
}
.segment.content .fa-align-justify {
  position: absolute;
  right: 15px;
  top: 15px;
  opacity: 0.6;
  cursor: move;
}
a .meal-name, a .amount {
  cursor: text;
}
.segment.content h4, .segment.content h5 {
  margin: 0;
}

.fineli-row.head .segment-content {
  text-align: center;
  border-bottom: 0;
}
.fineli-row.head .segment-info {
  width: 250px;
  max-width: 250px;
  background: #F2F2F2;
  border: 1px solid #DCDCDC;
  border-bottom: 0;
  border-top: 0;
}
.fineli-row.head .segment-toggle {
  width: 45px;
  border: 0;
}
.fineli-row.head .data {
  text-align: right;
  display: block;
  color: #7A5097;
  font-size: 1.5em;
  font-weight: bolder;
  padding: 15px 0;
}
.fineli-row.head .recommended {
  display: block;
  text-align: right;
  color: #303030;
  font-size: 0.95em;
}
.fineli-row.head .recommended-value {
  font-weight: bold;
}
.fineli-row.head .segment-content div:last-child {
  margin-top: 20px;
}

.diary .form-control {
  font-size: 1em;
  font-weight: normal;
}
.diary .form fieldset {
  padding: 0;
  margin: 0;
}
.diary .form legend {
  display: block;
  float: left;
  width: auto;
  font-size: 1em;
  font-weight: bold;
  padding: 4px 4px 4px 0px;
  margin: 0;
  border: 0;
}

.recommendation {
  position: relative;
  width: 180px;
  height: 240px;
  overflow: hidden;
  background: #9171bc;
  text-align: center;
  padding: 15px;
  margin: 15px;
  color: #fff;
  float: left;
  border-radius: 4px 4px 4px 4px;
}
.recommendation h3 {
  font-size: 1.250em;
  margin-top: 5px;
}
.recommendation a {
  color: #fff;
}
.recommendation a:hover {
  color: #fff;
  text-decoration: none;
}
.recommendation dt {
  font-size: 1em;
  font-weight: normal;
}
.recommendation dd {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 15px;
}
.recommendation dl {
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
}
.recommendation .percent {
  display: block;
  font-size: 2em;
  font-weight: 600;
  margin: 0;
  padding: 0;
  line-height: 1em;
}

.diary h3, .diary .fineli-section h4, .diary .fineli-section h5 {
  display: inline-block;
}
.diary h2 {
  clear: both;
  font-size: 1.25em;
  margin: 0;
  padding: 0;
}
.diary h3 {
  clear: both;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}

.diary h5 input.form-control {
  font-size: 0.65em;
}
.diary .bar .fineli-bar.rec {
  margin-top: 2px;
  background: #b2b2b2;
}

.diary-dates {
	margin-bottom: 40px;
	margin-top: -1px;
	border-top: 1px solid #ddd;
}

.infographic-section {
  padding: 20px;
  border: 1px solid #ddd;
  position: relative;
  margin-bottom: 15px;
}

.infographic h2 {
	font-size: 1.5em;
}

.grid {
  overflow: hidden;
  padding-top: 30px;
}
.grid h3 {
  padding-left: 8px;
  margin-bottom: 0;
  font-size: 1em;
}


.grid a {
  color: #303030;
  background: #fff;
  position: relative;
  z-index: 10;
}
.grid .line {
  display: block;
  position: absolute;
  height: calc(100% - 130px);
  width: 1px;
  background: #e2e2e2;
}
.diary .grid .line {
  height: 380px;
}
.grid .line span {
  position: absolute;
  top: -24px;
  left: -20px;
  text-align: center;
  width: 50px;
}
.grid .p0 {
  left: 21px;
}
.grid .line.p0 span {
  left: 0;
  text-align: left;
}
.grid .p20 {
  left: calc(20%);
}
.grid .p40 {
  left: calc(40%);
}
.grid .p60 {
  left: calc(60%);
}
.grid .p80 {
  left: calc(80%);
}
@media (max-width: 768px) {
	.grid .p20, .grid .p40, .grid .p60, .grid .p80 {
	  display: none;
	}
}
.grid .p100 {
  left: calc(100% - 21px);
}
.grid .line.p100 span {
  left: -50px;
  text-align: right;
}

.diary .legend {
  margin: 20px 0;
  margin-top: 40px;
  padding-left: 40px;
  position: relative;
}
.diary .legend span {
  display: block;
  position: absolute;
  width: 32px;
  height: 13px;
  top: 6px;
  left: 0;
  background: #b2b2b2;
}

.toggle-on {
  	background-image: url(../images/icons/icon-switchbutton.svg);
  	background-repeat: no-repeat;
	background-size: 100% 100%;
    padding: 0px 30px 19px 30px;
    margin-bottom: -4px;
    display: inline-block;
}

.toggle-off {
  	background-image: url(../images/icons/icon-switchbutton.svg);
  	background-repeat: no-repeat;
	background-size: 100% 100%;
    padding: 0px 30px 19px 30px;
    margin-bottom: -4px;
    display: inline-block;
    -webkit-transform: rotate(180deg);
  	-moz-transform: rotate(180deg);
  	-o-transform: rotate(180deg);
  	-ms-transform: rotate(180deg);
  	transform: rotate(180deg);
  	display: inline-block;
}

/**
 * Content
 */

.content-header {
  border-bottom: 1px solid #E2E2E2;
}

.content-header h2 {
	font-weight: 900;
	font-size: 2.2em;
}

/** modal */

.calendar:hover {
	color: #9171bc;
}

.date-range {
  font-size: 1.5em;
  font-weight: bold;
  margin: 15px 15px;
  display: inline;
}

.date {
	display: inline-block;
}

.date-range .ui-datepicker {
  position: absolute;
  z-index:100;
  background: #fff;
  font-size: 0.8em;
  font-weight: normal;
  padding: 5px 15px;
  margin-left: -17px;
  top: 25px;
  box-shadow: 5px 5px 10px #b2b2b2;
  color: #000;
}

.ui-datepicker {
  background: #fff;
  padding: 5px 15px;
}

.ui-datepicker-title {
	margin-bottom: 10px;
}

.ui-datepicker-today a {
	color: #9171bc;
	font-weight: bold;
}

.ui-datepicker table th, .ui-datepicker table td {
  padding: 3px 5px;
}
.ui-datepicker .ui-datepicker-prev {
  position:absolute;
  left: 15px;
}
.ui-datepicker .ui-datepicker-next {
  position:absolute;
  right: 15px;
}
.modal .form-control {
  font-size: 1em;
}

.form-control.has-error {
	border-color: #d64176;
	background: #f7d9e4;
}

.modal-header .close {
    margin-top: 0px;
    color: #9171bc;
    opacity: 1;
    font-size: 1.5em;
}

div.loader {
  display: none;
  position: absolute;
  left: 45%;
  top: 10px;
  z-index: 2000;
}
div.loader img {
  width: 30px;
}

.themes {
	padding-top: 10px;
}

div.themes ul {
  list-style-type: none;
}


/* User recipes */
div.recipes-container {
  margin-bottom: 40px;
}

div.recipes .fineli-row.l2 .segment {
  background-color: #9171bc;
  color: white;
}

div.recipes .fineli-row h3 {
  display:inline-block;
  color: white;
  font-size: 1.4em;
  margin: 0;
}
div.recipes .fineli-row p {
  color: white;
  display:inline-block;
  margin: 0px;
}
div.recipes .fineli-row h4 {
  font-size: 1em;
}
div.recipes h3 .form-control {
  font-size: .65em;
}
div.recipes .form-control {
  font-size: 1em;
}

div.recipes .fineli-row .fa {
  color: #ffffff;
}
div.recipes .fineli-row.l2 .fa {
  color: #ffffff;
}
div.recipes .fineli-row.l3 .fa {
  color: #9171bc;
}
div.recipes .fineli-row.l2 .input-group-btn .fa {
  color: #9171bc;
}
div.recipes .btn {
  font-size: 14px;
}
div.recipes .fineli-row button.btn-default {
  background-color: #ffffff;
}
div.recipes .fineli-row button.foods-diary {
  background-color: #ffffff;
}


#update-password-form .form-control {
  color: #000;
  font-size: 1em;
  border-color: #9171bc;
}
div.share {
  margin: 10px;
  height: 20px;
}
div.share a {
  line-height: 11px;
}

section.newslist h2 {
	font-size: 1.5em;
	font-weight: 600;
}
