/* Sidebar Styles */

/*
These styles are for a primary sidebar, which in my opinion is always best handled as an
absolutely positioned element and not a float that main content could wrap below.
Classes sidebar-left and sidebar-right will modify the sidebar to be fixed position float.
*/

#sidebar {
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    width: 160px;
    bottom: 0;
    font-size: 85%;
    background-color: #D6DDE5;
    border: 1px #889 solid;
    -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    /* attempt to ensure the sidebar is not too short, but most uses will override with height: 100%; */
    min-height: 350px;
}

/* Sidebar with rounded corners */
#sidebar.rounded {
    border-radius: 12px;
}

/* Fixed width left-side bar */
#sidebar.sidebar-left {
    position: fixed;
    float: left;
    width: 160px;
}

/* Fixed width right-side bar */
#sidebar.sidebar-right {
    position: fixed;
    float: right;
    width: 160px;
}

#sidebar label {
    display: inline;
    width: auto;
    text-align: left;
    margin: 0;
    padding: 0;
}

#sidebar fieldset {
    border: 0;
}

#sidebar input.submit {
    padding: 0 10px 0 10px;
    width: 70px;
}

#sidebar h3 {
    color: #666;
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0 0 5px;
}

#sidebar h4 {
    color: #666;
    font-size: 13px;
    margin: 5px 0 5px 5px;
}

#sidebar p {
    color: #222;
    font-size: 13px;
    margin: 0 0 10px 0;
}

/* no normal padding-left on the UL, each LI has it instead to make icons look proper */
#sidebar ul {
    list-style: none;
    color: #000;
    font-size: 13px;
    margin: 0 0 10px 0;
    padding-left: 0;
}

/* LI rows have a reserved 1px top/bottom border, not visible by default and same color as background,
for hover purposes.  There is no way to control position of list-item-image's and it causes the text to
not be aligned. Work-around is to use background-image instead and not have the normal padding that
the UL provides for the bullet icons.  Usage has to specify background-image. */
#sidebar ul li {
    border-width: 1px;
    border-style: solid;
    border-color: #D6DDE5;
    background-repeat: no-repeat;
    /* leave room for a 24px wide icon to left of LI */
    background-position: 8px 1px;
    padding-left: 30px;
    padding-top: 1px;
    padding-bottom: 1px;
    /* maximum icon height will be 16px */
    height: 18px;
}

#sidebar ul li a {
    padding-top: 1px;
    height: 17px;
}

#sidebar a img {
    vertical-align: text-bottom;
}

/* show rectangle over LI row when mouse hovers over LI row or if class=selected */
#sidebar li:hover {
    border: 1px solid #99a;
    background-color: #bbd;
    border-radius: 5px;
}

#sidebar li.selected {
    font-weight: bold;
    color: #000;
    background-color: #bbb;
    border-radius: 5px;
}

/* links have no left padding, already have enough on the LI row */
#sidebar ul li a {
    color: #000;
    text-decoration: none;
    margin-top: 0;
    padding: 2px 0 1px 2px;
    vertical-align: top;
    /* the following makes the hyperlinks inside each LI row clickable anywhere on the row except for the icon
    #sidebar.width - 32 for icon area width - 2 for left/right LI borders */
    display: inline-block;
    width: 120px;
}

#sidebar ul li a:hover {
    color: #000;
    font-weight: bold;
}

#sidebar #siteSelectionControl {
    margin-left: 10px;
}

#sidebar #siteSelectionControl label {
    font-weight: bold;
    color: #000;
}

/* End Sidebar Styles */
