.writePointIcon {
  background: url("icons/icon-write.svg") no-repeat !important;
  width: 20px;
  height: 20px;
}

.readPointIcon {
  background: url("icons/icon-read.svg") no-repeat !important;
  width: 20px;
  height: 20px;
}

/* Read node styles */

.refreshReadListButton {
  border: none;
  border-radius: 40px;
  height: 35px;
  width: 35px;
  & i {
    color: #6c757d !important;
  }
}

.p-treenode-label {
  color: black;
  width: 100%;
}
.p-tree {
  background: inherit !important;
  border: inherit !important;
  padding-right: 0px !important;
}
.p-button {
  margin-right: 0.5rem;
}
.addPointButton {
  float: right;
}
.minusPointButton {
  float: right;
}
.addPointButton:hover,
.minusPointButton:hover {
  background: #d5d5d5 !important;
}
.pointLabel {
  font-weight: 400;
  text-wrap: pretty;
  display: inline-block;
  max-width: 85%;
}
.deviceLabel {
  color: #1F2731;
  font-weight: 400;
  text-wrap: pretty;
}
.deviceLabelSpan {
  vertical-align: bottom;
}
.removeAllButton {
  float: right;
  i, a {
    color: #D6767C !important;
  }
}
.addAllButton {
  float: right;
  height: 25px;
  width: 25px;
  i {
    left: -2px;
    position: relative;
  }
}
.bacnetbutton {
  background: none;
  border: none;
  color: black;
  font-weight: 400;
  top: -2px !important;
}
.bacnetbutton:hover {
  background: #f0f0f0;
  border-radius: 10px;
}
.allFunctionsText {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol" !important;
  padding-left: 5px;
}
.p-treenode-children > li > .p-treenode-children > li {
  font-size: 14px;
  color: #b5b5b5 !important;
}
.p-treenode-children > li > .p-treenode-children > .p-treenode-label {
  color: #b5b5b5 !important;
}
.p-tree-toggler:enabled:hover {
  background: #d5d5d5 !important;
}
.p-tree-toggler:focus {
  border: none !important;
  box-shadow: none !important;
}
.deviceStatus {
  font-size: 10px;
}
.statusOnline {
  color: #11c511;
}
.statusOffline {
  color: red;
}
.readDeviceList {
  .deviceLabel {
    position: absolute;
  }
  .p-tree-wrapper {
    background-color: #FAFAFA;
    border: 1px solid #D4D4D4;
    border-radius: 10px;
    padding: 10px;
  }
  .p-tree-toggler-icon {
    color: #62ABE9;
  }
  .p-treenode-icon, .pointLabel {
    color: #1F2731;
  }
}

.networkTreeContent, .read-writeList-tab {
  .p-tree-wrapper {
    background-color: #FAFAFA;
    border: 1px solid #D4D4D4;
    border-radius: 10px;
    padding: 10px;
  }
  .p-tree-toggler-icon {
    color: #62ABE9;
  }
  .p-treenode-icon, .pointLabel {
    color: #1F2731;
  }
}

.read-readList-tab {
  .deviceLabel {
    position: absolute;
    color: #0689BC !important;
  }
  .p-tree-wrapper {
    background-color: #FAFAFA;
    border: 1px solid #D4D4D4;
    border-radius: 10px;
    padding: 10px;
  }
  .p-tree-toggler-icon {
    color: #62ABE9;
  }
}

