/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {

}

body {
    font-size:12px;
    line-height: 100%;
    font-family: Verdana, "Microsoft Yahei","微软雅黑", Verdana, sans-serif, STXihei, "华文细黑";
    background: #F5F6F7;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.modal_bg {
    position: fixed;
    height: 100%;
    width: 100%;
    background: #000;
    background: rgba(0,0,0,.4);
    z-index: 100;
    display: none;
    top: 0;
    left: 0;
}

#modal {
    width:360px;
    height:189px;
    padding:8px;
    background:rgba(0,0,0,.3);
    -webkit-border-radius:8px;
    -moz-border-radius:8px;
    border-radius:8px;
    position:absolute !important;
    top:40% !important;
    left:50% !important;
    margin-top:-94px !important;
    margin-left:-180px !important;
    z-index:101;
}

#modal_heading {
    width:360px;
    height:44px;
    background-image: -webkit-linear-gradient(top, rgb(249, 249, 249), rgb(233, 233, 233));
    background-image: -moz-linear-gradient(top, rgb(249, 249, 249), rgb(233, 233, 233));
    background-image: -o-linear-gradient(top, rgb(249, 249, 249), rgb(233, 233, 233));
    background-image: -ms-linear-gradient(top, rgb(249, 249, 249), rgb(233, 233, 233));
    background-image: linear-gradient(top, rgb(249, 249, 249), rgb(233, 233, 233));
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#f9f9f9', EndColorStr='#e9e9e9');
    border-bottom:1px solid #bababa;
    -webkit-box-shadow:
        inset 0px -1px 0px #fff,
        0px 1px 3px rgba(0,0,0,.08);
    -moz-box-shadow:
        inset 0px -1px 0px #fff,
        0px 1px 3px rgba(0,0,0,.08);
    box-shadow:
        inset 0px -1px 0px #fff,
        0px 1px 3px rgba(0,0,0,.08);
    -webkit-border-radius:4px 4px 0px 0px;
    -moz-border-radius:4px 4px 0px 0px;
    border-radius:4px 4px 0px 0px;
    font-size:14px;
    font-weight:bold;
    text-align:center;
    line-height:44px;
    color:#444444;
    text-shadow:0px 1px 0px #fff;
}

#modal_content {
    width:360px;
    height:144px;
    background:#fcfcfc;
    -webkit-box-shadow:0px 1px 3px rgba(0,0,0,.25);
    -moz-box-shadow:0px 1px 3px rgba(0,0,0,.25);
    box-shadow:0px 1px 3px rgba(0,0,0,.25);
    -webkit-border-radius:0px 0px 4px 4px;
    -moz-border-radius:0px 0px 4px 4px;
    border-radius:0px 0px 4px 4px;
}

#modal_content p {
    font-size:15px;
    font-weight:normal;
    text-align:center;
    line-height:22px;
    color:#000;
    width:100%;
    float: left;
    margin:19px 0;
}

#print {
	display:none;
}


.button {
    width:138px;
    height:33px;
    font-size:15px;
    font-weight:bold;
    line-height:33px;
    color:#fff;
    text-shadow:0px 1px 0px rgba(0,0,0,.2);
    -webkit-border-radius:3px;
    -moz-border-radius:3px;
    border-radius:3px;
    -webkit-box-shadow:
        inset 0px 1px 0px rgba(255,255,255,.5),
        0px 1px 2px rgba(0,0,0,.3);
    -moz-box-shadow:
        inset 0px 1px 0px rgba(255,255,255,.5),
        0px 1px 2px rgba(0,0,0,.3);
    box-shadow:
        inset 0px 1px 0px rgba(255,255,255,.5),
        0px 1px 2px rgba(0,0,0,.3);
    float:left;
}

.button img {
    float:left;
    margin-right:5px;
    width:33px;
    height:33px;
}

