.login-container {
    padding:15px;
    border-radius:8px;
    background: white;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.login-container .input-group {
    margin-bottom:10px;
}

.login-container h3 {
    margin-bottom:35px;
}

body {
    background:#ecf0f1;
    font-family: Roboto, sans-serif;
}

#algo_logic_table td {
    border: solid 1px gainsboro;
}

body.login {
    background: rgba(250,255,219,1);
    background: -moz-linear-gradient(top, rgba(250,255,219,1) 0%, rgba(190,242,100,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(250,255,219,1)), color-stop(100%, rgba(190,242,100,1)));
    background: -webkit-linear-gradient(top, rgba(250,255,219,1) 0%, rgba(190,242,100,1) 100%);
    background: -o-linear-gradient(top, rgba(250,255,219,1) 0%, rgba(190,242,100,1) 100%);
    background: -ms-linear-gradient(top, rgba(250,255,219,1) 0%, rgba(190,242,100,1) 100%);
    background: linear-gradient(to bottom, rgba(250,255,219,1) 0%, rgba(190,242,100,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#faffdb', endColorstr='#bef264', GradientType=0 );
}

h1 {
    font-weight: 300;
}

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

div.main {
    padding-top: 50px;
}


/*
 * Sidebar
 */

.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: #2c3e50;
    border-right: 1px solid #eee;
  }
}

.sidebar .nav>li>a {
    color: #8e99a2;
}

.sidebar .nav>li>.nav>li>a {
    padding-left:40px;
}

.sidebar .nav>li>a:hover, .nav>li>a:focus {
    color: white;
    background:#2c3e50;
}

.sidebar .nav>li.active>a {
    background:#2f3949;
    border-left:4px solid #4CAA1F;
    padding-left:16px;
}

/* Sidebar navigation */
.sidebar .nav-sidebar {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.sidebar .nav-sidebar > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.sidebar .nav-sidebar > .active > a {
  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;
}

.widget {
    padding: 20px;
    background:white;
    border: 1px solid rgba(20, 20, 80, 0.2);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0 15px 15px 0;
}

.widget h2 {
    margin-top:5px;
    margin-bottom:20px;
    font-weight: 300;
}

.tab-pane {
    padding: 25px;
    background:rgba(255, 255, 255, 0.9);
    border-left:1px solid #dddddd;
    border-right:1px solid #dddddd;
    border-bottom:1px solid #dddddd;
}

.nav-tabs li:hover a {
    background:#f8f8f8;
    transition: all 0.2s ease-in-out;
}

.tab-pane h3 {
    margin-bottom:20px;
    font-weight: 300;
}

.action-btn {
    margin-bottom: 20px;
}

.action-btn .glyphicon {
    margin-right: 8px;
}

/* forms */

input[type="text"], input[type="password"], input[type="number"], input[type="email"], textarea, .select2-container ul {
    width:100%;
    padding: 5px 10px;
    border-radius:3px;
    border: 1px solid #999;
    box-shadow: 0px 1px 2px #dddddd inset;
}

textarea {
    min-height: 100px;
}

.inline-label {
    padding:6px 0px;
    display: inline-block;
}

form.admin-form {
    padding: 20px;
    background:white;
    border: 1px solid rgba(20, 20, 80, 0.2);
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0 15px 15px 0;
}

form.admin-form.no-borders {
    border: 0;
    box-shadow: none;
    background: transparent;
}

form .buttons-container {
    margin-top:20px;
}

form .buttons-container .btn {
    margin-left:5px;
}

.formError {
    margin-top: 8px;
    margin-bottom:5px;
    color: #999999;
}

.formError .glyphicon {
    margin-right:5px;
}

.dataTables_filter input {
    font-weight: normal;
}

.sorting, .sorting_asc, .sorting_desc {
    cursor: pointer;
}

.sorting::after, .sorting_asc::after, .sorting_desc::after {
    background-repeat: no-repeat;
    content: ' ';
    display:inline-block;
    background-image: url(../images/sorting.png);
    background-position: -8px -1px;
    width:20px;
    height:20px;
}

.sorting_asc::after {
    background-position-x: -9px;
}

.sorting::after {
    background-position-y: -25px;
}

.sorting_desc::after {
    background-position-y: -49px;
}

.thumbnail {
    margin-right:15px;
}

#componentsList {
    margin: 15px 15px 15px 0px;
    padding-left:10px;
}

#componentsList li {
    list-style: none;
    margin-bottom: 5px;
}    

#componentsList li input[type="number"] {
    margin-left:10px;
    width:100px;
    margin-right:10px;
}

.no-image {
    width: 50px;
    height: 50px;
    display: inline-block;
    font-size: 28px;
    color: #dddddd;
    text-align: center;
    padding: 10px 0;
    box-sizing: border-box;
    background:white;
    border: 1px solid #dddddd;
}

span.glyphicon.glyphicon-ok.text-success {
    font-size:18px;
}

span.unit {
    min-width:90px;
    display: inline-block;
}

#recipe .bootstrap-select:not([class*="span"]):not([class*="col-"]):not([class*="form-control"]):not(.input-group-btn) {
    width: 100%;
}

/* pagination */

.dataTables_paginate {
    margin-top:15px;
    float: right;
}

.dataTables_paginate a {
    padding:5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.dataTables_paginate a.paginate_button_disabled {
    color:#cccccc;
}

.dataTables_paginate a.paginate_active {
    background-color:#ddddff;
}

.dataTables_length {
    float:right;
}

.dataTables_length label {
    font-weight: normal ;
}

.dataTables_info {
    float:left;
    margin-top:15px;
}

.dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 50px;
    margin-left: -125px;
    margin-top: -15px;
    padding: 14px 0 2px 0;
    border: 1px solid #ddd;
    text-align: center;
    color: black;
    font-size: 18px;
    background-color: white;
}

td.tableWarning {
    font-weight: bold;
    color: #cc0000;
}

div#results {
    position: relative;
}

/* manufacturing */
.mfg-ingredients {
    background-color: #e7efff;
    padding:15px;
    border-radius: 5px;
    margin:0;
}

.mfg-results {
    background-color: #e7ffe7;
    padding:15px;
    border-radius: 5px;
    margin:0;
}

.mfg-arrow {
    font-size: 36px;
    color:#999999;
    margin-left:10px;
    margin-top:18px;
}

.mfg-ingredients hr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.btn {
    background: #E6E6E6;
}

.btn.edit, .btn.approve {
    color: #008A00;
}

.btn.remove, .btn.reject {
    color: #A30000;
}

.btn.btn-info, .btn.btn-success {
    background-color: #5BC0DE;
    border-color: #269ABC;
}

.btn.btn-success:hover {
    background-color: #5CB85C;
    border-color: #4CAE4C;
}

.btn.btn-cancel:hover {
    background-color: #E67373;
    border-color: #DA5F5F;
}

.btn.btn-toolbar {
    margin: 0 2px;
}

td.two-actions {
    width: 110px;
}

td.three-actions {
    width: 155px;
}

td.four-actions {
    width: 205px;
}

.navbar-brand {
    padding: 5px 10px;
}

input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea {
    background: #F2F2F2;
    color: #333333;
}

div.login-form {
    width: 250px;
}

h1 span, h2 span {
    font-size: 14px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 20px;
    vertical-align: middle;
    margin-top: 8px;
}

.switch input {display:none;}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #A1A6AB;
    -webkit-transition: .4s;
    transition: .4s;

}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #008A00;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
