/**
 * 1368 星级认证 / 人才库 · 员工端业务区
 * 与 tokens.css + oa-shell-emp.css 联用，不改培训学习页样式。
 * Claude Design：留白、层次、克制色；壳层仍走现网员工端顶栏/侧栏。
 */
.oa-1368-headwrap {
  flex-shrink: 0;
  margin: 0 0 12px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e4e7ed;
}
.oa-1368-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.oa-1368-crumb {
  font-size: 13px;
  color: #606266;
}
.oa-1368-crumb strong {
  color: #303133;
  font-weight: 600;
}
.oa-1368-perm {
  font-size: 12px;
  color: #909399;
}
.oa-1368-work {
  flex: 1;
  min-width: 0;
  padding: 0 20px 28px;
}
.oa-1368-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.oa-1368-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 72ch;
}
.oa-1368-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.oa-1368-toolbar__left,
.oa-1368-toolbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.oa-1368-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}
.oa-1368-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.oa-1368-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.oa-1368-btn:disabled {
  opacity: 0.55;
  cursor: default;
  border-color: var(--border-default);
  color: var(--text-muted);
}
.oa-1368-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.oa-1368-field input,
.oa-1368-field select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text-primary);
  background: #fff;
}
.oa-1368-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.oa-1368-card + .oa-1368-card {
  margin-top: 16px;
}
.oa-1368-card__hd {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  font-size: 14px;
  font-weight: 650;
  color: var(--text-primary);
}
.oa-1368-card__bd {
  padding: 16px;
}
.oa-1368-note {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}
.oa-1368-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.oa-1368-pill--ok { background: #ecfdf5; color: #15803d; }
.oa-1368-pill--warn { background: #fffbeb; color: #b45309; }
.oa-1368-pill--bad { background: #fef2f2; color: #b91c1c; }
.oa-1368-pill--pend { background: #eff6ff; color: #1d4ed8; }
.oa-1368-pill--mute { background: #f3f4f6; color: #6b7280; }

.oa-1368-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}
@media (max-width: 800px) {
  .oa-1368-form { grid-template-columns: 1fr; }
}
.oa-1368-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.oa-1368-field-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
}
.oa-1368-form input,
.oa-1368-form select,
.oa-1368-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: #fff;
}
.oa-1368-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

/* 人才库宽表：冻结基础列 */
.oa-1368-tgt-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.oa-1368-tgt {
  min-width: 1100px;
}
.oa-1368-tgt thead .grp {
  text-align: center;
  background: #f3f6fb;
  color: var(--text-primary);
}
.oa-1368-tgt-range {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}
.oa-1368-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.oa-1368-modal[hidden] {
  display: none !important;
}
.oa-1368-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 24, 0.48);
}
.oa-1368-modal__panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 48px rgba(17, 20, 24, 0.22);
  overflow: hidden;
}
.oa-1368-modal__hd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border-default);
}
.oa-1368-modal__panel--err .oa-1368-modal__hd {
  background: #fef2f2;
  border-bottom-color: #fecaca;
}
.oa-1368-modal__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.oa-1368-modal__hd strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: -0.02em;
}
.oa-1368-modal__lead {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #7f1d1d;
  line-height: 1.5;
}
.oa-1368-modal__x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.oa-1368-modal__x:hover {
  color: var(--text-primary);
}
.oa-1368-modal__bd {
  overflow: auto;
  padding: 0;
}
.oa-1368-modal__bd .oa-1368-list {
  margin: 0;
}
.oa-1368-modal__bd .oa-1368-list tbody tr:hover {
  background: #fef2f2;
}
.oa-1368-modal__ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-default);
  background: #fafbfc;
}
.oa-1368-modal__hint {
  margin: 0;
  font-size: 12px;
  color: #b91c1c;
  line-height: 1.45;
}
.oa-1368-rec-wrap {
  overflow-x: auto;
}
.oa-1368-rec {
  min-width: 1280px;
}
body.oa-1368-modal-lock {
  overflow: hidden;
}
.oa-1368-pool-wrap {
  overflow: auto;
  max-height: calc(100vh - 240px);
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.oa-1368-pool {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  min-width: 2200px;
}
.oa-1368-pool th,
.oa-1368-pool td {
  padding: 8px 10px;
  border-bottom: 1px solid #ebeef5;
  border-right: 1px solid #ebeef5;
  white-space: nowrap;
  background: #fff;
  vertical-align: middle;
}
.oa-1368-pool thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fafbfc;
  color: var(--text-muted);
  font-weight: 600;
}
.oa-1368-pool thead .grp {
  text-align: center;
  background: #f3f6fb;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-default);
}
.oa-1368-pool thead .fam {
  text-align: center;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.oa-1368-pool thead .fam-orca {
  background: #f3efe6;
  color: #5c4a32;
}
.oa-1368-pool thead .fam-1368 {
  background: #e8eef8;
  color: #1e3a5f;
}
.oa-1368-pool tbody tr:hover td {
  background: #f8fafc;
}
.oa-1368-pool .st-idx { left: 0; min-width: 44px; z-index: 5; }
.oa-1368-pool .st-name { left: 44px; min-width: 72px; z-index: 5; }
.oa-1368-pool .st-id { left: 116px; min-width: 88px; z-index: 5; }
.oa-1368-pool .st-dept { left: 204px; min-width: 88px; z-index: 5; }
.oa-1368-pool .st-rate { left: 292px; min-width: 108px; z-index: 5; }
.oa-1368-pool thead .st-idx,
.oa-1368-pool thead .st-name,
.oa-1368-pool thead .st-id,
.oa-1368-pool thead .st-dept,
.oa-1368-pool thead .st-rate {
  position: sticky;
  z-index: 6;
  background: #fafbfc;
}
.oa-1368-pool tbody .st-idx,
.oa-1368-pool tbody .st-name,
.oa-1368-pool tbody .st-id,
.oa-1368-pool tbody .st-dept,
.oa-1368-pool tbody .st-rate {
  position: sticky;
  background: #fff;
  box-shadow: 1px 0 0 #ebeef5;
}
.oa-1368-pool tbody tr:hover .st-idx,
.oa-1368-pool tbody tr:hover .st-name,
.oa-1368-pool tbody tr:hover .st-id,
.oa-1368-pool tbody tr:hover .st-dept,
.oa-1368-pool tbody tr:hover .st-rate {
  background: #f8fafc;
}
.oa-1368-pool a {
  color: var(--accent);
  text-decoration: none;
}
.oa-1368-pool a:hover { text-decoration: underline; }

.oa-1368-smart {
  position: relative;
}
.oa-1368-smart__panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  z-index: 20;
  width: 300px;
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.oa-1368-smart.is-open .oa-1368-smart__panel {
  display: block;
}
.oa-1368-smart__panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
}
.oa-1368-smart__fam {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-default);
}
.oa-1368-smart__hd {
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary);
}
.oa-1368-smart__block.is-off {
  opacity: 0.45;
  pointer-events: none;
}
.oa-1368-list tr.is-orca td {
  color: var(--text-muted);
  background: #fafafa;
}
.oa-1368-dash {
  color: var(--text-muted);
}
.oa-1368-hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.45;
}

