/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6fa;
  color: #333;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ========== 登录页 ========== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
}
.login-logo { color: #fff; font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: 2px; }
.login-sub { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 32px; }
.login-card {
  width: 100%; max-width: 380px;
  background: #fff; border-radius: 16px;
  padding: 28px 24px 24px; box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.login-tabs { display: flex; margin-bottom: 24px; border-bottom: 2px solid #eee; }
.login-tab {
  flex: 1; text-align: center; padding: 10px 0; font-size: 15px; font-weight: 600;
  color: #999; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .25s;
}
.login-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.login-form { display: none; }
.login-form.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 500; }
.form-group input {
  width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 8px;
  padding: 0 14px; font-size: 14px; outline: none; transition: border-color .2s;
}
.form-group input:focus { border-color: #1a73e8; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-box {
  width: 100px; height: 44px; background: #e8eaf6; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; letter-spacing: 4px; color: #1a73e8;
  cursor: pointer; user-select: none;
}
.btn-primary {
  width: 100%; height: 46px; background: #1a73e8; color: #fff;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
  cursor: pointer; margin-top: 8px; transition: background .2s;
}
.btn-primary:active { background: #1557b0; }

/* ========== 主页框架 ========== */
.app-container { padding-bottom: 60px; }

/* 顶部导航 */
.top-bar {
  position: sticky; top: 0; z-index: 50;
  background: #1a73e8; color: #fff; padding: 12px 16px;
  font-size: 16px; font-weight: 600; display: flex; justify-content: flex-start; align-items: center;
}
.top-bar-right {
  position: absolute;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-title {
  padding-left: 50px;
}
.skip-toggle-btn {
  padding: 4px 10px; border: 1px solid rgba(255,255,255,0.5); border-radius: 4px;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.skip-toggle-btn:active { background: rgba(255,255,255,0.25); }
.skip-toggle-btn.active { background: #ff9800; border-color: #ffb74d; }
.skip-toggle-btn:not(.active) { background: #4caf50; border-color: #81c784; }

/* 底部导航 */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; width: 100%;
  height: 62px; background: #fff;
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid #eee; z-index: 120;
}

/* 批量不生产操作条 */
.batch-skip-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 62px;
  height: 54px;
  background: #ffffff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.batch-skip-left { font-size: 13px; color: #333; }
.batch-skip-left span { color: #1a73e8; font-weight: 700; }
.batch-skip-actions { display: flex; gap: 10px; }
.batch-skip-cancel {
  height: 26px; padding: 0 8px;
  border: 1px solid #ddd; background: #fff; color: #333;
  border-radius: 8px; font-size: 13px; cursor: pointer;
}
.batch-skip-confirm {
  height: 26px; padding: 0 8px;
  border: none; background: #e65100; color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 11px; color: #999;
  cursor: pointer; transition: color .2s;
}
.nav-item.active { color: #1a73e8; }
.nav-item .nav-icon { font-size: 22px; line-height: 1; }

/* Tab内容区 */
.tab-view { display: none; }
.tab-view.active { display: block; }

/* ========== 装配计划顶部吸顶 ========== */
.assem-sticky-header {
  position: sticky; top: 45px; z-index: 50;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

/* ========== 筛选栏 ========== */
.filter-bar {
  background: #fff; padding: 2px 16px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  border-bottom: 1px solid #eee;
}
.filter-btn {
  padding: 5px 8px; border-radius: 20px; font-size: 13px;
  background: #f0f0f0; color: #666; border: none; cursor: pointer;
  transition: all .2s;
}
.filter-btn.active { background: #1a73e8; color: #fff; }
.filter-date {
  margin-left: auto; height: 32px; border: 1px solid #ddd;
  border-radius: 8px; padding: 0 10px; font-size: 13px; color: #333;
}

/* ========== 计划表格 ========== */
.table-wrap { padding: 0 10px 10px; overflow-x: auto; }
body.batch-mode .table-wrap { padding-bottom: 130px; }
.plan-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); font-size: 13px;
}
.plan-table thead th {
  background: #1a73e8; color: #fff; font-weight: 600;
  padding: 10px 8px; text-align: center; white-space: nowrap; font-size: 12px;
}
.plan-table tbody td {
  padding: 6px 4px; text-align: center; border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.plan-table tbody tr:last-child td { border-bottom: none; }
.plan-table tbody tr:active { background: #f5f8ff; }
.plan-table .td-spec { color: #1a73e8; font-weight: 600; min-width: 100px; word-break: break-all; text-align: left; }
.plan-table .td-remark { color: #e65100; font-size: 11px; max-width: 90px; word-break: break-all; }
.plan-table .td-date { white-space: nowrap; }
.plan-table .btn-bind {
  padding: 4px 10px; font-size: 11px; border-radius: 6px;
  background: #e3f2fd; color: #1a73e8; border: none; cursor: pointer; white-space: nowrap;
}
.plan-table .td-stock-click {
  cursor: pointer;
  color: #1a73e8;
  font-weight: 600;
}
.plan-table .tag-produced { background: #e8f5e9; color: #2e7d32; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.plan-table .tag-unproduced { background: #fff3e0; color: #e65100; padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.plan-table tr.row-bound td { background: #c8e6c9; }
.plan-table tr.row-unbound td { background: #fce4ec; }
.plan-table tr.row-qty-error td { background: #efa546; }
.plan-table .td-remark-sub {
  color: #e65100; font-size: 11px; margin-top: 2px; word-break: break-all; line-height: 1.3; font-weight: 400;
}
.plan-table .td-bind-cell { text-align: left; vertical-align: middle; cursor: pointer; }
.plan-table .td-bind-cell:active { opacity: .7; }
.plan-table .bind-line { line-height: 1.5; margin-bottom: 2px; white-space: nowrap; }
.plan-table .bind-line:last-child { margin-bottom: 0; }
.plan-table .bind-tag {
  display: inline; font-size: 12px; font-weight: 600; color: #1a73e8; background: #e3f2fd;
  padding: 2px 6px; border-radius: 4px;
}
.plan-table .bind-completed {
  display: inline; font-size: 11px; font-weight: 600; color: #2e7d32; background: #e8f5e9;
  padding: 2px 6px; border-radius: 4px; margin-left: 6px; cursor: pointer;
}
.plan-table .bind-completed:active { background: #c8e6c9; }
.plan-table .bind-empty-text { color: #1a73e8; font-size: 13px; font-weight: 600; }
.plan-table .bind-skip-text { color: #999; font-size: 12px; }
.plan-table .prod-summary-row { cursor: pointer; }
.plan-table .prod-summary-row:active { background: #e3f2fd; }
.plan-table .prod-summary-btn {
  display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: #1a73e8; background: #e3f2fd; cursor: pointer;
}
.prod-back-btn {
  display: inline-block; cursor: pointer; color: #1a73e8; font-size: 13px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px; background: #e3f2fd; margin-right: 6px;
}
.view-mode-btn { border: 1.5px solid #1a73e8 !important; color: #1a73e8 !important; background: #fff !important; }
.view-mode-btn.active { background: #1a73e8 !important; color: #fff !important; }

/* ========== 卡片样式（通用） ========== */
.card-list { padding: 12px 16px; }
.card-row { display: flex; align-items: baseline; margin-bottom: 6px; font-size: 13px; }
.card-row .label { color: #999; min-width: 60px; flex-shrink: 0; }
.card-row .value { color: #333; font-weight: 500; }
.card-row .value.spec { color: #1a73e8; font-weight: 600; }
.card-row .value.remark { color: #e65100; font-size: 12px; }
.tag-produced { background: #e8f5e9; color: #2e7d32; }
.tag-unproduced { background: #fff3e0; color: #e65100; }

/* 绑定弹窗 */
/* 产品选择器和绑定产品列表统一样式 */
.bind-body { max-height: 55vh; overflow-y: auto; }
.product-picker { max-height: 55vh; overflow-y: auto; }
.pp-group, .bind-group { display: flex; margin-bottom: 10px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #f0f0f0; }
.pp-category, .bind-cat-label {
  min-width: 64px; max-width: 80px; padding: 10px 8px;
  background: #fce4ec; color: #c2185b; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-align: center;
  flex-shrink: 0;
}
.pp-list, .bind-products {
  flex: 1; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start;
  padding: 6px 8px; gap: 6px;
}
.pp-item, .bind-product-chip {
  padding: 6px 12px; font-size: 13px; border-radius: 16px;
  background: #f5f6fa; color: #333; cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.pp-item.active, .bind-product-chip.active { background: #1a73e8; color: #fff; }

.bp-btn {
  padding: 8px 32px; font-size: 14px; border-radius: 8px;
  background: #1a73e8; color: #fff; border: none; cursor: pointer; margin: 0 4px;
}
.bp-skip {
  background: #fff3e0; color: #e65100; border: 1px solid #ffcc80;
}
.bp-skip:active { background: #ffe0b2; }

/* ========== 产量信息 ========== */
.summary-section { padding: 10px 16px; }
.summary-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.summary-card {
  background: #fff; border-radius: 10px; padding: 8px 6px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.summary-card .num { font-size: 20px; font-weight: 700; color: #1a73e8; }
.summary-card .lbl { font-size: 11px; color: #999; margin-top: 2px; }
.summary-row {
  display: flex; gap: 10px; margin-bottom: 12px;
}
.summary-box {
  flex: 1; background: #fff; border-radius: 12px; padding: 14px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.summary-box .num { font-size: 20px; font-weight: 700; }
.summary-box .num.green { color: #2e7d32; }
.summary-box .num.orange { color: #e65100; }
.summary-box .lbl { font-size: 12px; color: #999; margin-top: 4px; }
.output-card {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.output-info .product-name { font-size: 14px; font-weight: 600; color: #333; }
.output-info .output-time { font-size: 12px; color: #999; margin-top: 4px; }
.output-num { font-size: 22px; font-weight: 700; color: #1a73e8; }
.output-unit { font-size: 12px; color: #999; font-weight: 400; }
.modified-tag { display: inline-block; padding: 1px 6px; font-size: 10px; background: #fff3e0; color: #e65100; border-radius: 4px; margin-left: 6px; }

/* 添加按钮 */
.fab-btn {
  position: fixed; bottom: 72px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1a73e8; color: #fff; border: none;
  font-size: 28px; line-height: 52px; text-align: center;
  box-shadow: 0 4px 14px rgba(26,115,232,.4);
  cursor: pointer; z-index: 90; display: none;
}
.fab-btn.show { display: block; }
.fab-refresh {
  position: fixed; bottom: 140px; right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1a73e8; color: #fff; border: none;
  font-size: 26px; line-height: 52px; text-align: center;
  box-shadow: 0 4px 14px rgba(26,115,232,.4);
  cursor: pointer; z-index: 200; touch-action: none; user-select: none;
}
.fab-refresh:active { opacity: .8; }
.fab-calculator {
  position: fixed; bottom: 200px; right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1a73e8; color: #fff; border: none;
  font-size: 26px; line-height: 52px; text-align: center;
  box-shadow: 0 4px 14px rgba(26,115,232,.4);
  cursor: pointer; z-index: 200; touch-action: none; user-select: none;
  display: none;
}
.fab-calculator:active { opacity: .8; }

/* 计算器弹窗样式 */
.calculator-modal {
  max-width: 320px;
}
.calc-display {
  background: #000;
  color: #fff;
  padding: 14px 16px;
  margin: 16px;
  border-radius: 8px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  word-break: break-all;
}
.calc-expr {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  text-align: right;
  min-height: 18px;
  line-height: 18px;
}
.calc-result {
  font-size: 34px;
  font-weight: 700;
  text-align: right;
  line-height: 40px;
}
.calc-buttons {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.calc-btn {
  height: 56px;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  background: #f5f5f5;
  color: #333;
}
.calc-btn:active {
  opacity: .85;
}
.calc-number {
  background: #eef2ff;
  color: #333;
}
.calc-number:active {
  background: #dbe3ff;
}
.calc-operator {
  background: #ff9500;
  color: #fff;
}
.calc-operator:active {
  background: #e6850e;
}
.calc-clear {
  background: #ff3b30;
  color: #fff;
}
.calc-clear:active {
  background: #d93429;
}
.calc-backspace {
  background: #8e8e93;
  color: #fff;
}
.calc-backspace:active {
  background: #636366;
}
.calc-equals {
  background: #34c759;
  color: #fff;
}
.calc-equals:active {
  background: #2da344;
}
.calc-equals-tall {
  grid-row: span 2;
  height: auto;
}
.calc-zero {
  grid-column: span 2;
}
.calc-decimal {
  background: #d1d1d6;
  color: #333;
}
.calc-decimal:active {
  background: #c7c7cc;
}

/* ========== 个人中心 ========== */
.profile-header {
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: #fff; padding: 20px 20px 14px; border-radius: 0 0 20px 20px;
}
.profile-name { font-size: 22px; font-weight: 700; }
.profile-detail { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; }
.profile-edit-btn {
  margin-top: 12px; padding: 6px 16px; font-size: 12px;
  background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px; cursor: pointer;
}
.section-title {
  font-size: 14px; font-weight: 600; color: #333;
  padding: 12px 16px 6px; display: flex; align-items: center; justify-content: space-between;
}
.section-title .btn-add {
  padding: 4px 14px; font-size: 12px; border-radius: 6px;
  background: #1a73e8; color: #fff; border: none; cursor: pointer;
}
.menu-list { padding: 0 16px; }
.menu-item {
  background: #fff; border-radius: 10px; padding: 10px 14px;
  margin-bottom: 6px; display: flex; align-items: center;
  justify-content: space-between; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  cursor: pointer;
}
.menu-item .mi-left { display: flex; align-items: center; gap: 10px; }
.menu-item .mi-icon { font-size: 16px; }
.menu-item .mi-text { font-size: 13px; color: #333; }
.menu-item .mi-arrow { color: #ccc; font-size: 16px; }
.product-card {
  background: #fff; border-radius: 10px; padding: 12px 16px;
  margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
}
.product-card .pc-info .pc-name { font-size: 14px; font-weight: 600; }
.product-card .pc-info .pc-process { font-size: 12px; color: #999; margin-top: 2px; }
.product-card .pc-edit {
  padding: 4px 12px; font-size: 12px; border-radius: 6px;
  background: #e3f2fd; color: #1a73e8; border: none; cursor: pointer;
}
.logout-btn {
  display: block; width: calc(100% - 32px); margin: 20px 16px;
  height: 44px; background: #fff; color: #e53935; border: 1px solid #e53935;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ========== 弹窗/模态框 ========== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.45);
  z-index: 200; display: none;
  overflow: hidden;
}
.modal-overlay.show { display: block; }
.modal-box {
  position: absolute; bottom: 0; left: 50%;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  background: #fff; width: 100%; max-width: 420px;
  border-radius: 16px 16px 0 0; padding: 20px;
  max-height: 85%; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  -webkit-animation: slideUp .25s ease; animation: slideUp .25s ease;
}
@-webkit-keyframes slideUp { from { -webkit-transform: translate(-50%,100%); } to { -webkit-transform: translate(-50%,0); } }
@keyframes slideUp { from { transform: translate(-50%,100%); } to { transform: translate(-50%,0); } }
.modal-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-close { background: none; border: none; font-size: 22px; color: #999; cursor: pointer; }
.modal-form .form-group { margin-bottom: 14px; }

/* 工序详情弹窗 */
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.process-item {
  background: #f5f6fa; border-radius: 8px; padding: 10px;
  text-align: center;
}
.process-item .pi-label { font-size: 12px; color: #999; }
.process-item .pi-value { font-size: 14px; font-weight: 600; color: #333; margin-top: 4px; }

/* ========== 日期筛选栏 ========== */
.date-filter-bar {
  background: #fff; padding: 8px 12px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  border-bottom: 1px solid #eee;
}
.df-btn {
  padding: 4px 8px; border-radius: 14px; font-size: 11px;
  background: #f0f0f0; color: #666; border: none; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.df-btn.active { background: #1a73e8; color: #fff; }
.df-btn.disabled { opacity: .4; pointer-events: none; }
.df-dates { display: flex; align-items: center; gap: 4px; width: 100%; margin-top: 4px; flex-wrap: nowrap; }
.day-nav-btn {
  height: 28px; padding: 0 12px; font-size: 16px; font-weight: 700; border: none; border-radius: 6px;
  background: #f0f0f0; color: #333; cursor: pointer; line-height: 1; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.day-nav-btn:active { background: #ddd; }
.day-nav-btn.disabled { opacity: .4; pointer-events: none; }
.df-date-btn {
  width: 45px; height: 28px; padding: 0; border: 1px solid #bbdefb; border-radius: 6px;
  background: #e3f2fd; color: #1565c0; font-size: 12px; font-weight: 600;
  cursor: pointer; flex-shrink: 0; white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.df-date-btn:active { background: #bbdefb; }
.df-btn-square {
  width: 45px; height: 28px; padding: 0; border-radius: 6px;
  background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9;
  font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.df-btn-square:active { background: #c8e6c9; }
.assem-day-btn.active {
  background: #fce4ec;
  border-color: #f48fb1;
  color: #c2185b;
}
.assem-day-btn.active:active { background: #f8bbd0; }
.df-date-input {
  height: 28px; border: 1px solid #ddd; border-radius: 6px;
  padding: 0 6px; font-size: 12px; color: #333; width: 115px;
}

/* 产量统计两行 */
.summary-cards.s2 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 0; }
.summary-card.clickable { cursor: pointer; transition: box-shadow .2s; }
.summary-card.clickable:active { box-shadow: 0 0 0 2px #1a73e8; }
.summary-card .num .unit { font-size: 12px; color: #999; font-weight: 400; margin-left: 2px; }

/* 产量表格操作按钮 */
.plan-table .btn-edit {
  padding: 3px 8px; font-size: 11px; border-radius: 4px;
  background: #e3f2fd; color: #1a73e8; border: none; cursor: pointer; margin-right: 4px;
}
.plan-table .btn-del {
  padding: 3px 8px; font-size: 11px; border-radius: 4px;
  background: #ffebee; color: #e53935; border: none; cursor: pointer;
}

/* ========== 产品点选器 ========== */
.pp-group { display: flex; align-items: flex-start; margin-bottom: 8px; gap: 8px; }
.pp-category {
  flex-shrink: 0; min-width: 46px; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-align: center;
  background: #fce4ec; color: #c62828; margin-top: 2px;
}
.pp-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.pp-item {
  padding: 10px 16px; border-radius: 10px; font-size: 15px;
  background: #f0f0f0; color: #333; border: 2px solid transparent;
  cursor: pointer; transition: all .15s;
}
.pp-item.active { background: #e3f2fd; color: #1a73e8; border-color: #1a73e8; font-weight: 600; }

/* ========== 日期导航行 ========== */
.date-nav-row {
  display: flex; align-items: center; gap: 8px;
}
.date-nav-row input[type="date"] { flex: 1; height: 40px; border: 1px solid #ddd; border-radius: 8px; padding: 0 10px; font-size: 14px; text-align: center; }
.date-nav-btn {
  white-space: nowrap; padding: 10px 14px; border-radius: 8px; font-size: 13px;
  background: #f0f0f0; color: #666; border: none; cursor: pointer; transition: all .15s;
}
.date-nav-btn:active { background: #e3f2fd; color: #1a73e8; }

/* ========== 绑定产品页分类 ========== */
.cat-section { padding: 0 16px 8px; }
.cat-title {
  font-size: 14px; font-weight: 600; color: #1a73e8; padding: 12px 0 6px;
  border-bottom: 1px solid #eee; margin-bottom: 8px;
}

/* ========== 数字键盘 ========== */
.numpad-display {
  background: #f5f6fa; border: 1px solid #ddd; border-radius: 8px;
  height: 44px; line-height: 44px; text-align: center;
  font-size: 22px; font-weight: 700; letter-spacing: 8px; color: #333;
  margin-bottom: 12px;
}
.numpad-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.numpad-btn {
  height: 48px; border-radius: 10px; border: 1px solid #e0e0e0;
  background: #fff; font-size: 18px; font-weight: 600; color: #333;
  cursor: pointer; transition: all .15s;
}
.numpad-btn:active { background: #e3f2fd; border-color: #1a73e8; }
.numpad-clear { background: #f5f6fa; color: #999; font-size: 13px; font-weight: 500; }
.numpad-confirm { background: #e53935; color: #fff; border-color: #e53935; font-size: 13px; font-weight: 600; }
.numpad-confirm:active { background: #c62828; }

/* ========== Toast 提示 ========== */
.toast-container {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  z-index: 9999; pointer-events: none; padding-top: 60px;
}
.toast-item {
  padding: 12px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 500; line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  margin-bottom: 8px; max-width: 320px; text-align: center;
  animation: toastIn .35s ease;
  pointer-events: auto;
}
.toast-item.toast-success {
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
}
.toast-item.toast-error {
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
}
.toast-item.toast-info {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
  color: #fff;
}
.toast-item.toast-out {
  animation: toastOut .3s ease forwards;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-20px) scale(.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-20px) scale(.9); }
}

/* ========== 列配置勾选 ========== */
.col-check-list { display: flex; flex-direction: column; gap: 2px; }
.col-check-item {
  display: flex; align-items: center; padding: 10px 12px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.col-check-item:active { background: #f0f4ff; }
.col-check-item input[type="checkbox"] {
  width: 18px; height: 18px; margin-right: 10px; accent-color: #1a73e8; cursor: pointer;
}
.col-check-item label { font-size: 14px; color: #333; cursor: pointer; flex: 1; }
.col-check-item .drag-handle {
  cursor: grab; color: #bbb; font-size: 18px; padding: 0 6px; user-select: none; touch-action: none;
}
.col-check-item.dragging { opacity: .5; background: #e3f2fd; }
.col-check-item.drag-over { border-top: 2px solid #1a73e8; }

/* ========== 备注按钮 ========== */
.remark-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px;
  background: #fff8e1; color: #f57f17; border: 1px solid #ffe082;
  cursor: pointer; transition: all .15s; margin-top: 4px;
}
.remark-btn:active { background: #fff3c4; }
.remark-btn .remark-preview {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: #999;
}

/* ========== 二级弹窗层级 ========== */
#outputQtyModal, #outputCatMgrModal, #outputAddProdModal { z-index: 210; }

/* ========== 产量数字键盘 ========== */
.oq-mgr-btn {
  padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
  background: #e3f2fd; color: #1a73e8; border: none; cursor: pointer; white-space: nowrap;
}
.oq-info {
  background: #f5f8ff; border-radius: 8px; padding: 12px 16px; margin-bottom: 14px;
  font-size: 17px; color: #333; line-height: 1.6; text-align: center;
}
.oq-info .oq-cat { color: #c62828; font-weight: 600; font-size: 17px; }
.oq-info .oq-name { color: #1a73e8; font-weight: 700; font-size: 17px; }
.oq-display {
  background: #f5f6fa; border: 2px solid #1a73e8; border-radius: 10px;
  height: 56px; line-height: 56px; text-align: center;
  font-size: 28px; font-weight: 700; color: #1a73e8; letter-spacing: 2px;
  margin-bottom: 14px;
}
.oq-numpad {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.oq-btn {
  height: 60px; border-radius: 12px; border: 1px solid #e0e0e0;
  background: #fff; font-size: 24px; font-weight: 600; color: #333;
  cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.oq-btn:active { background: #e3f2fd; border-color: #1a73e8; }
.oq-back { background: #f5f6fa; color: #999; font-size: 20px; }
.oq-confirm { background: #1a73e8; color: #fff; border-color: #1a73e8; font-size: 17px; }
.oq-confirm:active { background: #0d47a1; }

/* 产量页分类管理 */
.oq-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.oq-cat-item:last-child { border-bottom: none; }
.oq-cat-actions { display: flex; gap: 6px; }
.oq-cat-btn {
  padding: 4px 10px; border-radius: 6px; font-size: 11px; border: none; cursor: pointer;
}
.oq-cat-btn.edit { background: #e3f2fd; color: #1a73e8; }
.oq-cat-btn.del { background: #ffebee; color: #e53935; }

/* 产量页新增产品分类选择 */
.oq-add-cat {
  padding: 6px 12px; border-radius: 8px; font-size: 13px;
  background: #f0f0f0; color: #333; border: 2px solid transparent; cursor: pointer; transition: all .15s;
}
.oq-add-cat.active { background: #e3f2fd; color: #1a73e8; border-color: #1a73e8; font-weight: 600; }

/* ========== 图标操作按钮 ========== */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: none; background: transparent;
  border-radius: 6px; font-size: 16px; cursor: pointer;
  transition: background .15s; -webkit-tap-highlight-color: transparent;
  color: #1a73e8; padding: 0;
}
.btn-icon:active { background: #e3f2fd; }
.btn-icon-del { color: #e53935; }
.btn-icon-del:active { background: #ffebee; }

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.empty-tip { text-align: center; padding: 40px 0; color: #bbb; font-size: 14px; }
