:root {
  --surface: #fff;
  --border: #e2e8f0;
  --card-shadow: 0 6px 20px rgb(43 61 69 / 6%);
  --main-action-background: #1e2350;
  --main-action-background-hover: #385765;
  --main-action-focus-ring: 0 0 0 3px rgb(43 61 69 / 12%);
  --scrollbar-track: #f1f4f8;
  --scrollbar-thumb: var(--main-action-background);
  --scrollbar-thumb-hover: var(--main-action-background-hover);
  --primary: #1e2350;
  --primary-hover: #313986;
  --control-border: #c7d1da;
  --control-background: #fff;
  --control-disabled-background: #e9eef2;
  --control-disabled-border: #d8e0e6;
  --control-focus-ring: 0 0 0 3px rgb(43 61 69 / 12%);
  --control-error: #ef4444;

  --control-height: 42px;
  --table-primary: #1e2350;
  --table-text: #11213b;
  --table-muted: #64748b;
  --table-border: #e2e8f0;
  --table-header: #f1f5f9;
  --table-row-alt: #f8fafc;
  --table-row-hover: #eef0f2;
  --table-row-selected: #b7d4ff;
  --table-success: #16a34a;
  --table-warning: #f59e0b;
  --table-danger: #ef4444;
}

.form-check-input,
.ckbox input[type="checkbox"],
.checkbox input[type="checkbox"],
input[data-role="check-all"] {
  width: 20px;
  height: 20px;
  margin-top: 0;
  appearance: none;
  background-color: var(--control-background);
  border: 1px solid var(--control-border);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  vertical-align: middle;
}

.form-check-input:hover,
.ckbox input[type="checkbox"]:hover,
.checkbox input[type="checkbox"]:hover,
input[data-role="check-all"]:hover {
  border-color: var(--primary-hover);
}

.form-check-input:focus,
.ckbox input[type="checkbox"]:focus,
.checkbox input[type="checkbox"]:focus,
input[data-role="check-all"]:focus {
  border-color: var(--primary);
  box-shadow: var(--control-focus-ring);
  outline: 0;
}

.form-check-input:checked,
.ckbox input[type="checkbox"]:checked,
.checkbox input[type="checkbox"]:checked,
input[data-role="check-all"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 5 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 10px;
}

.form-check-input:checked:hover,
.ckbox input[type="checkbox"]:checked:hover,
.checkbox input[type="checkbox"]:checked:hover,
input[data-role="check-all"]:checked:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.form-check-input:disabled,
.ckbox input[type="checkbox"]:disabled,
.checkbox input[type="checkbox"]:disabled,
input[data-role="check-all"]:disabled {
  background-color: var(--control-disabled-background);
  border-color: var(--control-disabled-border);
  cursor: not-allowed;
  opacity: 1;
}

.form-check-input.is-invalid,
.ckbox input[type="checkbox"].is-invalid,
.checkbox input[type="checkbox"].is-invalid {
  border-color: var(--control-error);
}

.form-switch .form-check-input {
  width: 2.25em;
  height: 1.25em;
  margin-top: 0.125em;
  background-color: var(--control-background);
  border-color: var(--control-border);
  border-radius: 2em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23c7d1da'/%3e%3c/svg%3e");
  background-position: left center;
  background-size: contain;
}

.form-switch .form-check-input:hover {
  border-color: var(--primary-hover);
}

.form-switch .form-check-input:focus {
  border-color: var(--primary);
  box-shadow: var(--control-focus-ring);
}

.form-switch .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-position: right center;
}

.form-switch .form-check-input:checked:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.custom-control.custom-switch {
  position: relative;
  z-index: 1;
  display: inline-block;
  min-height: 1.5rem;
  padding-left: 2.5rem;
  vertical-align: middle;
}

.custom-control.custom-switch .custom-control-input {
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-control.custom-switch .custom-control-label {
  position: relative;
  margin-bottom: 0;
  vertical-align: top;
  cursor: pointer;
}

.custom-control.custom-switch .custom-control-label::before {
  position: absolute;
  top: 0.125rem;
  left: -2.5rem;
  display: block;
  width: 2.25rem;
  height: 1.25rem;
  pointer-events: all;
  content: "";
  background-color: var(--control-background);
  border: 1px solid var(--control-border);
  border-radius: 2rem;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.custom-control.custom-switch .custom-control-label::after {
  position: absolute;
  top: calc(0.125rem + 2px);
  left: calc(-2.5rem + 2px);
  display: block;
  width: calc(1.25rem - 4px);
  height: calc(1.25rem - 4px);
  content: "";
  background-color: var(--control-border);
  border-radius: 50%;
  transition: background-color 160ms ease, transform 160ms ease;
}

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-control-input:hover ~ .custom-control-label::before {
  border-color: var(--primary-hover);
}

.custom-control-input:focus ~ .custom-control-label::before {
  border-color: var(--primary);
  box-shadow: var(--control-focus-ring);
}

.custom-control-input:not(:disabled):active ~ .custom-control-label::before {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.custom-control.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary);
  border-color: var(--primary);
}

.custom-control.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
  background-color: #fff;
  transform: translateX(1rem);
}

.custom-control.custom-switch .custom-control-input:checked:hover ~ .custom-control-label::before {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.custom-control.custom-switch .custom-control-input:hover ~ .custom-control-label::before {
  border-color: var(--primary-hover);
}

.custom-control.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
  border-color: var(--primary);
  box-shadow: var(--control-focus-ring);
}

.custom-control.custom-switch .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

a {
  text-decoration: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: var(--card-shadow);
}

.btn-main {
  color: #fff;
  background: var(--main-action-background);
  border-color: var(--main-action-background);
}

.btn-main:hover,
.btn-main:focus,
.btn-main:active {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: #fff;
  box-shadow: var(--primary-hover);
}

.btn-main:disabled,
.btn-main.disabled {
  color: #fff;
  background: var(--main-action-background);
  border-color: var(--main-action-background);
  opacity: 0.65;
}

.btn-outline-main {
  color: var(--main-action-background);
  background: transparent;
  border-color: var(--main-action-background);
}

.btn-outline-main:hover,
.btn-outline-main:focus,
.btn-outline-main:active {
  color: var(--primary-hover);
  background: rgb(43 61 69 / 6%);
  border-color: var(--primary-hover);
  box-shadow: var(--primary-hover);
}

.btn-outline-main:disabled,
.btn-outline-main.disabled {
  color: var(--main-action-background);
  background: transparent;
  border-color: var(--main-action-background);
  opacity: 0.65;
}

.btn-edit,
.btn-delete,
.btn-reset-password,
.btn-save,
.btn-refresh {
  padding: 0.35rem;
  background: transparent;
  border-color: transparent;
}

.btn-edit > i,
.btn-delete > i,
.btn-reset-password > i,
.btn-save > i,
.btn-refresh > i {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}

.btn-edit {
  color: #1677ff;
}

.btn-edit:hover,
.btn-edit:focus,
.btn-edit:active {
  color: #1677ff;
  background: #dceaff;
  border-color: transparent;
}

.btn-edit:disabled,
.btn-edit.disabled {
  color: #1677ff;
  background: transparent;
  border-color: transparent;
  opacity: 0.65;
}

.btn-delete {
  color: #ff4d4f;
}

.btn-delete:hover,
.btn-delete:focus,
.btn-delete:active {
  color: #ff4d4f;
  background: #ffe2e2;
  border-color: transparent;
}

.btn-delete:disabled,
.btn-delete.disabled {
  color: #ff4d4f;
  background: transparent;
  border-color: transparent;
  opacity: 0.65;
}

.btn-reset-password {
  color: #f59e0b;
}

