    :root {
      --ink: #17211d;
      --muted: #69746f;
      --line: #dfe5e1;
      --soft: #f4f6f4;
      --paper: #ffffff;
      --canvas: #f0f3f1;
      --green: #185f4a;
      --green-2: #24765e;
      --mint: #dcebe4;
      --amber: #b87018;
      --amber-bg: #fff1d9;
      --red: #b34949;
      --red-bg: #fdeaea;
      --blue: #2e6799;
      --blue-bg: #e8f1f9;
      --shadow: 0 8px 30px rgba(23, 33, 29, .07);
    }
    * { box-sizing: border-box; }
    body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "DM Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
    button, input, select { font: inherit; }
    button { letter-spacing: 0; }
    .app { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
    .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #153f34; color: #e7f1ed; display: flex; flex-direction: column; padding: 18px 14px 16px; z-index: 20; }
    .brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 16px; }
    .brand-mark { width: 37px; height: 37px; border-radius: 8px; display: grid; place-items: center; background: #edf5f1; color: var(--green); font-weight: 800; font-size: 18px; }
    .brand strong { display: block; font-size: 15px; }
    .brand span { color: #a9c4ba; font-size: 11px; }
    .nav-group { margin-top: 8px; }
    .nav-label { padding: 7px 12px 5px; color: #87aa9d; font-size: 9px; font-weight: 700; }
    .nav { display: grid; gap: 3px; }
    .nav button { border: 0; background: transparent; color: #bad0c8; min-height: 36px; border-radius: 6px; padding: 0 11px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; font-size: 12px; }
    .nav button:hover { color: white; background: rgba(255,255,255,.07); }
    .nav button.active { color: #153f34; background: #e7f1ed; font-weight: 700; }
    .nav svg { width: 16px; height: 16px; flex: 0 0 16px; }
    .nav .badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #d88c32; color: white; font-size: 10px; }
    .sidebar-foot { margin-top: auto; padding: 14px 10px 2px; border-top: 1px solid rgba(255,255,255,.11); color: #91afa4; font-size: 11px; line-height: 1.8; }
    .main { min-width: 0; }
    .topbar { height: 68px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(10px); }
    .icon-btn.mobile-menu { display: none; }
    .crumb { font-size: 12px; color: var(--muted); }
    .crumb strong { color: var(--ink); font-size: 14px; margin-left: 4px; }
    .top-actions { display: flex; align-items: center; gap: 10px; }
    .icon-btn { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: white; color: #4d5a54; display: grid; place-items: center; cursor: pointer; position: relative; }
    .icon-btn:hover { background: var(--soft); }
    .icon-btn svg { width: 17px; }
    .dot { position: absolute; width: 7px; height: 7px; right: 7px; top: 6px; background: #d16c49; border-radius: 50%; border: 1px solid white; }
    .profile { display: flex; align-items: center; gap: 9px; margin-left: 4px; }
    .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5d7c7; color: #714b31; font-size: 12px; font-weight: 700; }
    .profile-text strong { display: block; font-size: 12px; }
    .profile-text span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
    .content { padding: 28px 30px 50px; max-width: 1600px; margin: 0 auto; }
    .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
    .page-head h1 { margin: 0 0 6px; font-size: 23px; line-height: 1.2; letter-spacing: 0; }
    .page-head p { margin: 0; color: var(--muted); font-size: 12px; }
    .actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .btn { min-height: 36px; border-radius: 6px; border: 1px solid var(--line); background: white; color: var(--ink); padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
    .btn:hover { background: var(--soft); }
    .btn.primary { background: var(--green); color: white; border-color: var(--green); }
    .btn.primary:hover { background: var(--green-2); }
    .btn:disabled { opacity: .45; cursor: not-allowed; }
    .btn.danger { color: var(--red); border-color: #ebcaca; }
    .btn svg { width: 15px; height: 15px; }
    .stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); background: var(--paper); margin-bottom: 20px; box-shadow: var(--shadow); }
    .stat { min-height: 112px; padding: 20px; position: relative; border-right: 1px solid var(--line); }
    .stat:last-child { border-right: 0; }
    .stat .label { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
    .stat .label i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }
    .stat .value { font-size: 28px; line-height: 1; font-weight: 700; margin-top: 13px; }
    .stat .value small { font-size: 12px; color: var(--muted); font-weight: 500; }
    .stat .trend { position: absolute; right: 17px; bottom: 19px; padding: 4px 7px; border-radius: 4px; font-size: 10px; background: var(--mint); color: var(--green); }
    .stat .trend.warn { background: var(--amber-bg); color: var(--amber); }
    .grid-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .8fr); gap: 20px; }
    .stack { display: grid; gap: 20px; align-content: start; }
    .panel { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
    .panel-head { min-height: 57px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
    .panel-head h2 { margin: 0; font-size: 14px; }
    .panel-head span { color: var(--muted); font-size: 10px; margin-left: 7px; font-weight: 400; }
    .link-btn { padding: 5px; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; }
    .attendance { padding: 22px 20px 17px; }
    .chart { height: 205px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
    .y-axis { height: 176px; display: flex; flex-direction: column; justify-content: space-between; color: #8b9691; font-size: 9px; text-align: right; }
    .plot { height: 176px; position: relative; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; background: repeating-linear-gradient(to bottom, #fff 0, #fff 43px, #edf0ee 44px); }
    .bar-group { height: 100%; display: flex; align-items: end; justify-content: center; gap: 3px; position: relative; }
    .bar { width: min(13px, 32%); min-height: 3px; background: var(--green); border-radius: 3px 3px 0 0; transition: opacity .2s; }
    .bar.absent { background: #dd9f50; }
    .bar-group:hover .bar { opacity: .72; }
    .day { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 9px; }
    .legend { display: flex; justify-content: center; gap: 17px; font-size: 9px; color: var(--muted); }
    .legend span { display: flex; align-items: center; gap: 5px; }
    .legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
    .legend i.orange { background: #dd9f50; }
    .todo-list { display: grid; }
    .todo { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
    .todo:last-child { border: 0; }
    .todo-icon { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); }
    .todo-icon.amber { background: var(--amber-bg); color: var(--amber); }
    .todo-icon.green { background: var(--mint); color: var(--green); }
    .todo-icon svg { width: 16px; }
    .todo strong { display: block; font-size: 11px; margin-bottom: 4px; }
    .todo p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
    .todo time { color: #8c9691; font-size: 9px; }
    .quick-grid { padding: 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .quick { height: 67px; border: 1px solid var(--line); background: white; border-radius: 6px; display: grid; place-items: center; align-content: center; gap: 6px; cursor: pointer; color: var(--ink); font-size: 10px; }
    .quick:hover { border-color: #9eb9ae; background: #f7faf8; color: var(--green); }
    .quick svg { width: 17px; height: 17px; color: var(--green); }
    .birthday { padding: 16px; display: flex; align-items: center; gap: 11px; }
    .birthday .avatar { background: #e2d9ef; color: #604478; }
    .birthday strong { display: block; font-size: 11px; }
    .birthday span { color: var(--muted); font-size: 10px; }
    .birthday .tag { margin-left: auto; }
    .tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 4px; background: var(--mint); color: var(--green); font-size: 10px; white-space: nowrap; }
    .tag.warn { background: var(--amber-bg); color: var(--amber); }
    .tag.red { background: var(--red-bg); color: var(--red); }
    .tag.blue { background: var(--blue-bg); color: var(--blue); }
    .toolbar { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
    .filters { display: flex; gap: 8px; flex: 1; }
    .search { position: relative; max-width: 280px; width: 100%; }
    .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; color: #8b9691; }
    .search input, select { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); outline: 0; font-size: 11px; }
    .search input { padding: 0 10px 0 33px; }
    select { width: auto; min-width: 112px; padding: 0 28px 0 10px; }
    .search input:focus, select:focus { border-color: #7ba493; box-shadow: 0 0 0 3px rgba(24,95,74,.08); }
    .table-wrap { overflow-x: auto; }
    table { border-collapse: collapse; width: 100%; min-width: 760px; }
    th { height: 41px; padding: 0 15px; text-align: left; background: #f7f8f7; color: #707b76; font-size: 10px; font-weight: 600; border-bottom: 1px solid var(--line); }
    td { height: 59px; padding: 0 15px; border-bottom: 1px solid #edf0ee; font-size: 11px; }
    tr:last-child td { border-bottom: 0; }
    tbody tr:hover { background: #fafcfb; }
    .person { display: flex; align-items: center; gap: 9px; }
    .person .avatar { width: 30px; height: 30px; font-size: 10px; }
    .person strong { display: block; font-size: 11px; }
    .person span { color: var(--muted); font-size: 9px; }
    .muted { color: var(--muted); }
    .pagination { min-height: 50px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
    .pages { display: flex; gap: 5px; }
    .pages button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 5px; background: white; cursor: pointer; font-size: 10px; }
    .pages button.active { background: var(--green); border-color: var(--green); color: white; }
    .split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
    .approval-card { padding: 18px; border-bottom: 1px solid var(--line); }
    .approval-card:last-child { border-bottom: 0; }
    .approval-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
    .approval-card h3 { font-size: 12px; margin: 0 0 5px; }
    .approval-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
    .approval-meta { margin: 14px 0; padding: 12px; background: var(--soft); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .approval-meta span { color: var(--muted); font-size: 9px; }
    .approval-meta strong { display: block; margin-top: 4px; font-size: 10px; }
    .approval-actions { display: flex; gap: 7px; justify-content: flex-end; }
    .pipeline { padding: 22px; display: grid; gap: 18px; }
    .pipe-row { display: grid; grid-template-columns: 76px 1fr 32px; gap: 10px; align-items: center; font-size: 10px; }
    .track { height: 8px; background: #e9eeeb; border-radius: 5px; overflow: hidden; }
    .fill { height: 100%; background: var(--green-2); border-radius: 5px; }
    .calendar-grid { padding: 18px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
    .cal-head { color: var(--muted); font-size: 9px; text-align: center; padding-bottom: 3px; }
    .cal-day { min-height: 74px; border: 1px solid var(--line); padding: 7px; font-size: 9px; color: var(--muted); position: relative; }
    .cal-day.today { border: 1px solid var(--green); background: #f4f9f6; color: var(--green); font-weight: 700; }
    .cal-day.off { background: #f7f8f7; color: #acb4b0; }
    .event { display: block; margin-top: 8px; padding: 4px 5px; background: var(--blue-bg); color: var(--blue); border-left: 2px solid var(--blue); font-size: 8px; line-height: 1.3; }
    .empty { padding: 55px 20px; text-align: center; color: var(--muted); font-size: 11px; }
    .module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
    .module-card { min-height: 118px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; text-align: left; color: var(--ink); }
    .module-card:hover { border-color: #91afa3; background: #f8fbf9; box-shadow: 0 5px 18px rgba(23,33,29,.06); }
    .module-card .todo-icon { margin-bottom: 13px; }
    .module-card strong { display: block; font-size: 12px; margin-bottom: 5px; }
    .module-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
    .steps { display: grid; grid-template-columns: repeat(5, 1fr); padding: 20px; }
    .step { position: relative; text-align: center; color: var(--muted); font-size: 9px; }
    .step::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); }
    .step:first-child::before { left: 50%; }
    .step:last-child::before { right: 50%; }
    .step i { position: relative; z-index: 1; width: 23px; height: 23px; margin: 0 auto 8px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; font-style: normal; font-weight: 700; }
    .step.active i { background: var(--green); color: white; }
    .toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; min-width: 250px; max-width: calc(100vw - 44px); background: #1c3028; color: white; box-shadow: 0 12px 35px rgba(0,0,0,.2); padding: 13px 15px; border-radius: 7px; display: flex; align-items: center; gap: 10px; font-size: 11px; transform: translateY(25px); opacity: 0; pointer-events: none; transition: .25s ease; }
    .toast.show { transform: translateY(0); opacity: 1; }
    .toast svg { width: 17px; color: #8fd0b5; }
    .drawer-mask { position: fixed; inset: 0; background: rgba(12,24,19,.34); z-index: 50; display: none; }
    .drawer-mask.show { display: block; }
    .drawer { position: absolute; right: 0; top: 0; width: min(420px, 92vw); height: 100%; background: white; padding: 22px; box-shadow: -15px 0 40px rgba(0,0,0,.12); overflow-y: auto; }
    .drawer.wide { width: min(760px, 96vw); padding-bottom: 0; }
    .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
    .drawer-head h2 { margin: 0; font-size: 17px; }
    .drawer-head span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
    .form-row { display: grid; gap: 7px; margin-bottom: 15px; }
    .form-row label { font-size: 11px; color: var(--muted); }
    .form-row input, .form-row textarea, .form-row select { border: 1px solid var(--line); border-radius: 6px; min-height: 39px; padding: 9px 10px; width: 100%; font: inherit; font-size: 11px; outline: 0; }
    .form-row textarea { min-height: 90px; resize: vertical; }
    .drawer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
    .form-section { margin: 22px 0 15px; padding-top: 18px; border-top: 1px solid var(--line); }
    .form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
    .form-section h3 { margin: 0; font-size: 12px; }
    .sticky-actions { position: sticky; bottom: 0; margin: 24px -22px 0; padding: 14px 22px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
    .onboarding-tabs { min-height: 44px; display: flex; gap: 24px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
    .onboarding-tabs button { position: relative; border: 0; background: transparent; color: var(--muted); padding: 0 2px; cursor: pointer; font-size: 11px; }
    .onboarding-tabs button.active { color: var(--green); font-weight: 700; }
    .onboarding-tabs button.active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--green); }
    .onboarding-modules { min-height: 76px; gap: 0; margin-bottom: 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
    .onboarding-modules button { flex: 1; min-width: 0; padding: 14px 18px; display: flex; align-items: center; gap: 11px; text-align: left; border-right: 1px solid var(--line); }
    .onboarding-modules button:last-child { border-right: 0; }
    .onboarding-modules button:hover { background: var(--soft); }
    .onboarding-modules button.active { background: #f2f8f5; }
    .onboarding-modules button.active::after { inset: auto 16px -1px; }
    .onboarding-modules button > svg { width: 19px; height: 19px; flex: 0 0 auto; }
    .onboarding-modules button span { min-width: 0; }
    .onboarding-modules button strong { display: block; color: inherit; font-size: 12px; }
    .onboarding-modules button small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 400; }
    .onboarding-checklist table, .probation-panel table { min-width: 850px; }
    .training-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
    .training-path, .training-roster { padding: 22px; }
    .training-roster { border-left: 1px solid var(--line); background: #fafbfa; }
    .training-layout h3 { margin: 0 0 16px; font-size: 12px; }
    .training-layout h3 span { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 400; }
    .training-step { min-height: 68px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; position: relative; }
    .training-step > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); font-size: 9px; font-weight: 700; }
    .training-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--line); }
    .training-step strong { font-size: 11px; }
    .training-step p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
    .training-person { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
    .training-person:last-child { border-bottom: 0; }
    .empty.compact { padding: 35px 10px; }
    .probation-progress { min-width: 165px; display: flex; align-items: center; gap: 9px; }
    .probation-progress .track { flex: 1; }
    .probation-progress .track i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
    .probation-progress span { min-width: 30px; color: var(--muted); font-size: 9px; text-align: right; }
    .row-actions { display: flex; justify-content: flex-end; gap: 6px; }
    .row-actions .btn { min-height: 30px; padding: 0 9px; font-size: 10px; }
    .roster-panel table { min-width: 1050px; }
    @media (max-width: 1050px) {
      .stats { grid-template-columns: repeat(2, 1fr); }
      .stat:nth-child(2) { border-right: 0; }
      .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
      .grid-main, .split { grid-template-columns: 1fr; }
    }
    @media (max-width: 760px) {
      .app { grid-template-columns: 1fr; }
      .sidebar { position: fixed; left: -250px; width: 236px; transition: left .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.18); }
      .sidebar.open { left: 0; }
      .icon-btn.mobile-menu { display: grid; }
      .topbar { height: 60px; padding: 0 15px; }
      .crumb { display: none; }
      .profile-text { display: none; }
      .content { padding: 20px 14px 35px; }
      .page-head { flex-direction: column; }
      .page-head h1 { font-size: 20px; }
      .stats { grid-template-columns: 1fr 1fr; }
      .stat { min-height: 102px; padding: 16px; }
      .stat .value { font-size: 23px; }
      .stat .trend { position: static; display: inline-block; margin-top: 8px; }
      .filters { flex-wrap: wrap; }
      .search { max-width: none; flex: 1 0 100%; }
      .toolbar { align-items: flex-end; }
      .quick-grid { grid-template-columns: repeat(3,1fr); }
      .calendar-grid { padding: 10px; gap: 3px; }
      .cal-day { min-height: 55px; padding: 4px; }
      .event { padding: 3px; overflow: hidden; white-space: nowrap; }
      .approval-meta { grid-template-columns: 1fr; }
      .module-grid { grid-template-columns: 1fr 1fr; padding: 12px; }
      .steps { overflow-x: auto; grid-template-columns: repeat(5, minmax(90px,1fr)); }
      .form-grid2 { grid-template-columns: 1fr; }
      .row-actions { justify-content: flex-start; flex-wrap: wrap; }
      .onboarding-modules { overflow-x: auto; }
      .onboarding-modules button { flex: 0 0 155px; padding: 12px; }
      .training-layout { grid-template-columns: 1fr; }
      .training-roster { border-left: 0; border-top: 1px solid var(--line); }
    }

/* ===== 正式版增量样式 ===== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 70% -10%, #dcebe4 0%, var(--canvas) 55%); padding: 20px; }
.login-card { width: min(400px, 94vw); background: white; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 38px 34px 30px; }
.login-card .brand-mark { width: 46px; height: 46px; font-size: 22px; background: var(--green); color: white; margin-bottom: 18px; }

/* ===== 薪酬福利 ===== */
.payroll-head { align-items: center; }
.pay-tabs { min-height: 44px; display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); margin: -8px 0 18px; }
.pay-tabs > button { align-self: stretch; padding: 0 2px; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; position: relative; }
.pay-tabs > button.active { color: var(--green); font-weight: 700; }
.pay-tabs > button.active::after { content: ""; position: absolute; height: 2px; background: var(--green); inset: auto 0 -1px; }
.pay-period { margin-left: auto; height: 32px; display: flex; align-items: center; border: 1px solid var(--line); background: white; border-radius: 6px; }
.pay-period button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.pay-period button:hover { background: var(--soft); }
.pay-period button svg { width: 14px; }
.pay-period strong { min-width: 92px; text-align: center; font-size: 10px; }
.pay-stats { box-shadow: none; }
.pay-stats .stat { min-height: 108px; }
.pay-stats .value { font-size: 24px; }
.pay-analytics { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .9fr); gap: 20px; margin-bottom: 20px; }
.pay-legend { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; }
.pay-legend span { display: flex; align-items: center; gap: 5px; margin: 0; }
.pay-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.pay-legend i.net { background: #d98268; }
.pay-chart { height: 230px; padding: 20px 20px 15px; display: grid; grid-template-columns: 38px 1fr; }
.pay-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 23px; color: #89938f; font-size: 8px; }
.pay-bars { display: grid; grid-template-columns: repeat(6, 1fr); background: repeating-linear-gradient(to bottom, white 0, white 55px, #edf0ee 56px); border-bottom: 1px solid var(--line); }
.pay-bar-group { display: grid; grid-template-rows: 1fr 23px; min-width: 0; }
.pay-bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 5px; }
.pay-bar-pair i { display: block; width: 13px; border-radius: 3px 3px 0 0; background: var(--green); }
.pay-bar-pair i.net { background: #d98268; }
.pay-bar-group > span { display: grid; place-items: end center; color: var(--muted); font-size: 8px; }
.pay-progress .steps { padding: 22px 12px 18px; }
.pay-progress-note { min-height: 63px; padding: 11px 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; }
.pay-progress-note strong { display: block; font-size: 10px; }
.pay-progress-note p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.pay-departments { margin-bottom: 20px; }
.pay-dept-grid { padding: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.pay-dept > div:first-child { display: flex; justify-content: space-between; gap: 5px; font-size: 9px; }
.pay-dept > div:first-child span { color: var(--muted); }
.pay-dept > div:first-child strong { font-size: 10px; }
.pay-dept .track { margin-top: 9px; height: 6px; }
.pay-dept .track i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.pay-dept p { display: flex; justify-content: space-between; margin: 7px 0 0; color: #8d9792; font-size: 8px; }
.pay-dept p b { color: var(--amber); font-weight: 600; }
.pay-table .panel-head { min-height: 60px; }
.pay-table-actions { display: flex; align-items: center; gap: 8px; }
.pay-table-actions .btn { min-height: 31px; font-size: 10px; }
.pay-table table { min-width: 900px; }
.pay-status { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-size: 9px; }
.pay-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pay-status.pending { color: var(--amber); }
.pay-more { width: 28px; height: 28px; border: 0; }
.pay-more svg { width: 14px; }

@media (max-width: 1180px) {
  .pay-analytics { grid-template-columns: 1fr; }
  .pay-dept-grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
}
@media (max-width: 760px) {
  .payroll-head { align-items: flex-start; }
  .payroll-head .actions { width: 100%; }
  .payroll-head .actions .btn { flex: 1; }
  .pay-tabs { overflow-x: auto; gap: 18px; }
  .pay-tabs > button { white-space: nowrap; }
  .pay-period { display: none; }
  .pay-dept-grid { grid-template-columns: repeat(2, 1fr); padding: 15px; }
  .pay-table .panel-head { align-items: flex-start; padding-top: 13px; padding-bottom: 13px; flex-direction: column; }
}
.login-card h1 { margin: 0 0 4px; font-size: 21px; }
.login-card .sub { color: var(--muted); font-size: 12px; margin-bottom: 26px; }
.login-error { background: var(--red-bg); color: var(--red); font-size: 11px; padding: 9px 11px; border-radius: 6px; margin-bottom: 14px; }
.login-card .btn.primary { width: 100%; min-height: 41px; margin-top: 6px; }
.login-foot { margin-top: 22px; color: #9aa5a0; font-size: 10px; text-align: center; line-height: 1.7; }
.tabs { display: flex; gap: 4px; }
.tabs button { border: 0; background: transparent; padding: 7px 11px; border-radius: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--mint); color: var(--green); font-weight: 700; }
.demo-note { margin-left: 10px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.drawer .hint { color: var(--muted); font-size: 10px; margin: -8px 0 14px; }
.link-btn.danger { color: var(--red); }
.empty-line { padding: 26px; text-align: center; color: var(--muted); font-size: 11px; }
.timeline { display: grid; gap: 0; }
.timeline .titem { position: relative; padding: 0 0 18px 22px; font-size: 11px; }
.timeline .titem::before { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); }
.timeline .titem::after { content: ""; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline .titem:last-child::after { display: none; }
.timeline .titem strong { display: block; margin-bottom: 3px; }
.timeline .titem span { color: var(--muted); font-size: 10px; }
.cal-day .event.leave { background: var(--amber-bg); color: var(--amber); border-left-color: var(--amber); }
.kv { display: grid; grid-template-columns: 88px 1fr; gap: 8px 10px; font-size: 11px; padding: 4px 0 14px; }
.kv span { color: var(--muted); }
select.inline { min-width: 96px; height: 29px; font-size: 10px; padding: 0 22px 0 8px; }
.comment-box { margin: 10px 0 0; }
.comment-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; min-height: 56px; padding: 8px 10px; font: inherit; font-size: 11px; }

/* ===== 人力资源规划 ===== */
.planning-head { align-items: center; }
.planning-filter { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; }
.planning-filter .btn { min-height: 34px; }
.planning-alert { min-height: 36px; flex: 1; display: flex; align-items: center; gap: 8px; margin-left: 4px; padding: 7px 11px; border: 1px solid #cfe1d8; border-radius: 6px; background: #edf6f1; color: #3b6452; font-size: 10px; }
.planning-alert svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--green); }
.planning-alert strong { color: var(--green); }
.planning-stats { box-shadow: none; }
.planning-stats .stat { min-height: 108px; }
.planning-stats .value { font-size: 25px; }
.planning-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 20px; margin-bottom: 20px; }
.planning-legend { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 9px; }
.planning-legend span { display: flex; align-items: center; gap: 5px; margin: 0; }
.planning-legend i { width: 13px; height: 2px; background: var(--green); }
.planning-legend span:nth-child(2) i { background: #2e6799; }
.planning-legend span:nth-child(3) i { background: #aab5ae; }
.planning-chart { height: 255px; padding: 20px 20px 10px; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 1fr 25px; }
.planning-y { display: flex; flex-direction: column; justify-content: space-between; padding: 0 7px 0 0; color: #89938f; font-size: 8px; text-align: right; }
.planning-plot { position: relative; min-width: 0; overflow: hidden; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.planning-plot > i { position: absolute; left: 0; right: 0; border-top: 1px dashed #e6ebe8; }
.planning-plot > i:nth-child(1) { top: 0; }
.planning-plot > i:nth-child(2) { top: 25%; }
.planning-plot > i:nth-child(3) { top: 50%; }
.planning-plot > i:nth-child(4) { top: 75%; }
.planning-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.planning-x { min-width: 0; display: flex; justify-content: space-around; padding-top: 8px; color: #89938f; font-size: 8px; }
.planning-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.planning-summary div { padding: 11px 15px; border-right: 1px solid var(--line); }
.planning-summary div:last-child { border-right: 0; }
.planning-summary span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.planning-summary strong { font-size: 11px; }
.danger { color: var(--red) !important; }
.planning-depts { padding: 3px 16px 8px; }
.planning-dept { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.planning-dept:last-child { border-bottom: 0; }
.planning-dept strong { display: block; font-size: 11px; }
.planning-dept span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.planning-dept > b { align-self: center; font-size: 14px; }
.planning-dept > b small { font-size: 9px; font-weight: 500; }
.planning-dept .track { grid-column: 1 / -1; height: 4px; }
.planning-dept .track i { display: block; height: 100%; border-radius: inherit; }
.planning-roles table { min-width: 820px; }
.planning-roles { margin-bottom: 20px; }

@media (max-width: 1180px) {
  .planning-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .planning-head { align-items: flex-start; }
  .planning-head .actions { width: 100%; }
  .planning-head .actions .btn { flex: 1; }
  .planning-filter { display: grid; grid-template-columns: 1fr 1fr; }
  .planning-filter .btn { width: 100%; }
  .planning-alert { grid-column: 1 / -1; margin: 0; }
  .planning-legend { display: none; }
  .planning-chart { height: 225px; padding-left: 10px; padding-right: 10px; }
  .planning-summary div { padding: 10px; }
  .planning-roles .panel-head { align-items: flex-start; }
}
