@charset "utf-8";
/*====================================================
* 鸿蒙字体 HarmonyOS Sans SC（本地字体库 fonts/）
* 仅注册正名；本文件内所有 font-family 统一用正名，
*====================================================*/
@font-face {font-family: "HarmonyOS Sans SC"; src: url(../fonts/HarmonyOS_Sans_SC_Regular.ttf) format("truetype"); font-weight: 400; font-display: swap;}
@font-face {font-family: "HarmonyOS Sans SC"; src: url(../fonts/HarmonyOS_Sans_SC_Bold.ttf) format("truetype"); font-weight: 700; font-display: swap;}
/*====================================================
* 全站公共样式 common.css
* 使用规则：页面 <body> 必须加对应作用域类，避免全局样式互相污染：
*   - 登录页 index.asp  ：<body class="pg-login">
*   - 主页   main.asp   ：<body class="pg-main">
*   - 打印页  <body class="pg-print">
*====================================================*/

/*---------- 全局重置 ----------*/
* {margin: 0; padding: 0; box-sizing: border-box;}

/*====================================================
* 一、登录页样式（原 login.css，作用域 .pg-login）
*====================================================*/
body.pg-login {
	font-family: "HarmonyOS Sans SC", sans-serif;
	font-size: 12px;
	line-height: 27px;
	color: #999999;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fff url(../images/bg.jpg) center 0 no-repeat fixed;
	background-size: cover;
}
.pg-login a {text-decoration: none; cursor: pointer;}
.pg-login a:link, .pg-login a:visited {color: #999999;}
.pg-login a:hover, .pg-login a:active {color: #A40001;}

/* 页面主体区域 */
.pg-login .page-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 78px);
}

/* 顶部导航栏 */
.pg-login .top-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	height: 50px;
	padding-right: 20px;
	background: transparent;
}
.pg-login .top-nav a {margin: 0 10px;}
.pg-login .top-nav img.tb {
	width: 15px;
	height: 15px;
	vertical-align: middle;
	margin: -3px 5px 0 25px;
}

/* 弹窗遮罩 */
.pg-login .modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: none;
	cursor: pointer;
}
.pg-login .modal-overlay-content {
	display: flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

/* 登录表单容器 */
.pg-login .login-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pg-login .login-box {
	width: 350px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 15px;
}
.pg-login .login-box .logo {
	height: 164px;
	display: flex;
	align-items: center;
	padding-left: 43.5px;
}
.pg-login .login-box form {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.pg-login .login-box .company-name {
	height: 28px;
	display: flex;
	align-items: center;
	padding-left: 43.5px;
	color: #FFFFFF;
	font-size: 13px;
	letter-spacing: 1px;
}
.pg-login .login-box .version {
	height: 28px;
	display: flex;
	align-items: center;
	padding-left: 43.5px;
	color: #A40001;
	font-size: 11px;
}
.pg-login .login-box .spacer-top {
	height: 28px;
}
.pg-login .login-box .spacer-bottom {
	height: 28px;
}

/* 表单输入框 */
.pg-login input {
	width: 263px;
	height: 38px;
	text-align: center;
	border: none;
	padding: 0;
	font-size: 14px;
	background: rgba(0, 0, 0, 0.5);
}
.pg-login input::placeholder {color: #4d4d4d;}
/* 覆盖浏览器自动填充的背景色（排除提交按钮） */
.pg-login input:not([type="submit"]):-webkit-autofill,
.pg-login input:not([type="submit"]):-webkit-autofill:hover,
.pg-login input:not([type="submit"]):-webkit-autofill:focus,
.pg-login input:not([type="submit"]):-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.5) inset !important;
	-webkit-text-fill-color: #404040 !important;
	transition: background-color 5000s ease-in-out 0s;
}
.pg-login input[type="submit"] {
	color: #ffffff !important;
	background: rgba(141, 27, 32, 0.8) !important;
	cursor: pointer;
	margin-top: 10px;
}
.pg-login input[type="submit"]:hover {background: rgba(141, 27, 32, 1.0) !important;}
.pg-login .input-wrapper {
	position: relative;
	width: 263px;
}
.pg-login .input-wrapper + .input-wrapper {
	margin-top: 10px;
}
.pg-login .input-field {
	color: #404040;
	margin-bottom: 0;
}
.pg-login .input-field.input-password {
	padding-right: 24px;
}
.pg-login .input-wrapper:first-child .input-field {
	padding-right: 24px;
}

/* 密码显示切换按钮 */
.pg-login .password-toggle {
	position: absolute;
	right: 8px;
	top: 0;
	bottom: 0;
	height: 100%;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}
.pg-login .password-toggle img {
	width: 14px;
	height: 14px;
}

/* 用户名清除按钮 */
.pg-login .clear-btn {
	position: absolute;
	right: 8px;
	top: 0;
	bottom: 0;
	height: 100%;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}
.pg-login .clear-btn img {
	width: 14px;
	height: 14px;
}

/* 登录错误提示 */
.pg-login .login-error {
	color: #ff4444;
	font-size: 13px;
	background: rgba(0,0,0,0.3);
	padding: 5px 15px;
	border-radius: 4px;
}

/* 记住密码复选框 */
.pg-login .remember-row {
	width: 263px;
	margin-top: 8px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 2px;
}
.pg-login .remember-row input[type="checkbox"] {
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	cursor: pointer;
	background: transparent;
	accent-color: rgba(141, 27, 32, 0.8);
}
.pg-login .remember-row label {
	color: #999999;
	font-size: 12px;
	cursor: pointer;
	margin-left: 6px;
	user-select: none;
}

/* 底部信息栏 */
.pg-login .bottom-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	background: #000000;
	font-size: 11px;
}
.pg-login .bottom-footer a {margin: 0 10px;}
.pg-login .bottom-footer img {width: 15px; vertical-align: middle;}

