hr {
  border: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.btn .icon-small {
  font-size: 12px !important;
  top: 0 !important;
}

header {
  background: #0e0e0e;
  /* Old browsers */
  background: -moz-linear-gradient(top, #0e0e0e 6%, #7d7e7d 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(6%, #0e0e0e), color-stop(100%, #7d7e7d));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #0e0e0e 6%, #7d7e7d 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #0e0e0e 6%, #7d7e7d 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #0e0e0e 6%, #7d7e7d 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #0e0e0e 6%, #7d7e7d 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0e0e0e', endColorstr='#7d7e7d',GradientType=0 );
  /* IE6-9 */
}

.primary-msg, .positive-msg, .negative-msg {
  border-radius: 6px;
  border: 1px solid #dddddd;
  margin-bottom: 5px;
  color: #fff;
  padding: 10px;
  font-size: 14px !important;
}
.primary-msg h5, .positive-msg h5, .negative-msg h5 {
  margin: 0;
}

.primary-msg {
  background: #428bca;
}

.positive-msg {
  background: #5cb85c;
}

.negative-msg {
  background: #d9534f;
}

.primary-txt {
  color: #428bca;
}

.positive-txt {
  color: #5cb85c;
}

.negative-txt {
  color: #d9534f;
}

::-webkit-input-placeholder, :-moz-placeholder, ::-moz-placeholder, :-ms-input-placeholder {
  color: #ddd !important;
}

h1 {
  color: #fff !important;
  font-weight: bold;
  text-shadow: 1px 1px 0 #4f4f4f;
}
h1.title {
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #111;
}

.none {
  display: none;
}

.isNaN {
  background: #FFEAEA !important;
}

.content-padded .card {
  margin: 10px 0;
  padding: 10px;
}

.segmented-control {
  border: none;
}
.segmented-control .control-item {
  padding-top: 10px;
  padding-bottom: 10px;
  color: #fff;
  font-weight: bold;
  background: #5697d0;
  border-color: #5697d0;
  font-size: 16px;
  position: relative;
}
.segmented-control .control-item.active, .segmented-control .control-item:focus, .segmented-control .control-item:hover, .segmented-control .control-item :active {
  background: #428bca;
  border-color: #428bca;
  box-shadow: 0 0 8px 0 #3071a9 inset;
}
.segmented-control .control-item:after {
  background: none repeat scroll 0 0 #2f76b8;
  box-shadow: 0 0 1px 0 #6e90b0;
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  z-index: 99;
}
.segmented-control .control-item:last-child:after {
  background: none !important;
  content: "" !important;
  width: 0 !important;
  box-shadow: 0 !important;
}

.img-responsive {
  display: block;
  height: auto;
  max-width: 100%;
}

.margin-auto {
  margin: auto;
}

table {
  background-color: transparent;
  max-width: 100%;
  table-layout: fixed;
}

.responsive-table {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  overflow-x: scroll;
}

thead th {
  text-align: left;
  color: #fff;
  background: #428bca;
}
thead.positive th {
  text-align: left;
  color: #fff;
  background: #5cb85c !important;
}
thead.negative th {
  text-align: left;
  color: #fff;
  background: #d9534f !important;
}

.table {
  margin-bottom: 20px;
  width: 100%;
}
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
  border-top: 1px solid #ddd;
  line-height: 1.42857;
  padding: 8px;
  vertical-align: top;
}
.table > thead > tr > th {
  border-bottom: 2px solid #ddd;
  vertical-align: top;
}
.table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th, .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td {
  border-top: 0 none;
}
.table > tbody + tbody {
  border-top: 2px solid #ddd;
}
.table .table {
  background-color: #fff;
}

.table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td {
  padding: 5px;
}

.table-bordered {
  border: 1px solid #ddd;
}
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
  border: 1px solid #ddd;
}
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td {
  border-bottom-width: 2px;
}

.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
  background-color: #f9f9f9;
}

.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th {
  background-color: #f5f5f5;
}

table col[class*="col-"] {
  display: table-column;
  float: none;
  position: static;
}
table td[class*="col-"], table th[class*="col-"] {
  display: table-cell;
  float: none;
  position: static;
}

