/* === FORMS === */

    form { margin:0; padding:0; }
    input, select, textarea { font:normal 11px verdana,arial,sans-serif; }

    optgroup { font-style:normal; }


    /* === HELP: This is the text above the fields === */
    
        .help_fieldset {
            background-color:#FAFAFA;
            border-bottom:1px solid #F0F0F0;
            padding:0 20px 5px 20px;
            display:none;
        }
        
        .help_fieldset p {
            margin:0;
            padding:7px 0;
            line-height:16px;
        }


    /* === FIELD SETS === */

        /* === LEVEL 1 === */
    
            fieldset {
                clear:both;
                padding:5px 0 0 0;
                margin:0 0 12px 0;
                border:1px solid #CCCCCC;
                border-top:4px solid #CCCCCC;
                background-color:#EEEEEE;
                background-image:url(img/stripes.gif);
            }
            
            legend {
                padding:3px 15px 4px 5px;
                margin:0 0 0 12px;
                font-size:1em;
                font-weight:bold;
                color:white;
                background:#999999;
            }

            /* IE Fix, see http://www.mattheerema.com/archive/getting-fieldset-backgrounds-and-legends-to-behave-in-ie */
            * html fieldset{ position: relative; margin-top:1em; padding-top:.75em; padding-top:18px; margin-bottom:20px; }
            * html legend { position:absolute; top: -.8em; left: .5em; margin-left:0; }

            legend img {
                vertical-align:middle;
                margin:-3px 3px 0 0;
            }


        /* === LEVEL 2 AND UP === */

            fieldset fieldset {
                border:1px solid #DDDDDD;
                border-top:2px solid #DDDDDD;
                padding:0;
                margin:-4px 12px 12px 12px;
                background-image:none;
                background-color:#FAFAFA;
            }

            fieldset fieldset legend {
                background-color:#EEEEEE;
                color:Black;
                border:1px solid #CCCCCC;
            }
            
            /* IE Fix */
            * html fieldset fieldset { position: relative; margin-top:1.4em; padding-top:.75em; padding-top:14px; }
            * html fieldset fieldset legend { position:absolute; top: -1em; left: .5em; margin-left:0; }


    /* === FIELD TABLES === */
    
        table.fields {
            background-color:#FAFAFA;
            width:100%;
            border-collapse:collapse;
            border-spacing:0;
            border-bottom:5px solid #FAFAFA;
            border-top:1px solid white;
            margin-bottom:14px;
            
        }
    
        table.fields th {
            font-weight:normal;
            text-align:right;
            width:125px;
            padding:4px 5px 4px 20px;
            vertical-align:top;
            border-top:1px solid #EEEEEE;
        }
        
        table.fields th.required {
            font-weight:bold;
        }
    
        table.fields td {
            padding:3px;
            vertical-align:top;
            border-top:1px solid #EEEEEE;
        }
    
        table.fields td.help {
            padding:4px 15px 4px 0;
            width:260px;
        }
        
        /* === 2ND LEVEL === */
    
            fieldset fieldset table.fields th {
                width:115px;
            }
            
            fieldset fieldset table.fields td.help {
                width:247px;
            }
            
    /* === BUTTON ROW === */
    
        .button_row {
            text-align:right;
            margin:5px 0 0 0;
            padding:5px 0 0 0;
        }
        
        .button_row input {
            padding:4px 20px;
            margin:0 0 0 5px;
        }
        
        * html .button_row input {
            padding:4px;
        }

        
        
    /* === REQUIRED FIELD VALIDATORS === */
    
        .rfv_summary {
            background-color:#FAFAFA;
            padding:5px 20px 10px 20px;
        }
        
        .rfv_summary ul {
            margin-top:5px;
            margin-bottom:0;   
        }
        
    /* === WIZARD STYLES === */

        .wizard {
            width:100%;
            margin: 10px 0 0 0;
        }
        
        .wizard td {
            vertical-align: top;
        }
        
        .wizard table.fields th {
            width:100px;
        }
        
        .wizard table.fields td.help {
            width:230px;
        }
    
        /* === NEXT / PREV BUTTONS === */
        
            input.prev_button { 
                float:left; 
                margin:0 5px 0 0;
            }
        /* === DISPLAY MODES (DRAFT, INACTIVE, ETC) === */

            table tbody tr.draft td { font-style:italic; }
            table tbody tr.inactive td {
                opacity:.5;
                filter:alpha(opacity=50);
                -moz-opacity: 0.5;
            }

/* === LIST VIEW TABLE INSIDE FIELD ROWS === */

    fieldset table.gridview_list {
        margin:0 0 12px 0;
    }

