html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.no-scroll::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scroll {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #00000042;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: #db1a40;
}

.scroll::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.black {
  color: #101216;
}

.red {
  color: #db1a40;
}

.blue {
  color: #4472c4;
}

.green {
  color: #4ca33e;
}

.chartd1 {
  width: 5%;
}

.chartd2 {
  width: 37%;
}

.chartd3 {
  width: 15%;
}

.chartd4 {
  width: 15%;
}

.chartd5 {
  width: 24%;
}

.btn:focus-visible {
  box-shadow: none;
}

.modal-backdrop {
  /* background: linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)), linear-gradient(119.72deg, rgba(0, 0, 0, 0.29) 16.97%, rgba(0, 0, 0, 0.31) 46.11%, rgba(0, 0, 0, 0.33) 95.76%); */
  /* background-blend-mode: overlay, normal; */
  /* mix-blend-mode: normal; */
  backdrop-filter: blur(9px);
}

/* .modal.fade .modal-dialog {
  transform: translateY(-100px);
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
}

.modal.fade.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
} */

.modal-backdrop.fade {
  opacity: 0;
  /* Awal (tidak terlihat) */
  transform: translateY(-100%);
  /* Awal di atas layar */
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.modal-backdrop.show {
  opacity: 0.5;
  /* Warna backdrop menjadi gelap */
  transform: translateY(0);
  /* Backdrop turun ke posisi normal */
}

.modal-footer {
  border-top: 0px;
  padding-top: 0px;
}

.modal-footer .btn {
  border-color: #db1a40;
  color: #db1a40;
  transition: all ease-in-out 0.3s;
  padding: 0.4rem 1.2rem;
  font-weight: 700;
}

.modal-footer .btn:hover {
  background-color: #db1a40;
  color: #ffffff;
}

.daterangepicker {
  color: #101216 !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: #db1a40 !important;
}

body {
  font-family: "Lato", serif;
  background: url("../images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
}

.overlay {
  background-color: rgba(142, 0, 28, 1);
  /* Dark red overlay */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.navbar {
  padding: 5px 15px 5px 15px;
}

.navbar-nav {
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
}

.navbar-nav li a {
  padding: 0 2rem !important;
  color: #4e4e4e;
  font-weight: 500;
}

.navbar-nav .nav-link.active {
  color: #db1a40;
  font-weight: 700;
}

.cart-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: #db1a40;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: top;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0px;
  line-height: 0px;
}

.navbar-brand img {
  max-height: 50px;
}

.loading {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 40px;
}

.loading::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #db1a40;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

.list-filter {
  padding: 5px 0px;
  overflow-x: auto;
  white-space: nowrap;
  cursor: grab;
  gap: 5px;
  min-height: 41px;
}

.list-filter:active {
  cursor: grabbing;
}

.listing-filter {
  font-size: 13px;
  line-height: 16px;
  border: solid 1px #db1a40;
  padding: 5px 10px;
  border-radius: 12px;
  user-select: none;
}

#list-filter > .listing-filter:nth-of-type(1) {
  margin-left: 38px;
}

.listing-filter-reset {
  font-size: 13px;
  line-height: 16px;
  border: solid 1px #db1a40;
  padding: 7px 12px;
  border-radius: 10px;
  user-select: none;
  position: absolute;
  left: 12px;
  background-color: #fff;
  color: #db1a40;
  font-weight: 700;
}

.listing-filter-reset:hover {
  border: solid 1px #db1a40;
}

.listing-filter button {
  background-color: transparent;
  color: #c72a49;
  padding: 0;
  border: 0px;
  margin-left: 5px;
  font-size: 13px;
  font-weight: 700;
}

.listing-filter button:hover {
  background-color: transparent;
  color: #ffffff;
}

/* Animasi rotasi */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.welcome-box {
  width: 650px;
}

.welcome-box h1 {
  font-family: "Lato", serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 58px;
  margin-top: 30px;
}

.login-logo img {
  width: auto;
}

.login-form {
  width: 400px;
  margin-bottom: 7rem;
}

.login-form .btn-custom {
  border-radius: 10px;
  width: 100%;
  line-height: 36px;
  font-size: 16px;
}

.login-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

.login-box label {
  font-size: 16px;
  font-weight: 500;
}

.login-box h3 {
  font-weight: 700;
}

.form-control,
.form-select {
  line-height: 32px;
  border-color: #d9d9d9;
}

.form-control:focus,
.form-select:focus,
.input-group:focus-within .input-group-text {
  border-color: #db1a40;
  box-shadow: none;
}

.input-group input {
  border-left-width: 0px;
}

.input-group input.is-invalid {
  border-left-width: 1px;
}

.input-group-text {
  background-color: #ffffff;
}

.login-box .form-control {
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-radius: 0px;
  padding: 0.375rem 0;
}

.btn-custom {
  background-color: #db1a40;
  border: none;
  width: 98%;
  margin-top: 20px;
  border-radius: 50px;
  line-height: 42px;
  font-size: 18px;
  font-weight: 700;
}

.settings .btn-custom {
  background-color: #db1a40;
  border: none;
  width: 35%;
  margin-top: 10px;
  border-radius: 50px;
  line-height: 32px;
  font-size: 16px;
  font-weight: 700;
}

.btn-custom:hover {
  background-color: #c72a49;
}

.btn:first-child:active {
  background-color: #c72a49;
}

.button:disabled {
  background-color: #c72a49;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: 22.01px;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 33.02px;
}

/* home */

.container.home {
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
}

.container.home .title {
  flex-shrink: 0;
}

.container.home .wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.container.home .wrapper::-webkit-scrollbar {
  width: 5px;
}

.container.home .wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.container.home .wrapper::-webkit-scrollbar-thumb {
  background: #db1a40;
  border-radius: 5px;
}

.card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  padding: 15px;
  color: black;
}

