@import "../default-skin.less";
@import "../../global/mixin.less";

@media screen {
	.s_pad .c_print,
	.s_pc .c_print {
		height:100%; position:relative;
		> .content {
			position:absolute; left:0; right:0; top:0; bottom:1+3.29*@gap; overflow:auto;
			.paper {
				width:50em; position:relative; margin:2*@gap auto; padding:3*@gap; min-height:70em; background:@bg; border:1px solid @fg-light-8-5; box-shadow:0 0 5px rgba(0,0,0,0.1);
			}
		}
		> .fn {
			background:@bg; position:absolute; bottom:0; padding:0.71*@gap; height:1+3.29*@gap; width:100%; .x_bs; border-top:1px solid @fg-light-8; text-align:center;
			button { min-width:8.57em; margin:0 0.36*@gap;}
		}
		&-h { 
			> .content {
				.paper {
					width:70em; min-height:50em;
				}
			}
		}
	}
	.s_phone .c_print {
		height:100%; position:relative;
		> .content {
			position:absolute; left:0; right:0; top:0; bottom:3.57em; overflow:auto;
			.paper {
				padding:1.43em; background:@bg; margin-bottom:1.43em; box-shadow:0 0 5px rgba(0,0,0,0.1);
			}
		}
		> .fn {
			background:@bg; position:absolute; bottom:0; display:flex; width:100%; text-align:center;
			button { border-radius:0; flex:1; height:3.13em; font-size:114%;}
		}
	}
}
@media print {
	.s_pad .c_print,
	.s_pc .c_print {
		> .content .paper { font-size:14px;}
	}
	.c_print > .fn { display:none;}
	body { position:relative; overflow:visible; background:transparent; font-size:12px;}
	.c_scroll { overflow:visible !important; position:relative !important; top:auto; left:auto; bottom:auto; right:auto;}
	.c_table .body { overflow:visible !important;}
	.s_pad .c_print,
	.s_pc .c_print {
		> .content {
			 position:relative; top:auto; left:auto; bottom:auto; right:auto; overflow:visible;
			 .paper { page-break-after:always;}
		}
	}
}
@page {
	margin:1.5cm;
}
.c_print {
	.e_hide-print { display:none;}
	.c_title {
		font-weight:bold;
		.text { color:@fg-light-1;}
	}
	.c_box { border-color:@fg;}
	.c_table {
		background:none !important; border:1px solid @fg-light-8-5;
		tr td,
		tr th { height:auto; white-space:normal; border-right:0 none; word-wrap:break-word; word-break:break-all;}
		tr th { font-weight:bold; background:none;}
		tr td.nowrap,
		tr th.nowrap { white-space:nowrap;}
		table tbody tr { background:none !important; opacity:1 !important; color:@fg;}
		table tbody tr td { background:none !important; opacity:1 !important;}
		tbody tr.on td { color:inherit;}
		.leftTop,
		.rightTop,
		.right,
		.top { display:none;}
		.body .wrapper {
			display:block;
		}
		&-print-s {
			font-size:86.57%;
		}
		&-print-xs {
			font-size:75%;
		}
		&-print-xxs {
			font-size:66.67%;
		}
	}
	.c_list-line {
		> ul > li:before { border-color:@fg !important;}
	}
	.c_list-border { border-color:@fg !important;}
	.c_param {
		.label { color:@fg-light-1;}
		&-border {
			border:1px solid @fg-light-8-5;
		}
	}
	.c_article {
		padding:0;
	}
}
html:not(.s_phone) .c_print .c_table {
	tbody tr.on td,
	tbody tr.on td * { color:@fg !important;}
}