@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Montserrat/Montserrat-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat Bold";
  font-weight: bold;
  src: url("../fonts/Montserrat/Montserrat-Bold.ttf") format("truetype");
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #444;
  font:
    normal 14px "Montserrat",
    "Montserrat-Medium",
    "Courier",
    "Arial",
    "Open Sans",
    Arial;
}

.page-break {
  page-break-before: always;
}

a {
  color: #2b2b2b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bold {
  font-weight: bold;
}

.left {
  float: left;
}

.right {
  float: right;
}

.clr:after {
  content: " ";
  display: table;
  clear: both;
}

.clrl {
  clear: left;
}

.alert-icon {
  margin-top: 1em;
  float: left;
}

.alert-msg-text {
  margin: 1em;
  float: left;
  font-size: 1.2em;
}

.btn-panel {
  float: left;
  width: 98%;
  padding: 0.3%;
  background-color: #ccc;
  border: 1px solid #333;
}

.btn-panel .btn {
  padding: 0.6em 1em 0.9em 0.7em;
}

.btn-panel .edit-btn {
  float: left;
  cursor: pointer;
  margin-left: 2em;
}

.btn-panel .submit-btn {
  float: right;
  cursor: pointer;
  margin-left: 2em;
}

.add-btn,
.submit-btn,
.import-btn,
.add-cust-btn {
  height: 28px;
  padding: 10px 20px;
  background-color: rgb(180, 39, 44);
  color: #eee;
  cursor: pointer;
}

.add-btn:hover,
.submit-btn:hover,
.import-btn:hover,
.add-cust-btn:hover {
  background-color: rgb(120, 30, 25);
  color: #fff;
}

.add-btn span,
.submit-btn span,
.add-cust-btn span {
  position: relative;
  top: -11px;
  left: 4px;
}

.import-btn.btn {
  float: left;
  padding: 6px 2em;
  margin: 2em 0;
  height: 49px;
  display: flex;
  align-items: center;
  justify-items: center;
}
.import-btn.btn span {
  margin-left: 1em;
}

.add-btn.small {
  float: left;
  margin-top: 0.5%;
  padding: 0.4em 1em 0.4em 0.8em;
  height: 1.6em;
  font-size: 0.8em;
}

.add-btn.small img {
  width: 1.6em;
}

.add-btn.small span {
  top: -6px;
}

.edit-btn {
  height: 28px;
  padding: 10px 20px;
  background-color: rgb(39, 180, 44);
  color: #eee;
}

.edit-btn:hover {
  background-color: rgb(30, 120, 25);
  color: #fff;
}

.edit-btn .btn-edit-edit-img,
.edit-btn .btn-edit-edit-text {
  display: none;
}

.edit-btn .btn-edit-done-img,
.edit-btn .btn-edit-done-text {
  display: inline-block;
}

.edit-btn.small {
  float: left;
  margin-top: 0.5%;
  margin-left: 1em;
  padding: 0.4em 1em 0.4em 0.8em;
  height: 1.6em;
  font-size: 0.8em;
}

.edit-btn.small img {
  width: 1.6em;
}

.edit-btn.small span {
  top: -6px;
}

.readonly-mode .edit-btn {
  background-color: rgb(180, 39, 44);
}

.readonly-mode .edit-btn:hover {
  background-color: rgb(120, 30, 25);
  color: #fff;
}

.readonly-mode .edit-btn .btn-edit-edit-img,
.readonly-mode .edit-btn .btn-edit-edit-text {
  display: inline-block;
}

.readonly-mode .edit-btn .btn-edit-done-img,
.readonly-mode .edit-btn .btn-edit-done-text {
  display: none;
}

.edit-btn span {
  position: relative;
  top: -11px;
  left: 4px;
}

.send-btn,
.add-group-btn,
.dup-btn,
.delete-campaign-btn {
  width: auto;
  background-color: rgb(180, 39, 44);
  color: #eee;
  cursor: pointer;
}

.send-btn:hover,
.add-group-btn:hover,
.dup-btn:hover,
.delete-campaign-btn:hover {
  background-color: rgb(120, 30, 25);
  color: #fff;
}

.send-btn.small,
.add-group-btn.small,
.dup-btn.small,
.delete-campaign-btn.small {
  float: right;
  height: 32px;
  padding: 0 4px;
  margin: 0 8px 0 6px;
}

.send-btn.small span,
.add-group-btn.small span,
.dup-btn.small span,
.delete-campaign-btn.small span {
  display: inline-block;
  position: relative;
  top: 6px;
  margin: 0 6px;
  font-size: 0.9em;
}

.send-btn.small img,
.add-group-btn.small img,
.dup-btn.small img,
.delete-campaign-btn.small img {
  float: left;
  margin: 0 3px;
  position: relative;
  top: 8px;
  height: 16px;
}

.delete-campaign-btn.small {
  display: none;
  float: left;
}

.add-group-btn.small {
  margin-top: 1.4em;
}

/*
.dup-btn{
  float:right;
  height:28px;
  background-color: rgb(180,39,44);
  color:#eee;
  cursor:pointer;
}


.dup-btn:hover{
  background-color: rgb(120,30,25);
  color:#fff;
}

.dup-btn span{
  position:relative;
  top: -11px;
  left: 4px;
}
*/

.submit-btn.small {
  float: right;
  margin-top: 0.5%;
  margin-left: 1em;
  padding: 0.4em 1em 0.4em 0.8em;
  height: 1.6em;
  font-size: 0.8em;
}

.submit-btn.small span {
  top: -6px;
}

.submit-btn.small img {
  width: 1.6em;
}

/*
#salesorder-form{
  overflow:hidden;
}
*/

#logout,
#back-to-site {
  position: absolute;
  bottom: 1%;
  right: 2px;
  padding: 2px 12px;
  cursor: pointer;
}

#logout:hover,
#back-to-site:hover {
  color: red;
  background-color: rgba(155, 140, 60, 0.2);
  border-radius: 4px;
}

#back-to-site {
  right: 197px;
}

ul.multi-order-sel {
  display: inline-block;
}

ul.multi-order-sel li {
  display: inline-block;
  clear: left;
  float: left;
  background-color: rgba(180, 39, 44, 0.8);
  color: #fff;
  font-size: 1.2em;
  padding: 3px 10px;
  margin: 2px;
  width: 250px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #333;
}

ul.multi-order-sel li:hover {
  background-color: rgba(144, 31, 35, 0.9);
  cursor: pointer;
}

#salesorder-form.submitted .btn-panel .add-btn,
#salesorder-form.submitted .btn-panel .edit-btn,
#salesorder-form.submitted .btn-panel .submit-btn {
  display: none;
}

