/*// TYPOGRAPHY //*/
html
{
  overflow-y: scroll;
}

body
{
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  background-color: #e7e7e7;
}

a
{
  cursor: pointer;
}

a.active
{
  font-weight: bold;
}

a:disabled
{
  cursor: default;
}

a:hover
{
  opacity: .75;
}

a:hover,
a:focus
{
  text-decoration: none;
  outline: none;
}

a.selected,
a.selected:hover
{
  font-weight: bold;
}

.camel-case
{
  text-transform: capitalize;
}

hr
{
  border-top: 1px solid #ACACAC;
  margin: 5px 0;
}

h5
{
  margin: 5px 0;
}

/*// LAYOUT //*/
/* IE scrollbar overlay fix */
@-ms-viewport
{
  width: auto !important;
}

input::-ms-clear
{
  display: none;
}

.clear
{
  clear: both;
}

section.body-container
{
  margin: 0 15px 0 15px;
}

select, textarea
{
  resize: vertical;
}

#main
{
  padding-bottom: 60px; /*leave room for footer*/
}

header
{
  position: relative;
  padding: 10px;
  text-align: center;
  height: 120px;
  z-index: 100;
  overflow-y: hidden;
}

#logo-container
{
  background-position: top;
  height: 120px;
  background-size: auto 100px;
  background-repeat: no-repeat;
}

#test-overlay
{
  position: absolute;
  background-image: url(../Content/images/test.png);
  background-repeat: repeat;
  height: 100px;
  z-index: 101;
  width: 89%;
  opacity: .25;
}

#dev-overlay
{
  position: absolute;
  background-image: url(../Content/images/dev.png);
  background-repeat: repeat;
  height: 100px;
  z-index: 101;
  width: 89%;
  opacity: .25;
}

.main-title
{
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
}

.sub-title
{
  margin-bottom: 20px;
  text-align: center;
  font-size: 16px;
}

.center
{
  text-align: center;
}

.left
{
  text-align: left;
}

.right
{
  text-align: right;
}

.btn-icon
{
  float: right;
  line-height: 1;
}

.half-width
{
  width: 50%;
}

.full-width
{
  width: 100%;
}

ul
{
  margin: 0;
}