.card strong {
  display: block;
  color: #db1a40;
  font-weight: 700;
}

.card h6 {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  margin: 0;
}

.card h6 small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.card h5 {
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
}

.card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
}

.card .badge {
  font-size: 0.8rem;
  position: absolute;
  right: 9px;
  top: 10px;
  /* background-color: #DB1A40; */
  background-color: transparent;
  color: #db1a40;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}

.card .badge.second {
  font-size: 0.8rem;
  position: absolute;
  right: 9px;
  top: 10px;
  background-color: #db1a40;
  /* background-color: transparent; */
  color: #ffffff;
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0.5px;
}

.home .card .list-card {
  margin-bottom: 15px;
  border: 1px solid #e1e7ec;
  padding: 10px;
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  transition: all ease-in-out 0.3s;
}

.home .card .list-card:hover {
  background-color: #e1e7ec;
}

.home .card .list-card:last-child {
  margin-bottom: 5px;
}

.home .wrap-chart {
  width: 190px;
  margin: 0 auto;
  padding-top: 15px;
}

.home .list-unstyled {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  line-height: 23px;
  text-align: left;
  letter-spacing: 0.5px;
  margin-bottom: 0px;
}

.home .list-unstyled li span {
  display: inline-block;
  font-size: 20px;
  padding-right: 5px;
  line-height: 16px;
}

.home .listing-invoice {
  overflow-y: auto;
  max-height: 590px;
}

.home .card .list-card .page-numbers {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 11px;
  border: 1px solid #101216;
  border-radius: 4px;
  padding: 0px 6px;
}

/* orders */
.orders {
  overflow-y: auto;
}

.orders .img-items {
  cursor: pointer;
  transition: all 0.5s ease;
}

.orders .img-items:hover {
  opacity: 0.6;
}

.image-download {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.orders-header,
.search-header,
.graph-header {
  position: relative;
}

.orders-header .filter,
.search-header .filter {
  position: absolute;
  top: 15px;
  right: 15px;
  border-width: 2px;
  line-height: 25px;
  transition: all ease-in-out 0.3s;
}

.orders-header .wrap-dropdown {
  position: absolute;
  top: 15px;
  right: 67px;
}

.orders-header .dropdown {
  width: 160px;
  height: 42px;
  background: transparent;
  border: 2px #ffffff solid;
  border-radius: 5px;
  cursor: pointer;
}

.orders-header .dropdown::before {
  content: "";
  position: absolute;
  right: 10px;
  top: calc(50% - 3px);
  z-index: 888;
  width: 8px;
  height: 8px;
  border: 2.8px solid #ffffff;
  border-top: transparent;
  border-right: transparent;
  transform: rotate(-45deg) translateY(-50%);
  transform-origin: center;
  pointer-events: none;
  transition: all 0.25s;
}

.orders-header .dropdown input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
  border: 0;
  border-radius: 9px;
  outline: 0;
  background-color: transparent;
  cursor: pointer;
}

.orders-header .dropdown input::placeholder {
  color: #ffffff;
}

.orders-header .dropdown .options {
  list-style: none;
  position: absolute;
  overflow: hidden;
  width: 100%;
  top: 45px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.35s;
  visibility: hidden;
  cursor: pointer;
}

.orders-header .dropdown .options .option {
  padding: 5px 10px;
  transition: all 0.25s ease;
  color: #101216;
}

.orders-header .dropdown .options .option:not(:last-of-type) {
  margin-bottom: 5px;
}

.orders-header .dropdown .options .option:hover {
  color: #fff;
  background: #c72a49;
}

.orders-header .dropdown.opened::before {
  top: calc(50% + 3px);
  transform: rotate(135deg) translateY(50%);
}

.orders-header .dropdown.opened {
  border-color: #c72a49;
}

.orders-header .dropdown.opened .options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border: 1px solid #eee;
  z-index: 9999;
}

.orders-header h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.orders .btn-running {
  font-weight: 700;
  line-height: 30px;
  background-color: #db1a40;
  border: 1px solid #db1a40;
  color: #fff;
  transition: 0.3s ease-in-out;
}

.orders .btn-running:hover {
  background-color: #ffffff;
  color: #db1a40;
}

.orders .btn-running svg {
  width: 15px;
  height: 15px;
  margin-left: 5px;
  fill: #ffffff;
  transition: 0.3s ease-in-out;
}

.orders .btn-running:hover svg {
  fill: #db1a40;
}

.graph-header .filter {
  position: absolute;
  top: 15px;
  right: 0px;
  border-width: 2px;
  line-height: 25px;
  transition: all ease-in-out 0.3s;
}

.orders-header .filter svg,
.search-header .filter svg,
.graph-header .filter svg {
  stroke: #ffffff;
  stroke-width: 2.5;
  margin-bottom: 5px;
  transition: all ease-in-out 0.3s;
}