#salesorder-form .post-submit-text {
  display: none;
}

#salesorder-form.submitted .post-submit-text {
  display: inline-block;
  margin: 6px 0 0 20px;
  color: #111;
  font: bold 20px Montserrat;
}

#salesorder-form .of-orderid-no .post-submit-text {
  display: none;
}

#salesorder-form.submitted .of-orderid-no .post-submit-text {
  display: inline-block;
  width: 100%;
  font-size: 0.7em;
  color: #999;
}

.print-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 218, 129, 0.2);
  background-image: url(../images/btn-printer.png);
  top: 1.1em;
  right: 1.2em;
  background-size: contain;
  cursor: pointer;
  /*
  position: absolute;
  background-color: rgba(255,218,129,.2);
  background-image: url(../images/btn-printer.png);
  top: 1.1em;
  right: 1.2em;
  background-size: contain;
  cursor: pointer;
  background-repeat: no-repeat;
  padding: 11px 12px 12px 55px;
  border-radius: 2px;
  font-size: .9em;
*/
}

.print-btn:hover {
  background-color: rgba(50, 39, 44, 0.4);
}

.print-btn:active {
  background-color: rgba(255, 218, 129, 0.5);
  border: 2px solid #000;
}

.of-print-options {
  display: none;
  z-index: 1;
  position: absolute;
  margin: 0;
  padding: 0px;
  background-color: rgba(110, 10, 10, 0.8);
  top: 68px;
  right: 1.1em;
  border: 1px solid #fafafa;
  font: normal 1em arial;
  cursor: pointer;
}

.of-print-options ul {
  margin: 0;
  padding: 0;
}

.of-print-options ul li {
  display: none;
  padding: 0.6em 0.9em;
  list-style: none;
  color: #dadada;
  border: 1px solid #888;
}

.of-print-options ul li a {
  text-decoration: none;
  color: #fff;
}

.of-print-options ul li:hover {
  background-color: rgba(150, 20, 20, 0.9);
  color: #fff;
  border: 1px solid #fff;
}

.of-print-options ul li {
}

.order-form .of-print-options ul li#print-of-salesblank,
.order-form .of-print-options ul li#print-of-blank,
.order-form .of-print-options ul li#print-of-filled,
.order-form .of-print-options ul li#print-of-price-sheet,
.order-form .of-print-options ul li#pizza-corner-sales-sheet,
.order-form .of-print-options ul li#brew-hub-sales-sheet,
.order-form .of-print-options ul li#suggested-price-sheet {
  display: block;
}

.pick-ticket .of-print-options ul li#print-of-pick-ticket {
  display: inline-block;
}

.nrm {
  margin-right: 0 !important;
}

.wait {
  display: none;
  position: fixed;
  left: 50%;
  top: 38%;
  width: 64px;
  height: 64px;
  margin-left: -52px;
  margin-top: -52px;
  border-radius: 60px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.6);

  border: 3px solid rgba(200, 100, 100, 0.8);
}

.wait .spinner {
  padding: 0px;
  width: 100%;
  height: 100%;
  background: url("../images/spinner.gif");
}

ul.ui-autocomplete {
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
  /* add padding to account for vertical scrollbar */
  padding-right: 20px;
}

ul.ui-autocomplete li.ui-menu-item div.ui-state-active {
  font-weight: normal;
  color: #901f23;
  background-color: #e4e4e4;
}

.form-panel.inner-column {
  float: none;
  width: 98%;
  max-width: 1200px;
  margin: 1% auto;
  overflow: auto;
}

.sub-text {
  font-family: arial;
  font-style: italic;
  font-size: 0.8em;
  color: #aaa;
}

/* --- */

#login-block {
  display: none;
  z-index: 1000;

  position: absolute;
  top: 24%;
  left: 50%;
  margin-left: -180px;
  width: 334px;
  padding: 20px 30px 12px 30px;
  border: 1px solid #eee;
  border-radius: 16px;
  background: #bbb; /* For browsers that do not support gradients */

  background: -webkit-linear-gradient(
    left,
    rgba(20, 20, 20, 0.65),
    rgba(100, 100, 100, 0.55)
  ); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(
    right,
    rgba(20, 20, 20, 0.65),
    rgba(100, 100, 100, 0.55)
  ); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(
    right,
    rgba(20, 20, 20, 0.65),
    rgba(100, 100, 100, 0.55)
  ); /* For Firefox 3.6 to 15 */
  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 0.65),
    rgba(100, 100, 100, 0.55)
  ); /* Standard syntax (must be last) */
}

#login-block .login-logo {
  position: relative;
  width: 212px;
  margin: 1px auto 20px auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
}

#login-block .login-logo img {
  width: 97%;
}

#login-heading {
  text-align: center;
  color: rgb(255, 218, 129);
  font-size: 1.6em;
}

#login-block #login-name {
  width: 100%;
}

#login-block #login-password {
  width: 100%;
}

.login-label {
  clear: left;
  float: left;
  margin-top: 10px;
  width: 90px;
  color: #eee;
}

.login-input {
  float: left;
  margin-top: 10px;
}

.login-input input {
  width: 157px;
}

#login-btn {
  float: left;
  width: 100px;
  margin: 18px 0 0 91px;
  height: 30px;
  background: rgba(255, 218, 129, 0.7);
  padding: 10px 72px 30px 30px;
  border: #aaa;
  text-align: center;
  color: #eee;
  border-radius: 4px;
  font-size: 1.3em;
}

#login-btn:hover {
  background: rgba(255, 218, 129, 1);
  cursor: pointer;
}

#login-result {
  display: none;
  position: absolute;
  bottom: 3px;
  left: 88px;
  width: 200px;
  border-radius: 4px;
  text-align: center;
  padding: 1px;
  background-color: rgba(255, 255, 255, 0.7);
  font-size: 1em;
  font-weight: bold;
  color: #d35;
  font-style: italic;
}

/* ---- */

.send-price-alert {
  display: inline-block;
  font-size: 1.5em;
  margin: 1.5em;
  line-height: 1.3em;
}

/* ---- */
.ui-widget-header {
  background-color: #ff7c00;
}

.grid-container .ui-jqgrid .ui-common-table tr th {
  background-color: rgb(60, 94, 162);
  color: #fcfcfc;
}

.btn {
  margin: 0px 2px 2px 0px;
  padding: 6px 6px 26px 6px;
  border: 1px solid #999;
  border-radius: 4px;
  box-shadow: 3px 3px 3px #888;
  font-weight: normal;
}

