/* ================================================
   NAVARCHOS UTILITIES & HELPERS
   Font Awesome fixes, animations, responsive utilities
   ================================================ */

/* ===== FONT AWESOME 6 FIX (CADViewer conflict) ===== */
.fa,
.fa-solid,
.fa-regular {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-solid,
.fa {
  font-weight: 900 !important;
} /* solid */

.fa-regular {
  font-weight: 400 !important;
} /* regular */

.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* Font Awesome 6 – ensure icons render */
.fa,
.fa-solid,
.fa-regular,
.fal,
.fa-brands {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900;
}

.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}

/* ===== GPS RING ANIMATION ===== */
.gps_ring {
  border: 3px solid green;
  border-radius: 60px;
  -webkit-border-radius: 60px;
  height: 18px;
  width: 18px;
  margin-top: 30px;
  margin-left: 10px;
  animation: pulsate 1s ease-out;
  -webkit-animation: pulsate 1s ease-out;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}

@keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1, 0.1);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(1.2, 1.2);
    opacity: 0;
  }
}

@-webkit-keyframes pulsate {
  0% {
    -webkit-transform: scale(0.1, 0.1);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(1.2, 1.2);
    opacity: 0;
  }
}

/* ===== DATE RANGE PICKER CUSTOM STYLES ===== */
.dateCustomRangePicker {
  width: 100%;
  height: 52px;
  margin-top: 1px;
  border-radius: 5px;
  border-color: #e1e1ef;
  border-width: 1px;
}

.md-drppicker {
  width: 600px !important;
  z-index: 9999 !important;
}

.md-drppicker .ranges ul li button.active {
  background-color: #145f9b !important;
  color: #fff;
}

.md-drppicker .btn,
.md-drppicker .btn:focus,
.md-drppicker .btn:hover {
  background-color: #145f9b !important;
}

.md-drppicker td.active,
.md-drppicker td.active:hover {
  background-color: #145f9b !important;
  border-color: transparent;
  color: #fff;
}

.md-drppicker .clear svg {
  color: #ef5d5d !important;
  fill: currentColor;
}

/* ===== RECAPTCHA VISIBILITY ===== */
.grecaptcha-badge {
  visibility: hidden;
}

/* ===== INPUT COLOR OVERRIDES ===== */
.mat-input-element {
  color: #000;
}

input {
  color: black !important;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */

/* Medium devices (tablets, 992px and down) */
@media (max-width: 992px) {
  .header-organization-selector .mat-form-field-flex {
    margin-left: -8px !important;
    padding-top: 4px !important;
  }

  .mat-form-field-appearance-outline .mat-form-field-flex {
    padding: 0 0.75em 0 0.75em;
    margin-top: -1.1em !important;
    position: relative;
  }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
  .md-drppicker {
    width: auto !important;
  }

  .kt-aside {
    z-index: 1000 !important;
  }

  .md-icon-hidden {
    display: none !important;
  }

  .nav-google-chart {
    display: none !important;
  }

  google-chart.nav-google-chart {
    display: none;
  }

  #history-map {
    flex-grow: 1;
    flex-shrink: 1;
    position: absolute;
    top: 39px;
    bottom: 0px;
    left: 290px;
    right: 0px;
    outline: none;
  }

  #history-events {
    flex-grow: 1;
    top: 44px;
    right: 0px;
    width: 265px;
    bottom: 0px;
    position: absolute;
    z-index: 1002;
    display: none;
  }

  .search-combo .mat-form-field-wrapper {
    margin: 7px 19px 0px 10px !important;
  }

  .search-input .mat-form-field-wrapper {
    margin: 7px 10px 6px 21px !important;
  }

  .search-input .mat-form-field-outline-start {
    border-top-left-radius: 5px !important;
    border-bottom-left-radius: 5px !important;
  }

  .search-combo .mat-form-field-outline-end {
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
  }

  .header-organization-selector .mat-form-field-flex {
    margin-left: 20px !important;
    padding-top: 4px !important;
  }

  .header-organization-selector .mat-form-field-flex {
    margin-left: 15px !important;
    padding-top: 4px !important;
  }

  .mat-form-field-appearance-outline .mat-form-field-flex {
    padding: 0 0.75em 0 0.75em;
    margin-top: 0px !important;
    position: relative;
  }

  .nav-tabs .mat-mdc-tab-header {
    top: 65px !important;
  }

  li.header-organization-selector.nav-menu__item.nav-menu__item--rel.nav-menu__item--submenu.ng-star-inserted.organization-header-responsive {
    width: 90% !important;
  }

  .mat-expansion-panel:not(.mat-expanded):not([aria-disabled="true"])
    .mat-expansion-panel-header:hover {
    background: none !important;
  }
}

/* Tablets (1024px and down) */
@media (max-width: 1024px) {
  .nav-tabs .mat-mdc-tab-header {
    top: 130px;
  }

  .asset .col-8 {
    padding-right: 0px;
  }
}

/* Desktop small (1220px and down) */
@media (max-width: 1220px) {
  .kt-aside {
    z-index: 1000 !important;
  }

  #history-map {
    flex-grow: 1;
    flex-shrink: 1;
    position: absolute;
    top: 55;
    bottom: 0px;
    left: 0px;
    right: 0px;
    outline: none;
  }

  .nav-sticky-toolbar-left {
    display: flex;
  }

  .header-organization-selector .mat-form-field-flex {
    margin-left: -8px;
    padding-top: 4px;
  }

  .asset .col-4 {
    padding-right: 0px;
  }
}
