
    .chart-wrapper {
width: 100%;
max-width: 245mm;  /* Slightly bigger than 230mm */
aspect-ratio: 210 / 297; /* Maintain A4 ratio (≈ 0.707) */


      position: relative;
    }

    #chartpanel1 {
      width: 100%;
      height: 100%;
      background: #ae3009;
      padding: 25px;
      box-sizing: border-box;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
      border-radius: 10px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }
@media (max-width: 700px) {
  .chart-wrapper {
    max-width: 100%; /* Full width on small screens */
    aspect-ratio: auto; /* Let height adapt naturally */
    padding: 10px; /* Add some padding for breathing room */
  }

  #chartpanel1 {
    padding: 15px; /* Reduce padding */
    box-shadow: none; /* Optional: remove shadow for simpler UI */
    border-radius: 6px; /* Slightly smaller radius */
    overflow: auto; /* Enable scrolling if content overflows */
  }
}

    #chartDropdown {
      position: relative;
      margin-bottom: 20px;
      max-width: 280px;
      z-index: 10;
    }



    #squareBox {
      width: 100%;
      aspect-ratio: 1 / 1; /* Make it a square */
      background-color: #f9f9f9;
      border-radius: 8px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      overflow: hidden;
    }

    @media (max-width: 700px) {
      body {
        padding: 0px;
      }

      #chartDropdown {
        max-width: 100%;
      }
    }



/* Main ChartPanel1 Container (outer) */
#chartpanel1-container {
  background-image: url('a1Astrology Layout_page-0001(2).jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;

  display: grid;
  grid-template-columns: 7% 34% 19% 34% 6%;
  grid-template-rows: 17% 24% 17% 24% 17%;
  gap: 0;

  box-sizing: border-box;
  border: 0;
  padding: 0;
  overflow: hidden;

  aspect-ratio: 1 / 1;
}





















/* ChartPanel1 Item 7 */

#chartpanel1-item-7.diagonal-box {
  position: relative;
  overflow: hidden;
}

#chartpanel1-item-7 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #000;
  display: flex;
}

#chartpanel1-item-7 .left-halfdown-n7 {
  background: transparent;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

#chartpanel1-item-7 .right-halfup-n7 {
  background: transparent;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

#chartpanel1-item-7 .text-wrapper {
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#chartpanel1-item-7 .left-halfdown-n7 .text-wrapper {
  left: 0;
  align-items: flex-start;
  justify-content: center;
  text-align: right;
  width: 50%;
}

#chartpanel1-item-7 .right-halfup-n7 .text-wrapper {
  right: 0;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  width: 50%;
}

#chartpanel1-item-7 .left-halfdown-n7 .text {
  margin-top: 90%;
  margin-left: 60%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 80%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
}

#chartpanel1-item-7 .right-halfup-n7 .text {
  margin-top: 30%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 80%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  margin-right: 15%;
  font-weight: bold;
}

/* ChartPanel1 Item 9 */
#chartpanel1-item-9 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#chartpanel1-item-9 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chartpanel1-item-9 .left-halfup-n9{
  background-color: #3498db00;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

#chartpanel1-item-9 .right-halfdown-n9{
  background-color: #e74d3c00;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

#chartpanel1-item-9 .text-wrapper1{
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  line-height: 0.9;
}
#chartpanel1-item-9 .text-wrapper2 {
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 0.9;
}

#chartpanel1-item-9 .left-halfup-n9 .text-wrapper1 {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  font-weight: bold;
  line-height: 0.9;
  width: 50%;
  max-width: 60%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  left: 0;
  align-items: flex-start;
  text-align: left;
}

#chartpanel1-item-9 .right-halfdown-n9 .text-wrapper2 {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 0.9;
  max-width: 65%;
  width: 50%;

  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  right: 0;
  align-items: flex-start;
  text-align: center;
  text-justify: flex-end;
}

#chartpanel1-item-9 .text{
  word-wrap: break-word;
  max-width: 90%;
  line-height: 0.9;
}

/* ChartPanel1 Item 17 */
#chartpanel1-item-17{
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#chartpanel1-item-17 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chartpanel1-item-17 .left-halfup-n17 {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

#chartpanel1-item-17 .right-halfdown-n17 {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

#chartpanel1-item-17 .text-wrapper {
  color: #000;
  position: absolute;
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

#chartpanel1-item-17 .left-halfup-n17 .text-wrapper {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 60%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  left: 0;
  align-items: flex-start;
  text-align: left;
}

#chartpanel1-item-17 .right-halfdown-n17 .text-wrapper{
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 50%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  right: 0;
  align-items: flex-end;
  text-align: right;
    justify-content: flex-end;
}