.btn:hover {
  box-shadow: 4px 4px 4px #666;
}

.btn:active {
  border-top-width: 3px;
  box-shadow: -3px -3px 3px #666;
  background-color: rgb(180, 180, 220);
}

#close-btn,
.close-btn,
#exit-btn,
.exit-btn {
  float: right;
  padding: 2px 0px 0px 0px;
  width: 30px;
  height: 30px;
  background-color: rgba(111, 111, 111, 0.4);
  border-radius: 4px;
  border: 1px solid #eeeeee;
  box-shadow: 3px 3px 3px #444;
}

#close-btn:hover,
.close-btn:hover,
#exit-btn:hover,
.exit-btn:hover {
  background-color: rgba(44, 44, 44, 0.4);
}

.gridBtn {
  width: 35px;
  height: 25px;
  margin-right: 20px;
}

.date-pick {
  width: 100px;
}

.ui-datepicker {
  z-index: 100 !important;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
  background-color: #fdfdfd;
}

.ui-selectmenu-button.ui-button {
  width: auto;
  padding: 0.4em 4px;
  margin-right: 5px;
}

.ui-checkbox {
  font-size: 0.75em;
  margin: 0.6em;
}

.grid-delete-btn {
  cursor: pointer;
}

input.jqui-input,
.custom-combobox-input {
  display: inline-block;
  position: relative;
  height: 17px;
  padding: 0.4em 4px;
  margin-right: 5px;
  line-height: normal;
  text-align: left;
  vertical-align: middle;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fdfdfd;
  color: #2b2b2b;
  text-decoration: none;
  font-weight: normal;
  cursor: pointer;
  overflow: visible;
}

/*
.ui-menu.ui-autocomplete{
  max-height:360px;
  overflow-y:scroll;
}
*/

body {
  background-color: rgb(180, 39, 44);
}

#header-logo {
  float: left;
  height: 102px;
}

#header-logo-2 {
  position: absolute;
  right: 0.5%;
}

#header-logo-2 img {
  float: right;
}

#header {
  position: fixed;
  z-index: 1;

  float: left;
  width: 99%;
  margin-bottom: 36px;
  padding: 8px 0.5%;
  background-color: #ffda81;
  border-bottom: 2px solid #666;
  border-top: 2px solid #666;
}

.usermode-admin #header-logo,
.usermode-admin #header-logo-2 {
  cursor: pointer;
}

.menu {
  float: left;
  width: 700px;
  position: relative;
  top: 55px;
  left: 16px;
}
@media only screen and (max-width: 1500px) {
  .menu {
    font-size: 0.8em;
  }

  #header-logo-2 img {
    width: 20em;
  }

  #back-to-site {
    right: 130px;
  }
}

.menu-opt-container {
  float: left;
  position: relative;
  width: 88px;
  background-color: transparent;
}

.menu-opt-container .ui-menu {
  display: none;
  position: absolute;
  z-index: 3;
  top: 87px;
  left: 1px;
  width: 180px;
  border-radius: 4px;
}

.menu-opt-container .ui-menu .ui-menu-item {
  border-bottom: 1px solid #eaeaea;
}

.menu-opt-container #cancels-opt-menu.ui-menu {
  width: 250px;
}

.menu-opt-container #utilities-opt-menu.ui-menu {
  width: 250px;
}

.menu-opt-container #report-opt-menu.ui-menu {
  width: 200px;
}

.menu-opt {
  float: left;
  margin: 8px 10px 8px 0px;
  padding: 0px 1.5%;
}

.menu-opt:hover {
}

.menu-opt:active {
  margin: 10px 8px 6px 2px;
}

.menu-opt h2 {
  margin: 5px 0;
  color: #eee;
  font-weight: 300;
  white-space: nowrap;
}

.menu-opt.btn {
  overflow: visible;
  background-color: rgb(180, 39, 44);
}

.menu-opt.btn:hover {
  background-color: rgb(160, 33, 38);
}

.menu-opt.btn.active {
  border-color: #fdfdfd;
  box-shadow: 3px 3px 3px #111;
  border-width: 3px;
  margin: 5px 10px 8px 0px;
}

#main-content {
  margin-top: 132px;
  float: left;
  width: 100%;
}

.sub-menu {
  z-index: 3;
}

.main-panel {
  position: relative;
  width: 100%;
  min-width: 1300px;
}

.usermode-admin .main-panel {
  display: none;
}

#home-panel #home-gb-img {
  width: 50%;
  margin-top: 8%;
  margin-left: 25%;
  opacity: 0.05;
  filter: alpha(opacity=5);
}

.group-search {
  display: none;
  padding: 0.5em 1em 0.75em;
  height: 2em;
  font-size: 1.5em;
  border: 1px solid #333;
  background-color: rgba(0, 0, 0, 0.2);
  color: #eee;
}

.group-search .ui-widget {
  display: grid;
  grid-template-columns: 2.5fr 1fr 0.5fr;
  align-items: center;
  width: 100%;
  height: 45px;
  box-sizing: border-box;
  min-width: 1300px;
}

.group-search .ui-widget > div:first-child {
  display: flex;
  align-items: center;
  min-width: 0;
}

@media only screen and (min-width: 1475px) and (max-width: 1775px) {
  .group-search .ui-widget {
    font-size: 0.9em;
  }
}
@media only screen and (max-width: 1475px) {
  .group-search .ui-widget {
    font-size: 0.75em;
  }
}

.group-search span.sub-text {
  position: relative;
  top: -0.1em;
}

.group-search-cb {
  font-size: 0.9em;
}

#group-search-inp {
  float: none;
  margin-left: 0.5em;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.85em;
}

#group-search-inp-lab {
  white-space: nowrap;
}

.group-search .status-sel {
  float: none;
  margin-left: 2.5%;
}

.group-search .btn-add-img {
  height: 1em;
}

.group-search .add-cust-btn {
  display: none;
  width: 12em;
  margin: 0;
  padding: 0.45em 0.9em;
  height: auto;
  line-height: 1.2;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  position: relative;
}

.group-search .add-cust-btn img {
  height: 0.95em;
  width: auto;
  vertical-align: middle;
}

.group-search .add-cust-btn span {
  position: static;
  top: auto;
  left: auto;
  margin-left: 0.35em;
  vertical-align: middle;
}

/* products-form */

#prd-tbl {
  width: 100%;
  border-collapse: collapse;
  border: none;
}

#prd-tbl thead th {
  color: #222;
  background-color: rgba(0, 0, 0, 0.07);
}

#prd-tbl thead tr th.cost {
  text-align: center;
  background-color: rgba(40, 0, 0, 0.12);
}

