/* 文件职责：员工列表区样式。 */
.page-store-staff {
  .staff-table-wrap {
    overflow-x: auto;
    border: 1px solid #f0f2f5;
    border-radius: 10px;
  }

  .staff-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;

    th,
    td {
      padding: 12px 10px;
      text-align: left;
      border-bottom: 1px solid #f5f5f5;
    }

    th {
      font-size: 12px;
      font-weight: 600;
      color: #667085;
      background: #fafafa;
    }

    td {
      font-size: 13px;
      vertical-align: middle;
      color: #1f2329;
    }

    tbody tr:last-child td {
      border-bottom: 0;
    }
  }

  .staff-op-column {
    width: 166px;
  }

  .staff-row-resigned {
    opacity: 0.55;
  }

  .staff-info {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 160px;
  }

  .staff-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    border-radius: 50%;
  }

  .staff-main {
    min-width: 0;
  }

  .staff-name {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
  }

  .staff-phone {
    font-size: 12px;
    color: #667085;
  }

  .staff-role-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
  }

  .role-manager {
    color: #c41d7f;
    background: #fff0f6;
    border-color: #ffadd2;
  }

  .role-cashier {
    color: #1677ff;
    background: #e6f4ff;
    border-color: #91caff;
  }

  .role-courier {
    color: #389e0d;
    background: #f6ffed;
    border-color: #b7eb8f;
  }

  .role-chef {
    color: #d46b08;
    background: #fff7e6;
    border-color: #ffd591;
  }

  .staff-status {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
  }

  .staff-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
  }

  .status-dot-active {
    background: #22c55e;
  }

  .status-dot-leave {
    background: #f59e0b;
  }

  .status-dot-resigned {
    background: #9ca3af;
  }

  .staff-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .staff-permission-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 600;
    color: #2f54eb;
    background: #f0f5ff;
    border-radius: 6px;
  }

  .staff-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .staff-link {
    font-size: 13px;
    color: #1677ff;
    cursor: pointer;
    user-select: none;
  }

  .staff-link:hover {
    text-decoration: underline;
  }

  .staff-link-disabled {
    color: #bfbfbf;
    text-decoration: none !important;
    pointer-events: none;
    cursor: not-allowed;
  }

  .staff-delete-btn {
    height: auto !important;
    padding: 0 !important;
    font-size: 13px;
  }

  .staff-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
  }
}
