.body {
    overflow-y: scroll;
}

text {
    font: 12px sans-serif;
}

#report {
    font-family: arial;
    border-radius: 15px;
    border-spacing: 0;
    border: 1px solid #b0b0b0;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#chartcontainer {
    min-height: 700px;
    height: 700px;
    margin-top: 50px;
    margin-bottom: 10px;
    background-color: white;
}

.button {
    -moz-box-shadow: inset 0px 1px 0px 0px #ffffff, 1px 1px 2px rgba(128, 128, 128, 0.5);
    -webkit-box-shadow: inset 0px 1px 0px 0px #ffffff, 1px 1px 2px rgba(128, 128, 128, 0.5);
    box-shadow: inset 0px 1px 0px 0px #ffffff, 1px 1px 2px rgba(128, 128, 128, 0.5);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #FCF6F0), color-stop(1, #F1D3B7));
    background: -moz-linear-gradient(center top, #FCF6F0 5%, #F1D3B7 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FCF6F0', endColorstr='#F1D3B7');
    background-color: #FCF6F0;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-left-radius: 5px;
    text-indent: 1px;
    border: 1px solid #8c5e30;
    display: inline-block;
    color: #1a1a1a;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    font-style: normal;
    height: 28px;
    line-height: 28px;
    width: 105px;
    text-decoration: none;
    text-align: center;
    text-shadow: 1px 1px 0px #ffffff;
	margin-right: 2px;
}
.button.active,
.button:active,
.button:focus {
    position: relative;
    top: 1px;
    -moz-box-shadow: inset 0px 2px 2px 0px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: inset 0px 2px 2px 0px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0px 2px 2px 0px rgba(0, 0, 0, 0.5);
    outline: none;
}

.button:hover:not(:active):not(:focus) {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #F1D3B7), color-stop(1, #FCF6F0));
    background: -moz-linear-gradient(center top, #F1D3B7 5%, #FCF6F0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F1D3B7', endColorstr='#FCF6F0');
    background-color: #F1D3B7;
}

/* Back to Top button positioning for floating effect */
#backToTop {
    display: none;
    position: fixed; /* This makes it float! */
    bottom: 20px;
    right: 30px;
    z-index: 99;
    cursor: pointer; /* Ensure it looks clickable */
}

/* --- 1. MAIN MENU CONTAINER (The Island) --- */
/* This restores the layout for your top-level category buttons */
.small-button-table {
    display: table;
    width: auto !important;   
    margin: 0 auto 20px auto; 
    border-collapse: separate;
    border-spacing: 0;        
    border-radius: 8px;       
    padding: 8px;             
    background-color: #f0f0f0; 
}

/* Restores the specific table cell behavior for main buttons */
.small-button-table td {
    text-align: center;
    vertical-align: top;
    padding: 0;
    min-width: 82px;
}

/* --- 2. NEW MONTHLY NAV CONTAINER --- */
/* For the dynamic month buttons beneath the chart */
.yearly-nav {
    display: block;
    text-align: center;
    margin: 5px auto 7px auto; 
    padding: 8px;
    border-radius: 8px;
    width: fit-content;
}

/* --- 3. UNIVERSAL BUTTON LOOK (Raised State) --- */
/* This shared style ensures all buttons look identical in 3D */
.smlbtn, .month-btn {
    position: relative;
    top: 0;
    display: inline-block;
    height: 22px;
    line-height: 21px;
    margin: 2px;
    border-radius: 2px;
    border: 1px solid #8c5e30;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #1a1a1a;
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 0px #ffffff;
    cursor: pointer;
    background: linear-gradient(to bottom, #FCF6F0 5%, #F1D3B7 100%);
    box-shadow: inset 0px 1px 0px 0px #ffffff, 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.small-button-table th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #ffffff !important;   /* Restores White Text */
    text-align: center !important; /* Restores Centering */
    padding: 6px 0px;             
    background-color: #637885;   /* The blue-grey header background */
    border-bottom: 2px solid #F1D3B7;
    min-width: 82px;             
}

/* Main selectors stay at 80px */
.smlbtn { width: 80px; }

/* Monthly selectors are narrower to fit 12 in a row */
.month-btn {
    width: 62px !important;
    padding: 1px 5px !important;
}

/* --- 4. HOVER & ACTIVE STATES --- */
/* Works for both .smlbtn and .month-btn regardless of which container they are in */
.smlbtn:hover:not(.active), 
.month-btn:hover:not(.active) {
    background: linear-gradient(to bottom, #ffffff 5%, #fffdf0 100%) !important;
    box-shadow: 0px 0px 8px 1px rgba(255, 255, 255, 0.8), inset 0px 1px 0px 0px #ffffff !important;
    border-color: #d4a76a !important;
    transform: scale(1.05);   
    z-index: 10;
}

/* The "Pressed In" look */
.smlbtn.active, .month-btn.active,
.smlbtn:active, .month-btn:active {
    background: #d9bba0 !important; 
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.35) !important; 
    border-color: #7a5229 !important; 
    text-shadow: none !important;
    color: #000000 !important;
    top: 1px !important;            
    transform: scale(0.97) !important; 
    cursor: default;
}

/* Prevents jitter when hovering over a button that is already selected */
.smlbtn.active:hover, .month-btn.active:hover {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.35) !important;
    transform: scale(0.97) !important;
    top: 1px !important;
    background: #d9bba0 !important;
}

.smlbtn:disabled, .month-btn:disabled {
    background: #e0e0e0 !important;
    border-color: #b0b0b0 !important;
    color: #999999 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    opacity: 0.7;
    cursor: default !important; 
}