/* Metrics General css*/
/* ==================== */

/* Main body (this could be inside the syle css) */ 
.general-body {
  background-color: #fff;
  padding: 15px 0px 20px 15px !important;
  background: #ffffff;
  border-radius: 4px;
  width: 100%;
  border-collapse: collapse;

}
/* Initiate the container */
.metrics-general-header {
  display: flex;
  width: 100%;
  padding: 0px 0px 20px 0px;
}
.metrics-general-header p{
  font-size: 16px;
  font-weight: 500;
  padding-left: 15px;
}

/* Clases of the tree view  for the header */
li.tree-node .metrics-general-view  .metric-name{
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100px;
    margin-right: 10px;
}
.metrics-general-header p.metric-name{
    flex-grow: 1;
}
li.tree-node .metrics-general-view  .metric-type{
    width: 15vw;
}
.metrics-general-header p.metric-type{
    width: 15vw;
  padding-left: 12px;
  
}
li.tree-node .metrics-general-view  .metric-tags{
  width: 15vw;

}
.metrics-general-header p.metric-tags{
    width: 16vw;
}
li.tree-node .metrics-general-view  .metric-action,
.metrics-general-header p.metric-action{
    width: 19vw;
}

.folder-view-main {
  padding-right: 20px;
}
/* Managment for list elements on the tree view */
.general-body ul li {
  margin: 0;
  padding: 0 0.8em;
  line-height: 2em;
  color: #555;
  font-weight: 700;
  position: relative;
  padding-right: 0;
}

.general-body ul li span {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    height: 37.5px;
}
.general-body ul li span img {
    margin-right: 8px;
}
.general-body ul {
    margin-left: 0.4em;
    position: relative;
}

.general-body ul:before {
    content: "";
    display: block;
    width: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border-left: 1px solid;
    color: #a1a1a1;
}
.general-body ul li:before {
    content: "";
    display: block;
    width: 10px;
    height: 0;
    border-top: 1px solid;
    margin-top: -1px;
    position: absolute;
    top: 1.4em;
    left: 0;
    color: #a1a1a1;
}
.general-body ul li:last-child:before {
  background: #fff;
  height: auto;
  top: 1em;
  bottom: 0;
}
.general-body > ul:before,
.general-body > ul > li::before,
.general-body ul.folder-view::before,
ul.folder-view > li::before {
    display: none;
}

.metrics-general-view {
  display: flex;
}

/* Managment for the tree nodes */
li.tree-node .metrics-general-view  .metric-action,
li.tree-node .metrics-general-view  .metric-tags,
li.tree-node .metrics-general-view  .metric-type {
  font-size: 14px;
  font-weight: 400;
  color: #000;
}

.metric-actions {
    width: 19vw;
    font-size: 14px;
  padding-left: 15px;
}
/* Managment for the header on table format */
.metrics-main-tags,
.metrics-general-header {
  background-color: #fff;
  font-weight: 500 !important;

}
.metrics-main-tags {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 0px 0px 0px 0px;
}


.metrics-general-header th,
.metrics-main-tags th{
  font-size: 16px;
  font-weight: 500;
}
.metrics-main-tags th.metric-name,
.metrics-general-header th.metric-name{
  flex-grow: 1;
  padding-left: 30px
}

.metrics-main-tags th.metric-tags,
.metrics-main-tags th.metric-type{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 15vw;
  padding-left: 25px;
}
.metrics-general-header th.metric-tags,
.metrics-general-header th.metric-type{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 15vw;
}
.metrics-main-tags th.metric-action{
    width: 19vw;
    padding: 15px;
}
.metrics-general-header th.metric-action{
  width: 19vw;
  padding: 15px;
}

/* Metric name managment on table format */
.metrics-main-tags .metrics-table-data,
.metrics-general-header .metrics-table-data {
  display: flex;
  padding-left: 30px;
  gap: 10px;
  width: 37vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; 
}
.metrics-general-header .metric-type{
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; 
  margin-right: 10px;
  width: 15vw;
}
.metrics-main-tags .metric-type {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; 
  margin-right: 10px;
  width: 15vw;
  padding-left: 25px;
  
}
/* Metric actions managment on table format */
.metrics-main-tags .metrics-action-table,
.metrics-general-header .metrics-action-table {
  display: flex;
  align-items: center;
  margin-right: 15px;
  width: 19vw;
}


.metrics-action-table .metric-action-elements {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 15px;
  cursor: pointer;
}

.metrics-action-table h4 {
  position: relative;
  font-weight: 400;
}

.adjust-disabled-button {
  display: flex;
  gap: 6px;
  font-size: 14px;
  align-items: center;
}