.oa-1368-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}
.oa-1368-tabs button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.oa-1368-tabs button[aria-selected="true"] {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.oa-1368-list {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.oa-1368-list th,
.oa-1368-list td {
  padding: 12px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-default);
  vertical-align: middle;
}
.oa-1368-list th {
  background: #fafbfc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
}
.oa-1368-list tbody tr:hover {
  background: var(--bg-subtle);
}
.oa-1368-list a {
  color: var(--accent);
  text-decoration: none;
}
.oa-1368-list a:hover { text-decoration: underline; }

.oa-1368-courses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oa-1368-course {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: #fff;
  min-width: 0;
}
.oa-1368-course input[type="checkbox"] {
  margin-top: 4px;
}
.oa-1368-course.is-off {
  background: var(--bg-subtle);
  color: var(--text-muted);
}
.oa-1368-course__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.oa-1368-course__title {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
}
.oa-1368-course.is-off .oa-1368-course__title {
  color: var(--text-muted);
}
.oa-1368-course__meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.oa-1368-req {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
  table-layout: fixed;
}
.oa-1368-req th,
.oa-1368-req td {
  padding: 6px 8px;
  border: 1px solid var(--border-default);
  text-align: left;
  vertical-align: top;
  white-space: normal;
  word-break: break-word;
}
.oa-1368-req th {
  width: 22%;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}
.oa-1368-req th:last-child,
.oa-1368-req td:last-child {
  width: auto;
}
.oa-1368-type {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.oa-1368-req tr.is-locked td {
  color: #c0c4cc;
  background: #f5f7fa;
}
.oa-1368-lock {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: #909399;
  white-space: nowrap;
}
.oa-1368-req td:first-child {
  width: 88px;
  white-space: nowrap;
}
.oa-1368-type--exam { background: #eff6ff; color: #1d4ed8; }
.oa-1368-type--file { background: #f5f3ff; color: #6d28d9; }
.oa-1368-type--watch { background: #ecfdf5; color: #047857; }
td.oa-1368-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 20px 12px;
}
.oa-1368-recheck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fffbeb;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.oa-1368-back {
  font-size: 12px;
  margin-bottom: 12px;
}
.oa-1368-back a {
  color: var(--accent);
  text-decoration: none;
}
.oa-1368-back a:hover { text-decoration: underline; }
