.dg {
  height: 100%; /* instead of 500px */
  width: 100%; /* fill container */
  /* border: 1px solid #ccc; */
  display: flex;
  flex-direction: column;
  /* border-radius: 5px; */
}

.content {
  width: 100%;
  height: 100%;
  /* overflow:scroll; */
}

.dg-header,
.dg-row {
  display: grid;
}

.dg-header {
  /* background: #eee; */
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px;
  border-bottom: 1px solid black;
}

.dg-header div {
  cursor: pointer;
  padding: 4px;
  overflow: hidden;
}

.dg-body {
  overflow: auto;
  flex: 1;
  position: relative;
}

.dg-row {
  height: 32px;
  position: absolute;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.dc-cell {
  padding: 4px;
  position: relative;
  padding-left: 0.35rem;
  overflow: hidden
}

.dc-cell::before {
  content: "\F4CB"; 
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 2px;
  opacity: 0;
  z-index: 10;
}

.dc-cell.editable div{
  padding-left: 15px;
}

.dc-cell.editable:hover::before {
  opacity: 0.5;
}

.dc-editor input {
  width: 100%;
  box-sizing: border-box;
}
.col-header {
  display: flex;
  font-weight: bold;
  align-items: center;
}


.dg-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: dg-spin 1s linear infinite;
  margin-left: 1rem;
}

@keyframes dg-spin {
  to {
    transform: rotate(360deg);
  }
}