html {
  width: 100%;
}

body {
  overflow-x: hidden !important;
}

body.show-spinner > main {
  overflow: hidden !important;
}

/* Hide everything under body tag */
body.show-spinner > * {
  opacity: 0;
}
.menu-button svg rect,
.menu-button-mobile svg rect {
  transition: all 0.3s ease;
}

.menu-button:hover svg rect:nth-child(1),
.menu-button-mobile:hover svg rect:nth-child(1) {
  transform: translateX(3px);
}

.menu-button:hover svg rect:nth-child(2),
.menu-button-mobile:hover svg rect:nth-child(2) {
  transform: translateX(-3px);
}
.dropdown-toggle {
  cursor: pointer;
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #ccc;
}

.dropdown-menu {
  position: absolute;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  z-index: 10;
  min-width: 120px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 8px 12px;
  display: block;
  color: #333;
  text-decoration: none;
}

.dropdown-item:hover {
  background: #f8f8f8;
}

.menu-button:hover,
.menu-button-mobile:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

/* Spinner */
body.show-spinner::after {
  content: " ";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: rgba(0, 0, 0, 0.3);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  position: fixed;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* Extras */

.font-weight-600-bold {
  font-weight: 600 !important;
}

.link-focus {
  color: #00549a;
  text-decoration: underline;
}

.custom-back-icon {
  position: absolute;
  top: 30px;
  left: 40px;
}

.custom-back-icon:hover {
  cursor: pointer;
}

.custom-back-icon:hover path {
  fill: #1d98ff;
  transition-duration: 0.6s;
}

.menu .main-menu ul li.active a svg path {
  fill: #00549a;
}

.menu .sub-menu ul li a svg {
  margin-right: 8px;
}

button.btn-primary a {
  color: white;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #00549a;
  cursor: default;
}

.finish-btn.btn-primary:disabled {
  background-color: #184f90;
  border-color: #184f90;
  color: #fff;
  cursor: default;
  opacity: 0.6;
}

.btn-outline-primary.disabled:hover {
  border-color: #00549a;
  color: #00549a;
  background-color: white;
}

.h-unset {
  min-height: unset !important;
  height: unset !important;
}

.pre-button-icon {
  vertical-align: text-bottom;
  margin-right: 7px;
}

button.demo-modal-opener.btn.demo-modal-opener {
  padding: 0;
  color: #00549a;
  font-weight: 500;
  text-decoration: underline;
}

h5#demoModalLabel {
  font-size: 26px;
  font-weight: 500;
}

.btn-cancel {
  background-color: #b7b7b7;
  border-color: #b7b7b7;
  color: #fff;
}

nav.navbar {
  z-index: 9;
}

.btn-cancel:hover {
  background-color: #7e7e7e;
  border-color: #7e7e7e;
}

.input-daterange .input-group-addon {
  min-width: 24px;
}

.btn-primary.dropdown-toggle {
  background-color: #00549a !important;
  border-color: #00549a !important;
}

p.lead.text-center {
  color: #00549a;
}

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

.custom-radio label.custom-control-label {
  margin-top: -3px;
}

span.input-required {
  color: #dd112d;
}

/* full screen modal */

.full-screen-modal {
  padding: 0 20px;
}

.full-screen-modal .modal-dialog {
  width: 100%;
  max-width: 100%;
  margin: 60px 0;
}

.card-header-tabs a.nav-link {
  font-weight: bold;
}

.card-header-tabs .nav-link:not(.active) {
  color: #405060;
}

button.language-switcher {
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 600;
}

.infoHoverBtn .infoContent {
  display: none;
  left: 100%;
  font-size: 14px;
  width: 150px;
  bottom: 100%;
  background-color: #dfdfdf;
  padding: 4px;
}

.infoHoverBtn:hover .infoContent {
  display: block;
}

.dropzone .dz-preview .dz-image {
  height: 100%;
}

.dropzone .dz-preview .dz-image img {
  height: 100%;
  object-fit: contain;
}

.logo,
.logo-single {
  background-size: contain;
}

.merchantStaffRepeater .repeater-item:last-child .delete-btn {
  display: none;
}

