/* Copy Animation */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #FF7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1E2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all .5s;
  background: #d1d1d1;
  border-radius: 5px;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  .cookies-card {
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 14px;
    padding: 15px;
  }
}

.hover-input-popup {
  position: relative;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 80%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px !important;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: '';
  font-family: 'Line Awesome Free';
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

.show-filter {
  display: none;
}

@media(max-width:767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
  opacity: 0.5;
  background-color: hsl(var(--black) / 0.5);
  border-color: hsl(var(--black) / 0.01);
}

.h-45 {
  height: 50px;
}

.h-none {
  height: 37px !important;
}

.input-group-text {
  color: #747474;
  background-color: #fff;
  border-color: hsl(var(--black) / 0.08);
  transition: all linear .15s;
}

.account-form .input-group-text {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border-left: 0;
}

.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),
.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
  border-right: 0;
}

@media screen and (min-width:768px) and (max-width:1024px) {
  .hover-input-popup .input-popup {
    left: 70% !important;
  }
}

.input-group-text.removeFile {
  border-color: hsl(var(--black) / 0.1) !important;
  border-style: dashed;
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active,
.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active {
  background-color: hsl(var(--base)) !important;
}

/* ===== Mobile: Fixed dashboard header so it never hides on scroll ===== */
@media screen and (max-width: 1199px) {
  .dashboard .dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background-color: #f6f8fd;
    box-shadow: 0 2px 16px hsl(var(--black) / 0.06);
  }
  /* Clear space so body content is not hidden under the fixed header */
  .dashboard .dashboard-body {
    padding-top: 80px !important;
  }
}

/* ===== Mobile bottom navigation (mobile view only) ===== */
@media screen and (max-width: 1199px) {
  .dashboard .dashboard__right {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-bottom-nav {
  display: none;
}

@media screen and (max-width: 1199px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: hsl(var(--white));
    box-shadow: 0 -4px 24px hsl(var(--black) / 0.08);
    z-index: 1000;
    align-items: flex-start;
    justify-content: space-around;
    padding-top: 8px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    text-decoration: none;
    color: hsl(var(--black) / 0.6);
    transition: color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .mobile-bottom-nav__item--disabled {
    cursor: default;
    pointer-events: none;
    opacity: 0.6;
  }

  .mobile-bottom-nav__item:active:not(.mobile-bottom-nav__item--disabled) {
    transform: scale(0.96);
  }

  .mobile-bottom-nav__item.active,
  .mobile-bottom-nav__item:hover:not(.mobile-bottom-nav__item--disabled) {
    color: hsl(var(--base));
  }

  .mobile-bottom-nav__icon {
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav__icon i {
    font-size: inherit;
  }

  .mobile-bottom-nav__label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav__item.active .mobile-bottom-nav__icon {
    color: hsl(var(--base));
  }
}

/* ===== More page (fullscreen sidebar on mobile) ===== */
.more-page-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

@media screen and (max-width: 1199px) {
  .more-page-fullscreen .sidebar-menu.sidebar-menu--fullscreen {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .more-page-fullscreen .mobile-bottom-nav {
    position: relative;
    flex-shrink: 0;
    bottom: auto;
    left: auto;
    right: auto;
  }
}

.more-page-fullscreen .sidebar-menu.sidebar-menu--fullscreen,
.sidebar-menu.sidebar-menu--fullscreen {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  transform: none;
  border-radius: 0;
  border-right: 0;
}

.more-page-fullscreen .sidebar-menu__close,
.sidebar-menu--fullscreen .sidebar-menu__close {
  top: 16px;
  right: 16px;
  padding: 10px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

/* ===== Floating Quick Access panel (right side) ===== */
.floating-quick-access {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 10px;
  background: hsl(var(--black) / 0.85);
  border-radius: 12px 0 0 12px;
  box-shadow: -4px 0 20px hsl(var(--black) / 0.2);
  backdrop-filter: blur(8px);
}

.floating-quick-access__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #5E9226;
  border: 2px solid #5E9226;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-quick-access__btn:hover {
  background: #5E9226;
  color: #fff;
  transform: scale(1.05);
}

.floating-quick-access__btn i {
  font-size: 2rem !important;
}

.floating-quick-access__btn img.floating-quick-access__img {
  width: 2rem !important;
  height: 2rem !important;
  max-width: 2rem !important;
  max-height: 2rem !important;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .floating-quick-access {
    padding: 10px 6px;
    gap: 8px;
  }

  .floating-quick-access__btn {
    width: 42px;
    height: 42px;
  }

  .floating-quick-access__btn i {
    font-size: 1.6rem !important;
  }

  .floating-quick-access__btn img.floating-quick-access__img {
    width: 1.6rem !important;
    height: 1.6rem !important;
    max-width: 1.6rem !important;
    max-height: 1.6rem !important;
  }
}