/*common_print*/
@import "common.css";

/**

设定的分辨率是72像素/英寸时，A4纸的尺寸的图像的du像素是595×842。
A4=595x842
A3=842x1190

设定的分辨率是96像素/英寸时，A4纸的尺寸的图像的du像素是794x1123。
A4=794x1123
A3=1123x1588
 */

@page{
    margin: 0;
    @top-center {
        content: "";
    }
    @bottom-center {
        content: "";
    }
}


body {
    background-color: #eee;
    text-align: center;
    font: 14px/1.5 "宋体","simsun","Times New Roman", serif;
}

@media print {
    body{
        background-color: #fff;
    }
}


/*前分页*/
.page_break_before {
    page-break-before: always;
}

/*后分页*/
.page_break_after {
    page-break-after: always;
}

/*内分页*/
.page_break_inside {
    page-break-inside: avoid !important;
}


/*打印分页符*/
.print_page_separate {
    overflow-y: hidden;
    background-color: #eee;
    page-break-after: always;
    /*page-break-inside: avoid !important;*/
}

@media screen {
    .print_page_separate {
        height: 2em;
        line-height: 2em;
        font-family: "Microsoft Yahie", "黑体";
    }
}

@media print {
    .print_page_separate {
        height: 0;
        background-color: #fff;
    }
}

/*打印区域*/
.print_area {
    text-align: center;
}

/*
页面大小定义
A4-纵向
*/
.print_body_z {
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    height: 1083px;
    width: 770px;
    border: 0px solid #ccc;
    position: relative;

}

/*上下边距*/
.print_body_z .margin_top,
.print_body_z .margin_bottom {
    height: 60px;
}

/*窄边 上下边距*/
.print_body_z_narrow .margin_top,
.print_body_z_narrow .margin_bottom {
    height: 30px;
}

.print_body_z .table_container {
    width: 650px;
}

.print_body_z:after {
    width:100%;
    display: block;
    content: 'A4纵向，请删除页眉页脚，页边距全部设置为0。';
    font-family: "Microsoft Yahie", "黑体";
    position: absolute;
    font-size: 18px;
    text-align: center;
    color: #ccc;
    opacity: 0.6;
    bottom:12px;
    left:50%;
    transform:translateX(-50%);
    -ms-transform:translateX(-50%);
    -moz-transform:translateX(-50%);
    -webkit-transform:translateX(-50%);
}

@media print {
    .print_body_z:after{
        content: '';
        display: none;
    }
}


/*
页面大小定义
A4-横向
*/
.print_body_h {
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    width: 1083px;
    height: 770px;
    border: 0px solid #ccc;
    position: relative;
}


.print_body_h:after {
    width:100%;
    display: block;
    content: 'A4横向，请删除页眉页脚，页边距全部设置为0。';
    font-family: "Microsoft Yahie", "黑体";
    position: absolute;
    font-size: 18px;
    text-align: center;
    color: #ccc;
    opacity: 0.6;
    bottom:12px;
    left:50%;
    transform:translateX(-50%);
    -ms-transform:translateX(-50%);
    -moz-transform:translateX(-50%);
    -webkit-transform:translateX(-50%);
}

@media print {
    .print_body_h:after{
        content: '';
        display: none;
    }
}


/*上下边距*/
.print_body_h .margin_top,
.print_body_h .margin_bottom {
    height: 60px;
}

/*窄边 上下边距*/
.print_body_h_narrow .margin_top,
.print_body_h_narrow .margin_bottom {
    height: 30px;
}

.print_body_h .table_container {
    width: 963px;
}


/*
页面大小定义
A3-横向
*/

.print_body_h_a3 {
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    height: 1083px;
    width: 1540px;
    border: 0px solid #ccc;
}

.print_body_h_a3 .margin_top,
.print_body_h_a3 .margin_bottom {
    height: 60px;
}

.print_body_h_a3 .table_container {
    width: 1420px;
}

/*左、右页宽度*/
.print_body_h_a3 .print_body_h_a3_left,
.print_body_h_a3 .print_body_h_a3_right {
    width: 670px;
}

/*中间间距*/
.print_body_h_a3 .print_body_h_a3_center {
    width: 80px;
}





/*
页面大小定义
b4-横向
*/

.print_body_h_b4 {
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    height: 937px; /*297*/  /*257*/
    width: 1335px; /*420*/   /*364*/
    border: 0px solid #ccc;
}

.print_body_h_b4 .margin_top,
.print_body_h_b4 .margin_bottom {
    height: 60px;
}

.print_body_h_b4 .table_container {
    width: 1213px;
}

/*左、右页宽度*/
.print_body_h_b4 .print_body_h_b4_left,
.print_body_h_b4 .print_body_h_b4_right {
    width: 566px;
}

/*中间间距*/
.print_body_h_b4 .print_body_h_b4_center {
    width: 80px;
}


/*表格容器*/
.table_container {
    margin: 0 auto;
}

.table_container th, .table_container td {
    font-size: 14px;
}

.table_container .title {

}

.table_container .sub_title {

}

/*打印预览面板*/
.print_preview_panel{
    position: fixed;
    width: 80px;
    left: 0;
    top:0;
    min-height: 100%;
    max-height: 100%;
    overflow-y: scroll;
    background-color: #fff;
    border-right:1px solid #eee;
}

.print_preview_panel li{
    list-style: none;
}

.print_preview_panel a{
    text-decoration: none;
    color: #333;
}
.print_preview_panel a:hover{
    text-decoration: none;
    color: #f00;
}

@media print {
    .print_preview_panel{
        display:none;
    }
}