/*
.product-key {
  display:none;
}
*/

#prd-tbl th {
  padding: 4px 6px;
  text-align: left;
  font-size: 1em;
  line-height: 1.1em;
  border: 1px solid #ccc;
}

#prd-tbl td {
  min-width: 3.5em;
  font-size: 0.9em;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid #ccc;
}

#prd-tbl .prd-name,
#prd-tbl .prd-info {
  text-align: left;
  font-size: 0.85em;
}

#prd-tbl td.prd-status {
  padding: 0;
}

#prd-tbl-panel tbody tr.editing-mode td.prd-status {
  cursor: pointer;
}

#prd-tbl td.prd-edit-btn-td {
  width: 2em;
  min-width: 2em;
}

.prd-edit-btn {
  width: 1.5em;
  height: 1.3em;
  background-color: rgb(180, 39, 44);
  background-image: url("../images/edit_white.png");
  background-size: 1em;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.prd-send-btn {
  margin: 0 auto;
  width: 2.5em;
  height: 1.3em;
  background-color: rgb(180, 39, 44);
  background-image: url("../images/arrow-right.png");
  background-size: 1.2em;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.prd-edit-btn:hover {
  background-color: rgb(120, 30, 25);
}

.editing-mode .prd-edit-btn {
  background-color: rgb(39, 180, 44);
  background-image: url("../images/done_white.png");
}

#products-panel {
  padding-top: 8px;
}

#products-panel #prd-tbl tbody tr td span {
  display: inline-block;
  margin: 2px 0 3px 0;
}

#products-panel #prd-tbl tbody tr td input {
  display: none;
  width: 3em;
}

#products-panel #prd-tbl tbody tr td.prd-name input {
  width: 12em;
}

#products-panel #prd-tbl tbody tr td.prd-info input {
  width: 23em;
}

#products-panel #prd-tbl-container #prd-tbl td span {
  display: none;
}

#products-panel #prd-tbl-container #prd-tbl td input {
  display: inline-block;
}

#products-panel #prd-tbl-container .btn-edit-img {
  display: none;
}

#products-panel #prd-tbl-container .btn-done-img {
  display: inline-block;
}

#products-panel #prd-tbl-container .btn-edit-text {
  display: none;
}

#products-panel #prd-tbl-container .btn-done-text {
  display: inline-block;
}

#products-panel #prd-tbl-container.readonly-mode #prd-tbl td span {
  display: inline-block;
}

#products-panel #prd-tbl-container.readonly-mode #prd-tbl td input {
  display: none;
}

#products-panel #prd-tbl-container.readonly-mode .btn-edit-img {
  display: inline-block;
}

#products-panel #prd-tbl-container.readonly-mode .btn-done-img {
  display: none;
}

#products-panel #prd-tbl-container.readonly-mode .btn-edit-text {
  display: inline-block;
}

#products-panel #prd-tbl-container.readonly-mode .btn-done-text {
  display: none;
}

#products-panel #prd-tbl tbody tr td input[type="number"] {
  width: 3em;
  text-align: right;
}

#products-panel .send-price-col {
  width: 7em;
}

/* #order-form{ */
.form-panel {
  display: none;
  float: left;
  width: 98.6%;
  margin: 0 8px 8px 8px;
  background-color: rgba(242, 236, 236, 1);
  border: 5px solid #444;
  font-size: 1.1em;
}

.form-panel table {
  font-size: 1em;
}

.orders-tbl {
  width: 100%;
  border: none;
  border-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.orders-tbl .header-ul-lab {
  font-size: 0.9em;
  color: #444;
}

.orders-tbl td,
.xorders-tbl th {
  border-bottom: 1px solid #aaa;
  border-right: 1px solid #aaa;
  width: 5%; /* this is important for cell widths on Edge */
}

.readonly-mode .orders-tbl td span {
  display: inline-block;
  line-height: 1.45em;
}
.readonly-mode .orders-tbl td input,
.readonly-mode .orders-tbl th input,
.readonly-mode .orders-tbl th textarea {
  display: none;
}

/* .orders-tbl td:not(.of-tot) span{ */
.orders-tbl td span,
.orders-tbl th span,
.header-ul-val {
  display: none;
}

.orders-tbl .of-orginfo-row th span {
  display: inline-block;
  min-height: 40px;
}

.orders-tbl td.of-qty span,
.orders-tbl td.of-tot span {
  display: inline-block;
}

.orders-tbl td input {
  display: block;
  width: 90%;
  font-size: 1em;
  text-align: right;
  padding: 0;
}

.of-hdr-spacer th {
  background-color: #444;
}

.orders-tbl th,
#col-header-clone th {
  padding: 4px 6px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.1em;
  color: #000;
  vertical-align: top;
}

.orders-tbl th {
  padding: 4px 6px;
  text-align: left;
  font-size: 1.1em;
  line-height: 1.1em;
  color: #000;
}

.orders-tbl .of-prodhdr-row th:not(:first-child),
#col-header-clone .of-prodhdr-row th:not(:first-child) {
  max-width: 20px;
}

.orders-tbl td {
  font-size: 1.2em;
  text-align: center;
  padding: 2px 6px;
  color: #333;
}

#of-campaign-select-container {
  display: none;
  position: absolute;
  right: 100px;
  top: 19px;
}

#of-campaign-select-container label {
  font-size: 0.8em;
}

.of-title-cell {
  background-color: #444;
  color: #fff !important;
}

/* #of-title-row div{ */
.of-orderid-no {
  width: 100%;
  text-align: center;
  font: bold 1.6em Montserrat;
  padding: 0.6% 0;
}

.of-orderid-no .of-orderid-no-disp {
  display: inline-block !important;
}

.of-orginfo-row th {
  background-color: #ffda81;
}

.of-namehdr-cell,
.of-amthdr-cell {
  vertical-align: bottom;
}

.of-namehdr-cell,
.of-qtyhdr-cell,
.of-amthdr-cell {
  bottom: auto !important;
}

.orders-tbl .of-prodhdr-row th,
#col-header-clone .of-prodhdr-row th {
  position: relative;
  bottom: 0;
  vertical-align: bottom;
  width: 6em;
  height: 16em;
  border-bottom: 2px solid #aaa;
}

.of-prodhdr-row,
.of-total-row,
.of-free-row,
.of-profit-row,
.of-qty {
  background-color: rgba(0, 0, 0, 0.1);
}

.of-total-row,
.of-free-row {
  font-weight: bold;
}

.orders-tbl tr.of-total-row td.of-name,
.orders-tbl tr.of-free-row td.of-name {
  text-align: right;
}