.btn-reset-password:hover,
.btn-reset-password:focus,
.btn-reset-password:active {
  color: #f59e0b;
  background: #ffefc2;
  border-color: transparent;
}

.btn-reset-password:disabled,
.btn-reset-password.disabled {
  color: #f59e0b;
  background: transparent;
  border-color: transparent;
  opacity: 0.65;
}

.btn-save {
  color: #16a34a;
}

.btn-save:hover,
.btn-save:focus,
.btn-save:active {
  color: #16a34a;
  background: #d7f5e2;
  border-color: transparent;
}

.btn-save:disabled,
.btn-save.disabled {
  color: #16a34a;
  background: transparent;
  border-color: transparent;
  opacity: 0.65;
}

.btn-refresh {
  color: #1677ff;
}

.btn-refresh:hover,
.btn-refresh:focus,
.btn-refresh:active {
  color: #1677ff;
  background: #dceaff;
  border-color: transparent;
}

.btn-refresh:disabled,
.btn-refresh.disabled {
  color: #1677ff;
  background: transparent;
  border-color: transparent;
  opacity: 0.65;
}

.status-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 50%;
  cursor: pointer;
}

.status-dot--danger {
  background-color: #dc3545;
}

.status-dot--success {
  background-color: #16a34a;
}

.filter-check-control {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--main-action-background);
}

.filter-check-control > label {
  cursor: pointer;
}

.filter-check-control:hover {
  border-color: #c9d8e8;
}

html {
  scroll-behavior: smooth;
}


.discount-amount{
  position: relative;
  color: #e75855;
}

.discount-amount::after{
  content: "";
  width: 100%;
  height: 1.5px;
  background: #e75855;
  position: absolute;
  bottom: 9px;
  left: 0;
}

body {
  font-size: 14px;
}

html,
body,
body * {
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 2px solid var(--scrollbar-track);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

body.menu--opened {
  overflow: hidden;
  padding-right: 15px;
}

body.menu--opened #topnav{
  right: 0;
}

.side-menu__icon {
  font-size: 23px;
  line-height: 0;
  margin-right: 7px;
  width: 22px;
  height: 22px;
  line-height: 34px;
  border-radius: 3px;
  text-align: center;
  color: #000000;
  fill: #fff;
}

.side-menu__icon {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 25px;
  transition: all .5s ease;
}

@media (max-width: 991.9px) {
  .side-menu__icon {
    fill: #95a4b5;
  }
}

@media (max-width: 991px) {
  #topnav{
    overflow-y: auto;
  }
  #topnav .navigation-menu>li .submenu {
    opacity: 0;
    visibility: hidden;
    height: 0;
    display: block !important;
  }
  /* .navigation-menu>li.has-submenu:focus-within>.submenu{
    opacity: 1 !important;
    visibility: visible !important;
    height: max-content !important;
  } */

  .navigation-menu>li.has-submenu.active>.submenu{
    opacity: 1 !important;
    visibility: visible !important;
    height: max-content !important;
  }
}

.navigation-menu{
  display: flex;
  justify-content: start;
  align-items: center;
}