.adjust-delete-button {
  margin-left: -15px;
}

.metric-edit .metric-edit-form .field-box.metric-time-series {
  margin-bottom: 0;
  margin-top: 6px;
}

.time-based-column {
  transform: translateY(-4px);
}

.field-text{
  width: 40%;
}
.operator-text {
  width: 20%;
  min-width: 67px !important;
}
.value-text{
  width: 40%;
}

.google-sheet-btn {
  padding: 5px 15px;
}

.export-metric-to-google-sheet {
  overflow: visible;
  max-width: 75%;
  padding: 25px 25px 75px 25px;
  height: auto;
}

.export-metric-to-google-sheet .field-box label{
  min-width: 110px;
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: rgb(100, 116, 139);
}

.google-sheet-btn-Export {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  padding: 0px 25px 25px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sheet-title-wrapper{
  padding-bottom: 20px;
}

.sheet-title {
  padding: 0px 35px 10px 0px;
  font-weight: 500;
  word-break: break-all;
  display: inline-block;
}

.sheet-title a{
  display: inline-block;
  word-break: break-all;
}

.export-metric-to-google-sheet .field-box input{
  font-size: 14px;
}
.google-sheet-btn-Export button.saivo-btn-large,
.google-sheet-btn-Export button.saivo-btn {
  font-size: 14px;
  padding: 10px 30px;
  cursor: pointer;
  height: 40px;
  min-width: 170px;
}

.google-sheet-btn-Export button.saivo-btn-large {
  min-width: 300px;
}
.export-metric-to-google-sheet .field-box.isMulti .css-15k3avv  {
  overflow: hidden !important;
  max-height: auto !important;
  height: auto !important;
}
.export-metric-to-google-sheet .field-box.isMulti .css-15k3avv > div {
  overflow: auto !important;
 
}

.export-metric-to-google-sheet .hover-message-container {
  width: 100%;
}

.test-connection {
  display: inline-flex;
  align-items: center;
}

.message-container {
  align-items: center;
  margin-left: 20px;
  height: 50px;
  margin-bottom: 10px;
  margin-right: 5px; 
}
.test-connection-message {
  display: flex;
  align-items: center;
  padding-block-start: 5px;
}

.test-connection-message img{
  margin-right: 5px;
}

.delete-id-wrapper {
  width: 64%;
  overflow: auto;
  padding: 40px 40px 40px;
  zoom: 90%;
  overflow-x: hidden;
  height: auto;
}

.delete-id-wrapper::-webkit-scrollbar {
  width: 5px;
}

.delete-id-wrapper::-webkit-scrollbar-thumb {
  background: #296d98; 
  border-radius: 10px;
}

.delete-id-wrapper .delete-id {
  display: flex;
  justify-content: space-between;
}

.delete-id-wrapper .delete-id .can-delete {
  width: 100%;
}

.delete-id-wrapper .delete-id .can-not-delete {
  width: 100%;
}

.delete-id ul li {
  font-size: 12px;
  list-style-type: disc;
  padding: 3px 6px 3px 12px;
  display: inline-flex;
  width: 49%;
  word-break: keep-all;
  align-items: center;
  position: relative;
}

.delete-id ul li p {
  width: 98%;
  overflow: hidden;
}

.delete-id-wrapper .delete-id h4 {
  padding-bottom: 15px;
}

.delete-id ul li::before {
  content: "";
  background: #000;
  height: 3px;
  width: 3px;
  border-radius: 50px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.confirmation-btn {
  padding-top: 25px;
}

.confirmation-btn p.confirmation-text {
  padding-bottom: 15px;
  font-size: 16px;
}

.confirmation-btn input[type="text"] {
  height: 35px;
  padding: 8px 15px;
  width: 100%;
  margin-right: 10px;
  margin-bottom: 25px;
  border: 1px solid black;
  border-radius: 5px;
}

.confirmation-btn button {
  height: 40px;
  color: white;
  padding: 8px 10px;
  cursor: not-allowed;
  border-color: #296d98;
  border: 0px;
  font-size: 14px;
  border-radius: 4px;
  min-width: 115px;
}

.confirmation-btn button[disabled] {
  background: #cccccc;
  cursor: not-allowed;
}

.confirmation-btn button[disabled]:hover {
  background: #cccccc !important;
}

.confirmation-btn button:hover {
  background-color: #ca483f !important;
}

.confirmation-btn button {
  background-color: #ca483f;
  cursor: pointer;
}

.button-confirmation {
  text-align: right;
}

.select-wrapper .select-btn-wrapper button.select-delete-btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

body .select-wrapper .disabled-btn {
  color: #666666 !important;
  pointer-events: none !important;
}