.dropzone .dz-preview.dz-image-preview .dz-details {
  position: absolute;
  padding: 0px;
  top: 8px;
  left: 100px;
}

.dropzone .dz-preview .dz-image {
  border-radius: unset;
}

.dropzone .dz-preview .dz-details .dz-size {
  margin-bottom: 2px;
}

input.form-control:disabled,
.input-group-prepend.input-group-prepend-disabled span {
  background: #cccccc !important;
  color: #727272 !important;
}

.long-text {
  max-width: 35vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partyNb {
  color: #00549a;
  font-weight: 700;
}

.variables {
  color: #00549a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.popup-message {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 5%;
  background-color: #addaff;
  color: #00549a;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  font-weight: 700;
  font-size: 14px;
}

.dz-progress {
  display: none;
}

/* Style for the remove link */
.dropzone .dz-remove {
  color: red;
  /* Make the text red */
}

textarea.form-control {
  line-height: 2;
}

.select-2-disabled
  span.select2-selection.select2-selection--single.form-control {
  background: #e8ecef;
}

canvas.signature-pad {
  border: 1px solid #ccc;
  position: relative;
}

button.clear-signature {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #dd112d;
  border: 0;
  width: 35px;
  height: 36px;
}

.vertical-line {
  width: 2px;
  height: 60px;
  background-color: #3a3a3a;
}

.cell p.text-center {
  color: #6b6b6b;
}

.select2-container--disabled
  span.select2-selection.select2-selection--single.form-control {
  background: #e8ecef;
}

.m-0.pre-button-icon svg {
  width: 12px;
}

input.form-control:disabled {
  background: #e8ecef !important;
}

.text-primary {
  color: #00549a;
}

#calculatorModal .calculator-repeater .repeater-item:last-child .delete-btn {
  display: none;
}

.custom-control-label:has(.custom-control-input:checked)::before {
  background-color: #00549a !important;
  box-shadow: initial !important;
}

.custom-control-label:has(.custom-control-input:checked)::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

#calculatorSummariesDisplay .summaries .fees-charge-section {
  border-right: solid 1px #d7d7d7;
  width: 32%;
  padding-right: 1.33%;
}

#calculatorSummariesDisplay .summaries .fees-charge-section:last-child {
  border-right: none;
  padding-right: 0;
}

div#calculatorsDisplay .modal-body,
div#addLeadNotes .modal-body,
div#termsAndConditionsModal .modal-body,
div#calculatorSummariesDisplay .modal-body {
  max-height: 80vh;
  overflow-y: scroll;
}

div#clientNotExists .modal-body {
  max-height: 70vh;
  overflow-y: scroll;
}

ul.dtr-details {
  display: flex !important;
  flex-wrap: wrap;
  gap: 15px 45px;
}

ul.dtr-details li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

a.btn.pt-0.pl-0.d-inline-block.d-md-none {
  display: none !important;
}

div#displayOptions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .top-right-button-container .group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    margin: 10px 0 20px 0;
  }

  button.btn.btn-primary.btn-lg.mr-2,
  button.btn.btn-outline-primary.btn-lg.dropdown-toggle {
    width: 100% !important;
  }

  div#displayOptions {
    gap: 20px;
    flex-direction: column;
    justify-content: unset;
  }

  a.btn.btn-primary.btn-lg.mr-2 {
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  .sw-main.sw-theme-check > ul.step-anchor > li > a:before,
  .sw-main.sw-theme-dots > ul.step-anchor > li > a:before {
    left: 83%;
    margin: 0;
  }

  .sw-main.sw-theme-check > ul.step-anchor > li > a:after,
  .sw-main.sw-theme-dots > ul.step-anchor > li > a:after {
    left: 91%;
    margin: 0;
  }

  .sw-theme-check > ul.step-anchor > li > a:after {
    top: -39px;
  }

  .sw-theme-check > ul.step-anchor > li > a:before {
    top: 10px;
  }
}

@media (max-width: 1100px) {
  a#first-tab_,
  a#second-tab_ {
    width: fit-content;
  }

  ul.nav.nav-tabs.card-header-tabs.mb-3.ml-0.mr-0 {
    gap: 45px;
  }
}

