@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
  --Primary-Green: #006661;
  --Secondary-Green: #03AB77;
  --Dark-Green: #00201E;
  --white: #fff;
  --black: #101010;
  --border-color: #e5e5e5;
}

body {
  font-family: "Outfit", sans-serif;
  ;
}

html {
  scroll-behavior: smooth;
}

h1,
.h1 {
  font-size: 56px;
  line-height: 70px;
}

h2,
.h2 {
  font-size: 48px;
  line-height: 60px;
  letter-spacing: -0.48px;
}

h3,
.h3 {
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -0.4px;
}

h4,
.h4 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.32px;
}

h5,
.h5 {
  font-size: 24px;
  line-height: 32px;
}

h6,
.h6 {
  font-size: 20px;
  line-height: 28px;
}

.fw-semibold {
  font-weight: 600;
}

.fw-medium {
  font-weight: 500;
}

.fw-regular {
  font-weight: 400;
}

.f-18 {
  font-size: 18px;
  line-height: 26px;
}

.f-16 {
  font-size: 16px;
  line-height: 22px;
}

.f-14 {
  font-size: 14px;
  line-height: 20px;
}

.f-12 {
  font-size: 12px;
  line-height: 16px;
}

.text-white {
  color: var(--white);
}

.text-black {
  color: var(--black) !important;
}

.text-primary {
  color: var(--Primary-Green) !important;
}

.text-secondary {
  color: var(--Secondary-Green) !important;
}

.text-red {
  color: #FE3F34;
}

.text-danger {
  color: #F36D4A !important;
}

.text-s500 {
  color: #03AB77;
}

.text-p100 {
  color: #B2DEDE;
}

.text-grey {
  color: #888;
}

a {
  text-decoration: none;
}

.pb-32 {
  padding-bottom: 32px;
}

.mb-32 {
  margin-bottom: 32px;
}

.pt-32 {
  padding-top: 32px;
}

.gap-12 {
  gap: 12px;
}

.required-input::placeholder {
  opacity: 0;
}

