.main-color-icon {
  color: var(--main-color);
}

.secondary-color-icon {
  color: var(--secondary-color);
}

.main-color-button {
  background-color: var(--main-color) !important;
  color: #fff !important;
}

.secondary-color-button {
  background-color: var(--secondary-color);
  color: #fff;
}

.searchTableInput {
  border: 1px solid #dee2e6;
  width: 100%;
  padding: 0px !important;
}

.card-border {
  border: 1px solid #4F8CCA;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

html .btn-primary:hover,
html .btn-primary.hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
}

.swal2-actions {
  gap: 50px;
}

.swal2-confirm {
  width: 150px;
}

.swal2-cancel {
  width: 150px;
  border: 2px solid var(--red-color);
}

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

.swal2-html-container {
  font-size: 12px !important;
}

.tree-wrapper {
  background-color: var(--main-icon-color-trans);
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}

.tree-level-one {
  margin-left: 45px;
  position: relative;
}

.tree-level-one::before {
  margin-bottom: 62px;
  margin-top: 2px;
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #fff;
}

.tree-level-one::before {
  margin-bottom: 62px;
  margin-top: 2px;
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #fff;
}

.last-floor-opened::before {
  margin-bottom: 108px !important;
}


.tree-level-two::before {
  margin-bottom: 62px;
  margin-top: -10px;
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #fff;
}

.tree-level-two {
  margin-left: 45px;
  position: relative;
}