@media (max-width: 400px) {
  a.navbar-logo {
    width: 20%;
  }
}

a#scanId {
  color: #00549a;
}

.glyph-icon {
  font-size: 30px;
}

@media only screen and (max-width: 865px) and (min-width: 768px) {
  .navbar .navbar-left {
    flex-basis: 38%;
  }
}

.id-tittle {
  color: #184f90;
  font-weight: 700;
  font-size: 18px;
}

.btn-multiple-state.btn-primary:disabled {
  background: #00549a;
  border-color: transparent;
}

.btn-multiple-state.show-spinner.btn-primary:disabled span {
  visibility: hidden;
}

.separator-with-text {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator-with-text::before,
.separator-with-text::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #d7d7d7;
}

.separator-with-text:not(:empty)::before {
  margin-right: 0.75em;
}

.separator-with-text:not(:empty)::after {
  margin-left: 0.75em;
}

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

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

button.show-spinner.active {
  display: inline-block !important;
}

.country-list .preferred,
.country-list .divider {
  display: none;
}

.intl-tel-input.allow-dropdown {
  width: 100%;
}

span.input-group-text.cursor-pointer.togglePassword {
  position: absolute;
  right: 0;
  height: 100%;
  border: 0;
  z-index: 9999;
  cursor: pointer;
  top: 0;
}

.disabled-select-2-container
  .select2-container--bootstrap
  .select2-selection.form-control {
  border: none;
}

.disabled-select-2-container
  .select2-container--bootstrap
  .select2-selection--multiple
  .select2-selection__choice:first-child {
  margin-left: 0;
}

.iti.iti--allow-dropdown {
  width: 100%;
}

input[type="date"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

@media screen and (max-width: 768px) {
  .sw-theme-check > ul.step-anchor > li {
    margin-left: 10px;
  }
}

span.dtr-data {
  white-space: break-spaces;
}

@media screen and (max-width: 991px) {
  #calculatorModal button.close {
    position: absolute;
    top: 35px;
    right: 30px;
  }

  button#deleteCalculatorButton {
    width: 100%;
    margin-top: 12px;
  }

  button#addCalculatorButton {
    margin-top: 12px;
    width: 100%;
  }

  #buttons-container {
    width: 100%;
  }

  #calculatorModal .col-lg-4 {
    border-left: none !important;
  }

  #calculatorModal .modal-title {
    margin-right: 40px;
  }

  .mb-3-mobile {
    margin-bottom: 1rem;
  }
}

.btn-outline-primary:disabled {
  background: unset;
}

.select-2-disabled
  span.select2-selection.select2-selection--single.form-control {
  background: #e8ecef;
}


   .date-range-container {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     width: 100%;

     @media (max-width: 767.98px) {
       flex-direction: column;
       gap: 0.5rem;
     }
   }

.date-input-wrapper {
  position: relative;
  flex: 1;

  .date-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 2;
  }

  .date-input {
    padding-left: 40px;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);

    &:focus {
      border-color: #00549A;
      box-shadow: 0 0 0 3px rgba(0, 84, 154, 0.15);
    }
  }
}

.date-separator {
  color: #6c757d;
  font-size: 0.9rem;

  @media (max-width: 767.98px) {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
}

/* Compact Date Range Picker */
.date-range-compact {
  .date-input-group {
    width: auto;
    flex: 1 1 auto;

    .input-group-text {
      border-right: none;
      border-radius: 6px 0 0 6px !important;
      padding: 0.575rem 0.75rem;
    }

    .form-control {
      border-left: none;
      border-radius: 0 6px 6px 0 !important;
      min-width: 120px;
      transition: all 0.3s ease;

      &:focus {
        box-shadow: none;
        border-color: #ced4da;
      }
    }
  }

  @media (max-width: 767.98px) {
    flex-wrap: wrap;

    .date-input-group {
      flex: 1 1 100%;
      margin-bottom: 0.5rem;

      &:last-child {
        margin-bottom: 0;
      }
    }

    span.mx-2 {
      display: none;
    }
  }
}