.table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th {
  background-color: #f5f5f5;
}

.table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > th.active:hover {
  background-color: #e8e8e8;
}
.table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr.active:hover > th {
  background-color: #e8e8e8;
}

.table > thead > tr > td.success, .table > tbody > tr > td.success, .table > tfoot > tr > td.success, .table > thead > tr > th.success, .table > tbody > tr > th.success, .table > tfoot > tr > th.success, .table > thead > tr.success > td, .table > tbody > tr.success > td, .table > tfoot > tr.success > td, .table > thead > tr.success > th, .table > tbody > tr.success > th, .table > tfoot > tr.success > th {
  background-color: #dff0d8;
}

.table-hover > tbody > tr > td.success:hover, .table-hover > tbody > tr > th.success:hover {
  background-color: #d0e9c6;
}
.table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr.success:hover > th {
  background-color: #d0e9c6;
}

.table > thead > tr > td.info, .table > tbody > tr > td.info, .table > tfoot > tr > td.info, .table > thead > tr > th.info, .table > tbody > tr > th.info, .table > tfoot > tr > th.info, .table > thead > tr.info > td, .table > tbody > tr.info > td, .table > tfoot > tr.info > td, .table > thead > tr.info > th, .table > tbody > tr.info > th, .table > tfoot > tr.info > th {
  background-color: #d9edf7;
}

.table-hover > tbody > tr > td.info:hover, .table-hover > tbody > tr > th.info:hover {
  background-color: #c4e3f3;
}
.table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr.info:hover > th {
  background-color: #c4e3f3;
}

.table > thead > tr > td.warning, .table > tbody > tr > td.warning, .table > tfoot > tr > td.warning, .table > thead > tr > th.warning, .table > tbody > tr > th.warning, .table > tfoot > tr > th.warning, .table > thead > tr.warning > td, .table > tbody > tr.warning > td, .table > tfoot > tr.warning > td, .table > thead > tr.warning > th, .table > tbody > tr.warning > th, .table > tfoot > tr.warning > th {
  background-color: #fcf8e3;
}

.table-hover > tbody > tr > td.warning:hover, .table-hover > tbody > tr > th.warning:hover {
  background-color: #faf2cc;
}
.table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr.warning:hover > th {
  background-color: #faf2cc;
}

.table > thead > tr > td.danger, .table > tbody > tr > td.danger, .table > tfoot > tr > td.danger, .table > thead > tr > th.danger, .table > tbody > tr > th.danger, .table > tfoot > tr > th.danger, .table > thead > tr.danger > td, .table > tbody > tr.danger > td, .table > tfoot > tr.danger > td, .table > thead > tr.danger > th, .table > tbody > tr.danger > th, .table > tfoot > tr.danger > th {
  background-color: #f2dede;
}

.table-hover > tbody > tr > td.danger:hover, .table-hover > tbody > tr > th.danger:hover {
  background-color: #ebcccc;
}
.table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr.danger:hover > th {
  background-color: #ebcccc;
}

table.pricecell {
  text-align: right;
}
table td {
  font-size: 14px !important;
}
table td input {
  width: 100px !important;
  font-size: 14px !important;
  text-align: right;
  float: left;
}
table td input[type="checkbox"] {
  width: 20px !important;
  float: left;
  height: 35px;
  margin-left: 3px;
}
table td div {
  position: relative;
}
table#ordergrid tbody tr.summary {
  background: #FFFEDC;
}
table#ordergrid tbody tr.cspsplit {
  background: #FFFEE6;
}

.table-mb .tr-b {
  border-bottom: 2px solid #ccc;
}
.table-mb td {
  border: none !important;
}

.login-container {
  background: none repeat scroll 0 0 #f1f1f1;
  left: 50%;
  margin: -23% 0 0 -25%;
  overflow: auto;
  padding: 5%;
  position: absolute;
  top: 50%;
  width: 55%;
  filter: blur(10px);
  border: 1px solid #dddddd;
  border-radius: 6px;
}

.table-view li input {
  margin-bottom: 0;
}

