/* 山东瑞天书刊有限公司 库存ERP系统 - 全局样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #f2f4f8;
    line-height: 1.6;
}
a { color: #1e6fd9; text-decoration: none; }
a:hover { color: #0b4fa8; }
input, select, textarea, button { font-family: inherit; font-size: 13px; outline: none; }

/* ---------- 顶栏 ---------- */
.topbar {
    height: 54px;
    background: linear-gradient(90deg, #16365c 0%, #1d4f8c 60%, #2468ad 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.tb-left { display: flex; align-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.logo-icon {
    width: 34px; height: 34px; line-height: 34px; text-align: center;
    background: #ffb62e; color: #16365c; border-radius: 6px;
    font-weight: 700; font-size: 18px;
}
.logo-text b { display: block; font-size: 15px; letter-spacing: .5px; }
.logo-text i { display: block; font-size: 11px; opacity: .75; font-style: normal; }
.menu-toggle {
    display: none; background: rgba(255,255,255,.15); border: 0; color: #fff;
    width: 32px; height: 32px; border-radius: 4px; cursor: pointer; font-size: 16px;
}
.tb-right { display: flex; align-items: center; gap: 18px; }
.tb-date { font-size: 12px; opacity: .85; }
.tb-user { display: flex; align-items: center; gap: 8px; }
.avatar {
    width: 30px; height: 30px; border-radius: 50%; background: #ffb62e; color: #16365c;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.u-info b { font-size: 13px; display: block; line-height: 1.2; }
.u-info i { font-size: 11px; opacity: .8; font-style: normal; display: block; }
.tb-btn {
    color: #fff !important; background: rgba(255, 255, 255, .16);
    padding: 4px 10px; border-radius: 3px; font-size: 12px;
}
.tb-btn:hover { background: rgba(255, 255, 255, .3); }
.tb-btn.danger { background: rgba(220, 60, 60, .75); }

/* ---------- 布局 ---------- */
.layout { display: flex; padding-top: 54px; min-height: 100%; }
.sidebar {
    width: 216px; background: #1e2b3c; color: #cbd5e1; position: fixed;
    top: 54px; bottom: 0; left: 0; overflow-y: auto; z-index: 50;
    transition: transform .2s;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #3b4d63; border-radius: 3px; }
.main { flex: 1; margin-left: 216px; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 14px 16px 30px; }
.footer { text-align: center; color: #98a4b3; font-size: 12px; padding: 12px; border-top: 1px dashed #e3e8ef; background: #fff; }

/* ---------- 菜单 ---------- */
.nav { padding: 8px 0 20px; }
.nav-single a {
    display: flex; align-items: center; gap: 8px; padding: 11px 18px;
    color: #dfe6ef; font-size: 13px;
}
.nav-single a:hover, .nav-single a.active { background: #14a08a; color: #fff; }
.nav-group { margin-top: 2px; }
.nav-title {
    display: flex; align-items: center; gap: 8px; padding: 11px 16px; cursor: pointer;
    color: #e8edf4; font-weight: 600; font-size: 13px; user-select: none;
    border-left: 3px solid transparent;
}
.nav-title:hover { background: #26374b; }
.nav-title .ic { font-size: 15px; width: 18px; text-align: center; }
.nav-title .arrow { margin-left: auto; font-size: 11px; transition: transform .2s; opacity: .6; }
.nav-group.open .arrow { transform: rotate(180deg); }
.nav-group ul { display: none; background: #17222f; padding-bottom: 4px; }
.nav-group.open ul { display: block; }
.nav-group ul li a {
    display: block; padding: 8px 16px 8px 37px; color: #a9b7c6; font-size: 12.5px;
    border-left: 3px solid transparent;
}
.nav-group ul li a:hover { color: #fff; background: #22344a; }
.nav-group ul li a.active { color: #fff; background: #14a08a; border-left-color: #ffb62e; }
.side-foot { padding: 12px 16px; color: #55657a; font-size: 11px; }

/* ---------- 面包屑 ---------- */
.crumb {
    background: #fff; padding: 10px 16px; border-bottom: 1px solid #e9edf2;
    font-size: 12.5px; color: #7b8794;
}
.crumb .sep { margin: 0 8px; color: #cbd2d9; }
.crumb .cur { color: #16365c; font-weight: 600; }

/* ---------- 提示 ---------- */
.alerts { padding: 10px 16px 0; }
.alert {
    padding: 10px 14px; border-radius: 4px; margin-bottom: 8px; position: relative;
    font-size: 13px; border: 1px solid transparent; animation: slideIn .25s;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }
.alert-success { background: #eafaf1; border-color: #b7e4c7; color: #17744a; }
.alert-error { background: #fdecec; border-color: #f5c2c7; color: #a12020; }
.alert-warning { background: #fff8e1; border-color: #ffe6a7; color: #8a6100; }
.alert-info { background: #eaf3ff; border-color: #bcd8f7; color: #1a4f8a; }
.alert-x { position: absolute; right: 12px; top: 8px; cursor: pointer; opacity: .5; font-size: 16px; }
.alert-x:hover { opacity: 1; }

/* ---------- 面板 / 卡片 ---------- */
.panel { background: #fff; border-radius: 5px; box-shadow: 0 1px 3px rgba(20, 40, 70, .07); margin-bottom: 14px; }
.panel-head {
    padding: 11px 16px; border-bottom: 1px solid #eef1f5; display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.panel-head h3 { font-size: 14px; color: #16365c; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.panel-head h3::before { content: ""; width: 3px; height: 14px; background: #14a08a; border-radius: 2px; }
.panel-body { padding: 14px 16px; }
.panel-body.tight { padding: 0; }

/* ---------- 搜索栏 ---------- */
.filter {
    background: #fff; padding: 12px 16px; border-radius: 5px; margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(20, 40, 70, .07);
    display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end;
}
.filter .fi { display: flex; align-items: center; gap: 6px; }
.filter label { color: #617080; white-space: nowrap; font-size: 12.5px; }
.filter input[type=text], .filter input[type=number], .filter input[type=date], .filter select {
    border: 1px solid #d9e0e8; border-radius: 3px; padding: 6px 9px; min-width: 130px; background: #fff;
}
.filter .actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- 页内切换标签 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tabs .tab {
    background: #fff; border: 1px solid #dde4ec; border-radius: 20px; padding: 6px 16px;
    font-size: 13px; color: #4a5764; text-decoration: none;
}
.tabs .tab:hover { border-color: #14a08a; color: #14a08a; }
.tabs .tab.on { background: #14a08a; border-color: #14a08a; color: #fff; font-weight: 600; }

/* 快捷筛选小按钮（日期区间等） */
.btn-mini {
    display: inline-block; background: #f4f7fa; border: 1px solid #dde4ec; border-radius: 4px;
    padding: 1px 8px; margin: 0 2px; font-size: 11.5px; color: #5a6b7b; text-decoration: none;
}
.btn-mini:hover { border-color: #14a08a; color: #14a08a; }
.btn-mini.on { background: #14a08a; border-color: #14a08a; color: #fff; font-weight: 600; }

/* ---------- 表单 ---------- */
.form-row { display: flex; flex-wrap: wrap; gap: 0 18px; }
.form-item { margin-bottom: 14px; flex: 1 1 300px; min-width: 0; }
.form-item.span2 { flex: 1 1 100%; }
.form-item > label { display: block; color: #556; font-size: 12.5px; margin-bottom: 5px; }
.req::after { content: " *"; color: #e03131; font-weight: 700; }
.tips { color: #97a3af; font-size: 11.5px; margin-top: 4px; }
.err { color: #d0342c; font-size: 12px; margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=tel], input[type=email], select, textarea {
    width: 100%; border: 1px solid #d9e0e8; border-radius: 3px; padding: 7px 10px;
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    border-color: #14a08a; box-shadow: 0 0 0 2px rgba(20, 160, 138, .13);
}
input[readonly], input:disabled, select:disabled { background: #f5f7fa; color: #8994a0; }
textarea { min-height: 68px; resize: vertical; }
table input, table select { padding: 4px 6px; border-radius: 3px; border: 1px solid #dbe2ea; }
.form-actions { padding: 14px 16px; background: #fafbfc; border-top: 1px solid #eef1f5; display: flex; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block; padding: 6px 14px; border-radius: 3px; border: 1px solid #d5dde5;
    background: #fff; color: #3d4a57; cursor: pointer; font-size: 12.5px; line-height: 1.5;
    transition: all .15s; white-space: nowrap; text-align: center;
}
.btn:hover { border-color: #14a08a; color: #14a08a; }
.btn-primary { background: #14a08a; border-color: #14a08a; color: #fff; }
.btn-primary:hover { background: #0f8672; border-color: #0f8672; color: #fff; }
.btn-blue { background: #1e6fd9; border-color: #1e6fd9; color: #fff; }
.btn-blue:hover { background: #165ab5; color: #fff; }
.btn-warn { background: #f0932b; border-color: #f0932b; color: #fff; }
.btn-warn:hover { background: #d97e17; color: #fff; }
.btn-danger { background: #e03131; border-color: #e03131; color: #fff; }
.btn-danger:hover { background: #c02323; color: #fff; }
.btn-sm { padding: 3px 9px; font-size: 12px; }
.btn-lg { padding: 10px 26px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: 6px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.data th {
    background: #f4f7fa; color: #4a5764; font-weight: 600; text-align: left;
    padding: 9px 10px; border-bottom: 1px solid #e4eaf0; white-space: nowrap;
    position: sticky; top: 0; z-index: 2;
}
table.data td { padding: 8px 10px; border-bottom: 1px solid #f0f3f6; vertical-align: middle; }
table.data.compact th { padding: 6px 8px; }
table.data.compact td { padding: 5px 8px; }
.panel-sub { margin: 6px 0; font-size: 13px; color: #334155; }
table.data tbody tr:hover { background: #f6fbfa; }
table.data tr.empty:hover { background: none; }
table.data .num { text-align: right; font-family: Consolas, Menlo, monospace; }
table.data .cen { text-align: center; }
table.data .money { color: #c2410c; font-family: Consolas, Menlo, monospace; }
table.data .strong { font-weight: 600; color: #16365c; }
table.data tfoot td { background: #fbfcfd; font-weight: 700; color: #16365c; border-top: 2px solid #e4eaf0; }
.empty-box { text-align: center; color: #a4afba; padding: 34px 0; }
.empty-box span { display: block; font-size: 30px; opacity: .35; margin-bottom: 6px; }
.mono { font-family: Consolas, Menlo, monospace; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-block; padding: 1px 7px; border-radius: 2px; font-size: 11.5px;
    line-height: 1.7; white-space: nowrap;
}
.tag-green { background: #e5f7f1; color: #12866a; border: 1px solid #b6e6d8; }
.tag-red { background: #fdecec; color: #c22; border: 1px solid #f6c9c9; }
.tag-orange { background: #fff5e6; color: #b76b00; border: 1px solid #ffdfae; }
.tag-blue { background: #eaf3ff; color: #1a5fbf; border: 1px solid #c6ddfa; }
.tag-gray { background: #f1f3f5; color: #6b7681; border: 1px solid #e0e5ea; }
.tag-teal { background: #e6f7fb; color: #0d7f92; border: 1px solid #b9e6ef; }
.tag-purple { background: #f3ecfd; color: #7048b6; border: 1px solid #ded0f7; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 5px; padding: 12px 16px; flex-wrap: wrap; }
.pg-info { color: #8b98a5; margin-right: 10px; font-size: 12px; }
.pg-btn {
    min-width: 30px; text-align: center; padding: 4px 9px; border: 1px solid #dde4ec;
    border-radius: 3px; background: #fff; color: #45525f; font-size: 12px;
}
.pg-btn:hover { border-color: #14a08a; color: #14a08a; }
.pg-btn.cur { background: #14a08a; border-color: #14a08a; color: #fff; }
.pg-dot { color: #aab5c0; padding: 0 2px; }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
    background: #fff; border-radius: 5px; padding: 16px 18px; display: flex; align-items: center;
    gap: 14px; box-shadow: 0 1px 3px rgba(20, 40, 70, .07); position: relative; overflow: hidden;
}
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, #14a08a); }
.stat .s-ic { font-size: 26px; width: 46px; height: 46px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; background: rgba(20,160,138,.1); flex: 0 0 auto; }
.stat .s-v { font-size: 21px; font-weight: 700; color: #16365c; line-height: 1.25; font-family: Consolas, Menlo, monospace; }
.stat .s-t { font-size: 12px; color: #7c8894; }
.stat .s-x { font-size: 11px; color: #a9b4bf; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- 明细表（单据） ---------- */
.doc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.doc-table th { background: #f4f7fa; padding: 8px 9px; border: 1px solid #e6ebf1; font-weight: 600; color: #4a5764; white-space: nowrap; }
.doc-table td { border: 1px solid #eef1f5; padding: 5px 7px; }
.doc-table td input, .doc-table td select { border: 1px solid transparent; background: transparent; padding: 4px 6px; }
.doc-table td input:focus, .doc-table td select:focus { border-color: #14a08a; background: #fff; }
.doc-table .calc { text-align: right; font-family: Consolas, Menlo, monospace; color: #b03; padding-right: 10px; }
.row-del { color: #e03131; cursor: pointer; font-weight: 700; }
.idx { color: #97a3af; text-align: center; width: 40px; }

/* ---------- 详情描述列表 ---------- */
.desc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
.desc .di { display: flex; border-bottom: 1px dashed #eef1f5; padding: 8px 0; }
.desc .di dt { width: 110px; color: #7c8894; flex: 0 0 auto; }
.desc .di dd { flex: 1; color: #2d3843; word-break: break-all; }

/* ---------- 打印 ---------- */
.print-doc { background: #fff; padding: 26px 34px; }
.print-doc h1 { text-align: center; font-size: 20px; letter-spacing: 2px; margin-bottom: 4px; color: #000; }
.print-doc .sub { text-align: center; color: #666; font-size: 12px; margin-bottom: 16px; }
.print-doc .meta { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 10px; color: #333; }
.print-doc table { width: 100%; border-collapse: collapse; font-size: 12px; }
.print-doc table th, .print-doc table td { border: 1px solid #333; padding: 6px 8px; }
.print-doc table th { background: #f2f2f2; }
.print-doc .sign { margin-top: 28px; display: flex; justify-content: space-between; font-size: 12.5px; color: #333; }

/* ---------- 登录页 ---------- */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #14304f 0%, #1d5b8a 45%, #14a08a 100%);
    position: relative; overflow: hidden; padding: 20px 0 62px;
}
.login-page::before, .login-page::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.login-page::before { width: 520px; height: 520px; top: -180px; right: -120px; }
.login-page::after { width: 380px; height: 380px; bottom: -160px; left: -100px; }
.login-box {
    width: 900px; max-width: 94vw; background: #fff; border-radius: 8px; overflow: hidden;
    display: flex; box-shadow: 0 22px 60px rgba(0, 0, 0, .32); position: relative; z-index: 2;
}
.login-side {
    width: 46%; padding: 40px 34px; color: #fff;
    background: linear-gradient(160deg, #16365c, #1a6a78);
    display: flex; flex-direction: column; justify-content: space-between;
}
.login-side h1 { font-size: 22px; line-height: 1.45; margin-bottom: 8px; }
.login-side .en { font-size: 12px; opacity: .6; letter-spacing: 1px; }
.login-side ul { list-style: none; margin-top: 22px; }
.login-side ul li { font-size: 12.5px; opacity: .88; padding: 5px 0 5px 18px; position: relative; }
.login-side ul li::before { content: "▸"; position: absolute; left: 0; color: #ffb62e; }
.login-side .foot { font-size: 11.5px; opacity: .55; }
.login-form { flex: 1; padding: 42px 44px; }
.login-form h2 { font-size: 19px; color: #16365c; margin-bottom: 4px; }
.login-form .co { font-size: 13px; color: #14a08a; font-weight: 600; margin-bottom: 24px; }
.login-form .lf { margin-bottom: 16px; }
.login-form .lf label { display: block; font-size: 12.5px; color: #667; margin-bottom: 6px; }
.login-form .ip { position: relative; }
.login-form .ip .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); opacity: .45; }
.login-form .ip input { padding-left: 32px; height: 38px; }
.login-err {
    background: #fdecec; color: #b02020; border: 1px solid #f5c2c7; padding: 8px 12px;
    border-radius: 3px; font-size: 12.5px; margin-bottom: 14px;
}
/* 登录页底部：版权 + ICP/公安备案 */
.login-copy {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 0 14px 12px; text-align: center; font-size: 11.5px; line-height: 1.9;
    color: rgba(255, 255, 255, .6); text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.login-copy a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.login-copy a:hover { color: #fff; text-decoration: underline; }
.login-copy .lc-sep { margin: 0 9px; opacity: .45; }

.checkbox { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #667; }
.checkbox input { width: auto; }

/* ---------- 快捷入口 ---------- */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.quick a {
    display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px;
    background: #fbfcfd; border: 1px solid #eef1f5; border-radius: 5px; color: #47545f; font-size: 12.5px;
}
.quick a:hover { border-color: #14a08a; color: #14a08a; background: #f2fbf9; }
.quick a b { font-size: 22px; font-weight: 400; }

/* ---------- 图表条 ---------- */
.bar-list { list-style: none; }
.bar-list li { margin-bottom: 11px; }
.bar-list .bl-h { display: flex; justify-content: space-between; font-size: 12px; color: #556; margin-bottom: 3px; }
.bar-list .bl-b { height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.bar-list .bl-b i { display: block; height: 100%; background: linear-gradient(90deg, #14a08a, #43c6ac); border-radius: 4px; }

/* ---------- 工具类 ---------- */
.text-right { text-align: right; }
.text-center { text-align: center; }
.muted { color: #97a3af; }
.danger-text { color: #d0342c; }
.success-text { color: #12866a; }
.warn-text { color: #cf7000; }
.mt10 { margin-top: 10px; }
.mb10 { margin-bottom: 10px; }
.nowrap { white-space: nowrap; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.ml-auto { margin-left: auto; }
.small { font-size: 12px; }
.ban-mark { color: #d0342c; font-weight: 700; }

/* ---------- 财务 & 统计报表模块 ---------- */
.print-bar { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
table.data tr.overdue td { background: #fff6f6; }
table.data tr.sub-row td { background: #fbfcfd; font-weight: 600; color: #16365c; }
table.data tr.detail-row td { background: #f7fafd; padding: 10px 12px; }
table.data td.chk { width: 34px; text-align: center; }
table.data td.amt { text-align: right; font-family: Consolas, Menlo, monospace; white-space: nowrap; }
.money-big { font-size: 22px; font-weight: 700; font-family: Consolas, Menlo, monospace; color: #16365c; }
.fin-note { background: #fbfcfd; border: 1px dashed #e2e8f0; border-radius: 4px; padding: 10px 12px; font-size: 12px; color: #617080; line-height: 1.8; }
.mini-bar { display: inline-block; width: 70px; height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.mini-bar i { display: block; height: 100%; background: #14a08a; }
.mini-bar i.bad { background: #e03131; }
.rpt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rpt-card { display: block; background: #fff; border: 1px solid #e6ecf2; border-radius: 6px; padding: 16px; }
.rpt-card:hover { border-color: #14a08a; box-shadow: 0 2px 10px rgba(20, 160, 138, .12); }
.rpt-card b { display: block; font-size: 15px; color: #16365c; margin-bottom: 6px; }
.rpt-card span { display: block; font-size: 12px; color: #7c8894; line-height: 1.7; }
.rpt-card .rc-ic { font-size: 24px; display: block; margin-bottom: 8px; }
.linkbtn { background: none; border: 0; padding: 0; margin: 0; color: #1e6fd9; font-size: 12px; cursor: pointer; font-family: inherit; line-height: inherit; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: #e03131; }
.sign-row { display: flex; gap: 30px; justify-content: flex-end; margin-top: 26px; font-size: 12.5px; color: #556; }
.sign-row span { min-width: 130px; border-top: 1px solid #b7c2cd; padding-top: 4px; text-align: center; }
.settle-sum { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline; }
.settle-sum div { font-size: 12.5px; color: #617080; }
.settle-sum b { font-size: 17px; color: #16365c; font-family: Consolas, Menlo, monospace; }
/* 报表打印页头（仅打印时显示） */
.rpt-print-head { display: none; }
.rpt-print-head h2 { font-size: 18px; text-align: center; margin: 0 0 4px; }
.rpt-print-head .rph-meta { text-align: center; font-size: 12px; color: #444; margin-bottom: 8px; }
.rpt-print-head .rph-meta span { margin: 0 10px; }
.rpt-sign { display: none; }
table.data thead th.grp { background: #eef4fb; text-align: center; font-size: 12px; }
table.data td.grp-sep, table.data th.grp-sep { border-left: 2px solid #cfd8e3; }

@media print {
    .rpt-print-head { display: block; }
    .rpt-sign { display: flex; gap: 40px; justify-content: flex-end; margin-top: 18px; font-size: 12px; color: #333; }
    .rpt-sign span { min-width: 140px; border-top: 1px solid #666; padding-top: 4px; text-align: center; }
    table.data { font-size: 11px; }
}

@media print {
    table.data tr.overdue td,
    table.data tr.detail-row td { background: #fff !important; }
    .rpt-card { border-color: #999; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .sidebar { transform: translateX(-100%); box-shadow: 2px 0 12px rgba(0,0,0,.3); }
    body.side-open .sidebar { transform: none; }
    .main { margin-left: 0; }
    .login-side { display: none; }
    .tb-date { display: none; }
}

/* ---------- 打印样式 ---------- */
@media print {
    .topbar, .sidebar, .crumb, .alerts, .footer, .no-print, .pager { display: none !important; }
    .layout { padding-top: 0; }
    .main { margin-left: 0; }
    body { background: #fff; }
    .panel { box-shadow: none; border: 0; }
    .content { padding: 0; }
    .print-doc { padding: 0; }
}