@media (min-width: 1200px){
  .navigation-menu{
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.navigation-menu li.active .side-menu__icon {
  fill: #fff;
  transition: all .1s ease;
}

.navigation-menu a:hover .side-menu__icon {
  fill: #fff;
}

.swal2-container .swal2-title {
  font-size: 15px !important;
}

.home-wallpaper-section {
  background-position: center;
  background-size: cover;
  height: fit-content;
  min-height: 435px;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 50px;
}

@media (max-width: 400px) {
  .media {
    flex-direction: column;
  }
  .media-body p, .media-body h3{
    text-align: center;
  }

}

@media (max-width: 991.9px) {
  .home-wallpaper-section {
    padding: 20px;
  }
}

.home-wallpaper-section .bg-slider {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.home-wallpaper-section p {
  color: #fff;
}

.product-in-cart {
  background-color: yellow !important;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.load th,
.load td,
.load a,
.load strong,
.load span,
.load p,
.load h6,
.load input,
.load textarea,
.load select {
  -webkit-animation: glow linear 1s infinite !important;
  animation: glow linear 1s infinite !important;
  pointer-events: none;
  color: #00000047 !important;
}

@-webkit-keyframes glow {
  0% {
    background-color: rgb(235, 235, 235);
  }

  50% {
    background-color: rgb(245, 245, 245);
  }

  100% {
    background-color: rgb(235, 235, 235)
  }
}

@keyframes glow {
  0% {
    background-color: rgb(235, 235, 235)
  }

  50% {
    background-color: rgb(245, 245, 245);
  }

  100% {
    background-color: rgb(235, 235, 235)
  }
}

@media (min-width: 1200px) {
  body[data-layout=horizontal] .container-fluid {
    max-width: 100%;
  }
}

footer {
  background-color: #2b3e48;
}

.logo-lg img,
.logo-sm img {
  /* width: 130px; */
  height: 40px;
}


tbody tr.focused-tr td a::before,
.table-hover tbody tr:hover td a::before {
  background-color: #fff;
}

tbody tr.focused-tr {
  background-color: #d7d7d7 !important;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #ececec;
}

th {
  border-top: none !important;
}

.empty-page {
  margin: 90px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-page p {
  font-size: 18px;
  font-weight: bold;
}

.empty-page svg {
  height: 120px;
  width: 120px;
}

.empty-page svg path {
  fill: #6c757d;
}

.table td,
.table th {
  border: none;
}

.card-td-width{
  width: 15%;
}
@media (max-width:991.9px){
  .card-td-width{
    width: 20%;
  }
}
@media (max-width:767.9px){
  .card-td-width{
    width: 25%;
  }
}
@media (max-width:575.9px){
  .card-td-width{
    width: 30%;
  }
}
@media (max-width:500px){
  .card-td-width{
    width: 45%;
  }
}
.fit-width td {
  white-space: nowrap;
}

.fit-width tbody tr:nth-of-type(odd).focused-tr {
  background-color: #f2f2f2 !important;
}

.fit-width tbody tr:nth-of-type(even).focused-tr {
  background-color: #fff !important;
}

.form-control {
  font-size: 14px;
}

td {
  vertical-align: baseline !important;
}

.table td {
  padding: .65rem .25rem;
}

.table th {
  padding: .65rem .65rem !important;
}

.table-hover tbody tr:hover {
  background-color: #c8c8c8;
  color: #000;
}

.link {
  color: #e75855;
  position: relative;
  /* display: block; */
  width: fit-content;
  text-decoration: underline;
}
/* 
.link::before {
  position: absolute;
  content: '';
  left: 50%;
  bottom: 0px;
  width: 100%;
  height: 1px;
  background-color: #e75855;
  transition: .4s;
  transform: translateX(-50%);
} */

.link:hover::before {
  width: 0px;
}

.text-danger {
  color: #e75855 !important
}

.select2-container--default .select2-selection--single {
  border-color: #dee2e6 !important;
  height: 37px !important;
  display: flex !important;
  align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 19px !important;
}

.mark,
mark {
  background-color: #ffd600;
  padding: 0;
}

.overlay-delete-btn {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.404);
  transition: .4s;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploaded-img-box {
  position: relative;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploaded-img-box i {
  color: #fff;
  font-size: 20px;
  margin: 0 10px;
}

.uploaded-img-box:hover .overlay-delete-btn {
  opacity: 1;
}

.uploaded-img-box img {
  height: 130px;
  width: 130px;
  object-fit: contain;
}

.buttonUp {
  position: fixed;
  right: 3%;
  bottom: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  border: none;
  color: white;
  background: #e7524db4;
  transition: .4s;
  opacity: 0;
  visibility: hidden;
  outline: none !important;
  z-index: 5;
}

.buttonUp.active {
  opacity: 1;
  visibility: visible;
}

.buttonUp:hover {
  background: #e7524d;
}

button {
  font-size: 16px !important;
}

button i {
  font-size: 16px !important;
  line-height: 16px !important;
  height: 16px !important;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.badge.bg-info {
  color: #fff;
}

.badge {
  width: fit-content;
}

textarea:focus {
  box-shadow: none !important;
}

label {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.loader-wrapper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffffc2;
  z-index: 2;
}

.card-img-top {
  min-height: 155px;
  object-fit: cover;
}

.notification-link {
  background: #ffdb3b;
  border: none;
  font-weight: bold;
  color: #2c3f49;
}

/* .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:hover */
.notification-link:not(:disabled):not(.disabled):active,
.notification-link:hover {
  background: #ffe500 !important;
  color: #2c3f49 !important;
}

.notification-link .badge {
  font-size: 12px
}

.owl-dots {
  margin-top: -40px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.owl-carousel .owl-dot {
  padding: 5px;
  margin-right: 7px;
  color: black !important;
  text-align: center;
  border: none !important;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  transition: .4s;
  background-color: #fff;
}

.owl-carousel .owl-dot.active {
  transform: scale(1.5);
}

.owl-carousel .owl-item {
  height: 100%;
}

.owl-carousel,
.owl-stage-outer,
.owl-stage,
.owl-carousel .item-cover {
  height: 100%;
}

/* .brand-carousel .owl-carousel .owl-dots{
  display: flex !important;
} */

.scrolly-card .card-body tbody {
  height: calc(100vh - 75vh);
  overflow-y: auto;
  display: inline-block;
  width: 100%;
}

.scrolly-card .card-body table {
  display: block;
}

.scrolly-card .card-body thead {
  display: inline-block;
  width: 100%;
}

.scrolly-card .card-body tr {
  width: 100%;
  display: inline-table;
  text-align: left;
}

.scrolly-card td {
  padding: 5px 4px;
  font-size: 13px;
}

.scrolly-card th {
  font-size: 13px;
}

.main-table.scrolly-card .card-body td {
  width: 13%;
}

.main-table.scrolly-card .card-body thead th:not(:first-child) {
  width: 12%;
}

.indetails-table.scrolly-card .card-body td {
  width: 13%;
}

.indetails-table.scrolly-card .card-body thead th:not(:first-child) {
  width: 12.6%;
}

.bonus-badge {
  background-color: #fee17c;
  color: #2c3f49;
  padding: 5px 10px;
  border-radius: 3px;
  width: max-content;
}

.fullscreen-icon svg {
  height: 25px;
  width: 25px;
  fill: gray;
  stroke: gray
}

#carouselExampleCaptions .img-fluid {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  /* filter: brightness(0.5); */
}

.copy {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  left: 50%;
  top: 130px;
  transform: translateX(-50%);
  z-index: 9999;
  background: #fedb3b;
  padding: 2px 10px;
  transition: .4s;
}

.copied {
  opacity: 1;
  visibility: visible;
  top: 140px;
}

.scrolly-table {
  max-height: calc(100vh - 70vh);
  overflow: auto;
}

.scrolly-table th,
.scrolly-table td {
  font-size: 13px;
}

.scrolly-table .status-badge {
  font-size: 12px;
}

.scrolly-table thead tr th {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid rgb(179, 179, 179);
  border-top: 1px solid rgb(179, 179, 179);
}

.scrolly-table tfoot tr td {
  position: sticky;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid rgb(179, 179, 179);
}

.scrolly-table table {
  border-collapse: collapse;
}

.scrolly-table th {
  padding: 3px;
  border: 1px solid rgb(179, 179, 179);
  text-align: left;
  background-color: #fff;
}

.scrolly-table table {
  width: 100%;
}

.scrolly-table table td {
  padding: 3px;
  border: 1px solid rgb(179, 179, 179);
}

.scrolly-table thead {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

.custom-border-top {
  border-top: 1px solid rgb(179, 179, 179);
}

.card-header-custom {
  border-radius: 0 !important;
  border-top: 1px solid rgb(179, 179, 179);
  border-left: 1px solid rgb(179, 179, 179);
  border-right: 1px solid rgb(179, 179, 179);
}

.swal2-container.swal2-center>.swal2-popup {
  width: 480px;
}

.swal2-container,
.swal2-container .swal2-popup,
.swal2-container .swal2-popup.swal2-toast {
  transition: none !important;
}

.swal2-container .swal2-popup.swal2-show,
.swal2-container .swal2-popup.swal2-hide,
.swal2-container .swal2-popup.swal2-toast.swal2-show,
.swal2-container .swal2-popup.swal2-toast.swal2-hide {
  -webkit-animation: none !important;
  animation: none !important;
}

.swal2-actions .swal2-confirm {
  color: #fff !important;
  background-color: var(--main-action-background) !important;
  border-color: var(--main-action-background) !important;
}

.swal2-actions .swal2-confirm:hover,
.swal2-actions .swal2-confirm:focus,
.swal2-actions .swal2-confirm:active {
  color: #fff !important;
  background-color: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.swal2-actions .swal2-cancel {
  color: #fff !important;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.swal2-actions .swal2-cancel:hover,
.swal2-actions .swal2-cancel:focus,
.swal2-actions .swal2-cancel:active {
  color: #fff !important;
  background-color: #5c636a !important;
  border-color: #5c636a !important;
}

.swal2-actions > button[style*="display: inline"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 7px !important;
}


/* Logo Slider */
.brand-card {
  height: 247px;
  width: 100%;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 35px 0 rgb(154 161 171 / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  margin: 0 5px;
}

.brand-card img {
  height: 65%;
  width: 90%;
  object-fit: contain;
}

.brand-card span {
  margin-top: 20px;
  text-align: center;
}

.brand-carousel, .main-carousel {
  -webkit-box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.125);
  box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.125);
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-bottom: 50px;
  z-index: 2;
  position: relative;
}

.brand-carousel::before,
.brand-carousel::after,
.main-carousel::before,
.main-carousel::after {
  content: "";
  position: absolute;
  z-index: 2;
}

.brand-carousel::after, .main-carousel::after  {
  right: 0;
  top: 0;
  -webkit-transform: rotateZ(180deg);
  transform: rotateZ(180deg);
}

.brand-carousel::before, .main-carousel::before {
  left: 0;
  top: 0;
}

.alert-carousel {
  -webkit-box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.125);
  box-shadow: 0 0px 0px 0px rgba(0, 0, 0, 0.125);
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 2;
}

.alert-carousel .alert {
  margin: 0 5px 5px 0;
  width: 100%;
  min-height: 68px;
}

.alert-carousel:hover .logo-slide-track,
.brand-carousel:hover .logo-slide-track,
.main-carousel:hover .logo-slide-track  {
  animation-play-state: paused;
}

.alert-carousel .logo-slide-track,
.brand-carousel .logo-slide-track,
.main-carousel .logo-slide-track {
  -webkit-animation: logo-scroll 60s linear infinite;
  animation: logo-scroll 60s linear infinite;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* width: max-content; */
  width: calc(250px * 14);
  animation-duration: 30s;
  animation-iteration-count: infinite;
}

@-webkit-keyframes logo-scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes logo-scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }

  100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
  }
}

b{
  font-weight: bold !important;
}

@media (max-width:991.9px){
  .bonus-badge.bonus-badge-header {
    display: none;
  }
}

.alert-carousel {
  z-index: 2 !important;
}

.modal-dialog .modal-header{
  position: relative;
}
.modal-header button.btn-close{
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .4s;
}

@media (max-width: 576px){
  .modal-header button.btn-close{
    top: 50%;
    transform: translateY(-15%);
    right: 22px;
  }
}

@media (max-width: 991px){
  .currency-header.last-elements{
    display: none !important;
  }
}

@media (min-width: 768px) {
  .custom-vh {
    height: 100vh !important;
  }
}
.mt-c-8{
  margin-top: 8px;
}















.load-more {
  margin: 30px 0;
  min-height: 30px;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
}

.load-more.loading a::after {
  display: block;
}

.load-more.loading a {
  color: transparent
}

.load-more::after {
  position: absolute;
  content: '';
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 1px;
  width: 98%;
  background-color: #d1d3e0;
}

.load-more a {
  padding: 3px 5px;
  z-index: 1;
  background-color: #fff;
}

.load-more a::after {
  position: absolute;
  background-image: url('/assets/globals/gifs/preloader.gif');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75px;
  content: '';
  background-color: #fff;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.page-bg {
  background-color: #f5f7fa;
}

/* Shared UI used by B2B and BPM. */

.card-top-info {
  font-size: 1rem;
  font-weight: 600;
  color: #504848;
}

.notification-alert-swal .swal2-actions {
  position: absolute;
  bottom: 13px;
  right: 10px;
}

.notification-alert-swal .swal2-html-container {
  margin: 10px 0 0 0;
}

.notification-alert-swal .swal2-title {
  position: absolute;
  bottom: 50px;
}

.swal2-actions > button + button {
  margin-left: 8px !important;
}

.app-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.app-breadcrumb__link,
.app-breadcrumb__current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.app-breadcrumb__link {
  color: #64748b;
  text-decoration: none;
}

.app-breadcrumb__link:hover {
  color: var(--primary, #313986);
}

.app-breadcrumb__current {
  color: var(--primary, #2b3d45);
  font-weight: 500;
}

.app-breadcrumb__separator {
  color: #94a3b8;
  font-size: 16px;
  height: 16px;
}

/* Shared full-width filter section used by B2B and BPM pages. */
body[data-layout="horizontal"] .b2b-filter-section {
  margin-bottom: 1.25rem;
  overflow: visible;
}

body[data-layout="horizontal"] .b2b-filter-section > .card-body {
  padding: 1rem 1.1rem;
}

body[data-layout="horizontal"] .b2b-filter-section__layout,
body[data-layout="horizontal"] .b2b-filter-section__fields {
  row-gap: 0.75rem;
}

body[data-layout="horizontal"] .b2b-filter-section__field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
}

body[data-layout="horizontal"] .b2b-filter-section__field > .form-control,
body[data-layout="horizontal"] .b2b-filter-section__field > .form-select,
body[data-layout="horizontal"] .b2b-filter-section__field > .multiple-group,
body[data-layout="horizontal"] .b2b-filter-section__field > .input-group {
  width: 100%;
}

body[data-layout="horizontal"] .b2b-filter-section__actions {
  display: flex;
  align-items: end;
  justify-content: end;
  gap: 0.75rem;
}

body[data-layout="horizontal"] .b2b-filter-section__actions i {
  font-size: 16px;
  line-height: 1;
}

/* Reusable metric and totals summaries used around B2B/BPM tables. */
body[data-layout="horizontal"] .metric-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  padding: 0.75rem 1rem;
}

body[data-layout="horizontal"] .metric-summary__item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem;
  border-right: 1px solid var(--table-border, #e2e8f0);
}

body[data-layout="horizontal"] .metric-summary__item:last-child {
  padding-right: 0.25rem;
  border-right: 0;
}

body[data-layout="horizontal"] .metric-summary__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary, #1e2350);
  background: #eef5ff;
  font-size: 17px;
}

body[data-layout="horizontal"] .metric-summary__icon i {
  line-height: 1;
}

body[data-layout="horizontal"] .metric-summary__content {
  display: block;
  min-width: 0;
}

body[data-layout="horizontal"] .metric-summary__label {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-layout="horizontal"] .metric-summary__value {
  display: block;
  margin-top: 0.2rem;
  color: #11213b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

body[data-layout="horizontal"] .metric-summary__item--positive .metric-summary__icon {
  color: #168052;
  background: #ecfdf5;
}

body[data-layout="horizontal"] .metric-summary__item--negative .metric-summary__icon {
  color: #e4342d;
  background: #fff1f2;
}

body[data-layout="horizontal"] .metric-summary__item--warning .metric-summary__icon {
  color: #c66a00;
  background: #fff4e8;
}

body[data-layout="horizontal"] .metric-summary__item--accent .metric-summary__icon {
  color: #7c3aed;
  background: #f5f3ff;
}

body[data-layout="horizontal"] .metric-summary__item--info .metric-summary__icon {
  color: #2563eb;
  background: #eff6ff;
}

body[data-layout="horizontal"] .metric-summary__item--primary .metric-summary__icon {
  color: var(--primary, #1e2350);
  background: #e8f1ff;
}

body[data-layout="horizontal"] .summary-footer {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  color: #64748b;
  flex-wrap: wrap;
}

body[data-layout="horizontal"] .summary-footer__item,
body[data-layout="horizontal"] .summary-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 14px;
}

body[data-layout="horizontal"] .summary-footer__item + .summary-footer__item {
  padding-left: 1.25rem;
  border-left: 1px solid var(--table-border, #e2e8f0);
}

body[data-layout="horizontal"] .summary-footer__item > i {
  color: var(--primary, #1e2350);
  font-size: 18px;
  line-height: 1;
}

body[data-layout="horizontal"] .summary-footer__item strong {
  color: #11213b;
  font-weight: 600;
}

body[data-layout="horizontal"] .summary-footer__value {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  background: #dcfce7;
  border: 1px solid #b7ebc6;
  border-radius: 7px;
}

body[data-layout="horizontal"] .summary-footer__item--total .summary-footer__value {
  color: #166534;
}

body[data-layout="horizontal"] .summary-footer__item--bonus,
body[data-layout="horizontal"] .summary-footer__item--total {
  min-height: 58px;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 7px;
}

body[data-layout="horizontal"] .summary-footer__item--bonus {
  color: #9a6700;
  background: #fff8dc;
  border-color: #f5e8ad;
}

body[data-layout="horizontal"] .summary-footer__item--total {
  color: #1e3a6d;
  background: #eaf3ff;
  border-color: #d5e6ff;
}

body[data-layout="horizontal"] .summary-footer__item--bonus > i,
body[data-layout="horizontal"] .summary-footer__item--total > i {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-right: 0.1rem;
  border-radius: 50%;
  font-size: 18px;
}

body[data-layout="horizontal"] .summary-footer__item--bonus > i {
  color: #c66a00;
  background: #fff1c2;
}

body[data-layout="horizontal"] .summary-footer__item--total > i {
  color: #1759b5;
  background: #dceaff;
}

body[data-layout="horizontal"] .summary-footer__item--bonus strong {
  color: #b77908;
}

body[data-layout="horizontal"] .summary-footer__item--total .summary-footer__value {
  min-width: 0;
  padding: 0;
  color: #1e3a6d;
  background: transparent;
  border: 0;
}

@media (max-width: 1399.98px) {
  body[data-layout="horizontal"] .metric-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0.35rem;
  }

  body[data-layout="horizontal"] .metric-summary__item:nth-child(4n) {
    border-right: 0;
  }
}

@media (max-width: 767.98px) {
  body[data-layout="horizontal"] .metric-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-layout="horizontal"] .metric-summary__item:nth-child(4n) {
    border-right: 1px solid var(--table-border, #e2e8f0);
  }

  body[data-layout="horizontal"] .metric-summary__item:nth-child(2n) {
    border-right: 0;
  }

  body[data-layout="horizontal"] .summary-footer {
    justify-content: flex-start;
  }
}

@media (max-width: 479.98px) {
  body[data-layout="horizontal"] .metric-summary {
    grid-template-columns: 1fr;
  }

  body[data-layout="horizontal"] .metric-summary__item,
  body[data-layout="horizontal"] .metric-summary__item:nth-child(4n),
  body[data-layout="horizontal"] .metric-summary__item:nth-child(2n) {
    padding-right: 0.25rem;
    border-right: 0;
  }

  body[data-layout="horizontal"] .summary-footer__item + .summary-footer__item {
    padding-left: 0;
    border-left: 0;
  }
}

body[data-layout="horizontal"] .b2b-filter-card,
body[data-layout="horizontal"] .b2b-result-card {
  overflow: hidden;
}

body[data-layout="horizontal"] .b2b-filter-card {
  margin-bottom: 1rem;
}

body[data-layout="horizontal"] .b2b-filter-card--sidebar {
  margin-bottom: 1.25rem;
}

body[data-layout="horizontal"] .b2b-filter-card--sidebar > .card-body {
  padding: 1.35rem 1.4rem;
}

body[data-layout="horizontal"] .b2b-filter-card--sidebar .b2b-filter-card__header {
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

body[data-layout="horizontal"] .b2b-filter-card__discounts {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

body[data-layout="horizontal"] .b2b-filter-card__discount-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

body[data-layout="horizontal"] .b2b-filter-card__discount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body[data-layout="horizontal"] .b2b-filter-card__discount-option {
  min-width: 0;
  padding: 7px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body[data-layout="horizontal"] .b2b-filter-card__discount-option:hover {
  border-color: #f3b8bd;
  background: #fff1f2;
  color: #e4342d;
}

body[data-layout="horizontal"] .b2b-filter-card__discount-option.active {
  border-color: #f3b8bd;
  background: #fff1f2;
  color: #e4342d;
}

body[data-layout="horizontal"] .b2b-filter-card--sidebar .b2b-filter-card__controls {
  margin-right: 0;
  margin-left: 0;
  row-gap: 1rem;
}

body[data-layout="horizontal"] .b2b-filter-card--sidebar .filter-field {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
  padding-right: 0;
  padding-left: 0;
}

body[data-layout="horizontal"] .b2b-filter-layout > .col-md-9 {
  display: flex;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-filter-layout > .col-md-9 > .col-xl-12 {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-filter-layout .b2b-result-card:has(.b2b-empty-state-row) {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-filter-layout .b2b-result-card:has(.b2b-empty-state-row) > .card-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-filter-layout .b2b-result-card .table-responsive:has(.b2b-empty-state-row) {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-filter-layout .b2b-result-card .table-responsive:has(.b2b-empty-state-row) > .table {
  height: 100%;
}

body[data-layout="horizontal"] .b2b-filter-layout .b2b-result-card .table-responsive:has(.b2b-empty-state-row) > .table > tbody {
  height: 100%;
}

.b2b-empty-state-row > td {
  height: 100%;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: middle !important;
}

.b2b-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-direction: column;
  padding: 2.5rem 1rem;
  color: #64748b;
  text-align: center;
}

.b2b-empty-state__icon {
  font-size: 44px;
  line-height: 1;
}

.b2b-empty-state__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.b2b-empty-state__text {
  max-width: 34rem;
  color: #7b91ad;
  font-size: 14px;
  line-height: 1.5;
}

.b2b-empty-state-page {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.b2b-empty-state-page .b2b-empty-state {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body[data-layout="horizontal"] .b2b-filter-card > .card-body {
  padding: 10px;
}

body[data-layout="horizontal"] .b2b-filter-card__header,
body[data-layout="horizontal"] .b2b-result-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body[data-layout="horizontal"] .b2b-filter-card__header {
  margin-bottom: 1rem;
}

body[data-layout="horizontal"] .b2b-filter-card__title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--primary);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

body[data-layout="horizontal"] .b2b-filter-card__title i {
  font-size: 20px;
  line-height: 1;
}

body[data-layout="horizontal"] .b2b-filter-card__controls {
  row-gap: 0.85rem;
}

body[data-layout="horizontal"] .filter-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
}

body[data-layout="horizontal"] .filter-field__label {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

body[data-layout="horizontal"] .filter-field > .form-control,
body[data-layout="horizontal"] .filter-field > .form-select,
body[data-layout="horizontal"] .filter-field > .input-group,
body[data-layout="horizontal"] .filter-field > .multiple-group,
body[data-layout="horizontal"] .filter-field > .btn-main {
  width: 100%;
}

body[data-layout="horizontal"] .filter-field > .form-control,
body[data-layout="horizontal"] .filter-field > .form-select,
body[data-layout="horizontal"] .filter-field > .multiple-group .select2-selection {
  min-height: var(--control-height);
}

body[data-layout="horizontal"] .b2b-filter-card .multiple-group {
  row-gap: 0;
}

body[data-layout="horizontal"] .b2b-filter-card .multiple-group > .custom-placeholder {
  display: none !important;
}

body[data-layout="horizontal"] .b2b-result-card {
  margin-bottom: 1.25rem;
}

body[data-layout="horizontal"] .b2b-result-card .table-responsive {
  border: 0;
  border-radius: 0;
}

body[data-layout="horizontal"] .b2b-result-card > .card-header {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

body[data-layout="horizontal"] .b2b-result-card__header {
  color: var(--primary);
  font-size: 14px;
}

body[data-layout="horizontal"] .b2b-result-card__header b {
  font-size: 17px;
  font-weight: 600;
}

body[data-layout="horizontal"] .b2b-result-card > .card-body {
  padding: 0;
}

body[data-layout="horizontal"] .b2b-danger-link {
  color: var(--table-danger) !important;
  font-size: 12px;
  font-weight: 400;
}

body[data-layout="horizontal"] .b2b-danger-link::before {
  background-color: var(--table-danger) !important;
}

body[data-layout="horizontal"] .table-responsive {
  overflow-x: auto;
  border: 1px solid var(--table-border);
  border-bottom: 0 !important;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table {
  min-width: 760px;
  margin-bottom: 0;
  color: var(--table-text);
  border-collapse: collapse;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > thead > tr > th {
  padding: 0.8rem 0.75rem !important;
  background: var(--table-header);
  border: 0;
  border-right: 1px solid var(--table-border);
  color: var(--table-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > thead > tr:first-child > th:first-child {
  border-top-left-radius: 7px;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > thead > tr:first-child > th:last-child {
  border-top-right-radius: 7px;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr {
  background: #fff;
  transition: background-color 160ms ease;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr > th {
  background-color: #fff;
  box-shadow: none;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:nth-child(even):not(.focused-tr):not([aria-selected="true"]):not(:hover),
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:nth-child(even):not(.focused-tr):not([aria-selected="true"]):not(:hover) > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:nth-child(even):not(.focused-tr):not([aria-selected="true"]):not(:hover) > th {
  background-color: var(--table-row-alt);
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:hover {
  background: var(--table-row-hover);
  color: inherit;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:hover > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:hover > th {
  background-color: var(--table-row-hover);
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr.focused-tr,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr[aria-selected="true"] {
  background: var(--table-row-selected) !important;
  color: var(--table-text);
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr.focused-tr > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr.focused-tr > th,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr[aria-selected="true"] > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr[aria-selected="true"] > th {
  background-color: var(--table-row-selected) !important;
  box-shadow: none;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr > th {
  padding: 6px 10px !important;
  border: 0;
  border-bottom: 1px solid var(--table-border);
  border-right: 1px solid var(--table-border);
  color: var(--table-text);
  font-size: 16px;
  line-height: 1.4;
  vertical-align: middle !important;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > * > tr > :first-child {
  padding-left: 1rem !important;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > * > tr > :last-child {
  padding-right: 1rem !important;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:last-child > td,
body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tbody > tr:last-child > th {
  border-bottom: 0;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table > tfoot > tr > th {
  padding: 0.6rem 0.75rem !important;
  background: var(--table-header);
  border: 0;
  border-top: 1px solid var(--table-border);
  color: var(--table-text);
  font-size: 14px;
  vertical-align: middle;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table a.link {
  font-weight: 500;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table a.link::before {
  background-color: currentColor;
}

.status-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.status-badge.bg-success,
.status-badge--success {
  background: #e8f8f0 !important;
  border-color: #c8efdc;
  color: var(--table-success) !important;
}

.status-badge.bg-warning,
.status-badge--warning {
  background: #fff5dc !important;
  border-color: #fbe7ae;
  color: #b77908 !important;
}

.status-badge.bg-danger,
.status-badge--danger {
  background: #ffeded !important;
  border-color: #ffd0d0;
  color: var(--table-danger) !important;
}

.status-badge.bg-info,
.status-badge--pending {
  background: #eaf3ff !important;
  border-color: #d5e6ff;
  color: #2d6db3 !important;
}

.status-badge.badge-purple {
  background: #f0eaff !important;
  border-color: #e1d5ff;
  color: #7654c6 !important;
}

.status-badge.bg-light,
.status-badge--muted {
  background: #f1f5f9 !important;
  border-color: #e2e8f0;
  color: var(--table-muted) !important;
}

.status-badge.status-dot {
  min-height: 16px;
  width: 16px;
  padding: 0;
  border-radius: 50%;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  appearance: none;
  background: #fff;
  border: 1px solid #b8c8d5;
  border-radius: 5px;
  cursor: pointer;
  vertical-align: middle;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table input[type="checkbox"]:focus {
  border-color: var(--table-primary);
  box-shadow: 0 0 0 3px rgb(43 61 69 / 12%);
  outline: 0;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table input[type="checkbox"]:checked {
  background-color: var(--table-primary);
  border-color: var(--table-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 5 3 3 7-7'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 9px;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table input[type="checkbox"]:disabled {
  background-color: #e9eef2;
  border-color: #d8e0e6;
  cursor: not-allowed;
}

body[data-layout="horizontal"] .b2b-quantity-control {
  display: inline-flex;
  width: auto;
  min-width: 116px;
  align-items: stretch;
  flex-wrap: nowrap;
  vertical-align: middle;
}

body[data-layout="horizontal"] .b2b-quantity-control > .form-control {
  min-width: 48px;
  height: 36px;
  min-height: 36px !important;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--table-border);
  border-radius: 0;
  color: var(--table-text);
  font-size: 14px;
  text-align: center;
  box-shadow: none;
}

body[data-layout="horizontal"] .b2b-quantity-control > .form-control:focus {
  border-color: var(--table-primary);
  box-shadow: 0 0 0 3px rgb(43 61 69 / 12%);
  outline: 0;
}

body[data-layout="horizontal"] .b2b-quantity-control > .btn {
  width: 38px;
  min-width: 38px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--table-primary);
  border-radius: 0;
  background: var(--table-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-layout="horizontal"] .b2b-quantity-control > .btn:first-child {
  border-radius: 7px 0 0 7px;
}

body[data-layout="horizontal"] .b2b-quantity-control > .form-control:first-child {
  border-radius: 7px 0 0 7px;
}

body[data-layout="horizontal"] .b2b-quantity-control > .form-control:last-child {
  border-radius: 0 7px 7px 0;
}

body[data-layout="horizontal"] .b2b-quantity-control > .btn + .form-control,
body[data-layout="horizontal"] .b2b-quantity-control > .form-control + .btn {
  margin-left: -1px;
}

body[data-layout="horizontal"] .b2b-quantity-control > .btn:last-child {
  border-radius: 0 7px 7px 0;
}

body[data-layout="horizontal"] .b2b-quantity-control > .btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

body[data-layout="horizontal"] .b2b-quantity-control > .btn:disabled,
body[data-layout="horizontal"] .b2b-quantity-control > .btn.disabled {
  background: #b9c7d2;
  border-color: #b9c7d2;
  color: #fff;
  opacity: 1;
}

body[data-layout="horizontal"] .table-responsive > .table.b2b-table input.product-in-cart {
  background: #eef7ff !important;
  border-color: #c8dff3;
}

body[data-layout="horizontal"] .table-responsive > .load-more {
  margin: 0;
  min-height: 52px;
  align-items: center;
}

body[data-layout="horizontal"] .table-responsive > .load-more a {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--table-border);
  border-radius: 7px;
  color: var(--table-primary);
  font-size: 14px;
  text-decoration: none;
}

body[data-layout="horizontal"] .content_detail__pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

body[data-layout="horizontal"] .content_detail__pagination .cdp_i,
body[data-layout="horizontal"] .content_detail__pagination .mobile-btn-pgn {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--table-border);
  border-radius: 7px;
  background: #fff;
  color: var(--table-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

body[data-layout="horizontal"] .content_detail__pagination .cdp_i:hover,
body[data-layout="horizontal"] .content_detail__pagination .mobile-btn-pgn:hover {
  background: var(--table-row-hover);
  border-color: #c5d7e8;
}

body[data-layout="horizontal"] .content_detail__pagination .cdp_i.active {
  background: var(--table-primary);
  border-color: var(--table-primary);
  color: #fff;
}

body[data-layout="horizontal"] .card-footer {
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid var(--table-border);
}

.custom-placeholder{
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #B0B8BF;
  font-weight: 400;
}

body[data-layout="horizontal"] .b2b-delivery-badge {
  display: inline-flex;
  min-height: 28px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

body[data-layout="horizontal"] .b2b-delivery-badge--delivery {
  border-color: #8fd4af;
  background: #f4fbf7;
  color: #168052;
}

body[data-layout="horizontal"] .b2b-delivery-badge--pickup {
  border-color: #ffac58;
  background: #fff4e8;
  color: #c66a00;
}

/* Shared cart and summary UI used by B2B and BPM. */

.b2b-cart-layout {
  row-gap: 1rem;
}

body[data-layout="horizontal"] .b2b-cart-layout > .b2b-cart-main,
body[data-layout="horizontal"] .b2b-cart-layout > .b2b-cart-sidebar {
  min-width: 0;
}

body[data-layout="horizontal"] .b2b-cart-main {
  display: flex;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-cart-brand-card {
  margin-bottom: 1rem;
}

body[data-layout="horizontal"] .b2b-cart-brand-card > .card-body {
  padding: 1.1rem;
}

body[data-layout="horizontal"] .b2b-cart-brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body[data-layout="horizontal"] .b2b-cart-brand-tab {
  display: inline-flex;
  min-width: 132px;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem;
  color: var(--primary, #1e2350);
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body[data-layout="horizontal"] .b2b-cart-brand-tab:hover,
body[data-layout="horizontal"] .b2b-cart-brand-tab.active {
  color: var(--table-danger, #e4342d);
  background: #fff1f2;
  border-color: #f8d5d8;
}

body[data-layout="horizontal"] .b2b-cart-brand-tab__count {
  display: inline-flex;
  min-width: 30px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  color: #58718e;
  background: #c8d9f2;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

body[data-layout="horizontal"] .b2b-cart-brand-tab.active .b2b-cart-brand-tab__count {
  color: #fff;
  background: #ef6b70;
}

body[data-layout="horizontal"] .b2b-cart-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.9rem 1.1rem;
}

body[data-layout="horizontal"] .b2b-cart-select-all {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

body[data-layout="horizontal"] .b2b-cart-select-all input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary, #2b3d45);
}

body[data-layout="horizontal"] .b2b-cart-actions .btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--table-danger, #e4342d) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

body[data-layout="horizontal"] .b2b-cart-actions .btn-link i {
  font-size: 17px;
  line-height: 1;
}

body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card {
  display: flex;
  margin-bottom: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card > .card-body {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card .table-responsive {
  min-height: 0;
  flex: 1 1 auto;
}

body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card:has(.b2b-empty-state-row) .table-responsive {
  display: flex;
  flex-direction: column;
}

body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card:has(.b2b-empty-state-row) .table-responsive > .table {
  height: 100%;
}

body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card:has(.b2b-empty-state-row) .table-responsive > .table > tbody {
  height: 100%;
}

body[data-layout="horizontal"] .b2b-order-summary.b2b-order-summary--cart {
  position: static;
  height: 100%;
}

.b2b-cart-export {
  width: 100%;
  min-height: 52px;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 16px;
  font-weight: 600;
}

.b2b-cart-export i {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 991.98px) {
  body[data-layout="horizontal"] .b2b-cart-main > .b2b-result-card {
    min-height: 380px;
  }

  body[data-layout="horizontal"] .b2b-order-summary.b2b-order-summary--cart {
    height: auto;
  }
}

.b2b-order-summary {
  position: sticky;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.b2b-order-summary__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--primary, #2b3d45);
}

.b2b-order-summary__title i {
  font-size: 24px;
}

.b2b-order-summary__title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.b2b-order-summary__rows {
  display: grid;
  gap: 0.8rem;
}

.b2b-order-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #64748b;
  font-size: 14px;
}

.b2b-order-summary__row strong {
  color: #11213b;
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.b2b-order-summary__separator {
  height: 1px;
  margin: 0.35rem 0;
  background: var(--border);
}

.b2b-order-summary__total strong {
  font-size: 19px;
}

.b2b-order-summary__bonus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding: 0.85rem 0.9rem;
  color: #11213b;
  background: #fff8dc;
  border: 1px solid #f5e8ad;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
}

.b2b-order-summary__bonus i {
  margin-right: 0.35rem;
  color: #e59a00;
  font-size: 18px;
  line-height: 18px;
}

.b2b-order-summary__bonus strong {
  color: #16a34a;
  font-size: 17px;
}

.b2b-order-summary > .btn-main {
  width: 100%;
  margin-top: 1.1rem;
}

@media (max-width: 1199.98px) {
  .b2b-order-summary {
    position: static;
  }
}

/* Shared profile component */
.profile-page__heading {
  margin: 1.75rem auto 1.25rem;
  max-width: 1360px;
}

.profile-page__heading .page-title {
  margin-bottom: 0.3rem;
}

.profile-page__heading p {
  margin: 0;
  color: #7b91ad;
  font-size: 18px;
  line-height: 1.4;
}

.profile-card {
  max-width: 1360px;
  margin: 0 auto 2rem;
}
/* 
.profile-card > .card-body {
  padding: clamp(1.25rem, 3vw, 2rem);
} */

.profile-card__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.profile-card__layout--tabs {
  gap: 0;
}

.profile-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--border);
  text-align: center;
}

.profile-summary__avatar {
  display: inline-flex;
  width: 9.5rem;
  height: 9.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #e2eefb;
  color: var(--primary, #2b3d45);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.profile-summary__name {
  max-width: 100%;
  margin: 0;
  color: var(--primary, #2b3d45);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-summary__username {
  margin: 0.45rem 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.profile-summary__username span {
  color: #7b91ad;
}

.profile-summary__divider {
  width: 100%;
  margin: 1.35rem 0 1.1rem;
  border-top: 1px solid var(--border);
}

.profile-customer {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #f8fafc;
  text-align: left;
}

.profile-info-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #e2eefb;
  color: var(--primary, #2b3d45);
}

.profile-info-icon i {
  font-size: 21px;
  line-height: 1;
}

.profile-customer__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.2rem;
}

.profile-customer__copy span,
.profile-information__label {
  color: #7b91ad;
  font-size: 14px;
  line-height: 1.35;
}

.profile-customer__copy strong,
.profile-information__value {
  min-width: 0;
  color: var(--primary, #2b3d45);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-information {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 1rem;
}

.profile-information__row {
  display: grid;
  min-width: 0;
  grid-template-columns: 44px minmax(110px, 0.5fr) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  min-height: 68px;
  padding: 0.75rem 1rem;
  border: 1px solid #eef2f6;
  border-radius: 7px;
  background: #f8fafc;
}

.profile-tabs-panel {
  min-width: 0;
  padding: 0.25rem 1.25rem;
}

.profile-tabs {
  gap: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.profile-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: -1px;
  padding: 1rem;
  color: var(--primary, #2b3d45);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-tabs .nav-link:hover,
.profile-tabs .nav-link:focus-visible {
  color: var(--primary-hover, #313986);
}

.profile-tabs .nav-link.active {
  color: var(--primary, #2b3d45);
  background: transparent;
  border-bottom-color: var(--primary, #2b3d45);
}

.profile-tabs .nav-link i {
  color: inherit;
  font-size: 20px;
  line-height: 1;
}

.profile-tab-content {
  padding-top: 1.5rem;
}

.profile-tab-content .form-label {
  color: var(--primary, #2b3d45);
  font-weight: 600;
}

.profile-tab-content [data-role="save-form"] {
  margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
  .profile-page__heading {
    margin-top: 1.25rem;
  }

  .profile-page__heading p {
    font-size: 16px;
  }

  .profile-card__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .profile-card__layout--tabs {
    gap: 0;
  }

  .profile-summary {
    padding: 0.5rem 0 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .profile-information__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .profile-information__value {
    grid-column: 2;
  }

  .profile-tabs {
    gap: 0.25rem;
  }

  .profile-tabs-panel {
    padding-right: 0;
    padding-left: 0;
  }

  .profile-tabs .nav-link {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    font-size: 14px;
  }
}


/* Native multiple select pre-initialization */
body[data-layout="horizontal"] select[multiple]:not(.select2-hidden-accessible) {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  overflow-y: auto;
}

@media (max-width: 575.98px) {
  body[data-layout="horizontal"] select[multiple]:not(.select2-hidden-accessible) {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }
}

.badge {
  border-radius: 7px !important;
}

/* Shared delivery badges */
.delivery-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.delivery-badge--delivery {
  color: #15803d;
  background-color: #ecfdf3;
  border-color: #b7e7ca;
}

.delivery-badge--pickup {
  color: #b45309;
  background-color: #fff7ed;
  border-color: #f8d7aa;
}

/* Keep table action buttons visibly styled before hover */
.btn-edit {
  background-color: #dceaff;
  border-color: #afcdf8;
  color: #1677ff;
}

.btn-delete {
  background-color: #ffe2e2;
  border-color: #ffb8b8;
  color: #ff4d4f;
}

.btn-reset-password {
  background-color: #fff3cd;
  border-color: #ffe69c;
  color: #b58100;
}

.btn-edit,
.btn-delete,
.btn-reset-password {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  line-height: 1;
  box-sizing: border-box;
}

.btn-edit,
.btn-edit:hover,
.btn-edit:focus,
.btn-edit:active {
  background-color: #f3f7ff;
  border: 0;
  color: #1677ff;
}

.btn-delete,
.btn-delete:hover,
.btn-delete:focus,
.btn-delete:active {
  background-color: #fff6f6;
  border: 0;
  color: #ff4d4f;
}

.btn-reset-password,
.btn-reset-password:hover,
.btn-reset-password:focus,
.btn-reset-password:active {
  background-color: #fffaf0;
  border: 0;
  color: #b58100;
}

/* Shared lazy table viewport */
.table-scroll-container {
  max-height: 62vh;
  overflow-x: auto;
  overflow-y: auto;
}

.table-scroll-container > table {
  margin-bottom: 0;
}

.table-scroll-container > table > thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-scroll-container > [data-role="table-loader"] {
  position: sticky;
  bottom: 1rem;
  z-index: 3;
  margin-bottom: 1rem;
}

/* Shared table action button contrast */
.btn.btn-edit {
  background-color: #dceaff;
  border-color: transparent;
}

.btn.btn-delete {
  background-color: #ffe2e2;
  border-color: transparent;
}

.btn.btn-reset-password {
  background-color: #ffecb3;
  border-color: transparent;
}

/* Shared icon circle */
.icon-circle {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0 !important;
}

.icon-circle > i {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

/* Shared password visibility control */
.auth-login-input > .password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  z-index: 2;
  color: var(--login-muted, #58718e);
  line-height: 1;
  transform: translateY(-50%);
}

.auth-login-input > .password-toggle:hover,
.auth-login-input > .password-toggle:focus,
.auth-login-input > .password-toggle:active {
  color: var(--login-ink, #2b3d45);
  background: transparent;
  box-shadow: none;
}

.auth-login-input > .form-control[data-role="password-input"] {
  padding-right: 42px;
}

/* Shared date input and calendar picker */
.date-picker-control {
  position: relative;
  width: 100%;
}

.input-group > .date-picker-control {
  display: flex;
  flex: 1 1 auto;
  width: 1%;
}

.date-picker-control > input[type="date"]::-webkit-calendar-picker-indicator {
  width: 2.75rem;
  opacity: 0;
  cursor: pointer;
}

.date-picker-control__toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  z-index: 2;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #163d6a;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  transform: translateY(-50%);
}

.date-picker-control__toggle:hover,
.date-picker-control__toggle:focus,
.date-picker-control__toggle:active {
  color: #313986;
  background: #eef4fc;
  outline: 0;
  box-shadow: none;
}

.date-picker-control__toggle > i {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.datepicker.datepicker-dropdown {
  z-index: 1080;
  min-width: 22rem;
  padding: 0.8rem 0.9rem 0.7rem;
  color: #163d6a;
  background: #fff;
  border: 1px solid #e2eaf4;
  border-radius: 0.8rem;
  box-shadow: 0 0.75rem 2rem rgb(22 61 106 / 14%);
}

.datepicker.datepicker-dropdown::before,
.datepicker.datepicker-dropdown::after {
  display: none;
}

.datepicker .datepicker-days,
.datepicker .datepicker-months,
.datepicker .datepicker-years,
.datepicker .datepicker-decades,
.datepicker .datepicker-centuries {
  width: 100%;
}

.datepicker table.table-condensed {
  width: 100%;
}

.datepicker table tr th,
.datepicker table tr td {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  color: #163d6a;
  font-weight: 500;
  border-radius: 0.65rem;
}

.datepicker thead tr:first-child th {
  height: 2.65rem;
}

.datepicker thead tr:first-child th.prev,
.datepicker thead tr:first-child th.next {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  margin: 0.2rem;
  color: #163d6a;
  background: #f7faff;
  border: 1px solid #edf2f8;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
}

.datepicker thead tr:first-child th.prev:hover,
.datepicker thead tr:first-child th.next:hover {
  color: #1677ff;
  background: #e8f1ff;
}

.datepicker .datepicker-switch {
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.datepicker .datepicker-switch::after {
  margin-left: 0.35rem;
  color: #58718e;
  content: "⌄";
  font-size: 0.95rem;
}

.datepicker thead tr:nth-child(2) th {
  height: 2.2rem;
  color: #58718e;
  font-size: 0.8rem;
  font-weight: 600;
}

.datepicker table tr td.day {
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center !important;
  vertical-align: middle !important;
}

.datepicker table tr td.day:hover,
.datepicker table tr td.day.focused {
  color: #1677ff;
  background: #eef4fc;
}

.datepicker table tr td.old,
.datepicker table tr td.new {
  color: #a7b7c9;
}

.datepicker table tr td.today,
.datepicker table tr td.today:hover {
  color: #1677ff;
  background: #e8f1ff;
  border-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}
.datepicker table tr td.today.active {
  color: #fff;
  background: #e8f1ff;
  border-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:focus {
  color: #fff;
  background: #163d6a;
  border-color: #163d6a;
  text-align: center !important;
  vertical-align: middle !important;
  text-shadow: none;
}

.datepicker-footer {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px solid #edf2f8;
}

.datepicker-footer > .today,
.datepicker-footer > .clear {
  display: block;
  width: auto;
  height: 2.2rem;
  padding: 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 2.2rem;
}

.datepicker-footer > .today {
  color: #1677ff;
  text-align: left;
}

.datepicker-footer > .clear {
  color: #ff4d4f;
  text-align: right;
}

.datepicker-footer > .today:hover {
  color: #125fce;
  background: #eef4fc;
}

.datepicker-footer > .clear:hover {
  color: #d9363e;
  background: #fff0f0;
}

/* Shared keyword search history dropdown */
.search-history-form,
.search-history-field {
  position: relative;
}

.search-history-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  left: 0;
  z-index: 99999;
  min-width: min(100%, 38rem);
  padding: 0.6rem 0.65rem 0.7rem;
  overflow: hidden;
  color: #163d6a;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 0.9rem 2rem rgb(22 61 106 / 14%);
}

.search-history-dropdown[hidden] {
  display: none;
}

.search-history__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 2.25rem;
  padding: 0 0.35rem 0.5rem;
}

.search-history__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0;
  color: #ff4d4f;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.search-history__clear--icon {
  width: 2rem;
  height: 2rem;
  justify-content: center;
  padding: 0;
  color: #ff4d4f;
}

.search-history__clear:hover,
.search-history__clear:focus {
  color: #d9363e;
  outline: 0;
}

.search-history__clear:hover i,
.search-history__clear:focus i {
  color: #d9363e;
}

.search-history__clear i {
  font-size: 0.95rem;
  color: #ff4d4f;
}

.search-history__list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  border-radius: 10px;
}

.search-history__item {
  display: flex;
  width: 100%;
  min-height: 2.45rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0.55rem;
  color: #163d6a;
  text-align: left;
  background: #fff;
  border: 0;
  border-radius: 10px;
  border-bottom: 1px solid #edf2f8;
  font-size: 0.875rem;
  line-height: 1.25;
  transition: background-color 160ms ease, color 160ms ease;
}

.search-history__item:last-child {
  border-bottom: 0;
}

.search-history__item:first-child,
.search-history__item:hover,
.search-history__item:focus {
  background: #eef4fc;
  outline: 0;
}

.search-history__item-icon {
  flex: 0 0 1.15rem;
  color: #58718e;
  font-size: 1rem;
  text-align: center;
}

.search-history__item-text {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-history__item-arrow {
  flex: 0 0 1rem;
  color: #64748b;
  font-size: 1rem;
}

@media (max-width: 575.98px) {
  .search-history-dropdown {
    right: auto;
    width: min(38rem, calc(100vw - 2rem));
    min-width: 0;
  }
}

@media (max-width: 575.98px) {
  .datepicker.datepicker-dropdown {
    min-width: min(22rem, calc(100vw - 1.5rem));
  }

  .datepicker table tr th,
  .datepicker table tr td {
    height: 2.35rem;
  }
}
