/* Copyright 2011 Nutritional Information Services. All rights reserved. */

/**
 ** NUTRITION CALCULATOR
 **/
/*
 * Root container
 */
#nutracalc-placeholder {
  position: relative;
  padding: 5px;
}

/*
 * Inner container
 */
#nutracalc {
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.nutracalc-dialog {
  max-width: 100%;
}

/*
 * Text labels (ex: Categories, Items, Item Options, Meal Contents)
 */
.nutracalc-label {
  font-weight: bold;
}

/*
 * NutraCalc buttons and other form elements
 */
#nutracalc input[type=button] {
  width: 100%;
  text-align: center;
}

/*
 * Container for #nutracalc-categories and #nutracalc-items
 */
#nutracalc-item-selector {
}

/*
 * Category label and dropdown box
 */
#nutracalc-categories {
  display: inline-block;
  margin-right: 10px;
}

/*
 * Item label and dropdown box
 */
#nutracalc-items {
  display: inline-block;
}

/*
 * Item Options container
 */
#nutracalc-substitutions {
  display: inline-block;
  width: 250px;
}

/*
 * Container for item options checkboxes/labels
 */
#nutracalc-substitutions-contents {
  height: 470px;
  overflow: auto;
}

/*
 * Meal Contents container
 */
#nutracalc-meal {
  display: inline-block;
  width: 250px;
  margin-left: 5px;
  margin-right: 5px;
}

/*
 * Container for all meal item rows
 */
#nutracalc-meal-contents {
  height: 420px;
  overflow: auto;
}

/*
 * Individual meal item row
 */
.nutracalc-meal-item {
  padding: 3px;
}

/*
 * Can be used to apply alternating colors to meal item rows
 */
.nutracalc-meal-item.odd {
  background-color: #f0f0f0;
}
.nutracalc-meal-item.even {
  background-color: #e6e6e6;
}

/*
 * Can be used to apply a special color to the selected meal item
 */
.nutracalc-meal-item.selected,
.nutracalc-meal-item.selected.odd,
.nutracalc-meal-item.selected.even {
  background-color: #d3c4ff;
}

/**
 * The contents of a meal item
 */
.nutracalc-meal-item-contents {
  display: none;
  margin-left: 10px;
  font-size: 10px;
  font-weight: normal;
}

.selected .nutracalc-meal-item-contents {
  display: block;
}

/*
 * The entire nutrition facts label
 */
#nutracalc-nutrition {
  display: inline-block;
  width: 250px;
  height: auto;
  padding: 5px;
  font-size: 12px;
  color: #000000;
  background-color: #ffffff;
  border: 1px solid #000000;
}

#nutracalc-link {
  font-size: smaller;
  text-align: center;
}

/*
 * NUTRITRION LABEL CLASSES
 */
#nutracalc-nutrition-label-name {
  font-weight: bold;
  text-align: center;
}

#nutracalc-nutrition-label {
  font-weight: bold;
  text-align: center;
}

#nutracalc-nutrition-serving-amount {
  font-style: italic;
}

#nutracalc-nutrition-dv-info {
  font-size: smaller;
}

.nutracalc-nutrition-major-field {
  font-weight: bold;
}

.nutracalc-nutrition-minor-field {
  margin-left: 10px;
}

.nutracalc-nutrition-field, .nutracalc-nutrition-field-value {
  display: inline-block;
  margin-top: 2px;
  margin-bottom: 2px;
}

.nutracalc-nutrition-daily-value {
  float: right;
}

.nutracalc-nutrition-list-label {
  font-weight: bold;
}

hr.nutracalc-hr-thin {
  color: #000000;
  background-color: #000000;
  clear: both;
  border: 1px #000000 solid;
  padding: 0px;
  margin-top: 3px;
  margin-bottom: 3px;
  width: 90%;
  height: 1px;
}

hr.nutracalc-hr-medium {
  color: #000000;
  background-color: #000000;
  clear: both;
  border: 1px #000000 solid;
  padding: 0px;
  margin-top: 3px;
  margin-bottom: 3px;
  width: 95%;
  height: 2px;
}

hr.nutracalc-hr-thick {
  color: #000000;
  background-color: #000000;
  clear: both;
  border: 1px #000000 solid;
  padding: 0px;
  margin-top: 3px;
  margin-bottom: 3px;
  width: 98%;
  height: 3px;
}

hr.nutracalc-hr-full {
  color: #000000;
  background-color: #000000;
  clear: both;
  border: 1px #000000 solid;
  padding: 0px;
  margin-top: 3px;
  margin-bottom: 3px;
  width: 100%;
  height: 1px;
}

/**
 ** ALLERGEN WIZARD
 **/
#nutracalc-allergen-instructions {
  text-align: center;
}

#nutracalc-allergen-checklist {
  font-size: larger;
  text-align: center;
}

.nutracalc-allergen-checkbox-item {
  display: inline-block;
  padding: 20px;
  min-width: 20%;
}

#nutracalc-allergen-tos {
  font-size: smaller;
  text-align: center;
}

#nutracalc-allergen-next-button-container {
  text-align: center;
  padding: 10px;
}

#nutracalc-allergen-next-button {
  font-size: large;
  text-align: center;
  padding: 10px;
}

#nutracalc-allergen-table {
  border-collapse: collapse;
}

.nutracalc-allergen-column-header {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  padding: 10px 0;
  text-align: center;
  width: 100px !important;
}

.nutracalc-allergen-category-header-column {
  font-size: larger;
  font-weight: bold;
  padding: 10px 0 5px 5px;
}

.nutracalc-allergen-row {
}
.nutracalc-allergen-row.odd {
}
.nutracalc-allergen-row.even {
  background-color: #f0f0f0;
}

.nutracalc-allergen-row:hover,
.nutracalc-allergen-row.odd:hover,
.nutracalc-allergen-row.even:hover {
  background-color: #d3c4ff;
}

.nutracalc-allergen-column-name {
  width: 100%;
  padding-left: 5px;
}

.nutracalc-allergen-column-indicator {
  text-align: center;
}

.nutracalc-allergen-indicator {
  display: inline-block;
  color: #ffffff;
  width: 1.4em;
  height: 1.4em;
  border-radius: 0.7em;
  margin: 3px;
  text-align: center;
}

.nutracalc-allergen-indicator-positive {
  background-color: #cc2929;
}

.nutracalc-allergen-indicator-positive:after {
  content: '!';
}

.nutracalc-allergen-indicator-negative {
  background-color: #29cc29;
}

.nutracalc-allergen-indicator-negative:after {
  content: '\2713';
}

#nutracalc-allergen-list {
  display: inline-block;
}