/*====================================================
* 二、主页框架样式（原 main.css，作用域 .pg-main）
*====================================================*/
/* 主页main.asp 框架样式，使用Flexbox布局 */
body.pg-main {
	width: 100%;
	height: 100vh;
	overflow: hidden;
	font-family: "HarmonyOS Sans SC", sans-serif;
}
/* 布局容器 */
.pg-main .layout-container {display: flex; flex-direction: column; width: 100%; height: 100%;}
/* 顶部导航栏 */
.pg-main .top-frame {flex: none; height: 60px; width: 100%;}
/* 主内容区域 */
.pg-main .main-content {display: flex; flex: 1; width: 100%; overflow: hidden;}
/* 左侧边栏（仅管理员角色显示） */
.pg-main .left-frame {flex: none; width: 100px; height: 100%;}
/* 主内容区 */
.pg-main .content-frame {flex: 1; height: 100%; width: 100%;}
/* iframe样式 */
.pg-main iframe {border: none; width: 100%; height: 100%; display: block;}

/*====================================================
* 三、打印页样式（原 print.css，作用域 .pg-print）
*====================================================*/
body.pg-print {margin: 0px; background-color: #ffffff; font-family: "HarmonyOS Sans SC"; font-size: 10px; color: #fffff;}
.pg-print #nav {width: 100%; height: 35px; line-height: 35px; position: fixed; background-color: #999999;}
.pg-print #navcon {width: 700px; height: 35px; margin: auto; text-align: left;}
.pg-print #kou {width: 100%; height: 70px;}
.pg-print #con {width: 700px; min-height: 950px; margin: auto;}
.pg-print input {color: #3E3938; border: 1px solid #e6e6e6; cursor: pointer; font-family: "HarmonyOS Sans SC"; font-size: 10px;}
.pg-print table {width: 100%; border: 0; font-family: "HarmonyOS Sans SC"; font-size: 10px;}
.pg-print table td {height: 28px;}
.pg-print .bt, .pg-print .btc, .pg-print .btcc {background-color: #d9d9d9; font-weight: bold;}
.pg-print .btc, .pg-print .btt, .pg-print .btcc {border: 1px solid #d9d9d9;}
.pg-print .btc, .pg-print .btcc, .pg-print .btq {width: 10%; text-align: center;}
.pg-print .bt {text-align: left;}
.pg-print .btt {width: 25%;}
.pg-print .btq {border-bottom: 1px solid #d9d9d9;}
@media print {
	.pg-print .receipt-print .table th {
		background-color: #f1f4f7 !important;
		-webkit-print-color-adjust: exact;
	}
}