/* Fake placeholder text */
.required-mark {
  position: absolute;
  left: 27px;
  font-weight: 500;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.required-mark-phone {
  position: absolute;
  left: 60px;
  font-weight: 500;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.iti {
  width: 100%;
}

.iti input {
  width: 100%;
}
/* Add red star */
.required-mark::after,
.required-mark-phone::after {
  content: " *";
  color: #FE3F34;
}

/* Hide when typing or focus */
.required-input:focus~.required-mark,
.required-input:not(:placeholder-shown)~.required-mark {
  opacity: 0;
}

/* Hide the mark if the container HAS a focused input or an input with text */
.custom-floating:has(.required-input:focus) .required-mark-phone,
.custom-floating:has(.required-input:not(:placeholder-shown)) .required-mark-phone {
  opacity: 0;
}

textarea.form-control {
  height: auto;
  max-height: 52px;
  resize: vertical;
}

.btn {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  transition: all .4s ease-in-out;
  text-wrap: nowrap;

  &.disabled,
  &:disabled {
    opacity: 0.4;
  }
}

.btn-small {
  padding: 8px 12px !important;
  font-size: 14px !important;
  color: var(--Primary-Green);
  height: 32px;
  line-height: 20px;
  transition: all .4s ease-in-out;
  text-wrap: nowrap;

  &.disabled,
  &:disabled {
    opacity: 0.4;
  }
}

.btn.btn-primary {
  border: none;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  border-radius: 10px;
  background: linear-gradient(180deg, #03AB77 0%, #026144 108%);
  box-shadow: 0 8px 16px 0 rgba(2, 97, 68, 0.15);
  color: var(--white);
  font-weight: 600;
  transition: all 0.4s ease;
}

.btn-lg {
  height: 50px;
  padding: 15px 24px;
}

.btn-md {
  height: 40px;
  padding: 8px 16px;
}

.btn.btn-primary.disabled,
.btn.btn-primary:disabled {
  background: linear-gradient(180deg, #EDEDED 0%, #D0CFCF 100%);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
  color: #A0A0A0;
  cursor: not-allowed;
}

.btn.btn-primary:hover {
  background: linear-gradient(180deg, #03AB77 55.81%, #026144 140%) !important;
  box-shadow: 0 10px 20px 0 rgba(2, 97, 68, 0.25);
  color: var(--white);
}

.btn-outline-primary {
  --bs-btn-border-color: var(--border-color);
  --bs-btn-color: var(--Primary-Green);
  border-radius: 10px;
  box-shadow: 0 6px 12px 0 rgba(16, 16, 16, 0.06);
  background-color: var(--white);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-color: var(--Primary-Green);
  --bs-btn-hover-border-color: var(--Primary-Green);
  --bs-btn-active-bg: var(--Primary-Green);
  --bs-btn-focus-box-shadow: 0 6px 12px 0 rgba(16, 16, 16, 0.06);
  --bs-btn-active-color: var(--Primary-Green);
  --bs-btn-disabled-color: var(--Primary-Green);
  --bs-btn-disabled-bg: #EFF4FF;
  --bs-btn-disabled-border-color: var(--Primary-Green);


  &.icon-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
}

.hide-show-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.form-control {
  --bs-border-color: #e5e5e5;
  --bs-border-radius: 12px;
  --bs-background-color: white;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  --bs-body-color: #131E29;
  padding: 8px 16px;
  height: 50px;

  &::placeholder {
    color: #888;
  }

  &:hover {
    --bs-border-color: var(--Primary-Green);
  }

  &:focus {
    border-color: var(--Primary-Green);
    box-shadow: 0 0 0 2px rgba(0, 102, 97, 0.20);
  }
}

input.form-control[readonly] {
  background-color: #fff;
  box-shadow: none;
  border-color: #e5e5e5;
}

select.form-control {
  background-image: url(/static/images/chevron-down.svg);
  background-repeat: no-repeat;
  background-position: right 7px center;
}

.form-control.form-control-bg {
  background-color: #fff;

  &:hover {
    --bs-border-color: var(--Primary-Green);
  }

  &:focus {
    border-color: var(--Primary-Green);
    box-shadow: 0 0 0 2px rgba(0, 102, 97, 0.20);
  }
}

.form-control.form-control-blue-bg {
  background-color: var(--Primary-Green);
  color: var(--white);

  &:hover {
    --bs-border-color: var(--dark-blue);
  }

  &:focus {
    border-color: var(--Primary-Green);
    box-shadow: none;
  }
}

.form-check-input {
  --bs-border-color: #e5e5e5;
}

.form-check-input:checked {
  background-color: var(--Primary-Green);
  color: var(--white) !important;
  border-color: var(--Primary-Green);
}

.form-check-input:checked[type=radio] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23FFFFFF'/%3e%3c/svg%3e");
}

.form-check-input:focus {
  box-shadow: none;
}

@media (hover: hover) {
  .form-check-input:hover {
    --bs-border-color: #e5e5e5;
    --bs-form-check-bg: #EFF4FF;
  }
}

.label-space {
  min-height: 28px;
  display: block;
}

textarea.form-control {
  height: auto;
}

.form-control.verify-text {
  background-image: url(/static/images/verify.svg);
  background-repeat: no-repeat;
  background-position: right 7px center;
}

label.form-label {
  color: #888;
  font-size: 12px;
  line-height: 18px;
  margin-bottom: 5px;
}

.form-check-input:checked[type=checkbox] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input[type=checkbox] {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  margin: 0;
  cursor: pointer;
}

.custom-floating {
  position: relative;
}

.custom-floating label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  padding: 0 5px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  pointer-events: none;
  transition: all 0.2s ease;
  opacity: 0;
  z-index: 5;
}

.custom-floating .form-control::placeholder {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.custom-floating .form-control:focus::placeholder {
  opacity: 0;
  transition-delay: 0.05s;
}

.custom-floating:focus-within label {
  top: 0;
  transform: translateY(-50%);
  opacity: 1;
  color: var(--Primary-Green);
}

.custom-floating input:not(:placeholder-shown)~label {
  top: 0;
  transform: translateY(-50%);
  opacity: 1;
}

.custom-floating .form-control:not(:placeholder-shown):not(:focus)~label {
  color: #888;
}

.custom-floating.has-value label {
  top: 0;
  transform: translateY(-50%);
  opacity: 1;
}

.custom-floating:focus-within label {
  top: 0;
  transform: translateY(-50%);
  opacity: 1;
  color: var(--Primary-Green);
}

.custom-floating.has-value:not(:focus-within) label {
  color: #888;
}

/* ERROR STATE */
.custom-floating.error .form-control,
.custom-floating.error .select2-selection {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.custom-floating.error label {
  color: #dc3545 !important;
  opacity: 1;
  top: 0;
  transform: translateY(-50%);
}

/* Error message */
.error-text {
  display: none;
  font-size: 12px;
  color: #dc3545;
  margin-top: 5px;
}

.custom-floating.error .error-text {
  display: block;
}
/* Target select2 inside floating */
.custom-floating .select2-container {
  width: 100% !important;
}

.custom-floating .select2-selection {
  height: 50px !important;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

/* Focus state */
.custom-floating:focus-within .select2-selection {
  border-color: var(--Primary-Green);
  box-shadow: 0 0 0 2px rgba(0, 102, 97, 0.20);
}

/* Floating label for Select2 */
.custom-floating.has-value label,
.custom-floating:focus-within label {
  top: 0;
  transform: translateY(-50%);
  opacity: 1;
}
.select2-container .select2-selection {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 8px 16px;
  height: 50px;
  outline: none;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
  margin-bottom: 0;
}
@media (hover: hover) {
  .select2-container .select2-selection:hover {
    border-color: #006661;
  }
}
.custom-floating .select2-selection--multiple {
  min-height: 50px !important;
  height: auto !important;
}
.select2-container .select2-selection:focus {
  box-shadow: 0 0 0 2px var(--Primary-Green);
  border-color: transparent;
}

.select2-container .select2-dropdown {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 1px 30px 0px rgba(34, 53, 72, 0.25);
  border-color: var(--border-color);
}

.select2-container .select2-results__option {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #888;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--border-color);
  font-weight: 400;
  font-size: 14px;
  line-height: 16.1px;
  padding: 9px 10px;
  height: 34px;
  border-radius: 4px;
  outline: none;
  background-color: var(--white);
  color: var(--black);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #006661;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 30px;
  padding-left: 0px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  background-image: url(../images/chevron-down.svg);
  background-repeat: no-repeat;
  background-position: right 5px center;
  height: 36px;
  top: 0px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right: 3px;
}

.select2-container.custom-multiselect .select2-results__option::before {
  content: " ";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: solid 1px #788fa6;
  vertical-align: middle;
  border-radius: 4px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #006661;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable::before {
  border-color: #fff;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable.select2-results__option--selected::before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  border-color: var(--border-color);
  background: #E5F5EE;
  border-radius: 6px;
  margin-top: 0;
  padding: 5px;
  padding-right: 20px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  right: 3px;
  border: 0;
  width: 15px;
  left: auto;
  top: 4px;
  padding: 0;
  color: var(--Primary-Green);
}

span.select2-selection.select2-selection--multiple::after {
  content: "";
  background-image: url(../images/chevron-down.svg);
  background-repeat: no-repeat;
  background-position: right 7px center;
  height: 36px;
  position: absolute;
  right: 5px;
  top: 5px;
  width: 22px;
  pointer-events: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
  margin-right: 0px;
  top: 22px;
}

.select2-container--default .select2-selection--multiple.select2-selection--clearable {
  height: auto;
}

.select2-container--default .select2-selection__placeholder {
  color: #888 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
span.select2-selection.select2-selection--multiple::after {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.select2-container--open .select2-selection--single .select2-selection__arrow,
.select2-container--open span.select2-selection.select2-selection--multiple::after {
  transform: rotate(180deg);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #888 !important;
  opacity: 1 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--black) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.select2-container .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
}

.select2-container .select2-selection__clear {
  position: absolute;
  right: 30px !important;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  margin-top: 0 !important;
  margin-right: 0 !important;
  background-color: var(--white);
  color: var(--black);
}

.select2-container {
  position: relative;
}
/* Ensure the search field is visible and styled inside the tags area */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-top: 0px;
    margin-left: 0px;
    font-family: inherit;
    font-size: 14px;
    color: #888 !important ;
}

/* Fix for the dropdown search if using a custom theme */
.custom-multiselect .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px;
}

/* Ensure the box expands correctly when searching/adding tags */
.select2-container--default .select2-selection--multiple {
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
div:not(.optional)>.select2-container .select2-selection__placeholder::after {
  content: " *";
  color: #FE3F34;
  font-weight: bold;
  margin-left: 4px;
}

/* Light theme autofill */
body:not(.dark-theme) input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  box-shadow: 0 0 0px 1000px #ffffff inset;
}

.offcanvas.canvas-lg {
  --bs-offcanvas-width: 550px;
  border-radius: 10px !important;
  height: calc(100dvh - 20px);
  margin: 10px;
  background: var(--white);
}

.offcanvas-card {
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.dropdown-toggle::after{
  color: var(--black);
}
/* 🌙 DARK THEME */
.dark-theme {
  --white: #101010;
  --black: #ffffff;
  --border-color: #2E2E2E;
}

/* Body */
.dark-theme body {
  background-color: #101010;
  color: #ffffff;
}

.dark-theme section.main-login {
  background: linear-gradient(180deg, #004440 0%, #00201E 100%);
}

/* 🔧 Autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff;
  /* text color */
  transition: background-color 5000s ease-in-out 0s;
  box-shadow: 0 0 0px 1000px #101010 inset;
  /* your background */
}

/* Text */
.dark-theme .text-black {
  color: #ffffff !important;
}

.dark-theme .text-grey {
  color: #B0B0B0;
}
.dark-theme .offcanvas.canvas-lg {
  background: #1D1D1D;
}
.dark-theme .modal-content {
  background: #1D1D1D;
}
.dark-theme .btn.btn-primary.disabled,
.dark-theme .btn.btn-primary:disabled {
  background: linear-gradient(180deg, #303030 0%, #1C1C1C 100%);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.08);
  color: #616161;
  border: 1px solid #2E2E2E;
  cursor: not-allowed;
}

/* Form Control */
.dark-theme .form-control {
  background-color: #101010;
  border-color: #2E2E2E;
  color: #ffffff;
}

/* Placeholder */
.dark-theme .form-control::placeholder {
  color: #4E4E4E;
  font-weight: 500;
}

/* Focus state */
.dark-theme .form-control:focus {
  color: #ffffff;
  border-color: var(--Secondary-Green);
  box-shadow: 0 0 0 2px rgba(0, 102, 97, 0.25);
}

/* Labels */
.dark-theme label.form-label {
  color: #A0A0A0;
}

/* Floating label */
.dark-theme .custom-floating label {
  background: #101010;
  color: #4E4E4E;
}

.dark-theme .custom-floating:focus-within label {
  color: var(--Secondary-Green);
}

/* Buttons */
.dark-theme .btn-outline-primary {
  background-color: #101010;
  color: #ffffff;
}

.dark-theme .btn-outline-primary:hover {
  border-color: var(--Secondary-Green) !important;
}

.dark-theme .btn-outline-primary:hover {
  border-color: var(--Primary-Green);
  color: var(--Primary-Green);
}

/* Cards / Containers */
.dark-theme .card-content,
.dark-theme .right {
  background-color: #101010;
  border-color: #2E2E2E;
}

/* Divider */
.dark-theme .login-divider::before,
.dark-theme .login-divider::after {
  border-color: #2E2E2E;
}

/* Select2 */
.dark-theme .select2-container .select2-selection {
  background-color: #101010;
  border-color: #2E2E2E;
  color: #ffffff;
}

body.dark-theme .hide-show-eye img {
  filter: invert(1);
}

.dark-theme .select2-container--default .select2-selection__placeholder {
  color: #4E4E4E !important;
}

.dark-theme .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
}
.dark-theme .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    color: #4E4E4E !important ;
}
body.dark-theme .select2-container--default .select2-selection--single .select2-selection__arrow {
  background-image: url(../images/chevron-down-white.svg);
}
body.dark-theme span.select2-selection.select2-selection--multiple::after  {
  background-image: url(../images/chevron-down-white.svg);
}
body.dark-theme .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #00201E;
}
.dark-theme .btn-small {
  color: var(--Secondary-Green) !important;
}

/* Dropdown */
.dark-theme .select2-container .select2-dropdown {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Checkbox & radio */
.dark-theme .form-check-input {
  border-color: #2E2E2E;
  background-color: #101010;
}

.dark-theme .text-primary {
  color: var(--Secondary-Green) !important;
}

/* Error */
.dark-theme .error-text {
  color: #ff6b6b;
}

.theme-toggle {
  display: flex;
  align-items: center;
}

#themeSwitch {
  display: none;
}

.toggle-label {
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 50px;
  position: absolute;
  top: 32px;
  right: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  transition: background 0.3s ease;
}

/* Icons */
.toggle-label .icon {
  font-size: 14px;
  z-index: 2;
}

.toggle-label .ball {
  width: 22px;
  height: 22px;
  background: #fff;
  position: absolute;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  z-index: 3;
}

#themeSwitch:checked+.toggle-label {
  background: #2E2E2E;
}

#themeSwitch:checked+.toggle-label .ball {
  transform: translateX(30px);
}

@media (max-width: 991px) {

  h1,
  .h1 {
    font-size: 32px;
    line-height: 40px;
  }

  h2,
  .h2 {
    font-size: 28px;
    line-height: 36px;
  }

  h3,
  .h3 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.24px;
  }

  h4,
  .h4 {
    font-size: 22px;
    line-height: 30px;
  }

  h5,
  .h5 {
    font-size: 20px;
    line-height: 28px;
  }

  h6,
  .h6 {
    font-size: 18px;
    line-height: 26px;
  }

  .f-18 {
    font-size: 16px;
    line-height: 24px;
  }

  .f-16 {
    font-size: 14px;
    line-height: 20px;
  }

  .f-14 {
    font-size: 12px;
    line-height: 18px;
  }

  .f-12 {
    font-size: 10px;
    line-height: 16px;
  }

  .pb-32 {
    padding-bottom: 24px;
  }

  .pt-32 {
    padding-top: 24px;
  }

  .mb-32 {
    margin-bottom: 24px;
  }

  .toggle-label {
    top: 16px !important;
    right: 16px !important;
  }
   .icon-btn {
    width: 32px !important;
    height: 32px !important;
  }
}
.green-text{
  color: var(--Secondary-Green);
}
.red-text{
  color: #FE3F34;
}
.badge {
  --bs-badge-font-weight: 500;
  --bs-badge-font-size: 12px;
  line-height: 16px;
  text-transform: capitalize;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge.text-bg-success {
  background-color: #E5F5EE !important;
  color: #101010 !important;
}

.badge.text-bg-green {
  background-color: #E0F1F2 !important;
  color: #101010 !important;
}

.badge.text-bg-primary {
  background-color: #DCECFF !important;
  color: #101010 !important;
}

.badge.text-bg-warning {
  background-color: #FFF8DB !important;
  color: #101010 !important;
}

.badge.text-bg-purple {
  background-color: #F6E3FF !important;
  color: #101010 !important;
}

.badge.text-bg-grey {
  background-color: #EDEDED !important;
  color: #101010 !important;
}

.dark-theme .badge.text-bg-success {
  background-color: rgba(39, 48, 42, 1) !important;
  color: #34C759 !important;
}

.dark-theme .badge.text-bg-primary {
  background-color: #1C2A3A !important;
  color: #007AFF !important;
}

.dark-theme .badge.text-bg-warning {
  background-color: rgba(255, 204, 0, 0.1) !important;
  color: #FFCC00 !important;
}

.dark-theme .badge.text-bg-purple {
  background-color: rgba(175, 82, 222, 0.1) !important;
  color: #AF52DE !important;
}

.dark-theme .badge.text-bg-grey {
  background-color: #303030 !important;
  color: #888 !important;
}

/***** dataTable css start here *****/
.dataTables_filter {
  display: none;
}

table.dataTable {
  width: 100% !important;
}

table.dataTable thead tr:first-child th {
  background-color: #F7F7F7;
  white-space: nowrap;
}

table.dataTable tbody tr td {
  background-color: var(--white) !important;
  box-sizing: border-box;
  font-weight: 400;
  font-size: 14px;
  line-height: 16.1px;
  color: var(--black);
  padding: 16px;
}

table.dataTable.display tbody td {
  border-top: 1px solid var(--border-color);
}

table.dataTable tbody tr:hover,
table.dataTable tbody tr:hover td {
  background-color: rgba(250, 250, 250, 1) !important;
}
.dark-theme table.dataTable tbody tr:hover,
.dark-theme table.dataTable tbody tr:hover td {
  background-color: #181818 !important;
}

table.dataTable thead tr th {
  padding: 8px 10px;
  font-weight: 500;
  box-sizing: border-box;
  border-bottom: none;
  font-size: 14px;
  line-height: 20px;
  color: #888;
  min-height: 44px;
  height: 44px;
}

table.dataTable.no-footer {
  border: 0 !important;
}

.table-responsive .dataTables_wrapper {
  overflow: auto;
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 203px);
}

.pagination-container {
  position: sticky;
  bottom: 0;
  left: 0;
  min-height: 50px;
  padding: 6px 6px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
}

table.dataTable thead {
  position: sticky;
  top: 0;
  z-index: 9;
  border-radius: 8px !important;
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-color: #d4dadf !important;
  border-radius: 5px;
  margin: 0 5px;
  background: transparent !important;
  font-size: 14px;
  color: #888 !important;
  font-weight: 600;
  box-shadow: none !important;
  min-width: auto;
  padding: 4px;
  width: 30px;
  height: 30px;
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--white) !important;
  color: var(--black) !important;
  border: 1px solid var(--border-color) !important;
}

