﻿body {
    padding-top: 10px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 30px;
    padding-right: 30px;
    position: relative;
    margin-bottom: 90px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}*/
table.cp-table td input, table.cp-table td select, table.cp-table td textarea  {
    margin: 0;
}

html {
  height: 100%;
}

body {
  font-size: 16px;
  height: 100%;
  font-family: Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
  position: relative;
}

body.wide {
  min-width: 750px;
}

body, h1, h2, h3, h4, h5, h6 {
  font-family: Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 400;
}

.body-wrapper {
  position: relative;
  min-height: 100%;
  padding-bottom: 20px;
}

footer {
  margin-top: 40px;
}

.right {
  float: right !important;
}

.left {
  float: left !important;
}

.content {
  position: relative;
}

.body-content-small {
  margin: 0px auto;
  width: 100%;
  max-width: 600px;
}

.form-small {
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
}

.form-wrapper {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  background-color: white;
  padding: 0px 40px;
  margin-top: 20px;
}

textarea.tinymce {
    display: block !important;
    visibility: hidden;
    position: absolute;
}

.center {
  margin: 0px auto;
}

.logo-panel {
  width: 100%;
  background-color: #243444;
  margin-top: 40px;
  margin-bottom: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height:40px;
}

.logo-panel img {
  display: block;
  max-height: 130px;
  max-width: 410px;
  margin: 0px auto;
}

#lang-dropdown {
    width: 12rem;
    margin-right: 1rem;
}

.reveal-overlay {
  z-index: 1325;
}

.lead {
  font-size: 140%;
}

.modal-text {
  font-size: 17px;
  text-align: justify;
  color: #333;
}

.sub-title {
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 20px;
  text-transform: none;
  text-align: center;
  font-weight: bold;
  padding: 10px 10px;
  border-bottom: 2px solid black;
  border-top: 2px solid black;
}

.sub-title-no-border {
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 20px;
  text-transform: none;
  text-align: center;
  font-weight: bold;
  padding: 10px 10px;
}

.title-img {
  height:36px;
  display:inline-block;
  margin-right:10px;
}

.align-center {
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.callout.primary,
.callout.alert {
    position: absolute;
    width: calc(100% - 60px);
    z-index: 1300;
    opacity: 0.95;
}


.body-content-small .callout {    
    width: 100%;
    max-width: 600px;
    padding-right: 2rem;
}

#menu-pnl {
    position: relative;
    z-index: 1310;
}

#menu-pnl .title-bar {
  background: #243444;
  padding: 0.8rem;
  display: none;
}

#menu-pnl .title-bar .menu-icon {
    width: 100%;
    text-align: right;
}

#menu-pnl .title-bar .menu-icon:after {
    width: 1.5rem;
    right: 0;
    left: auto;
}

#menu-pnl .title-bar .menu-icon div {
    margin-right: 2rem;
    color: #fefefe;
}

@media screen and (max-width: 39.9375em) {
    #menu-pnl {
        margin-bottom: 2rem;
    }

    #menu-pnl #animated-menu {
        position: absolute;
        display: none;
    }
    #main-menu > li {
        width: 100%;
    }
}

#main-menu {
  background: #243444;
  margin-bottom:40px;
  padding: .5rem .65rem;
}

#main-menu li a {
  color:white;
}

#main-menu li a:hover,
#main-menu li.active {
  color:#80A349;
}

#main-menu .active > a {
  background: inherit;
  color: #80A349;
}

#main-menu.dropdown.menu > li.is-dropdown-submenu-parent > a::after {
  border-color: white transparent transparent;
}

#main-menu ul.submenu li a {
    color: #243444;
}

#main-menu ul.submenu li a:hover, 
#main-menu ul.submenu li.active a {
  color:#80A349;
}

button.dropdown.clean {
  background:none;
  color: black;
  margin-bottom:10px;
}

button.dropdown.clean::after {
  border-color:black transparent transparent;;
}

button i {
  margin-right:5px;
}

label {
    display: inline;
    margin-left: 0.25rem;
}

.ms-options-wrap {
	border: 1px solid #cacaca;
	border-radius: 0;
	background-color: #fefefe;
	font-size: 1rem;
	line-height: 1.5;
	max-width: 280px;
	position: relative;
	height: 2.4375rem;
}

.ms-options-wrap > button,
.ms-options-wrap > button:hover,
.ms-options-wrap > button:focus {
	font-size: 1rem !important;
	padding: 0.6rem !important;
	border: none !important;
}

