:root {
  --color-primary: #de0017;
}
body {
  font-family: "Nunito Sans", sans-serif;
}
.menu {
  gap: 16px;
}
.h-menu__account {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  height: 40px;
  flex-shrink: 0;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 0 12px;
}
.h-menu__account a {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-dropdown {
  position: relative;
}
.h-dropdown__body {
  position: absolute;
  right: 0;
  top: 100%;
  width: 220px;
  padding-top: 8px;
  opacity: 0;
  pointer-events: none;
  -webkit-transform: perspective(400) rotate3d(1, 0, 0, -90deg);
  -webkit-transform-origin: 50% 0;
  transition: all 0.3s;
}
.h-dropdown:hover .h-dropdown__body {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: perspective(400) rotate3d(0, 0, 0, 0);
}
.h-dropdown__body--bg {
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.3);
  background: #fff;
  overflow: hidden;
}
.h-dropdown__body__triangle {
  position: absolute;
  right: 12px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}
.h-dropdown__user-info {
  padding: 4px 16px;
}
.h-dropdown__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  color: #333;
  transition: all 0.3s;
}
.h-dropdown__link:hover {
  background: #f9f9f9;
  color: #333;
}
.h-dropdown__list {
  padding: 4px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.h-dropdown__bottom {
  padding: 4px 0;
}
.h-content-user {
  display: flex;
  align-items: start;
  gap: 32px;
  font-family: "Muli";
}
.h-card {
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 0 16px 12px;
  margin-bottom: 16px;
}
.h-card:last-child {
  margin-bottom: 0;
}
.h-card__title {
  font-weight: bold;
  padding: 12px 0 8px;
}
.sale-info span,
.sale-info a {
  font-weight: bold;
  color: #333;
}
.h-content-user__left {
  width: 25%;
  overflow: hidden;
}
.h-content-user__right {
  width: 75%;
  overflow: hidden;
}
.h-sidebar__user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.h-sidebar__user-info__icon {
  width: 40px;
  height: 40px;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.h-sidebar__user-info__name {
  font-weight: 500;
}
.h-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}
.h-sidebar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  color: #333;
  transition: all 0.3s;
  border-radius: 8px;
}
.h-sidebar__link:hover,
.h-sidebar__link.is-actived {
  background: #eee;
  color: #333;
}
.h-sidebar__logout {
  padding: 8px 0;
  border-top: 1px solid #eee;
}
.h-sidebar__logout a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  color: #333;
  transition: all 0.3s;
  border-radius: 8px;
}
.h-sidebar__logout a:hover {
  background: #eee;
  color: #333;
}
.h-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.h-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  min-width: 40px;
  border: 1px solid #eee;
  border-radius: 8px;
  color: #333;
}
.h-table-res {
  overflow: auto;
}
.h-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  box-shadow: 0 0 5px #f1f1f1;
  border-radius: 12px;
  overflow: hidden;
}
.h-table th,
.h-table td {
  border-bottom: 1px solid #eee;
  padding: 4px;
}
.h-table th {
  background-color: #f1f1f1;
  font-weight: normal;
}
.text-center {
  text-align: center;
}
.w-full {
  width: 100%;
}
.font-bold {
  font-weight: bold;
}
.button-create-order {
  margin-top: 20px;
}
.select2-container .select2-selection--single {
  height: 38px !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 38px !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 4px !important;
}
.create-order-product {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.create-order-product:last-child {
  border-bottom: 0;
}
.create-order-product .hform-group:first-child {
  flex: 1 1 auto;
}
.create-order-product .hform-group:nth-child(2),
.create-order-product .hform-group:nth-child(3) {
  flex: 1 0 114px;
}
.create-order-product .hform-group:last-child {
  flex: 0 0 36px;
}
.btn-h {
  height: 38px;
}

.h-filter {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}
.h-filter-item {
  border-bottom: 1px solid #eee;
}
.h-filter-item:last-child {

}
.h-filter-item__header {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 8px 12px;
}
.h-filter-item__body {
  padding: 4px 4px 12px 12px;
}
.h-filter-item__body > ul {
  max-height: 238px;
  overflow: auto;
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.h-filter-item__body > ul::-webkit-scrollbar {
  width: 6px;
  border-radius: 3px;
}
.h-filter-item__body > ul::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.h-filter-item__body > ul::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
.h-filter-item__body > ul::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.h-filter-item__body > ul > li > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.h-filter-item__body > ul > li > div > button {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  outline: none;
  background-color: transparent;
  color: #999;
  transition: all 0.3s;
}
.h-filter-item__body > ul > li > div > button:hover {
  background-color: #eee;
}
.h-filter-item__body a {
  display: inline-flex;
  font-size: 14px;
  color: #333;
  transition: all 0.3s;
  padding: 4px 0;
}
.h-filter-item__body > ul ul {
  display: none;
  list-style-type: none;
  padding: 0 0 0 16px;
  margin: 0;
}
.h-filter-item__body a:hover {
  color: var(--color-primary);
}
.h-filter-item__body label {
  padding: 4px 0;
  font-size: 14px;
}
.h-checkbox {
  display: inline-flex;
  cursor: pointer;
}
.h-checkbox input {
  position: absolute;
  opacity: 0;
}
.h-checkbox span {
  position: relative;
  padding-left: 32px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  user-select: none;
  text-transform: uppercase;
}
.h-checkbox span:before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border: 1px solid #d8d7d7;
  border-radius: 4px;
  transition: all 0.3s;
}
.h-checkbox span:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #eee;
  border-bottom: 2px solid #eee;
  border-radius: 2px;
  transition: all 0.3s;
  transform: rotate(-90deg) scale(0);
}
.h-checkbox input:checked + span:before {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
.h-checkbox input:checked + span:after {
  border-color: #fff;
  transform: rotate(-45deg) scale(1);
}
.h-filtered {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.h-filtered-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background-color: #fdd;
  cursor: pointer;
}
.h-filtered-item i {
  color: var(--color-primary);
}
.h-filtered__title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  background-color: #eee;
  padding: 4px 16px;
  border-radius: 9999px;
}
.h-filtered__delete {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  transition: all 0.3s;
  color: var(--color-primary);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}
