/* 灵茵管理系统 · 人事中后台（配合 hr.js 使用，配色沿用原看板深绿） */
.view-hr { display: none; }
.view-hr.on { display: block; }

.hr-page { display: flex; flex-direction: column; gap: 12px; max-width: 1560px; margin: 0 auto; }
.hr-page > * { min-width: 0; }

.hr-card { background: #fff; border: 1px solid #EEF0F2; border-radius: 20px; padding: 16px 18px;
           box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.hr-card.flush { padding: 0; overflow: hidden; }
.hr-card h2 { font-size: 13px; font-weight: 800; letter-spacing: -.2px; display: flex; align-items: center;
              gap: 7px; margin-bottom: 12px; }
.hr-card h2 .bar { width: 4px; height: 14px; border-radius: 2px; background: #14462c; }
.hr-card h2 .hint { font-size: 10px; font-weight: 600; color: #9CA3AF; background: #F3F4F6;
                    padding: 2px 9px; border-radius: 999px; margin-left: 4px; }

/* ---------- 工具条 ---------- */
.hr-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff;
              border: 1px solid #EEF0F2; border-radius: 16px; padding: 10px 12px;
              box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.hr-search { display: flex; align-items: center; gap: 7px; background: #F4F5F7; border-radius: 11px;
             padding: 7px 11px; min-width: 220px; flex: 0 1 280px; }
.hr-search svg { width: 14px; height: 14px; stroke: #9CA3AF; fill: none; stroke-width: 1.9; flex: 0 0 auto; }
.hr-search input { border: 0; background: transparent; outline: none; font-size: 12.5px; width: 100%;
                   color: #111827; font-family: inherit; }
.hr-search input::placeholder { color: #9CA3AF; font-weight: 500; }
.hr-select { border: 1px solid #E5E7EB; background: #fff; border-radius: 11px; padding: 7px 10px;
             font-size: 12.5px; color: #374151; font-weight: 600; outline: none; font-family: inherit;
             cursor: pointer; }
.hr-select:focus { border-color: #14462c; }
.hr-btn { border: 0; border-radius: 11px; padding: 8px 15px; font-size: 12.5px; font-weight: 700;
          cursor: pointer; background: #14462c; color: #fff; font-family: inherit; white-space: nowrap; }
.hr-btn:hover { background: #1e5a3a; }
.hr-btn.ghost { background: #fff; color: #374151; border: 1px solid #E5E7EB; }
.hr-btn.ghost:hover { background: #F9FAFB; }
.hr-btn.sm { padding: 5px 11px; font-size: 11.5px; border-radius: 9px; }
.hr-spacer { flex: 1 1 auto; }
.hr-count { font-size: 11.5px; color: #9CA3AF; font-weight: 600; }
.hr-note { font-size: 11px; color: #9CA3AF; font-weight: 600; }

/* ---------- 表格 ---------- */
.hr-tbl-scroll { overflow-x: auto; }
.hr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hr-table th { background: #FBFCFD; color: #9CA3AF; font-size: 10px; letter-spacing: .6px;
               font-weight: 800; padding: 9px 12px; border-bottom: 1px solid #EEF0F2;
               text-align: left; white-space: nowrap; }
.hr-table td { padding: 11px 12px; border-bottom: 1px solid #F5F6F8; white-space: nowrap; color: #1F2937; }
.hr-table tbody tr:hover td { background: #FAFBFC; }
.hr-table tbody tr:last-child td { border-bottom: 0; }
.hr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
/* 分组分隔行（如「离职人员」） */
.hr-table tbody tr.hr-sep-row td { background: #F7F8FA; color: #9CA3AF; font-size: 10px;
                                   font-weight: 800; letter-spacing: .6px; padding: 7px 12px;
                                   border-bottom: 1px solid #EEF0F2; }
.hr-table tbody tr.hr-sep-row:hover td { background: #F7F8FA; }
/* 离职行：整体压暗，与在职名单区分 */
.hr-table tbody tr.hr-row-off td { color: #9AA1AC; background: #FCFCFD; }
.hr-table tbody tr.hr-row-off:hover td { background: #F8F9FA; }
/* 手动排序：拖拽 */
.hr-drag { color: #C2C7CF; letter-spacing: -2px; cursor: grab; user-select: none; font-size: 13px; }
.hr-table tbody tr[draggable="true"]:hover .hr-drag { color: #14462c; }
.hr-table tbody tr.hr-dragging td { opacity: .4; }
.hr-table tbody tr.hr-drop-before td { box-shadow: inset 0 2px 0 0 #14462c; }
.hr-table tbody tr.hr-drop-after td { box-shadow: inset 0 -2px 0 0 #14462c; }
.hr-btn:disabled { opacity: .45; cursor: default; }
.hr-mono { font-family: "SF Mono", Menlo, monospace; font-size: 11.5px; color: #6B7280; }
.hr-strong { font-weight: 800; color: #111827; }
.hr-note { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
           white-space: nowrap; vertical-align: middle; font-size: 11.5px; color: #374151; }
.hr-act { display: flex; gap: 9px; align-items: center; }
.hr-link { background: none; border: 0; padding: 0; font-size: 11.5px; font-weight: 700;
           color: #14462c; cursor: pointer; font-family: inherit; }
.hr-link:hover { text-decoration: underline; }
.hr-link.danger { color: #B91C1C; }
.hr-link.gold { color: #92400E; }
.hr-empty { color: #9CA3AF; text-align: center; padding: 30px 0; font-size: 12px; font-weight: 600; }

/* ---------- 状态标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800;
       padding: 3px 9px; border-radius: 999px; letter-spacing: .2px; }
.tag.ok { background: #E2F3E9; color: #14462c; }
.tag.warn { background: #FEF3C7; color: #92400E; }
.tag.bad { background: #FEE2E2; color: #B91C1C; }
.tag.info { background: #E0EDFF; color: #1D4ED8; }
.tag.mute { background: #F3F4F6; color: #6B7280; }

/* ---------- 弹窗 ---------- */
.hr-mask { position: fixed; inset: 0; background: rgba(17,24,39,.34); z-index: 300;
           display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px;
           overflow: auto; backdrop-filter: blur(2px); }
/* 弹窗自己滚（头尾固定）：员工档案有 28 个字段，整页滚的话「保存」会跑出视野 */
.hr-modal { width: 100%; max-width: 640px; background: #fff; border-radius: 20px;
            box-shadow: 0 24px 60px rgba(17,24,39,.22); animation: hrIn .18s ease-out;
            display: flex; flex-direction: column; max-height: 90vh; }
.hr-modal.wide { max-width: 780px; }
.hr-modal-head, .hr-modal-foot { flex: 0 0 auto; }
.hr-modal-body { flex: 1 1 auto; overflow: auto; min-height: 0; }
@keyframes hrIn { from { transform: translateY(9px); opacity: 0; } to { transform: none; opacity: 1; } }
.hr-modal-head { display: flex; align-items: center; gap: 10px; padding: 17px 20px 12px;
                 border-bottom: 1px solid #F3F4F6; }
.hr-modal-head h3 { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.hr-modal-head .en { font-size: 9.5px; color: #9CA3AF; font-weight: 800; letter-spacing: 1.2px;
                     padding-top: 3px; }
.hr-modal-head .x { margin-left: auto; border: 0; background: #F3F4F6; width: 27px; height: 27px;
                    border-radius: 9px; cursor: pointer; color: #6B7280; font-size: 15px; line-height: 1; }
.hr-modal-head .x:hover { background: #E5E7EB; color: #111827; }
.hr-modal-body { padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.hr-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hr-field.full { grid-column: 1 / -1; }
.hr-field label { font-size: 11px; font-weight: 700; color: #6B7280; }
.hr-field label em { color: #B91C1C; font-style: normal; margin-left: 2px; }
.hr-field input, .hr-field select, .hr-field textarea {
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 9px 11px; font-size: 12.5px;
  color: #111827; outline: none; background: #fff; font-family: inherit; width: 100%; }
.hr-field input:focus, .hr-field select:focus, .hr-field textarea:focus {
  border-color: #14462c; box-shadow: 0 0 0 3px rgba(20,70,44,.09); }
.hr-field input[readonly] { background: #F7F8F9; color: #6B7280; }
.hr-field textarea { resize: vertical; min-height: 66px; line-height: 1.6; }
.hr-field .fhint { font-size: 10px; color: #9CA3AF; font-weight: 600; }
/* 开关字段：以前没有 switch 类型，会被当成文本框渲染，直接显示 "false" */
.hr-field .hr-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid #E5E7EB; border-radius: 10px; padding: 8px 11px; background: #fff; min-height: 38px; }
.hr-field .hr-switch input { width: 16px; height: 16px; accent-color: #14462c; margin: 0; cursor: pointer; }
.hr-field .hr-switch-txt { font-size: 12px; font-weight: 700; color: #374151; }
.hr-modal-foot { display: flex; align-items: center; gap: 10px; padding: 14px 20px 18px;
                 border-top: 1px solid #F3F4F6; }
.hr-modal-foot .err { font-size: 11.5px; color: #B91C1C; font-weight: 700; }
.hr-totals { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
             background: #F7F9F8; border: 1px solid #E8EEE9; border-radius: 14px; padding: 12px; }
.hr-totals .t { font-size: 10px; color: #6B7280; font-weight: 700; }
.hr-totals .v { font-size: 16px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums;
                color: #14462c; }

/* 岗位标签编辑器 */
.hr-tagbox { display: flex; flex-wrap: wrap; gap: 6px; border: 1px solid #E5E7EB; border-radius: 10px;
             padding: 8px; min-height: 44px; background: #fff; }
.hr-tagchip { display: inline-flex; align-items: center; gap: 5px; background: #E2F3E9; color: #14462c;
              font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.hr-tagchip button { border: 0; background: none; color: #14462c; cursor: pointer; font-size: 12px;
                     line-height: 1; opacity: .55; padding: 0; }
.hr-tagchip button:hover { opacity: 1; }
.hr-tagadd { display: flex; gap: 6px; margin-top: 6px; }
.hr-tagadd input { flex: 1 1 auto; border: 1px dashed #D1D5DB; border-radius: 9px; padding: 7px 10px;
                   font-size: 12px; outline: none; font-family: inherit; }
.hr-tagadd input:focus { border-color: #14462c; }

/* ---------- 仪表盘 ---------- */
.hr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hr-kpi { background: #fff; border: 1px solid #EEF0F2; border-radius: 18px; padding: 16px 18px;
          position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(17,24,39,.04); }
.hr-kpi .k { font-size: 11px; color: #9CA3AF; font-weight: 700; letter-spacing: .3px;
             display: flex; align-items: center; gap: 6px; }
.hr-kpi .v { font-size: 32px; font-weight: 800; letter-spacing: -1.2px; margin-top: 7px;
             font-variant-numeric: tabular-nums; line-height: 1; }
.hr-kpi .s { font-size: 11px; color: #6B7280; font-weight: 600; margin-top: 6px; }
.hr-kpi .ic { position: absolute; right: 14px; top: 14px; width: 31px; height: 31px; border-radius: 10px;
              background: #F0F5F2; display: flex; align-items: center; justify-content: center; }
.hr-kpi .ic svg { width: 16px; height: 16px; stroke: #14462c; fill: none; stroke-width: 1.7;
                  stroke-linecap: round; stroke-linejoin: round; }
.hr-kpi.alert .v { color: #B45309; }
.hr-kpi.alert .ic { background: #FEF3C7; }
.hr-kpi.alert .ic svg { stroke: #B45309; }

.hr-grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; }
.hr-grid2.eq { grid-template-columns: 1fr 1fr; }
.hr-flex { display: flex; align-items: center; gap: 18px; }

.hr-donut { width: 152px; height: 152px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.hr-donut::after { content: ""; position: absolute; inset: 24px; background: #fff; border-radius: 50%; }
.hr-donut .center { position: absolute; inset: 0; display: flex; flex-direction: column;
                    align-items: center; justify-content: center; z-index: 2; }
.hr-donut .center b { font-size: 22px; font-weight: 800; letter-spacing: -1px; }
.hr-donut .center span { font-size: 10px; color: #9CA3AF; font-weight: 700; margin-top: 2px; }
.hr-legend { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.hr-legend .row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
                  color: #374151; }
.hr-legend .sw { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; }
.hr-legend .n { margin-left: auto; font-weight: 800; color: #111827;
                font-variant-numeric: tabular-nums; }

.hr-todo { display: flex; flex-direction: column; gap: 8px; }
.hr-todo .row { display: flex; align-items: center; gap: 10px; border: 1px solid #EEF0F2;
                border-radius: 13px; padding: 10px 12px; cursor: pointer; background: #fff; }
.hr-todo .row:hover { border-color: #CFE0D5; background: #FBFDFC; }
.hr-todo .n { width: 27px; height: 27px; border-radius: 9px; background: #FEF3C7; color: #92400E;
              font-size: 12px; font-weight: 800; display: flex; align-items: center;
              justify-content: center; flex: 0 0 auto; }
.hr-todo .row.calm .n { background: #E2F3E9; color: #14462c; }
.hr-todo .t { font-size: 12.5px; font-weight: 700; }
.hr-todo .d { font-size: 10.5px; color: #9CA3AF; font-weight: 600; margin-top: 2px; }
.hr-todo .go { margin-left: auto; color: #C4C8CE; font-size: 16px; font-weight: 700; }

.hr-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 9px; }
.hr-quick button { border: 1px solid #EEF0F2; background: #fff; border-radius: 13px; padding: 13px 8px;
                   cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px;
                   font-size: 11.5px; font-weight: 700; color: #374151; font-family: inherit; }
.hr-quick button:hover { border-color: #14462c; color: #14462c; background: #FBFDFC; }
.hr-quick svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7;
                stroke-linecap: round; stroke-linejoin: round; }

.hr-mini-list { display: flex; flex-direction: column; gap: 2px; }
.hr-mini-list .row { display: flex; align-items: center; gap: 10px; padding: 8px 4px;
                     border-bottom: 1px solid #F7F8F9; }
.hr-mini-list .row:last-child { border-bottom: 0; }
.hr-ava { width: 29px; height: 29px; border-radius: 10px; background: #E2F3E9; color: #14462c;
          font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
          flex: 0 0 auto; }
.hr-mini-list .nm { font-size: 12.5px; font-weight: 700; }
.hr-mini-list .sb { font-size: 10.5px; color: #9CA3AF; font-weight: 600; margin-top: 1px; }
.hr-mini-list .rt { margin-left: auto; font-size: 10.5px; color: #9CA3AF; font-weight: 600;
                    text-align: right; }

/* ---------- 日历 ---------- */
.hr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hr-cal .wd { text-align: center; font-size: 10px; color: #9CA3AF; font-weight: 800; padding: 4px 0; }
.hr-cal .d { height: 46px; border-radius: 10px; display: flex; flex-direction: column;
             align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
             color: #374151; cursor: pointer; position: relative; border: 1px solid transparent; }
.hr-cal .d.mut { color: #CFD4DB; }
.hr-cal .d:hover { background: #F4F7F5; }
.hr-cal .d.today { background: #14462c; color: #fff; }
.hr-cal .d.sel { border-color: #14462c; }
.hr-cal .d i { width: 4px; height: 4px; border-radius: 50%; background: #F2A93C;
               position: absolute; bottom: 5px; }
.hr-cal .d.today i { background: #8ff0d6; }
.hr-evt { display: grid; grid-template-columns: 1.4fr .6fr; gap: 12px; align-items: start; }
.hr-evt-side .row { display: flex; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #F7F8F9; }
.hr-evt-side .row:last-child { border-bottom: 0; }
.hr-evt-side .tm { font-size: 11px; font-weight: 800; color: #14462c; font-variant-numeric: tabular-nums;
                   width: 40px; flex: 0 0 auto; padding-top: 1px; }
.hr-evt-side .sj { font-size: 12px; font-weight: 700; }
.hr-evt-side .ct { font-size: 10.5px; color: #9CA3AF; font-weight: 600; margin-top: 2px;
                   white-space: normal; line-height: 1.55; }

/* ---------- 顶栏搜索 / 通知 ---------- */
.tb-search { position: relative; flex: 0 1 240px; }
.tb-search .box { display: flex; align-items: center; gap: 6px; background: #F4F5F7; border-radius: 10px;
                  padding: 6px 10px; }
.tb-search svg { width: 13px; height: 13px; stroke: #9CA3AF; fill: none; stroke-width: 2; flex: 0 0 auto; }
.tb-search input { border: 0; background: transparent; outline: none; font-size: 12px;
                   font-family: inherit; width: 100%; color: #111827; }
.tb-search .drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
                   border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 12px 30px rgba(17,24,39,.12);
                   padding: 5px; z-index: 120; display: none; max-height: 330px; overflow: auto; }
.tb-search .drop.on { display: block; }
.tb-search .res { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px;
                  cursor: pointer; }
.tb-search .res:hover { background: #F4F7F5; }
.tb-search .res .nm { font-size: 12px; font-weight: 700; }
.tb-search .res .sb { font-size: 10px; color: #9CA3AF; font-weight: 600; }
.tb-search .res .k { margin-left: auto; font-size: 9.5px; font-weight: 800; color: #9CA3AF;
                     background: #F3F4F6; padding: 2px 6px; border-radius: 6px; }
.tb-search .none { font-size: 11.5px; color: #9CA3AF; font-weight: 600; padding: 12px 10px; text-align: center; }

.tb-bell { position: relative; border: 1px solid #E5E7EB; background: #fff; border-radius: 10px;
           width: 32px; height: 30px; cursor: pointer; display: flex; align-items: center;
           justify-content: center; }
.tb-bell svg { width: 15px; height: 15px; stroke: #374151; fill: none; stroke-width: 1.8;
               stroke-linecap: round; }
.tb-bell b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 999px;
             background: #DC2626; color: #fff; font-size: 9.5px; font-weight: 800; display: none;
             align-items: center; justify-content: center; padding: 0 4px; }
.tb-bell b.on { display: flex; }
.tb-bell:hover { background: #F9FAFB; }

/* ---------- 提示条 ---------- */
.hr-toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(10px);
            background: #111827; color: #fff; font-size: 12.5px; font-weight: 700; padding: 10px 18px;
            border-radius: 12px; z-index: 400; opacity: 0; transition: .2s; pointer-events: none;
            box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.hr-toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1100px) {
  .hr-kpis { grid-template-columns: repeat(2, 1fr); }
  .hr-grid2, .hr-grid2.eq, .hr-evt { grid-template-columns: 1fr; }
  .hr-quick { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hr-toolbar { padding: 9px 10px; gap: 7px; }
  .hr-search { flex: 1 1 100%; min-width: 0; }
  .hr-spacer { display: none; }
  .hr-select { flex: 1 1 auto; min-width: 0; }
  .hr-btn { padding: 8px 12px; }
  .hr-table th, .hr-table td { padding: 9px 10px; }
  .tb-search { display: none; }
}
@media (max-width: 720px) {
  .hr-modal-body { grid-template-columns: 1fr; }
  .hr-field.full { grid-column: auto; }
  .hr-totals { grid-template-columns: 1fr; }
  .hr-quick { grid-template-columns: repeat(2, 1fr); }
  .hr-flex { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hr-cal .d { height: 40px; font-size: 11.5px; }
}

/* ---------- 员工自助（我的申请） ---------- */
.my-body { margin-top: 12px; }
.my-head { display: flex; align-items: center; gap: 12px; }
.my-avatar { width: 44px; height: 44px; border-radius: 14px; background: #14462c; color: #fff;
             display: flex; align-items: center; justify-content: center;
             font-size: 16px; font-weight: 800; flex: 0 0 auto; }
.my-name { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.my-meta { font-size: 11.5px; color: #6B7280; font-weight: 600; margin-top: 3px; }
.my-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 14px; }
.my-cell { background: #F7F8F9; border-radius: 12px; padding: 10px 12px; }
.my-cell .k { font-size: 10px; color: #9CA3AF; font-weight: 700; }
.my-cell .v { font-size: 13px; font-weight: 800; margin-top: 4px; }
.my-bind { display: flex; gap: 8px; margin-top: 14px; }
.my-bind .hr-select { flex: 1 1 auto; min-width: 0; }

@media (max-width: 720px) {
  .my-row { grid-template-columns: 1fr 1fr; }
  .my-bind { flex-direction: column; }
}

/* ---------- 员工自助：本月考勤 ---------- */
.att-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.att-mon { border: 1px solid #E5E7EB; background: #fff; border-radius: 10px; padding: 6px 9px;
           font-size: 12px; font-weight: 700; color: #374151; font-family: inherit; outline: none; }
.att-mon:focus { border-color: #14462c; box-shadow: 0 0 0 3px rgba(20,70,44,.09); }
/* 缺勤口径切换：净额 / 天数 */
.att-seg { display: inline-flex; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; background: #fff; }
.att-seg button { border: 0; background: transparent; padding: 5px 11px; font-size: 11.5px; font-weight: 700;
                  color: #6B7280; cursor: pointer; font-family: inherit; line-height: 1.5; }
.att-seg button + button { border-left: 1px solid #EEF0F2; }
.att-seg button:hover { color: #14462c; }
/* 两个切换器长得一样，靠这行小字区分：缺勤[净额|天数] · 算法[净工时|加减项] */
.att-seg-lab { font-size: 10px; color: #9CA3AF; font-weight: 700; letter-spacing: .3px; }
.att-seg button.on { background: #14462c; color: #fff; }
/* 本月结算：正数深绿、负数红 */
.ck-net { font-weight: 800; font-size: 11.5px; color: #6B7280; white-space: nowrap;
          font-variant-numeric: tabular-nums; }
.ck-net.ok { color: #14462c; }
.ck-net.bad { color: #B91C1C; }
.ck-net.mute { color: #6B7280; }
.ck-net-sub { font-size: 9.5px; color: #9CA3AF; font-weight: 600; margin-top: 1px; white-space: nowrap; }

.att-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.att-kpi { background: #F7F9F8; border: 1px solid #EDF2EE; border-radius: 13px; padding: 10px 12px;
           min-width: 0; }
.att-kpi .k { font-size: 10px; color: #9CA3AF; font-weight: 700; white-space: nowrap; }
.att-kpi .v { font-size: 18px; font-weight: 800; color: #14462c; letter-spacing: -.5px;
              margin-top: 3px; font-variant-numeric: tabular-nums; }
.att-kpi .v span { font-size: 10px; font-weight: 700; color: #9CA3AF; margin-left: 2px; letter-spacing: 0; }
.att-kpi .s { font-size: 10px; color: #9CA3AF; font-weight: 600; margin-top: 2px;
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-kpi.warn { background: #FFF9EE; border-color: #F5E7C8; }
.att-kpi.warn .v { color: #92400E; }
.att-kpi.bad { background: #FEF5F5; border-color: #F7E0E0; }
.att-kpi.bad .v { color: #B91C1C; }

.att-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.att-wd { text-align: center; font-size: 10px; color: #9CA3AF; font-weight: 800; padding: 2px 0 3px; }
.att-cell { min-height: 46px; border: 1px solid #EEF0F2; border-radius: 10px; background: #fff;
            padding: 5px 7px; display: flex; flex-direction: column; gap: 1px; }
.att-cell .d { font-size: 11.5px; font-weight: 800; color: #374151; font-variant-numeric: tabular-nums; }
.att-cell .t { font-size: 9.5px; color: #9CA3AF; font-weight: 600; font-family: "SF Mono", Menlo, monospace; }
.att-cell.blank { border: 0; background: transparent; }
.att-cell.weekend { background: #FAFBFC; }
.att-cell.none { background: #FAFBFC; }
.att-cell.none .d { color: #C8CDD4; }
.att-cell.ok { background: #F1F8F4; border-color: #DCEDE2; }
.att-cell.ok .d { color: #14462c; }
.att-cell.warn { background: #FFF8EA; border-color: #F6E4BC; }
.att-cell.warn .d { color: #92400E; }
.att-cell.bad { background: #FEF2F2; border-color: #F8DADA; }
.att-cell.bad .d { color: #B91C1C; }
.att-cell.info { background: #EFF5FF; border-color: #D9E6FB; }
.att-cell.info .d { color: #1D4ED8; }
.att-cell.rest { background: #F6F7F9; border-color: #EDEFF2; }
.att-cell.today { box-shadow: inset 0 0 0 1.5px #14462c; }

.att-list { margin-top: 12px; max-height: 286px; overflow: auto; border-top: 1px solid #F3F4F6; }
.att-list .hr-table th { position: sticky; top: 0; z-index: 1; background: #FBFCFD; }
.att-src-tag { font-size: 9.5px; font-weight: 800; color: #6B7280; background: #F3F4F6;
               padding: 2px 7px; border-radius: 999px; }
.att-foot { margin-top: 10px; font-size: 10.5px; color: #9CA3AF; font-weight: 600; }
.att-empty { padding: 26px 0; text-align: center; font-size: 12px; color: #9CA3AF; font-weight: 600; }

@media (max-width: 1100px) {
  .att-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .att-kpis { grid-template-columns: repeat(2, 1fr); }
  .att-cell { min-height: 40px; padding: 4px 5px; }
  .att-cell .t { display: none; }
  .att-list { max-height: 240px; }
}

/* ---------- 导入弹窗与通道状态 ---------- */
.imp-tip { background: #F4F7F5; border: 1px solid #E4EDE7; border-radius: 12px; padding: 10px 12px;
           font-size: 11.5px; line-height: 1.7; color: #4B5563; font-weight: 500; margin-bottom: 12px; }
.imp-tip b { color: #14462c; font-weight: 800; }

.imp-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.imp-file { font-size: 11px; color: #9CA3AF; font-weight: 600; }
.imp-sheet { height: 30px; font-size: 11px; max-width: 190px; }

/* 表单分组标题：跨两列，压在字段上方的一条细线 */
.hr-fsec { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
           margin: 6px 0 -2px; padding-top: 10px; border-top: 1px solid #EEF1EF; }
.hr-fsec:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.hr-fsec > span { font-size: 11px; font-weight: 800; color: #14462c; letter-spacing: .04em; }
.hr-fsec > span::before { content: ""; display: inline-block; width: 3px; height: 10px; border-radius: 2px;
                          background: #14462c; margin-right: 6px; vertical-align: -1px; }
.hr-fsec > em { font-size: 10px; font-style: normal; font-weight: 600; color: #9CA3AF; }

.imp-ta { width: 100%; min-height: 148px; border: 1px solid #E5E7EB; border-radius: 12px;
          padding: 10px 12px; font-size: 11.5px; line-height: 1.7; font-family: ui-monospace, SFMono-Regular,
          "SF Mono", Menlo, monospace; color: #111827; outline: none; resize: vertical; background: #FCFCFD; }
.imp-ta:focus { border-color: #14462c; background: #fff; box-shadow: 0 0 0 3px rgba(20,70,44,.08); }

.imp-prev { margin-top: 10px; font-size: 11px; font-weight: 600; color: #6B7280;
            background: #F7F8F9; border-radius: 10px; padding: 8px 11px; line-height: 1.6; }
.imp-prev.good { background: #F1F8F3; color: #14462c; }
.imp-prev.bad { background: #FEF3F2; color: #B42318; }
.imp-prev b { font-weight: 800; }
.imp-prev .warn { color: #B54708; font-weight: 700; }

.imp-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px;
            color: #6B7280; font-weight: 600; background: #fff; border: 1px dashed #E1E6E3;
            border-radius: 12px; padding: 9px 12px; }
.imp-note b { color: #14462c; font-weight: 800; }
.imp-note .dot { width: 6px; height: 6px; border-radius: 50%; background: #C7CDD4; flex: 0 0 auto; }
.imp-note .st { margin-left: auto; font-size: 10px; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.imp-note .st.off { background: #F3F4F6; color: #6B7280; }
.imp-note .st.on { background: #E7F4EC; color: #14462c; }

/* 导入弹窗：这些块横跨整行（弹窗 body 是两列网格） */
.hr-modal-body > .imp-tip,
.hr-modal-body > .imp-pick,
.hr-modal-body > .imp-ta,
.hr-modal-body > .imp-prev { grid-column: 1 / -1; }

/* ---------- 仪表盘 KPI 卡可点 ---------- */
.hr-kpi.clickable { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; }
.hr-kpi.clickable:hover { border-color: #C9DED2; box-shadow: 0 6px 18px rgba(20,70,44,.10); transform: translateY(-1px); }
.hr-kpi.clickable:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(17,24,39,.06); }
.hr-kpi.clickable:focus-visible { outline: 2px solid #14462c; outline-offset: 2px; }
.hr-kpi.clickable::after { content: "›"; position: absolute; right: 16px; bottom: 12px; font-size: 14px;
                           font-weight: 800; color: #C7D6CD; opacity: 0; transition: opacity .12s; }
.hr-kpi.clickable:hover::after { opacity: 1; }

/* 工具栏上的快捷筛选胶囊（从 KPI 卡进来时出现） */
.hr-qchip { border: 1px solid #BFE3CD; background: #F1FAF4; color: #14462c; border-radius: 999px;
            padding: 5px 11px; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.hr-qchip::after { content: "　×"; color: #6B9E80; }
.hr-qchip:hover { background: #E4F5EA; }

/* ---------- 顶栏待办铃铛 ---------- */
.tb-bell-wrap { position: relative; display: flex; align-items: center; }
.bell-panel { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 268px;
              background: #fff; border: 1px solid #EEF0F2; border-radius: 14px; z-index: 60;
              box-shadow: 0 16px 40px rgba(17,24,39,.14); padding: 8px; }
.bell-panel.on { display: block; }
.bell-panel .hd { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
                  color: #6B7280; padding: 4px 8px 8px; }
.bell-panel .hd b { margin-left: auto; font-size: 10px; font-weight: 800; color: #B45309;
                    background: #FEF3C7; border-radius: 999px; padding: 2px 8px; }
.bell-panel .row { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px;
                   cursor: pointer; }
.bell-panel .row:hover { background: #F4F7F5; }
.bell-panel .row.calm { opacity: .55; }
.bell-panel .row .n { width: 24px; text-align: center; font-size: 12px; font-weight: 800; color: #14462c; }
.bell-panel .row.calm .n { color: #9CA3AF; }
.bell-panel .row .t { font-size: 12px; font-weight: 700; color: #111827; }
.bell-panel .row .go { margin-left: auto; color: #C7CDD4; font-weight: 800; }
.bell-panel .ft { margin-top: 4px; padding: 8px 9px; border-top: 1px solid #F1F3F5; font-size: 11px;
                  font-weight: 700; color: #14462c; cursor: pointer; border-radius: 0 0 8px 8px; }
.bell-panel .ft:hover { background: #F4F7F5; }

/* 搜索下拉的小标题 */
.tb-search .drop .grp { font-size: 9.5px; font-weight: 800; letter-spacing: .6px; color: #9CA3AF;
                        padding: 6px 9px 2px; }

/* ---------- 附件上传 ---------- */
.hr-modal-body > .hr-field > .file-field { display: block; }
.file-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-tip { font-size: 10.5px; color: #9CA3AF; font-weight: 600; }
.file-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.file-row { display: flex; align-items: center; gap: 10px; background: #F7F9F8; border: 1px solid #EDF1EF;
            border-radius: 10px; padding: 7px 10px; }
.file-name { font-size: 12px; font-weight: 700; color: #14462c; text-decoration: none; overflow: hidden;
             text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.file-name:hover { text-decoration: underline; }
.file-size { font-size: 10px; color: #9CA3AF; font-weight: 700; margin-left: auto; }
.file-x { border: 0; background: transparent; color: #B91C1C; font-size: 10.5px; font-weight: 800;
          cursor: pointer; padding: 2px 4px; }
.file-x:hover { text-decoration: underline; }
.file-empty { font-size: 11px; color: #9CA3AF; font-weight: 600; padding: 6px 2px; }
.file-stat { font-size: 10.5px; font-weight: 700; margin-top: 6px; color: #6B7280; }
.file-stat.good { color: #14462c; }
.file-stat.bad { color: #B91C1C; }

/* 工具栏放不下时整块换行，别把「N 条」挤成半个字 */
.hr-count, .hr-btn, .hr-qchip { flex: 0 0 auto; white-space: nowrap; }

/* ===== 岗位（名称 + 分级 + 职责）编辑器 ===== */
.pos-editor { display: flex; flex-direction: column; gap: 10px; }
.pos-rows { display: flex; flex-direction: column; gap: 10px; }
.pos-row { border: 1px solid #E5E7EB; border-radius: 12px; padding: 10px; background: #FBFCFD;
           display: flex; flex-direction: column; gap: 8px; }
.pos-top { display: flex; gap: 8px; align-items: center; }
.pos-top .pos-name { flex: 1 1 auto; min-width: 0; }
.pos-top .pos-grade { flex: 0 0 96px; }
.pos-del { flex: 0 0 auto; border: 0; background: #FEE2E2; color: #B91C1C; width: 28px; height: 28px;
           border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1; }
.pos-del:hover { background: #FECACA; }
.pos-duty { width: 100%; resize: vertical; min-height: 72px; line-height: 1.6; border: 1px solid #E5E7EB;
            border-radius: 8px; padding: 8px 10px; font-size: 12px; font-family: inherit; }
.pos-duty:focus { border-color: #6366F1; outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

/* ===== 部门表岗位展示（分级徽标 + 可折叠职责） ===== */
.pos-det { border: 1px solid #EEF1F4; border-radius: 9px; padding: 4px 8px; margin-bottom: 4px; background: #fff; }
.pos-det summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pos-det summary::-webkit-details-marker { display: none; }
.pos-det summary::before { content: "\25B8"; color: #9CA3AF; font-size: 9px; transition: transform .15s; }
.pos-det[open] summary::before { transform: rotate(90deg); }
.pos-det summary b { font-weight: 700; color: #1F2937; }
.pos-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.pos-badge.g-0 { background: #E5E7EB; color: #374151; }   /* 员工 */
.pos-badge.g-1 { background: #DBEAFE; color: #1D4ED8; }   /* 组长 */
.pos-badge.g-2 { background: #FCE7C8; color: #B45309; }   /* 主管 */
.pos-badge.g-3 { background: #E9D5FF; color: #6D28D9; }   /* 总监 */
.pos-badge.g-4 { background: #14462c; color: #fff; }      /* 经理（部门负责人）*/
.pos-duty-txt { font-size: 11.5px; color: #4B5563; line-height: 1.7; padding: 6px 2px 2px; }

/* ============ 招聘漏斗 ============ */
.fn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .fn-grid { grid-template-columns: 1fr; } }
.fn-cap { font-size: 11px; font-weight: 800; color: #9CA3AF; letter-spacing: .4px; margin-bottom: 8px; }
.fn-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.fn-row.sm { margin-bottom: 5px; }
.fn-label { width: 64px; flex: 0 0 64px; font-size: 12px; color: #374151; font-weight: 600; text-align: right; }
.fn-bar { flex: 1; height: 18px; background: #F3F4F6; border-radius: 9px; overflow: hidden; }
.fn-fill { height: 100%; background: linear-gradient(90deg, #1e5a3a, #36a06a); border-radius: 9px; min-width: 6px; }
.fn-fill.alt { background: linear-gradient(90deg, #14462c, #3a7d56); }
.fn-num { width: 56px; flex: 0 0 56px; font-size: 12px; font-weight: 700; color: #111827; text-align: right; }
.fn-pct { color: #9CA3AF; font-weight: 500; font-size: 11px; margin-left: 2px; }
.fn-sum { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #EEF0F2; flex-wrap: wrap; }
.fn-sm { display: flex; flex-direction: column; }
.fn-sm b { font-size: 20px; font-weight: 800; color: #14462c; }
.fn-sm span { font-size: 11px; color: #9CA3AF; }
.fn-arrow { color: #9CA3AF; font-size: 18px; }
.fn-rate { margin-left: auto; font-size: 12px; color: #6B7280; }
.fn-rate b { color: #14462c; font-size: 15px; }

/* ============ 多级审批进度 ============ */
.ap-step { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: #374151; }
.ap-step i { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-style: normal; color: #fff; }
.ap-step.ok i { background: #10B981; }
.ap-step.no i { background: #EF4444; }
.ap-step.wait i { background: #D1D5DB; color: #6B7280; }
.ap-sep { color: #D1D5DB; margin: 0 4px; }

/* ============ 我的薪资 ============ */
.my-pay-list { display: flex; flex-direction: column; gap: 8px; }
.my-pay-row { border: 1px solid #EEF0F2; border-radius: 14px; overflow: hidden; cursor: pointer; }
.my-pay-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.my-pay-month { font-weight: 800; color: #111827; }
.my-pay-net { margin-left: auto; font-weight: 800; color: #14462c; }
.my-pay-tag { transform: scale(.9); }
.my-pay-caret { color: #9CA3AF; transition: transform .2s; }
.my-pay-row.open .my-pay-caret { transform: rotate(180deg); }
.my-pay-detail { display: none; padding: 0 14px 12px; border-top: 1px solid #F3F4F6; }
.my-pay-row.open .my-pay-detail { display: block; }
.my-pay-li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #374151; border-bottom: 1px dashed #F3F4F6; }
.my-pay-li b { color: #111827; }
.my-pay-li.minus b { color: #B42318; }
.my-pay-li.sum { border-bottom: none; border-top: 1px solid #EEF0F2; margin-top: 4px; padding-top: 8px; font-weight: 700; }
.my-pay-li.sum b { color: #14462c; font-size: 14px; }
.my-pay-sec { margin: 12px 0 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9CA3AF; font-weight: 700; }
.my-pay-tot { display: flex; gap: 14px; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #EEF0F2; font-size: 12px; color: #6B7280; flex-wrap: wrap; }
.my-pay-tot .net { color: #14462c; font-weight: 800; }

/* ============ 组织架构 ============ */
.org-kpi { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.org-k { flex: 1 1 100px; background: #F9FAFB; border: 1px solid #EEF0F2; border-radius: 12px; padding: 10px 12px; }
.org-k b { display: block; font-size: 22px; color: #14462c; line-height: 1.2; }
.org-k span { font-size: 12px; color: #6B7280; }

/* 两列网格：部门卡片各占一栏，岗位树在栏内展开，不会拖出一条超宽空行。
   部门层数差别大（财务部 1 层、直播部 4 层），按行等高时小卡片会被拉高留白一片，
   所以渲染时用 order 按「岗位层数」重排，让深度相近的两张卡片并排。 */
/* align-items:start —— 卡片按内容自然高度，不被同行的长卡片拉高。
   原先 stretch 是为岗位树准备的；改成职级链后，0 人部门挨着 5 层部门会被撑出一大片空白。 */
.org-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
@media (max-width: 1080px) { .org-grid { grid-template-columns: 1fr; } }

.org-card { margin-top: 0; }
.org-dept { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; color: #111827; }
.org-name { font-weight: 800; letter-spacing: .01em; }
.org-cnt { font-size: 12px; color: #6B7280; font-weight: 500; }
.org-missing { font-size: 11px; color: #B42318; font-weight: 600; background: #FEF3F2; padding: 2px 8px; border-radius: 999px; }

.org-tree { position: relative; }
.org-node { position: relative; padding: 7px 0 7px 14px; border-left: 2px solid #E4E8EC; }
.org-node::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 2px; background: #E4E8EC; }
/* 一级岗位（部门经理）不画连接线，避免树根也挂一根横线 */
.org-node[data-lv="0"] { border-left-color: transparent; padding-left: 0; }
.org-node[data-lv="0"]::before { display: none; }
.org-row { display: flex; align-items: center; gap: 7px; }
.org-row b { font-size: 13.5px; color: #111827; font-weight: 700; }
.org-num { margin-left: auto; font-size: 12px; color: #047857; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.org-num.zero { color: #C3C8CE; font-weight: 500; }
.org-duty { margin: 3px 0 0; font-size: 12px; color: #4B5563; line-height: 1.6; }
.org-who { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.org-chip { background: #F3F4F6; border-radius: 999px; padding: 2px 10px; font-size: 12px; color: #374151; }
.org-chip.warn { background: #FEF3F2; color: #B42318; }
.org-chip.dim { color: #B0B6BD; }
.org-stray { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
/* 岗位树列不出的人（没填岗位 / 岗位名不在树上）：单列一条，让「N 人在岗」对得上号 */
.org-idle { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 9px; padding-top: 9px; border-top: 1px dashed #E4E8EC; }
.org-idle-k { font-size: 11.5px; color: #9AA3AB; margin-right: 2px; }
.org-act { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* 未定级：不是错误，只是职级还没填，用灰字和正常职级区分开 */
.org-row b.org-unset { color: #9AA3AB; font-weight: 600; }
/* 骨架里有这一层、但目前没人（例如技术部只有部门经理在岗） */
.org-row b.org-blank { color: #B7BDC4; font-weight: 600; }
/* 部门存在但一个人都没有（部门先在员工管理里建好了） */
.org-empty { font-size: 12px; color: #B0B6BD; padding: 6px 0; }

/* ---- 组织架构：层级编辑器 ---- */
.org-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hr-mini { border: 1px solid #E5E7EB; background: #fff; color: #374151; border-radius: 8px;
  padding: 3px 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; line-height: 1.7; }
.hr-mini:hover { background: #F3F4F6; }
.hr-mini.ghost { border-color: transparent; background: transparent; color: #6B7280; }
.hr-mini.ghost:hover { background: #F3F4F6; }
.hr-mini.danger { color: #B42318; }
.hr-mini.danger:hover { background: #FEF3F2; border-color: #FECDCA; }

.org-edit-box { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.org-edit-dept { border: 1px solid #EEF0F2; border-radius: 12px; padding: 10px 12px; background: #FCFCFD; }
.org-edit-title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.org-edit-title b { font-size: 13.5px; color: #111827; }
.org-edit-n { font-size: 11px; color: #9AA3AB; font-weight: 600; margin-right: auto; }
.org-edit-empty { font-size: 12px; color: #9AA3AB; padding: 4px 0 2px; }
.org-edit-row { display: grid; grid-template-columns: 20px 148px 1fr auto; align-items: center;
  gap: 10px; padding: 6px 0; border-top: 1px dashed #EEF0F2; }
.org-edit-row:first-of-type { border-top: 0; }
.org-edit-idx { font-size: 11px; color: #B0B6BD; text-align: right; font-variant-numeric: tabular-nums; }
.org-edit-name { width: 100%; box-sizing: border-box; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 5px 9px; font-size: 12.5px; color: #111827; background: #fff; }
.org-edit-name:focus { outline: none; border-color: #14462c; }
.org-edit-holds { display: flex; gap: 5px; flex-wrap: wrap; }
.org-hold { border: 1px solid #E5E7EB; background: #fff; color: #6B7280; border-radius: 999px;
  padding: 2px 9px; font-size: 11px; font-weight: 700; cursor: pointer; }
.org-hold:hover { border-color: #C7CEC6; }
.org-hold.on { background: #14462c; border-color: #14462c; color: #fff; }
.org-edit-act { display: flex; gap: 4px; }
@media (max-width: 900px) {
  .org-edit-row { grid-template-columns: 20px 1fr; }
  .org-edit-holds, .org-edit-act { grid-column: 2; }
}

/* ============ 考核 ============ */
.assess-box { display: flex; flex-direction: column; gap: 8px; }
.assess-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: #F9FAFB; border-radius: 10px; }
.assess-t { flex: 1; font-size: 13px; color: #374151; }
.assess-score { width: 90px; flex: 0 0 90px; text-align: right; }
.assess-sum { display: flex; gap: 18px; align-items: center; padding: 8px 4px; font-size: 13px; color: #6B7280; border-top: 1px solid #EEF0F2; margin-top: 4px; }
.assess-sum b { color: #14462c; font-size: 16px; margin-left: 4px; }
.grade { color: #fff; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; }
.grade.g-A { background: #10B981; } .grade.g-B { background: #3a7d56; } .grade.g-C { background: #D97706; } .grade.g-D { background: #F59E0B; } .grade.g-E { background: #EF4444; }
.g-A { color: #10B981; } .g-B { color: #3a7d56; } .g-C { color: #D97706; } .g-D { color: #F59E0B; } .g-E { color: #EF4444; }

/* ============ 离职交接 ============ */
.check-list { display: flex; flex-direction: column; gap: 6px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #F9FAFB; border-radius: 10px; cursor: pointer; font-size: 13px; color: #374151; }
.check-row input { width: 16px; height: 16px; }
.ob-prog { display: flex; align-items: center; gap: 8px; }
.ob-bar { height: 8px; background: linear-gradient(90deg, #1e5a3a, #36a06a); border-radius: 999px; min-width: 4px; }
.ob-prog span { font-size: 12px; color: #6B7280; font-weight: 600; }

/* ============ 未分配部门 / 部门页提示条 ============ */
.hr-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid #F0DCB0; background: #FFFCF3; color: #7A4E12;
  border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 13px; line-height: 1.6; }
.hr-banner b { color: #8A5A05; }
.hr-banner .hr-link { color: #8A5A05; font-size: 12.5px; margin-left: auto; }
.hr-untag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 9px;
  background: #F2F4F7; color: #7A8496; font-weight: 600; white-space: nowrap; }
.hr-muted { color: #9AA4B2; font-size: 11px; }

/* ---- 打卡考勤（企微 · 只读云端） ---- */
.ck-sub { margin: 16px 0 2px; font-size: 12px; font-weight: 800; color: #374151; }
.ck-bad { color: #B91C1C; }
.ck-row-abn td { background: #FFFBF6; }
.ck-row-abn td:first-child { box-shadow: inset 2.5px 0 0 #D97706; }

/* ---- 考勤计算问号明细 ---- */
.ck-q { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 6px; padding: 0; border: 1px solid #D1D5DB; border-radius: 50%; background: #FFF; color: #6B7280; font-size: 10px; font-weight: 800; line-height: 1; cursor: pointer; vertical-align: 1px; }
.ck-q:hover { border-color: #B45309; color: #B45309; background: #FFFBEB; }
.ck-qrow td { background: #FAFAFB; padding: 10px 14px !important; border-top: 1px dashed #E5E7EB; }
.ck-qhead { font-size: 11px; font-weight: 800; color: #374151; margin-bottom: 6px; }
.ck-qg { display: flex; gap: 8px; align-items: baseline; font-size: 11px; margin: 3px 0; }
.ck-qg b { min-width: 92px; font-weight: 800; flex: none; }
.ck-qg.ok b { color: #047857; }
.ck-qg.warn b { color: #B45309; }
.ck-qg.bad b { color: #B91C1C; }
.ck-qg.mute b { color: #9CA3AF; }
.ck-qd { color: #4B5563; }
.ck-qd b { color: #047857; }
/* 问号面板顶部的总账：当日结算逐日相加 − 缺勤 = 这一行的结果 */
.ck-qsum { font-size: 11px; color: #374151; font-weight: 700; margin: 0 0 7px;
           padding-bottom: 6px; border-bottom: 1px dashed #E5E7EB; }
.ck-qsum b { font-weight: 800; color: #111827; }

/* ===== 出图考核（星标产量） =====
   数据来自多水工作台的星标，按设备统计。放在考核管理页里，与人工评分分开两块：
   上面是客观产量，下面是主管打分，不能混成一张表。 */
.star-box { padding: 0 18px 16px; }

.hr-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px;
           border-radius: 999px; font-size: 11px; font-weight: 700;
           background: #F3F4F6; color: #6B7280; white-space: nowrap; }
.hr-chip.ok { background: #E7F6EC; color: #14462c; }
.hr-chip.warn { background: #FEF3C7; color: #92400E; }
.hr-chip.dim { background: #F9FAFB; color: #9CA3AF; }

.hr-mono.dim { color: #9CA3AF; }

/* 完成度：按张数算，差一张也不算达标，所以进度条到 99% 时仍然是未完成状态 */
.star-bar { display: inline-block; width: 92px; height: 6px; border-radius: 999px;
            background: #EEF0F2; overflow: hidden; vertical-align: middle; margin-right: 6px; }
.star-bar i { display: block; height: 100%; border-radius: 999px;
              background: linear-gradient(90deg, #14462c, #2F7A4F); }

.hr-table tr.dim-row td { opacity: .5; }

.star-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
             padding-top: 12px; margin-top: 10px; border-top: 1px dashed #EEF0F2; }

/* 详情弹窗里的星标图九宫格 —— 防「拿废图凑数」全靠这一屏 */
.star-meta { font-size: 12px; color: #374151; margin-bottom: 10px; }
.star-meta b { font-weight: 800; color: #111827; }
.star-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.star-cell { border: 1px solid #EEF0F2; border-radius: 12px; overflow: hidden; background: #fff; }
.star-cell img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #F3F4F6; }
.star-cell-meta { padding: 8px 9px 10px; }
.star-cell-meta .n { font-size: 11.5px; font-weight: 700; color: #111827; display: flex;
                     flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 3px;
                     word-break: break-all; line-height: 1.4; }
.star-cell-meta .p { margin-top: 5px; font-size: 10.5px; color: #6B7280; line-height: 1.5;
                     max-height: 46px; overflow: hidden; }
.star-flag { display: inline-block; padding: 0 6px; border-radius: 999px;
             font-size: 10px; font-weight: 700; }
.star-flag.bad { background: #FEE2E2; color: #991B1B; }
.star-flag.warn { background: #FEF3C7; color: #92400E; }

/* ===== 部门考核（运营部考核 / 直播部考核）=====
   一张部门一张表：上面是部门合计，下面一个人一行，达标与否直接给结论。 */
.kpi-groups { display: flex; flex-direction: column; gap: 16px; }
.kpi-dept-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 12px 20px; border-bottom: 1px solid #F3F4F6; background: #FAFBFA;
  font-size: 11.5px; color: #6B7280; font-weight: 600; }
.kpi-dept-sum b { font-size: 15px; font-weight: 800; color: #14462c; margin: 0 2px;
  font-variant-numeric: tabular-nums; }
.kpi-dept-sum .dim { color: #9CA3AF; font-weight: 600; }
.kpi-dept .hr-table td:last-child { white-space: nowrap; }
.hr-link[disabled] { opacity: .35; cursor: default; pointer-events: none; }

/* ===== 直播考核：ERP 净销售额 =====
   数字全部来自 ERP 达人 CPS，所以这一块必须先让人看清「是哪个区间的数」。 */
.kpi-src-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 2px 0 6px; font-size: 11.5px; font-weight: 600; color: #6B7280; }
.kpi-src-lab { font-weight: 700; color: #374151; }
.kpi-src-tilde { color: #9CA3AF; font-weight: 700; }
.kpi-src-nums { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 6px 0 12px; }
.kpi-src-n { display: flex; flex-direction: column; gap: 2px; }
.kpi-src-n b { font-size: 19px; font-weight: 800; color: #14462c;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.kpi-src-n span { font-size: 10.5px; font-weight: 700; color: #9CA3AF; letter-spacing: .3px; }
.kpi-src-n.dim b { color: #6B7280; font-size: 15px; }
.kpi-sales-groups { display: flex; flex-direction: column; gap: 16px; }
.kpi-h2-act { margin-left: auto; }
.kpi-h2-act .hr-btn { padding: 4px 10px; font-size: 11px; border-radius: 8px; }
.kpi-kol { display: inline-block; margin: 1px 4px 1px 0; padding: 2px 7px; border-radius: 6px;
  background: #EEF4F0; color: #14462c; font-size: 11px; font-weight: 700; white-space: nowrap; }
.kpi-kol.dim { background: #F3F4F6; color: #9CA3AF; }
/* 共享达人：一个达人可以被多人绑定（两人共管一个号是正常业务）。
   只给中性说明，不用警示色 —— 允许的事不该看着像错误。 */
.kpi-share-note { color: #9CA3AF; font-weight: 700; }
.kpi-share-tag { font-size: 10px; font-weight: 700; color: #9CA3AF; margin-left: 6px; white-space: nowrap;
  background: #F3F4F6; border-radius: 5px; padding: 1px 5px; }
.kpi-kolcell { max-width: 230px; }
/* 不参与考核的部门：一行说明，不是空卡片 —— 只是告诉人「为什么这里没他们」 */
.kpi-offnote { margin: 4px 2px 18px; font-size: 12px; color: #6B7280; line-height: 1.7; }
.kpi-offnote b { color: #4B5563; font-weight: 800; }
.kpi-offnote .dim { color: #9AA3AB; }
.kpi-lack { color: #B45309; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-over { color: #15803D; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-dept-sum b.kpi-sum-lack { color: #B45309; }
.kpi-live-days { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 同步进度/结果：平时不占高度，出字才撑开，免得弹窗忽上忽下 */
.kpi-sync { font-size: 11px; color: #9AA3AB; line-height: 1.6; margin: 6px 0 0; font-weight: 600; }
.kpi-sync.ok { color: #15803D; }
.kpi-sync.bad { color: #B45309; }
.kpi-live-kw { padding: 7px 11px; border: 1px solid #E5E7EB; border-radius: 9px;
  font-family: inherit; font-size: 12px; color: #111827; }
.kpi-live-kw:focus { outline: none; border-color: #14462c; }
.kpi-kollist { max-height: 240px; }
.kpi-sumrow td { background: #FAFBFA; font-weight: 800; }
@media (max-width: 940px) {
  .kpi-src-nums { gap: 8px 18px; }
}

/* ===== 个人考核弹窗 ===== */
.hr-modal-body.kpi-form { grid-template-columns: 1fr; gap: 14px; }
.kpi-emp { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px dashed #EEF0F2; }
.kpi-emp b { font-size: 16px; font-weight: 800; color: #111827; }
.kpi-emp .hr-mono { font-size: 11px; color: #6B7280; }
.kpi-sec-t { display: flex; align-items: baseline; gap: 8px; font-size: 11px;
  font-weight: 700; color: #6B7280; }
.kpi-sec-t .dim { font-weight: 600; color: #9CA3AF; }
.kpi-devlist { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto;
  border: 1px solid #E5E7EB; border-radius: 12px; padding: 8px; background: #fff; }
.kpi-dev { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px;
  cursor: pointer; font-size: 12px; color: #374151; font-weight: 600; }
.kpi-dev:hover { background: #F7F9F8; }
.kpi-dev input { width: 15px; height: 15px; margin: 0; accent-color: #14462c; flex: none; cursor: pointer; }
.kpi-dev-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-dev-c { font-variant-numeric: tabular-nums; color: #14462c; font-weight: 800; }
.kpi-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.kpi-verdict { border-radius: 14px; padding: 12px 16px; border: 1px solid #E5E7EB; background: #F9FAFB; }
.kpi-verdict.ok { background: #ECFDF3; border-color: #B7E4C7; }
.kpi-verdict.bad { background: #FEF2F2; border-color: #FBD5D5; }
.kpi-v-main { font-size: 19px; font-weight: 800; letter-spacing: .3px; }
.kpi-verdict.ok .kpi-v-main { color: #15803D; }
.kpi-verdict.bad .kpi-v-main { color: #B91C1C; }
.kpi-v-sub { margin-top: 4px; font-size: 12px; color: #374151; font-weight: 600; }
.kpi-v-sub b { font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
.kpi-v-sub .dim { color: #9CA3AF; font-weight: 600; }
.kpi-v-msg { margin-top: 5px; font-size: 12px; font-weight: 700; color: #374151; }
.kpi-v-msg b { font-size: 15px; font-weight: 800; color: #B91C1C; margin: 0 1px; }
.kpi-dept .kpi-pct, .kpi-dept .kpi-res { white-space: nowrap; }