.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button.next {
  display: none !important;
}

.dataTables_wrapper .pagination-container .dataTables_info {
  padding: 0;
  font-size: 14px;
  color: var(--black);
  font-weight: 600;
}

.pagination-container .dt-pagination-info {
  flex: 1;
  text-align: left;
}

.pagination-container .dt-pagination-controls {
  flex: 1;
  text-align: center;
}

.pagination-container .dt-jump-label {
  flex: 1;
  text-align: right;
}

.pagination-container label {
  color: #888;
  font-size: 14px;
  font-weight: 600;
}

.pagination-container label input#jumpToPage {
  width: 48px !important;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  outline: none;
  padding: 3px 6px;
  text-align: center;
}

.pagination-container .dt-jump-input {
  width: 48px;
  margin-left: 10px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  outline: none;
  padding: 3px 6px;
  text-align: center;
}

.table-responsive table button.icon-btn:not(:hover) {
  background: transparent;
}

/* 1. Ensure the table is not collapsing borders */
table.dataTable {
  border-spacing: 0;
}

/* 2. Target the top-left corner of the first header cell */
table.dataTable thead tr:first-child th:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

/* 3. Target the top-right corner of the last header cell */
table.dataTable thead tr:first-child th:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

/* 4. Ensure the sticky positioning doesn't clip the corners */
table.dataTable thead th {
  overflow: hidden;
}
.sticky-table-container .table-responsive table thead th.text-center {
    position: sticky;
    right: 0;
    top: 0;
    box-shadow: -8px 0px 16px rgba(0, 0, 0, 0.1);
}