#chartpanel1-item-17 .text{
  word-wrap: break-word;
  max-width: 90%;
  line-height: 0.9;
}

/* ChartPanel1 Item 19 */
#chartpanel1-item-19.diagonal-box{
  position: relative;
  overflow: hidden;
}

#chartpanel1-item-19 .half{
  position: absolute;
  width: 100%;
  height: 100%;
  color: #000;
  display: flex;
}

#chartpanel1-item-19 .left-halfdown-n19 {
  background: transparent;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

#chartpanel1-item-19 .right-halfup-n19 {
  background: transparent;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

#chartpanel1-item-19 .right-halfup-n19 .text-wrapper {
  position: absolute;
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#chartpanel1-item-19 .left-halfdown-n19 .text-wrapper {
  left: 0;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 50%;
}

#chartpanel1-item-19 .right-halfup-n19 .text-wrapper {
  left: 25%;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  width: 70%;
}

#chartpanel1-item-19 .left-halfdown-n19 .text{
  margin-top: 75%;
  margin-left: 20%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 0.9;
  max-width: 75%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
}

#chartpanel1-item-19 .right-halfup-n19 .text {
  margin-top: 10%;
  margin-right: 0%;
  margin-left: 35%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 0.9;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  text-align: right;
}

/* Items 8, 12, 14, 18 */
#chartpanel1-item-8,
#chartpanel1-item-12,
#chartpanel1-item-14,
#chartpanel1-item-18 {
  font-weight: bold;
  font-size: 0.65rem;
  text-align: center;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 600px) {
  #chartpanel1-item-7 .left-halfdown-n7 .text {
    font-size: 0.7rem;
    line-height: 0.9;
    max-width: 95%;
    margin-top: 93%;
    margin-left: 50%;
  }

  #chartpanel1-item-7 .right-halfup-n7 .text {
    font-size: 0.7rem;
    line-height: 0.9;
    max-width: 80%;
    margin-top: 35%;
    margin-right: 20%;
    margin-left: 0%;
  }

  #chartpanel1-item-9 .left-halfup-n9 .text-wrapper {
    font-size: 0.7rem;
    line-height: 0.8;
    max-width: 50%;
    margin-top: 27%;
    margin-left: 10%;
    margin-right: 0%;
  }

  #chartpanel1-item-9 .right-halfdown-n9 .text-wrapper {
    font-size: 0.7rem;
    line-height: 1;
    max-width: 60%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }

  #chartpanel1-item-17 .left-halfup-n17 .text-wrapper {
    font-size: 0.7rem;
    line-height: 0.8;
    width: 50%;
    max-width: 60%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }

  #chartpanel1-item-17 .right-halfdown-n17 .text-wrapper {
    font-size: 0.7rem;
    line-height: 0.8;
    width: 50%;
    max-width: 60%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }

  #chartpanel1-item-19 .left-halfdown-n19 .text-wrapper {
    font-size: 0.7rem;
    line-height: 1;
    width: 50%;
    max-width: 600%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }

  #chartpanel1-item-19 .right-halfup-n19 .text-wrapper {
    font-size: 0.7rem;
    line-height: 1.1;
    width: 65%;
    max-width: 80%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }
}

@media (max-width: 600px) {
  #chartpanel1-item-8,
  #chartpanel1-item-12,
  #chartpanel1-item-14,
  #chartpanel1-item-18 {
    font-weight: bold !important;
    font-size: 0.7rem !important;
    text-align: center;
  }
}

/* Optional grid item styling */

#chartpanel1-container > div {
  border: 0px solid #aaa;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}















    .chart-wrapper1 {
width: 100%;
max-width: 245mm;  /* Slightly bigger than 230mm */
aspect-ratio: 210 / 297; /* Maintain A4 ratio (≈ 0.707) */


      position: relative;
    }


#chartpanel2 {
  width: 100%;
  height: 100%;
  background: #ae3009;
  padding: 25px;
  box-sizing: border-box;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (max-width: 700px) {
  .chart-wrapper1 {
    max-width: 100%;       /* Use full width */
    aspect-ratio: auto;    /* Let height adjust naturally */
    padding: 10px;         /* Add some padding */
  }

  #chartpanel2 {
    padding: 12px;         /* Reduce padding */
    box-shadow: none;      /* Optional: remove shadow for cleaner look */
    border-radius: 6px;    /* Slightly smaller rounded corners */
    overflow: auto;        /* Allow scrolling if content overflows */
    height: auto;          /* Let height adjust based on content */
  }
}

#chartDropdown1 {
  position: relative;
  margin-bottom: 20px;
  max-width: 280px;
  z-index: 10;
}


