/*Table Data Study*/
#infoECG {
  height: auto;
}
.divTableRow {
  display: table-row;
}
.divTableHeading {
  background-color: #eee;
  display: table-header-group;
}
.divTableCell,
.divTableHead {
  display: table-cell;
  font-size: 13px;
  font-weight: 700;
  color: #000000;
}
.divTableCell i {
  font-weight: normal;
}
.divTableHeading {
  background-color: #eee;
  display: table-header-group;
  font-weight: bold;
}
.divTableFoot {
  background-color: #eee;
  display: table-footer-group;
  font-weight: bold;
}
#divTableBody {
  height: auto;
  background: #f9f8f2;
  width: 100%;
  display: table;
  padding: 10px;
}

/** Buttons **/
#toolsECG {
  background: #f9f8f2;
  width: 100%;
  display: flow-root;
  border-top: 2px solid rgb(0, 0, 0);
}
.divTools {
  float: right;
  font-size: 13px;
  font-weight: 700;
  margin-left: 1.5rem;
}
.divTools i {
  font-weight: normal;
}
.divTools button {
  background-color: #dadada;
  color: black;
  padding: 5px 15px;
  margin: 4px 2px;
  border-radius: 10%;
}

/*Zoom buttons*/
#zoomButons {
  position: absolute;
  width: 30px;
  top: 125px;
  right: 2px;
}

#zoomButons button {
  background-color: #dadada;
  color: black;
  padding: 5px;
  width: 30px;
  height: 30px;
  margin: 0px 0px 2px 0px;
  border-radius: 10%;
}

/* New wrapper to position zoom buttons relative to canvas */
.ecgCanvasWrapper {
  position: relative;
  width: 100%;
}
.ecgCanvasWrapper #zoomButons {
  top: 10px !important; /* place at top inside wrapper */
  right: 10px;
  bottom: auto; /* unset bottom positioning */
}
.ecgCanvas {
  display: block;
  width: 100%;
}

/* Custom Context Menu */
.context-menu {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 4px 0;
  z-index: 1000;
  display: none;
  min-width: 120px;
}

.context-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.context-menu-item:hover {
  background-color: #f0f0f0;
}