.tree-item {
  margin: 5px 0px 0px 0px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.tree-item-name-level-two {
  padding-left: 30px !important;
}

.tree-item::before {
  /* content: ''; */
  position: absolute;
  left: -15px;
  top: 50%;
  width: 15px;
  height: 1px;
  background-color: #555;
}

.tree-toggle {
  cursor: pointer;
  user-select: none;
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -15px;
  margin-right: 3px;
  background-color: var(--main-icon-color-trans);
  z-index: 1;
}

.tree-toggle-level-two {
  /* margin-left: -5px; */
}

.tree-toggle-level-first {
  margin-left: -10px;
}

.tree-toggle svg {
  transition: transform 0.3s;
  width: 10px;
  height: 5px;
}

.tree-toggle.collapsed svg {
  transform: rotate(180deg);
}

.tree-item-name {
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 4px 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  min-width: 100px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.tree-item-name:not([disabled]):focus,
.tree-item-name:not([disabled]):hover {
  border-color: #4F8CCA;
  background-color: rgba(79, 140, 202, 0.1);
}

.tree-children {
  transition: max-height 0.3s ease-out;
}

.tree-children.collapsed {
  display: none;
}

.tree-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
}

.tree-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.tree-action-btn:hover {
  opacity: 0.7;
}

.tree-action-btn svg {
  width: 14px;
  height: 14px;
}

.tree-action-btn.edit-btn svg path {
  stroke: #fff;
}

.tree-action-btn.delete-btn svg path {
  stroke: #FF5656;
}

.tree-action-btn.save-btn {
  display: none;
}

.tree-action-btn.save-btn.visible {
  display: flex;
}

.tree-action-btn.edit-btn.hidden {
  display: none;
}

.add-item-btn {
  background-color: #4F8CCA;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  margin: 8px 0px 8px 45px;
  min-width: 200px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  transition: opacity 0.3s;
}

.add-item-btn:focus {
  background-color: var(--main-icon-color-trans);
  outline: none;
  box-shadow: 0 0 0 2px rgba(79, 140, 202, 0.5);
}

.add-item-btn:hover {
  opacity: 0.85;
}

.add-floor-btn-no-floors {
  margin-left: 18px;
}

.add-floor-btn-no-rooms {
  margin-left: 0px !important;
}

.icon {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  color: #777777;
  fill: #777777;
}

.icon:hover {
  cursor: pointer;
  fill: var(--main-icon-color-trans);
}

.icon-active {
  /* fill: var(--main-icon-color-trans); */
}

/* .icon-inactive {
  fill: #777777;
} */

.nav-active a span {
  color: var(--main-icon-color-trans) !important;
}

.nav-active {
  background: #0088cc0d !important;
  border-left: 5px solid var(--main-color) !important;
  color: var(--main-color) !important;
}

.nav-link svg :hover {
  fill: var(--main-color);
}

.text-s {
  font-size: 11px;
}

.text-ms {
  font-size: 12px;
}

.text-m {
  font-size: 13px;
}

.text-l {
  font-size: 15px;
}

.text-xl {
  font-size: 17px;
}

.text-xxl {
  font-size: 30px;
}

/* Medium screens (md) */
@media (max-width: 1700.98px) {
  .text-s {
    font-size: 10px;
  }

  .text-ms {
    font-size: 11px;
  }

  .text-m {
    font-size: 12px;
  }

  .text-l {
    font-size: 14px;
  }

  .text-xl {
    font-size: 16px;
  }

  .text-xxl {
    font-size: 18px;
  }
}

@media (max-width: 1400.98px) {
  .text-s {
    font-size: 9px;
  }

  .text-ms {
    font-size: 10px;
  }

  .text-m {
    font-size: 11px;
  }

  .text-l {
    font-size: 12px;
  }

  .text-xl {
    font-size: 14px;
  }

  .text-xxl {
    font-size: 16px;
  }
}

@media (max-width: 1100.98px) {
  .text-s {
    font-size: 8px;
  }

  .text-ms {
    font-size: 9px;
  }

  .text-m {
    font-size: 10px;
  }

  .text-l {
    font-size: 11px;
  }

  .text-xl {
    font-size: 13px;
  }

  .text-xxl {
    font-size: 14px;
  }
}

.tank_card {
  cursor: pointer;
}

.tank_card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tank_card {
  border-radius: 10px;
  overflow: hidden;
  height: 210px;
}

.tank-header {
  background-color: var(--secondary-color);
  padding: 0px;
}

.row_barell {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Small screens (sm) */
/* @media (max-width: 900.98px) {
  .text-s { font-size: 9px; }
  .text-ms { font-size: 10px; }
  .text-m { font-size: 11px; }
  .text-l { font-size: 13px; }
  .text-xl { font-size: 15px; }
  .text-xxl { font-size: 20px; }
} */

.red-btn {
  border: 2px solid #aa5454;
  background-color: rgba(170, 84, 84, 0.25);
  border-radius: 6px;
}

.orange-btn {
  border: 2px solid #bc8737;
  background-color: rgba(188, 135, 55, 0.25);
  border-radius: 6px;
}

.green-btn {
  border: 2px solid #54aa64;
  background-color: rgba(84, 170, 100, 0.25);
  border-radius: 6px;
}

.all-condition-btn {
  background: var(--main-color);
  color: #fff;
}

.all-condition-btn-clicked {
  background: var(--secondary-color);
  color: #fff;
}

.red-btn-clicked {
  background: #aa5454;
  color: #fff;
}

.orange-btn-clicked {
  background: #bc8737;
  color: #fff;
}

.green-btn-clicked {
  background: #54aa64;
  color: #fff;
}

.red-btn:hover {
  background: #aa5454;
  color: #fff;
}

.orange-btn:hover {
  background: #bc8737;
  color: #fff;
}

.green-btn:hover {
  background: #54aa64;
  color: #fff;
}

.red-btn-clicked:hover {
  color: #fff;
}

.orange-btn-clicked:hover {
  color: #fff;
}

.green-btn-clicked:hover {
  color: #fff;
}

.filter-type-btn-clicked {
  background: var(--secondary-color);
  color: #fff;
}

.filter-type-btn {
  background: var(--main-color);
  color: #fff;
}

.input-group-text {
  background-color: var(--secondary-color);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  border-radius: 4px;
  margin-right: 2px;
  opacity: 0.6;
  filter: invert(1);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

select {
  cursor: pointer;
}

.btn-date {
  border-radius: 5px;
  font-size: 9px;
  width: 30px;
  height: 25px;
  padding: 0px;
  color: #fff;
  background-color: var(--secondary-color);
}

.btn-date:hover,
.btn-date:active {
  background-color: var(--main-color) !important;
  color: #fff;
}

.btn-date-reports {
  border-radius: 5px;
  font-size: 9px;
  width: 35px;
  height: 30px;
  padding: 0px;
  color: #fff;
  background-color: var(--secondary-color);
}

.btn-date-reports:hover,
.btn-date-reports:active,
.btn-date-reports.active {
  background-color: var(--main-color) !important;
  color: #fff;
}

.btn:focus {
  color: #fff;
  box-shadow: 0 0 0 0.1rem rgba(34, 65, 241, 0.25);
}

.btn-clicked {
  border: #777777 1px solid !important;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1) !important;
}

.sorting:after {
  font-size: 18px !important;
  position: absolute !important;
  bottom: -0.1em !important;
  display: block !important;
  opacity: 0.5 !important;
}

.sorting:before {
  font-size: 18px !important;
  position: absolute !important;
  bottom: -0.1em !important;
  display: block !important;
  opacity: 0.5 !important;
}

.sorting_desc:after {
  font-size: 18px !important;
  position: absolute !important;
  bottom: 0.1em !important;
  display: block !important;
  opacity: 0.5 !important;
}

.sorting_desc:before {
  font-size: 18px !important;
  position: absolute !important;
  bottom: 0.1em !important;
  display: block !important;
  opacity: 0.5 !important;
}

.sorting_asc:after {
  font-size: 18px !important;
  position: absolute !important;
  bottom: 0.1em !important;
  display: block !important;
  opacity: 0.5 !important;
}

.sorting_asc:before {
  font-size: 18px !important;
  position: absolute !important;
  bottom: 0.1em !important;
  display: block !important;
  opacity: 0.5 !important;
}

.sorting th {
  padding: 0px 10px !important;
}

/* Selected date */
.datepicker {
  cursor: pointer;
}

.datepicker td.active,
.datepicker td.active:hover {
  background-color: var(--main-color) !important;
  color: white !important;
}

.select2-container {
  margin-right: 10px !important;
}

.select2-container--default .select2-selection--single {
  background-color: var(--main-color) !important;
  color: #fff !important;
  border: 1px solid var(--main-color) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  color: #fff !important;
}

.select2-dropdown {
  background-color: var(--main-color) !important;
  color: #fff !important;
}

.select2-results__option--highlighted {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

.select2-results__option--selected {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
}

.select2-selection__rendered {
  line-height: 31px !important;
}

.select2-container .select2-selection--single {
  height: 35px !important;
}

.select2-selection__arrow {
  height: 34px !important;
}

.select2-selection__arrow b {
  border-color: #fff transparent transparent transparent !important;
}

.datepicker td:hover {
  background-color: var(--main-color-trans) !important;
  color: #000 !important;
}

.datepicker td.today {
  background-color: var(--main-color-trans) !important;
  color: #000 !important;
}

.dataTables_processing {
  background-color: var(--main-color) !important;
  /* Set the background color */
  color: #fff !important;
  /* Ensure the text color is white for contrast */
  font-weight: bold;
  padding: 10px;
  /* Optional: Add padding for better appearance */
  border-radius: 4px;
  /* Optional: Add rounded corners */
}

ul.pagination .page-item .page-link {
  color: #fff !important;
  border: 1px solid var(--main-icon-color-dark) !important;
  background: var(--main-icon-color-dark) !important;
  margin: 0 2px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

ul.pagination .page-item.active .page-link,
ul.pagination .page-item .page-link:focus,
ul.pagination .page-item.active .page-link,
ul.pagination .paginate_button.page-item.active .page-link,
ul.pagination .page-item .page-link:hover {
  background: var(--main-color) !important;
  color: #fff !important;
  border-color: var(--main-color) !important;
}

ul.pagination .page-item.disabled .page-link {
  color: #ccc;
  background: var(--main-icon-color-trans) !important;
  border-color: #dee2e6;
  cursor: not-allowed;
}

path.leaflet-marker-icon {
  stroke: #e28526 !important;
}

/* Additional selectors to ensure override */
.marker-cluster-spider-leg,
.leaflet-marker-icon path,
svg path.leaflet-interactive {
  stroke: #e28526 !important;
}

.alert-info {
  color: var(--main-color-trans);
  background-color: var(--main-color);
  border-color: #bee5eb;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 23px;
  width: 23px;
  left: 1px;
  bottom: 1px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.btn-add {
  background-color: #4F8CCA;
  color: #fff;
  border-radius: 10px;
}

.btn-cancel {
  background-color: #343434;
  color: #fff;
  border-radius: 10px;
}

input:checked+.slider {
  background-color: var(--secondary-color);
}

input:focus+.slider {
  box-shadow: 0 0 1px var(--secondary-color);
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

@media screen and (max-width: 1500px) {
  .tank-card {
    height: auto;
  }
}

@media screen and (min-width: 1501px) {
  .tank-card {
    height: 496px;
    transition: height 0.25s ease;
  }

  .tank-card.expanded {
    height: 496px;
  }

  .tank-card.collapsed {
    height: 248px;
  }
}

/* Stack group is a container for 2 collapsed cards */
.stack-group {
  display: flex;
  flex-direction: column;
  /* height: 496px; */
  gap: 5px;
  width: 100%;
}

.stack-group .tank-card {
  height: 100% !important;
  margin-bottom: 0 !important;
  width: 100%;
  flex: 1;
}

.startDates,
.endDates {
  cursor: pointer;
  width: 73px;
  height: 25px;
  font-size: 11px;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center !important;
}

.startDatesReports,
.endDatesReports {
  cursor: pointer;
  width: 83px;
  height: 30px;
  font-size: 11px;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 5px;
  text-align: center !important;
}