/* 华瑞 · 员工档案排版 */
.hr-emp-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 20px;
  min-width: 0;
}

.hr-emp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
}

.hr-emp-toolbar .hr-emp-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.hr-emp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.hr-emp-field input,
.hr-emp-field select {
  min-width: 160px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line, #d8e3f0);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  box-sizing: border-box;
}

.hr-emp-field input#hrEmpKw {
  min-width: 220px;
}

.hr-emp-count {
  font-size: 13px;
  color: #64748b;
  padding-bottom: 8px;
  white-space: nowrap;
}

.hr-emp-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.hr-emp-chips > .hint {
  margin: 0 4px 0 0;
  color: #94a3b8;
}

.hr-emp-chip {
  appearance: none;
  border: 1px solid var(--line, #d8e8f0);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.2;
}

.hr-emp-chip b {
  margin-left: 4px;
  font-weight: 650;
}

.hr-emp-chip.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.hr-emp-hint {
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.hr-emp-table-wrap {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  overflow: auto;
  max-height: min(68vh, 720px);
}

.hr-emp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.hr-emp-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  white-space: nowrap;
}

.hr-emp-table tbody td {
  padding: 14px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #1e293b;
}

.hr-emp-table tbody tr:last-child td {
  border-bottom: none;
}

.hr-emp-table tbody tr.hr-emp-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.hr-emp-table tbody tr.hr-emp-row:hover {
  background: #f0fdfa;
}

.hr-emp-table .hr-emp-name {
  font-weight: 650;
  color: #0f172a;
}

.hr-emp-table .hr-emp-muted {
  color: #94a3b8;
}

.hr-emp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.hr-emp-badge--k1 {
  background: #ecfdf5;
  color: #047857;
}

.hr-emp-badge--k2 {
  background: #fff7ed;
  color: #c2410c;
}

.hr-emp-badge--k0 {
  background: #f1f5f9;
  color: #64748b;
}

.hr-emp-ops {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hr-emp-ops .btn-sm {
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 6px;
  font-size: 12px;
}

.hr-emp-empty {
  text-align: center;
  color: #94a3b8;
  padding: 36px 16px !important;
}

/* 弹窗 */
#hrEmpOverlay #hrEmpForm {
  background: #fff;
  border-radius: 14px;
  width: min(880px, 94vw);
  max-height: 90vh;
  overflow: auto;
  padding: 24px 28px 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
}

.hr-emp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.hr-emp-modal-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: #0f172a;
}

.hr-emp-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 18px;
}

.hr-emp-modal-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.hr-emp-modal-grid input,
.hr-emp-modal-grid select {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  font-size: 13px;
  box-sizing: border-box;
  background: #fff;
}

.hr-emp-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.hr-emp-modal-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .hr-emp-toolbar {
    padding: 12px;
  }
  .hr-emp-field input#hrEmpKw {
    min-width: 100%;
  }
  .hr-emp-table thead th,
  .hr-emp-table tbody td {
    padding: 10px 10px;
  }
}

/* 招聘入职 */
.hr-recruit-page {
  gap: 18px;
}

.hr-recruit-top {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hr-recruit-top {
    grid-template-columns: 1fr;
  }
}

.hr-recruit-info {
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
}

.hr-recruit-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0f172a;
}

.hr-recruit-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hr-recruit-status.is-on {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.hr-recruit-status.is-off {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.hr-recruit-link {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  word-break: break-all;
  color: #475569;
  line-height: 1.5;
}

.hr-recruit-qr-card {
  text-align: center;
  padding: 14px 12px 12px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
}

.hr-recruit-qr-card img {
  width: 168px;
  height: 168px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 6px;
}

.hr-recruit-qr-card.is-off img {
  opacity: 0.45;
  filter: grayscale(0.65);
}

.hr-recruit-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.hr-recruit-list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 0 2px;
}

.hr-recruit-list-bar h4 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
  flex: 0 0 auto;
}

.hr-recruit-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.hr-recruit-count {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  margin-left: auto;
}