.sticky-table-container .table-responsive table tbody td:last-child {
    position: sticky;
    right: 0;
    box-shadow: -8px 0px 16px rgba(0, 0, 0, 0.1);
    background-color: white; 
}

td.text-end:has(.btn.icon-btn.show) {
    z-index: 8;
}

.scrolled-horizontally table tbody td:last-child,
.scrolled-horizontally table thead th.text-end {
	box-shadow: none !important;
}


.dark-theme .dataTable thead tr:first-child th {
  background: #181818;
}
.offcanvas-backdrop.show {
    background-color: rgba(0, 0, 0, 0.20) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    opacity: 1 !important;
}
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.20) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    opacity: 1 !important;
}
.btn-close {
    --bs-btn-close-color: var(--black);
    --bs-btn-close-opacity: 1;
    background: none !important;  /* Removes the default Bootstrap X icon */
    padding: 0;                   /* Removes default padding that offsets your SVG */
    width: auto;                  /* Allows button to fit your 24px SVG */
    height: auto;
    opacity: 1;                   /* Optional: keeps your icon bright (default is 0.5) */
    display: flex;
    align-items: center;
    justify-content: center;
}
.dark-theme .btn-close {
    --bs-btn-close-color: var(--black) !important;
    --bs-btn-close-color: #1d1d1d;
}
.modal-content{
  background-color: var(--white);
}
@media (max-width: 1700px) {
  .pagination-container {
    min-height: 36px;
    padding: 10px 20px;
  }

  .dataTables_wrapper .pagination-container .dataTables_info,
  .pagination-container label {
    font-size: 12px;
  }

  .table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .table-responsive .dataTables_wrapper {
    max-height: calc(100dvh - 133px);
  }

  table.dataTable tbody tr td {
    font-size: 12px;
    padding: 10px;
    line-height: 1.2;
    height: 30px;
  }

  table.dataTable thead tr th {
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1.2;
    height: 32px;
  }

  table .form-control.search-input.column-search {
    padding: 5px 10px;
    height: 26px;
    min-width: 65px;
    padding-right: 30px;
  }

  table.dataTable.no-footer tr.filters th {
    padding-right: 0;
  }

}