.h-filtered__delete:hover {
  background-color: #fdd;
  border-color: #fdd;
}
.form-control {
  border-color: #eee !important;
}
.hform-group label {
  font-weight: bold;
  font-size: 12px;
}
#js__product-list {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
}
#js__order-total {
  font-weight: bold;
  text-align: right;
}
#js__order-total span {
  font-size: 20px;
}
.custom-select {
  border-color: #eee;
}
.input-group-text {
  border-color: #eee;
}
.h-fancybox {
  display: none;
  width: calc(100% - 32px);
  max-width: 600px;
  background-color: #fff;
  border-radius: 12px;
  padding: 8px 12px 12px 12px;
  overflow: hidden;
}
#js__customer-detail.h-fancybox {
  max-width: 800px;
}
.fancybox-slide--html .fancybox-close-small {
  right: 8px;
  top: 8px;
  border-radius: 4px;
}
.order-detail__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 18px;
  padding: 8px 0 12px;
}
.order-detail__title span {
  color: var(--color-primary);
}
.order-detail__title strong {
  font-size: 12px;
}
.order-detail-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.order-detail-card__title {
  font-weight: bold;
  margin-bottom: 4px;
}
.order-detail-product {
  display: grid;
  grid-template-columns: 80px auto 200px;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.order-detail-product:last-child {
  border-bottom: 0;
}
.order-detail-product__image img {
  border-radius: 8px;
}
.order-detail-product__price {
  text-align: right;
  font-weight: bold;
}
.order-detail-total {
  margin-top: 12px;
  font-weight: bold;
  font-size: 16px;
  text-align: right;
}
.h-filter__mobile {
  display: none;
}
#js__show-filter {
  display: none;
}
.btn-hprimary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff !important;
}
@media screen and (max-width: 1024px) {
  .left-slide {
    display: none;
  }
  .right-slide {
    width: 100%;
  }
  .boxfooter_left {
    margin-bottom: 0;
    margin-top: 16px;
  }
  .boxfooter_right_red {
    width: 100%;
    padding: 16px 0;
    font-size: 14px;
    overflow: auto;
  }
  .boxfooter_right_red ul {
    gap: 16px;
  }
  .boxfooter_right_red a {
    white-space: nowrap;
  }
  .boxfooter_title1 {
    text-align: center;
  }
  .right-mxh {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px 0;
  }
}
@media screen and (max-width: 768px) {
  .h-content-user {
    flex-direction: column;
  }
  .h-content-user__left {
    width: 100%;
    flex: 1 1 auto;
  }
  .h-content-user__right {
    width: 100%;
  }
  #js__show-filter {
    display: block;
    padding: 8px 16px;
    border: 0;
    outline: none;
    margin-bottom: 12px;
    border-radius: 9999px;
  }
  .h-filter {
    position: fixed;
    width: 270px;
    overflow: auto;
    overflow-y: scroll;
    right: 0;
    top: 0;
    z-index: 999999;
    background-color: #fff;
    transform: translateX(100%);
    transition: all 0.3s;
    border-radius: 16px 0 0 0;
    height: 100vh;
    max-height: 100vh;
  }
  .h-filter.is-actived {
    transform: translateX(0);
  }
  .h-filter__mobile {
    display: flex;
    padding: 12px;
    background-color: #f1f1f1;
    justify-content: space-between;
    align-items: center;
  }
  .h-filter__mobile span {
    font-size: 18px;
    font-weight: bold;
  }
  .h-filter__mobile button {
    border: 0;
    padding: 0;
    outline: none;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .left-pro {
    width: 100%;
  }
  .header .fixwidth {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }
  .right-info {
    display: none;
  }
  .middle-head {
    font-size: 20px;
  }
}
@media screen and (max-width: 500px) {
  .order-detail-product {
    grid-template-columns: 80px auto;
  }
  .order-detail-product__price {
    grid-column: 1 / 3;
  }
  .create-order-product {
    flex-wrap: wrap;
  }
  .create-order-product .hform-group:first-child {
    width: 100%;
  }
  .middle-head {
    font-size: 16px;
  }
  .h-menu__account {
    max-width: 98px;
  }
}
