#d3-visualization_AC {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  padding: 2rem 0rem;
  box-sizing: border-box;
  margin-left: 3%;
}

/* 2. Better Mobile Layout */
@media screen and (max-width: 900px) {


    #repRateViz_AC {
    overflow-x: auto;
    max-width: 140vw;
    max-height: 90vh;
    display: block;
  }

  #repRateViz_AC svg {
    width: 1500px; /* Force horizontal scroll */
    height: auto;
  }

  .y-axis text {
    font-size: 16px;
  }

  .label_AC,
  .repNumber_AC,
  .totalNumber_AC {
    font-size: 16px;
  }

    .dropdown_AC {
    width: 100%;
    margin-bottom: 10px;
  }

  .dropdown-content_AC {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
  }



  .tabs_AC {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs__link {
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
  }
}

/* 3. Dropdowns */

.dropdown_AC {
            position: relative;
            display: inline-block;

            & button * {
                pointer-events: none;
            }
        }

        .dropdown-content_AC {
            display: none;
            position: absolute;
            min-width: 140px;
            overflow-y: auto;
            z-index: 1;
            border-radius: 4px;
            font-family: Karla, sans-serif;
            padding-top: 8px;
            padding-bottom: 10px;
            font-size: 14px;
            background: white;
            border: 1px solid #D9D8D8;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

            & input {
                position: relative;
                top: 1px;
                margin-right: 5px;
            }
        }

        .dropdown-content_AC label {
            display: block;
            padding: 3px 10px;
            cursor: pointer;
        }

        .dropdown-content_AC label:hover {
            background-color: #ddd;
        }

        .show_AC {
            display: block;
        }

        .selected-items {
            width: 100px;
            margin-top: 5px;
            padding: 5px;
            border: 1px solid #ccc;
        }

        .selected-items div {
            margin-bottom: 5px;
        }

         #relief-buttons {
            visibility: visible;
        }





        /* Removal & Representation Tabs*/
        .tabs_AC {
            border-bottom: 1px solid #F7F7F8;
            max-width: 1080px;
            margin: 0 auto;

            & button:hover {
                border-bottom: 1px solid black;
            }
        }

        .tabs__link {
            font-family: Karla, sans-serif;
            background: none;
            border: none;
            cursor: pointer;
            padding-bottom: 8px;
            font-size: 14px;

            &.active {
                font-weight: bold;
                border-bottom: 1px solid #050607;
            }
        }

        .filter-container_AC {
            display: flex;
            margin-top: 16px;
            margin-bottom: 16px;
            gap: 16px;
            max-width: 1080px;
            margin-left: auto;
            margin-right: auto;
        }

        .filterCard_AC {
            border: 1px solid #D8D8D8;
            background-color: #F9F9F9;
            border-radius: 10px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
            padding: 8px 12px 10px 12px;
            font-family: Karla, sans-serif;

            & button {
                background-color: #F9F9F9;
                border: none;
                cursor: pointer;
            }
        }

                .filterCard__label {
            font-size: 14px;
            color: #4E4E4E;
        }

        .filterCard__currentSelection {
            font-weight: bold;
            border: 1px solid #D8D8D8;
            padding: 4px 8px 5px;
            border-radius: 2px;
            font-size: 14px;
            text-transform: uppercase;
        }

        .filterCard__selectedText {
            font-size: 14px;
            font-weight: bold;
            margin-left: 4px;
            margin-right: 4px;
        }



        #variableRem {
            display: block;
        }

        #variableRep {
            display: none;
        }


/* 4. Chart Text */
.nameHeader_AC,
.nameRepRate_AC,
.nameRepCases_AC,
.nameTotal_AC {
  font-weight: bold;
  font-size: 18px;
  fill: #000;
  font-family: Karla, sans-serif;
}

/* 5. Visual Enhancements */
.bar_AC, .full_bar_AC, .all_bar_AC {
  transition: fill 0.3s ease, width 0.3s ease;
}

/* 6. Optional Cleanup */
body {
  font-family: Karla, sans-serif;
 
}