@media (max-width: 991px) {
  .table-responsive .dataTables_wrapper {
    max-height: calc(100dvh - 183px);
  }

  .pagination-container label,
  .dataTables_wrapper .pagination-container .dataTables_info {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .table-responsive .dataTables_wrapper {
    max-height: calc(100dvh - 202px);
  }

  .pagination-container label input#jumpToPage {
    width: 28px !important;
    padding: 3px 4px;
    margin-left: 0 !important;
  }

  .pagination-container .dt-jump-input {
    width: 28px !important;
    padding: 3px 4px;
    margin-left: 0 !important;
  }

  .dataTables_wrapper .dataTables_paginate {
    flex: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }

  .pagination-container {
    min-height: 45px;
    padding: 1px 10px;
  }

  .pagination-container label,
  .dataTables_wrapper .pagination-container .dataTables_info {
    flex: auto !important;
    font-size: 11px;
  }

  table .form-control.search-input.column-search {
    min-width: 95px;
  }
}
/***** dataTable css eend here *****/
html,
body {
  padding: 0px;
  margin: 0px;
}
/* Switch */
.custom-switch {
  position: relative;
  width: 60px;
  height: 30px;
  display: inline-block;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.switch-slider {
  position: absolute;
  inset: 0;
  background: #0b5d57;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

/* Knob */
.switch-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background: #d9d9d9;
  border-radius: 50%;
  transition: 0.3s;
}

/* Active */
.custom-switch input:checked+.switch-slider {
  background: #064e4a;
}

.custom-switch input:checked+.switch-slider::before {
  transform: translateX(30px);
  background: #ffffff;
}

/***** Aside, header start here *****/
.main-wrap {
  overflow: hidden;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  display: flex;
  background-color: var(--white);
}

.main-wrap aside {
  padding: 12px 0px 12px 12px;
  height: 100vh;
  width: 272px;
  position: fixed;
  transition: width 0.3s ease-in-out;
}

aside .sidebar-logo .logo-close {
  display: none;
}

.main-wrap aside.collapsed {
  width: 101px;
}

aside.collapsed .toggle-aside .toggle-img {
  transform: rotate(180deg);
  transition: 0.3s;

}

aside.collapsed .nav-link span,
aside.collapsed .sidebar-logo .logo-open {
  display: none;
}

aside.collapsed .sidebar-logo .logo-close {
  display: block;
}

aside.collapsed .custom-switch,
aside.collapsed #themeLabel {
  display: none;
}

