a:focus {
  outline: none;
}
.dropdown-menu > li {
  position:relative;
  -webkit-user-select: none; /* Chrome/Safari */        
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+ */
  /* Rules below not implemented in browsers yet */
  -o-user-select: none;
  user-select: none;
  cursor:pointer;
}
.dropdown-menu .sub-menu {
  left: 100%;
  position: absolute;
  top: 0;
  display:none;
  margin-top: -1px;
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  border-left-color:#fff;
  box-shadow:none;
}
.right-caret:after,.left-caret:after {
  content:"";
  border-bottom: 5px solid transparent;
  border-top: 5px solid transparent;
  display: inline-block;
  height: 0;
  vertical-align: middle;
  width: 0;
  margin-left:5px;
}
.right-caret:after { border-left: 5px solid #ffaf46; }
.left-caret:after { border-right: 5px solid #ffaf46; }
.add-sale.form-inline input { max-width: 150px; }

/* MEMO STYLE */
.main {
  max-width: 1200px;
  margin: auto;
  height: 500px;
}
h1 span {
  font-size: 25px;
}
table {
  width: 100%;
}

.customer strong,
.new-customer strong {
  width: 100px;
  display: inline-block;
  position: relative;
  margin-right: 12px;
}
.customer strong::after,
.new-customer strong::after {
  content: ':';
  position: absolute;
  right: 0;
}
.customer td {
  height: 37px;
}
.customer .select2.select2-container {
  width: 50% !important;
}
.new-customer .form-control,
#datepicker.form-control {
  display: inline-block;
  width: auto;
}
.new-customer {
  display: none;
}

#memo {
  margin-top: 50px;
}
#memo table th, #memo table td {
  border: 1px solid #ddd;
  padding: 10px;
}
#memo table {
  width: 96%;
}
#memo th {
  text-align: center;
  background: #f9f9f9;
}
#memo .add_more {
  border: none;
  padding: 0;
  width: 50px;
}
.add_more span {
  padding: 0;
  font-size: 37px;
  width: 40px;
  line-height: 1;
  color: #bfbfbf;
  border: 1px solid #bfbfbf;
  height: 40px;
  border-radius: 50%;
  display: block;
  margin-left: 10px;
  text-align: center;
  cursor: pointer;
  font-family: Arial;
}
.add_new_customer {
  display: inline-block;
}
.add_new_customer span {
  padding: 0;
  font-size: 28px;
  width: 28px;
  line-height: 24px;
  color: #bfbfbf;
  border: 1px solid #bfbfbf;
  height: 28px;
  border-radius: 50%;
  display: block;
  margin-left: 5px;
  text-align: center;
  cursor: pointer;
  position: relative;
  top: 5px;
  font-family: Arial;
}
.customer .submit {
  width: 100px;
}
#memo .memo_input {
  position: relative;
}
#memo .memo_input .add_more {
  position: absolute;
  right: 0;
  bottom: 173px;
  width: 4%;
}
.preview-memo {
  text-align: right;
  margin-right: 4%;
  margin-top: 20px;
}
.create-memo .customer.disable {
  display: none;
}
.create-memo .new-customer.enable {
  display:block;
}
.memo_input tr td input {
  text-align: right;
}
/*
.memo_input tr td:nth-of-type(6) input {
  text-align: left;
}
*/
.memo_input tr th:nth-of-type(2) {
  width: 30%;
}
.total td {
  width: 30%;
}
#memo .memo_input tfoot td:nth-of-type(1), 
#memo .memo_input tfoot td:nth-of-type(2), 
#memo .memo_input tfoot td:nth-of-type(3),
#memo .memo_input tfoot td:nth-of-type(4),
#memo .memo_input tfoot td:nth-of-type(5),
#memo .memo_input tfoot td:nth-of-type(7),
#memo .memo_input tfoot td:nth-of-type(8) {
  border: none;
}
#memo tfoot {
  border: 1px solid #ddd;
}
.remove-line {
  font-size: 25px;
  color: #bfbfbf;
  cursor: pointer;
  line-height: 33px;
}
#memo_list .remove-line {
  display: none;
}
#memo_list tr:last-child .remove-line {
  display: block;
}
.item_rate,
.item_price {
  width: 125px;
}
.item_qty {
  width: 90px;
}
.c-red {
  color: red;
}
/*
.select2-container--default .select2-results__option[aria-disabled=true] {
  display: none;
}
*/
.customer td {
  padding-top: 10px;
}
#total-quantity th {
  padding-left: 10%;
}