.orders-tbl tr.of-free-row td.of-name span {
  display: inline-block !important;
}

.orders-tbl .of-prodhdr-row th div,
#col-header-clone .of-prodhdr-row th div {
  position: relative;
  transform: rotate(285deg);
  -webkit-transform: rotate(-75deg); /* Safari */
  -moz-transform: rotate(-75deg); /* Firefox */
  -ms-transform: rotate(-75deg); /* IE */
  -o-transform: rotate(-75deg); /* Opera */
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); /* Internet Explorer */

  bottom: -1.4em;
  white-space: nowrap;
  width: 0;
  left: 50%;
}

.orders-tbl .of-prodhdr-row th div span,
#col-header-clone .of-prodhdr-row th div span {
  font-family: arial;
  font-size: 0.8em;
  font-weight: 100;
  line-height: 1em;
  display: inline-block;
  margin: 0.2em 0 0 0.8em;
  color: #666;
}

.orders-tbl .of-prodhdr-row th div span.sub-head,
#col-header-clone .of-prodhdr-row th div span.sub-head {
  position: relative;
  top: -0.1em;
}

.pick-ticket .orders-tbl .of-prodhdr-row th div span.sub-head {
  color: red;
}

#col-header-clone {
  display: none;
}

.scrolled #col-header-clone {
  display: inline-block;
}

#col-header-clone tr.of-prodhdr-row {
  display: inline-block;
  width: 100%;
}

div#col-header-clone {
  position: fixed;
  top: 122px;
  z-index: 0;
  background-color: #eee;
  left: 13px;
  width: 98.6%;
}

.of-orginfo-row th div label {
  font-weight: normal;
}

.of-orginfo-row th div span {
}

.of-orginfo-row th .of-instructions span {
  display: none;
}

.readonly-mode .of-orginfo-row th .of-instructions span {
  font-weight: bold;
  display: inline-block;
}

.of-instructions {
  position: relative;
}

.of-instructions textarea {
  position: absolute;
  width: 97%;
  height: 3em;
}

.of-instructions div {
  float: left;
  min-height: 45px;
  width: 1px;
}

.orders-tbl td.of-name {
  text-align: left;
  width: 5.5em;
}

.orders-tbl td.of-name input {
  text-align: left;
}

.orders-tbl td.of-name span {
  width: 300px;
}

.orders-tbl td.of-tot {
  text-align: right;
  color: #000;
}

/*
.of-total-row{                                                                               
  font-weight:bold;
  color:#000;
}                                              

.of-free-row{
  font-weight:bold;
  color:#000;
}
*/

.new-size {
  border-left: 6px solid #666;
}

#salesorder-panel .btn-panel {
  width: 99%;
  padding: 0.44%;
}

#salesorder-panel .btn-panel .add-btn {
  float: left;
  padding-bottom: 12px;
}

#orderentry-panel .add-btn {
  float: right;
  padding-bottom: 9px;
  padding-right: 1em;
  margin-top: 0.7em;
  margin-right: 0.6em;
}

#salesorder-panel.order-form .pt-cases,
#salesorder-panel.order-form .pt-each,
#salesorder-panel.order-form .pt-spacer {
  display: none;
}

#salesorder-panel.pick-ticket .add-btn,
#salesorder-panel.pick-ticket .edit-btn,
#salesorder-panel.pick-ticket td.of-tot span,
#salesorder-panel.pick-ticket tfoot .of-tot,
#salesorder-panel.pick-ticket .btn-panel {
  display: none;
}

#free-tbl-container {
  float: left;
  margin-left: 0.4em;
}

#free-tbl,
#profit-tbl {
  margin: 10px 0;
  border-collapse: collapse;
  border: none;
}

#free-tbl th,
#free-tbl td,
#profit-tbl th,
#profit-tbl td {
  padding: 4px 6px;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.1em;
  border: 1px solid #333;
}

#free-tbl td,
#profit-tbl td {
  background-color: rgba(242, 236, 236, 1);
}

#profit-tbl-container {
  float: right;
  margin-right: 0.4em;
}

/* ------------------ */

/*
#orderform-panel .pt-cases, #orderform-panel .pt-each, #orderform-panel .pt-spacer{
  display:none;
}
*/

/* ------------------ */

.panel-block {
  float: left;
  width: 98%;
  padding: 0.5% 0 0.5% 0;
  border: 1px solid #ccc;
  margin: 0.4%;
  background-color: rgba(255, 255, 255, 1);
}

.panel-block.full {
  width: 98%;
}

.panel-block.full .edit-block {
  margin-left: 1%;
}

.panel-block.full label {
  width: 17%;
}

.panel-block.full .edit-val {
  width: 80%;
}

.panel-block.half {
  width: 48.4%;
}

.panel-block.forth {
  width: 24%;
}

.panel-block.right {
  float: right;
}

.panel-block-container {
  width: 48.4%;
  padding: 0.35% 0 0.5% 0;
  margin: 0% 0.55% 0.4% 0.4%;
}

.panel-block-container.right {
  float: right;
}

.panel-block-container .panel-block {
  width: 100%;
  margin: 0 0 1.45% 0;
  padding: 1% 0 1% 0;
}

.edit-block {
  float: left;
  width: 97%;
  margin: 0 1% 0.7% 2%;
}

.edit-block.half {
  width: 46%;
}

.edit-block.forth {
  width: 22%;
}

.edit-block.last {
  float: right;
  padding-right: 0;
  margin-right: 2%;
}

.edit-block.last span,
.edit-block.last input,
.edit-block.last textbox {
  float: right;
}

.edit-block label {
  display: inline-block;
  float: left;
  width: 35%;
  font-family: arial;
  font-weight: 100;
  color: #888;
}

.edit-block .edit-val {
  float: left;
  width: 64%;
  margin-bottom: 1%;
  height: 1.4em;
}

.edit-block.half label,
.edit-block.forth label {
  width: auto;
  margin-right: 1%;
}

.edit-block .edit-val span {
  display: none;
}

.edit-block.last .edit-val {
  float: right;
}

.dates .edit-block label {
  width: 5em;
}

.edit-block
  .edit-val
  .ui-checkbox.ui-button.ui-corner-all.ui-widget.ui-button-icon-only
  span.ui-button-icon.ui-icon.ui-icon-check {
  /* dont hide checkmark span */
  display: block;
}

.panel-block.spacer {
  border: none;
  border-top: 2px solid #aaa;
  background: none;
  height: 1.5em;
}