.rep-actions ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
  overflow: auto;
}
.rep-actions ul li {
  width: 33.33333%;
  float: left;
  padding: 0 0 15px 0;
}
.rep-actions ul li:nth-child(3n+2) {
  padding: 0 15px 15px 15px;
}
.rep-actions ul li a {
  border: 1px solid #357ebd;
  display: block;
  font-size: 14px;
  padding: 15px;
  height: 80px;
  max-height: 100px;
  overflow: hidden;
  line-height: 50px;
  border-raidus: 3px;
  color: #fff;
  text-shadow: 0 1px 0 #777;
  border-radius: 3px;
  background: #428BCA;
}

.inlinequantity {
  width: 70px !important;
}

.minvalue .badge:empty {
  display: none;
}

.txtsearchproduct {
  margin: 0;
  padding: 10px 0;
}
.txtsearchproduct li {
  width: 50%;
  float: left;
  padding: 0 5px;
}
.txtsearchproduct li .btn-block {
  padding: 6px;
}

.voucherdetails {
  padding: 10px;
  border: 1px solid #ccc;
  background: #ddd;
}
.voucherdetails .validatevoucher {
  padding-left: 0px;
  float: left;
  width: 24.5%;
  margin-left: 0px !important;
}
.voucherdetails #nothingtopay {
  margin-top: 15px;
}
.voucherdetails #amounttopay {
  width: 74.34%;
  display: block;
  float: left;
  font-size: 15px;
  font-weight: bold;
  height: 50px;
  margin-left: 1%;
  padding: 0 5px;
}

.orderbtns button, .orderbtns > a {
  float: left;
  width: 32.66667%;
}
.orderbtns button:nth-child(2n), .orderbtns > a:nth-child(2n) {
  margin: 0 1%;
}

.historyBtns button {
  float: left;
  width: 24.25%;
}
.historyBtns button:nth-child(2n) {
  margin: 0 1%;
}
.historyBtns button:last-child {
  margin: 0 0 0 1%;
}

.qtyCntrls {
  border: none;
}
.qtyCntrls a, .qtyCntrls input {
  float: left;
}
.qtyCntrls a {
  width: 25px !important;
  height: 35px !important;
  display: block !important;
  line-height: 25px !important;
  text-align: center !important;
  font-size: 14px !important;
  color: #fff !important;
  cursor: pointer;
}
.qtyCntrls a:focus, .qtyCntrls a:active, .qtyCntrls a:hover, .qtyCntrls a.active {
  background: #428bca !important;
}
.qtyCntrls input {
  width: 48px !important;
  padding: 3px !important;
  margin-bottom: 0px;
}

#productinfocontainer li img {
  border: 1px solid #ddd;
  box-shadow: 0 0 5px 0 #ddd;
  display: inline-block;
  height: 100px;
  margin-right: 1%;
  padding: 5px;
  position: relative;
  vertical-align: top;
  width: auto;
}

.supplynow, .supplylater {
  color: #fff;
  font-weight: bold;
}

.supplynow {
  background: #5cb85c;
}

.supplylater {
  background: #d9534f;
}

#custlist .table-view-cell {
  transition: all .3s ease-in-out;
}
#custlist .table-view-cell.active, #custlist .table-view-cell:hover, #custlist .table-view-cell:focus, #custlist .table-view-cell:active {
  background: #f9f8f8;
}

.form-item label {
  font-size: 14px;
  color: #333;
  padding-bottom: 5px;
}

.dates > div {
  float: left;
  width: 49%;
}
.dates > div:nth-child(1) {
  margin-right: 2%;
}

.media-body > span {
  margin-bottom: 5px;
  display: block;
}

