.scale-control-table {
    position: fixed;
    bottom: 0px;
    right: 0px;
    background: var(--DEF-White);
    padding: 6px 16px 30px 6px;
    border-radius: 8px 0 0 0;
    box-shadow: var(--DEF-shadow-soft-top-left);
    display: flex;
    gap: 6px;
}

.scale-control-table button {
    border: 1px solid var(--DEF-Border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    background: var(--DEF-Background);
    color: var(--DEF-Grey-Tekst);
}

.scale-control-table button.is-active {
    background: var(--DEF-Blue-Styling);
    color: var(--DEF-White);
}

#tableControl {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 20px;
  grid-row-gap: 10px;
  color: var(--DEF-Grey-Tekst);
}

#tableControl div {
  text-align: center;
  background-color: var(--DEF-Background);
  border: solid 1px var(--DEF-Border);
  padding: 10px;
  border-radius: 10px;
}

#tableControl input {
  background-color: var(--DEF-Background);
  border: solid 1px var(--DEF-Border);
  padding: 10px;
  border-radius: 10px;
}

.tableControl{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.tcSelect{
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--DEF-Border);
  background: var(--DEF-Background);
  color: var(--DEF-Grey-Tekst);
}

.tcSearch{
  grid-column: 1 / -1;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(border);
  background: var(--DEF-Background);
}

.tableList{
  display: grid;
  gap: 10px;
  padding-bottom: 70px;
  color: var(--DEF-Grey-Tekst);
}

.table-card{
  border: 1px solid var(--DEF-Border);
  background: var(--DEF-White);
  border-radius: 12px;
  padding: 12px;
  background-color: var(--DEF-Background);
}

.table-card__title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.table-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.table-card__metric{
  margin-top: 6px;
  font-size: 13px;
}

.table-level{
  font-weight: 700;
}

.table-card__meta{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--DEF-Blue-Tekst);
}

.table-panel{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--DEF-Border);
}

.measureList{
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: grid;
  gap: 6px;
}

.measureRow{
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--DEF-Background);
  border: 1px solid var(--DEF-Border);
  font-size: 12px;
}

.measureRow.is-selected{
  outline: 2px solid var(--DEF-Border);
}

.table-panel__top{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin: 6px 0 10px 0;
  position: relative;
}

.table-settings-btn{
  border: 1px solid var(--DEF-Border);
  background: var(--DEF-White);
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: var(--DEF-Box-Shadow);
}

.table-settings-popover{
  position: absolute;
  top: 38px;
  right: 0;
  width: min(260px, 100%);
  background: var(--DEF-White);
  border: 1px solid var(--DEF-Border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--DEF-Box-Shadow);
  z-index: 5;
}

.table-settings-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  color: var(--DEF-Black);
  margin: 6px 0;
}

.table-settings-row input{
  width: 84px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--DEF-Border);
  background: var(--DEF-Background);
}

.table-pointChart{
  width: 100%;
  min-height: 150px;
  background: var(--DEF-Background);
  border: 1px solid var(--DEF-Border);
  border-radius: 12px;
  padding: 6px 6px 2px 6px;
}

#tableList, .table-card, .table-panel, .measureList, .table-pointChart {
  max-width: 100%;
  box-sizing: border-box;
}

.table-card {
  width: 100%;
  overflow: hidden;
}

.table-panel {
  overflow: hidden;
}

.table-pointChart svg {
  width: 100%;
  height: auto;
  display: block;
}

.measureRow, .measureMonth, .measureVal {
  min-width: 0;
}

.measureMonth, .measureVal {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