.ms-options-wrap > button > span {
	font-size: 1rem;
	border: none;
}

.ms-options-wrap > button::after {
	right: 8px;
	border: 5px solid rgba(0, 0, 0, 0);
	border-top-color: #999;
}

.ms-options-wrap .ms-options {
	max-width: 280px;
}

.ms-options-wrap > .ms-options > ul label {
	line-height: 1.3rem;
	padding: 2px;
}

.ms-options-wrap > .ms-options > ul label > input {
	visibility: hidden;
}

#system-title {
	float: left;
	margin-left: 20px;
	font-size: 20px;
}

#system-title img {
  height:38px;
  display:inline-block;
  margin-right:10px;
}

#system-title .base-title {
  font-size:16px;
  color:#808080;
}

#user-submenu {
  width: auto;
  min-width:170px;
  padding: 10px 8px;
  z-index: 1315;
}

#user-submenu ul {
  list-style: none;
  margin-bottom: 0px;
  margin-left:0px;
}

#user-submenu ul a {
  color: #000;
}

.fa.success {
    color: #799B45;
}

.fa.alert {
    color: #A00;
}

.fa.primary {
    color: #13598E;
}

/* Tables */

.table-loading {
  text-align: center;
  padding-top: 60px;
}

.table-loading i {
  font-size: 32px;
}

tr.vertical-top {
  vertical-align: top;
}

table.scrollable {
  display: table;
  width: 100%;
}

table.scrollable thead, table.scrollable tbody {
  width: 100%;
}

table.scrollable tbody {
  display: block;
  overflow: auto;
  height: 215px;
}

table.scrollable tr {
  width: 100%;
  display: table;
  text-align: left;
}

table,
table.cp-table {
  width: 100%;
}

table.cp-table,
table.light {
  border: none;
  font-size: 16px;
}

table.cp-table thead {
  background: #fff;
  border: none;
  border-bottom: 2px solid #799B45;
}

table.light,
table.light thead,
table.light tbody {
  background: #fff;
  border: none;
}

table.light tbody tr:nth-child(2n) {
  background-color: #fff;
}

table.cp-table thead th {
  font-weight: 500;
}

table.cp-table tbody {
  border: none;
}

table.cp-table tbody td {
  border-bottom: 1px solid #B7B7B7;
}

table tbody tr:nth-child(2n),
table.co-table tbody tr:nth-child(2n),
table.hover tbody tr:nth-child(2n) {
  background-color: #fff;
}

table.hover tr:hover,
table.hover tr:nth-of-type(2n):hover {
  background-color: #ececec;
}

table.hover tbody tr {
  cursor: pointer;
}

table.editable-grid tfoot td.total {
	text-align: right;
}

table.light {
  border: none;
  font-size: 16px;
}

.cp-table .summary-row {
	background: #eee;
	font-weight: bold;
}

.sgrid-container {
  width: 100%;
  position: relative;
}

table.sgrid {
  border: none; 
  border-collapse: collapse;
  width:100%;
  table-layout:fixed;
}