.readonly-mode .edit-block .edit-val span {
  display: inline-block;
  width: 100%;
  height: 1.25em;
  margin-bottom: 0.2%;
  border-bottom: 1px solid #ccc;
  font-weight: bold;
}

.edit-block .edit-val input,
.edit-block .edit-val textbox,
.edit-block .edit-val select {
  width: 100%;
}

.readonly-mode .edit-block .edit-val input,
.readonly-mode .edit-block .edit-val textbox,
.readonly-mode .edit-block .edit-val select {
  display: none;
}

.readonly-mode .edit-block .edit-val.contact-status input {
  float: left;
  margin-left: 0;
  width: 20px;
}

/* .readonly-mode .edit-block .edit-val.contact-status button{ */
.edit-block .edit-val.contact-status button {
  position: relative;
  top: -0.4em;
  left: -0.4em;
  padding: 0.2em 0.2em 0.4em 0em;
}

.readonly-mode .edit-block .edit-val.contact-status button span {
  border-bottom: none;
}

.readonly-mode .edit-block .edit-val.contact-status button span.ui-button-icon {
  width: 80%;
}

/* ---- groups form -------------- */

#groups-form.form-panel {
  float: none;
  overflow: auto;
  width: 1200px;
  margin: 1% auto;
  padding: 0.2%;
}

#groups-form.form-panel .panel-block.half {
  min-height: 128px;
}

#groups-form .btn-panel {
  border: none;
  background: none;
}

#groups-form.form-panel .panel-block .spacer {
  min-height: 0px;
  height: 20px;
}

/*--*/
#group-prd-tbl {
  border-collapse: collapse;
  border: none;
}

.group-product-key {
  display: none;
}

#group-prd-tbl th {
  padding: 4px 6px;
  text-align: left;
  font-size: 1em;
  line-height: 1.1em;
  border: 1px solid #ccc;
}

#group-prd-tbl td {
  height: 25px;
  font-size: 1em;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid #ccc;
}

#group-prd-tbl .gf-prd-name,
#group-prd-tbl .gf-prd-info {
  text-align: left;
}

.grp-prd-edit-btn,
.oe-prd-edit-btn {
  width: 1.5em;
  height: 1.3em;
  background-color: rgb(180, 39, 44);
  background-image: url("../images/edit_white.png");
  background-size: 1em;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.grp-prd-edit-btn:hover,
.oe-prd-edit-btn:hover {
  background-color: rgb(120, 30, 25);
}

/* .editing-mode .grp-prd-edit-btn, .editing-mode .oe-prd-edit-btn{ */
.grp-prd-edit-btn,
.editing-mode .oe-prd-edit-btn {
  background-color: rgb(39, 180, 44);
  background-image: url("../images/done_white.png");
}

#groups-form .panel-block .edit-block label span.gf-blk-caption {
  display: inline-block;
  position: relative;
  left: -7px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #555;
  background-color: rgba(30, 0, 0, 0.2);
  font-weight: bold;
  font-size: 1.1em;
}

#groups-form td.gf-prd-name span {
  display: inline-block;
  width: 12em;
}

/* #groups-form .editing-mode td.gf-prd-name span{ */
#groups-form .td.gf-prd-name span {
  display: none;
}

/* #groups-form td.gf-prd-name select{ */
#groups-form .readonly-mode td.gf-prd-name select {
  display: none;
  width: 12em;
}

/* #groups-form .editing-mode td.gf-prd-name select{ */
#groups-form td.gf-prd-name select {
  display: inline-block;
}

/* #groups-form td.gf-sell-price span{ */
#groups-form .readonly-mode td.gf-sell-price span {
  display: inline-block;
}

/* #groups-form .editing-mode td.gf-sell-price span{ */
#groups-form td.gf-sell-price span {
  display: none;
}

/* #groups-form td.gf-sell-price input{ */
#groups-form .readonly-mode td.gf-sell-price input {
  display: none;
  width: 4em;
}

/* #groups-form .editing-mode td.gf-sell-price input{ */
#groups-form td.gf-sell-price input {
  display: inline-block;
  width: 4em;
}

#groups-form .add-btn.small {
  margin-top: 0.4em;
}

#groups-form .contact-panel {
  position: relative;
}

#groups-form .contact-expander {
  position: absolute;
  border: 1px solid #aaa;
  padding: 0 4px;
  margin: 0px 5px 0px 0px;
  background-color: rgb(120, 30, 25);
  color: #fff;
  right: 1px;
  font: bold 10pt arial;
}

#groups-form .primary .contact-expander {
  display: none;
}

#groups-form .contact-expander:hover {
  background-color: rgb(170, 60, 55);
  cursor: pointer;
}

#groups-form .contact-panel.expanded {
  height: 195px !important;
}

/* ------------------ */

#custprice-form,
#custprice-tbl-panel,
#custprice-tbl-container,
#custprice-tbl {
  margin: 0;
  padding: 0;
  width: 100%;
}

#custprice-form {
  position: relative;
  left: 50%;
  margin-left: -307px;
  width: 615px;
  width: 95%;
  max-width: 615px;
}

#custprice-tbl {
  border-collapse: collapse;
  border: none;
}

#custprice-tbl tr.custprice-row {
  background-color: #f5f5f5;
}

#custprice-tbl . {
  background-color: #444;
  color: #fff;
}

#custprice-tbl .custprice-heading h2 {
  font-size: 1.4em;
  line-height: 1.2em;
}

#custprice-tbl .custprice-instruct {
  font-size: 1.1em;
}

#custprice-tbl .custprice-instruct,
#custprice-tbl .custprice-sell-price {
  font-weight: bold;
  color: #000;
  background-color: rgba(255, 218, 129, 1);
}

#custprice-tbl th {
  padding: 4px 6px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.1em;
  border: 1px solid #444;
  background-color: #d1d1d1;
}

#custprice-tbl td {
  height: 25px;
  font-size: 1em;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid #ccc;
}

#custprice-tbl .custprice-prd-name,
#custprice-tbl .custprice-prd-info {
  text-align: left;
}

.custprice-edit-btn {
  width: 1.5em;
  height: 1.3em;
  background-color: rgb(180, 39, 44);
  background-image: url("../images/edit_white.png");
  background-size: 1em;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.custprice-edit-btn:hover {
  background-color: rgb(120, 30, 25);
}

.custprice-edit-btn {
  background-color: rgb(39, 180, 44);
  background-image: url("../images/done_white.png");
}

#custprice-form .panel-block .edit-block label span.custprice-blk-caption {
  display: inline-block;
  position: relative;
  left: -7px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #555;
  background-color: rgba(30, 0, 0, 0.2);
  font-weight: bold;
  font-size: 1.1em;
}