.hr-recruit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.hr-recruit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-height: 32px !important;
  min-width: 0;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: #334155;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.hr-recruit-btn--hire {
  background: var(--accent, #4f6ef7);
  border-color: var(--accent, #4f6ef7);
  color: #fff;
}

.hr-recruit-btn--danger {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

.hr-recruit-ops {
  white-space: nowrap;
  width: auto;
  min-width: 168px;
  padding-right: 12px !important;
  vertical-align: middle;
}

.hr-recruit-ops-th {
  min-width: 168px;
}

.hr-recruit-ops .hr-recruit-btn {
  margin-right: 4px;
}

.hr-recruit-ops .hr-recruit-btn:last-child {
  margin-right: 0;
}

.hr-recruit-time {
  white-space: nowrap;
  font-size: 12px;
  color: #64748b;
}

.hr-recruit-list-head h4 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.hr-recruit-list-head span {
  font-size: 13px;
  color: #64748b;
}

.hr-recruit-row {
  cursor: pointer;
}

.hr-recruit-row:hover td {
  background: #f8fafc;
}

.hr-rec-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hr-rec-badge--submitted {
  background: #eff6ff;
  color: #1d4ed8;
}

.hr-rec-badge--hired {
  background: #ecfdf5;
  color: #047857;
}

.hr-rec-badge--rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.hr-rec-badge--health {
  background: #fff7ed;
  color: #c2410c;
}

.hr-recruit-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(15, 23, 42, 0.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.hr-recruit-detail.is-open {
  display: flex;
}

.hr-recruit-detail-box {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.hr-recruit-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.hr-recruit-detail-head h3 {
  margin: 0;
  font-size: 17px;
}

.hr-recruit-detail-body {
  padding: 16px 18px 18px;
}

.hr-recruit-kv {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.hr-recruit-kv dt {
  margin: 0;
  color: #64748b;
}

.hr-recruit-kv dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

.hr-recruit-att {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.hr-recruit-att a {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  color: #1d4ed8;
  text-decoration: none;
}

.hr-recruit-detail-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.hr-recruit-detail-foot .hr-recruit-btn {
  margin: 0;
}

.hr-recruit-detail-foot:empty {
  display: none;
  padding: 0;
  border: 0;
}

.hr-emp-ops .btn-sm.danger {
  color: #b91c1c;
  border-color: #fecaca;
}

/* 门禁 / 通行记录 */
.hr-att-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 20px;
  min-width: 0;
}

.hr-att-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
}

.hr-att-head h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
}

.hr-att-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 640px;
}

.hr-att-desc strong {
  color: #0f766e;
  font-weight: 650;
}

.hr-att-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.hr-att-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0;
  min-height: 36px;
  padding: 8px 16px !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: #334155;
  box-sizing: border-box;
  cursor: pointer;
  white-space: nowrap;
}

.hr-att-btn--primary {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.hr-att-btn:hover {
  filter: brightness(0.97);
}

.hr-att-machine {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
}

.hr-att-machine-loading {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.hr-att-machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px 16px;
}

.hr-att-machine-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hr-att-machine-item span {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hr-att-machine-item b {
  font-size: 14px;
  color: #0f172a;
  font-weight: 650;
}

.hr-att-machine-item b.is-online {
  color: #047857;
}

.hr-att-machine-item b.is-offline {
  color: #b91c1c;
}

.hr-att-machine-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.hr-att-machine-note.is-err {
  color: #b91c1c;
}

.hr-att-msg {
  margin: 0;
  min-height: 0;
  font-size: 13px;
  color: #64748b;
}

.hr-att-msg.is-busy { color: #0369a1; }
.hr-att-msg.is-ok { color: #047857; }
.hr-att-msg.is-err { color: #b91c1c; }

.hr-att-msg:empty {
  display: none;
}

.hr-att-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.hr-att-period > .hint {
  margin: 0 4px 0 0;
  color: #94a3b8;
}

.hr-att-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.hr-att-stat {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hr-att-stat span {
  font-size: 12px;
  color: #94a3b8;
}

.hr-att-stat b {
  font-size: 22px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.1;
}

.hr-att-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
}

.hr-att-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hr-att-table-wrap {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  overflow: auto;
  max-height: min(52vh, 520px);
}

.hr-att-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.hr-att-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line, #e2e8f0);
  white-space: nowrap;
}

.hr-att-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.hr-att-table tbody tr:last-child td {
  border-bottom: none;
}

.hr-att-table tbody tr:hover td {
  background: #f8fafc;
}

.hr-att-time {
  white-space: nowrap;
  font-size: 12px;
  color: #475569;
}

.hr-att-muted {
  color: #94a3b8;
}

.hr-att-empty {
  text-align: center;
  color: #94a3b8;
  padding: 32px 16px !important;
}

@media (max-width: 720px) {
  .hr-att-head {
    padding: 14px;
  }
  .hr-att-actions {
    width: 100%;
  }
  .hr-att-btn {
    flex: 1 1 auto;
  }
}

/* 生产在线 */
.hr-prod-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 2px 20px;
  min-width: 0;
}

.hr-prod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
}

.hr-prod-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  max-width: 680px;
}

.hr-prod-desc strong {
  color: #1d4ed8;
  font-weight: 650;
}

.hr-prod-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.hr-prod-period {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
}

.hr-prod-period > .hint {
  margin: 0 4px 0 0;
  color: #94a3b8;
}

.hr-prod-msg {
  margin: 0 0 0 auto;
  font-size: 12px;
  color: #64748b;
}

.hr-prod-msg.is-busy { color: #0369a1; }
.hr-prod-msg.is-ok { color: #047857; }
.hr-prod-msg.is-err { color: #b91c1c; }
.hr-prod-msg:empty { display: none; }

.hr-prod-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hr-prod-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.hr-prod-stat {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hr-prod-stat span {
  font-size: 12px;
  color: #94a3b8;
}

.hr-prod-stat b {
  font-size: 22px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.1;
}

.hr-prod-stat b.is-good { color: #047857; }
.hr-prod-stat b.is-bad { color: #b91c1c; }

.hr-prod-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.hr-prod-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  color: #334155;
}

.hr-prod-section--wide {
  min-width: 0;
}

.hr-prod-ranks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hr-prod-rankitem {
  display: grid;
  grid-template-columns: 28px minmax(80px, 1fr) minmax(100px, 140px);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.hr-prod-rankitem:last-child {
  border-bottom: none;
}

.hr-prod-rank {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
}

.hr-prod-rankname {
  font-size: 13px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-prod-rankbar {
  position: relative;
  height: 24px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.hr-prod-rankbar i {
  display: block;
  height: 100%;
  background: #93c5fd;
  border-radius: 6px;
}

.hr-prod-rankbar i.tone-good { background: #6ee7b7; }
.hr-prod-rankbar i.tone-model { background: #93c5fd; }

.hr-prod-rankbar b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 12px;
  color: #0f172a;
}

.hr-prod-st {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.hr-prod-st--idle { background: #f1f5f9; color: #64748b; }
.hr-prod-st--working { background: #fff7ed; color: #c2410c; }
.hr-prod-st--output { background: #ecfdf5; color: #047857; }
.hr-prod-st--active { background: #eff6ff; color: #1d4ed8; }

.hr-prod-table .hr-prod-rank {
  width: 36px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 960px) {
  .hr-prod-grid,
  .hr-prod-ranks {
    grid-template-columns: 1fr;
  }
}

/* 考勤 / 生产在线 · 紧凑布局（顶部一行工具栏 + 列表占满剩余高度） */
.hr-att-page.hr-ops-page,
.hr-prod-page.hr-ops-page {
  gap: 8px;
  padding: 0 2px 8px;
  min-height: calc(100vh - 168px);
  display: flex;
  flex-direction: column;
}

.admin-section:has(> .hr-ops-page) {
  margin-bottom: 0;
}

.hr-ops-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  flex-shrink: 0;
  overflow-x: auto;
}

.hr-ops-machine {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.3;
  max-width: 42%;
  overflow: hidden;
}

.hr-ops-toolbar__mid {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.hr-ops-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.hr-ops-open-time {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  margin-left: 8px;
}

.hr-emp-toolbar .hr-ops-open-time,
.hr-recruit-list-bar .hr-ops-open-time {
  margin-left: auto;
}

.hr-ops-kpi {
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hr-ops-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}

.hr-ops-pill.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.hr-ops-pill.is-err {
  background: #fef2f2;
  color: #b91c1c;
}

.hr-ops-meta {
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-ops-meta.is-err {
  color: #b91c1c;
}

.hr-ops-msg {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.hr-ops-msg.is-busy { color: #0369a1; }
.hr-ops-msg.is-ok { color: #047857; }
.hr-ops-msg.is-err { color: #b91c1c; }
.hr-ops-msg:empty { display: none; }

.hr-ops-page .hr-emp-chip {
  padding: 4px 10px;
  font-size: 12px;
}

.hr-att-btn--sm {
  min-height: 28px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  border-radius: 6px;
}

.hr-ops-main {
  flex: 1 1 auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hr-ops-split {
  display: flex;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 200px;
}

.hr-ops-split--prod {
  flex: 1 1 58%;
}

.hr-ops-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  flex: 0 0 min(280px, 32%);
}

.hr-ops-panel--grow {
  flex: 1 1 auto;
}

.hr-ops-panel--events {
  flex: 0 0 auto;
  min-height: 140px;
  max-height: 36%;
}

.hr-ops-panel h4 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
  flex-shrink: 0;
}

.hr-ops-table-wrap {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: none !important;
  border-radius: 8px;
}

.hr-ops-table thead th {
  padding: 6px 10px;
  font-size: 11px;
}

.hr-ops-table tbody td {
  padding: 6px 10px;
  font-size: 12px;
}

.hr-ops-table .hr-att-empty {
  padding: 18px 10px !important;
}

.hr-prod-st {
  padding: 2px 8px;
  font-size: 11px;
}

@media (max-width: 960px) {
  .hr-ops-toolbar {
    flex-wrap: wrap;
  }
  .hr-ops-machine {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .hr-ops-split,
  .hr-ops-split--prod {
    flex-direction: column;
  }
  .hr-ops-panel {
    flex: 1 1 auto;
    max-height: 42vh;
  }
  .hr-ops-panel--events {
    max-height: 32vh;
  }
}

.hr-prod-note {
  margin: 0 0 6px;
  font-size: 12px;
  color: #64748b;
}

.hr-prod-note.is-err {
  color: #b91c1c;
}

.hr-prod-table .is-good {
  color: #047857;
}

.hr-prod-table .is-bad {
  color: #b91c1c;
}

.hr-prod-qc-butu .hr-ops-panel--grow {
  flex: 1 1 100%;
}

/* 生产在线 · 其它工序合计图表 */
.hr-prod-cross {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 0;
}

.hr-prod-chart-card {
  flex: 1 1 50%;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hr-prod-chart-card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #334155;
}

.hr-prod-chart-card h4 small {
  font-weight: 500;
  color: #94a3b8;
  margin-left: 4px;
}

.hr-prod-chart-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hr-prod-chart-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 52px;
}

.hr-prod-chart-stat span {
  font-size: 11px;
  color: #94a3b8;
}

.hr-prod-chart-stat b {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

.hr-prod-chart-stat.is-accent b { color: #1d4ed8; }
.hr-prod-chart-stat.is-good b { color: #047857; }
.hr-prod-chart-stat.is-bad b { color: #b91c1c; }

.hr-prod-bar {
  position: relative;
  height: 22px;
  border-radius: 6px;
  background: #f1f5f9;
  overflow: hidden;
}

.hr-prod-bar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #94a3b8;
}

.hr-prod-bar--single i,
.hr-prod-bar--stack i {
  display: block;
  height: 100%;
  float: left;
}

.hr-prod-bar--single i {
  background: linear-gradient(90deg, #93c5fd, #3b82f6);
  border-radius: 6px;
}

.hr-prod-bar--stack i.is-good { background: #6ee7b7; }
.hr-prod-bar--stack i.is-bad { background: #fca5a5; }

.hr-prod-chart-foot {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

@media (max-width: 960px) {
  .hr-prod-cross {
    flex-direction: column;
  }
}
