/* ==========================================================================
   机械加工自动报价管理系统 —— 全局样式
   工业管理系统风格：深蓝 / 白 / 浅灰
   ========================================================================== */

:root {
  --primary: #1b4d7a;
  --primary-dark: #123a5c;
  --primary-light: #2f6ea3;
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #7a8899;
  --border: #e3e9f0;
  --shadow: 0 1px 2px rgba(16, 42, 67, 0.04), 0 8px 24px rgba(16, 42, 67, 0.05);

  --el-color-primary: #1b4d7a;
  --el-color-primary-light-3: #4a7ba3;
  --el-color-primary-light-5: #7ba1c0;
  --el-color-primary-light-7: #adc6d9;
  --el-color-primary-light-8: #c6d8e6;
  --el-color-primary-light-9: #e8f0f6;
  --el-color-primary-dark-2: #123a5c;
  --el-border-radius-base: 8px;
  --el-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app { height: 100%; }

/* 演示环境标识（托管演示部署时由 ENV_LABEL 控制显示） */
.env-banner {
  background: #fff4e0;
  color: #8a5a00;
  border-bottom: 1px solid #f0dcb4;
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.login-env {
  background: #fff4e0;
  color: #8a5a00;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- 启动占位 */
.boot-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(145deg, #0e2c47 0%, #1b4d7a 55%, #245d8f 100%);
  color: #fff;
}
.boot-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}
.boot-text { font-size: 14px; color: rgba(255, 255, 255, 0.75); letter-spacing: 2px; }

/* ---------------------------------------------------------------- 主框架 */
.app-shell { height: 100vh; display: flex; overflow: hidden; }

.app-aside {
  width: 218px;
  min-width: 218px;
  background: linear-gradient(180deg, #0f2f4d 0%, #123a5c 48%, #16456d 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease;
  z-index: 20;
}
.aside-brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.aside-brand .brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2f6ea3, #4d8bbd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.aside-brand .brand-text { line-height: 1.2; overflow: hidden; }
.aside-brand .brand-title { font-size: 14px; font-weight: 600; white-space: nowrap; }
.aside-brand .brand-sub { font-size: 11px; color: rgba(255, 255, 255, 0.55); margin-top: 2px; white-space: nowrap; }

.app-aside .el-menu { border-right: none; background: transparent; padding: 8px 10px; flex: 1; overflow-y: auto; }
.app-aside .el-menu-item {
  color: rgba(255, 255, 255, 0.72);
  height: 44px;
  line-height: 44px;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.18s ease;
}
.app-aside .el-menu-item .el-icon { color: rgba(255, 255, 255, 0.62); font-size: 17px; margin-right: 8px; }
.app-aside .el-menu-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.app-aside .el-menu-item:hover .el-icon { color: #fff; }
.app-aside .el-menu-item.is-active {
  background: linear-gradient(90deg, rgba(77, 139, 189, 0.92), rgba(47, 110, 163, 0.72));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.app-aside .el-menu-item.is-active .el-icon { color: #fff; }
.aside-foot {
  padding: 12px 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  line-height: 1.6;
  flex-shrink: 0;
}

.app-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-header {
  height: 58px;
  min-height: 58px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(16, 42, 67, 0.03);
  z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.header-title { font-size: 16px; font-weight: 600; color: #173a5a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-breadcrumb { color: var(--muted); font-size: 12px; margin-left: 2px; }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 20px;
  transition: background 0.18s;
  color: #2c3e50;
  font-size: 13px;
}
.user-chip:hover { background: #f2f5f9; }
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2f6ea3, #1b4d7a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.app-main { flex: 1; overflow-y: auto; padding: 20px 22px 32px; }
.mobile-menu-btn { display: none; }

.mobile-drawer .el-drawer__body { padding: 0; background: linear-gradient(180deg, #0f2f4d, #16456d); }
.mobile-drawer .el-menu { background: transparent; border-right: none; padding: 8px 10px; }
.mobile-drawer .el-menu-item { color: rgba(255, 255, 255, 0.75); border-radius: 8px; height: 44px; line-height: 44px; }
.mobile-drawer .el-menu-item.is-active { background: rgba(77, 139, 189, 0.9); color: #fff; }

/* ---------------------------------------------------------------- 页面通用 */
.page { max-width: 1440px; margin: 0 auto; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #14293e;
  letter-spacing: 0.5px;
  padding-left: 12px;
  position: relative;
  line-height: 1.3;
}
.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2f6ea3, #1b4d7a);
}
.page-sub { color: var(--muted); font-size: 13px; margin-top: 6px; padding-left: 12px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .el-input { width: 220px; }
.toolbar .el-select { width: 150px; }

.page-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.page-card + .page-card { margin-top: 14px; }
.page-card-title { font-size: 14px; font-weight: 600; color: #1f3a56; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.page-card-title::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--primary-light); }

.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll .el-table { min-width: 660px; }
.pager { display: flex; justify-content: flex-end; margin-top: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .el-form-item { margin-bottom: 16px; }

.money { font-variant-numeric: tabular-nums; font-weight: 600; color: #173a5a; }
.money.primary { color: var(--primary); }
.money.big { font-size: 22px; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.empty-tip { text-align: center; color: var(--muted); padding: 26px 0; font-size: 13px; }
.section-gap { margin-top: 14px; }

/* ---------------------------------------------------------------- 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(77, 139, 189, 0.38), transparent 60%),
    radial-gradient(900px 520px at 96% 108%, rgba(36, 93, 143, 0.34), transparent 55%),
    linear-gradient(145deg, #0c2740 0%, #123a5c 48%, #1b4d7a 100%);
}
.login-card {
  width: 392px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 36px 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-brand .brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2f6ea3, #123a5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(27, 77, 122, 0.32);
}
.login-brand .brand-title { font-size: 18px; font-weight: 700; color: #14293e; letter-spacing: 1px; }
.login-brand .brand-sub { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: 0.5px; }
.login-title { font-size: 15px; color: #2c3e50; margin: 0 0 18px; font-weight: 600; }
.login-card .el-form-item { margin-bottom: 18px; }
.login-btn { width: 100%; height: 42px; font-size: 15px; letter-spacing: 4px; }
.login-tip { margin-top: 18px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-foot { margin-top: 10px; text-align: center; color: rgba(255, 255, 255, 0.4); font-size: 12px; position: absolute; bottom: 16px; }

/* ---------------------------------------------------------------- 工作台 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4d8bbd, #1b4d7a);
}
.stat-card.amber::before { background: linear-gradient(180deg, #e6a23c, #cf7f16); }
.stat-card.green::before { background: linear-gradient(180deg, #2f9e6e, #1f7c53); }
.stat-card.gray::before { background: linear-gradient(180deg, #9aa8b8, #71808f); }
.stat-label { font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.stat-value { font-size: 26px; font-weight: 700; color: #14293e; margin-top: 8px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }

.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quick-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fbfcfe;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #1f3a56;
  font-size: 14px;
  font-weight: 500;
}
.quick-btn:hover { border-color: #b9cde0; background: #f2f7fc; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27, 77, 122, 0.08); }
.quick-btn .el-icon { font-size: 20px; color: var(--primary-light); }
.quick-btn .quick-sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

.dash-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.type-stat-list { display: flex; flex-direction: column; gap: 10px; }
.type-stat-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f8fafc; border-radius: 8px; border: 1px solid #eef2f7; }
.type-stat-name { font-size: 13px; color: #2c3e50; }
.type-stat-num { font-size: 13px; color: var(--muted); }
.type-bar { height: 6px; border-radius: 3px; background: #e4ebf3; overflow: hidden; margin-top: 6px; }
.type-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4d8bbd, #1b4d7a); }

/* ---------------------------------------------------------------- 报价表单 */
.quote-layout { display: flex; gap: 16px; align-items: flex-start; }
.quote-main { flex: 1; min-width: 0; }
.quote-side { width: 310px; flex-shrink: 0; position: sticky; top: 0; }
.side-card {
  background: linear-gradient(165deg, #123a5c 0%, #1b4d7a 60%, #245d8f 100%);
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(18, 58, 92, 0.28);
}
.side-card .side-title { font-size: 13px; color: rgba(255, 255, 255, 0.7); letter-spacing: 2px; }
.side-card .side-total { font-size: 30px; font-weight: 700; margin: 8px 0 2px; color: #fff; font-variant-numeric: tabular-nums; }
.side-card .side-total small { font-size: 13px; color: rgba(255, 255, 255, 0.65); font-weight: 400; margin-left: 6px; }
.side-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.side-row b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-divider { height: 1px; background: rgba(255, 255, 255, 0.14); margin: 8px 0; }
.side-note { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.7; margin-top: 12px; }

.type-switch { display: flex; gap: 10px; flex-wrap: wrap; }
.type-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  background: #fff;
  color: #2c3e50;
  font-size: 14px;
}
.type-card:hover { border-color: #b9cde0; }
.type-card.active { border-color: var(--primary); background: #eef4fa; color: var(--primary-dark); font-weight: 600; box-shadow: 0 4px 12px rgba(27, 77, 122, 0.12); }
.type-card .el-icon { font-size: 18px; }

.calc-hint { background: #f5f8fb; border: 1px dashed #c9d8e6; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #4c5b6b; line-height: 1.8; margin-bottom: 14px; }
.calc-hint b { color: var(--primary-dark); }

.item-rows { width: 100%; }
.item-row-head, .item-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.5fr) 64px 100px 92px 110px 40px;
  gap: 8px;
  align-items: center;
}
.process-cell { min-width: 0; display: flex; flex-direction: column; }
.item-row .process-cell .el-select { width: 100%; }
.item-row-head { font-size: 12px; color: var(--muted); padding: 0 2px 8px; }
.item-row { margin-bottom: 8px; }
.item-row .el-input, .item-row .el-select, .item-row .el-input-number { width: 100%; }
.item-row .amount { text-align: right; font-variant-numeric: tabular-nums; color: #173a5a; font-size: 13px; padding-right: 4px; }

.upload-list { display: flex; flex-direction: column; gap: 8px; }
.upload-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfd; font-size: 13px; }
.upload-item .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2c3e50; }
.upload-item .file-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------------------------------------------------------------- 详情页 */
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.detail-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dashed #edf1f6; font-size: 13px; }
.detail-item .label { color: var(--muted); min-width: 84px; flex-shrink: 0; }
.detail-item .value { color: #1f2d3d; word-break: break-all; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cost-table th, .cost-table td { padding: 9px 12px; border-bottom: 1px solid #eef2f7; text-align: right; }
.cost-table th { background: #f6f9fc; color: #4c5b6b; font-weight: 600; text-align: right; }
.cost-table th:first-child, .cost-table td:first-child { text-align: left; }
.cost-table tr.total td { font-weight: 700; color: var(--primary-dark); border-top: 2px solid #c9d8e6; }

.sheet-wrap { background: #dfe6ee; border-radius: 10px; padding: 18px; overflow: auto; }
.sheet-actions { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- 报价单（A4，导出 PDF 用） */
.quote-sheet {
  width: 794px;
  min-height: 1123px;
  background: #fff;
  margin: 0 auto;
  padding: 42px 46px 36px;
  color: #17283b;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  position: relative;
}
.quote-sheet .sheet-company { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid #1b4d7a; padding-bottom: 14px; }
.quote-sheet .company-name { font-size: 20px; font-weight: 700; color: #123a5c; letter-spacing: 1px; }
.quote-sheet .company-meta { font-size: 11px; color: #5b6b7c; line-height: 1.7; margin-top: 5px; }
.quote-sheet .company-contact { font-size: 11px; color: #5b6b7c; text-align: right; line-height: 1.7; }
.quote-sheet .sheet-title { text-align: center; font-size: 24px; font-weight: 700; letter-spacing: 10px; color: #123a5c; margin: 24px 0 18px; }
.quote-sheet .sheet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-size: 12.5px; color: #33475b; margin-bottom: 14px; }
.quote-sheet .sheet-meta .m { display: flex; gap: 6px; }
.quote-sheet .sheet-meta .m span { color: #6b7b8c; min-width: 58px; }
.quote-sheet .sheet-meta .m b { font-weight: 600; color: #17283b; }
.quote-sheet .sheet-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.quote-sheet .sheet-table th, .quote-sheet .sheet-table td { border: 1px solid #b9c8d8; padding: 8px 10px; }
.quote-sheet .sheet-table th { background: #eef4fa; color: #123a5c; font-weight: 600; text-align: center; }
.quote-sheet .sheet-table td { color: #26384a; }
.quote-sheet .sheet-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.quote-sheet .sheet-table td.center { text-align: center; }
.quote-sheet .sheet-table tfoot td { background: #f7fafc; font-weight: 600; }
.quote-sheet .sheet-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 14px; }
.quote-sheet .sheet-summary .amount-words { font-size: 12px; color: #5b6b7c; line-height: 1.7; }
.quote-sheet .sheet-summary .grand-total { font-size: 14px; color: #123a5c; text-align: right; }
.quote-sheet .sheet-summary .grand-total b { font-size: 20px; color: #0f2f4d; margin-left: 6px; }
.quote-sheet .sheet-terms { margin-top: 20px; font-size: 11.5px; color: #4c5b6b; line-height: 1.9; border-top: 1px dashed #b9c8d8; padding-top: 12px; }
.quote-sheet .sheet-terms .terms-title { font-weight: 600; color: #123a5c; margin-bottom: 4px; }
.quote-sheet .sheet-bank { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 12px; font-size: 11.5px; color: #4c5b6b; }
.quote-sheet .sheet-sign { display: flex; justify-content: space-between; margin-top: 34px; font-size: 12.5px; color: #33475b; }
.quote-sheet .sheet-sign .sign-line { border-bottom: 1px solid #9fb2c6; width: 200px; height: 30px; }
.quote-sheet .sheet-foot { position: absolute; left: 46px; right: 46px; bottom: 22px; display: flex; justify-content: space-between; font-size: 10.5px; color: #93a3b4; border-top: 1px solid #e3e9f0; padding-top: 8px; }

/* ---------------------------------------------------------------- 通用小部件 */
.tag-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.hint-line { font-size: 12px; color: var(--muted); line-height: 1.7; }
.danger-text { color: #d9534f; }
.el-table { --el-table-header-bg-color: #f6f9fc; --el-table-header-text-color: #41566c; }
.el-dialog__header { border-bottom: 1px solid #eef2f7; margin-right: 0; padding-bottom: 12px; }
.el-dialog__title { font-weight: 600; color: #173a5a; }
.el-drawer__header { margin-bottom: 0; }
.el-card { border-radius: 12px; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1100px) {
  .dash-columns { grid-template-columns: 1fr; }
  .quote-side { width: 270px; }
}

@media (max-width: 900px) {
  .app-main { padding: 14px 12px 26px; }
  .mobile-menu-btn { display: inline-flex; }
  .header-date { display: none; }
  .header-breadcrumb { display: none; }
  .page-title { font-size: 18px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; }
  .toolbar .el-input { width: 100%; }
  .toolbar .el-select { width: calc(50% - 5px); }
  .form-grid { grid-template-columns: 1fr; }
  .quote-layout { flex-direction: column; }
  .quote-side { width: 100%; position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .item-row-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfd; }
  .item-row .amount { grid-column: 1 / -1; text-align: right; }
  .sheet-wrap { padding: 8px; }
  .login-card { padding: 28px 22px 24px; }
  .type-card { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
}

@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 20px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .pager { justify-content: center; }
}

/* ---------------------------------------------------------------- 打印 */
@media print {
  body { background: #fff; }
  .app-aside, .app-header, .detail-actions, .sheet-actions, .el-tabs__header, .no-print { display: none !important; }
  .app-main { padding: 0; overflow: visible; }
  .page { max-width: none; }
  .sheet-wrap { background: #fff; padding: 0; }
  .quote-sheet { box-shadow: none; margin: 0; width: 100%; min-height: auto; }
}