#custprice-form td.custprice-name span {
  display: inline-block;
  width: 12em;
}

#custprice-form .td.custprice-prd-name span {
  display: none;
}

/*
#custprice-form .readonly-mode td.custprice-prd-name select{
  display:none;
  width:12em;
}

#custprice-form td.custprice-prd-name select{
  display:inline-block;
}
*/

#custprice-form .readonly-mode td.custprice-sell-price span {
  display: inline-block;
}

#custprice-form td.custprice-sell-price span {
  display: none;
}

#custprice-form .readonly-mode td.custprice-sell-price input {
  display: none;
  width: 4em;
}

#custprice-form td.custprice-sell-price input {
  display: inline-block;
  width: 4em;
}

/* ==========*/

#orderentry-form.form-panel {
  float: none;
  overflow: auto;
  width: 100%;
  max-width: 1200px;
  margin: 1% auto;
  padding: 0.2%;
}

#orderentry-form.form-panel .panel-block.half {
  min-height: 128px;
}

#orderentry-form .btn-panel {
  position: absolute;
  bottom: 4px;
  border: none;
  background: none;
}

#orderentry-form.form-panel .panel-block .spacer {
  min-height: 0px;
  height: 20px;
}

.usermode-cust #orderentry-panel {
  display: none;
}

.usermode-cust #salesorder-panel {
  display: block;
}

#oe-prd-tbl {
  border-collapse: collapse;
  border: none;
}

.group-product-key {
  display: none;
}

.salesperson-select {
  float: left;
  margin: 0.4%;
  margin-bottom: 0.1%;
  padding: 0.7% 2% 0.65% 0.5%;
  width: 50%;
  max-width: 300px;
}

#orderentry-panel.submitted .panel-block.oe-salesperson,
#orderentry-panel.submitted #oe-prd-tbl-panel {
  display: none;
}

#orderentry-panel .post-submit-text {
  display: none;
}

#orderentry-panel.submitted .post-submit-text {
  text-align: center;
  display: block;
}

.panel-block.oe-salesperson .salesperson-select label {
  display: inline-block;
  float: left;
  width: 100%;
}

.salesperson-select span.ui-selectmenu-button {
  display: inline-block;
  float: left;
}

.salesperson-select-cb {
  font-size: 0.9em;
}

/*
.salesperson-select-cb option{
  min-height:0;
  height:10px;
  line-height: .3em;
  padding: 0;
  margin:0;
}
*/

.salesperson-select .ui-selectmenu-button {
  float: left;
  width: 100%;
}

.cb-fixed-height ul {
  max-height: 220px;
}

.panel-block.oe-instruct-panel {
}

.panel-block.oe-instruct-panel label {
  width: 25%;
}

.panel-block.oe-instruct-panel .edit-val {
  width: 75%;
  height: auto;
}

.panel-block.oe-instruct-panel .edit-block .edit-val span {
  border: none;
}

.oe-salesperson .add-btn {
  width: 6em;
}

.oe-salesperson img {
  position: relative;
  top: 0.5em;
  float: left;
  width: 1em;
}

.oe-salesperson .add-btn span {
  display: inline-block;
  top: 0;
  width: 5em;
  font-size: 0.8em;
  padding: 0 0.5em;
}

#oe-prd-tbl-panel {
  height: auto;
  min-height: 500px;
  margin-bottom: 5em;
}

#oe-prd-tbl th {
  height: 21px;
  padding: 4px 6px;
  text-align: left;
  font-size: 1em;
  line-height: 1.1em;
  border: 1px solid #ccc;
}

#oe-prd-tbl td {
  height: 21px;
  font-size: 1em;
  text-align: center;
  padding: 2px 6px;
  border: 1px solid #ccc;
}

#oe-prd-tbl .oe-prd-name {
  text-align: left;
}

#oe-prd-tbl tbody tr:last-child td {
  background-color: #f1f1f1;
}

#orderentry-form td.oe-prd-name span {
  display: inline-block;
  width: 12em;
}

/*
#orderentry-form .editing-mode td.oe-prd-name span{
  display:none;
}

#orderentry-form td.oe-prd-name select{
  display:none;
  width:12em;
}

#orderentry-form .editing-mode td.oe-prd-name select{
  display:inline-block;
}
*/

#orderentry-form.readonly-mode td.oe-qty span {
  display: inline-block;
}

#orderentry-form td.oe-qty span {
  display: none;
}

#orderentry-form.readonly-mode td.oe-qty input {
  display: none;
}

#orderentry-form td.oe-qty input {
  display: inline-block;
  width: 4em;
}

#orderentry-form.readonly-mode td.oe-sell-price input {
  display: none;
  width: 4em;
}

#orderentry-form td.oe-sell-price input {
  display: inline-block;
  width: 4em;
}

#orderentry-form .add-btn.small {
  margin-top: 0.4em;
}

#oe-prd-tbl-panel .edit-btn {
  margin-left: 0;
  margin-bottom: 1em;
}

/* --- */

#transfer-panel {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 4em 0;
}

#transfer-panel .form-panel {
  width: 600px;
}

#transfer-panel .panel-block {
  width: 89%;
  padding: 1em 5%;
}

#transfer-panel .panel-block h2 {
  text-align: center;
}

.import-container {
  float: left;
  width: 100%;
  height: 100%;
}

.import-container input {
  width: 80%;
}

#version {
  position: absolute;
  top: 1em;
  right: 1em;
}

.to-pdf .form-panel {
  border: none;
}

.to-pdf .orders-tbl {
  border: 2px solid #444;
  box-sizing: border-box;
  margin: 0 auto;
  padding-top: 1em;
  width: 99%;
}

.to-pdf .btn-panel,
.to-pdf .print-btn,
.to-pdf .of-print-options,
.to-pdf #back-to-site,
.to-pdf #salesorder-form > #header-logo,
.to-pdf #salesorder-form > #header-logo-2 {
  display: none !important;
}

.to-pdf div,
.to-pdf th,
.to-pdf td,
.to-pdf tr {
  background-color: transparent !important;
}

.to-pdf .of-orderid-lab,
.to-pdf #custprice-tbl .custprice-heading {
  color: #444 !important;
}

.to-pdf .orders-tbl .of-title-cell {
  text-align: center !important;
}

.to-pdf .orders-tbl .of-title-brand {
  position: relative !important;
  width: 100% !important;
  min-height: 5em !important;
  text-align: center !important;
}

.of-title-brand #header-logo {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  display: none;
  float: none !important;
}
.to-pdf .of-title-brand #header-logo {
  display: block !important;
}