#loading-animation
{
  display: none;
  position: fixed;
  z-index: 10000;
  background-color: rgba(255, 255, 255, 0.5);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  -moz-transform: scaleX(-1);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

#loading-img
{
  position: absolute;
  left: calc(50% - 32px);
  top: calc(50% - 32px);
  height: 64px;
  width: 64px;
}

.pre-wrap
{
  white-space: pre-wrap;
}

/* main menu */
.main-menu-list
{
  min-width: 165px;
}

.main-menu
{
  text-align: center;
}

.main-menu .subText
{
  font-size: 10px;
  font-style: italic;
}

.main-menu .menuEntry
{
  position: relative;
  display: none;
  min-width: 140px;
  min-height: 140px;
}

.main-menu .menuEntry .disableOverlay
{
  position: absolute;
  left: 0;
  top: -20px;
  right: 0;
  bottom: 0;
  background-color: transparent;
  color: #333;
  opacity: 0.25;
  font-size: 2.5em;
  cursor: not-allowed;
}

.main-menu h4,
.main-menu h5
{
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
}

.menu-button,
.menu-button:focus
{
  margin: 0px 20px 30px 20px;
  height: auto;
  width: 100px;
  display: inline-block;
  vertical-align: top;
  color: #4D4D4D;
}

.menu-button:hover
{
  color: #4D4D4D;
  opacity: 0.75;
}

.menu-button i
{
  margin-bottom: 10px;
  text-align: center;
}

.menu-button span.fa-stack
{
  width: 100px;
  margin-bottom: 10px;
}

#mainMenuOverlay
{
  background-color: rgba(165, 165, 165, 0.61);
  color: black;
  font-size: 20px;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 100;
  cursor: not-allowed;
  margin-top: -10px;
  display: none;
  border-radius: 5px;
}

#mainMenuOverlay div
{
  background-color: #656565;
  color: white;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
}

.fa-stack-small-bottom-right
{
  position: absolute;
  left: 17px;
  width: 100%;
  font-size: 0.6em;
  line-height: inherit;
  color: #ff0000;
  bottom: -30px;
}

.fa-stack-1_5x
{
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.5em;
  line-height: inherit;
}

.fa-inverse
{
  color: #e7e7e7;
}

.push-down
{
  padding-top: 5px;
}

.list-group.subList
{
  margin-top: 1px;
  margin-bottom: 0px;
}

.list-group.subList .list-group-item
{
  padding: 7px 30px;
  font-size: 11px;
  border-radius: 0;
  margin-bottom: auto;
  border: none;
}

/* FIXME - Remove #AccountingReportsSubMenu entry when attribute based menu is removed */
#AccountingReportsSubMenu .list-group-item
{
  padding-left: 45px;
}

.list-group.subList .list-group-item.t0
{
  padding-left: 15px;
}

.list-group.subList .list-group-item.t1
{
  padding-left: 30px;
}

.list-group.subList .list-group-item.t2
{
  padding-left: 45px;
}

.list-group.subList .list-group-item.t3
{
  padding-left: 60px;
  margin-bottom: 0;
}

/* success/error message banner */
.feedback-section
{
  position: relative;
}

#feedback-banner
{
  position: fixed;
  z-index: 10001;
  top: -30px;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
}

#feedback-banner.feedback-animate-in
{
  animation-name: feedback-in;
  animation-duration: .5s;
  top: 0;
  opacity: 1;
}

#feedback-banner.feedback-animate-out
{
  animation-name: feedback-out;
  animation-duration: .5s;
  top: -30px;
}

@keyframes feedback-in
{
  from
  {
    top: -30px;
    opacity: 0;
  }

  to
  {
    top: 0;
    opacity: 1;
  }
}

@keyframes feedback-out
{
  from
  {
    top: 0;
    opacity: 1;
  }

  to
  {
    top: -30px;
    opacity: 0;
  }
}

.alert
{
  border: none;
  border-radius: 0;
}

.alert-danger
{
  color: #fff;
  background-color: #E65D3E;
}

.alert-success
{
  color: #fff;
  background-color: #03CF8D;
}

.alert-info
{
  color: #000;
  background-color: yellow;
  border-bottom: #000 thin solid;
}

/* navbar */
.navbar
{
  background-color: transparent;
  border: none;
  min-height: 30px;
  margin-bottom: 0;
  margin-top: -30px;
}

.navbar-nav
{
  margin-left: -10px;
}

.navbar-default
{
  background-color: transparent;
  border: none;
}

.navbar-toggle
{
  background-color: #fff;
  border: 1px solid #ddd;
  position: absolute;
  left: 12px;
  top: -18px;
  z-index: 100;
}

.nav-links
{
  position: absolute;
  top: -85px;
  right: 7px;
  text-align: right;
  z-index: 101;
}

.nav-links td:nth-child(2)
{
  text-align: right;
  width: 21px;
}

@media (max-width: 767px)
{
  .nav-links
  {
    position: relative;
    left: 0;
    top: 0;
    text-align: left;
  }

  .navbar-header
  {
    margin-bottom: 30px;
  }
}

.breadcrumb-row
{
  padding-left: 3px;
  z-index: 101;
  position: relative;
}

footer
{
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 3px;
  font-size: 10px;
  min-width: 500px;
  z-index: 101;
}

/*// BUTTONS //*/
.btn:not(.btn-link):not(.btn-xs):not(.btn-grp)
{
  height: 30px;
  font-size: 13px;
  overflow: hidden;
  padding: 5px;
}

.btn-default:not(.btn-xs):not(.btn-grp), .btn-main:not(.btn-xs):not(.btn-grp)
{
  margin-bottom: 5px;
  width: 100%;
}

.btn[class*="affix"],
.sidebar,
.btn-default:not(.btn-xs):not(.btn-grp)[class*="affix"],
.btn-main:not(.btn-xs):not(.btn-grp)[class*="affix"]
{
  width: 150px;
}

.btn.btn-default
{
  background-color: #f5f5f5;
  border-color: #8c8c8c;
}

.btn.btn-default:hover
{
  background-color: #e6e6e6;
}

.btn-default:active:focus,
.btn-default:focus
{
  outline: none;
}

#btn-close-fb
{
  position: absolute;
  right: 10px;
  top: 9px;
  border-radius: 20px;
  height: 27px;
  width: 27px;
  line-height: 0.5;
}

.btn:disabled, .btn:disabled:hover
{
  background-color: #707070;
  border-color: #707070;
  opacity: 1;
  color: #616161;
}

/* affixed buttons */
.affix
{
  top: 0;
}

@media (max-width:767px)
{
  [class*="col-sm"] > .affix
  {
    position: relative;
  }

  [class*="col-sm"] > .btn,
  [class*="col-sm"] > .sidebar
  {
    width: 100%;
  }
}

@media (max-width:991px)
{
  [class*="col-md"] .affix
  {
    position: relative;
  }

  [class*="col-md"] > .btn,
  [class*="col-md"] > .sidebar
  {
    width: 100%;
  }
}

/* resizeable button text to fit with icon */
@media (min-width:992px) and (max-width:1199px)
{
  .resize-btn
  {
    font-size: 0.9em;
    overflow: hidden;
    line-height: 1.5;
  }
}

@media (min-width:768px) and (max-width:991px)
{
  .resize-btn
  {
    font-size: 1vw;
    overflow: hidden;
    line-height: 2.25;
  }
}

/*// FORMS & INPUTS //*/
form
{
  margin-bottom: 0;
}

label
{
  margin-bottom: 0;
  vertical-align: -webkit-baseline-middle;
}

label.inline
{
  position: relative;
  min-height: 1px;
  float: left;
  width: 41.66666667%;
  clear: both;
}

label.soft
{
  font-weight: normal;
}

.form-control
{
  font-size: 13px;
  height: 25px;
  padding: 0 5px;
  background-color: #E9E9E9;
  font-weight: normal;
  margin-bottom: 5px;
}

/* for detail/info text between form inputs */
.inline-form-text
{
  font-weight: normal;
  font-size: 85%;
  width: 58.3%;
  float: right;
}

/* exclude multi and list selects */
/* Chromium browsers */
@supports (not (-webkit-hyphens:none)) and (not (-moz-appearance:none)) and (list-style-type:"*")
{
  select.form-control:not([multiple]):not([size])
  {
    padding: 0;
  }
}

/* prevent weird issue where select box doesn't open on first click */
select.form-control, select.form-control:focus, select.form-control:active
{
  transition: none !important;
  animation: none !important;
}

label.inline + .form-control
{
  display: table-cell;
  width: 58.3%;
  margin-bottom: 0;
  border-radius: 0;
}

label.inline + a.form-control
{
  width: 1%;
  padding: 2px 4px;
}

label.inline + .form-control[type=checkbox]
{
  width: auto;
  margin: 0;
  height: 25px;
  float: left;
}

label.inline + .input-group
{
  margin-bottom: 0;
}

label.inline + .input-group .form-control,
label.inline + .input-group .input-group-addon
{
  border-radius: 0;
}

textarea.form-control
{
  padding: 5px;
  min-height: 50px;
}

.form-control:disabled,
fieldset:disabled .form-control
{
  background-color: #AEBBC7;
}

fieldset:disabled input[type=checkbox]
{
  opacity: 0.5;
}

.list-group-item
{
  padding: 7px 15px;
}

.input-group
{
  margin-bottom: 5px;
}

.input-group .list-group-item.active
{
  border-right-width: 2px;
}

.input-group .btn
{
  height: 25px;
}

.input-group-addon
{
  font-size: 13px;
  padding: 0px 5px;
}

input[type="checkbox"],
input[type="color"],
input[type="file"]
{
  cursor: pointer;
}

input[type="checkbox"]
{
  width: 15px;
  height: 15px;
  display: inline;
  vertical-align: bottom;
}

/* datepicker */
.datepicker
{
  cursor: pointer;
}

.ui-datepicker-next.ui-state-hover
{
  background-color: transparent !important;
  border: none !important;
  top: 2px;
  right: 2px;
}

.ui-datepicker-prev.ui-state-hover
{
  background-color: transparent !important;
  border: none !important;
  top: 2px;
  left: 2px;
}

.ui-datepicker-month
{
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.ui-datepicker-year
{
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.input-group-btn .btn
{
  padding: 0 12px;
}

.input-group .datepicker
{
  border-right: none;
  box-shadow: none;
}

.input-group-addon.datepicker-icon
{
  cursor: pointer;
  background-color: #E9E9E9;
  border-radius: 0;
}

.input-group datepicker:focus
{
  border-right: none;
  box-shadow: none;
}

.input-group input.datepicker:focus + .input-group-addon.datepicker-icon
{
  border: 1px solid #66afe9;
  border-left: none;
}

input.datepicker:disabled + .datepicker-icon
{
  background-color: #AEBBC7;
  cursor: not-allowed;
}

#ui-datepicker-div
{
  /*
    NOTE: this was changed from 102 to have a datepicker in the
    commercial invoice modal on the order form.
    If this starts causing z-index issues, readdress this solution.
  */
  z-index: 1050 !important;
}

#datepicker-shortcut-panel
{
  left: 220px;
  position: absolute;
  top: 0;
  background-color: white;
  height: 100%;
  padding: 5px;
  border-radius: 2px;
  border: 1px solid #ACACAC;
  overflow-y: auto;
  font-size: 86%;
  width: 157px;
  white-space: nowrap;
}

[id^=datepicker-goTo]
{
  position: absolute;
  width: calc(100% - 17px);
}

/* form validation */
.form-control.req-error,
.form-control.req-error:focus,
.input-group .datepicker.req-error + .input-group-addon.datepicker-icon
{
  border-color: #E65D3E;
  border-width: 1px;
  color: #E65D3E !important;
}

.req-error::-webkit-input-placeholder
{ /* Chrome */
  color: #E65D3E !important;
}

.req-error:-moz-placeholder
{ /* Firefox 18- */
  color: #E65D3E !important;
}

.req-error::-moz-placeholder
{ /* Firefox 19+ */
  color: #E65D3E !important;
}

.req-error:-ms-input-placeholder
{
  color: #E65D3E !important;
}

/*// PANELS //*/
.panel-default
{
  border: 1px solid #000;
  margin-bottom: 10px;
}

.panel-default .panel-body
{
  background-color: #fff;
  border-radius: 4px;
  color: #333;
}

.panel-default .panel-title.shaded
{
  padding: 8px 0 0 0;
  background-color: #e7e7e7;
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 5px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.panel-heading
{
  padding: 4px 15px;
}

.panel-body
{
  padding: 10px;
}

.panel.with-nav-tabs .panel-heading
{
  padding: 5px 5px 0 5px;
}

.panel.with-nav-tabs .nav-tabs
{
  border-bottom: none;
  margin-bottom: -5px;
}

.small-panel
{
  border: 1px solid #000;
  background-color: #fff;
  position: relative;
  margin: 0 25% 0 25%;
  min-width: 200px;
}

@media (min-width:768px) and (max-width:991px)
{
  .small-panel
  {
    margin: 0 20% 0 20%;
  }
}

@media (max-width: 767px)
{
  .small-panel
  {
    margin: 0;
  }
}

/*// PRINT //*/
.print-only
{
  display: none;
}

@media print
{
  .print-only
  {
    display: block;
  }

  .noprint,
  .breadcrumb-row,
  .btn,
  .floatThead-container
  {
    display: none;
  }

  .tablesorter-header:not(.sorter-false)::after
  {
    display: none;
    content: none;
    background: none;
  }

  footer
  {
    position: relative;
  }

  a[href]:after
  {
    content: none !important;
  }

  .container
  {
    width: 100%;
    padding: 0;
    margin: 0;
  }
}

/*// MODAL //*/
.close-modal
{
  position: fixed;
  top: 0;
  right: 30px;
  color: #fff;
  font-size: 75px;
  width: 75px;
  height: 75px;
  line-height: 0.75;
}

.btn-link.close-modal:hover,
.btn-link.close-modal:focus
{
  color: #337ab7;
  text-decoration: none;
  outline: none;
}

.modal-open, .modal
{
  padding: 0 !important;
}

.modal-dialog
{
  background-color: #fff;
  margin-top: 100px !important;
  overflow-y: auto;
  max-height: calc(100% - 200px);
  padding: 5px;
  border-radius: 5px;
}

.modal-dialog.fixed-height
{
  height: calc(100% - 400px);
  min-height: 400px;
}

.modal-dialog.fixed-height .modal-body
{
  height: calc(100% - 116px);
  overflow-y: auto;
}

.modal-dialog h3
{
  margin-top: 0;
}

@media (min-width: 992px)
{
  .modal-dialog
  {
    width: 900px;
  }

  .modal-dialog.alert
  {
    width: 600px;
  }
}

/* one-off styles */
.clearBtn
{
  font-size: 12px;
  padding: 6px 8px;
  width: 160px;
  float: right;
  margin-top: -40px;
}

.listControls
{
  width: 50px;
  vertical-align: middle;
  padding: 0 15px;
}

select.readOnly option,
.selectPlaceHolder
{
  font-style: italic;
}

.product-name
{
  font-weight: bold;
  margin-bottom: 5px;
  color: #5E5E5E;
}

.quantity, .rate
{
  text-align: right;
}

[data-title="Quantity"] > .quantity
{
  width: 60px;
  display: inline;
  margin-right: -3px;
}

.unit-type
{
  width: 100px;
  display: inline;
}

.menu-warning-icon
{
  position: absolute;
  right: 5px;
  line-height: 1.5;
  color: #E65D3E;
}

.list-group-item.active .menu-warning-icon
{
  color: #fff;
}

.popover
{
  max-width: none;
}

[data-toggle="collapse"]
{
  cursor: pointer;
}

.panel-heading[data-toggle="collapse"].collapsed
{
  border-radius: 5px;
}

tr[data-toggle="collapse"] th:last-child:after,
th[data-toggle="collapse"]:after,
.panel-heading[data-toggle="collapse"]:after
{
  font-family: 'Glyphicons Halflings';
  content: "\e114";
  float: right;
}

tr[data-toggle="collapse"].collapsed th:last-child:after,
th[data-toggle="collapse"].collapsed:after,
.panel-heading[data-toggle="collapse"].collapsed:after
{
  content: "\e080";
}

.validation-summary-errors li
{
  list-style: none;
}

/* select 2*/
.select2.select2-container.select2-container--default
{
  width: 58.3% !important;
}

.select2-container--default .select2-selection--single
{
  border-radius: 0;
  background-color: #E9E9E9;
  height: 25px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected]
{
  background-color: #1e90ff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered
{
  padding: 0 20px 0 4px;
  height: 25px;
  margin: -1px 0px;
}

.select2-results__option
{
  background-color: #E9E9E9;
}

.select2-container--default .select2-results__option[aria-selected=true]
{
  background-color: #1e90ff;
  color: #fff;
}

.req-error + .select2.select2-container.select2-container--default .select2-selection
{
  border-color: #E65D3E;
  border-width: 1px;
}

.req-error + .select2.select2-container.select2-container--default .select2-selection .select2-selection__rendered
{
  color: #E65D3E !important;
}

.inv-warning-icon
{
  color: red;
}

.warning-requires-work-order
{
  color: royalblue;
}

.action-bar
{
  border: 2px solid #fff;
  position: fixed;
  z-index: 100;
  background-color: #4D4D4D;
  height: 35px;
  right: 0px;
  min-width: 200px;
  width: 15%;
  bottom: 20px;
  transition: height 300ms ease;
  border-top-left-radius: 7px;
}

.action-bar .bar-content
{
  display: none;
  padding: 10px;
}

.action-bar.open
{
  height: 95px;
  transition: all 300ms ease;
}

.action-bar.open .bar-content
{
  display: block;
  position: relative;
  transition: display 300ms ease;
}

.toggle-bar
{
  position: absolute;
  top: -6px;
  right: -10px;
  width: 50px;
  height: 44px;
  margin: auto;
  cursor: pointer;
  transform: scale(0.4);
  z-index: 101;
}

.toggle-bar::before, .toggle-bar::after
{
  content: '';
  position: relative;
}

.toggle-bar span, .toggle-bar::before, .toggle-bar::after
{
  display: block;
  height: 0;
  width: 100%;
  margin: auto;
  padding-top: 14%;
  background-color: #fff;
  transition: transform 300ms ease;
}

.toggle-bar::before
{
  top: 0;
  z-index: 99;
}

.toggle-bar::after
{
  position: relative;
  top: 20px;
}

.toggle-bar span
{
  position: relative;
  top: 10px;
}

.action-bar.open .toggle-bar span
{
  transform: rotate(225deg);
  /* Optional small spring-effect: */
  transition: transform 300ms cubic-bezier(0.655, 0.005, 0.185, 1.455);
}

.action-bar.open .toggle-bar::before
{
  transform: translateY(18px) rotate(135deg);
}

.action-bar.open .toggle-bar::after
{
  transform: translateY(-17px) rotate(-135deg);
}

.bar-btn
{
  width: 85% !important;
  height: 32px !important;
  font-size: 15px !important;
}

.btn-pulse
{
  animation: btn-pulse 0.5s infinite;
}

@keyframes btn-pulse
{
  0%
  {
    transform: scale(1.0);
  }

  50%
  {
    transform: scale(1.005);
  }

  100%
  {
    transform: scale(1.0);
  }
}

report-options-min-width-container
{
  min-width: 500px;
}

.d-flex
{
  display: flex;
}

.self-center
{
  place-self: center;
}