body {
  background: #f4f4f4;
}

body, p {
  font-family: 'Open Sans', sans-serif;
  font-size: .95rem;
}

[contenteditable]:focus { outline: 0px solid transparent; }

h1, h2, h3, h4, h5, h6 {
  
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
}

select {
  color: #000;
}

small {
  font-size: 70%;
}

.vertical-spaced {
  margin: 15px 0;
}

a.label {
  color: #fff !important;
}

.label {
  margin-right: 5px;
  margin-bottom: 10px;
}

.f-dropdown li {
  width: 100%;
}

.alert-box ul {
  margin-bottom: 0;
}

.success-text {
  color: green;
}

.danger-text {
  color: #f04124;
}

.warning {
  background-color: #F28A02;
}

.warning:hover {
  background-color: #e58302;
}

/* LOGIN PAGES
-------------------------------------------------------------------- */

.login-panel {
  background-color: #fff;
}

.remove-tag {
  display: inline-block;
  background-color: #fff;
  width: 13px;
  height: 13px;
  margin-left: 3px;
  line-height: 9px;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ccc;
}

.remove-tag:hover {
  background-color: #bbb;
  color: #fff;
}

/* NAVIGATION
-------------------------------------------------------------------- */

.off-canvas-wrap {
  min-height: 100%;
}

ul.off-canvas-list li a.small {
  background-color: #222;
  padding: 0.2rem 0.66667rem;
  font-size: .8rem;
}

li.search-form {}

ul.off-canvas-list li a {
  font-size: .9rem;
}

/* COMPANY SHOW VIEW
-------------------------------------------------------------------- */

.notes-wrap {
  padding: 0 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

.note {
  padding: 10px 0;
  margin-bottom: 15px;
  border-top: 1px solid #eee;
}

.note-form {
  background-color: #fafafa;
  margin-bottom: 0;
  padding-top: 15px;
  border-top: 1px solid #ccc;
}

.note small {
  padding: 5px;
}

.note-field {
  padding: 5px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.3em;
}

.note .save-notification {
  opacity: 0;
  background-color: #43AC6A;
  padding: 1px 7px;
  color: #fff;
  border-radius: 2px;
  transition: .2s linear;
}

.note .save-notification.active {
  opacity: 1;
}

.note-field:focus {
  background-color: #f6f6f6;
}

.company-attachments form {
  display: inline-block;
}

.company-attachments .button {
  padding: 0.15rem 0.4rem 0.275rem;
}

.company-attachments form, .company-attachments input {
  margin-bottom: 0;
}

.main-contact {
  background: lightblue;
  padding: 2px 5px;
}

h2 {
  border-bottom: 1px solid #ddd;
}

.contain-to-grid {
  margin-bottom: 20px;
}

.button.small {
  background-color: #ccc;
  color: #555;
}

.delete-form {
  margin: 10px 0;
}

.entity-actions form, .entity-actions .delete {
  margin-bottom: 0;
}

.entity-actions .delete {
  text-align: left;
  padding: 10px;
  font-size: inherit;
}

.text-only-button {
  background: none;
  border: none;
  padding: 0;
}

.desktop-nav {
  overflow-y: scroll;
  position: fixed;
  background-color: #333;
  width: 250px;
  height: 100%;
}

.search-form {
  margin-bottom: 0;
}

.search-form input {
  margin-bottom: 0;
}

.search-form button {
  padding-left: 0;
  padding-right: 0;
}

.search-box {
  border: 0;
}

.results-list {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.search-entry {
  padding: 5px 0;
}

.main {
  height: 100%;
  margin-left: 250px;
  padding: 20px 15px;
}

.main-content {
  background-color: #fff;
  border: 1px solid #ddd;
}

table .button.tiny {
  padding: .2rem .5rem;
}

table .button, table form {
  margin-bottom: 0;
}

.actions {
  display: none;
}

.address-set, .phone-set, .email-set {
  position: relative;
  background-color: #fafafa;
  padding-top: 1rem;
  border: 1px solid #eee;
  margin-bottom: 15px !important;
}

.add-entry {
  font-size: .9em;
}

a.remove {
  position: absolute;
  top: -10px;
  right: -10px;
}

.tag-label {
  margin-bottom: 10px;
}

.tag-label:hover {
  cursor: pointer;
  background-color: #ccc;
}

/* ADVANCED SEARCH
-------------------------------------------------------------------- */

.search-criteria {
}

/* EXPORT TO EXCEL
-------------------------------------------------------------------- */

.export-form {
  margin-bottom: 0;
}

.options-toggle {
  display: none;
}

a.tag-link {
  vertical-align: middle;
}

.label.tag:hover {
  background-color: #ddd;
}

/* AGREEMENTS
-------------------------------------------------------------------- */

/* List styling - open, closed, voided */

table tr.voided, span.voided  {
  background-color: #f2dede;
  border-bottom: 1px solid #ddd;
}

table tr.deleted, span.deleted  {
  background-color: #df6666;
  color: #fff;
  border-bottom: 1px solid #ddd;
}

table tr.deleted td, tr.deleted a, span.deleted a {
  color: #fff;
} 

table tr.closed, span.closed  {
  background-color: #dff0d8;
  border-bottom: 1px solid #ddd;
}

table tr.open, span.open  {
  background-color: #d9edf7;
  border-bottom: 1px solid #ddd;
}

table tr.submitted, span.submitted  {
  background-color: #ffde84;
  border-bottom: 1px solid #ddd;
}

.color-key span {
  display: inline-block;
  position: relative;
  padding: 3px 10px 2px;
  margin: 5px 15px 5px 0;
}

.color-key span.all {
  background-color: #eee;
}

.color-key sup {
  display: block;
  position: absolute;
  top: -7px;
  right: -10px;
  background-color: #fff;
  padding: 7px 5px;
  border-radius: 15px;
  border: 1px solid #ddd;
  font-size: .7em;
  color: #000;
  box-shadow: -1px 1px 0 rgba(0,0,0,0.2);
}

.units-sold .columns {
  padding: 30px 0;
  font-size: 1.5em;
}

.voided-table .title {
  background-color: #f04124;
  color: #fff;
}

.success-table .quantity {
  font-size: 1.3em;
  font-weight: bold;
}

.row.payment p {
  font-size: 1.5em;
  font-weight: bold;
}

.panel.payment {
  background-color: #dff0d8;
}

#agreementForm textarea, textarea {
  line-height: 1.3em;
  resize:vertical;
}

.check-amount {
  border: none;
}

.bonus-note {
  background-color: #fff;
  padding: 5px;
  margin-bottom: 15px !important;
}

.free-edit-wrap {
  padding: 15px;
  background-color: lightyellow;
  border: 1px solid brown;
  margin-bottom: 15px;
}

.help-text {
  font-size: .8rem;
  margin-top: -10px;
  font-style: italic;
}

/* Tag Filtering
-------------------------------------------------------------------- */

#tag-select-list {
  background-color: #fff;
  display: none;
  overflow: scroll;
  max-height: 200px;
  margin-top: -15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

#tag-select-list a {
  display: block;
  padding: 7px 10px;
  border-bottom: 1px solid #eee;
}