#squareBox1 {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  overflow: hidden;
}

@media (max-width: 700px) {
  body {
    padding: 0px;
  }

  #chartDropdown1 {
    max-width: 100%;
  }
}

#chartpanel2-container {
  background-image: url('a1Astrology Layout_page-0001(2).jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;

  display: grid;
  grid-template-columns: 7% 34% 19% 34% 6%;
  grid-template-rows: 17% 24% 17% 24% 17%;
  gap: 0;

  box-sizing: border-box;
  border: 0;
  padding: 0;
  overflow: hidden;

  aspect-ratio: 1 / 1;
}





















/* ChartPanel1 Item 7 */
#chartpanel2-item-7.diagonal-box{
  position: relative;
  overflow: hidden;
}
#chartpanel2-item-7 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #000;
  display: flex;
}
#chartpanel2-item-7 .left-halfdown-n7{
  background: transparent;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}
#chartpanel2-item-7 .right-halfup-n7{
  background: transparent;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
#chartpanel2-item-7 .text-wrapper{
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#chartpanel2-item-7 .left-halfdown-n7 .text-wrapper {
  left: 0;
  align-items: flex-start;
  justify-content: center;
  text-align: right;
  width: 50%;
}
#chartpanel2-item-7 .right-halfup-n7 .text-wrapper {
  right: 0;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: right;
  width: 50%;
}
#chartpanel2-item-7 .left-halfdown-n7 .text{
  margin-top: 90%;
  margin-left: 60%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 80%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
}
#chartpanel2-item-7 .right-halfup-n7 .text {
  margin-top: 30%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 80%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  margin-right: 15%;
  font-weight: bold;
}

/* ChartPanel1 Item 9 */

#chartpanel2-item-9 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


#chartpanel2-item-9 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: rgb(0, 0, 0);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chartpanel2-item-9 .left-halfup-n9 {
  background-color: #3498db00;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

  #chartpanel2-item-9 .right-halfdown-n9 {
  background-color: #e74d3c00;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}


#chartpanel2-item-9 .text-wrapper1{
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  line-height: 0.9;
}

#chartpanel2-item-9 .text-wrapper2 {
  position: absolute;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 0.9;
}

#chartpanel2-item-9 .left-halfup-n9 .text-wrapper1 {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  font-weight: bold;
  line-height: 0.9;
  width: 50%;
  max-width: 60%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  left: 0;
  align-items: flex-start;
  text-align: left;
}


#chartpanel2-item-9 .right-halfdown-n9 .text-wrapper2 {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 0.9;
  max-width: 65%;
  width: 50%;

  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  right: 0;
  align-items: flex-start;
  text-align: center;
  text-justify: flex-end;
}


#chartpanel2-item-9 .text {
  word-wrap: break-word;
  max-width: 90%;
  line-height: 0.9;
}

/* ChartPanel1 Item 17 */

#chartpanel2-item-17 {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


#chartpanel2-item-17 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


#chartpanel2-item-17 .left-halfup-n17 {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}


#chartpanel2-item-17 .right-halfdown-n17 {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}


#chartpanel2-item-17 .text-wrapper {
  color: #000;
  position: absolute;
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 0.9;
}

#chartpanel2-item-17 .left-halfup-n17 .text-wrapper {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 60%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  left: 0;
  align-items: flex-start;
  text-align: left;
}


#chartpanel2-item-17 .right-halfdown-n17 .text-wrapper {
  margin-top: 0%;
  margin-right: 0%;
  margin-left: 0%;
  font-size: 1rem;
  line-height: 0.9;
  max-width: 50%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  right: 0;
  align-items: flex-end;
  text-align: right;
    justify-content: flex-end;
}


#chartpanel2-item-17 .text {
  word-wrap: break-word;
  max-width: 90%;
  line-height: 0.9;
}

/* ChartPanel1 Item 19 */

#chartpanel2-item-19.diagonal-box {
  position: relative;
  overflow: hidden;
}


#chartpanel2-item-19 .half {
  position: absolute;
  width: 100%;
  height: 100%;
  color: #000;
  display: flex;
}


#chartpanel2-item-19 .left-halfdown-n19 {
  background: transparent;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}


#chartpanel2-item-19 .right-halfup-n19 {
  background: transparent;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}


#chartpanel2-item-19 .right-halfup-n19 .text-wrapper {
  position: absolute;
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
}


#chartpanel2-item-19 .left-halfdown-n19 .text-wrapper {
  left: 0;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  width: 50%;
}


#chartpanel2-item-19 .right-halfup-n19 .text-wrapper {
  left: 25%;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  width: 70%;
}


