/* Add a right border to the last Full Year column */
#scorecard-table thead th:nth-child(6) {
    border-right: 1px dotted #00333a83; /* Adjust the color and width as needed */
}

/* Optional: You might also want to add the same style for the tbody cells to keep the border consistent */
#scorecard-table tbody td:nth-child(6) {
    border-right: 1px dotted #00333a83;
}

/* Specific styles for the header cells in scorecard table */
#scorecard-table thead th {
    background-color: #00333a;  /* Override any existing background */
}

/* Center-align only the second column in the scorecard table */
#scorecard-table th:nth-child(2),
#scorecard-table td:nth-child(2) {
    text-align: center;
}

/* Trackers Container Styling as a thin line below the table */
#trackers-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Padding for a thin look */
    background-color: #f5f5f557; /* Light grey background */
    border-radius: 5px; /* Subtle rounded corners */
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1); /* Soft shadow */
    font-size: 1.4vw; /* Adjust font size for a streamlined look */
    color: #00333a; /* Darker color for text */
}

/* Adjust logo styling for consistent positioning */
#trackers-container #rtci-logo {
    max-width: 5em; /* Adjust size as needed */
    margin-left: 1em;
    margin-right: 1em;
}

/* Style for the tracker text */
#trackers-container span {
    color: #00333a;
}

#trackers-container strong {
    color: #00333a; /* Accent color for labels */
}

#trackers-container .tracker-agency-name {
    color: #2d5ef9; /* Blue color specifically for agency name */
}

/* General mobile styles */
@media (max-width: 800px) {
    #scorecard-table th, td {
        font-size: 2vw;
    }

    #trackers-container p {
        font-size: 2vw;
    }
}

/* Remove margin for tracker container paragraphs */
#trackers-container p {
    margin: 0 0 0 0; /* Adjust spacing between lines */
}

/* Style for highlighted text within tracker container */
#trackers-container span {
    font-weight: 300;
    color: #f28106;
}

/* Reset rounded corners for the first and last header cells */
#scorecard-table thead th:first-child {
    border-top-left-radius: 0; /* Remove top-left rounded corner */
}

#scorecard-table thead th:last-child {
    border-top-right-radius: 0; /* Remove top-right rounded corner */
}




/* Force smaller font for the crime type cells on mobile */
@media (max-width: 800px) {
    #scorecard-table tbody tr td:first-child {
        font-size: 0.6em !important; /* Adjust as needed and enforce with !important */
    }
}


.table-container {
    overflow-x: hidden; /* Adds horizontal scrolling */
}


/* Make the tracker container as wide as the table on mobile */
@media (max-width: 800px) {
    #trackers-container {
        padding-left: 0.1em; 
        padding-right: 0.1em;
        overflow: hidden;
    }

    #trackers-container #rtci-logo {
        margin-left: 0;
        margin-right: 0;
    }

    /* Limit scrolling to the scorecard table, not the container */
    .table-container {
        overflow: hidden; /* Prevents scrolling on the container */
    }

    #scorecard-table {
        display: block; /* Enables table to behave like a scrollable block element */
        overflow-x: auto; /* Adds horizontal scrolling */
        width: 100%; /* Ensures it spans full width for consistent appearance */
    }
}

#agency-dropdown .master-heading:hover {
    background-color: transparent; /* Prevent hover effect */
    color: #00333a; /* Maintain original color */
}