.graph-header .filter svg {
  margin-bottom: 3px;
}

.orders-header .filter:hover svg,
.orders-header .filter:active svg,
.orders-header .filter:focus-visible svg,
.search-header .filter:hover svg,
.search-header .filter:active svg,
.search-header .filter:focus-visible svg,
.graph-header .filter:hover svg,
.graph-header .filter:active svg,
.graph-header .filter:focus-visible svg {
  stroke: #db1a40;
}

.graph-header h3.cat-filter {
  cursor: pointer;
}

.graph-header span.dropdown::before {
  content: "";
  position: absolute;
  left: 15px;
  top: calc(50% - 1px);
  z-index: 888;
  width: 8px;
  height: 8px;
  border: 2.8px solid #ffffff;
  border-top: transparent;
  border-right: transparent;
  transform: rotate(-45deg) translateY(-50%);
  transform-origin: center;
  pointer-events: none;
  transition: all 0.25s;
}

.graph-header .dropdown .options {
  list-style: none;
  position: absolute;
  overflow: hidden;
  width: 150px;
  top: 30px;
  right: -30px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  outline: none;
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.35s;
  visibility: hidden;
  cursor: pointer;
}

.graph-header .dropdown .options .option {
  padding: 5px 10px;
  transition: all 0.25s ease;
  color: #101216;
}

.graph-header .dropdown .options .option:not(:last-of-type) {
  margin-bottom: 5px;
}

.graph-header .dropdown .options .option:hover {
  color: #fff;
  background: #c72a49;
}

.graph-header .dropdown.opened::before {
  top: calc(50% + 3px);
  transform: rotate(135deg) translateY(50%);
}

.graph-header .dropdown.opened {
  border-color: #c72a49;
}

.graph-header .dropdown.opened .options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border: 1px solid #eee;
  z-index: 9999;
}

.card.listing-orders {
  cursor: pointer;
  transition: all ease-in-out 0.3s;
}

.card.listing-orders.half {
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-width: 0px;
  padding-bottom: 0px;
}

.card.listing-bottom {
  margin-top: -2px;
  box-shadow: none;
  border-top-width: 0px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
}

.card.listing-orders:hover {
  background-color: #e1e7ec;
}

.card.listing-orders h6 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.card.listing-orders h6 small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
}

.card.listing-orders .badge {
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
}

.card.listing-orders p {
  font-size: 15px;
  line-height: 24px;
}

.card.listing-orders .page-numbers {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 11px;
  border: 1px solid #101216;
  border-radius: 4px;
  padding: 0px 6px;
  color: #000000;
}

.card.listing-orders-detail h6 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.card.listing-orders-detail p.first {
  font-weight: 700;
}

.card.listing-orders-detail p {
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
}

.nav-back {
  position: absolute;
  left: 25px;
}

.nav-back h4 {
  font-size: 20px;
  font-weight: 400;
  line-height: 18.34px;
}

.nav-back h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 22.01px;
}

.back-button {
  margin-right: 10px;
}

.look-detail {
  padding: 0;
  font-size: 11px;
  border: 0px;
  text-decoration: underline;
  margin-right: 5px;
}

.look-detail:active {
  background-color: transparent !important;
}

.look-detail svg {
  margin-bottom: 4px;
  fill: #4472c4 !important;
}

/* accordion */
.accordion {
  background-color: #ffffff;
}

.accordion-item {
  margin-bottom: 15px;
  border: 1px solid #e7e7ed !important;
  border-radius: 0.375rem !important;
}

.accordion-button {
  color: #101216;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  border-radius: 0.375rem !important;
}

.accordion-button p {
  margin-bottom: 0px;
}

.accordion-button small {
  font-weight: 400;
}

.accordion-button div {
  margin-left: auto;
  padding-left: 8px;
  padding-right: 8px;
  min-width: 100px;
}

.accordion-button::after {
  margin-left: 0;
}

.accordion-button:not(.collapsed) {
  background-color: #ffffff;
  box-shadow: none;
  color: #101216;
}

.accordion-button:focus {
  /* border: 0px; */
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23101216'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  border: 1px solid #e7e7ed;
  border-radius: 0.375rem;
  padding: 10px;
  margin: 1rem;
}

.ads-left {
  position: fixed;
  left: 0px;
  width: 300px;
  background: #420707c7;
  padding: 0px 30px;
  z-index: 1000;
  transition:
    transform 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
}