#tag-select-list a:hover {
  background-color: #008cba;
  color: #fff;
}

/* PLM
-------------------------------------------------------------------- */

.plmentry-actions form, .plmentry-actions .button {
  margin-bottom: 0;
}

.export-button {
  margin-bottom: 0;
  margin-top: 8px;
}

/* RETAIL PROMOTIONS
-------------------------------------------------------------------- */

.new-agreement-select {
  margin-left: 5px;
  margin-bottom: 15px;
}

.new-agreement-select strong {
  display: inline-block;
  vertical-align: middle;
}

#lineItemToggle {
  margin-bottom: 10px;
}

#apcLineItemForm {
  display: none;
  background: #FCF9E2;
  padding: 5px 0;
  margin-bottom: 15px;
  border: 1px solid #ddd;
}

.line-item-table td {
  border: 1px solid #fff;
}

.sub-total {
  background-color: #93D4EA;
}

.grand-total {
  background-color: #008CBD;
  font-size: 1.5em;
  color: #fff;
}

.print-button {
  margin-left: 5px;
}

#holidayBonusFreeform,
#additionalBonusFreeform {
  display: none;
}

#newAliasForm {
  display: none;
  max-width: 360px;
}

#newAliasForm.active {
  display: block;
}

.company-edit-link {
  color: #fff;
}

.company-edit-link:hover, .company-edit-link:focus {
  color: #fff;
  text-decoration: underline;
}

/* FOODSERVICE FORMS
-------------------------------------------------------------------- */

.account-information {
  background-color: #eee;
  padding: 1rem;
}

