*{
  font-family: "DMSans", sans-serif;
}

body {
  padding-top: 50px;
  min-width: 320px;
}

#optionDropdown::after {
  display: none;
  background-color: transparent;
}
.dropdown_icon {
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0rem;
  cursor: pointer;
  font-size: 1rem;
  background-color: transparent;
}

.dropdown-menu.dropdown-menu-right {
  background-color: #343A40;
  border: none; 

}

.dropdown-menu.dropdown-menu-right .dropdown-item {
  color: #ffffff;
}

.dropdown-menu.dropdown-menu-right .dropdown-item:hover,
.dropdown-menu.dropdown-menu-right .dropdown-item:focus {
  background-color: #696E75;
  color: #ffffff;
}

.dropdown-menu .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.2);
}

.content {
  position: relative;
  padding-right: 0;
}

#deviceInfoModal, #deviceEditModal, #disconnectConfirmModal, #extendConnectionModal {
  position: absolute;
  margin: 0 ;
  overflow: hidden ;
  z-index: 1050 ;
}

.modal-dialog-centered {
  display: flex;
  align-items: flex-start;
}
.modal-content{
  background-color: #121517;
  color: #ffffff;  
}
.modal-header{
  border-bottom: none;
  color: #ffffff;
  background-color: #343A40;
}
.modal-footer {
  border-top: none;
}

.deviceInfoDetails {
  display: flex;
  flex-direction: column;
  margin: 0rem auto;
}
.deviceInfoDetails span {
  display: flex;
  align-items: center;
  margin: 0.2rem 0;
  font-size: 1rem;
  color: #ffffff;
}
.deviceInfoDetails .dispInfo-head {
  margin-right: 0.5rem;
}
.deviceInfoDetails .dispInfo-body {
  font-weight: normal;
}

.Rename_button {
  background-color: #424549;
  color: #ffffff;
  border: none; 
  border-radius: 8px; 
  padding: 0.5rem 1rem; 
  cursor: pointer;
  font-size: 1rem;
}

.Rename_button:hover {
  background-color: #696E75;
}

.extendConnectbutton {
  background-color: #424549;
  color: #ffffff;
  border: none; 
  border-radius: 8px; 
  padding: 0.5rem 1rem; 
  cursor: pointer;
  font-size: 1rem;
}
.form-group {
  display: flex;
  align-items: center;
}

.form-group .form-control {
  flex: 1;
}

.Rename_button {
  margin-left: 10px;
}

.residentDetailsHRBRGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.residentDetailsHRBRRateContainer {
  flex: 1 1 calc(50% - 1rem);
}

.deviceFullName .d-flex {
  flex-wrap: wrap;
}

.deviceFullName .btn {
  margin: 0.25rem;
}

.deviceFullName .disp-serial {
  font-size: 14px;
  flex-basis: 100%;
  text-align: right;
  margin-top: 0.5rem;
}

.deviceFullName .disp-FWversion {
  color: #D9D9D9;
  font-family: "DMSans", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  line-height: normal;
  text-align: right;
}

.deviceFullName .dispInfo-head {
  margin-left: auto;
  margin-right: 0.2rem;
}

.simplyfyReplacedText {
  display: none;
}

.tab {
  overflow: hidden;
  background-color: #171B1D;
}

.tab button {
  display: flex;
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  align-items: center;
  justify-content: center;
}

.tablinks {
  color: #ffffff;
}

.tab button:hover {
  background-color: #696E75;
  border: 1px solid #ffffff;
}

.tab button.active {
  background-color: #424549;
  border: 1px solid #424549;
}

.tabbutton {
  display: none;
  border-top: none;
}

@media (max-width: 576px) {
  .residentDetailsHRBRGrid {
    flex-direction: column;
  }

  .residentDetailsHRBRRateContainer {
    flex: 1 1 100%;
  }

  .displayFlex {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottomGrid {
    flex-direction: column;
  }

  .bottomHeadingRightBorder {
    width: 100%;
  }

  .bottomHeadingRightBorder:last-child {
    border-bottom: none;
  }

  .simplyfyText-576 {
    display: none;
  }
}

@media (max-width: 768px) {

  .presenceStatus {
    font-size: 24px;
  }

}

@media (max-width: 450px) {
  .presenceStatus {
    font-size: 1.25rem;
  }

  .simplyfyReplacedText {
    display: flex;
  }

  .residentDetailsHRBRGrid .bottomSubScore  {
    font-size: 30px;
  }
}

@media (max-width: 540px) {
  .deviceFullName .dispInfo-head {
    display: none;
  }

  .deviceFullName .dispInfo-body {
    margin-left: auto;
  }
}

@media (max-height: 800px) {
  .simplyfyText-576 {
    display: none;
  }

  #topNavbar {
    display: none;
  }
  body {
    padding-top: 0;
  }
}

#myModal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(110, 110, 110, 0.5);
}

#myModal.show {
  display: block;
}

#modalContent {
  font-family: "DMSans", sans-serif;
  margin: 40vh auto;
  padding: 20px;
  width: 400px;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  color: #ffffff;
  background-color: rgba(0, 0, 0, 1);
}

#barContainer {
  width: 100%;
  height: 5px;
  overflow: hidden;
}

#movementBar {
  width: 0;
  height: 100%;
  transition: width 0.3s ease;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid rgb(71, 70, 70);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Utility classes extracted from inline styles (CSP-safe) */
.bg-panel { background-color: #121517; }
.pad-h-12 { padding-left: 12px; padding-right: 12px; }
.pad-12-24 { padding: 12px 24px; }
.pl-12 { padding-left: 12px; }
.pr-12 { padding-right: 12px; }
.pb-10 { padding-bottom: 10px; }
.pb-20 { padding-bottom: 20px; }
.h-300 { height: 300px; }
.hidden { display: none; }
.text-hr { color: rgb(151, 40, 40); }
.text-br { color: rgb(153, 120, 34); }
.text-info-muted { font-size: 12px; color: rgb(204, 211, 218); }
.pad-16-12 { padding: 16px 12px; }
.tab-size { width: 33.3%; height: 40px; }