.button.green {
    background: -webkit-linear-gradient(top,  rgba(170,212,79,1) 0%,rgba(116,185,49,1) 90%,rgba(106,173,45,1) 95%,rgba(96,157,41,1) 100%);
    background: -moz-linear-gradient(top,  rgba(170,212,79,1) 0%,rgba(116,185,49,1) 90%,rgba(106,173,45,1) 95%,rgba(96,157,41,1) 100%);
    background: -o-linear-gradient(top,  rgba(170,212,79,1) 0%,rgba(116,185,49,1) 90%,rgba(106,173,45,1) 95%,rgba(96,157,41,1) 100%);
    background: -ms-linear-gradient(top,  rgba(170,212,79,1) 0%,rgba(116,185,49,1) 90%,rgba(106,173,45,1) 95%,rgba(96,157,41,1) 100%);
    background: linear-gradient(top,  rgba(170,212,79,1) 0%,rgba(116,185,49,1) 90%,rgba(106,173,45,1) 95%,rgba(96,157,41,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#aad44f', endColorstr='#609d29',GradientType=0 );
    border:1px solid #5b8821;
    margin:0 5px 0 35px;
}

.button.red {
    background: -webkit-linear-gradient(top,  rgba(248,114,136,1) 0%,rgba(243,71,85,1) 90%,rgba(225,65,77,1) 95%,rgba(206,59,70,1) 100%);
    background: -moz-linear-gradient(top,  rgba(248,114,136,1) 0%,rgba(243,71,85,1) 90%,rgba(225,65,77,1) 95%,rgba(206,59,70,1) 100%);
    background: -o-linear-gradient(top,  rgba(248,114,136,1) 0%,rgba(243,71,85,1) 90%,rgba(225,65,77,1) 95%,rgba(206,59,70,1) 100%);
    background: -ms-linear-gradient(top,  rgba(248,114,136,1) 0%,rgba(243,71,85,1) 90%,rgba(225,65,77,1) 95%,rgba(206,59,70,1) 100%);
    background: linear-gradient(top,  rgba(248,114,136,1) 0%,rgba(243,71,85,1) 90%,rgba(225,65,77,1) 95%,rgba(206,59,70,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f87288', endColorstr='#ce3b46',GradientType=0 );
    border:1px solid #b0333e;
    margin:0 35px 0 5px;
}

#modal #yes, #no:hover{
	cursor:pointer;
}


a {
display:inline;
text-decoration:none;
color:#488ECB;
}

a:hover {
text-decoration:underline;
cursor:pointer;
}

ol
{
margin:0px;
padding:0px;
}

#top
{
position:fixed;
padding:0px;
top:0;
z-index:8888;
width:100%;
height:30px;
background-color:#000;
color:#fff;
}

#logo
{
float:right;
margin-right:15px;
}

#nav
{
float:left;
height:30px;
padding:9px 10px;
color:#D1D3D4;
}

#nav:hover
{
color:#fff;
background-color:#488ECB;
cursor:pointer;
text-decoration:none;
}

#nav.active
{
color:#fff;
background-color:#488ECB;
}

#sub
{
position:fixed;
top:0;
margin-top:30px;
z-index:8888;
width:100%;
height:25px;
background-color:#f1f1f1;
border-bottom:1px solid #e5e5e5;
border-top:3px solid #488ECB;
color:#000;
overflow:hidden;
}

#subnav_group
{
float:left;
}

#sub2nav_group
{
float:right;
}

#subnav
{
float:left;
height:25px;
padding:6px 10px;
color:#488ECB;
}

#subnav:hover
{
color:#fff;
background-color:#488ECB;
cursor:pointer;
text-decoration:none;
}

#subnav.active
{
color:#fff;
background-color:#488ECB;
cursor:default;
}

#sub2nav_group
{
float:right;
}

#sub2nav
{
float:left;
height:25px;
padding:6px 10px;
color:#488ECB;
}

#sub2nav:hover
{
color:#fff;
background-color:#488ECB;
cursor:pointer;
text-decoration:none;
}

#sub2nav.active
{
color:#fff;
background-color:#488ECB;
cursor:default;
}

#content
{
margin-top:50px;
padding:40px
}

#title
{
float:left;
font-size:20px;
color:#666;
border:0px solid #f00;
margin-bottom:10px;
}

#docbuttongroup
{
position:fixed;
right:50px;
border:0px solid #f00;
}

.docbutton
{
float:right;
margin-left:10px;
margin-top:-10px;
background-color:#000;
color:#D1D3D4;
padding:10px;
border:0px;
}

.docbuttonDead
{
float:right;
margin-left:10px;
margin-top:-10px;
background-color:#aaa;
color:#D1D3D4;
padding:10px;
border:0px;
}

#relatedDoc
{

}

#docbuttondrop
{
position:fixed;
margin-top:0px;
top:112px;
right:162px;
background-color:#000;
padding:5px 10px;
line-height:200%;
visibility:hidden;
}

#docbuttondrop a 
{
color:#D1D3D4;
}

#docbuttondrop a:hover
{
color:#fff;
}

.docbutton:hover
{
background-color:#488ECB;
color:#fff;
cursor:pointer;
}

#tablebg
{
clear:both;
background-color:#fff;
margin-top:30px;
padding:20px;
box-shadow: 0px 1px 3px #888;
}

#doctable
{
width:100%;
line-height:150%;
}

#doctable thead
{
font-weight:bold;
border-bottom:2px solid #000;
}

#doctable thead#doc
{
font-weight:normal;
vertical-align:bottom;
border-bottom:0px solid #000;
white-space:nowrap;
}

#doctable tr#row
{
vertical-align:top;
border-bottom:1px solid #7f7f7f;
}

#doctable tr#row:hover
{
background-color:#ffff77;
}

#doctable tr#rowNoPrint
{
vertical-align:top;
border-bottom:1px solid #7f7f7f;
}

#doctable tr#rowNoPrint:hover
{
background-color:#ffff77;
}

#doctable td
{
padding:3px 10px;
}

#doctable td#leftcol
{
padding-left:15px;
}

#trantable
{
width:100%;
}

#trantable thead
{
font-weight:bold;
border:0px solid #000; //MUST KEEP
}

#trantable tbody
{
font-weight:normal;
}

#trantable td#item
{
padding:0px 10px;
}

#editGroup
{
margin-top:20px;
margin-right:20px;
}

#editTitle
{
font-size:15px;
color:#488ECB;
}

#editField
{
margin-top:10px;
}

#editField input
{
padding: 5px 5px;
font-size: 15px;
border: 1px solid #ccc;
width:200px;
height: 23px;
}

#editField textarea
{
padding: 5px 5px;
font-size: 15px;
border: 1px solid #ccc;
width:200px;
height: 50px;
resize: none;
}

#editField select
{
padding: 5px;
padding-top:9px;
font-size: 15px;
border: 1px solid #ccc;
height: 35px;
}

#editField option
{
border:0px solid #000;
font-size:12px;
padding:5px;
}

#editField input[type="radio"]
{
float:left;
width:auto;
}

.transbutton
{
float:left;
margin-right:5px;
background-color:#000;
color:#fff;
padding:5px;
width:45px;
text-align:center;
}

.transbutton:hover
{
cursor:pointer;
}

.tablebutton
{
float:left;
margin-right:5px;
background-color:#000;
color:#fff;
padding:2px;
width:45px;
text-align:center;
}

.tablebutton:hover
{
cursor:pointer;
}

input.tablebutton
{
font-size:13px;
float:left;
margin-right:5px;
background-color:#000;
color:#fff;
padding:4px;
width:49px;
text-align:center;
border:0px;
}

.tablebutton:hover
{
cursor:pointer;
}

.tableinput
{
padding: 0px 3px;
border: 1px solid #ccc;
width:125px;
height: 23px;
}

.tabledrop
{
padding: 3px;
padding-top: 5px;
border: 1px solid #ccc;
height: 25px;
width:auto;
}

.tabledrop option
{
border:0px solid #000;
padding:3px;
}

.tabletextarea
{
padding: 5px 5px;
border: 1px solid #ccc;
resize: none;
}

#footer
{
position:fixed;
bottom:0;
z-index:9999;
width:100%;
height:30px;
background-color: #f1f1f1;
border-top:1px solid #e5e5e5;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow:none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