.card {
  margin-bottom: 1rem;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 15px 35px rgba(50,50,93,.1),0 5px 15px rgba(0,0,0,.07);
  color: #444;
}

.card-heading {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
}

.basic-button {
  white-space: nowrap;
  display: inline-block;
  height: 40px;
  line-height: 40px;
  padding: 0 14px;
  box-shadow: 0 4px 6px rgba(50,50,93,.11),0 1px 3px rgba(0,0,0,.08);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .025em;
  text-decoration: none;
  -webkit-transition: all .15s ease;
  transition: all .15s ease;
}

.card-submit {
  margin-bottom: 0;
}

legend span {
  background: #318BB9;
  display: inline-block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  color: #fff;
  margin-right: 5px;
}

.card-content input[type="checkbox"] {
  margin-right: 5px;
}

.completed-info {
  background-color: #DFF0D9;
  padding: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5rem;
  border: 1px solid #D8D8D8;
  border-radius: 2px;
}

.section-form.hidden {
  display: none;
}

.edit-completed, .edit-completed:hover, .edit-completed:focus {
  display: inline-block;
  padding: 0 .75rem;
  margin-top: 1rem;
  color: #444;
  font-weight: bold;
  border: 1px solid #444;
  border-radius: 2px;
}

.requirements-form input[type="checkbox"] {
  margin-bottom: 0;
}

.inline-radio {
  display: inline-block;
  margin-right: 1rem;
}

.inline-radio input[type="radio"] {
  margin-right: .25rem;
}

.company-filter-field .select2-container {
  width: 100%;
}

/* ===========================
      MODALS
=========================== */

.modal-overlay {
  opacity: 0;
  visibility: hidden;
  background-color: rgba(0,0,0,0.75);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  overflow-y: scroll;
  transition: .2s linear;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-table {
  display: table;
  width: 100%;
  height: 100%;
  text-align: center;
}

.modal-cell {
  display: table-cell;
  vertical-align: middle;
  padding: 1rem;
}

.modal {
  overflow: auto;
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  padding: 3rem 1rem 1rem;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: 1rem;
  font-size: 2rem;
  color: #777;
  cursor: pointer;
}

.modal-close:hover {
  color: #555;
}

table input[type="text"], table input[type="number"] {
  margin-bottom: 0;
}

.goal-status .alert-box {
  font-size: 1.5rem;
}

.button--void {
  background-color: RGBA(241, 222, 222, 1.00);
  color: #000;
}

.button--void:hover {
  background-color: #fff;
  color: #000;
}

.actions-column .button {
  display: block;
  width: 100%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 300;
}

.stat-number--large {
  font-size: 4rem;
  font-weight: bold;
}

.stat-label {
  text-transform: uppercase;
}

.divider {
  background-color: #dddddd;
  width: 100%;
  height: 1px;
  margin: 1rem 0;
}

.stat-row {
  padding: 1rem;
  margin-bottom: 1rem;
}

.stat-row--open {
  background-color: #d9edf7;
}

.stat-row--closed {
  background-color: #dff0d8;
}

.stat-row--submitted {
  background-color: #ffde84;
}

.stat-row--voided {
  background-color: #f2dede;
}

.stat-row--goals {
  padding: 0;
}

.goal-met {
  background-color: #43ac6a;
  padding: 1rem;
  color: #fff;
}

.goal-not-met {
  background-color: #f04124;
  padding: 1rem;
  color: #fff;
}

.back-to-top {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.50);
    text-align: center;
    line-height: 40px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

.back-to-top:hover {
  background: rgba(0,0,0,0.75);
}

.bulk-edit-submit {
  height: 37px;
}

.email-attachment-box {
  background: #eee;
  margin-bottom: 15px;
  padding: 10px 10px 0 10px;
}

.current-attachment-box {
  position: relative;
  background-color: #fff;
  padding: 10px;
}

.remove-attachment-link {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0 5px;
    cursor: pointer;
}

.mb-2 {
  margin-bottom: .5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.block {
  display: block;
}

/* MOBILE STYLES */

@media only screen and (max-width: 40em) {

  .main {
    margin-left: 0;
  }

}

@media print {

   .button, .left-off-canvas-menu, .desktop-nav, .tab-bar {
    display: none;
   }

   .main {
    width: 100%;
    margin-left: 0;
   }

   .main-content {
    border: 0;
   }

   .pricing-table .bullet-item {
    padding: .5rem;
   }

   .form-attachments {
    display: none;
   }
}