.ads-left .content {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.ads-left-1 {
  top: 60px;
  bottom: 0px;
}

.hide-left {
  transform: translateX(-100%);
  overflow-y: visible;
}

.ads-left .toggle-btn {
  position: absolute;
  right: 15px;
  top: 40px;
  display: block;
  border-radius: 0;
  z-index: 7777;
}

.ads-left.hide-left .toggle-btn {
  right: -46px;
  top: 0;
  bottom: 0;
  background-color: #420707c7;
}

.ads-left.hide-left .toggle-btn:hover {
  background-color: #420707c7;
}

.ads-left h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ads-right {
  position: fixed;
  right: 0px;
  width: 350px;
  background: #420707c7;
  padding: 0px 30px;
  z-index: 1000;
  transition:
    transform 0.5s ease-in-out,
    opacity 0.5s ease-in-out;
}

.ads-right .content {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.ads-right h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ads-right-1 {
  top: 60px;
  bottom: 0px;
}

.hide-right {
  transform: translateX(100%);
  overflow-y: visible;
}

.ads-right .toggle-btn:hover,
.ads-right .toggle-btn:focus-visible,
.ads-left .toggle-btn:hover,
.ads-left .toggle-btn:focus-visible {
  background-color: transparent;
}

.ads-right .toggle-btn {
  position: absolute;
  left: 15px;
  top: 40px;
  display: block;
  border-radius: 0;
  z-index: 777;
}

.ads-right.hide-right .toggle-btn {
  left: -46px;
  top: 0;
  bottom: 0;
  background-color: #420707c7;
}

.ads-right.hide-right .toggle-btn:hover {
  background-color: #420707c7;
}

.toggle-btn {
  background: transparent;
  border: 0px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.toggle-btn svg {
  stroke: #fff !important;
}

.ads-content {
  display: flex;
  align-items: center;
}

.ads-slider {
  position: relative;
}

.slick-slide {
  box-sizing: border-box;
}

.slick-dots {
  bottom: 10px !important;
}

.slick-dotted.slick-slider {
  margin-bottom: 0px !important;
}

.slick-dotted.slick-slider {
  margin-bottom: 0px;
}

.ads-slider .slick-dots li {
  display: inline-block;
  margin: 0 0px;
  padding: 0;
}

.ads-slider .slick-dots button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
  opacity: 0.3;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

.ads-text p {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 18px;
}

.ads-vid {
  margin-bottom: -5px;
}

.ads-right video,
.ads-left video,
.ads-bottom video {
  background-color: #101216;
}

/* items */

.list-chart {
  overflow-y: auto;
}

/* search */

.search {
  overflow-y: auto;
}

.card.listing-search h6 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.card.listing-search p.first {
  font-weight: 700;
}

.card.listing-search p {
  font-size: 15px;
  line-height: 16px;
}

.card .listing-search-detail {
  border: 1px solid #e7e7ed;
  border-radius: 0.375rem;
  padding: 10px;
}

/* settting */

.settings .card {
  min-height: 250px;
}

.settings label {
  font-size: 16px;
  font-weight: 700;
}

/* .search .btn {
  line-height: 1.7rem;
  font-weight: 700;
  border-radius: 8px;
}

.search .btn:hover {
  color: #DB1A40;
  border-color: #DB1A40;
} */

/* footer */

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 7px 0;
  z-index: 8888;
}

footer a {
  position: relative;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 0;
}

footer a .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  background-color: #db1a40;
  margin: 0 auto;
}

footer a.active span {
  color: #db1a40;
}

footer span {
  display: block;
  padding-top: 3px;
}

footer a svg {
  width: 20px;
}

.swal-footer {
  text-align: center;
}

.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #db1a40;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 5000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
  transform: scale(0.95);
}

.floating-btn svg {
  fill: #ffffff;
  width: 25px;
  height: 25px;
}

.floating-btn::after {
  content: "Request swatches book";
  position: absolute;
  right: 70px;
  width: max-content;
  padding: 5px 10px;
  background-color: #333;
  color: white;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.floating-btn:hover::after {
  opacity: 1;
}

/* 404 */

.pageempty h1 {
  font-size: 8em;
  font-weight: 700;
  line-height: 100%;
}

.pageempty h2 {
  font-size: 8em;
  font-weight: 700;
  line-height: 100%;
}

@media screen and (max-width: 1400px) {
  .home .list-unstyled {
    font-size: 12px;
  }
}

@media screen and (max-width: 1279px) {
  .navbar-brand img {
    max-height: 45px;
  }

  .navbar-nav li a {
    padding: 0 1.2rem !important;
    font-size: 1rem;
  }

  h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 19px;
  }

  h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 25px;
  }

  .form-control,
  .form-select {
    line-height: 24px;
  }

  .card h6 {
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
  }

  .card h5 {
    font-size: 18px;
    font-weight: 700;
    line-height: 19px;
  }

  .card p {
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
  }

  .card .badge {
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 10px;
  }

  .home .wrap-chart {
    width: 135px;
    margin: 0 auto;
    padding-top: 15px;
  }

  .home .list-unstyled {
    margin-top: 15px;
    font-size: 10.3px;
    line-height: 20px;
  }

  .home .list-unstyled li span {
    font-size: 14px;
    padding-right: 5px;
    line-height: 17px;
  }

  .btn-custom {
    margin-top: 15px;
    line-height: 28px;
    font-size: 16px;
  }

  .card.listing-orders h6 {
    font-size: 16px;
    line-height: 24px;
  }

  .card.listing-orders .badge {
    font-size: 13px;
    line-height: 16px;
  }

  .card.listing-orders .badge .text-end {
    height: 12px !important;
  }

  .card.listing-orders p {
    font-size: 13px;
    line-height: 20px;
  }

  .card.listing-orders-detail h6 {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
  }

  .card.listing-orders-detail p.first {
    font-weight: 700;
  }

  .card.listing-orders-detail p {
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
  }

  .orders-header .filter,
  .search-header .filter {
    top: 3px;
    line-height: 15px;
    padding: 7px 11px;
  }

  .orders-header .filter svg,
  .search-header .filter svg,
  .graph-header .filter svg {
    width: 14px;
    height: 18px;
    margin-bottom: 0;
  }

  .graph-header .filter {
    top: 3px;
    right: 0px;
    line-height: 15px;
    padding: 7px 11px;
  }

  .orders-header .dropdown {
    height: 38px;
  }

  .orders-header .wrap-dropdown {
    position: absolute;
    top: 3px;
    right: 67px;
  }

  .orders-header .dropdown input {
    font-size: 14px;
  }

  .orders-header .dropdown .options {
    font-size: 14px;
  }

  .orders-header .dropdown .options .option:not(:last-of-type) {
    margin-bottom: 0px;
  }

  .ads-left {
    width: 220px;
    padding: 0 15px;
  }

  .ads-left h4 {
    font-size: 14px;
  }

  .ads-left .toggle-btn {
    right: 2px;
    top: 5px;
  }

  .ads-right {
    width: 220px;
    padding: 0 15px;
  }

  .ads-right h4 {
    font-size: 14px;
  }

  .ads-right .toggle-btn {
    left: 2px;
    top: 5px;
  }

  .ads-text p {
    font-size: 12px;
    line-height: 16px;
  }

  .card.listing-search h6 {
    font-size: 16px;
    line-height: 24px;
  }

  .card.listing-search p.first {
    font-weight: 700;
  }

  .card.listing-search p {
    font-size: 13px;
    line-height: 14px;
    margin-bottom: 0 !important;
  }

  .card .listing-search-detail {
    border: 1px solid #e7e7ed;
    border-radius: 0.375rem;
    padding: 10px;
  }

  .settings .btn {
    font-size: 13px;
  }

  .settings .btn-custom {
    line-height: 20px;
  }

  .settings label {
    font-size: 13px;
  }

  .spinner {
    width: 13px;
    height: 13px;
  }
}

