@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

.luP-widget-row-container {
  width: 100%;
  margin-bottom: 20px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.luP-widget-container {
  visibility: hidden;
  opacity: 0;
  width: 100%;
  height: auto;
  overflow-x: auto;
  /* Allow horizontal scrolling */
  overflow-y: auto;
  /* Retain vertical scrolling */
  transition: none;
}

.luP-points-header > .luP-points-cell {
  background-color: #eaecf0;
  
}

.luP-frame {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0px 20px 0px 10px;
}

.luP-widget-row {
  width: 100%;
  height: 100%;
}

.luP-points-row {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
}

.luP-points-header {
  min-height: 50px;
  background-color: #eaecf0;
  font-weight: bold;
  color: #2c9949;
  font-family: "Figtree";
}

.luP-points-cell {
  flex: 1;
  min-width: 50px;
  padding: 8px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Figtree";
  border-top: 1px solid #CDCDCFFF;
  border-right: 1px solid #CDCDCFFF;
  border-color: #CDCDCFFF;
}
.luP-team-name-header {
  position: sticky; /* Make it sticky */
  left: 0; /* Stick to the left side */
  background-color: #ffffff; /* Ensure it has a background to cover content underneath */
  z-index: 2; /* Ensure it stays above other content */
  border-right: 1px solid #CDCDCFFF; /* Optional: Add a border for better separation */
  min-width: 200px
}
.luP-points-name-cell {
  flex: 1;
  min-width: 200px;
  padding: 8px;
  text-align: start;
  display: flex;
  align-items: start;
  font-family: "Figtree";
  border-top: 1px solid #CDCDCFFF;
  border-right: 1px solid #CDCDCFFF;
  border-left: 1px solid #CDCDCFFF;
  border-color: #CDCDCFFF;
  position: sticky; /* Make it sticky */
  left: 0; /* Stick to the left side */
  background-color: #ffffff; /* Ensure it has a background to cover content underneath */
  z-index: 1;
}
.luP-team-name-header,
.luP-points-name-cell {
  position: sticky; /* Make it sticky */
  left: 0; /* Stick to the left side */
  background-color: #ffffff; /* Ensure it has a background to cover content underneath */
  z-index: 2; /* Ensure it stays above other content */
  border-right: 1px solid #CDCDCFFF; /* Optional: Add a border for better separation */
}

.luP-color-circle-split {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
  border: 1px solid #ccc;
  /* optional: for contrast */
}


.luP-header-drop-item {
  text-align: start;
  color: #0f0c29;
  font-family: "Figtree";
}

.luP-header-drop-item-first {
  text-align: start;
  color: #0f0c29;
  font-family: "Figtree";
}

.luP-header-title {
  color: #6e7191;
}

.luP-header-drop-goal-item {
  margin-right: auto;
  font-size: 150%;
  font-weight: bold;
  color: #2c9949;
  font-family: "Figtree";
}

.luP-widget-row {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: white;
  color: #4caf50;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
}

.luP-toggle-button {
  background-color: white;
  color: #4caf50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 20px;
}

.luP-toggle-button:hover {
  background-color: white;
}

.luP-points-row .luP-points-cell:first-child {
  border-left: 1px solid #CDCDCFFF;
  border-color: #CDCDCFFF;
}

.luP-points-row:last-child {
  border-bottom: 1px solid #CDCDCFFF;
  border-color: #CDCDCFFF;
}

.luP-cell-large {
  width: 200px;
  flex: 2;
}

.luP-cell-medium {
  width: 100px;
  flex: 1.2;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px
}

.luP-points-subheader {
  font-size: 13px;
}

.luP-points-subheader>img {
  max-width: 20px;
}

.luP-cell-small {
  width: 50px;
  flex: 0.8;
}

@media (max-width: 1200px) {
  .luP-widget-container {
    display: block; /* Ensure the container is visible */
    overflow-x: auto; /* Enable horizontal scrolling */
  }

  .luP-points-row {
    display: inline-flex; /* Ensure rows stay in a single line */
    flex-wrap: nowrap; /* Prevent wrapping */
  }

  .luP-points-cell {
    flex: 0 0 auto; /* Prevent cells from shrinking */
  }

  .luP-points-name-cell {
    flex: 0 0 auto; /* Prevent name cells from shrinking */
  }

  .luP-team-name-header {
    flex: 0 0 auto; /* Prevent header cells from shrinking */
  }
  .luP-points-cell {
    flex: 1;
    min-width: 50px;
    padding: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Figtree";
    border-top: 1px solid #CDCDCFFF;
    border-right: 1px solid #CDCDCFFF;
    border-color: #CDCDCFFF;
  }
  .luP-cell-large {
    width: 150px;
    flex: 2;
  }

  .luP-cell-medium {
    width: 100px;
    flex: 1.2;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px
  }

  .luP-points-subheader {
    font-size: 13px;
  }

  .luP-points-subheader>img {
    max-width: 20px;
  }

  .luP-cell-small {
    width: 50px;
    flex: 0.8;
  }
    
  .luP-points-name-cell {
    flex: 1;
    min-width: 150px;
    padding: 8px;
    text-align: start;
    display: flex;
    align-items: start;
    font-family: "Figtree";
    border-top: 1px solid #CDCDCFFF;
    border-right: 1px solid #CDCDCFFF;
    border-left: 1px solid #CDCDCFFF;
    border-color: #CDCDCFFF;
  }
  .luP-team-name-header {
    min-width: 150px !important;
    max-width: 150px;
  }
}