.to-pdf .orders-tbl .of-title-brand .of-orderid-no {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

xthead {
  display: table-header-group;
}
xtfoot {
  display: table-row-group;
}
xtr {
  page-break-inside: avoid;
}
.to-pdf th {
  page-break-inside: avoid;
}

xthead {
  display: table-row-group;
}

body.to-pdf {
  background-color: transparent;
  font-size: 1.2em;
}

.to-pdf .btn {
  display: none !important;
}

.to-pdf .custprice-instruct {
  display: none !important;
}

.to-pdf #salesorder-form {
  clear: both;
  float: none;
  display: inlineblock;
  overflow: visible !important;
  position: relative;
  page-break-after: auto;
  page-break-inside: auto;
}

.to-pdf #salesorder-form + #salesorder-form {
  page-break-before: always;
}

.xto-pdf #salesorder-form:after {
  content: " ";
  display: block;
  clear: both;
}

.to-pdf .pick-ticket tr.of-hdr-spacer th {
  border-bottom: 1px solid #331;
}

.to-pdf tr.pt.pt-spacer td {
  display: none;
}

.to-pdf .orders-tbl .of-prodhdr-row th.of-amthdr-cell {
  min-width: 200px;
  line-height: 1.2em;
}

.to-pdf #col-header-clone {
  display: none;
}

.orders-tbl th .salesblank-name {
  display: inline-block !important;
  font-size: 0.8em;
  line-height: 1.6em;
  width: 22em;
  overflow: hidden;
}

.to-pdf .orders-tbl .of-prodhdr-row th div span.sub-head {
  font-size: 0.65em;
}

.to-pdf .orders-tbl tr td.of-row-paid {
  max-width: 20px;
}

.to-pdf td.of-cust-name {
  width: 300px;
}

.salesblank-name-row {
  display: inline-block !important;
  width: 100%;
  white-space: nowrap;
  font-size: 0.8em;
}

.salesblank-name-row span {
  display: inline-block !important;
}

.salesblank-name-row label {
  font-size: 1.6em;
  margin-left: 54px;
}

.of-row-paid.end {
  border: none !important;
}

.sp-row.blank-row td:last-child {
  min-width: 5em;
}

@media only screen and (max-width: 1223px) {
  .orders-tbl .of-prodhdr-row th {
    left: 1.2%;
  }
}

@media only screen and (max-width: 1023px) {
  .usermode-cust #orderentry-panel {
    display: block;
  }

  .usermode-cust #salesorder-panel {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) {
  #header {
    position: relative;
    margin-bottom: 6px;
  }

  #header-logo {
    width: 40%;
  }

  #header-logo img {
    width: 100%;
  }

  #header-logo-2 {
    width: 45%;
  }

  #header-logo-2 img {
    width: 100%;
    float: right;
  }

  #login-block {
    width: 298px;
  }

  #main-content {
    margin-top: 0;
  }

  #orderentry-form-upper .half {
    width: 97%;
    top: 0.5%;
    left: 0.5%;
  }

  #orderentry-panel {
    display: none;
    width: 97%;
  }

  #orderentry-form td.oe-prd-name span,
  #orderentry-form td.oe-qty span {
    width: auto;
  }
}

@media only screen and (max-width: 500px) {
  #oe-prd-tbl td {
    font-size: 0.85em;
  }

  #custprice-form {
    margin-left: -49%;
  }
}

@media only screen {
  .print-frames,
  .report-print {
    display: none;
  }
}

@page {
  size: A4;
}

@media print {
  #version {
    display: none !important;
    color: transparent;
  }

  .report-print,
  iframe,
  html,
  body,
  .report-print,
  .report-print-pdf {
    display: inlineblock;
    overflow: visible !important;
    position: relative;
    width: 750px;
    height: 900px;
    page-break-after: auto !important;
    page-break-inside: auto !important;
  }

  .report-print + .report-print,
  .report-print + .report-print-pdf,
  .report-print-pdf + .report-print,
  .report-print-pdf + .report-print-pdf,
  body.to-pdf #salesorder-form + #salesorder-form {
    page-break-before: always !important;
  }

  /*
  _:-moz-tree-row(hover) .report-print, nav.tm_navbar .report-print{
    float:left;
    clear:left;    
  }
*/
  iframe {
    padding: 2% 7% 2% 2%;
    width: 900px;
    overflow: auto;
    border: none;
  }

  .rotate {
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    transform: rotate(270deg);
    transform-origin: 0% 0%;
    position: absolute;
    left: 0;
    top: 100%;
  }

  .wait {
    display: none !important;
  }

  * {
    background-color: transparent !important;
  }

  html {
    overflow: visible;
    width: auto;
    height: auto;
    font:
      normal 8px "Montserrat",
      "Open Sans",
      Courier;
  }

  body {
    width: auto;
    height: auto;
    margin: 0;
    font:
      normal 8px "Montserrat",
      "Open Sans",
      Courier;
  }

  /* There used to be a CSS rule that could hide scrollbars in Firefox, but it has since been deprecated. That rule was: */
  .element {
    overflow: -moz-scrollbars-none;
  }
  .element {
    -ms-overflow-style: none;
  }

  -webkit-scrollbar {
    width: 0 !important;
  }
  -ms-overflow-style: -ms-autohiding-scrollbar;

  #col-header-clone {
    display: none;
  }

  #header-logo img,
  #header-logo-2 img {
    width: 67%;
  }

  #logout {
    display: none;
  }

  .orders-tbl .of-prodhdr-row th.of-qtyhdr-cell {
    min-width: 1.5em;
  }

  .orders-tbl .of-prodhdr-row th.of-amthdr-cell {
    min-width: 3em;
    max-width: 6em;
    text-align: right;
  }

  .orders-tbl .of-prodhdr-row th.of-prod-name div {
    margin-left: 1em;
    margin-bottom: 0.2em;
  }

  body.to-pdf #salesorder-form {
    display: block;
    max-width: none;
    width: 100%;
  }

  body.to-pdf #salesorder-form-tbl {
    max-width: none;
    margin: 0 auto;
    width: 99%;
  }

  body.to-pdf #salesorder-form-tbl .of-title-row th,
  body.to-pdf #salesorder-form-tbl .of-orginfo-row th,
  body.to-pdf #salesorder-form-tbl .of-hdr-spacer th {
    max-width: none;
  }

  .order-main-panel .btn-panel {
    display: none !important;
  }

  .of-print-options {
    display: none !important;
  }

  #of-campaign-select-container {
    display: none !important;
  }

  #custprice-form {
    font-size: 2em;
    width: 700px;
  }
}