.objectPropertiesLabel {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {
  outline: 0 none !important;
  outline-offset: 0 !important;
  box-shadow: inset 0 0 0 1px #bdbdbd !important;
}
.checkbox-round {
  width: 13px !important;
  height: 13px !important;
  background-color: white;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid #ddd;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.checkbox-round:checked {
  background-color: #00aeef;
}
.checkbox-round:focus {
  outline: none !important;
}
.p-tree-filter:focus,
.p-tree-filter:focus-visible,
.p-inputtext:enabled:hover {
  box-shadow: inset 0 0 0 0.15rem #dfdcdc !important;
  border-color: transparent !important;
}
.p-tree-container {
  margin: 0 !important;
}
.reloadButtonIcon {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol" !important;
}
.exportReadListButton {
  border: none;
  background: none;
  font-size: 14px !important;
  float: left;
  display: flex;
  align-items: center;
}
.exportReadListButton:hover {
  background-color: #d5d5d5;
  border-radius: 5px;
}
.removeAllDevicesButton {
  border: none;
  background: none;
  font-size: 14px !important;
  float: right;
  display: flex;
  align-items: center;
  padding: 5px;
  font-weight: bold;
  margin-left: 95px !important;
}
.removeAllDevicesButton:hover {
  background-color: #d5d5d5;
  border-radius: 10px;
}
.reloadButton {
  border: none;
  background: none;
  font-size: 14px !important;
  float: right;
}
.rebuildDataButton {
  border: none;
  background: none;
  font-size: 14px !important;
  float: right;
}
.reloadButton:hover {
  background-color: #d5d5d5;
  border-radius: 10px;
}
.rebuildDataButton:hover {
  background-color: #d5d5d5;
  border-radius: 10px;
}
.headerDiv {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  height: 20px;
  min-width: max-content;
}
.msgTypeDiv {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.p-progressbar .p-progressbar-value {
  background: #00aeef !important;
}
.p-treenode-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bp-readNode-progressbar {
  height: 20px !important;
}
.bp-networktree-tab {
  /* min-width: 590px; */
}
#read-readList-tab {
  display: flex;
  flex-direction: column;
}
.removeAllDevicesDiv {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  padding-right: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.bp-read-list-refresh-button {
  margin-left: 10px !important;
  span {
    padding-left: 5px;
  }
}
.p-tree .p-treenode-children {
  padding: 0 !important;
}
.p-tree-toggler .p-link {
  width: 25px !important;
}
.dot {
  height: 13px;
  width: 13px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}
.dotOnline {
  background-color: #63B686;
}
.dotOffline {
  background-color: red;
}
.mstpDeviceCount {
  margin-left: 10px;
  background-color: #00aeef;
  color: #ffffff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

.pointAddedToRead {
  .set-point-name-option {
    color: grey;
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
  }
}
.deviceAddedToRead {
  .set-device-name-option {
    color: grey;
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
  }
}
.mstpLabel {
  font-weight: 400;
}
.point-context-menu {
  --mouse-x: 0;
  --mouse-y: 0;
  display: none;
  position: fixed;
  margin: 0;
  left: 0;
  top: 0;
  /* The following line is responsible for all the magic */
  transform: translateX(min(var(--mouse-x), calc(100vw - 100%))) translateY(min(var(--mouse-y), calc(100vh - 100%)));
  z-index: 10;
}
.mstp-folder-context-menu {
  --mouse-x: 0;
  --mouse-y: 0;
  display: none;
  position: fixed;
  margin: 0;
  left: 0;
  top: 0;
  /* The following line is responsible for all the magic */
  transform: translateX(min(var(--mouse-x), calc(100vw - 100%))) translateY(min(var(--mouse-y), calc(100vh - 100%)));
  z-index: 10;
}
.context-menu {
  --mouse-x: 0;
  --mouse-y: 0;
  display: none;
  position: fixed;
  margin: 0;
  left: 0;
  top: 0;
  /* The following line is responsible for all the magic */
  transform: translateX(min(var(--mouse-x), calc(100vw - 100%))) translateY(min(var(--mouse-y), calc(100vh - 100%)));
  z-index: 10;
}
.context-menu-container {
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
}
.context-menu-item {
  width: 100%;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.context-menu-item:hover {
  cursor: pointer;
}
.context-menu-item-text {
  padding-left: 10px;
}
.context-menu-icon {
  color: white;
}
.export-points-button {
  font-size: 13px;
  border: 1px solid #20b7f1;
  border-radius: 5px !important;
  padding: 6px 12px;
  cursor: pointer;
  margin-right: 10px !important;
  background: white;

  i,a {
    color: #20b7f1;
    font-weight: bold;
  }
  a:hover {
    color: #20b7f1;
  }
}
.diplayNameDialogSave {
  background-color: #3295bd !important;
  border-radius: 0 !important;
  margin-right: 0 !important;
}
.diplayNameDialogSave > .p-button-label {
  color: white !important;
}
.diplayNameDialogCancel {
  background-color: #ffffff !important;
  color: #666 !important;
  border: 1px solid var(--red-ui-secondary-border-color);
  border-radius: 0 !important;
  margin-right: 0 !important;
}
.diplayNameDialogCancel:hover {
  background-color: #e6e6e6 !important;
  color: #666 !important;
  border: 1px solid var(--red-ui-secondary-border-color);
}
.deviceNameDialog {
  .p-dialog-header {
    background: #133547 !important;
    padding: 0.5rem !important;
  }
  .p-dialog-title {
    color: white;
    font-size: 1rem !important;
  }
  .p-dialog-content {
    padding: 0.5em 0.75rem 0.5rem 0.75rem !important;

    & label {
      font-size: 0.9rem !important;
    }
    & input {
      font-size: 1rem !important;
    }
  }
}

.bp-row {
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;

  input,
  select {
    width: auto !important;
    border-radius: 6px;
  }

  label {
    color: black;
    font-weight: bold;
    font-size: 16px;
    width: auto !important;
  }
}

.bp-frequency-container {
  display: flex;
  flex-direction: row;
  align-items: baseline;

  p {
    padding-right: 10px;
  }

  .bp-frequency-input {
    width: 70px !important;
    margin-right: 5px;
  }

  .bp-frequency-select {
    width: 200px;
  }
}

.bp-checkbox-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;

  label {
    color: black;
    font-weight: 500;
    font-size: 16px;
    width: auto !important;
    padding-left: 10px;
  }

  /* Hide the default checkbox */
  input[type="checkbox"] {
    appearance: none; /* Remove default checkbox styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 2px solid #20b7f1; /* Border color */
    border-radius: 3px; /* Rounded corners */
    cursor: pointer;
    position: relative;
  }

  /* Custom tick color */
  input[type="checkbox"]:checked {
    background-color: white; /* Background color when checked */
    border-color: #20b7f1; /* Border color when checked */
  }

  /* Custom tick using a pseudo-element */
  input[type="checkbox"]:checked::before {
    content: '\2714'; /* Unicode for the tick symbol */
    color: #20b7f1; /* Tick color */
    font-size: 15px;
    position: absolute;
    top: -4px;
    left: 2px;
  }

  input[type=checkbox]:focus {
    outline: none;
  }
}
.bp-checkbox {
    accent-color: white;
    bottom: -3px;
}
.bp-import-buttons {
  margin-top: 25px;
  label {
    width: auto !important;
    font-size: 13px;
    border-color: #20b7f1;
  }

  i,
  a {
    color: #20b7f1;
    font-weight: bold;
  }
  a:hover {
    color: #20b7f1;
    font-weight: bold;
  }
}

.node-input-deviceIdRangeMatrix-container-row, .node-input-portRangeMatrix-container-row {
  border-radius: 10px;

  .red-ui-editableList-header {
    background-color: #f5f5f5;
  }
  .red-ui-editableList-item-removable,
  .red-ui-editableList-container {
    border-radius: 10px;
    background: #fafafa;
  }

  .red-ui-editableList-item-remove {
    margin-top: -15px !important;
  }
}

.bp-matrix-heading {
  padding-left: 15px;
  font-weight: bold;
}

.bp-matrix-count {
  padding-left: 10px;
  font-size: small;
  background: white;
  border-radius: 10px;
  height: 20px;
  label {
    left: -5px;
    position: relative;
  }
}

.bp-matrix-itemIndex {
  padding-left: 15px;
  color: #1fb7f0;
  font-size: 15px;
  font-weight: bold;
}

.bp-matrix-enable {
  margin-left: 80px;
}

.bp-button-group {
  display: flex;
  background: #F5F5F5;
  height: 55px;
  border-radius: 10px;

  .msgOptions {
    width: 50%;
    height: 70%;
    margin: auto;
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    cursor: pointer;
    transition: 1s;
  }

  label {
    width: auto !important;
  }

  .msgOptions:hover {
    transition: 1s;
  }

  .discoverOption {
    margin-left: 10px;
    border-radius: 5px;
  }

  .pollOption {
    margin-right: 10px;
    border-radius: 5px;
  }

  .activeButton {
    background: #00ADEF;
    label {
      color: white;
    }
  }
}

.bp-objectPropertiesLabel {
  float: right;
  margin-bottom: 20px;
}

.bp-msg-type-row {
  border: 1px solid #D4D4D4;
  border-radius: 5px;
  display: flex; 
  width: 100%; 
  flex-wrap: nowrap; 
  flex-direction: row; 
  padding-top: 10px;
  margin-left: auto; 
  margin-right: auto;
  margin-top: 30px;
  padding-bottom: 15px;
}

.bp-object {
  padding-left: 15px;
}

.bp-msg {
  padding-left: 95px;
}

.bp-msg-type-labels {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-bottom: 10px;
}

.bp-msg-type-column {
  display: flex; 
  align-items: flex-start; 
  flex-direction: column;
}

.injectHeading>a {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.injectHeading {
  text-align: start;
  height: 30px;
}

.bp-editable-list {
  .red-ui-typedInput-type-select {
    background: #EFFAFF;
    color: #4D88B7 !important;
  }
  .red-ui-typedInput-option-trigger, .red-ui-typedInput-option-label {
    background-color: white !important;
  }
}

.bp-prop-row {
  width: auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
}

.bp-prop-heading {
  padding-bottom: 10px;
  color: #737373;
  font-weight: bold !important;
}

.bp-readnode-useDeviceName {
  margin-top: 30px;
  margin-bottom: 30px;
}

.checkbox-round {
  width: 13px !important;
  height: 13px !important;
  background-color: white;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid #ddd;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.checkbox-round:checked {
  background-color: #00AEEF;
}

.checkbox-round:focus {
  outline: none !important;
}

.optionsSelector {
  min-height: 90px !important;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-around;
}

.bitpoolInjectList>.red-ui-editableList>.red-ui-editableList-container {
  min-height: 120px !important;
  max-height: none;
  overflow-y: scroll;
  height: 410px !important;
}

.bp-deviceCount {
  font-weight: bold;
}

.p-confirm-dialog-accept > .p-button-label,
.bacnetServerRebuildSchedule_clearButton > .p-button-label {
  color: white;
}

.deviceFolderLabel {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 600;
}

.deviceFolderLabel:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 2px 4px;
}