body { margin: 0; font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.sidebar { width: 220px; position: fixed; top: 0; left: 0; bottom: 0; background: #304156; color: #fff; z-index: 100; transition: transform .25s ease; }
.sidebar .logo { height: 60px; line-height: 60px; text-align: center; font-size: 18px; font-weight: bold; border-bottom: 1px solid rgba(255,255,255,.1); }
.hamburger-btn { display: none; cursor: pointer; font-size: 22px; margin-right: 8px; vertical-align: middle; }
.sidebar .menu { list-style: none; padding: 0; margin: 0; }
.sidebar .menu li { height: 48px; line-height: 48px; padding: 0 20px; cursor: pointer; transition: background .2s; }
.sidebar .menu li:hover, .sidebar .menu li.active { background: rgba(255,255,255,.1); }
.sidebar .menu li a { color: #fff; text-decoration: none; display: block; }
.main-content { margin-left: 220px; padding: 20px; min-height: 100vh; background: #f0f2f5; transition: margin-left .25s ease; }
.main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.main-header h2 { margin: 0; font-size: 20px; color: #333; }
.user-info { font-size: 14px; color: #666; }
.user-info strong { margin-right: 10px; }
.user-info a { color: #409eff; cursor: pointer; margin-left: 10px; }
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #2d3a4b; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; width: 380px; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.login-box h2 { text-align: center; margin-bottom: 24px; color: #333; }
.login-logo { text-align: center; margin-bottom: 16px; }
.login-logo img { width: 160px; height: auto; }
.login-footer { text-align: center; margin-top: 20px; font-size: 12px; color: #333; line-height: 1.8; }
.login-footer .beian { margin-top: 4px; }
.login-footer .beian a { color: #333; text-decoration: none; }
.login-footer .beian a:hover { color: #409eff; }
.login-footer .beian img { vertical-align: middle; height: 16px; margin-right: 4px; }
.login-form { width: 100%; }
.login-form .el-form-item { margin-bottom: 22px; }
.login-form .el-form-item__content { justify-content: center; text-align: center; }
.login-form .el-form-item__content .el-input,
.login-form .el-form-item__content .el-button { width: 100%; }
.login-form .el-input__inner { text-align: center; }
.login-box .login-error { text-align: center; color: #f56c6c; margin-top: 12px; }
.login-captcha-img { height: 32px; cursor: pointer; border: 1px solid #dcdfe6; border-radius: 4px; flex: 0 0 auto; background: #f7f7f7; }
.el-table th { background: #f5f7fa !important; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.search-bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.direct-entry-search { display: flex; align-items: center; margin-bottom: 20px; }
.direct-entry-order-card { margin-bottom: 20px; }
.direct-entry-form { max-width: 500px; margin: 0 auto; }
.direct-entry-form .el-form-item { margin-bottom: 18px; }
.el-table { width: 100%; }
.el-table__body-wrapper { overflow-x: auto; }
.el-table tr.shipped-row td { background: #2c7a8e !important; color: #fff; }
.el-table tr.shipped-row:hover td { background: #236a7c !important; }
.el-table tr.overdue-project-row td { background: #fde2e2 !important; }
.el-table tr.overdue-project-row:hover td { background: #f9d0d0 !important; }

.factory-process-th { cursor: move; user-select: none; }
.pb-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #67c23a; margin: 2px 3px; cursor: pointer; }
.pb-tip { white-space: pre-line; text-align: left; font-size: 12px; line-height: 1.6; }
.pb-ratio { position: relative; height: 22px; background: #f0f2f5; border-radius: 3px; overflow: hidden; }
.pb-ratio-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.pb-ratio-text { position: absolute; left: 0; right: 0; top: 0; bottom: 0; line-height: 22px; font-size: 15px; font-weight: 600; text-align: center; color: #303133; }
td.cell-num { font-size: 16px; font-weight: 600; }
.view-toggle .el-radio-button__inner { font-size: 15px; font-weight: 700; padding: 9px 16px; }
.fb-table { --el-table-border-color: #000; --el-table-border-color-light: #000; --el-table-header-border-color: #000; }
.fb-table th.el-table__cell, .fb-table td.el-table__cell { border-color: #000 !important; }
.el-table thead th { background: #fdf0e0 !important; }
.urgent-table thead th { color: red !important; }
.label-card { text-align: center; }
.label-card .label-preview { display: inline-block; padding: 12px; background: #fff; border: 1px solid #e4e7ed; border-radius: 4px; margin-bottom: 8px; }
.label-card .label-preview canvas { width: 480px; height: 300px; }
.label-card .label-download { color: #409eff; cursor: pointer; }
.label-card .label-download:hover { color: #66b1ff; }

.export-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
}
.export-loading-spinner {
  width: 80px;
  height: 80px;
  border: 6px solid #f0f0f0;
  border-top: 6px solid #409eff;
  border-radius: 50%;
  animation: export-spin 1s linear infinite;
  margin-bottom: 24px;
}
.export-loading-text {
  font-size: 18px;
  color: #606266;
  font-weight: 500;
}

.import-tip {
  background: #f4f8ff;
  border: 1px solid #d6e4ff;
  border-left: 4px solid #409eff;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.import-tip-title { font-weight: 700; color: #409eff; margin-bottom: 6px; font-size: 14px; }
.import-tip-item { font-size: 13px; color: #606266; line-height: 1.7; margin: 4px 0; }
.import-code { background: #fff; border: 1px solid #e4e7ed; border-radius: 3px; padding: 0 4px; font-family: Consolas, monospace; color: #303133; }
.import-tip-key { font-size: 13px; font-weight: 700; color: #d03050; margin-top: 6px; }
@keyframes export-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .hamburger-btn { display: inline; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 12px; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
  .main-header { flex-wrap: wrap; gap: 8px; }
  .main-header h2 { font-size: 16px; width: 100%; }
  .user-info { font-size: 12px; }
  .el-table { font-size: 12px; }
  .el-card { margin-bottom: 12px; }
  .sidebar .logo { font-size: 16px; }
  .el-button--small { min-height: 36px; }
.qr-scan-btn { margin-left: auto; }
.sidebar-toggle-btn { display: none; min-width: 40px; padding: 8px; font-size: 18px; }

@media (max-width: 767px) {
  .sidebar-toggle-btn { display: inline-flex; }
  .desktop-col { display: none; }
}
  .el-input, .el-select, .el-input-number { width: 100% !important; }
  .el-form-item { margin-bottom: 12px; }
  .el-descriptions { font-size: 12px; }
}