body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #333333;
    text-align: center; /* Centers container in IE5 (Quirks Mode) */
}

/* --- CONTAINER (Centering Fix) --- */
#container {
    width: 760px; /* Standard width for 800x600 resolution */
    margin: 0 auto; /* Standard browser centering */
    text-align: left; /* Resets text alignment for child elements */
    background-color: #ffffff;
    border: 1px solid #cccccc;
}

/* --- HEADER --- */
#header {
    background-color: #003366;
    color: #ffffff;
    padding: 15px;
}
#header h1 {
    margin: 0;
    font-size: 20px;
}

/* --- DHTML NAVIGATION BAR --- */
#dhtml-nav {
    background-color: #336699;
    height: 28px;
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    position: relative;
    z-index: 500; /* Keeps navbar above main content */
}

/* --- BUTTON ITEM WRAPPER --- */
.menu-item {
    float: left;
    position: relative; /* Anchor point for dropdowns */
    margin: 0;          /* Zero spacing between buttons */
    padding: 0;
    display: inline;    /* Fixes IE6 double-margin bug */
    zoom: 1;            /* Triggers HASLAYOUT in IE5/6 */
}

/* --- STYLED DHTML BUTTON BASE --- */
.dhtml-btn {
    float: left;        /* Forced float side-by-side in IE5/6 */
    background-color: #e6e6e6;
    color: #333333;
    text-decoration: none;
    padding: 5px 12px;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #666666;
    border-bottom: 1px solid #666666;
    height: 16px;
    white-space: nowrap; /* Prevents text wrapping onto new lines */
    zoom: 1;             /* FIX: Triggers hasLayout so the entire button area is clickable */
    cursor: pointer;
}

/* --- HOVER STATE CLASS --- */
.dhtml-btn-hover {
    background-color: #d0d0d0;
    color: #000000;
}

/* --- ACTIVE PAGE CLASS (Pressed/Selected State) --- */
.dhtml-btn.active,
.dhtml-btn-active {
    background-color: #003366;
    color: #ffffff;
    border-top: 1px solid #333333;
    border-left: 1px solid #333333;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* --- DROPDOWN SUBMENU --- */
.dropdown-menu {
    position: absolute;
    top: 27px;          /* Flush with bottom of button border */
    left: 0;
    width: 150px;
    background-color: #ffffff;
    border: 1px solid #666666;
    visibility: hidden; /* Controlled via JavaScript */
    z-index: 1000;      /* Elevated above page content */
}

.dropdown-menu a {
    display: block;
    float: none;        /* Reset float inside dropdown */
    padding: 6px 10px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #eeeeee;
    zoom: 1;            /* Triggers HASLAYOUT for full hit box */
    width: 100%;        /* Forces anchor to fill full dropdown width in IE5/6 */
}

.dropdown-menu a:hover {
    background-color: #003366;
    color: #ffffff;
}

/* --- LAYOUT WRAPPER --- */
#main-body {
    width: 100%;
    background-color: #ffffff;
    position: relative;
    z-index: 1;         /* Lower stack priority than navigation */
}

/* ==========================================================================
   MULTI-LAYOUT SIDEBAR & CONTENT SYSTEM (760px Total Width)
   ========================================================================== */

/* --- SIDEBAR BASE STYLES --- */
#sidebar,
#sidebar-left,
#sidebar-right {
    float: left;
    width: 180px;
    background-color: #e6e6e6;
}

.sidebar-content {
    padding: 10px;
}

/* Specific right float for dual or right-only layouts */
#sidebar-right {
    float: right;
}

/* --- CONTENT COLUMN VARIATIONS --- */

/* 1. Full Width (No Sidebars) */
#content.full-width {
    float: none;
    width: 100%;
}

/* 2. Standard Single Sidebar (Left or Right side) */
#content {
    float: left;
    width: 580px; /* 760px total - 180px sidebar = 580px */
}

/* 3. Both Sidebars Active */
#content.two-sidebars {
    float: left;
    width: 400px; /* 760px total - (180px * 2 sidebars) = 400px */
}

.content-inner {
    padding: 15px;
}

/* --- CLEARFIX FOR FLOATS --- */
.clear {
    clear: both;
    height: 1px;
    overflow: hidden; /* Fixes IE height bugs on empty divs */
    font-size: 1px;
}

/* --- FOOTER --- */
#footer {
    background-color: #003366;
    color: #ffffff;
    text-align: center;
    padding: 10px;
}