table.sgrid td,
table.sgrid th { 
  border-left: 1px solid #f5f5f5; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.sgrid td:first-child,
table.sgrid th:first-child { 
  border-left: none; 
}

table.fixed {
  table-layout: fixed;
}

.sg-header-link,
.sg-header-link:hover,
.sg-header-link:active,
.sg-header-link:focus {
  color:black;
}

.sg-header-text {
  color:black;
  cursor:default;
}

table th.size-1,
table td.size-1 {
    width: 5%;
}
table th.size-2,
table td.size-2 {
    width: 10%;
}
table th.size-3,
table td.size-3 {
    width: 15%;
}
table th.size-4,
table td.size-4 {
    width: 20%;
}
table th.size-5,
table td.size-5 {
    width: 25%;
}
table th.size-6,
table td.size-6 {
    width: 30%;
}
table th.size-7,
table td.size-7 {
    width: 35%;
}
table th.size-8,
table td.size-8 {
    width: 40%;
}
table th.size-9,
table td.size-9 {
    width: 45%;
}
table th.size-10,
table td.size-10 {
    width: 50%;
}
table th.size-11,
table td.size-11 {
    width: 55%;
}
table th.size-12,
table td.size-12 {
    width: 60%;
}
table th.size-13,
table td.size-13 {
    width: 65%;
}
table th.size-14,
table td.size-14 {
    width: 70%;
}
table th.size-15,
table td.size-15 {
    width: 75%;
}

table span.text-inline {
    height: 2.4375rem;
    display: inline-block;
}

/* end of Tables */

a i.fa {
  margin-right: 5px;
}

.top20 {
  margin-top: 20px !important;
}

h2.page-title {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.pagination .current {
  padding: 0px;
  background: none;
  color: #000;
  cursor: default;
  font-weight: 700;
}

.asterisk {
  color: #BE5B41;
  padding-left: 3px;
}

.pagination .current a,
.pagination .current button {
  color: #000;
}

.pagination a,
.pagination button {
  color: #8A8A8A;
  display: block;
  padding: 4px 8px;
  border-radius: 0;
}

.button,
.button.warning {
  font-weight: 400;
  /*border-radius: 4px;*/
  background-color: #0E406A;
}

.button:hover,
.button.warning:hover  {
  background-color: #13598E;
}

.button.icon-btn {
  margin-bottom: 0px;
}

a.icon-btn i {
  margin: 0px;
}

.button.medium-width {
  width: 140px;
}

.button.large-width {
  width: 250px;
}

.button.extra-large-width {
  width: 400px;
  max-width: 400px;
}

.button.small-width {
  width: 110px;
  margin-top: 3px;
}

.button.action,
.button.warning.action {
  background-color: #799B45;
  /*border: 1px solid #6A873C;*/
  color: #fff;
  text-transform: uppercase;
}

.button.secondary,
.button.warning.secondary {
  background-color: #999;
  text-transform: uppercase;
}

.button.secondary:hover,
.button.warning.secondary:hover {
  background-color: #777;
}

.button.action:hover,
.button.warning.action:hover {
  background-color: #5E7735;
}

.button.danger,
.button.danger.action {
  background-color: #A00;
  text-transform: uppercase;
}

.button.danger:hover,
.button.danger.action:hover {
  background-color: #F00;
}

.button.round {
    width: 2rem;
    height: 2rem;
    border-radius: 1rem;
    padding: 0;
    background: none !important;
    border: 3px solid #0E406A;
    color: #0E406A;
}

.button.round:hover {
    border: 3px solid #13598E;
    color: #13598E;
}

.button.round .fa {
    margin: 0.4rem;
}

.button.round.secondary {
    border: 3px solid #999;
    color: #999;
}

.button.round.secondary:hover {
    border: 3px solid #777;
    color: #777;
}

.button.round.action {
    border: 3px solid #799B45;
    color: #799B45;
}

.button.round.action:hover {
    border: 3px solid #5E7735;
    color: #5E7735;
}

.button.round.danger {
    border: 3px solid #A00;
    color: #A00;
}

.button.round.danger:hover {
    border: 3px solid #F00;
    color: #F00;
}

.button.loading .fa::before {
    content: "\f1ce";
}
.button.loading .fa {
	animation: full-rotation 2s infinite linear;
	-webkit-animation: full-rotation 2s infinite linear;
	-moz-animation: full-rotation 2s infinite linear;
}

@keyframes full-rotation {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(359deg);
	}
}

@-webkit-keyframes full-rotation {
	from {
		-webkit-transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(359deg);
	}
}

@-moz-keyframes full-rotation {
	from {
		-moz-transform: rotate(0deg);
	}
	to {
		-moz-transform: rotate(359deg);
	}
}

.icon-right.action {
    color: #799B45;
}

.icon-right.action:hover {
    color: #5E7735;
}

.icon-right.danger {
    color: #A00;
}

.icon-right.danger:hover {
    color: #F00;
}

td.actions .icon-right {
    display: block;
    box-sizing: border-box;
    height: 2.4375rem;
    margin: 0 0 1rem;
    padding: .5rem 0;
}

.ex-section {
  margin-bottom:40px;
}

.ex-section .exs-header {
  text-transform: uppercase;
  font-size: 18px;
  color: #6A873C;
  border-bottom: 1px solid #6A873C;
  line-height: 2.0;
  margin-bottom: 10px;
  position: relative;
  cursor: pointer;
}

.ex-section .exs-header:hover {
  color: #799B45;
}

.ex-section .exs-header:after {
  content: "";
  width: 20px;
  height: 20px;
  background: url("img/icon-down-circle-green.png");
  background-size: cover;
  top: 8px;
  right: 5px;
  position: absolute;
  display: inline-block;
  -webkit-transition-duration: 0.6s;
  -moz-transition-duration: 0.6s;
  -o-transition-duration: 0.6s;
  transition-duration: 0.6s;
}

.ex-section.active .exs-header:after {
  transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
}

.ex-section .exs-content {
  font-weight: 300;
  border-bottom: 1px solid #D2D2D2;
  padding: 20px 0px;
}

/* */

.ex-section.danger .exs-header {
  color: #A00;
  border-bottom: 1px solid #A00;
}

.ex-section.danger .exs-header:hover {
  color: #F00;
}

.ex-section.danger .exs-header:after {
  background: url("img/icon-down-circle-red.png");
  background-size: cover;
}

/* Home page */

.jumbotron .left-bar {
    padding-right: 1rem;
}

.jumbotron .left-bar,
.jumbotron .option-tiles {
    float: left;
    width: 100%;
}

.jumbotron .contact .plant-logo {
    width: 100%;
    text-align: center;
    display: inline-block;
    margin-bottom: 1rem;
}

.jumbotron .contact .plant-logo img {
    height: 250px;
}

.jumbotron .left-bar .system-info {
    font-size: 0.8rem;
    color: gray;
}

.jumbotron .left-bar .welcome,
.jumbotron .left-bar .contact,
.jumbotron .option-tiles .tile {
    border: 1px solid #dadada;
    padding: 10px;
    margin: 0.5rem;
    float: left;
}

.jumbotron .left-bar .welcome,
.jumbotron .left-bar .contact {
    width: 100%;
}

.jumbotron .option-tiles .tile {
    width: calc((100% - 2rem) / 2);
    height: 15rem;
    text-align: center;
    font-size: 1.5rem;
    transition: background-color .25s ease-out,color .25s ease-out;
    cursor: pointer;
}

.jumbotron .option-tiles .tile:hover {
    background-color: #ccc;
}

.jumbotron .option-tiles .tile .fa {
    display: block;
    font-size: 5rem;
    margin: 2rem;
    color: #66823A;
}

.jumbotron .option-tiles .tile a {
    color: #000;
    width: 100%;
    height: 100%;
    display: inline-block;
}

@media only screen and (min-width: 40rem) {
    .jumbotron .left-bar {
        width: 50%;
    }

    .jumbotron .option-tiles {
        width: 50%;
    }
}

@media only screen and (min-width: 65rem) {
    .jumbotron .left-bar {
        width: 35%;
    }

    .jumbotron .option-tiles {
        width: 65%;
    }
    .jumbotron .option-tiles .tile {
        width: calc((100% - 3rem) / 3);
    }
}

@media only screen and (min-width: 80rem) {
    .jumbotron .left-bar {
        width: 30%;
    }

    .jumbotron .option-tiles {
        width: 70%;
    }
    .jumbotron .option-tiles .tile {
        width: calc((100% - 4rem) / 4);
    }
}

@media only screen and (min-width: 95rem) {
    .jumbotron .left-bar {
        width: 25%;
    }

    .jumbotron .option-tiles {
        width: 75%;
    }
    .jumbotron .option-tiles .tile {
        width: calc((100% - 5rem) / 5);
    }
}

.filter-buttons {
  float: right;
  margin-top: 1.4rem;
  width: 100%;
}

.filter-buttons #filter-search-btn,
.filter-buttons #filter-clear-btn {
  min-width: 100px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.filter-buttons button {
  margin-bottom: 10px;
}

.control-bar {
  padding: 10px 20px;
  position: fixed;
  bottom: 0px;
  right: 0px;
  padding-top: 20px;
  background-color: #f1f1f1;
  border-top: 1px solid #dadada;
  left: 0px;
  z-index: 1305;
}

.property-header {
  color: #777;
  width: 220px;
  vertical-align: top;
  padding-top: 1rem;

}

.section-header {
  font-size: 24px;
  line-height: 1.8;
}

.no-margin-cell {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.left-margin {
  margin-left: 10px;
}

.right-btn {
  margin-left: 10px;
  float: right;
  min-width: 90px;
}

.cell.spec-grid-cell {
  border: 1px solid #dadada;
  position: relative;
  padding-bottom: 3.5rem;
}

.spec-grid-cell .image-box {
    max-width: 100%;
}

.spec-grid-cell table.spec-grid-description {
    width: 100%;
    margin: 0;
}

@media print, screen and (min-width: 40em) {
    .spec-grid-cell .image-box {
        max-width: 160px;
        float: left;
        min-height: 10px;
    }

    .spec-grid-cell table.spec-grid-description {
        float: left;
        width: calc(100% - 160px);
    }

    .spec-grid-cell table.spec-grid-description.full-width {
        width: 100%;
    }
}

.spec-grid-cell .control-box {
    width: 100%;
    clear: both;
    display: inline-block;
    position: absolute;
    bottom: 0;
    right: 0;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.spec-grid-cell .control-box a {
    margin: 1rem 0 0 1rem;
}

.spec-grid-cell img.spec-illustration {
    margin-right: 10px;
    margin-bottom:10px;
}

.spec-grid-cell table.spec-grid-description .property-header {
    width: 35%;
}

.spec-grid-cell table.spec-grid-description td {
    padding-top: 0;
}

.wordwrap {
    word-break: break-all; 
    word-wrap: break-word; 
}

table tr.spec-row td {
    vertical-align: top;
    line-height: 2.4375;
}

.left-assign-list {
    float: left;
    width: calc(50% - 35px);
    height: 300px;
    margin-right: 10px;
}

.right-assign-list {
    float: left;
    width: calc(50% - 35px);
    height: 300px;
    margin-left: 10px;
}

.assign-list {
    height: 250px !important;
}

.left-assign-list .property-header,
.right-assign-list .property-header {
    margin-bottom: 10px;
    display: inline-block;
}

.assign-buttons {
    float: left;
    width: 50px;
    padding: 110px 0;
    text-align: center;
}

.assign-buttons i.fa {
    margin: 0;
}

.hidden-initial,
.hidden-fields {
    display: none;
}

.field-validation-error {
    color: #ee0000;
}

/* dialog */

.ui-widget.ui-widget-content {
    border: 0;
    border-radius: 0;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.75);
}

.ui-dialog .ui-dialog-titlebar {
    background: #243444;
    border: none;
    border-radius: 0px;
    padding: 8px 10px;
    color: #eee;
}

.ui-dialog .ui-button {
    cursor: pointer;
}

.ui-dialog .ui-button.ui-dialog-titlebar-close {
    background: none;
    border: none;
}
.ui-dialog .ui-button.ui-corner-all {
    float: right;
}

.ui-dialog .ui-button-icon-only {
    width: 20px;
    height: 20px;
    display: block;
    color: transparent;
}

.ui-button-icon {
    margin: 0.3rem 0;
    color: #ffffff;
    text-indent: 0;
    background-image: none !important;
    display: inline-block;
    font-family: FontAwesome;
    font-size: 14px;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ui-button:hover .ui-button-icon {
    color: #ffaaaa;
}

.ui-button-icon.ui-icon-closethick::before {
    content: "\f00d";
}

.ui-dialog .ui-dialog-content {
    padding: 0.85rem;
    border: none;
}

.ui-dialog .ui-dialog-buttonpane {
    padding: 0.85rem;
    border: none;
    height: auto;
}

.ui-dialog .ui-dialog-buttonpane button {
    color: #eee;
    display: inline-block;
    min-width: 90px;
    padding: .85em 1em;
    margin-left: 0.85rem;
    border: none;
    background-color: #0E406A;
    font-family: Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
    -webkit-appearance: none;
    border: 1px solid transparent;
    border-radius: 0;
    transition: background-color .25s ease-out,color .25s ease-out;
    font-size: .9rem;
    line-height: 1;
    text-align: center;
}
.ui-dialog .ui-dialog-buttonpane button:hover {
    background-color: #13598E;
}

.single-column {
    width: 100%;
    float: left;
}

.main-column {
    width: 70%;
    margin-right: 1rem;
    float: left;
}

.sidebar-column {
    width: calc(30% - 1rem);
    float: left;
    border: 1px solid #dadada;
    padding: 1rem;
}

/* Email templates */

.email-template-entry .exs-header {
    color: #222;
    border-bottom: 1px solid #dadada;
}

.email-template-entry table {
    margin-bottom: 0;
}

.email-template-entry .email-template-fields {
    padding: .5rem 1rem;
}

.email-template-entry .buttons button {
    margin-bottom: 0;
}

.crate-quantity input {
    text-align: center;
}