@media screen and (max-width: 1024px) {
  .navbar-nav li a {
    font-size: 14px;
  }

  .nav-back h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 18.34px;
    margin-bottom: 0px;
  }

  .nav-back h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 22.01px;
    margin-bottom: 0px;
  }

  .welcome-box {
    width: 350px;
    text-align: center;
    margin: 0 auto;
  }

  .welcome-box h1 {
    font-family: "Lato", serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 58px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  .login-logo img {
    width: 70%;
  }

  .login-form {
    width: 350px;
    margin: 0 auto;
  }

  .login-box label {
    font-size: 14px;
    font-weight: 700;
  }

  .form-control,
  .form-select {
    line-height: 20px;
  }

  .home .wrapper {
    overflow-y: auto;
  }

  .card.listing-orders-detail h6 {
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
  }

  .card.listing-orders-detail p {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
  }

  .accordion-button div {
    font-size: 13px;
    width: 100px;
  }

  .card.listing-search p {
    font-size: 12px;
  }
}

@media screen and (max-width: 1023px) {
}

@media screen and (max-width: 768px) {
  .dropdown-user {
    width: 35px;
    margin-right: 10px;
  }

  .dropdown-user input::placeholder {
    color: #ffffff;
  }

  .dropdown-user:focus {
    border: 0px;
  }

  .dropdown-user .options {
    list-style: none;
    position: absolute;
    overflow: hidden;
    width: 40%;
    top: 50px;
    right: 25px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.35s;
    visibility: hidden;
    cursor: pointer;
  }

  .dropdown-user .options a {
    display: block;
    padding: 5px 10px;
    transition: all 0.25s ease;
    color: #101216;
    text-decoration: none;
  }

  .dropdown-user .options .option:not(:last-of-type) {
    margin-bottom: 5px;
  }

  .dropdown-user .options .option:hover {
    color: #fff;
    background: #c72a49;
  }

  .dropdown-user.opened .options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    border: 1px solid #eee;
    z-index: 9999;
  }

  .vh-100 {
    height: 90vh !important;
  }

  .navbar {
    padding: 10px 15px 10px 15px;
  }

  .navbar-brand img {
    max-height: 40px;
  }

  .modal.show .modal-dialog {
    margin: 0 24px;
  }

  .welcome-box {
    width: auto;
    text-align: center;
    margin: 0 auto;
  }

  .welcome-box h1 {
    font-family: "Lato", serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 58px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .login-logo img {
    width: 50%;
  }

  .login-form {
    width: 100%;
    margin: 0 auto;
  }

  .card h6 {
    line-height: 18px;
  }

  .card h6 small {
    font-size: 11px;
    line-height: 11px;
    margin-top: -3px;
  }

  .orders-header h1,
  .search-header h1 {
    margin-bottom: 0.25rem;
    font-size: 22px;
  }

  .orders-header h3 {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home .wrap-chart {
    width: 160px;
  }

  .home .list-unstyled {
    font-size: 11px;
  }

  .orders-header .dropdown {
    height: 36.8px;
    width: 140px;
  }

  .orders-header .wrap-dropdown {
    right: 60px;
  }

  .look-detail {
    font-size: 0px;
  }

  .nav-back {
    position: relative;
    left: -20px;
    padding-bottom: 15px;
  }

  .ads-bottom {
    position: fixed;
    left: 0px;
    top: 60px;
    width: 100%;
    background: #3a0d0d;
    padding: 0px 25px;
    z-index: 3000;
    transition:
      transform 0.5s ease-in-out,
      opacity 0.5s ease-in-out;
  }

  .ads-bottom .content {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
  }

  .hide-bottom {
    transform: translateY(100%);
    overflow-y: visible;
  }

  .ads-bottom .toggle-btn {
    position: relative;
    display: block;
    border-radius: 0;
    margin: 0 auto;
    padding: 10px 0;
  }

  .ads-bottom .toggle-btn:active {
    background-color: transparent;
  }

  .ads-bottom.hide-bottom .toggle-btn {
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    background-color: #420707c7;
    padding: 0;
  }

  .ads-bottom.hide-bottom .toggle-btn:hover {
    background-color: #420707c7;
  }

  .ads-bottom h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .card.listing-orders-detail p {
    font-size: 12px;
    line-height: 16px;
  }

  .accordion-button {
    padding: 15px 10px 10px 10px;
  }

  .accordion-button p {
    width: 50%;
  }

  .accordion-body {
    margin: 10px;
  }

  .accordion-button div {
    font-size: 12px;
    text-align: right;
    line-height: 12px;
  }

  .card .listing-search-detail {
    overflow: hidden;
  }

  .card .listing-search-detail .wrapper {
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab;
  }

  .card .listing-search-detail .wrapper .row {
    width: 550px;
  }

  .settings .btn {
    width: 49% !important;
  }

  .settings .btn:first-child:active {
    background-color: transparent;
  }

  .pageempty h2 {
    font-size: 3.8em;
    font-weight: 700;
    line-height: 100%;
  }

  .floating-btn {
    position: fixed;
    bottom: 100px;
    right: 15px;
    width: 60px;
    height: 60px;
  }
}

/* Item Card Styles */
.item-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.item-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.item-image {
  width: 100%;
  height: 200px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.item-card:hover .item-image img {
  transform: scale(1.1);
}

.item-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: #101216;
}

.item-code {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.item-name {
  font-size: 16px;
  font-weight: 700;
  color: #101216;
  margin-bottom: 10px;
  line-height: 1.3;
}

.item-specs {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  flex-grow: 1;
}

.item-specs p {
  margin: 4px 0;
  line-height: 1.4;
}

.item-pricing {
  margin-bottom: 12px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  text-align: center;
}

.price-group {
  font-size: 13px;
  font-weight: 600;
  color: #101216;
  margin: 4px 0;
}

.btn-detail {
  background-color: #db1a40;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin: 0 auto;
}

.btn-detail:hover {
  background-color: #db1a40;
  color: #ffffff;
}

.btn-detail:active {
  transform: scale(0.98);
}

/* Responsive adjustments */
@media screen and (max-width: 1279px) {
  .item-image {
    height: 150px;
  }

  .item-name {
    font-size: 14px;
  }

  .item-specs {
    font-size: 11px;
  }

  .price-group {
    font-size: 12px;
  }

  .btn-detail {
    font-size: 11px;
    padding: 6px 12px;
  }
}

@media screen and (max-width: 768px) {
  .item-image {
    height: 180px;
  }

  .item-content {
    padding: 12px;
  }

  .item-name {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .item-specs {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .item-pricing {
    margin-bottom: 10px;
    padding-top: 8px;
  }

  .price-group {
    font-size: 11px;
    margin: 3px 0;
  }

  .btn-detail {
    font-size: 10px;
    padding: 5px 10px;
  }
}

/* Item Detail Page */
.back-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #c72a49;
  text-decoration: none;
}

.item-detail-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  color: #101216;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  height: 100%;
}

.detail-images {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: fit-content;
}

.main-image {
  width: 100%;
  height: 350px;
  background-color: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-image:hover img {
  transform: scale(1.02);
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 5px 5px 0;
  margin: -5px -5px -5px 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
  transition: all 0.3s ease;
  flex-shrink: 0;
  background-color: #f5f5f5;
  margin-left: 5px;
}

.thumbnail:hover {
  border-color: #db1a40;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(219, 26, 64, 0.2);
}

.thumbnail.active {
  border-color: #db1a40;
  box-shadow: 0 0 0 3px rgba(219, 26, 64, 0.2);
  transform: scale(1.05);
}

/* Selected Material Detail */
.selected-material-detail {
  margin-top: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.material-detail-box {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  flex-shrink: 0;
}

.selected-material-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.material-detail-label {
  font-size: 11px;
  color: #999;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.material-detail-name {
  font-size: 14px;
  font-weight: 700;
  color: #101216;
  margin: 0 0 4px 0;
}

.material-detail-price {
  font-size: 14px;
  font-weight: 600;
  color: #db1a40;
  margin: 0;
}

.detail-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: hidden;
}

.detail-header {
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
  flex-shrink: 0;
}

.product-name {
  font-size: 28px;
  font-weight: 700;
  color: #101216;
  margin: 0 0 8px 0;
}

.product-code {
  font-size: 14px;
  color: #999;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-description {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  padding-bottom: 20px;
}

.detail-description::-webkit-scrollbar {
  width: 5px;
}

.detail-description::-webkit-scrollbar-track {
  background: transparent;
}

.detail-description::-webkit-scrollbar-thumb {
  background: #db1a40;
  border-radius: 5px;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
  overflow: visible;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #101216;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.spec-label {
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.spec-value {
  color: #101216;
  font-weight: 500;
  font-size: 13px;
}

.colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 1px;
  row-gap: 10px;
  overflow: visible;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.color-box {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.color-box.active {
  border-color: #db1a40;
  border-width: 3px;
  box-shadow: 0 0 12px rgba(219, 26, 64, 0.5);
}

.color-item:hover .color-box {
  border-color: #db1a40;
  box-shadow: 0 0 8px rgba(219, 26, 64, 0.3);
}

.color-name {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Material Popup Styles */
.material-item-hover {
  position: relative;
}

.material-popup {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  border: 2px solid #db1a40;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  min-width: 200px;
  pointer-events: none;
}

/* Adjust popup position for items on the right side - only if there are 5+ items */
.material-item-hover:nth-child(n + 5):nth-last-child(-n + 1) .material-popup,
.material-item-hover:nth-child(n + 5) ~ .material-item-hover:nth-last-child(-n + 1) .material-popup {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(10px);
}

.material-item-hover:nth-child(n + 5):nth-last-child(-n + 1) .material-popup::after,
.material-item-hover:nth-child(n + 5) ~ .material-item-hover:nth-last-child(-n + 1) .material-popup::after {
  left: auto;
  right: 20px;
}

.material-popup::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #db1a40;
}

.material-item-hover:hover .material-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.material-item-hover:nth-child(n + 5):nth-last-child(-n + 1):hover .material-popup,
.material-item-hover:nth-child(n + 5) ~ .material-item-hover:nth-last-child(-n + 1):hover .material-popup {
  transform: translateX(0) translateY(0);
}

.material-popup-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.material-popup-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  text-align: center;
}

.material-popup-code {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 6px;
  text-align: center;
}

.material-popup-price {
  font-size: 16px;
  font-weight: 700;
  color: #db1a40;
  text-align: center;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.price-label {
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.price-value {
  color: #db1a40;
  font-weight: 700;
  font-size: 16px;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.material-label {
  font-weight: 600;
  color: #666;
  font-size: 13px;
}

.material-value {
  color: #101216;
  font-weight: 500;
  font-size: 13px;
}

.quantity-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.quantity-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.quantity-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  color: #101216;
  font-weight: 500;
}

.quantity-input:focus {
  outline: none;
  border-color: #db1a40;
  box-shadow: 0 0 0 3px rgba(219, 26, 64, 0.1);
}

.quantity-select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  color: #101216;
  font-weight: 500;
  background-color: #ffffff;
  cursor: pointer;
}

.quantity-select:focus {
  outline: none;
  border-color: #db1a40;
  box-shadow: 0 0 0 3px rgba(219, 26, 64, 0.1);
}

.moq-note {
  font-size: 12px;
  color: #999;
  margin: 0;
  font-style: italic;
}

.subtotal-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.subtotal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.subtotal-label {
  font-weight: 600;
  color: #666;
  font-size: 14px;
}

.subtotal-value {
  color: #db1a40;
  font-weight: 700;
  font-size: 18px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.btn-add-cart {
  flex: 1;
  background-color: #db1a40;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-add-cart:hover {
  background-color: #c72a49;
}

.btn-inquiry {
  flex: 1;
  background-color: transparent;
  color: #db1a40;
  border: 2px solid #db1a40;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-inquiry:hover {
  background-color: #db1a40;
  color: #ffffff;
}

/* History Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-container {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: #db1a40;
  color: white;
  padding: 20px 25px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
}

.modal-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 25px;
  overflow-y: auto;
  flex: 1;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background: #f9f9f9;
  transition: all 0.3s ease;
}

.history-clickable {
  cursor: pointer;
}

.history-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #db1a40;
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.history-date {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.history-code {
  font-size: 13px;
  color: #db1a40;
  font-weight: 600;
}

.history-itemname {
  font-size: 13px;
  color: #db1a40;
  font-weight: 600;
}

.history-qty {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.history-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.history-material {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.history-material-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  border: 2px solid #e0e0e0;
  flex-shrink: 0;
}

.history-material-info {
  flex: 1;
}

.history-material-name {
  font-size: 14px;
  font-weight: 600;
  color: #101216;
  margin: 0 0 4px 0;
}

.history-material-code {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.history-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.history-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.history-qty-text {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.history-date-text {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.history-unit-price {
  font-size: 13px;
  color: #666;
}

.history-total {
  font-size: 15px;
  font-weight: 700;
  color: #666;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .item-detail-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .main-image {
    height: 300px;
  }

  .product-name {
    font-size: 22px;
  }
}

@media screen and (max-width: 768px) {
  .item-detail-wrapper {
    padding: 15px;
    gap: 15px;
  }

  .main-image {
    height: 250px;
  }

  .product-name {
    font-size: 18px;
  }

  .colors-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  }

  .color-box {
    width: 35px;
    height: 35px;
  }

  .btn-add-cart,
  .btn-inquiry {
    padding: 12px 16px;
    font-size: 12px;
  }
}

/* Shopping Cart Page */
.cart-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  color: #101216;
  height: 100%;
}

.cart-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

.cart-content::-webkit-scrollbar {
  width: 5px;
}

.cart-content::-webkit-scrollbar-track {
  background: transparent;
}

.cart-content::-webkit-scrollbar-thumb {
  background: #db1a40;
  border-radius: 5px;
}

.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #101216;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 15px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr 200px;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 15px;
}

.item-image {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-name {
  font-size: 16px;
  font-weight: 700;
  color: #101216;
  margin: 0;
}

.item-code {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.5px;
}

.item-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-specs p {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1;
}

.cart-material-hover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  margin-left: 4px;
  vertical-align: middle;
}

.cart-material-thumb {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background-size: cover;
  background-position: center;
  background-color: #f3f3f3;
}

.cart-material-name {
  color: #4e4e4e;
}

.cart-material-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #db1a40;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.cart-material-popup::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 14px;
  border: 6px solid transparent;
  border-bottom-color: #db1a40;
}

.cart-material-hover:hover .cart-material-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-material-popup-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-material-popup-name {
  font-size: 12px;
  font-weight: 700;
  color: #101216;
  text-align: center;
}

.cart-material-popup-code {
  font-size: 11px;
  color: #666;
  text-align: center;
}

.cart-material-popup-price {
  font-size: 12px;
  font-weight: 700;
  color: #db1a40;
  text-align: center;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.item-quantity label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.qty-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: #db1a40;
}

.qty-note {
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.item-pricing {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.item-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.item-id-input {
  width: 140px;
  height: 32px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  color: #101216;
}

.item-id-input:focus {
  outline: none;
  border-color: #db1a40;
  box-shadow: 0 0 0 2px rgba(219, 26, 64, 0.1);
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.price-label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.price-value {
  font-size: 12px;
  font-weight: 700;
  color: #101216;
}

.price-value.subtotal {
  color: #db1a40;
  font-size: 14px;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.btn-remove {
  flex: 1;
  background-color: #f5f5f5;
  color: #db1a40;
  border: 1px solid #db1a40;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-remove:hover {
  background-color: #db1a40;
  color: #ffffff;
}

.additional-info-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
}

.info-textarea:focus {
  outline: none;
  border-color: #db1a40;
  box-shadow: 0 0 0 3px rgba(219, 26, 64, 0.1);
}

.container-info-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.container-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.container-item {
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.container-item.js-container-detail {
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.container-item.js-container-detail:hover {
  border-color: #db1a40;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.container-detail-modal {
  max-width: 760px;
}

.container-detail-summary {
  font-size: 13px;
  color: #101216;
  margin-bottom: 14px;
}

.container-detail-order-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
  padding: 12px;
}

.container-detail-order-card + .container-detail-order-card {
  margin-top: 12px;
}

.container-detail-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.container-detail-order-title {
  font-size: 13px;
  font-weight: 700;
  color: #101216;
}

.container-detail-order-cbm {
  font-size: 12px;
  font-weight: 600;
  color: #db1a40;
}

.container-detail-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.container-detail-item-row + .container-detail-item-row {
  border-top: 1px dashed #ddd;
}

.container-detail-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.container-detail-asset {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.container-detail-item-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
}

.container-detail-item-meta {
  min-width: 0;
}

.container-detail-item-main {
  font-size: 12px;
  font-weight: 700;
  color: #101216;
  line-height: 1.2;
}

.container-detail-item-sub {
  font-size: 11px;
  color: #666;
}

.container-detail-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
}

.container-detail-item-stat {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.container-detail-empty {
  font-size: 12px;
  color: #666;
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.container-name {
  font-size: 13px;
  font-weight: 700;
  color: #101216;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.container-price {
  font-size: 13px;
  font-weight: 700;
  color: #db1a40;
}

.container-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.container-progress {
  width: 100%;
  height: 8px;
  background-color: #e7e7e7;
  border-radius: 999px;
  overflow: hidden;
}

.container-progress-bar {
  height: 100%;
  background-color: #db1a40;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.detail-label {
  color: #666;
  font-weight: 600;
}

.detail-value {
  color: #101216;
  font-weight: 500;
}

.btn-view-detail {
  width: 100%;
  background-color: #101216;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-view-detail:hover {
  background-color: #db1a40;
}

/* Cart Summary Sidebar */
.cart-summary {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.summary-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-title {
  font-size: 14px;
  font-weight: 700;
  color: #101216;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.summary-row.total {
  border-bottom: none;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
}

.summary-label {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.summary-value {
  font-size: 13px;
  color: #101216;
  font-weight: 600;
}

.summary-row.total .summary-value {
  color: #db1a40;
  font-size: 18px;
}

.summary-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.summary-input-label {
  width: 95px;
  flex: 0 0 95px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  white-space: nowrap;
}

.summary-input-control {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #101216;
  background-color: #fff;
}

.summary-input-control:focus {
  outline: none;
  border-color: #db1a40;
  box-shadow: 0 0 0 2px rgba(219, 26, 64, 0.1);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-continue {
  background-color: transparent;
  color: #db1a40;
  border: 2px solid #db1a40;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-continue:hover {
  background-color: #db1a40;
  color: #ffffff;
}

.btn-checkout {
  background-color: #db1a40;
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-checkout:hover {
  background-color: #c72a49;
}

.summary-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

.summary-note p {
  margin: 0;
  line-height: 1.4;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-item {
    grid-template-columns: 100px 1fr 150px;
    gap: 15px;
  }

  .item-image {
    width: 100px;
    height: 100px;
  }

  .cart-summary {
    position: static;
  }
}

@media screen and (max-width: 768px) {
  .cart-wrapper {
    padding: 15px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 12px;
  }

  .item-image {
    width: 80px;
    height: 80px;
  }

  .item-pricing {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .item-actions {
    grid-column: 1 / -1;
  }

  .summary-card {
    padding: 15px;
  }

  .btn-continue,
  .btn-checkout {
    padding: 10px 12px;
    font-size: 11px;
  }
}
