.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;
}

#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;
}


#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 */
  }
}

/* Hide both charts by default */
.chart-wrapper,
.chart-wrapper1 {
  display: none;
}

.chart-wrapper.is-visible,
.chart-wrapper1.is-visible {
  display: flex !important;
}

/* Modern Action Card inside Kuthi Panel 2 Blank Div (High Legibility & Responsive) */
.kuthi2-actions-card {
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  overflow: hidden;
}

.kuthi2-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.kuthi2-actions-title {
  font-size: 11px;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.kuthi2-actions-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.kuthi2-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
}

.kuthi-action-btn {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.3px;
  outline: none;
  box-sizing: border-box;
  color: #ffffff !important;
}

.kuthi-action-btn.chart1-btn {
  background: linear-gradient(135deg, #c74f2b 0%, #ae3009 100%);
}

.kuthi-action-btn.chart1-btn:hover {
  background: linear-gradient(135deg, #b84320 0%, #992806 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(174, 48, 9, 0.25);
}

.kuthi-action-btn.chart2-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.kuthi-action-btn.chart2-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.kuthi-action-btn:active {
  transform: translateY(0px);
}

/* Active State (When Chart is Open) */
.kuthi-action-btn.active-btn {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25) !important;
}

.kuthi-action-btn.active-btn:hover {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

.close-chart-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.close-chart-btn:hover {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 1);
}

/* Responsive adjustments for mobile/narrow screens */
@media (max-width: 600px) {
  .kuthi2-actions-card {
    padding: 6px 8px;
  }
  .kuthi2-actions-grid {
    gap: 6px;
  }
  .kuthi-action-btn {
    padding: 7px 8px;
    font-size: 11.5px;
    min-width: 80px;
  }
}