#chartpanel2-item-19 .left-halfdown-n19 .text {
  margin-top: 75%;
  margin-left: 20%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 0.9;
  max-width: 75%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
}


#chartpanel2-item-19 .right-halfup-n19 .text {
  margin-top: 10%;
  margin-right: 0%;
  margin-left: 35%;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 0.9;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  font-weight: bold;
  text-align: right;
}

/* Items 8, 12, 14, 18 */
#chartpanel2-item-8,
#chartpanel2-item-12,
#chartpanel2-item-14,
#chartpanel2-item-18 {
  font-weight: bold;
  font-size: 0.65rem;
  text-align: center;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 600px) {

  #chartpanel2-item-7 .left-halfdown-n7 .text {
    font-size: 0.7rem;
    line-height: 0.9;
    max-width: 95%;
    margin-top: 93%;
    margin-left: 50%;
  }


  #chartpanel2-item-7 .right-halfup-n7 .text {
    font-size: 0.7rem;
    line-height: 0.9;
    max-width: 80%;
    margin-top: 35%;
    margin-right: 20%;
    margin-left: 0%;
  }


  #chartpanel2-item-9 .left-halfup-n9 .text-wrapper {
    font-size: 0.7rem;
    line-height: 0.8;
    max-width: 50%;
    margin-top: 27%;
    margin-left: 10%;
    margin-right: 0%;
  }


    #chartpanel2-item-9 .right-halfdown-n9 .text-wrapper {
    font-size: 0.7rem;
    line-height: 1;
    max-width: 60%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }

  #chartpanel2-item-17 .left-halfup-n17 .text-wrapper {
    font-size: 0.7rem;
    line-height: 0.8;
    width: 50%;
    max-width: 60%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }


  #chartpanel2-item-17 .right-halfdown-n17 .text-wrapper {
    font-size: 0.7rem;
    line-height: 0.8;
    width: 50%;
    max-width: 60%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }


  #chartpanel2-item-19 .left-halfdown-n19 .text-wrapper {
    font-size: 0.7rem;
    line-height: 1;
    width: 50%;
    max-width: 600%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }

  #chartpanel2-item-19 .right-halfup-n19 .text-wrapper {
    font-size: 0.7rem;
    line-height: 1.1;
    width: 65%;
    max-width: 80%;
    margin-top: 0%;
    margin-left: 0%;
    margin-right: 0%;
  }
}

@media (max-width: 600px) {
  #chartpanel2-item-8,
  #chartpanel2-item-12,
  #chartpanel2-item-14,
  #chartpanel2-item-18 {
    font-weight: bold !important;
    font-size: 0.7rem !important;
    text-align: center;
  }
}

/* Optional grid item styling */


#chartpanel2-container> div {
  border: 0px solid #aaa;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}





/* Style the dropdown container (the div wrapping the options) */
#dropdownList, #dropdownList1 {
  display: none; /* Hidden by default, shown on toggle */
  position: absolute; /* So it floats over other content */
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-height: 200px; /* Optional: max height with scroll */
  overflow-y: auto;
  width: 180px; /* Width of the dropdown */
  z-index: 1000;
  border-radius: 4px;
  padding: 5px 0;
  font-family: Arial, sans-serif;
  font-size: 1rem;
}

/* Style each dropdown item (the div inside dropdownList) */
#dropdownList div, #dropdownList1 div {
  padding: 8px 15px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

/* Hover effect for each item */
#dropdownList div:hover, #dropdownList1 div:hover {
  background-color: #f0f0f0;
}

/* Optional: Style the dropdown button */
#dropdownButton, #dropdownButton1 {
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  font-size: 1rem;
  user-select: none;
  width: 180px; /* Same width as dropdown */
  text-align: left;
}













#customTableContainer {
  margin-top: 20px;
  width: 100%;
  max-width: 100%; /* Full width inside container */
  max-height: 400px; /* Set a fixed height for vertical scroll */
  overflow: auto; /* Enables both horizontal and vertical scrolling */
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: #fff;
  padding: 10px;
}
/* Make table wider than container to enable scroll */
#customTable {
  min-width: 700px; /* Adjust to required minimum width */
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(12px, 1vw, 16px);
  color: #333;
  table-layout: fixed; /* fixed layout for equal column widths */
}

#customTable th,
#customTable td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
}

#customTable th {
  background-color: #f4f4f4;
  font-weight: 700;
  user-select: none;
}

#customTable tr:nth-child(even) {
  background-color: #fafafa;
}

#customTable tr:hover {
  background-color: #e9f5ff;
}

/* Responsive: smaller font on narrow screens */
@media (max-width: 600px) {
  #customTable {
    font-size: 11px;
    min-width: unset; /* Allow it to shrink on very small screens */
  }
}