aside.collapsed .dark-mode-wrap,
aside.collapsed .sidebar-logo {
  justify-content: center !important;
}

aside.collapsed .collaps-icon {
  display: flex;
  justify-content: center !important;
}

.sidebar {
  width: 100%;
  height: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #00201E, #00867E);
  position: relative;
}

.toggle-aside {
  position: absolute;
  right: -15px;
  top: 35px;
  cursor: pointer;
  background-color: var(--white);
  color: var(--black);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.10);
}

.sidebar-divider {
  border-color: #034A44;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4F7D79;
  padding: 10px 12px;
  transition: 0.3s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: #fff;
}

.aside-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
}

.aside-bg.active {
  display: block;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.logout {
  color: white;
  padding: 10px 12px;
}

.logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.form-check-input {
  cursor: pointer;
}

.main-wrap main {
  margin-left: 280px;
  padding: 24px;
  width: 100%;
  overflow-x: auto ;
  transition: margin-left 0.3s ease-in-out;
}

.main-wrap main.collapsed {
  margin-left: 101px;
}

.left-header {
  width: 100%;
}

.search-icon {
  position: relative;
  width: 100%;
}

.search-icon .form-control {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--white);
  padding-left: 40px;
  /* space for icon */
  height: 40px;
}

.search-icon img {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.dropdown.notification-dropdown {
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--border-color);
}