.bar-tab > ul {
  background: #7d7e7d;
  /* Old browsers */
  background: -moz-linear-gradient(top, #7d7e7d 0%, #0e0e0e 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #7d7e7d), color-stop(100%, #0e0e0e));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #7d7e7d 0%, #0e0e0e 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #7d7e7d 0%, #0e0e0e 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #7d7e7d 0%, #0e0e0e 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #7d7e7d 0%, #0e0e0e 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7d7e7d', endColorstr='#0e0e0e',GradientType=0 );
  /* IE6-9 */
  margin: 0;
  padding: 0;
}
.bar-tab > ul > li {
  position: relative;
  padding: 15px 0;
  border-right: 1px solid #1d1d1d;
}
.bar-tab > ul > li > a {
  color: #929292;
  transition: .3s all ease-in-out;
  display: block;
}
.bar-tab > ul > li > a:hover {
  color: #428bca;
}

.foot-popover:hover ul {
  visibility: visible;
  opacity: 1;
}
.foot-popover ul {
  border-radius: 3px;
  padding: 0;
  list-style: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  /*left: -15%;*/
  right: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #ddd;
  -webkit-transition: 0.2s ease-out;
  -moz-transition: 0.2s ease-out;
  -o-transition: 0.2s ease-out;
  transition: 0.2s ease-out;
  -webkit-transition-property: opacity, padding, visibility;
  -moz-transition-property: opacity, padding, visibility;
  -o-transition-property: opacity, padding, visibility;
  transition-property: opacity, padding, visibility;
  -webkit-box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.foot-popover ul:before, .foot-popover ul:after {
  content: '';
  display: block;
  position: absolute;
  left: 40%;
  width: 0;
  height: 0;
  border: 7px outset transparent;
}
.foot-popover ul:before {
  bottom: -14px;
  border-top: 7px solid #ddd;
}
.foot-popover li:first-child:after {
  bottom: -13px;
  border-top: 7px solid white;
}
.foot-popover ul:after {
  bottom: -12px;
  border-top: 7px solid #fff;
}
.foot-popover li {
  text-align: left;
  color: #838ca2;
  text-shadow: 0 1px white;
}
.foot-popover li i {
  margin-right: 5px;
}
.foot-popover li a {
  display: block;
  position: relative;
  padding: 15px;
  color: #929292;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
}
.foot-popover li a:hover {
  color: #313a4f;
  text-shadow: 0 1px #fff;
  background: #eee;
}

.grid .one {
  width: 100%;
  float: left;
}
.grid .two {
  width: 50%;
  float: left;
}
.grid .three {
  width: 33.33333%;
  float: left;
}
.grid .four {
  width: 25%;
  float: left;
}
.grid .five {
  width: 20%;
  float: left;
}
.grid .six {
  width: 16.66667%;
  float: left;
}
.grid .seven {
  width: 14.28571%;
  float: left;
}
.grid .eight {
  width: 12.5%;
  float: left;
}
.grid .nine {
  width: 11.11111%;
  float: left;
}
.grid .ten {
  width: 10%;
  float: left;
}
.grid .eleven {
  width: 9.09091%;
  float: left;
}
.grid .twelve {
  width: 8.33333%;
  float: left;
}

/*Fix iOS 8 Safari bug for modal popup windows*/
header.bar.bar-nav {
  -webkit-transform: translateZ(0);
}

/*Phone portrait*/
@media only screen and (min-width: 240px) and (max-width: 640px) {
  h3 {
    font-size: 16px;
  }

  thead th {
    font-size: 14px;
  }

  header .title {
    font-size: 14px;
  }

  .login-container {
    width: 100%;
    margin: -50% 0 0 -50%;
  }

  .foot-popover ul {
    width: 175%;
    left: 0%;
  }
  .foot-popover ul li a {
    font-size: 12px;
  }
  .foot-popover ul::before, .foot-popover ul:after {
    left: 23%;
  }

  .hide-mb {
    display: none;
  }

  header .btn {
    font-size: 17px;
    padding: 6px 10px 7px !important;
  }

  .table-view-cell > a:not(.btn) {
    font-size: 14px;
  }

  .historyBtns button {
    width: 49.5% !important;
    float: left;
    margin: 0 0 5px 0 !important;
  }
  .historyBtns button:nth-child(2n) {
    margin-left: 1% !important;
  }

  .customerDetails .two {
    width: 100%;
    margin-bottom: 5px;
  }

  #frmProductSearch .form-item {
    width: 48% !important;
    float: left;
    margin-right: 2%;
  }

  .grid strong {
    display: block !important;
    width: 100% !important;
    margin-bottom: 2px !important;
  }
}