.dropdown.notification-dropdown .btn,
.dropdown .btn {
  border: none;
}

/* Dropdown container */
.notification-menu {
  width: 420px;
  max-height: 520px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
  margin-top: 12px !important;
  overflow-y: auto;
  background-color: var(--white);
}

.notification-header {
  margin-bottom: 24px;
}

.notification-card,
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  background: var(--white);
  transition: all 0.25s ease;
}

.notification-card.active,
.notification-card:hover,
.profile-card:hover {
  background: #F3F7F6;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #E5F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 12px 0 rgba(16, 16, 16, 0.06);
  border: 1px solid var(--border-color);
}

.notification-card.active .icon-box {
  background-color: var(--Primary-Green);
}

.notification-card.active .notification-icon-inner {
  color: var(--white);
}

.icon-box img {
  width: 20px;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-right: 10px !important;
  border: 1px solid var(--border-color);
}

.profile-dropdown {
  width: 260px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
  margin-top: 12px !important;
  background-color: var(--white);
}

header .dropdown {
  position: relative;
  z-index: 1100;
}

header #profileDropdown {
  position: relative;
  z-index: 1101;
  pointer-events: auto;
}

.notification-icon,
.profile-icon {
  color: var(--black);
}

.notification-icon-inner {
  color: var(--Primary-Green);
}

.profile-cta {
  border-radius: 12px;
  background: linear-gradient(180deg, #00867E 0%, #00201E 100%);
  padding: 12px;
  color: #B8D3CE;
  position: relative;
}

.info-img {
  position: absolute;
  top: 8px;
  right: 8px;
}
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}
.dark-theme .notification-icon-inner {
  color: var(--black) !important;
}

.dark-theme .notification-card.active,
.dark-theme .notification-card:hover,
.dark-theme .profile-card:hover {
  background: #00201E;
}

.dark-theme .icon-box {
  background-color: #0E3431;
}

.dark-theme .notification-card.active .icon-box {
  background-color: #03AB77;
}

@media (max-width: 991px) {
  .main-wrap aside {
    transform: translateX(-300px);
    transition: transform 0.3s ease;
    z-index: 9999;
  }

  .main-wrap aside.show {
    transform: translateX(0);
  }

  .main-wrap main {
    margin-left: 0 !important;
    padding: 16px !important;
  }

  .dropdown.notification-dropdown {
    padding-right: 10px;
    margin-right: 10px;
  }

  .main-content {
    padding-top: 72px !important;
  }

  .loan-container {
    display: flex;
    align-items: center !important;
  }

  .loan-row {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
  }

  .stepper-side {
    flex: 1;
    padding-right: 24px;
    overflow-y: auto;
    max-height: none !important;
  }

  .document-chart-wrap {
    gap: 12px;
  }
  .offcanvas.canvas-lg {
  --bs-offcanvas-width: 320px;
  border-radius: 10px !important;
  height: calc(100dvh - 20px);
  margin: 10px;
  background: var(--white);
}
}
/***** Aside, header end here *****/
